/* Doubayi — guides (site/guides/) : mise en page de journal en ligne.
   Titres en Barlow Condensed (serrés et gras, comme la presse), texte en Inter.
   Encre presque noire, filets fins, un seul accent : l'orange Doubayi. */

.gd{
  --encre:#111111;
  --texte:#2B2B2B;
  --gris:#6B6B6B;
  --filet:#E6E6E6;
  --fond:#FFFFFF;
  --fond-doux:#F6F5F2;
  --orange:#F5A623;
  --orange-fonce:#B86E00;
  --titres:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;
  margin:0;background:var(--fond);color:var(--texte);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;
}
.gd a{color:inherit;text-decoration:none}
.gd-conteneur{max-width:1160px;margin:0 auto;padding:0 16px}
@media (min-width:640px){.gd-conteneur{padding:0 24px}}
.gd-visuellement-cache{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- En-tête : marque, puis barre noire des rubriques ---------- */
.gd-rubriques{background:var(--encre)}
.gd-rubriques-defile{max-width:1160px;margin:0 auto;padding:0 8px;display:flex;overflow-x:auto;scrollbar-width:none}
.gd-rubriques-defile::-webkit-scrollbar{display:none}
@media (min-width:640px){.gd-rubriques-defile{padding:0 16px}}
.gd-rubriques a{flex:none;padding:13px 12px 11px;font-family:var(--titres);font-weight:700;font-size:16px;text-transform:uppercase;letter-spacing:.03em;color:#D9D9D9;border-bottom:3px solid transparent;white-space:nowrap}
.gd-rubriques a:hover{color:#fff}
.gd-rubriques a[aria-current]{color:#fff;border-bottom-color:var(--orange)}

/* ---------- Éléments communs ---------- */
.gd-surtitre{display:block;font-family:var(--titres);font-weight:700;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:var(--orange-fonce);margin:0 0 6px}
.gd a.gd-surtitre{color:var(--orange-fonce)}
.gd-surtitre--clair{color:var(--orange)}
.gd-section-titre{display:flex;align-items:center;gap:10px;margin:0;font-family:var(--titres);font-weight:800;font-size:22px;text-transform:uppercase;letter-spacing:.03em;color:var(--encre)}
.gd-section-titre::before{content:"";width:6px;height:20px;background:var(--orange);flex:none}
.gd-bouton{display:inline-flex;align-items:center;justify-content:center;padding:13px 22px;border-radius:999px;background:var(--orange);color:#2A1A00 !important;font-weight:700;font-size:15px;white-space:nowrap}
.gd-bouton:hover{background:#FFB938}
.gd-fil-ariane{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0 0;font-size:13px;color:var(--gris)}
.gd-fil-ariane a:hover{color:var(--orange-fonce)}
.gd-fil-ariane [aria-current]{color:var(--encre);font-weight:600}

/* ---------- Cartes d'articles ---------- */
.gd-carte-lien{display:flex;flex-direction:column;gap:12px;height:100%}
.gd-carte-image{display:block;position:relative;overflow:hidden;background:var(--fond-doux);aspect-ratio:16/9}
.gd-carte-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.gd-carte-lien:hover .gd-carte-image img{transform:scale(1.03)}
.gd-carte-lien:hover .gd-carte-titre{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.gd-carte-texte{display:flex;flex-direction:column}
.gd-carte-titre{margin:0;font-family:var(--titres);font-weight:700;font-size:24px;line-height:1.08;color:var(--encre)}
.gd-carte-chapeau{margin-top:8px;font-size:15px;line-height:1.5;color:var(--texte);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gd-carte-meta{margin-top:10px;font-size:12.5px;color:var(--gris)}
/* La une : très grande */
.gd-carte--une .gd-carte-titre{font-size:clamp(32px,4.6vw,52px);line-height:1.02;letter-spacing:-.01em}
.gd-carte--une .gd-carte-chapeau{font-size:17px;-webkit-line-clamp:4}
.gd-carte--une .gd-surtitre{font-size:15px}
/* En ligne : vignette carrée à gauche */
.gd-carte--ligne .gd-carte-lien{flex-direction:row;gap:14px;align-items:flex-start}
.gd-carte--ligne .gd-carte-image{flex:none;width:120px;aspect-ratio:4/3}
@media (min-width:640px){.gd-carte--ligne .gd-carte-image{width:160px}}
.gd-carte--ligne .gd-carte-titre{font-size:20px}
.gd-carte--ligne .gd-carte-meta{margin-top:6px}

/* ---------- Accueil : la une et le fil ---------- */
.gd-accueil{padding-top:24px}
.gd-une-grille{display:grid;gap:28px;grid-template-columns:minmax(0,1fr)}
@media (min-width:980px){.gd-une-grille{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:36px}}
.gd-fil{border-top:3px solid var(--encre);padding-top:14px}
@media (min-width:980px){.gd-fil{border-top:0;border-left:1px solid var(--filet);padding:0 0 0 28px}}
.gd-fil-liste{list-style:none;margin:12px 0 0;padding:0}
.gd-fil-liste li{border-bottom:1px solid var(--filet)}
.gd-fil-liste li:last-child{border-bottom:0}
.gd-fil-liste a{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;padding:14px 0}
.gd-fil-liste time{font-family:var(--titres);font-weight:700;font-size:15px;color:var(--orange-fonce);text-transform:uppercase;padding-top:1px}
.gd-fil-liste strong{display:block;font-family:var(--titres);font-weight:700;font-size:19px;line-height:1.12;color:var(--encre)}
.gd-fil-liste .gd-surtitre{font-size:12px;margin-bottom:3px;color:var(--gris)}
.gd-fil-liste a:hover strong{text-decoration:underline;text-underline-offset:3px}

/* Les plus lus : bande de grands numéros */
.gd-plus-lus-bande{margin:40px 0 0;padding:22px 0 6px;border-top:3px solid var(--encre);border-bottom:1px solid var(--filet)}
.gd-plus-lus-bande ol{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:0 28px;grid-template-columns:minmax(0,1fr)}
@media (min-width:700px){.gd-plus-lus-bande ol{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1080px){.gd-plus-lus-bande ol{grid-template-columns:repeat(5,minmax(0,1fr))}}
.gd-plus-lus-bande a{display:flex;gap:12px;align-items:flex-start;padding:10px 0 16px;font-family:var(--titres);font-weight:700;font-size:19px;line-height:1.12;color:var(--encre)}
.gd-plus-lus-bande a:hover span:last-child{text-decoration:underline;text-underline-offset:3px}
.gd-rang{flex:none;font-family:var(--titres);font-weight:800;font-size:44px;line-height:.85;color:var(--orange);min-width:28px}

/* Rangées par rubrique : une grande + une liste */
.gd-rangee{margin:44px 0 0}
.gd-rangee-tete{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 14px;margin:0 0 20px;border-bottom:3px solid var(--encre)}
.gd-rangee-tete a:hover{color:var(--orange-fonce)}
.gd-tout-voir{font-size:14px;font-weight:600;color:var(--orange-fonce);white-space:nowrap}
.gd-rangee-grille{display:grid;gap:24px;grid-template-columns:minmax(0,1fr)}
@media (min-width:860px){.gd-rangee-grille{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px}}
.gd-rangee-liste{display:flex;flex-direction:column;gap:18px}
.gd-rangee-liste .gd-carte + .gd-carte{padding-top:18px;border-top:1px solid var(--filet)}
.gd-grille{display:grid;gap:32px 24px;grid-template-columns:minmax(0,1fr)}
@media (min-width:640px){.gd-grille{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:980px){.gd-rangee .gd-grille,.gd-accueil .gd-grille{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Page d'une rubrique */
.gd-rubrique-titre{margin:10px 0 28px;padding-bottom:14px;border-bottom:3px solid var(--encre);font-family:var(--titres);font-weight:800;font-size:clamp(36px,6vw,60px);line-height:1;text-transform:uppercase;color:var(--encre)}
.gd-avec-cote{display:grid;gap:40px;grid-template-columns:minmax(0,1fr)}
@media (min-width:1000px){.gd-avec-cote{grid-template-columns:minmax(0,1fr) 300px;gap:56px}}
.gd-pages{display:flex;justify-content:center;gap:20px;margin:40px 0 0;font-size:14px;color:var(--gris)}
.gd-pages a{font-weight:700;color:var(--orange-fonce)}

/* Colonne : les plus lus (liste numérotée) */
.gd-plus-lus{border-top:3px solid var(--encre);padding-top:14px}
.gd-plus-lus ol{list-style:none;margin:10px 0 0;padding:0}
.gd-plus-lus li + li{border-top:1px solid var(--filet)}
.gd-plus-lus a{display:flex;gap:14px;padding:14px 0}
.gd-plus-lus strong{display:block;font-family:var(--titres);font-weight:700;font-size:18px;line-height:1.12;color:var(--encre)}
.gd-plus-lus .gd-surtitre{font-size:12px;margin-bottom:3px;color:var(--gris)}
.gd-plus-lus a:hover strong{text-decoration:underline;text-underline-offset:3px}
.gd-plus-lus .gd-rang{font-size:38px}
.gd-cote-colle{position:sticky;top:124px}

/* ---------- Page de lecture ---------- */
.gd-apercu{margin:0;padding:10px 16px;background:#FFF4D6;color:#7A4E00;font-size:14px;text-align:center;border-bottom:1px solid #F0D9A0}
.gd-lecture-tete{max-width:860px;margin:18px 0 0}
.gd-lecture-tete .gd-surtitre{font-size:16px}
.gd-lecture h1{margin:4px 0 0;font-family:var(--titres);font-weight:800;font-size:clamp(36px,5.6vw,62px);line-height:1;letter-spacing:-.01em;color:var(--encre)}
.gd-chapeau{margin:18px 0 0;font-size:19px;line-height:1.5;font-weight:600;color:var(--encre)}
@media (min-width:760px){.gd-chapeau{font-size:21px}}
.gd-signature{display:flex;flex-wrap:wrap;gap:6px 14px;margin:20px 0 0;padding:14px 0 0;border-top:1px solid var(--filet);font-size:13.5px;color:var(--gris)}
.gd-signature b{color:var(--encre);font-weight:600}
.gd-signature > * + *::before{content:"·";margin-right:14px;color:#BDBDBD}
.gd-partage{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.gd-partage a,.gd-partage button{padding:8px 14px;border:1px solid var(--filet);border-radius:999px;background:#fff;font:inherit;font-size:13px;font-weight:600;color:var(--encre);cursor:pointer}
.gd-partage a:hover,.gd-partage button:hover{border-color:var(--encre)}
.gd-partage .gd-partage-wa{background:#0F6E56;border-color:#0F6E56;color:#fff}
.gd-couverture{margin:24px -16px 0}
@media (min-width:640px){.gd-couverture{margin:28px 0 0}}
.gd-couverture img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--fond-doux)}
.gd-couverture figcaption,.gd-figure figcaption{padding:8px 16px 0;font-size:13px;line-height:1.45;color:var(--gris)}
@media (min-width:640px){.gd-couverture figcaption{padding:8px 0 0}}
.gd-lecture .gd-avec-cote{margin-top:32px}

/* Le texte : colonne de lecture confortable */
.gd-corps{max-width:700px;font-size:18px;line-height:1.75;color:var(--texte)}
.gd-corps > p,.gd-corps > ul,.gd-corps > ol{margin:0 0 22px}
.gd-corps h2{margin:44px 0 14px;font-family:var(--titres);font-weight:800;font-size:32px;line-height:1.08;color:var(--encre);scroll-margin-top:130px}
.gd-corps h3{margin:32px 0 10px;font-size:20px;line-height:1.3;color:var(--encre);scroll-margin-top:130px}
.gd-corps a{color:var(--orange-fonce);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.gd-corps strong{color:var(--encre)}
.gd-corps ul,.gd-corps ol{padding-left:24px}
.gd-corps li{margin:8px 0;padding-left:4px}
.gd-corps ul li::marker{color:var(--orange)}
.gd-corps ol li::marker{font-family:var(--titres);font-weight:800;color:var(--orange-fonce)}
.gd-corps blockquote{margin:32px 0;padding:4px 0 4px 22px;border-left:4px solid var(--orange);font-family:var(--titres);font-weight:700;font-size:26px;line-height:1.2;color:var(--encre)}
.gd-corps blockquote p{margin:0}
.gd-corps hr{border:0;border-top:1px solid var(--filet);margin:40px 0}
.gd-figure{margin:32px 0}
.gd-figure img{display:block;width:100%;height:auto;background:var(--fond-doux)}
.gd-figure figcaption{padding:8px 0 0}
.gd-bouton-ligne{margin:28px 0}
.gd-image-manquante{padding:12px 16px;background:#FFF4D6;border:1px dashed #E0A03A;color:#7A4E00;font-size:15px}
.gd-sommaire{margin:0 0 32px;padding:18px 20px;background:var(--fond-doux);border-left:4px solid var(--encre)}
.gd-sommaire p{margin:0 0 8px;font-family:var(--titres);font-weight:800;font-size:17px;text-transform:uppercase;letter-spacing:.04em;color:var(--encre)}
.gd-sommaire ol{margin:0;padding-left:20px;font-size:16px;line-height:1.5}
.gd-sommaire li{margin:4px 0}
.gd-sommaire a{color:var(--texte);text-decoration:none}
.gd-sommaire a:hover{color:var(--orange-fonce);text-decoration:underline}
.gd-encart{margin:48px 0 0;padding:24px;background:var(--encre);color:#EDEDED;border-radius:4px}
.gd-encart h2{margin:0 0 8px;font-size:28px;color:#fff}
.gd-encart p{margin:0 0 18px;font-size:16px;line-height:1.55}
.gd-encart .gd-surtitre{color:var(--orange)}

/* ---------- Accueil vide, appel final ---------- */
.gd-vide{padding:72px 0;text-align:center}
.gd-vide h2{margin:0 0 10px;font-family:var(--titres);font-weight:800;font-size:40px;color:var(--encre)}
.gd-vide p{color:var(--gris);font-size:17px}
.gd-appel{margin:64px 0 0;background:var(--fond-doux);border-top:1px solid var(--filet)}
.gd-appel-int{display:flex;flex-direction:column;gap:20px;padding-top:40px;padding-bottom:40px}
@media (min-width:860px){.gd-appel-int{flex-direction:row;align-items:center;justify-content:space-between}}
.gd-appel h2{margin:0 0 6px;font-family:var(--titres);font-weight:800;font-size:32px;line-height:1.05;color:var(--encre)}
.gd-appel p{margin:0;max-width:60ch;color:var(--texte);line-height:1.55}
.gd-appel .gd-surtitre{color:var(--orange-fonce)}

/* ---------- Vidéo flottante d'un guide : en bas à droite, au-dessus du texte ---------- */
.gd-video-flottante{position:fixed;right:16px;bottom:16px;z-index:30;width:200px;max-height:min(60vh,360px);border-radius:14px;overflow:hidden;background:#000;box-shadow:0 12px 32px rgba(0,0,0,.28);opacity:0;transform:translateY(24px);transition:opacity .35s ease,transform .35s ease}
.gd-video-flottante.gd-vf-visible{opacity:1;transform:none}
.gd-video-flottante video{display:block;width:100%;height:100%;max-height:inherit;object-fit:cover;cursor:pointer}
.gd-vf-bouton{position:absolute;top:8px;width:30px;height:30px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:18px;line-height:30px;text-align:center;cursor:pointer;padding:0}
.gd-vf-fermer{right:8px;font-size:22px}
.gd-vf-agrandir{right:44px}
.gd-vf-son{position:absolute;left:8px;bottom:8px;border:0;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font:600 12px/1 "Inter",system-ui,sans-serif;padding:7px 10px;cursor:pointer}
/* Agrandie (plein écran) : la vidéo entière, à ses proportions, sur fond noir */
.gd-video-flottante video:fullscreen{width:100%;height:100%;max-height:none;object-fit:contain;background:#000;cursor:auto}
.gd-video-flottante video:-webkit-full-screen{width:100%;height:100%;max-height:none;object-fit:contain;background:#000;cursor:auto}
.gd-vf-bouton:focus-visible,.gd-vf-son:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
@media (min-width:900px){.gd-video-flottante{width:240px;right:24px;bottom:24px}}
@media (max-width:420px){.gd-video-flottante{width:150px;right:12px;bottom:12px}}
@media (prefers-reduced-motion:reduce){.gd-video-flottante{transition:none;transform:none}}

/* Captures d'écran de téléphone (images en hauteur) : sur grand écran, à la taille d'un téléphone
   plutôt qu'en pleine largeur (elles feraient plusieurs écrans de haut). Les images en largeur ne changent pas. */
@media (min-width:700px){
  .gd-figure img{max-height:min(78vh,760px);object-fit:contain;background:none}
}
