/*
Theme Name: Cast Invalide
*/
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

/* ==========================================================================
   GABARIT « TRIBUNE DE STARTUP »
   Une tribune se reconnait a cinq choses, et ce sont les seules qui comptent ici :
   1. une TETE TITRE GEANT de 120 px — la marque sur deux lignes a gauche, le rail
      des formats en colonne a droite, un filet de 1 px dessous ; elle tombe a 60 px
      des que la page defile ;
   2. un PREMIER ECRAN 100 % TYPOGRAPHIQUE — titre 60 px, chapo, signature, et pas
      une seule image ; l impact vient de la TAILLE, jamais de la couleur ;
   3. l ETIQUETTE DE FORMAT en pastille rectangulaire pleine encre a texte inverse :
      c est la SEULE forme du site, et elle n est jamais arrondie ;
   4. un SEUL aplat de couleur dans toute la page — la bande « La tribune du moment » ;
   5. du noir franc, du blanc, des filets, et rien d autre.
   Aucune ombre, aucun degrade, aucun arrondi (--rayon:0), aucune carte a bordure.
   ========================================================================== */

/* ---------- 1. JETONS ----------------------------------------------------- */
:root{
  --fond:#FDFDFD;            /* le blanc de la page, neutre et franc */
  --encre:#0E0E0E;           /* le noir d impression — jamais #000 */
  --doux:#4E4E4E;            /* le gris de service : chapos, dates, signatures */
  --filet:#E1E1E1;           /* le seul trait de separation du gabarit */
  --filet-fort:#0E0E0E;      /* le filet gras qui ouvre une bande de format */
  --surf:#F0F0F0;            /* la surface morte (plaque de repli jr_vignette) */
  --accent:#0F7897;       /* l aplat unique — tire par site */
  --accent2:#9F161B;     /* le second accent, reserve aux reperes de lecture */
  /* accent LISIBLE en texte : assombri, sinon un accent vif tombe sous 4,5:1 */
  --accent-txt:color-mix(in srgb, #0F7897 52%, #0d0d0d);
  /* l aplat pleine largeur : assombri pour que le blanc dessus tienne 4,5:1
     quelle que soit la teinte tiree (verifie sur un jaune vif : 5,5:1) */
  --aplat:color-mix(in srgb, #0F7897 52%, #06070b);
  --titre:'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --courant:'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  --rayon:0px;               /* rien n est arrondi, images et pastilles comprises */
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --fond:#0A0A0A; --encre:#EFEFEF; --doux:#9A9A9A; --filet:#212121;
    --filet-fort:#EFEFEF; --surf:#131313;
    --accent-txt:color-mix(in srgb, #0F7897 66%, #ffffff);
    --aplat:color-mix(in srgb, #0F7897 52%, #06070b);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --fond:#0A0A0A; --encre:#EFEFEF; --doux:#9A9A9A; --filet:#212121;
  --filet-fort:#EFEFEF; --surf:#131313;
  --accent-txt:color-mix(in srgb, #0F7897 66%, #ffffff);
  --aplat:color-mix(in srgb, #0F7897 52%, #06070b);
  color-scheme:dark;
}

/* ---------- 2. SOCLE ------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--fond);color:var(--encre);
  font-family:var(--courant);font-size:17px;line-height:1.7;
  -webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block;border-radius:0}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
:focus-visible{outline:2px solid var(--accent-txt);outline-offset:3px}
h1,h2,h3,h4{font-family:var(--titre);font-weight:700;margin:0;line-height:1.08;
  letter-spacing:-.025em;text-wrap:balance}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
.sb-oeil,.sb-oeil-txt{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.sb-oeil:focus{left:.5rem;top:.5rem;width:auto;height:auto;padding:.55rem .9rem;
  background:var(--encre);color:var(--fond);z-index:99;font-weight:600}
.tb-enveloppe{width:min(1240px,100% - 2.8rem);margin-inline:auto}
.tb-sep{color:var(--filet);padding-inline:.45em}

/* LA SIGNATURE DE LA MAISON : la pastille de format.
   Une seule forme dans tout le site — rectangle plein, encre, texte inverse. */
.tb-pastille{display:inline-block;background:var(--encre);color:var(--fond);
  font-family:var(--courant);font-size:10px;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;line-height:1;padding:.42rem .6rem .38rem;border-radius:0}

/* le point accent de 8 px : reserve aux « + lus », nulle part ailleurs */
.tb-point{display:inline-block;width:8px;height:8px;background:var(--accent);
  flex:0 0 auto;border-radius:0}

.tb-chapo{font-size:17px;line-height:1.7;color:var(--doux);margin-top:.9rem}
.tb-chapo--grand{font-size:20px;line-height:1.55;max-width:min(64ch,100%)}
.tb-signe{font-size:12px;letter-spacing:.05em;color:var(--doux);margin-top:1.1rem;
  display:flex;flex-wrap:wrap;align-items:center}
.tb-signe-nom{font-weight:600;color:var(--encre)}
.tb-module-titre{font-family:var(--courant);font-size:11px;font-weight:700;
  letter-spacing:.2em;text-transform:uppercase;color:var(--encre);
  padding-bottom:.6rem;border-bottom:2px solid var(--filet-fort);margin-bottom:1.2rem}

/* ---------- 3. LA TETE TITRE GEANT (120 px -> 60 px) ---------------------- */
.tb-tete{background:var(--fond);border-bottom:1px solid var(--filet);
  position:sticky;top:0;z-index:30}
.tb-tete-in{display:grid;grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;align-items:center;gap:.1rem 2rem;min-height:120px;
  padding-block:1rem}
.tb-marque{grid-column:1;grid-row:1}
.tb-marque a{display:flex;align-items:flex-start;gap:.7rem}
.tb-marque a:hover{text-decoration:none}
.tb-mono{display:inline-flex;width:34px;flex:0 0 auto;color:var(--accent-txt);margin-top:.2rem}
.tb-mono svg{width:100%;height:auto;fill:currentColor}
/* la marque tient sur DEUX lignes : la largeur est bridee, le mot casse tout seul */
.tb-marque-mot{font-family:var(--titre);font-weight:700;
  font-size:clamp(26px,4.4vw,44px);line-height:1;letter-spacing:-.035em;
  max-width:9ch;display:block}
.tb-baseline{grid-column:1;grid-row:2;font-size:11px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--doux);margin-top:.5rem}

.tb-rail{grid-column:2;grid-row:1 / span 2;border-left:1px solid var(--filet);
  padding-left:2rem;align-self:stretch;display:flex;flex-direction:column;
  justify-content:center;gap:.5rem}
.tb-rail-t{font-size:10px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:var(--doux)}
/* le rail EN COLONNE : les formats s empilent, puis debordent en colonnes voisines */
.tb-rail-in{display:flex;flex-direction:column;flex-wrap:wrap;max-height:66px;
  align-content:flex-start;column-gap:1.6rem}
.tb-rail-in a{font-size:12.5px;font-weight:600;line-height:1.7;color:var(--encre);
  white-space:nowrap;border-bottom:1px solid transparent}
.tb-rail-in a:hover{text-decoration:none;border-bottom-color:var(--accent)}
.tb-rail-in a.is-actif{border-bottom-color:var(--encre)}
.tb-loupe input{font:inherit;font-size:12.5px;padding:.4rem .55rem;width:min(180px,100%);
  border:1px solid var(--filet);border-radius:0;background:var(--fond);color:var(--encre)}
.tb-loupe input::placeholder{color:var(--doux)}
.tb-burger{display:none;grid-column:2;grid-row:1;justify-self:end;
  background:none;border:1px solid var(--filet);padding:.55rem .6rem;cursor:pointer;border-radius:0}
.tb-burger span{display:block;width:18px;height:2px;background:var(--encre);margin:3px 0}

/* la reduction a 60 px : la baseline et la recherche s effacent */
.tb-tete.is-compact .tb-tete-in{min-height:60px;padding-block:.4rem}
.tb-tete.is-compact .tb-marque-mot{font-size:clamp(18px,2.4vw,22px);max-width:none}
.tb-tete.is-compact .tb-mono{width:22px}
.tb-tete.is-compact .tb-baseline,
.tb-tete.is-compact .tb-rail-t,
.tb-tete.is-compact .tb-loupe{display:none}
.tb-tete.is-compact .tb-rail-in{flex-direction:row;max-height:none;column-gap:1.3rem}
@media (prefers-reduced-motion: no-preference){
  .tb-tete-in,.tb-marque-mot{transition:min-height .18s ease, font-size .18s ease}
}

/* ---------- 4. L OUVERTURE : pas une image dans le premier ecran ---------- */
.tb-ouverture{border-bottom:1px solid var(--filet);background:var(--fond)}
.tb-ouverture-in{padding-block:4.2rem 3.4rem;max-width:min(78ch,100%)}
.tb-ouverture .tb-pastille{margin-bottom:1.4rem}
.tb-geant{font-size:clamp(32px,5.6vw,60px);line-height:1.02;letter-spacing:-.035em;
  font-weight:700}
.tb-geant--moyen{font-size:clamp(26px,3.6vw,38px)}
.tb-ouverture--second .tb-ouverture-in{padding-block:2.6rem}
.tb-ouverture--format .tb-ouverture-in{padding-block:3.6rem 2.6rem}
.tb-vide{padding-block:3rem}

/* ---------- 5. LES CARTES : bord nul, image 16:9, pastille, signature ----- */
.tb-grille3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.4rem 2rem}
.tb-carte{display:flex;flex-direction:column;align-items:flex-start;border:0;
  background:none;box-shadow:none;border-radius:0}
.tb-carte-img{display:block;width:100%;margin-bottom:1rem}
.tb-carte-img img,.tb-carte-img .jr-plaque{width:100%;aspect-ratio:16/9;object-fit:cover;
  border-radius:0;filter:saturate(.92) contrast(1.04)}
.tb-carte .tb-pastille{margin-bottom:.7rem}
.tb-carte-titre{font-size:20px;line-height:1.2;font-weight:700}
.tb-carte-chapo{font-size:14.5px;line-height:1.6;color:var(--doux);margin-top:.55rem}
.tb-carte-signe{font-size:12px;color:var(--doux);margin-top:.7rem;letter-spacing:.03em}
.tb-triptyque{padding-block:3rem}

/* ---------- 6. L APLAT : le SEUL de la page. Un aplat, pas une image ------ */
.tb-aplat{background:var(--aplat);color:#ffffff;margin-block:1rem}
.tb-aplat-in{padding-block:3.4rem;max-width:min(72ch,100%)}
.tb-aplat-t{font-size:10px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;
  color:#ffffff;opacity:.86;margin-bottom:1.1rem}
.tb-aplat-titre{font-size:clamp(26px,4vw,44px);line-height:1.06;color:#ffffff}
.tb-aplat-titre a{color:#ffffff}
.tb-aplat-chapo{font-size:17px;line-height:1.65;color:#ffffff;opacity:.92;margin-top:1rem}
.tb-aplat-signe{font-size:12px;letter-spacing:.05em;color:#ffffff;opacity:.86;margin-top:1.2rem}
.tb-aplat .tb-sep{color:#ffffff;opacity:.5}

/* ---------- 7. LES BANDES DE FORMAT --------------------------------------- */
.tb-ancres{display:flex;flex-wrap:wrap;gap:.5rem 1.6rem;padding-block:2.4rem 0;
  font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.tb-ancres a{color:var(--accent-txt);border-bottom:1px solid transparent;padding-bottom:2px}
.tb-ancres a:hover{text-decoration:none;border-bottom-color:var(--accent-txt)}
.tb-bande{padding-block:2.6rem;scroll-margin-top:130px}
.tb-bande-tete{display:flex;align-items:baseline;gap:1.2rem;flex-wrap:wrap;
  padding-bottom:.8rem;border-bottom:2px solid var(--filet-fort);margin-bottom:1.8rem}
.tb-bande-titre{font-size:26px;font-weight:700;letter-spacing:-.02em}
.tb-bande-chapo{font-size:14px;color:var(--doux);flex:1 1 260px}
.tb-bande-tout{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent-txt);margin-left:auto;white-space:nowrap}
.tb-bande--suite{border-top:1px solid var(--filet);margin-top:2.4rem}

/* ---------- 8. LES + LUS ET L ECOSYSTEME ---------------------------------- */
.tb-fin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  gap:0 3.2rem;padding-block:3rem 4rem;border-top:1px solid var(--filet);margin-top:2rem}
.tb-lus-liste li{display:flex;align-items:baseline;gap:.8rem;padding:.9rem 0;
  border-bottom:1px solid var(--filet)}
.tb-lus-liste li:first-child{border-top:1px solid var(--filet)}
.tb-lus-liste .tb-point{align-self:center}
.tb-rang{font-family:var(--titre);font-size:15px;font-weight:700;color:var(--doux);
  font-variant-numeric:tabular-nums;flex:0 0 auto;min-width:1.2em}
.tb-lus-txt{display:block;min-width:0}
.tb-lus-txt a{font-family:var(--titre);font-size:17px;font-weight:600;line-height:1.25;
  display:block}
.tb-lus-format{display:block;font-size:10px;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--doux);margin-top:.35rem}

.tb-eco-liste li{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) auto;
  align-items:baseline;gap:.4rem 1.2rem;padding:.9rem 0;border-bottom:1px solid var(--filet)}
.tb-eco-liste li:first-child{border-top:1px solid var(--filet)}
.tb-eco-nom{font-family:var(--titre);font-size:18px;font-weight:700;letter-spacing:-.02em}
.tb-eco-chapo{font-size:13.5px;color:var(--doux);line-height:1.5;min-width:0}
.tb-eco-compte{font-size:12px;font-weight:700;color:var(--doux);
  font-variant-numeric:tabular-nums}
.tb-autres{padding-block:2.6rem 3.4rem;border-top:1px solid var(--filet);margin-top:2rem}

/* ---------- 9. LE TEXTE (single) ----------------------------------------- */
.tb-art-tete{border-bottom:1px solid var(--filet)}
.tb-art-tete-in{padding-block:2.6rem 2.4rem;max-width:min(78ch,100%)}
.tb-ariane{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--doux);margin-bottom:1.4rem}
.tb-art-tete .tb-pastille{margin-bottom:1.2rem}
.tb-art-titre{font-size:clamp(30px,4.8vw,54px);line-height:1.04;letter-spacing:-.035em}
.tb-art-chapo{font-size:22px;line-height:1.55;color:var(--doux);margin-top:1.2rem;
  max-width:min(62ch,100%)}
.tb-auteur{margin-top:1.8rem;padding-top:1.1rem;border-top:1px solid var(--filet)}
.tb-auteur-nom{font-family:var(--titre);font-size:16px;font-weight:700}
.tb-auteur-fonction{font-size:13.5px;color:var(--doux);margin-top:.2rem;line-height:1.5}
.tb-auteur-date{font-size:12px;color:var(--doux);margin-top:.5rem;letter-spacing:.04em}

.tb-art-corps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,280px);
  gap:3.2rem;padding-block:2.6rem 3rem;align-items:start}
.tb-art-lecture{min-width:0}
.tb-art-illu{margin:0 0 2rem}
.tb-art-illu img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:0}
.tb-art-illu figcaption{font-size:12px;color:var(--doux);padding-top:.5rem;margin-top:.5rem;
  border-top:1px solid var(--filet)}

.tb-corps{font-size:17px;line-height:1.75;max-width:min(70ch,100%)}
.tb-corps p{margin:0 0 1.3rem}
.tb-corps h2{font-family:var(--titre);font-size:28px;line-height:1.15;letter-spacing:-.03em;
  margin:2.6rem 0 .9rem;padding-top:.9rem;border-top:2px solid var(--filet-fort);
  scroll-margin-top:140px}
.tb-corps h3{font-size:21px;margin:1.9rem 0 .6rem;letter-spacing:-.02em}
.tb-corps ul{margin:0 0 1.3rem}
.tb-corps ul li{position:relative;padding-left:1.3rem;margin-bottom:.55rem}
.tb-corps ul li::before{content:"";position:absolute;left:0;top:.72em;width:8px;height:8px;
  background:var(--accent)}
.tb-corps ol{list-style:decimal;margin:0 0 1.3rem;padding-left:1.5rem}
.tb-corps ol li{margin-bottom:.55rem;padding-left:.2rem}
.tb-corps ol li::marker{color:var(--accent2);font-weight:700}
.tb-corps a{color:var(--accent-txt);text-decoration:underline;text-underline-offset:3px}
.tb-corps blockquote{margin:2rem 0;padding:0 0 0 1.6rem;border-left:4px solid var(--accent);
  font-family:var(--titre);font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-.02em}
.tb-corps blockquote p{margin:0 0 .6rem}
.tb-corps blockquote cite{display:block;font-family:var(--courant);font-size:13px;
  font-weight:500;font-style:normal;color:var(--doux);letter-spacing:.04em}
.tb-corps figure{margin:2rem 0}
.tb-corps figcaption{font-size:12px;color:var(--doux);padding-top:.5rem;margin-top:.5rem;
  border-top:1px solid var(--filet)}
.tb-corps img{margin:1.8rem 0}
.tb-corps code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;
  background:var(--surf);padding:.1rem .35rem;border-radius:0}
.tb-corps pre{background:var(--surf);padding:1rem 1.1rem;overflow-x:auto;margin:1.6rem 0;
  border-left:4px solid var(--filet-fort);border-radius:0}
.tb-corps pre code{background:none;padding:0}
/* tout tableau large tient dans son propre defilement : jamais la page */
.tb-corps table{width:100%;border-collapse:collapse;font-size:15px;margin:1.8rem 0;
  display:block;overflow-x:auto}
.tb-corps th,.tb-corps td{border-bottom:1px solid var(--filet);padding:.7rem .6rem;
  text-align:left;vertical-align:top}
.tb-corps th{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;
  border-bottom:2px solid var(--filet-fort)}
.tb-art-pied{margin-top:2.6rem;padding-top:1.6rem;border-top:1px solid var(--filet);
  max-width:min(70ch,100%)}

/* le rail : sommaire collant, « A qui ca s adresse », transparence */
.tb-cote{position:sticky;top:130px;display:flex;flex-direction:column;gap:1.8rem}
.tb-bloc{border-top:2px solid var(--filet-fort);padding-top:.9rem}
.tb-bloc-t{font-size:10px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:var(--encre);margin-bottom:.8rem}
.tb-sommaire ol{counter-reset:tb}
.tb-sommaire li{counter-increment:tb;border-bottom:1px solid var(--filet)}
.tb-sommaire a{display:block;padding:.55rem 0 .55rem 1.9rem;position:relative;
  font-size:14px;line-height:1.35;color:var(--doux)}
.tb-sommaire a::before{content:counter(tb);position:absolute;left:0;top:.55rem;
  font-size:11px;font-weight:700;color:var(--doux);font-variant-numeric:tabular-nums}
.tb-sommaire a:hover,.tb-sommaire a.is-actif{color:var(--encre);text-decoration:none}
.tb-sommaire a.is-actif::before{color:var(--accent-txt)}
.tb-adresse-txt{font-size:14px;line-height:1.6;color:var(--doux)}
.tb-bloc-lien{display:inline-block;margin-top:.8rem;font-size:11px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--accent-txt)}
.tb-transparence{border-top-color:var(--accent2)}
.tb-transparence-txt{font-size:13.5px;line-height:1.6;color:var(--doux)}

/* ---------- 10. SIGNATURE D AUTEUR (produite par jr_signature) ------------ */
.sb-signature{display:flex;gap:1.2rem;align-items:flex-start}
.sb-signature img{width:64px;height:64px;border-radius:0;filter:grayscale(1) contrast(1.05)}
.sb-signature-nom{font-family:var(--titre);font-weight:700;font-size:16px}
.sb-signature-bio{font-size:14px;color:var(--doux);margin-top:.3rem;line-height:1.6}
.sb-date{font-size:11.5px;color:var(--doux);margin-top:.45rem;letter-spacing:.05em}
/* la plaque de repli de jr_vignette, remise au registre de la maison */
.jr-plaque{border-radius:0!important;background:var(--surf);color:var(--doux);
  font-family:var(--titre);letter-spacing:-.02em}

/* ---------- 11. PIED DE PAGE ---------------------------------------------- */
.tb-pied{margin-top:2rem;border-top:2px solid var(--filet-fort);background:var(--fond)}
.tb-pied-tete{padding-block:2.4rem 1.6rem;border-bottom:1px solid var(--filet)}
.tb-pied-marque{display:flex;align-items:center;gap:.7rem;font-family:var(--titre);
  font-size:clamp(24px,3.4vw,34px);font-weight:700;letter-spacing:-.035em}
.tb-mono--pied{width:26px}
.tb-pied-baseline{font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--doux);margin-top:.6rem}
.tb-pied-grille{display:grid;grid-template-columns:1.3fr 1fr 1.3fr 1fr;gap:0;
  padding-block:2.2rem}
.tb-pied-col{padding-inline:2rem}
.tb-pied-col:first-child{padding-left:0}
.tb-pied-col:last-child{padding-right:0}
.tb-pied-col + .tb-pied-col{border-left:1px solid var(--filet)}
.tb-pied-titre{font-family:var(--courant);font-size:10px;font-weight:700;letter-spacing:.2em;
  text-transform:uppercase;padding-bottom:.6rem;border-bottom:1px solid var(--filet);
  margin-bottom:.9rem;color:var(--doux)}
.tb-pied-liste li{padding:.35rem 0;font-size:14px;display:flex;justify-content:space-between;
  gap:.8rem}
.tb-pied-liste--textes li{display:block;line-height:1.4;padding:.5rem 0;
  border-bottom:1px solid var(--filet)}
.tb-pied-compte{font-size:11px;color:var(--doux);font-variant-numeric:tabular-nums}
.tb-pied-note{font-size:12px;color:var(--doux);margin-top:.8rem;line-height:1.55}
.tb-pied input[type="search"],.tb-pied input[type="text"]{font:inherit;font-size:13px;
  width:100%;padding:.5rem .6rem;border:1px solid var(--filet);border-radius:0;
  background:var(--fond);color:var(--encre)}
.tb-pied button[type="submit"],.tb-pied input[type="submit"]{font:inherit;font-size:10px;
  font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-top:.5rem;
  padding:.5rem .9rem;border:1px solid var(--encre);background:var(--encre);
  color:var(--fond);border-radius:0;cursor:pointer}
.tb-ours{display:flex;justify-content:space-between;align-items:center;gap:1rem;
  flex-wrap:wrap;padding-block:1rem 1.2rem;border-top:1px solid var(--filet);
  font-size:11.5px;color:var(--doux)}
.tb-bascule{font:inherit;font-size:10px;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;padding:.45rem .8rem;border:1px solid var(--filet);
  background:none;color:var(--encre);border-radius:0;cursor:pointer}

.tb-pagination{padding-block:2rem 0;margin-top:2.4rem;border-top:1px solid var(--filet);
  display:flex;gap:.4rem;font-size:13px;font-weight:600;flex-wrap:wrap}
.tb-pagination .page-numbers{padding:.45rem .8rem;border:1px solid var(--filet);border-radius:0}
.tb-pagination .current{background:var(--encre);color:var(--fond);border-color:var(--encre)}

/* ---------- 12. BARRE MOBILE BASSE (R-0022, structure du modele) ---------- */
.sb-nav-mobile{display:none;position:fixed;left:0;right:0;bottom:0;z-index:40;
  background:var(--fond);border-top:1px solid var(--filet);
  padding-bottom:env(safe-area-inset-bottom)}
.sb-nav-mobile-item{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:.45rem .2rem .5rem;font-size:10px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--doux);text-align:center}
.sb-nav-mobile-item:hover{text-decoration:none}
.sb-nav-mobile-item.is-actif{color:var(--accent-txt)}
.sb-nav-ico{display:block;width:20px;height:20px}
.sb-nav-ico svg{width:100%;height:100%;stroke:currentColor;fill:none}

/* ---------- 13. REPLIS : jamais un debordement horizontal ------------------ */
@media (max-width: 1080px){
  .tb-grille3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tb-art-corps{grid-template-columns:minmax(0,1fr)}
  .tb-cote{position:static;flex-direction:row;flex-wrap:wrap;gap:2rem}
  .tb-cote .tb-bloc{flex:1 1 260px}
  .tb-fin{grid-template-columns:minmax(0,1fr);row-gap:2.6rem}
  .tb-pied-grille{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:1.8rem}
  .tb-pied-col{padding-inline:1.4rem}
  .tb-pied-col:nth-child(odd){padding-left:0;border-left:0}
}
@media (max-width: 860px){
  .tb-tete-in{min-height:auto;padding-block:.9rem}
  .tb-marque-mot{max-width:none}
  .tb-burger{display:block}
  /* le rail passe sous la marque et se replie derriere le bouton */
  .tb-rail{grid-column:1 / -1;grid-row:3;border-left:0;border-top:0;
    padding-left:0;padding-top:0;margin-top:0;max-height:0;overflow:hidden}
  .tb-rail.is-ouvert{max-height:none;overflow:visible;margin-top:.9rem;padding-top:.9rem;
    border-top:1px solid var(--filet)}
  .tb-rail-in{flex-direction:column;max-height:none}
  .tb-rail-in a{padding:.5rem 0;border-bottom:1px solid var(--filet);width:100%}
  .tb-tete.is-compact .tb-rail-in{flex-direction:column}
}
@media (max-width: 760px){
  body{font-size:16px;padding-bottom:64px}
  .tb-enveloppe{width:min(1240px,100% - 2rem)}
  .tb-grille3{grid-template-columns:minmax(0,1fr);gap:2.2rem}
  .tb-ouverture-in{padding-block:2.4rem 2rem}
  .tb-aplat-in{padding-block:2.4rem}
  .tb-art-chapo{font-size:19px}
  .tb-corps h2{font-size:24px}
  .tb-eco-liste li{grid-template-columns:minmax(0,1fr) auto}
  .tb-eco-chapo{grid-column:1 / -1}
  .tb-pied-grille{grid-template-columns:minmax(0,1fr)}
  .tb-pied-col{padding-inline:0;border-left:0}
  .tb-pied-col + .tb-pied-col{border-left:0;border-top:1px solid var(--filet);
    padding-top:1.2rem;margin-top:.4rem}
  .sb-nav-mobile{display:flex}
  .tb-cote{flex-direction:column}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;
    scroll-behavior:auto!important}
}
@media print{
  .tb-rail,.tb-burger,.sb-nav-mobile,.tb-cote,.tb-bascule,.tb-ancres{display:none!important}
  .tb-tete{position:static}
  .tb-aplat{background:none;color:#000}
  .tb-aplat-titre,.tb-aplat-titre a,.tb-aplat-chapo,.tb-aplat-signe,.tb-aplat-t{color:#000}
}

/* garde-fou : un display:grid/flex de classe bat l attribut hidden (vu le 04/09) */
[hidden]{display:none!important}

/* P-470 — la 1re carte de l accueil porte grid-column:span 2 en style INLINE.
   Sur telephone la grille n a plus qu une colonne : le span fabrique une colonne
   implicite dimensionnee sur le contenu (526px dans un ecran de 390) et pousse la page.
   !important est indispensable : on annule un style inline. */
@media (max-width:760px){.sb-grille>*{grid-column:auto!important}}

/* P-470 — la plume cite ses sources en URL BRUTE entre parentheses. Une URL ne
   contient aucun point de coupure : le paragraphe fait 677px de large dans une colonne
   de 329 et la page deborde de 351px sur telephone. Le piege : AUCUN element ne depasse
   le viewport (getBoundingClientRect ne voit rien), c est le contenu qui deborde de son
   propre element — seul scrollWidth > clientWidth le montre. */
.sb-corps{overflow-wrap:anywhere}

/* P-491 — display:contents : le h1 de la marque n existe pas pour la mise en page. */
.sb-marque-h1{display:contents}
