/* =====================================================================
   J5 SOBER 2026 — feuille de styles de la refonte
   =====================================================================

   Extrait TEL QUEL des pages HTML livrées par le graphiste. Aucune règle
   n'est reformatée, renommée ni supprimée : ce fichier est la copie des
   45 règles communes aux six pages de référence, dans leur ordre d'origine.

   Ce fichier est servi en statique, sans passer par Vite ni PostCSS, pour
   qu'aucun outil ne le transforme.

   ATTENTION — ne pas y ajouter les règles `.jh1 … .jhN` : ces classes
   d'états de survol portent des VALEURS DIFFÉRENTES selon la page. Elles
   vivent dans `j5-page-<nom>.css`, chargé par la seule page concernée.
   Les réunir ici ferait que le survol d'un bouton de « Devenir sponsor »
   prendrait la couleur prévue pour l'accueil.
   ===================================================================== */

:root {
      --j5-green:#005B36; --j5-green-2:#00843D; --j5-gold:#F2B705; --j5-red:#D62B28;
      --j5-ink:#202624; --j5-grey:#F2F4F3; --j5-green-ink:#00301D; --j5-green-veil:#E8F2ED;
      --j5-gold-veil:#FFF6DC; --j5-gold-text:#8A6600; --j5-red-veil:#FDECEB;
      --j5-border:#E2E7E5; --j5-muted:#646D6A; --j5-white:#fff;
      --j5-font-title:'Montserrat', system-ui, sans-serif;
      --j5-font-body:'Source Sans 3', system-ui, sans-serif;
      --j5-r-pill:999px; --j5-container:1240px;
      --j5-ease:cubic-bezier(.22,.61,.36,1); --j5-dur:240ms;
    }

a { color:#005B36; text-decoration:none; }

a:hover { color:#00843D; }

::selection { background:#F2B705; color:#202624; }

/* ---------- Header J5 : deux bandes, zéro JS ---------- */
    .j5-header { background:#fff; border-bottom:1px solid var(--j5-border); }

.j5-header-top { max-width:var(--j5-container); margin:0 auto; padding:16px 24px 14px; display:flex; flex-wrap:wrap; gap:16px 28px; align-items:center; justify-content:space-between; }

.j5-logo { display:block; flex:none; }

.j5-logo img { height:56px; width:auto; display:block; }

.j5-header-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

.j5-btn { font-family:var(--j5-font-title); font-weight:600; font-size:14.5px; border-radius:var(--j5-r-pill); white-space:nowrap; text-decoration:none; display:inline-block; }

.j5-btn--primary { color:#fff; background:var(--j5-green); padding:11px 20px; }

.j5-btn--primary:hover { background:var(--j5-green-2); color:#fff; }

.j5-btn--ghost { color:var(--j5-green); border:2px solid var(--j5-green); padding:9px 18px; }

.j5-btn--ghost:hover { background:var(--j5-green); color:#fff; }

/* « Faire un don » — rouge de la charte, pour le distinguer des deux
   boutons verts de l'en-tête. À droite de la navigation sur ordinateur,
   en pleine largeur au bas du menu sur téléphone. */
.j5-btn--don { color:#fff; background:#D62B28; padding:9px 18px; }
.j5-btn--don:hover { background:#b02220; color:#fff; }
/* Sur ordinateur, le plein rouge sautait trop aux yeux : contour rouge sur
   fond blanc, qui se remplit au survol. */
.j5-nav-don { margin-left:auto; align-self:center; background:#fff; color:#D62B28; border:2px solid #D62B28; padding:7px 16px; }
.j5-nav-don:hover { background:#D62B28; color:#fff; }
.j5-m-don { display:block; text-align:center; margin:18px 0 6px; padding:14px 20px; font-size:15.5px; }
/* Entre 1 060 et 1 260 px, le bouton ne tenait plus sur la ligne : on
   resserre les entrées plutôt que de le laisser sortir de l'écran. */
@media (min-width:1060px) and (max-width:1259px) {
  .j5-header-nav .j5-nav-item { padding-left:7px; padding-right:7px; font-size:14px; }
  .j5-header-nav .j5-nav-don  { padding:6px 12px; font-size:14px; }
  .j5-header-nav .j5-wrap { padding:0 16px; }
}

.j5-header-nav { border-top:1px solid #EEF1F0; background:#fff; }

.j5-header-nav .j5-wrap { max-width:var(--j5-container); margin:0 auto; padding:0 24px; }

.j5-nav { display:flex; flex-wrap:nowrap; align-items:stretch; gap:0; }

.j5-nav-item { font-family:var(--j5-font-title); font-weight:600; font-size:14.5px; color:var(--j5-ink);
      padding:15px 12px; border-bottom:3px solid transparent; white-space:nowrap; text-decoration:none;
      display:flex; align-items:center; gap:6px; }

.j5-nav-item:hover { color:var(--j5-green); border-bottom-color:var(--j5-border); }

.j5-nav-item.is-active { color:var(--j5-green); border-bottom-color:var(--j5-gold); }

.j5-nav-btn { background:transparent; border:0; border-bottom:3px solid transparent; cursor:pointer; font:inherit; }

.j5-chev { font-size:11px; color:var(--j5-muted); }

.j5-nav-group { position:relative; }

.j5-drop { position:absolute; top:100%; z-index:50; min-width:288px; background:#fff;
      border:1px solid var(--j5-border); box-shadow:0 12px 34px rgba(0,48,29,.14);
      opacity:0; visibility:hidden; transform:translateY(-4px);
      transition:opacity var(--j5-dur) var(--j5-ease), transform var(--j5-dur) var(--j5-ease), visibility var(--j5-dur); }

.j5-drop--left { left:0; }

.j5-drop--right { right:0; }

.j5-nav-group:hover .j5-drop, .j5-nav-group:focus-within .j5-drop { opacity:1; visibility:visible; transform:none; }

.j5-drop a { display:block; padding:15px 20px; text-decoration:none; }

.j5-drop a.has-rule { border-bottom:1px solid #EEF1F0; }

.j5-drop a:hover { background:var(--j5-green-veil); }

.j5-drop-t { display:block; font-family:var(--j5-font-title); font-weight:700; font-size:15.5px; color:var(--j5-ink); margin-bottom:3px; }

.j5-drop a:hover .j5-drop-t { color:var(--j5-green); }

.j5-drop-s { display:block; font-size:14.5px; color:#54605C; }

.j5-menu { display:none; }

.j5-menu > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:11px;
      font-family:var(--j5-font-title); font-weight:700; font-size:16px; color:var(--j5-green); padding:16px 4px; }

.j5-menu > summary::-webkit-details-marker { display:none; }

.j5-burger { display:flex; flex-direction:column; gap:4px; flex:none; }

.j5-burger i { display:block; width:22px; height:2.5px; background:var(--j5-green); border-radius:2px; }

.j5-menu-body { border-top:1px solid #EEF1F0; padding-bottom:20px; }

.j5-m-item, .j5-m-sub { display:block; border-bottom:1px solid #EEF1F0; text-decoration:none;
      font-family:var(--j5-font-title); color:var(--j5-ink); }

.j5-m-item { padding:15px 4px; font-weight:700; font-size:16.5px; }

.j5-m-sub { padding:13px 4px 13px 18px; font-weight:600; font-size:16px; }

.j5-m-item.is-active { background:var(--j5-green-veil); color:var(--j5-green); }

.j5-m-group { padding:16px 4px 6px; font-family:'JetBrains Mono',monospace; font-size:11px;
      letter-spacing:.18em; text-transform:uppercase; color:var(--j5-gold-text); }

.j5-menu-actions { display:none; }

/* =====================================================================
   En-tête sous 1 060 px
   =====================================================================
   Le fichier livré empilait trois rangées sur téléphone : le logo, les
   deux boutons d'action l'un sous l'autre, puis une bande « Menu ». Près
   de 260 px avant le premier contenu.

   Ici, une seule rangée : le logo à gauche, « Menu » à droite. Les deux
   boutons descendent en tête du panneau, en pleine largeur, où ils se
   touchent du pouce. Le panneau s'ouvre par-dessus la page plutôt que de
   la pousser vers le bas.
   ===================================================================== */

@media (max-width:1059px) {
      .j5-header { position:relative; }

      .j5-nav { display:none; }
      .j5-header-nav { display:none; }
      .j5-header-actions { display:none; }

      .j5-header-top { flex-wrap:nowrap; gap:14px; padding:12px 18px; }

      .j5-logo img { height:44px; }

      .j5-menu { display:block; flex:none; }

      .j5-menu > summary { padding:9px 2px; font-size:15.5px; }

      .j5-menu-body { position:absolute; left:0; right:0; top:100%; z-index:60;
        background:#fff; border-top:1px solid #EEF1F0;
        box-shadow:0 18px 34px rgba(0,48,29,.16);
        padding:0 18px 18px; max-height:calc(100vh - 120px); overflow-y:auto; }

      .j5-menu-actions { display:grid; gap:10px; padding:16px 0 10px; }

      .j5-menu-actions .j5-btn { text-align:center; padding:14px 20px; font-size:15.5px; }

      .j5-menu-actions .j5-btn--ghost { padding:12px 18px; }
    }

/* =====================================================================
   Bandeau utilitaire défilant
   =====================================================================
   Ajout postérieur à l'intégration littérale : le dossier livré posait
   les six informations sur une ligne fixe, qui débordait dès qu'on a
   ajouté l'adresse officielle. Le défilement continu les remet sur une
   seule bande.

   Le rail contient quatre exemplaires du même groupe et se translate du
   quart de sa largeur, soit exactement un groupe : au terme de
   l'animation, le deuxième exemplaire occupe la place du premier, et la
   boucle est invisible. Quatre et non deux, pour qu'il reste toujours de
   quoi couvrir un grand écran pendant le défilement.
   ===================================================================== */

.j5-ticker { background:#00301D; color:rgba(255,255,255,.82); font-size:13.5px;
      overflow:hidden; }

.j5-ticker__rail { display:flex; width:max-content;
      animation:j5-ticker-defile 46s linear infinite; }

/* Un lien qui bouge est un lien qu'on n'attrape pas. */
.j5-ticker:hover .j5-ticker__rail,
.j5-ticker:focus-within .j5-ticker__rail { animation-play-state:paused; }

.j5-ticker__group { display:flex; align-items:center; gap:0 26px;
      padding:9px 13px; white-space:nowrap; }

.j5-ticker a { color:rgba(255,255,255,.82); text-decoration:none; }

.j5-ticker a:hover { color:#fff; text-decoration:underline; }

.j5-ticker__date { font-family:'JetBrains Mono',monospace; font-size:12px;
      letter-spacing:.1em; color:#F2B705; }

.j5-ticker__sep { color:rgba(255,255,255,.64); }

.j5-ticker a.j5-ticker__wa { color:#F2B705; }

@keyframes j5-ticker-defile {
      from { transform:translateX(0); }
      to   { transform:translateX(-25%); }
    }

/* Vertiges, migraines, troubles de l'attention : le défilement disparaît
   pour qui le demande, et la bande redevient une ligne qui se replie. */
@media (prefers-reduced-motion: reduce) {
      .j5-ticker__rail { animation:none; width:100%; }
      .j5-ticker__group { flex-wrap:wrap; gap:6px 22px; white-space:normal;
        max-width:1240px; margin:0 auto; padding:9px 24px; }
      .j5-ticker__group + .j5-ticker__group { display:none; }
    }

/* =====================================================================
   Boutons des blocs déplacés
   =====================================================================
   « Intervenants » et « Sponsors » ont quitté l'accueil pour leurs pages
   respectives. Leurs états de survol vivaient dans `j5-page-accueil.css`,
   que ces pages ne chargent pas : ils sont repris ici, sous des noms qui
   disent ce qu'ils font plutôt qu'un numéro d'ordre.
   ===================================================================== */

.j5-btn-rouge:hover   { background:#b02220; }

.j5-btn-contour:hover { background:#005B36; color:#fff; }

/* =====================================================================
   Vocabulaire de contenu des pages secondaires
   =====================================================================
   Les six pages livrées par le graphiste écrivent tout en style en
   ligne : c'est lisible pour une page, insoutenable pour dix. Ces
   classes reprennent exactement les mêmes valeurs — bandeaux de 78 px,
   filet tricolore 58/29/15, surtitre monospace doré, titre Montserrat
   800 très serré, mosaïque de cartes séparées d'un filet — pour que les
   pages écrites ensuite soient indiscernables de celles-là.
   ===================================================================== */

.j5-sec { padding:72px 24px; background:var(--j5-white); }
.j5-sec--gris { background:var(--j5-grey); }
.j5-sec--vert { background:var(--j5-green-ink); color:var(--j5-white); }
.j5-sec--serre { padding:52px 24px; }

.j5-wrap { max-width:var(--j5-container); margin:0 auto; }
.j5-wrap--texte { max-width:820px; margin:0 auto; }

.j5-rule { display:flex; gap:7px; margin-bottom:20px; }
.j5-rule i { display:block; height:5px; border-radius:3px; }
.j5-rule i:nth-child(1) { width:58px; background:var(--j5-green-2); }
.j5-rule i:nth-child(2) { width:29px; background:var(--j5-gold); }
.j5-rule i:nth-child(3) { width:15px; background:var(--j5-red); }

.j5-kicker { font-family:'JetBrains Mono',monospace; font-size:11.5px;
      letter-spacing:.2em; text-transform:uppercase; color:var(--j5-gold-text);
      margin-bottom:14px; }
.j5-sec--vert .j5-kicker { color:var(--j5-gold); }

.j5-title { font-family:var(--j5-font-title); font-weight:800;
      font-size:clamp(26px,3.4vw,40px); line-height:1.12; letter-spacing:-.02em;
      margin:0 0 14px; text-wrap:balance; }

.j5-lead { font-size:18px; line-height:1.65; color:#4a534f; max-width:62ch;
      margin:0 0 34px; text-wrap:pretty; }
.j5-sec--vert .j5-lead { color:rgba(255,255,255,.84); }

.j5-prose { font-size:17px; line-height:1.7; color:#3a433f; }
.j5-prose p { margin:0 0 16px; max-width:70ch; }
.j5-prose strong { font-family:var(--j5-font-title); font-weight:700; color:var(--j5-ink); }

/* Mosaïque : les cartes se touchent, un filet unique les sépare. */
.j5-mosaique { display:grid;
      grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
      gap:1px; border:1px solid #DDE3E0; }
.j5-mosaique > * { background:var(--j5-white); box-shadow:0 0 0 1px #DDE3E0;
      padding:26px 24px; }

.j5-cartes { display:grid;
      grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
      gap:18px; }
.j5-cartes > * { background:var(--j5-white); border:1px solid var(--j5-border);
      padding:26px 24px; }

/* Variante « visuel » — pour une carte dont l'image occupe toute la
   largeur, comme les actualités.
   .................................................................
   Ces cartes utilisaient `.j5-mosaique`, la grille jointive : des
   tuiles séparées par un filet d'un pixel, dessinée pour du texte que
   ses 26 px de padding tiennent à distance. Une carte à image annule ce
   padding pour que la photo aille au bord — et les photos se
   retrouvaient collées, à un pixel l'une de l'autre, sans qu'on
   distingue plus où finissait un article et où commençait le suivant.
   D'où une vraie gouttière, et le padding annulé ici plutôt qu'en
   style en ligne. `overflow:hidden` garde l'image dans le cadre. */
.j5-cartes--visuel { gap:24px; }
.j5-cartes--visuel > * { padding:0; overflow:hidden; }

.j5-card__k { font-family:'JetBrains Mono',monospace; font-size:10.5px;
      letter-spacing:.16em; text-transform:uppercase; color:var(--j5-gold-text);
      margin-bottom:9px; }
.j5-card__t { font-family:var(--j5-font-title); font-weight:700; font-size:18px;
      line-height:1.35; margin:0 0 8px; }
.j5-card__p { font-size:15.5px; line-height:1.6; color:#4a534f; margin:0; }
.j5-card__p + .j5-card__p { margin-top:10px; }

/* Liste libellé / valeur, comme les repères du hero. */
.j5-kv { border:1px solid var(--j5-border); }
.j5-kv > div { display:flex; flex-wrap:wrap; gap:8px 18px;
      justify-content:space-between; align-items:baseline; padding:16px 20px;
      border-bottom:1px solid var(--j5-border); }
.j5-kv > div:last-child { border-bottom:0; }
.j5-kv dt, .j5-kv .j5-kv__k { font-family:'JetBrains Mono',monospace; font-size:11px;
      letter-spacing:.16em; text-transform:uppercase; color:var(--j5-muted); }
.j5-kv dd, .j5-kv .j5-kv__v { font-family:var(--j5-font-title); font-weight:700;
      font-size:16.5px; margin:0; text-align:right; }

.j5-note { background:var(--j5-grey); border-left:3px solid var(--j5-green);
      padding:16px 20px; font-size:15.5px; line-height:1.6; color:#4a534f; }
.j5-note--or { border-left-color:var(--j5-gold); background:var(--j5-gold-veil); }
.j5-note--neutre { border-left-color:#DDE3E0; }

.j5-attente { border:1px dashed #C9D2CE; background:var(--j5-white);
      padding:44px 26px; text-align:center; }
.j5-attente__t { font-family:var(--j5-font-title); font-weight:700; font-size:19px;
      margin:0 0 8px; }
.j5-attente__p { font-size:16px; line-height:1.6; color:var(--j5-muted);
      max-width:54ch; margin:0 auto; }

.j5-encart { border:1px solid var(--j5-green); background:var(--j5-green-veil);
      padding:32px 30px; display:grid;
      grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
      gap:22px; align-items:center; }
.j5-encart__t { font-family:var(--j5-font-title); font-weight:800;
      font-size:clamp(20px,2.4vw,27px); line-height:1.2; margin:0 0 8px; }
.j5-encart__p { font-size:16.5px; line-height:1.6; color:#3a433f; max-width:52ch;
      margin:0; }
.j5-encart__actions { display:flex; flex-wrap:wrap; gap:12px; }

.j5-liste { margin:0; padding:0; list-style:none; }
.j5-liste li { position:relative; padding:0 0 0 22px; margin-bottom:10px;
      font-size:16px; line-height:1.6; color:#3a433f; }
.j5-liste li::before { content:''; position:absolute; left:0; top:10px;
      width:9px; height:2px; border-radius:1px; background:var(--j5-green-2); }

.j5-lien-suite { display:inline-block; font-family:var(--j5-font-title);
      font-weight:600; font-size:16px; color:var(--j5-green);
      border-bottom:2px solid var(--j5-gold); padding-bottom:3px;
      text-decoration:none; }

.j5-submit:hover { background:var(--j5-green-2); }

/* =====================================================================
   Pages du CMS (FAQ, mentions légales, pages libres)
   =====================================================================
   Le contenu vient du back-office en Markdown : on ne maîtrise ni les
   niveaux de titre ni l'ordre des blocs. Ces règles lui donnent la même
   voix typographique que le reste du site, sans rien imposer à la
   rédaction.
   ===================================================================== */

.j5-cms { font-size:17px; line-height:1.7; color:#3a433f; max-width:76ch; }

.j5-cms > :first-child { margin-top:0; }

.j5-cms h2 { font-family:var(--j5-font-title); font-weight:800;
      font-size:clamp(22px,2.6vw,29px); line-height:1.18; letter-spacing:-.02em;
      color:var(--j5-ink); margin:44px 0 16px; padding-top:22px;
      border-top:1px solid var(--j5-border); }

.j5-cms h3 { font-family:var(--j5-font-title); font-weight:700; font-size:19px;
      line-height:1.35; color:var(--j5-ink); margin:28px 0 8px; }

.j5-cms h4 { font-family:var(--j5-font-title); font-weight:700; font-size:16.5px;
      color:var(--j5-ink); margin:22px 0 6px; }

.j5-cms p { margin:0 0 16px; }

.j5-cms strong { font-family:var(--j5-font-title); font-weight:700; color:var(--j5-ink); }

.j5-cms a { color:var(--j5-green); border-bottom:1px solid var(--j5-border);
      text-decoration:none; }
.j5-cms a:hover { border-bottom-color:var(--j5-green); }

/* Dans les actualités, tout lien devient un bouton : les lecteurs survolent
   le texte et ne repéraient pas les liens soulignés. Les images cliquables
   et le repli des vidéos gardent leur aspect. */
.j5-article .j5-cms a:not(:has(img)):not(.j5-video a) {
      display:inline-flex; align-items:center; gap:8px; max-width:100%;
      margin:4px 2px; padding:10px 18px; border:0; border-radius:var(--j5-r-pill);
      background:var(--j5-green); color:#fff; font-family:var(--j5-font-title);
      font-weight:600; font-size:15px; line-height:1.3; text-decoration:none;
      overflow-wrap:anywhere; vertical-align:middle;
      box-shadow:0 2px 8px rgba(0,0,0,.08); transition:background .15s, transform .15s; }
.j5-article .j5-cms a:not(:has(img)):not(.j5-video a)::after { content:"→"; flex-shrink:0; }
.j5-article .j5-cms a:not(:has(img)):not(.j5-video a):hover {
      background:var(--j5-green-2); color:#fff; transform:translateY(-1px); }
.j5-article .j5-cms a:not(:has(img)):not(.j5-video a) strong { color:inherit; }

.j5-cms ul, .j5-cms ol { margin:0 0 18px; padding-left:22px; }
/* Puces et numéros : la remise à zéro de Tailwind (`ol, ul { list-style:none }`)
   les effaçait, et les listes d'un article ne se distinguaient plus du texte. */
.j5-cms ul { list-style:disc; }
.j5-cms ol { list-style:decimal; }
.j5-cms ul ul, .j5-cms ol ul { list-style:circle; }
.j5-cms li > ul, .j5-cms li > ol { margin:8px 0 0; }
.j5-cms li::marker { color:var(--j5-green); }
.j5-cms ol > li::marker { font-family:var(--j5-font-title); font-weight:700; }
.j5-cms li { margin-bottom:8px; }

.j5-cms blockquote { margin:0 0 18px; padding:14px 20px; background:var(--j5-grey);
      border-left:3px solid var(--j5-green); font-style:normal; }
.j5-cms blockquote p:last-child { margin-bottom:0; }

.j5-cms table { width:100%; border-collapse:collapse; margin:0 0 22px;
      font-size:16px; }
.j5-cms th { text-align:left; font-family:'JetBrains Mono',monospace; font-size:11px;
      letter-spacing:.16em; text-transform:uppercase; color:var(--j5-gold-text);
      padding:12px 16px; background:var(--j5-grey);
      border-bottom:1px solid var(--j5-border); }
.j5-cms td { padding:13px 16px; border-bottom:1px solid var(--j5-border);
      vertical-align:top; }
.j5-cms tbody tr:nth-child(even) td { background:#FAFBFB; }

.j5-cms hr { border:0; border-top:1px solid var(--j5-border); margin:34px 0; }

.j5-cms code { font-family:'JetBrains Mono',monospace; font-size:14.5px;
      background:var(--j5-grey); padding:2px 6px; border-radius:4px; }

/* =====================================================================
   Hero de l'accueil
   =====================================================================
   Repris au pixel près du fichier livré, mais sorti des styles en ligne :
   un style en ligne ne se laisse pas corriger par une requête média, et
   c'est précisément ce qu'il fallait faire pour le téléphone.

   Sur ordinateur : la photo occupe le tiers droit, un dégradé horizontal
   la masque à 65 %, le texte tient dans les 700 px de gauche.

   Sous 860 px : la photo redevient un bandeau posé au-dessus du texte.
   Elle ne passe plus dessous — le titre était illisible.
   ===================================================================== */

.j5-hero { background:var(--j5-green-ink); color:#fff; position:relative; overflow:hidden; }

.j5-hero__img { position:absolute; right:0; top:0; height:100%; width:35%;
      object-fit:cover; object-position:42% 62%; }

.j5-hero__voile { position:absolute; inset:0;
      background:linear-gradient(90deg,#00301D 0%,#00301D 65%,transparent 65%); }

.j5-hero__inner { position:relative; z-index:2; max-width:var(--j5-container);
      margin:0 auto; padding:74px 24px 0; }

.j5-hero__texte { max-width:min(100%,700px); }

.j5-hero .j5-rule { margin-bottom:26px; }

.j5-hero__sur { font-family:'JetBrains Mono',monospace; font-size:12.5px;
      letter-spacing:.2em; text-transform:uppercase; color:var(--j5-gold);
      margin-bottom:18px; }

.j5-hero__titre { font-family:var(--j5-font-title); font-weight:800;
      font-size:clamp(30px,5.6vw,68px); line-height:1.01; letter-spacing:-.025em;
      margin:0 0 26px; text-wrap:balance; }

.j5-hero__chapo { font-size:clamp(16.5px,1.9vw,21px); line-height:1.55;
      color:rgba(255,255,255,.86); max-width:58ch; margin:0 0 30px; }

.j5-hero__mots { display:flex; flex-wrap:wrap; gap:10px 28px; align-items:center;
      font-family:var(--j5-font-title); font-weight:600; font-style:italic;
      font-size:clamp(15px,1.7vw,18px); color:var(--j5-gold); margin-bottom:34px; }

.j5-hero__mots .sep { color:rgba(255,255,255,.64); font-style:normal; }

.j5-hero__actions { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:46px; }

.j5-hero__cta { font-family:var(--j5-font-title); font-weight:600; font-size:16px;
      border-radius:var(--j5-r-pill); text-decoration:none; display:inline-block; }

.j5-hero__cta--or { background:var(--j5-gold); color:var(--j5-ink); padding:16px 30px; }

.j5-hero__cta--clair { color:#fff; border:2px solid rgba(255,255,255,.4); padding:14px 28px; }

.j5-hero__bandeau { position:relative; z-index:2;
      border-top:1px solid rgba(255,255,255,.14); background:#002517; }

.j5-hero__bandeau-inner { max-width:var(--j5-container); margin:0 auto; padding:0 24px;
      display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); }

.j5-hero__bandeau-inner > div { padding:22px 26px;
      border-right:1px solid rgba(255,255,255,.12); }

.j5-hero__bandeau-inner > div:first-child { padding-left:0; }

.j5-hero__bandeau-inner > div:last-child { padding-right:0; border-right:0; }

.j5-hero__k { font-family:'JetBrains Mono',monospace; font-size:11px;
      letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.76);
      margin-bottom:8px; }

.j5-hero__v { font-family:var(--j5-font-title); font-weight:700; font-size:19px; }

.j5-hero__v--or { color:var(--j5-gold); }

.j5-hero__v--mono { font-family:'JetBrains Mono',monospace; font-weight:500; color:#fff; }

@media (max-width:859px) {
      /* La photo repasse dans le flux, en bandeau, au-dessus du texte. */
      .j5-hero__img { position:static; width:100%; height:180px; display:block;
        object-position:42% 55%; }

      .j5-hero__voile { display:none; }

      .j5-hero__inner { padding:32px 20px 0; }

      .j5-hero .j5-rule { margin-bottom:20px; }

      .j5-hero__sur { font-size:11px; letter-spacing:.14em; margin-bottom:14px; }

      .j5-hero__titre { font-size:clamp(27px,7.4vw,38px); line-height:1.08;
        letter-spacing:-.02em; margin-bottom:18px; }

      .j5-hero__chapo { margin-bottom:22px; }

      .j5-hero__mots { gap:8px 16px; font-size:15px; margin-bottom:24px; }

      /* Deux boutons pleine largeur : on les vise au pouce, pas à la souris. */
      .j5-hero__actions { display:grid; gap:10px; margin-bottom:34px; }

      .j5-hero__cta { text-align:center; padding:15px 20px; font-size:15.5px; }

      .j5-hero__cta--clair { padding:13px 18px; }

      /* Une seule colonne : les filets passent de droite en dessous. */
      .j5-hero__bandeau-inner { padding:0 20px; }

      .j5-hero__bandeau-inner > div { padding:16px 0; border-right:0;
        border-bottom:1px solid rgba(255,255,255,.12); }

      .j5-hero__bandeau-inner > div:last-child { border-bottom:0; }

      .j5-hero__v { font-size:17.5px; }
    }

/* Sur un écran étroit, « Recherche / Formation / Pratique / Impact » se
   coupe n'importe où et laisse une barre oblique en fin de ligne. En
   deux colonnes, les quatre mots s'alignent et les séparateurs
   deviennent inutiles. */
@media (max-width:539px) {
      .j5-hero__mots { display:grid; grid-template-columns:repeat(2,auto);
        justify-content:start; gap:7px 26px; }

      .j5-hero__mots .sep { display:none; }
    }

/* =====================================================================
   Le rail numéroté des sections
   =====================================================================
   Une colonne de 44 px portant un trait vertical et une pastille
   chiffrée, puis le contenu décalé. C'est la signature visuelle du
   dossier livré, et elle est conservée telle quelle sur ordinateur.

   Sous 700 px, cette colonne mangeait 70 des 375 px de l'écran et ne
   laissait qu'un trait solitaire, le contenu écrasé dans ce qui restait.
   Elle se replie : la pastille passe au-dessus du titre, le trait
   disparaît, le contenu récupère toute la largeur.
   ===================================================================== */

.j5-rail { max-width:var(--j5-container); margin:0 auto;
      display:grid; grid-template-columns:44px minmax(0,1fr); }

.j5-rail__col { position:relative; }

.j5-rail__trait { position:absolute; left:16px; top:0; bottom:0; width:2px;
      background:var(--j5-border); }

.j5-rail__trait--pale { background:rgba(255,255,255,.2); }

.j5-rail__num { position:relative; display:flex; width:34px; height:34px;
      border-radius:50%; background:var(--j5-green); color:#fff;
      font-family:var(--j5-font-title); font-weight:800; font-size:13px;
      align-items:center; justify-content:center; }

.j5-rail__num--or { background:var(--j5-gold); color:var(--j5-ink); }

.j5-rail__body { padding-left:clamp(16px,3vw,40px); }

@media (max-width:699px) {
      .j5-rail { grid-template-columns:1fr; }

      .j5-rail__trait { display:none; }

      .j5-rail__col { margin-bottom:16px; }

      .j5-rail__body { padding-left:0; }
    }

/* Le libellé du tarif et son montant tiennent côte à côte sur un écran
   large. Sous 560 px, le libellé se réduit à quatre lignes tandis que le
   montant garde sa colonne : ils se superposent. On les empile. */
@media (max-width:559px) {
      .j5-ligne-tarif { grid-template-columns:1fr !important; gap:10px !important;
        padding:20px !important; }

      /* Numéro, texte et flèche : sur un écran étroit, les deux gouttières
         de 24 px et la flèche ne laissent plus rien au titre. */
      .j5-carte-axe { grid-template-columns:auto minmax(0,1fr) !important;
        gap:16px !important; padding:22px 20px !important; }

      .j5-carte-axe > :last-child { display:none; }
    }

/* Les repères du hero des pages secondaires : trois ou quatre cases
   séparées par un filet vertical. Sur téléphone elles s'empilent, et le
   filet doit passer en dessous — sans quoi chaque case traîne un trait
   à sa droite, dans le vide. */

.j5-heros__reperes { display:grid;
      grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
      border-top:1px solid rgba(255,255,255,.16); }

.j5-heros__reperes > div { padding:24px 26px;
      border-right:1px solid rgba(255,255,255,.12); }

.j5-heros__reperes > div:first-child { padding-left:0; }

.j5-heros__reperes > div:last-child { padding-right:0; border-right:0; }

.j5-heros__k { font-family:'JetBrains Mono',monospace; font-size:11px;
      letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.76);
      margin-bottom:9px; }

.j5-heros__v { font-family:var(--j5-font-title); font-weight:700; font-size:19px; }

.j5-heros__v--or { font-weight:800; color:var(--j5-gold); }

@media (max-width:699px) {
      .j5-heros__reperes > div { padding:16px 0; border-right:0;
        border-bottom:1px solid rgba(255,255,255,.12); }

      .j5-heros__reperes > div:last-child { border-bottom:0; }

      .j5-heros__v { font-size:17.5px; }
    }

/* =====================================================================
   Champs de formulaire et mot de passe
   =====================================================================
   Les pages d'authentification écrivaient leurs champs en style en ligne,
   recopié d'une page à l'autre. Ces classes portent exactement les mêmes
   valeurs, une seule fois.
   ===================================================================== */

.j5-intitule { display:block; font-family:var(--j5-font-title); font-weight:600;
      font-size:15px; margin-bottom:8px; }

.j5-champ { width:100%; box-sizing:border-box; font-size:16.5px; color:var(--j5-ink);
      padding:14px 15px; border:1px solid #DDE3E0; background:#fff; border-radius:8px; }

.j5-aide { display:block; font-size:14.5px; color:var(--j5-muted); margin-top:7px; }

.j5-erreur { display:block; font-size:14.5px; color:#B02220; margin-top:6px; }

.j5-bouton-plein { width:100%; font-family:var(--j5-font-title); font-weight:600;
      font-size:16.5px; color:#fff; background:var(--j5-green); border:0;
      padding:17px 26px; border-radius:var(--j5-r-pill); cursor:pointer; }

.j5-bouton-plein:hover { background:var(--j5-green-2); }

/* ---------- Le champ mot de passe et son œil ---------- */

.j5-mdp { position:relative; }

.j5-mdp input { padding-right:52px; }

/* Le bouton n'est pas dans l'ordre de tabulation : on passe du champ au
   suivant sans buter dessus. Il reste atteignable à la souris et au
   lecteur d'écran, qui annonce son libellé. */
.j5-mdp__oeil { position:absolute; right:6px; top:50%; transform:translateY(-50%);
      width:40px; height:40px; display:flex; align-items:center; justify-content:center;
      background:none; border:0; border-radius:8px; cursor:pointer; color:var(--j5-muted);
      padding:0; }

.j5-mdp__oeil:hover { color:var(--j5-green); background:var(--j5-grey); }

.j5-mdp__oeil svg { width:21px; height:21px; display:block; }

.j5-mdp__oeil .j5-mdp__ferme { display:none; }

.j5-mdp__oeil[aria-pressed="true"] .j5-mdp__ouvert { display:none; }

.j5-mdp__oeil[aria-pressed="true"] .j5-mdp__ferme { display:block; }

/* ---------- Les critères, cochés au fil de la frappe ---------- */

.j5-criteres { margin:12px 0 0; padding:0; list-style:none; }

.j5-criteres li { display:flex; align-items:baseline; gap:9px; font-size:14.5px;
      line-height:1.5; color:var(--j5-muted); margin-bottom:6px; }

.j5-criteres li::before { content:'○'; font-size:13px; line-height:1.3; color:#C9D2CE;
      flex:none; }

.j5-criteres li.est-rempli { color:#00662F; }

.j5-criteres li.est-rempli::before { content:'✓'; color:var(--j5-green-2);
      font-weight:700; }

.j5-criteres .j5-criteres__note { font-size:13px; color:var(--j5-muted); }

/* =====================================================================
   L'envoi en cours, et le récapitulatif des erreurs
   =====================================================================
   Deux manques constatés sur le formulaire d'inscription en production.

   Entre le clic et la réponse du serveur, rien ne bougeait : la personne
   ne savait pas si son clic avait porté, et recliquait. Le bouton dit
   désormais qu'il travaille, et refuse le deuxième clic.

   Quand le serveur refusait, le récapitulatif des erreurs s'affichait en
   haut du formulaire — c'est-à-dire hors de l'écran, puisqu'on venait de
   cliquer en bas. La page semblait ne pas réagir. Il est maintenant
   amené sous les yeux et reçoit le focus.
   ===================================================================== */

.j5-sablier { display:inline-block; width:16px; height:16px; margin-right:10px;
      vertical-align:-3px; border:2px solid rgba(255,255,255,.34);
      border-top-color:#fff; border-radius:50%; flex:none;
      animation:j5-tourne .7s linear infinite; }

@keyframes j5-tourne { to { transform:rotate(360deg); } }

/* Un indicateur d'attente doit tourner : c'est sa seule fonction. On le
   ralentit au lieu de l'arrêter. */
@media (prefers-reduced-motion: reduce) {
  .j5-sablier { animation-duration:2.4s; }
}

[type="submit"][aria-busy="true"] { cursor:progress; opacity:.78; }

.j5-erreurs { background:#FDECEB; border-left:3px solid #B02220; padding:15px 17px;
      font-size:15.5px; line-height:1.55; color:#7a1a18; margin-bottom:22px;
      scroll-margin-top:24px; }

.j5-erreurs:focus-visible { outline:2px solid #B02220; outline-offset:3px; }

.j5-erreurs__t { display:block; font-family:var(--j5-font-title); font-weight:700;
      margin-bottom:7px; }

.j5-erreurs ul { margin:0; padding-left:20px; }

.j5-erreurs li + li { margin-top:4px; }

/* =====================================================================
   Article d'actualité
   =====================================================================
   La page d'un article était restée sur l'ancien gabarit : on passait
   d'un site à l'autre en cliquant sur un titre.
   ===================================================================== */

.j5-article { max-width:820px; margin:0 auto; }

.j5-article__couv { width:100%; aspect-ratio:16/9; object-fit:cover; display:block;
      margin-bottom:34px; background:var(--j5-grey); }

.j5-article__meta { display:flex; flex-wrap:wrap; gap:8px 20px; align-items:baseline;
      padding-bottom:16px; margin-bottom:28px; border-bottom:1px solid var(--j5-border); }

.j5-article__chapo { font-size:19px; line-height:1.6; color:#3a433f; font-weight:600;
      max-width:68ch; margin:0 0 30px; }

.j5-partage { margin-top:44px; padding-top:26px; border-top:1px solid var(--j5-border); }

.j5-partage__t { font-family:var(--j5-font-title); font-weight:700; font-size:15px;
      margin:0 0 14px; }

.j5-partage__liens { display:flex; flex-wrap:wrap; gap:10px; }

.j5-partage__liens a { display:inline-flex; align-items:center; gap:9px;
      font-family:var(--j5-font-title); font-weight:600; font-size:14.5px;
      color:var(--j5-ink); background:#fff; border:1px solid var(--j5-border);
      padding:10px 16px; border-radius:var(--j5-r-pill); text-decoration:none; }

.j5-partage__liens a:hover { border-color:var(--j5-green); color:var(--j5-green); }

.j5-partage__liens svg { width:16px; height:16px; fill:currentColor; flex:none; }

/* Novembre 2026 — Le document joint à un article : un vrai bouton, large,
   qu'on ne peut pas prendre pour un lien du texte. */
.j5-doc { margin:30px 0; }
.j5-doc__btn { display:inline-flex; align-items:center; gap:16px; padding:18px 28px 18px 22px;
      background:var(--j5-green); color:#fff; border-radius:16px; text-decoration:none;
      box-shadow:0 8px 22px rgba(0,91,54,.22); transition:background .15s, transform .15s; max-width:100%; }
.j5-doc__btn:hover { background:var(--j5-green-2); color:#fff; transform:translateY(-1px); }
.j5-doc__btn svg { flex:none; width:30px; height:30px; padding:8px; box-sizing:content-box;
      background:rgba(255,255,255,.16); border-radius:12px; }
.j5-doc__t { display:block; font-family:var(--j5-font-title); font-weight:700; font-size:17px; line-height:1.25; }
.j5-doc__d { display:block; margin-top:3px; font-size:13.5px; opacity:.85; letter-spacing:.02em; }
@media (max-width:640px) { .j5-doc__btn { display:flex; width:100%; } }
