/* ============================================================
   MON GR20 — Granite & Braise : habillage des pages "article"
   (guides pratiques + pages légales). S'appuie sur les tokens de
   granite-braise.css. Le HTML existant (.article-*, .breadcrumb)
   n'est PAS modifié — seul l'habillage change.
   ============================================================ */

/* ---------- Fil d'Ariane (dégage la nav fixe) ---------- */
.breadcrumb{
  width:min(980px,calc(100% - 40px));margin:0 auto;
  padding:clamp(96px,13vh,132px) 0 0;
  font-size:12px;letter-spacing:.04em;color:var(--bone-dim);
}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.breadcrumb li{display:flex;align-items:center;gap:9px}
.breadcrumb li + li::before{content:"/";color:var(--line-strong)}
.breadcrumb a{color:var(--bone-dim);transition:color .25s var(--ease-out)}
.breadcrumb a:hover,.breadcrumb a:focus-visible{color:var(--ember)}
.breadcrumb [aria-current="page"]{color:var(--bone)}

/* ---------- Page + conteneur ---------- */
.article-page{
  background:
    radial-gradient(120% 56% at 50% -8%, rgba(226,104,60,.03), transparent 60%),
    var(--granite);
  color:var(--bone);
  padding:clamp(24px,4vw,40px) 0 clamp(82px,10vw,140px);
  font-family:var(--font-body);
}
/* si la page n'a PAS de fil d'Ariane, c'est .article-page qui dégage la nav */
body > main.article-page:first-of-type:not(.breadcrumb + main),
.skip-link + .article-page,
.gb-prog + .article-page{padding-top:clamp(100px,13vh,132px)}
.article-shell{width:min(980px,calc(100% - 40px));margin:0 auto}

/* ---------- Hero éditorial (sans photo) ---------- */
.article-hero{margin-bottom:clamp(34px,5vw,62px);padding:0;border:0;background:none;box-shadow:none}
.article-eyebrow{
  margin:0 0 18px;color:var(--ember);
  font-size:12px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;
}
.article-hero h1{
  font-family:var(--font-disp);font-weight:300;
  font-size:clamp(2.6rem,7vw,5.4rem);line-height:.96;letter-spacing:-.03em;
  color:var(--bone);max-width:17ch;
}
.article-hero h1 em{font-style:italic;color:var(--ember)}
.article-lead{
  max-width:62ch;margin:26px 0 0;color:var(--bone-dim);
  font-size:clamp(1.06rem,1.6vw,1.28rem);line-height:1.72;
}
.article-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.article-meta span{
  display:inline-flex;min-height:34px;align-items:center;
  border:1px solid var(--line);border-radius:999px;padding:0 14px;
  color:var(--bone-dim);font-size:.82rem;letter-spacing:.02em;font-weight:400;
}

/* ---------- Sections ---------- */
.article-section{
  margin-top:clamp(40px,6vw,72px);
  padding-top:clamp(32px,4.5vw,48px);
  border-top:1px solid var(--line);
  scroll-margin-top:96px;
}
/* La 1re section enchaine le hero : pas de filet ni d'ecart double */
.article-hero + .article-section{margin-top:clamp(20px,3vw,32px);padding-top:0;border-top:0}
/* Mesure de lecture confortable sur la prose ouverte (grilles/tables/callouts gardent leur largeur) */
.article-section > p,.article-section > ul,.article-section > ol{max-width:68ch}
.article-section__kicker{
  margin:0 0 6px;color:var(--ember);
  font-size:.82rem;font-weight:600;letter-spacing:.01em;text-transform:none;
}
.article-section h2{
  font-family:var(--font-disp);font-weight:300;
  font-size:clamp(1.7rem,3.4vw,2.7rem);line-height:1.06;letter-spacing:-.02em;
  color:var(--bone);margin:0 0 18px;
}
.article-section h2 em{font-style:italic;color:var(--ember)}
.article-section h3{
  font-family:var(--font-disp);font-weight:500;
  font-size:1.22rem;line-height:1.3;color:var(--bone);margin:24px 0 8px;
}
.article-section p,.article-section li{
  color:var(--bone-dim);font-size:1.04rem;line-height:1.75;
}
.article-section p{margin:0 0 14px}
.article-section p:last-child{margin-bottom:0}
.article-section strong{color:var(--bone);font-weight:600}
/* Liens DANS LE TEXTE uniquement (prose) — surtout pas les boutons/pills,
   sinon border-bottom écrase la bordure basse des pills (effet 3 côtés). */
.article-section p a,.article-section li a,.article-callout a,.article-lead a{
  color:var(--ember-link);font-weight:500;text-decoration:underline;
  text-decoration-color:rgba(239,122,78,.5);text-underline-offset:3px;text-decoration-thickness:1px;
  transition:text-decoration-color .25s var(--ease-out);
}
.article-section p a:hover,.article-section li a:hover,.article-callout a:hover,.article-lead a:hover,
.article-section p a:focus-visible,.article-section li a:focus-visible{text-decoration-color:var(--ember-link)}
/* Liens en cellule de tableau (ex: colonne "Lien/Read" du tableau itineraire) — etaient en texte nu */
.article-table td a{color:var(--ember-link);font-weight:600;text-decoration:underline;text-decoration-color:rgba(239,122,78,.5);text-underline-offset:3px;text-decoration-thickness:1px;transition:text-decoration-color .25s var(--ease-out)}
.article-table td a:hover,.article-table td a:focus-visible{text-decoration-color:var(--ember-link)}
.article-section ul,.article-section ol{margin:0 0 14px;padding-left:1.35em}
.article-section li{margin:7px 0}

/* ---------- Grille + cartes ---------- */
.article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.article-card{padding:22px;border:1px solid var(--line);border-radius:16px;background:rgba(0,0,0,.18)}
.article-card h3,.article-card h2{margin-top:0}
.article-card h2{font-family:var(--font-disp);font-weight:500;font-size:1.22rem;line-height:1.3;margin-bottom:12px}
.article-card p,.article-card ul{margin:0}

/* ---------- Badge + montant (scénarios) ---------- */
.article-badge{display:inline-flex;align-items:center;min-height:26px;border:1px solid rgba(226,104,60,.4);border-radius:999px;padding:0 11px;color:var(--ember);font-size:.68rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase}
.article-amount{display:block;margin:14px 0 8px;color:var(--ember);font-family:var(--font-disp);font-weight:300;font-size:2rem;line-height:1}

/* ---------- Encadré (callout) ---------- */
.article-callout{
  margin-top:22px;padding:22px 24px;
  border:1px solid rgba(226,104,60,.28);border-radius:14px;
  background:rgba(226,104,60,.09);
}
.article-callout:first-child{margin-top:0}
.article-callout p{color:var(--bone)}
.article-callout p:last-child{margin-bottom:0}

/* ---------- Sommaire ---------- */
.article-toc{margin:24px 0 0;padding:18px clamp(18px,3vw,24px);border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.18)}
.article-toc strong{display:block;font-family:var(--font-disp);font-weight:500;font-size:1.05rem;color:var(--bone);margin:0 0 12px}
.article-toc nav{display:flex;flex-wrap:wrap;gap:8px}
.article-toc a{font-size:.85rem;color:var(--bone-dim);border:1px solid var(--line);border-radius:999px;padding:6px 13px;transition:color .2s,border-color .2s}
.article-toc a:hover{color:var(--ember);border-color:var(--ember)}
.article-toc a.is-active{background:rgba(226,104,60,.14);border-color:var(--ember);color:var(--bone)}

/* Badges d'adequation — section "A qui je recommande" (rapatries de gb-pages) */
.fit-badge{display:inline-block;margin-bottom:11px;padding:3px 11px;border-radius:999px;font-size:12.5px;font-weight:500;border:1px solid var(--line);background:rgba(241,235,224,.04);color:var(--bone-dim);white-space:nowrap}
.fit-badge--yes,.fit-badge--best{border-color:var(--ember);color:var(--ember-link);background:rgba(226,104,60,.10)}
.fit-badge--best{font-weight:600}
.fit-badge--maybe{border-color:var(--line-strong);color:var(--bone)}
.fit-badge--no{border-color:var(--line);color:var(--bone-dim);background:transparent;opacity:.85}
/* Panneau "Liens utiles" en fin d'article (remplace .footer-cta de l'ancien global.css) */
.footer-cta{border:1px solid var(--line);background:rgba(241,235,224,.03);border-radius:18px;padding:clamp(20px,4vw,30px)}
.footer-cta > p{margin:0 0 18px}
/* Cibles tactiles >=44px sur mobile (sommaire, fil d'Ariane) */
@media (max-width:760px){
  .article-toc a{min-height:44px;display:inline-flex;align-items:center}
  .breadcrumb a{display:inline-flex;align-items:center;min-height:40px}
}

/* ---------- Figure ---------- */
.article-figure{margin:28px 0}
.article-figure img{width:100%;height:auto;border-radius:16px;border:1px solid var(--line)}
.article-figure figcaption{margin-top:10px;font-size:.85rem;color:var(--bone-dim);font-style:italic}


/* ---------- Profil altimétrique ---------- */
.gb-profile{margin:0 0 22px;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.2);padding:14px clamp(12px,2vw,20px)}
.gb-profile .gp-svg{display:block;width:100%;height:auto}
.gb-profile figcaption{margin-top:8px;color:var(--bone-dim);font-size:.82rem;line-height:1.5}
.gb-profile figcaption b{color:var(--bone);font-weight:600}

/* ---------- Tableaux ---------- */
.article-table-wrap{width:100%;overflow-x:auto;margin-top:20px;border:1px solid var(--line);border-radius:16px;background:rgba(0,0,0,.16)}
.article-table{width:100%;min-width:640px;border-collapse:collapse}
.article-table th,.article-table td{padding:15px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;color:var(--bone-dim);line-height:1.6;font-size:1rem}
.article-table th{background:rgba(241,235,224,.045);color:var(--bone);font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.article-table tr:last-child td{border-bottom:0}


/* difficulté colorée + totaux */
.gb-diff{font-weight:600}
.gb-diff--3{color:var(--bone-dim)}
.gb-diff--4{color:#e8b06a}
.gb-diff--5{color:var(--ember)}
.article-table tfoot td{background:rgba(226,104,60,.07);color:var(--bone);border-top:1px solid var(--line-strong)}

/* ---------- Boutons / actions ---------- */
.article-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.article-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:46px;
  padding:0 22px;border:1px solid var(--line-strong);border-radius:999px;
  background:transparent;color:var(--bone);font-family:var(--font-body);
  font-size:.92rem;font-weight:500;letter-spacing:.02em;text-decoration:none;
  transition:border-color .25s var(--ease-out),background .25s var(--ease-out),color .25s var(--ease-out);
}
.article-button:hover,.article-button:focus-visible{border-color:var(--bone);background:rgba(241,235,224,.06)}
.article-button--primary{background:var(--ember);border-color:var(--ember);color:var(--granite);font-weight:600}
.article-button--primary:hover,.article-button--primary:focus-visible{background:var(--ember-link);border-color:var(--ember-link);color:var(--granite)}

/* ---------- Listes spécifiques ---------- */
.source-list{display:grid;gap:10px;margin:18px 0 0;padding-left:20px}
.source-list a{color:var(--ember);border-bottom:1px solid transparent;transition:border-color .25s}
.source-list a:hover,.source-list a:focus-visible{border-color:var(--ember)}
.related-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.related-links a{
  display:inline-flex;min-height:42px;align-items:center;border:1px solid var(--line);
  border-radius:999px;padding:0 16px;color:var(--bone-dim);font-weight:500;text-decoration:none;
  transition:border-color .25s var(--ease-out),color .25s var(--ease-out);
}
.related-links a:hover,.related-links a:focus-visible{border-color:var(--ember);color:var(--ember)}
.check-list{display:grid;gap:11px;margin:16px 0 0;padding:0;list-style:none}
.check-list li{position:relative;padding-left:32px;color:var(--bone-dim)}
.check-list li::before{content:"";position:absolute;left:0;top:.45em;width:15px;height:15px;border:1px solid var(--ember);border-radius:4px;background:rgba(226,104,60,.12)}
/* Cases a cocher cliquables (page materiel) : meme carre orange que la checklist, mais interactif */
.check-list label{display:flex;gap:10px;align-items:flex-start;color:var(--bone-dim);cursor:pointer;line-height:1.45}
.check-list input[type="checkbox"]{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:15px;height:15px;margin:.22em 0 0;border:1px solid var(--ember);border-radius:4px;background:rgba(226,104,60,.12);cursor:pointer;transition:background .15s var(--ease-out),border-color .15s var(--ease-out)}
.check-list input[type="checkbox"]:hover{background:rgba(226,104,60,.26)}
.check-list input[type="checkbox"]:checked{background-color:var(--ember);border-color:var(--ember);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%231a1714' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:11px}
.check-list input[type="checkbox"]:focus-visible{outline:2px solid var(--ember-link);outline-offset:2px}
.article-grid--checklist{grid-template-columns:repeat(2,minmax(0,1fr))}
.article-cta{padding:24px;border:1px solid rgba(226,104,60,.4);border-radius:18px;background:linear-gradient(145deg,rgba(226,104,60,.12),rgba(241,235,224,.03))}

/* CTA contextuel en fin de section (lien vers un guide lie) : eyebrow ember + bouton plein, sans carte imbriquee */
.section-cta{margin-top:clamp(20px,3.5vw,28px);padding-top:clamp(18px,3vw,24px);border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 28px}
.section-cta__content{flex:1 1 300px}
.section-cta__content .section-cta__eyebrow{margin:0 0 6px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--ember);font-weight:600}
.section-cta__content h3{margin:0 0 7px}
.section-cta__content p{margin:0;color:var(--bone-dim)}
.section-cta__button{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:0 0 auto;padding:13px 22px;border-radius:999px;background:var(--ember);color:var(--granite);font-weight:600;text-decoration:none;border:1px solid var(--ember);transition:background .25s,border-color .25s}
.section-cta__button:hover,.section-cta__button:focus-visible{background:var(--ember-link);border-color:var(--ember-link)}

/* ---------- Vidéo (embed vertical / short) ---------- */
.gb-videowrap{display:grid;grid-template-columns:1fr minmax(0,300px);gap:clamp(24px,4vw,52px);align-items:center;margin-top:4px}
.gb-video{position:relative;width:100%;aspect-ratio:9/16;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#000}
.gb-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}

/* ---------- Responsive ---------- */
@media (max-width:760px){
  .breadcrumb{width:min(100% - 28px,980px);padding-top:clamp(82px,11vh,108px)}
  .article-shell{width:min(100% - 28px,980px)}
  .article-grid,.article-grid--checklist{grid-template-columns:1fr}
  .article-actions{flex-direction:column}
  .article-button{width:100%}
  .section-cta__button{width:100%}
  .gb-videowrap{grid-template-columns:1fr;justify-items:center}
  .gb-video{max-width:300px}
  /* Tables -> cartes empilées sur mobile (libellés via data-label) */
  .article-table-wrap{border:0;background:transparent;overflow:visible}
  .article-table{min-width:0;display:block}
  .article-table thead{display:none}
  .article-table tbody,.article-table tfoot{display:block}
  .article-table tr{display:block;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.18);margin-bottom:12px;padding:2px}
  .article-table td{display:flex;justify-content:space-between;align-items:baseline;gap:14px;text-align:right;border:0;border-bottom:1px solid var(--line);padding:9px 15px;min-width:0}
  .article-table tr td:last-child{border-bottom:0}
  .article-table td::before{content:attr(data-label);color:var(--bone-dim);font-family:var(--font-body);font-size:.7rem;letter-spacing:.05em;text-transform:uppercase;font-weight:600;text-align:left;flex:none}
  .article-table td:not([data-label])::before{display:none}
}

/* ---------- Reduced-motion ---------- */
@media (prefers-reduced-motion:reduce){
  .article-button,.related-links a,.breadcrumb a,.article-section a,.source-list a{transition:none}
}


/* ---------- Mon équipement (liste matériel réelle, page Matériel) ---------- */
.gear-cat{margin-top:8px}
.gear-cat + .gear-cat{margin-top:34px}
.article-section .gear-cat__title{
  font-family:var(--font-disp);font-weight:500;font-size:1.32rem;line-height:1.2;
  color:var(--bone);margin:0 0 6px;padding-bottom:12px;border-bottom:1px solid var(--line);
}
.gear-list{display:block}
.gear-item{padding:18px 0;border-bottom:1px solid var(--line)}
.gear-item:last-child{border-bottom:0;padding-bottom:0}
.gear-item__top{display:flex;justify-content:space-between;align-items:baseline;gap:6px 24px;flex-wrap:wrap}
.gear-item__name{
  font-family:var(--font-disp);font-weight:500;font-size:1.12rem;line-height:1.25;
  color:var(--bone);margin:0;
}
.gear-item__qty{color:var(--ember);font-size:.82em;font-weight:400;white-space:nowrap}
.gear-item__meta{display:flex;align-items:baseline;gap:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
.gear-item__w{color:var(--bone-dim);font-size:.92rem}
.gear-item__p{color:var(--bone);font-size:.92rem;font-weight:600}
.article-section .gear-item__note{margin:9px 0 0;color:var(--bone-dim);font-size:1rem;line-height:1.72;max-width:74ch}
.gear-item__link{
  display:inline-block;margin-top:11px;color:var(--ember-link);
  font-size:.85rem;font-weight:500;text-decoration:none;
  transition:color .2s var(--ease-out);
}
.gear-item__link:hover,.gear-item__link:focus-visible{color:var(--ember);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
@media (max-width:600px){
  .gear-item__top{gap:2px}
  .gear-item__meta{gap:14px}
}

/* Ancres TOC : les h2 cibles degagent la nav fixe */
.article-section h2[id]{scroll-margin-top:100px}

/* Signature d'auteur sous une section de vecu (audit 21/07/2026) */
.article-section p.gb-byline{font-family:var(--font-body);font-size:13.5px;line-height:1.5;
  color:var(--bone-dim);margin:-4px 0 18px;letter-spacing:.01em}
.article-section p.gb-byline a{color:var(--bone);text-underline-offset:3px}
.article-section p.gb-byline a:hover{color:var(--ember)}
