/* ==========================================================================
   Garifonda — CSS spécifique à chaque page publique.
   Rempli en Phase 2, page par page, directement à partir du fichier
   mockup correspondant (heros, sections de contenu, galeries,
   dictionnaire, formulaires...). Volontairement vide à l'issue de la
   Phase 1 : voir assets/css/site.css pour le chrome partagé déjà en place
   (header, nav, footer, boutons, tokens).
   ========================================================================== */

/* ================================ ACCUEIL ================================ */
body.page-accueil .section-divider{height:10px;background:linear-gradient(to right, var(--teal) 0 25%, var(--coral) 25% 50%, var(--gold) 50% 75%, var(--pink) 75% 100%);}
body.page-accueil .hero{position:relative;background:var(--ink);color:var(--white);overflow:hidden;border-bottom:3px solid var(--coral);}
body.page-accueil .hero::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);background-size:14px 14px;pointer-events:none;}
body.page-accueil .hero-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:56px;align-items:center;padding:80px 32px 68px;max-width:1180px;margin:0 auto;position:relative;}
body.page-accueil .hero h1{font-size:clamp(38px,5.4vw,64px);color:var(--white);letter-spacing:-0.01em;}
body.page-accueil .hero p{font-size:18px;max-width:46ch;color:rgba(255,255,255,.82);margin:0 0 30px;}
body.page-accueil .hero .ph{height:360px;border-color:rgba(255,255,255,.35);color:rgba(255,255,255,.75);background:repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 12px, rgba(255,255,255,.02) 12px 24px), rgba(255,255,255,.05);}

body.page-accueil .peuple-garifuna{padding:64px 0 0;border-top:1px solid var(--line);}
body.page-accueil .peuple-garifuna-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:56px;align-items:center;padding-bottom:40px;}
body.page-accueil .peuple-garifuna .ph{height:340px;}
body.page-accueil .peuple-garifuna p{font-size:16px;color:rgba(28,23,18,.78);}

body.page-accueil .stats-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:8px;}
body.page-accueil .stat4{background:var(--white);border:1px solid var(--line);border-top:3px solid var(--teal);border-radius:6px;padding:26px 20px;text-align:center;box-shadow:0 2px 8px rgba(18,46,51,.05);}
body.page-accueil .stat4:nth-child(1){border-top-color:var(--teal);}
body.page-accueil .stat4:nth-child(2){border-top-color:var(--coral);}
body.page-accueil .stat4:nth-child(3){border-top-color:var(--gold);}
body.page-accueil .stat4:nth-child(4){border-top-color:var(--pink);}
body.page-accueil .stat4 b{display:block;font-family:var(--serif);font-size:29px;color:var(--ink);line-height:1.15;margin-bottom:6px;}
body.page-accueil .stat4 span{font-size:12.5px;font-weight:600;color:rgba(28,23,18,.62);line-height:1.4;}

body.page-accueil .mission{display:grid;grid-template-columns:.85fr 1.15fr;gap:56px;align-items:center;}
body.page-accueil .mission .ph{height:400px;}
body.page-accueil .mission blockquote{font-family:var(--serif);font-size:24px;line-height:1.4;margin:0 0 20px;color:var(--ink);}
body.page-accueil .mission p{font-size:16px;color:rgba(28,23,18,.78);}

body.page-accueil .triunfo-bandeau{background:var(--ink);color:var(--white);}
body.page-accueil .triunfo-bandeau h2{color:var(--white);}
body.page-accueil .triunfo-bandeau p{color:rgba(255,255,255,.82);}
body.page-accueil .triunfo-bandeau .ph{border-color:rgba(255,255,255,.35);color:rgba(255,255,255,.75);background:repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 12px, rgba(255,255,255,.02) 12px 24px), rgba(255,255,255,.05);}

body.page-accueil .programme{background:var(--sand);color:var(--ink);}
body.page-accueil .programme .prog-num{color:var(--coral);}
body.page-accueil .programme .prog-num-label{color:rgba(28,23,18,.68);}
body.page-accueil .programme h2{color:var(--ink);}
body.page-accueil .programme p{color:rgba(28,23,18,.78);}
body.page-accueil .programme{padding-top:36px;}
body.page-accueil .programme .prog-grid{gap:28px;}
body.page-accueil .programme .prog-num{font-size:clamp(34px,4.5vw,48px);}
body.page-accueil .programme .prog-num-label{font-size:12px;}
body.page-accueil .programme .prog-grid h2{font-size:19px;margin-bottom:6px;}
body.page-accueil .programme .prog-grid p{font-size:13.5px;line-height:1.5;margin-bottom:0;}
body.page-accueil .programme .prog-grid .btn{margin-top:10px !important;padding:8px 16px;font-size:13px;}
body.page-accueil .programme .ecoles-souspart{margin-top:28px;padding-top:0;border-top:0;}
body.page-accueil .programme .ecoles-souspart .section-head{max-width:none;margin-bottom:28px;}
body.page-accueil .programme .ecoles-souspart blockquote{max-width:640px !important;font-size:15px !important;padding-left:18px !important;}

body.page-accueil .dico{background:var(--ink);color:var(--white);}
body.page-accueil .dico h2{color:var(--white);}
body.page-accueil .dico .ph{height:320px;border-color:rgba(255,255,255,.3);color:rgba(255,255,255,.7);background:repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 12px, rgba(255,255,255,.02) 12px 24px);}
body.page-accueil .dico-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;}
body.page-accueil .mini-flash-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:24px;}
body.page-accueil .flip-card{height:110px;perspective:1000px;}
body.page-accueil .flip-card-inner{position:relative;width:100%;height:100%;transition:transform .5s;transform-style:preserve-3d;cursor:pointer;}
body.page-accueil .flip-card.flipped .flip-card-inner{transform:rotateY(180deg);}
body.page-accueil .flip-front,body.page-accueil .flip-back{position:absolute;inset:0;backface-visibility:hidden;border-radius:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px;}
body.page-accueil .flip-front{background:var(--white);border:2px solid #F2B705;}
body.page-accueil .flip-front b{font-size:14px;color:var(--ink);}
body.page-accueil .flip-front small{font-size:9.5px;color:rgba(28,23,18,.4);margin-top:5px;}
body.page-accueil .flip-back{background:#111111;color:#FFCC00;transform:rotateY(180deg);}
body.page-accueil .flip-back b{font-family:var(--serif);font-size:16px;display:block;}

@media (max-width:860px){
  body.page-accueil .hero-grid,body.page-accueil .mission,body.page-accueil .prog-grid,body.page-accueil .dico-grid,body.page-accueil .peuple-garifuna-grid{grid-template-columns:1fr;}
  body.page-accueil .stats-grid-4{grid-template-columns:1fr 1fr;gap:14px;}
  body.page-accueil .stat4{padding:22px 18px;}
  body.page-accueil .programme .ecoles-souspart{margin-top:24px;padding-top:0;}
}
@media (max-width:600px){body.page-accueil .mini-flash-grid{grid-template-columns:1fr 1fr;}}

/* ============================ QUI SOMMES-NOUS ============================ */
body.page-qui-sommes-nous .miguel{display:grid;grid-template-columns:.85fr 1.15fr;gap:48px;align-items:center;}
body.page-qui-sommes-nous .miguel .ph{height:400px;}
body.page-qui-sommes-nous .miguel blockquote{font-family:var(--serif);font-size:22px;line-height:1.4;margin:0 0 18px;color:var(--ink);}
body.page-qui-sommes-nous .miguel .facts{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;}
body.page-qui-sommes-nous .miguel .fact{background:var(--sand-deep);border-radius:2px;padding:8px 16px;font-size:13px;font-weight:600;color:var(--ink);}

body.page-qui-sommes-nous .engagements{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:32px;}
body.page-qui-sommes-nous .engagement{background:var(--white);border-left:4px solid var(--coral);border-radius:0 3px 3px 0;padding:22px 24px;}
body.page-qui-sommes-nous .engagement h4{font-size:16px;margin:0 0 8px;}
body.page-qui-sommes-nous .engagement p{font-size:14px;color:rgba(28,23,18,.72);margin:0;line-height:1.55;}

body.page-qui-sommes-nous .big-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px;}
body.page-qui-sommes-nous .big-stat{border-radius:2px;padding:32px 28px;color:var(--white);}
body.page-qui-sommes-nous .big-stat b{display:block;font-family:var(--serif);font-size:38px;line-height:1;}
body.page-qui-sommes-nous .big-stat span{font-size:14px;opacity:.9;}
body.page-qui-sommes-nous .chip-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px;}
body.page-qui-sommes-nous .chip{background:var(--white);border:1px solid var(--line);border-radius:4px;padding:10px 20px;font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px;}

body.page-qui-sommes-nous .bands{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px;}
body.page-qui-sommes-nous .band{border-radius:4px;padding:32px;color:var(--white);}
body.page-qui-sommes-nous .band h3{color:var(--white);font-size:20px;margin-bottom:8px;}
body.page-qui-sommes-nous .band p{font-size:14.5px;color:rgba(255,255,255,.85);margin:0 0 18px;}
body.page-qui-sommes-nous .band a{color:var(--white);font-weight:700;text-decoration:none;font-size:14px;}

/* 8 cartes "agence locale" : 4 colonnes pour 2 lignes pleines.
   Sans cette regle la grille globale fait 3 colonnes et laisse un trou
   (3+3+2). A 2 colonnes les cartes devenaient tres allongees (550x186,
   ratio 2,95) ; a 4 elles font 267x230, soit un ratio de 1,16, reellement
   carrees, et la largeur de page est mieux utilisee.
   Les deux overrides ci-dessous sont indispensables : cette regle est plus
   specifique que le .durable-grid global, donc elle gagnerait aussi sur
   la media query de site.css.
     - 1080px : 4 colonnes donneraient des cartes de ~200px, trop etrofites
     - 860px  : une colonne */
body.page-qui-sommes-nous .durable-grid{grid-template-columns:repeat(4,1fr);}

@media (max-width:1080px){
  body.page-qui-sommes-nous .durable-grid{grid-template-columns:1fr 1fr;}
}

@media (max-width:860px){
  body.page-qui-sommes-nous .big-stats{grid-template-columns:1fr;}
  body.page-qui-sommes-nous .bands{grid-template-columns:1fr;}
  body.page-qui-sommes-nous .miguel{grid-template-columns:1fr;}
  body.page-qui-sommes-nous .engagements{grid-template-columns:1fr;}
  body.page-qui-sommes-nous .durable-grid{grid-template-columns:1fr;}
}

/* =============================== CONSTRUCTION ============================= */
/* .page-hero propre à cette page : pas de photo plein cadre, motif pointillé
   (pas le fondu sombre des autres pages intérieures), padding simple. */
body.page-construction .page-hero{background:var(--ink);color:var(--white);position:relative;overflow:hidden;padding:36px 0 30px;border-bottom:3px solid var(--coral);min-height:0;display:block;}
body.page-construction .page-hero::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);background-size:14px 14px;pointer-events:none;}
body.page-construction .page-hero .wrap{position:relative;padding:0 32px;max-width:1180px;margin:0 auto;}
body.page-construction .page-hero h1{max-width:16ch;}

body.page-construction .dual-cta{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:22px 0 0;}
body.page-construction .cta-card{border-radius:2px;padding:18px 22px;display:flex;align-items:center;gap:16px;}
body.page-construction .cta-card .icon-circle{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
body.page-construction .cta-card h3{color:var(--white);font-size:16px;margin:0 0 4px;}
body.page-construction .cta-card p{color:rgba(255,255,255,.85);font-size:13px;margin:0 0 10px;line-height:1.45;}
body.page-construction .cta-card a{display:inline-block;background:var(--white);font-weight:700;font-size:13px;padding:7px 15px;border-radius:2px;text-decoration:none;}

body.page-construction .enjeu-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--line);}
body.page-construction .enjeu{padding:36px;}
body.page-construction .enjeu:first-child{border-right:1px solid var(--line);background:var(--sand-deep);}
body.page-construction .enjeu h3{font-size:18px;margin-bottom:10px;}
body.page-construction .enjeu p{font-size:15px;color:rgba(28,23,18,.75);margin:0;}

body.page-construction .etapes{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:32px;}
body.page-construction .etape{background:var(--white);border:1px solid var(--line);padding:22px;}
body.page-construction .etape .n{font-family:var(--serif);font-size:28px;color:var(--coral);margin-bottom:8px;display:block;}
body.page-construction .etape h4{font-size:15px;margin:0 0 6px;}
body.page-construction .etape p{font-size:13.5px;color:rgba(28,23,18,.7);margin:0;}

body.page-construction .temoignages{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:32px;}
body.page-construction .temoin{background:var(--white);border-radius:4px;padding:24px;border:1px solid var(--line);}
body.page-construction .temoin p{font-style:italic;font-size:14.5px;color:rgba(28,23,18,.8);margin:0 0 14px;line-height:1.6;}
body.page-construction .temoin .auteur{font-size:12.5px;font-weight:700;color:var(--coral);}

/* 2 blocs LOJIQ ("La moitie du sejour" / "L'autre moitie") : 2 colonnes.
   Cette regle remplace un style inline qui ecrasait la media query
   mobile de site.css (un inline l'emporte sur toute regle de feuille de
   style, media query comprise) : les 2 cartes ne s'empilaient donc
   jamais sur telephone. L'override ci-dessous est donc necessaire. */
body.page-construction .durable-grid{grid-template-columns:1fr 1fr;}

@media (max-width:860px){
  body.page-construction .enjeu-grid{grid-template-columns:1fr;}
  body.page-construction .enjeu:first-child{border-right:none;border-bottom:1px solid var(--line);}
  body.page-construction .etapes{grid-template-columns:1fr 1fr;}
  body.page-construction .dual-cta{grid-template-columns:1fr;}
  body.page-construction .temoignages{grid-template-columns:1fr;}
  body.page-construction .durable-grid{grid-template-columns:1fr;}
}

/* =============================== LES GARÍFUNAS ============================= */
/* Réglages typographiques propres à cette page (section 21 des notes : version
   resserrée, padding et polices réduits) */
body.page-garifunas{line-height:1.6;}
body.page-garifunas h1,body.page-garifunas h2,body.page-garifunas h3{line-height:1.15;}
body.page-garifunas section{padding:72px 0;}
body.page-garifunas .eyebrow{color:var(--coral);margin-bottom:14px;}
body.page-garifunas .article{max-width:860px;}
body.page-garifunas .article p{font-size:16.5px;line-height:1.75;color:rgba(18,46,51,.82);margin:0 0 20px;}

/* Hero plein cadre plus grand que la base (420px, cf. décision Phase 1) */
body.page-garifunas .page-hero{min-height:420px;}
body.page-garifunas .page-hero .wrap{padding:120px 32px 48px;}
body.page-garifunas .page-hero h1{font-size:clamp(32px,4.4vw,48px);max-width:18ch;}
body.page-garifunas .page-hero p{font-size:18px;max-width:58ch;}

body.page-garifunas .map-section{background:var(--white);}
body.page-garifunas .map-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center;}
body.page-garifunas .map-frame{border-radius:2px;overflow:hidden;box-shadow:8px 8px 0 rgba(18,46,51,.12);border:1px solid var(--line);}

body.page-garifunas .timeline{margin-top:20px;}
body.page-garifunas .tl-row{display:grid;grid-template-columns:80px 1fr;gap:18px;padding:14px 0;border-top:1px solid var(--line);}
body.page-garifunas .tl-row:last-child{border-bottom:1px solid var(--line);}
body.page-garifunas .tl-year{font-family:var(--serif);font-size:16px;color:var(--coral);font-weight:700;}
body.page-garifunas .tl-row h3{font-size:15px;margin-bottom:3px;}
body.page-garifunas .tl-row p{margin:0;font-size:13px;color:rgba(18,46,51,.72);line-height:1.55;}

body.page-garifunas .stat-row{display:flex;gap:40px;flex-wrap:wrap;margin-top:28px;}
body.page-garifunas .stat-item b{display:block;font-family:var(--serif);font-size:34px;color:var(--coral);}
body.page-garifunas .stat-item span{font-size:13px;color:rgba(18,46,51,.6);}

body.page-garifunas .diaspora-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px;}
body.page-garifunas .diaspora-card{background:var(--sand-deep);border-radius:4px;padding:22px;}
body.page-garifunas .diaspora-card b{display:block;font-family:var(--serif);font-size:15px;margin-bottom:6px;}
body.page-garifunas .diaspora-card span{font-size:13px;color:rgba(18,46,51,.68);line-height:1.5;}
body.page-garifunas .diaspora-list{margin-top:24px;}
body.page-garifunas .diaspora-row{display:flex;align-items:center;gap:14px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px;}
body.page-garifunas .diaspora-row .pays{width:110px;flex-shrink:0;font-weight:600;}
body.page-garifunas .diaspora-row .bar-bg{flex:1;background:var(--line);border-radius:2px;height:8px;overflow:hidden;}
body.page-garifunas .diaspora-row .bar-fill{display:block;height:100%;background:var(--teal);border-radius:2px;}
body.page-garifunas .diaspora-row .pct{width:48px;text-align:right;font-weight:700;color:var(--coral);flex-shrink:0;}

body.page-garifunas .video-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:32px;}
body.page-garifunas .video-card{background:var(--white);border-radius:4px;overflow:hidden;border:1px solid var(--line);}
body.page-garifunas .video-card iframe{width:100%;aspect-ratio:16/9;display:block;border:0;}
body.page-garifunas .yt-facade{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;background:#000;cursor:pointer;overflow:hidden;}
body.page-garifunas .yt-facade img{width:100%;height:100%;object-fit:cover;display:block;opacity:.9;transition:opacity .2s;}
body.page-garifunas .yt-facade:hover img,body.page-garifunas .yt-facade:focus-visible img{opacity:1;}
body.page-garifunas .yt-facade .play{position:absolute;inset:0;margin:auto;width:68px;height:48px;border-radius:12px;background:rgba(220,30,30,.92);color:#fff;font-size:22px;display:flex;align-items:center;justify-content:center;}
body.page-garifunas .video-card .info{padding:16px 18px;}
body.page-garifunas .video-card h4{font-size:15px;margin:0 0 4px;}
body.page-garifunas .video-card span{font-size:13px;color:rgba(18,46,51,.6);}

body.page-garifunas .flag-section{background:var(--ink);color:var(--white);}
body.page-garifunas .flag-colors{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:32px;}
body.page-garifunas .flag-color{border-radius:4px;padding:28px 24px;}
body.page-garifunas .flag-color .swatch{width:100%;height:10px;border-radius:2px;margin-bottom:16px;}
body.page-garifunas .flag-color h3{color:var(--white);font-size:19px;margin-bottom:10px;}
body.page-garifunas .flag-color p{font-size:14px;color:rgba(255,255,255,.82);line-height:1.6;margin:0;}
body.page-garifunas .flag-strip-visual{height:60px;border-radius:3px;overflow:hidden;display:flex;margin:24px 0 8px;box-shadow:4px 4px 0 rgba(0,0,0,.2);}
body.page-garifunas .flag-strip-visual div{flex:1;}

body.page-garifunas .dico{background:var(--sand-deep);}
body.page-garifunas .dico .ph{height:280px;}
body.page-garifunas .dico-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center;}
@media (max-width:860px){body.page-garifunas .dico-grid{grid-template-columns:1fr;}}
body.page-garifunas .mini-flash-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:24px;max-width:420px;}
@media (max-width:600px){body.page-garifunas .mini-flash-grid{grid-template-columns:1fr 1fr;}}
body.page-garifunas .flip-card{height:110px;perspective:1000px;}
body.page-garifunas .flip-card-inner{position:relative;width:100%;height:100%;transition:transform .5s;transform-style:preserve-3d;cursor:pointer;}
body.page-garifunas .flip-card.flipped .flip-card-inner{transform:rotateY(180deg);}
body.page-garifunas .flip-front,body.page-garifunas .flip-back{position:absolute;inset:0;backface-visibility:hidden;border-radius:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px;}
body.page-garifunas .flip-front{background:var(--white);border:2px solid #F2B705;}
body.page-garifunas .flip-front b{font-size:14px;color:var(--ink);}
body.page-garifunas .flip-front small{font-size:9.5px;color:rgba(28,23,18,.4);margin-top:5px;}
body.page-garifunas .flip-back{background:#111111;color:#FFCC00;transform:rotateY(180deg);}
body.page-garifunas .flip-back b{font-family:var(--serif);font-size:16px;display:block;}

@media (max-width:860px){
  body.page-garifunas .map-grid{grid-template-columns:1fr;}
  body.page-garifunas .diaspora-cards{grid-template-columns:1fr;}
  body.page-garifunas .video-grid,body.page-garifunas .flag-colors{grid-template-columns:1fr;}
}

/* ============================= TRIUNFO DE LA CRUZ ========================== */
body.page-triunfo .page-hero{min-height:340px;padding:0;}
body.page-triunfo .article{max-width:none;}
body.page-triunfo .section-head{max-width:none;}
body.page-triunfo .page-hero .wrap{padding-top:90px;padding-bottom:40px;}

body.page-triunfo .dream-banner{position:relative;min-height:420px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg, #0D2226 0%, #1E8A96 55%, #E8A23D 100%);}
body.page-triunfo .dream-banner::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 75% 30%, rgba(242,183,5,.35), transparent 55%),radial-gradient(ellipse at 20% 80%, rgba(18,46,51,.6), transparent 60%);}
body.page-triunfo .dream-banner .ph-overlay{position:absolute;inset:0;opacity:.14;background:repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 40px);}
body.page-triunfo .dream-content{position:relative;max-width:1180px;width:100%;padding:0 32px;box-sizing:border-box;color:var(--white);}
body.page-triunfo .dream-content{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;}
body.page-triunfo .dream-content .ph{height:300px;border-radius:3px;width:100%;object-fit:cover;box-shadow:0 10px 30px rgba(0,0,0,.3);}
body.page-triunfo .dream-content div.ph{border-color:rgba(255,255,255,.4);color:rgba(255,255,255,.8);background:rgba(255,255,255,.08);}
@media (max-width:860px){body.page-triunfo .dream-content{grid-template-columns:1fr;gap:28px;}body.page-triunfo .dream-content .ph{height:220px;}}
body.page-triunfo .dream-content h2,
body.page-triunfo .dream-content p{max-width:620px;}
body.page-triunfo .dream-content .eyebrow{color:var(--gold);}
body.page-triunfo .dream-content h2{color:var(--white);font-size:clamp(28px,4vw,42px);line-height:1.15;margin-bottom:16px;}
body.page-triunfo .dream-content p{font-size:17px;color:rgba(255,255,255,.9);line-height:1.6;margin-bottom:28px;font-style:italic;}
body.page-triunfo .dream-content .btn-primary{background:var(--white);color:var(--ink);}

/* "Les coins et commerces sympas" — 5 cartes photo + nom + description
   courte, remplies au fur et à mesure via l'admin. */
body.page-triunfo .spot-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;margin-top:32px;}
body.page-triunfo .spot-card .ph{height:140px;margin-bottom:12px;border-radius:3px;}
body.page-triunfo .spot-card h4{font-size:15px;margin:0 0 4px;color:var(--ink);}
body.page-triunfo .spot-card p{font-size:13px;color:rgba(28,23,18,.7);margin:0;line-height:1.5;}
@media (max-width:860px){body.page-triunfo .spot-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:480px){body.page-triunfo .spot-grid{grid-template-columns:repeat(2,1fr);}}

/* ================================ DICTIONNAIRE ============================ */
/* Palette dérivée du drapeau garífuna (jaune / blanc / noir — voir la section
   "Symbole" de la page Les Garífunas). Scoping local à cette page : ne touche
   pas aux tokens globaux de :root utilisés ailleurs sur le site. */
body.page-dictionnaire{
  --df-jaune:#F2B705;
  --df-jaune-vif:#FFCC00;
  --df-blanc:#FFFFFF;
  --df-noir:#111111;
  --df-ambre:#C97A0F;
  --df-moutarde:#A6841B;
  --df-brun:#4A3728;
  --df-charbon:#33302C;
}
body.page-dictionnaire section{padding:60px 0;}
body.page-dictionnaire .page-hero{background:var(--df-noir);}

body.page-dictionnaire .dico-flag-strip{display:flex;height:8px;border-radius:2px;overflow:hidden;margin-bottom:32px;box-shadow:0 2px 8px rgba(0,0,0,.15);}
body.page-dictionnaire .dico-flag-strip span{flex:1;}
body.page-dictionnaire .dico-flag-strip span:nth-child(1){background:var(--df-jaune-vif);}
body.page-dictionnaire .dico-flag-strip span:nth-child(2){background:var(--df-blanc);}
body.page-dictionnaire .dico-flag-strip span:nth-child(3){background:var(--df-noir);}

/* --- Mot du jour : carte à révéler (clic), dégradé noir -> ambre --- */
body.page-dictionnaire .mot-du-jour{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;width:100%;text-align:left;background:linear-gradient(120deg, var(--df-noir) 45%, var(--df-ambre) 100%);border:none;border-radius:3px;padding:36px 40px;color:var(--white);margin-bottom:28px;cursor:pointer;font:inherit;-webkit-tap-highlight-color:transparent;}
body.page-dictionnaire .mdj-content{display:flex;flex-direction:column;}
body.page-dictionnaire .mot-du-jour .label{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;opacity:.9;margin-bottom:10px;color:var(--df-jaune-vif);}
body.page-dictionnaire .mdj-indices{display:flex;flex-wrap:wrap;column-gap:18px;row-gap:2px;align-items:baseline;margin-bottom:4px;}
body.page-dictionnaire .mdj-indices .fl{font-family:var(--sans);font-size:15px;font-weight:600;color:rgba(255,255,255,.8);}
body.page-dictionnaire .mdj-indices .fl::before{font-size:10px;font-weight:700;opacity:.7;margin-right:4px;}
body.page-dictionnaire .mdj-indices .fl-fr::before{content:'FR';}
body.page-dictionnaire .mdj-indices .fl-es::before{content:'ES';}
body.page-dictionnaire .mdj-indices .fl-en::before{content:'EN';}
body.page-dictionnaire .mdj-reponse{display:none;margin:2px 0 6px;}
body.page-dictionnaire .mdj-reponse .garifuna{font-family:var(--serif);font-size:36px;font-weight:700;color:var(--df-jaune-vif);}
body.page-dictionnaire .mot-du-jour.revele .mdj-indices{display:none;}
body.page-dictionnaire .mot-du-jour.revele .mdj-reponse{display:block;}
body.page-dictionnaire .mdj-hint{font-size:12px;opacity:.7;}
body.page-dictionnaire .mot-du-jour.revele .mdj-hint{display:none;}
body.page-dictionnaire .emoji-big{font-size:52px;flex-shrink:0;}

/* --- Sélecteur "Ma langue" : quelle langue est mise en avant sur les cartes,
   indépendamment de la langue du site (FR/ES). Mémorisé en localStorage. --- */
body.page-dictionnaire .dico-lang-select{display:flex;align-items:center;gap:8px;margin-bottom:28px;flex-wrap:wrap;}
body.page-dictionnaire .dls-label{font-size:13px;font-weight:600;color:rgba(28,23,18,.6);}
body.page-dictionnaire .dls-btn{padding:6px 14px;border-radius:20px;border:1.5px solid var(--line);background:var(--white);font-size:13px;font-weight:700;cursor:pointer;color:var(--ink);}
body.page-dictionnaire .dls-btn.active{background:var(--df-noir);border-color:var(--df-noir);color:var(--df-jaune-vif);}

body.page-dictionnaire .dico-note{background:var(--sand-deep);border-left:4px solid var(--df-jaune-vif);border-radius:0 3px 3px 0;padding:18px 22px;font-size:14.5px;color:rgba(28,23,18,.8);margin-bottom:40px;}
body.page-dictionnaire .dico-note p{margin:0 0 8px;}
body.page-dictionnaire .dico-note p:last-child{margin-bottom:0;}

body.page-dictionnaire .filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:8px;}
@media (max-width:600px){
  body.page-dictionnaire .filters{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:10px;}
  body.page-dictionnaire .filter-btn{flex-shrink:0;}
}
body.page-dictionnaire .filter-btn{padding:9px 16px;border-radius:2px;border:1.5px solid var(--line);background:var(--white);font-size:13.5px;font-weight:600;cursor:pointer;color:var(--ink);}
body.page-dictionnaire .filter-btn.active{background:var(--df-noir);border-color:var(--df-noir);color:var(--df-jaune-vif);}
body.page-dictionnaire .filter-count{margin-bottom:32px;font-size:13.5px;color:rgba(28,23,18,.55);}

body.page-dictionnaire .dico-cat{margin-bottom:44px;}
body.page-dictionnaire .dico-cat-head{display:flex;align-items:center;gap:10px;margin-bottom:16px;}
body.page-dictionnaire .dico-cat-head .tag{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--white);flex-shrink:0;}
body.page-dictionnaire .dico-cat-head h3{font-size:16px;margin:0;}
body.page-dictionnaire .dico-cat-head span{font-size:12.5px;color:rgba(28,23,18,.5);}
body.page-dictionnaire .flash-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;}
@media (max-width:480px){
  body.page-dictionnaire .flash-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
}
/* Phrases utiles : phrases complètes, pas de simples mots — une seule langue
   affichée (les 2 autres n'apportaient rien sur des phrases déjà explicites),
   cartes plus compactes. */
body.page-dictionnaire .dico-cat-compact .flash-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;}
body.page-dictionnaire .dico-cat-compact .flip-card{min-height:90px;}
body.page-dictionnaire .dico-cat-compact .flip-front,body.page-dictionnaire .dico-cat-compact .flip-back{min-height:90px;padding:10px;}
body.page-dictionnaire .dico-cat-compact .flip-front b{font-size:13px;}

/* Carte à retourner : hauteur automatique (empilement grid front/back au lieu
   de position:absolute + hauteur fixe) pour s'adapter aux traductions plus
   longues qu'un simple mot, une fois 3 langues affichées au recto. */
body.page-dictionnaire .flip-card{min-height:120px;perspective:1000px;display:block;width:100%;border:none;background:none;padding:0;font:inherit;text-align:inherit;-webkit-tap-highlight-color:transparent;}
body.page-dictionnaire .flip-card-inner{display:grid;width:100%;height:100%;transition:transform .5s;transform-style:preserve-3d;cursor:pointer;}
body.page-dictionnaire .flip-card.flipped .flip-card-inner{transform:rotateY(180deg);}
body.page-dictionnaire .flip-front,body.page-dictionnaire .flip-back{grid-area:1/1;min-height:120px;backface-visibility:hidden;border-radius:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px;}
body.page-dictionnaire .flip-front{background:var(--white);border:2px solid var(--cc);gap:2px;}
body.page-dictionnaire .flip-front .fl{font-size:11.5px;font-weight:600;color:rgba(28,23,18,.55);}
body.page-dictionnaire .flip-front .fl::before{font-size:9px;font-weight:700;opacity:.65;margin-right:4px;}
body.page-dictionnaire .flip-front .fl-fr::before{content:'FR';}
body.page-dictionnaire .flip-front .fl-es::before{content:'ES';}
body.page-dictionnaire .flip-front .fl-en::before{content:'EN';}
body.page-dictionnaire .flip-front small{order:4;font-size:10px;color:rgba(28,23,18,.4);margin-top:8px;}
body.page-dictionnaire .flip-front-lettre .lettre{font-family:var(--serif);font-size:40px;color:var(--ink);}
body.page-dictionnaire .flip-back{background:var(--df-noir);color:var(--df-jaune-vif);transform:rotateY(180deg);}
body.page-dictionnaire .flip-back b{font-family:var(--serif);font-size:19px;line-height:1.25;display:block;}
body.page-dictionnaire .flip-back .note-line{font-size:11px;opacity:.85;margin-top:8px;font-style:italic;color:var(--white);}

/* Ordre des 3 langues (recto des cartes, mot du jour, résultats de recherche) :
   piloté par dico-lang-{fr|es|en} sur #dico-zone (langue du site par défaut,
   sélecteur "Ma langue" ensuite via JS + localStorage). */
#dico-zone.dico-lang-fr .fl-fr,#dico-zone.dico-lang-es .fl-es,#dico-zone.dico-lang-en .fl-en{order:1;}
#dico-zone.dico-lang-fr .fl-es,#dico-zone.dico-lang-es .fl-en,#dico-zone.dico-lang-en .fl-fr{order:2;}
#dico-zone.dico-lang-fr .fl-en,#dico-zone.dico-lang-es .fl-fr,#dico-zone.dico-lang-en .fl-es{order:3;}
/* Mise en avant (recto des cartes) de la langue en 1re position */
#dico-zone.dico-lang-fr .flip-front .fl-fr,#dico-zone.dico-lang-es .flip-front .fl-es,#dico-zone.dico-lang-en .flip-front .fl-en{font-size:15px;font-weight:700;color:var(--ink);}
#dico-zone.dico-lang-fr .flip-front .fl-fr::before,#dico-zone.dico-lang-es .flip-front .fl-es::before,#dico-zone.dico-lang-en .flip-front .fl-en::before{content:'';margin:0;}
/* Phrases utiles (cartes compactes) : une seule langue au recto, celle du
   sélecteur « Ma langue » (les phrases sont déjà explicites, 3 langues = trop). */
#dico-zone.dico-lang-fr .dico-cat-compact .flip-front .fl:not(.fl-fr),
#dico-zone.dico-lang-es .dico-cat-compact .flip-front .fl:not(.fl-es),
#dico-zone.dico-lang-en .dico-cat-compact .flip-front .fl:not(.fl-en){display:none;}
#dico-zone .dico-cat-compact .flip-front .fl{font-size:13.5px;overflow-wrap:anywhere;max-width:100%;}
body.page-dictionnaire .flash-grid > .flip-card{min-width:0;}
body.page-dictionnaire .flip-card-inner{grid-template-columns:minmax(0,1fr);}
body.page-dictionnaire .flip-front,body.page-dictionnaire .flip-back{min-width:0;overflow-wrap:anywhere;}
/* Mise en avant (mot du jour) de la langue en 1re position */
#dico-zone.dico-lang-fr .mdj-indices .fl-fr,#dico-zone.dico-lang-es .mdj-indices .fl-es,#dico-zone.dico-lang-en .mdj-indices .fl-en{font-family:var(--serif);font-size:28px;font-weight:700;color:var(--white);}
#dico-zone.dico-lang-fr .mdj-indices .fl-fr::before,#dico-zone.dico-lang-es .mdj-indices .fl-es::before,#dico-zone.dico-lang-en .mdj-indices .fl-en::before{content:'';margin:0;}

body.page-dictionnaire .contrib-box{background:linear-gradient(120deg, var(--df-noir), var(--df-ambre));border-radius:2px;padding:44px 40px;color:var(--white);text-align:center;margin-top:56px;}
body.page-dictionnaire .contrib-form .btn-primary{background:var(--df-jaune-vif);color:var(--df-noir);}
body.page-dictionnaire .contrib-box h2{color:var(--white);font-size:26px;margin-bottom:10px;}
body.page-dictionnaire .contrib-box p{color:rgba(255,255,255,.85);max-width:52ch;margin:0 auto 24px;font-size:15.5px;}
body.page-dictionnaire .contrib-form{max-width:520px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:14px;text-align:left;}
body.page-dictionnaire .contrib-form .full{grid-column:1 / -1;}
/* Champ piège anti-robots : hors écran plutôt qu'en display:none, que les robots repèrent. */
body.page-dictionnaire .contrib-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
body.page-dictionnaire .contrib-form label{display:block;font-size:12.5px;font-weight:700;margin-bottom:6px;color:rgba(255,255,255,.85);}
body.page-dictionnaire .contrib-form input,body.page-dictionnaire .contrib-form textarea{width:100%;padding:11px 13px;border:none;border-radius:3px;font-family:var(--sans);font-size:14.5px;box-sizing:border-box;}
body.page-dictionnaire .contrib-form .btn{grid-column:1 / -1;justify-self:center;margin-top:6px;border:none;cursor:pointer;}
body.page-dictionnaire .contrib-note{font-size:12.5px;color:rgba(255,255,255,.6);margin-top:14px;}
body.page-dictionnaire .contrib-success{background:rgba(47,143,70,.15);border:1px solid var(--leaf);border-radius:3px;padding:16px 20px;color:var(--white);max-width:520px;margin:0 auto;}
body.page-dictionnaire .contrib-error{background:rgba(212,44,74,.15);border:1px solid var(--pink);border-radius:3px;padding:16px 20px;color:var(--white);max-width:520px;margin:0 auto 20px;}

@media (max-width:600px){body.page-dictionnaire .contrib-form{grid-template-columns:1fr;}}

body.page-dictionnaire .dico-recherche{margin:56px 0;padding:36px;background:var(--sand-deep);border-radius:3px;}
body.page-dictionnaire .dico-recherche h2{font-size:20px;margin-bottom:6px;}
body.page-dictionnaire .dico-recherche p{font-size:14px;color:rgba(28,23,18,.65);margin:0 0 20px;}
body.page-dictionnaire .dico-search-form{display:flex;gap:10px;margin-bottom:20px;}
@media (max-width:640px){
  body.page-dictionnaire .dico-search-form{flex-direction:column;}
}
body.page-dictionnaire .dico-search-form select{min-width:0;max-width:100%;}
body.page-dictionnaire .dico-search-form input[type=text]{flex:1;padding:12px 16px;border:1.5px solid var(--line);border-radius:3px;font-size:15px;font-family:var(--sans);}
body.page-dictionnaire .dico-search-form button{border:none;cursor:pointer;}
body.page-dictionnaire .dico-search-form .btn-primary{background:var(--df-noir);color:var(--df-jaune-vif);}
body.page-dictionnaire .dico-azindex{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:24px;}
body.page-dictionnaire .dico-azindex a{width:30px;height:30px;display:flex;align-items:center;justify-content:center;background:var(--white);border:1px solid var(--line);border-radius:3px;font-size:13px;font-weight:700;text-decoration:none;color:var(--ink);}
body.page-dictionnaire .dico-azindex a:hover,body.page-dictionnaire .dico-azindex a.active{background:var(--df-noir);color:var(--df-jaune-vif);border-color:var(--df-noir);}
body.page-dictionnaire .dico-result-count{font-size:13.5px;color:rgba(28,23,18,.55);margin-bottom:16px;}
body.page-dictionnaire .dico-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;}
body.page-dictionnaire .dico-result-card{background:var(--white);border:1px solid var(--line);border-radius:3px;padding:16px 18px;}
body.page-dictionnaire .dico-result-card b{font-family:var(--serif);font-size:17px;color:var(--ink);display:block;margin-bottom:6px;}
body.page-dictionnaire .dico-result-card .langs{display:flex;flex-wrap:wrap;column-gap:12px;row-gap:2px;font-size:13px;color:rgba(28,23,18,.7);line-height:1.6;}
body.page-dictionnaire .dico-result-card .langs .fl::before{font-size:10px;font-weight:700;opacity:.6;margin-right:3px;}
body.page-dictionnaire .dico-result-card .langs .fl-fr::before{content:'FR';}
body.page-dictionnaire .dico-result-card .langs .fl-es::before{content:'ES';}
body.page-dictionnaire .dico-result-card .langs .fl-en::before{content:'EN';}
body.page-dictionnaire .dico-result-card .ex{font-size:12.5px;color:rgba(28,23,18,.55);font-style:italic;margin:8px 0 0;border-top:1px solid var(--line);padding-top:8px;}
body.page-dictionnaire .dico-search-form select{padding:12px 14px;border:1.5px solid var(--line);border-radius:3px;font-size:15px;font-family:var(--sans);background:var(--white);color:var(--ink);}
body.page-dictionnaire .dico-natures{display:flex;flex-wrap:wrap;gap:5px;margin:-2px 0 8px;}
body.page-dictionnaire .dico-natures a{font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;padding:2px 7px;border-radius:3px;background:var(--df-noir);color:var(--df-jaune-vif);text-decoration:none;}
body.page-dictionnaire .dico-natures a:hover{opacity:.8;}
body.page-dictionnaire .dico-pagination{display:flex;flex-wrap:wrap;gap:6px;margin-top:22px;}
body.page-dictionnaire .dico-pagination a{min-width:32px;height:32px;padding:0 6px;display:flex;align-items:center;justify-content:center;background:var(--white);border:1px solid var(--line);border-radius:3px;font-size:13px;font-weight:700;text-decoration:none;color:var(--ink);}
body.page-dictionnaire .dico-pagination a:hover,body.page-dictionnaire .dico-pagination a.active{background:var(--df-noir);color:var(--df-jaune-vif);border-color:var(--df-noir);}
body.page-dictionnaire .dico-no-result{font-size:14.5px;color:rgba(28,23,18,.6);}

/* =================================== GALERIE =============================== */
body.page-galerie .filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:36px;}
body.page-galerie .filter-btn{padding:9px 18px;border-radius:2px;border:1.5px solid var(--line);background:var(--white);font-size:14px;font-weight:600;cursor:pointer;color:var(--ink);}
body.page-galerie .filter-btn.active{background:var(--ink);color:var(--white);border-color:var(--ink);}
body.page-galerie .coup-de-coeur{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:56px;}
body.page-galerie .coup-de-coeur .ph{height:170px;}
body.page-galerie .grande-galerie{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
body.page-galerie .grande-galerie .ph{height:150px;}

@media (max-width:860px){
  body.page-galerie .coup-de-coeur,body.page-galerie .grande-galerie{grid-template-columns:1fr 1fr;}
}

/* =====================================================================
   Espace « Apprendre » (/apprendre, /apprendre/parcours, /grammaire, /quiz)
   Même univers que le dictionnaire : drapeau garífuna jaune/blanc/noir.
   ===================================================================== */
body.page-apprendre{
  --df-jaune:#F2B705;--df-jaune-vif:#FFCC00;--df-blanc:#FFFFFF;--df-noir:#111111;
  --df-ambre:#C97A0F;--df-moutarde:#A6841B;--df-brun:#4A3728;--df-charbon:#33302C;
  --ap-bon:#2F8F46;--ap-faux:#D42C4A;
}
body.page-apprendre [hidden]{display:none !important;}
body.page-apprendre .apprendre-hero{background:var(--df-noir);min-height:340px;}
body.page-apprendre .apprendre-hero::before{content:"";position:absolute;right:-60px;top:0;bottom:0;width:340px;background:linear-gradient(to bottom, var(--df-jaune-vif) 0 33.3%, var(--df-blanc) 33.3% 66.6%, #2a2a2a 66.6% 100%);transform:skewX(-14deg);opacity:.9;}
body.page-apprendre .apprendre-hero::after{background:linear-gradient(to right, rgba(17,17,17,.75) 0%, rgba(17,17,17,.35) 55%, rgba(17,17,17,0) 100%);z-index:1;}
body.page-apprendre .apprendre-hero .wrap{z-index:2;width:100%;box-sizing:border-box;}
@media (max-width:700px){body.page-apprendre .apprendre-hero::before{width:120px;right:-50px;}}
body.page-apprendre .apprendre-zone{padding:56px 0 80px;}
body.page-apprendre .ap-flag-strip{display:flex;height:8px;border-radius:2px;overflow:hidden;margin-bottom:36px;box-shadow:0 2px 8px rgba(0,0,0,.15);}
body.page-apprendre .ap-flag-strip span{flex:1;}
body.page-apprendre .ap-flag-strip span:nth-child(1){background:var(--df-jaune-vif);}
body.page-apprendre .ap-flag-strip span:nth-child(2){background:var(--df-blanc);}
body.page-apprendre .ap-flag-strip span:nth-child(3){background:var(--df-noir);}

body.page-apprendre .btn{border:none;cursor:pointer;font-family:var(--sans);}
body.page-apprendre .btn-primary{background:var(--df-noir);color:var(--df-jaune-vif);}
body.page-apprendre .btn-outline{background:transparent;color:var(--ink);border:1.5px solid var(--ink);padding:11.5px 24px;}
body.page-apprendre .ap-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px;}

/* --- Accueil de l'espace --- */
body.page-apprendre .ap-hub{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;}
body.page-apprendre .ap-hub-card{display:flex;flex-direction:column;background:var(--white);border-radius:4px;padding:30px 28px 26px;text-decoration:none;color:var(--ink);border-top:5px solid var(--cc);box-shadow:0 1px 3px rgba(0,0,0,.06);transition:transform .15s ease, box-shadow .15s ease;}
body.page-apprendre .ap-hub-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.09);}
body.page-apprendre .ap-hub-emoji{font-size:34px;line-height:1;margin-bottom:14px;}
body.page-apprendre .ap-hub-card h2{font-size:24px;margin-bottom:8px;}
body.page-apprendre .ap-hub-card p{font-size:15.5px;color:rgba(28,23,18,.72);margin:0 0 18px;flex:1;}
body.page-apprendre .ap-hub-cta{font-weight:700;font-size:14.5px;}
body.page-apprendre .ap-progress-global{display:flex;align-items:center;gap:14px;margin:0 0 24px;font-size:14.5px;}
body.page-apprendre .ap-progress-bar{flex:0 0 220px;height:8px;border-radius:4px;background:var(--sand-deep);overflow:hidden;}
body.page-apprendre .ap-progress-bar span{display:block;height:100%;background:var(--ap-bon);border-radius:4px;}
body.page-apprendre .ap-fiabilite{margin-top:44px;background:var(--sand-deep);border-left:4px solid var(--df-jaune-vif);border-radius:0 3px 3px 0;padding:24px 28px;}
body.page-apprendre .ap-fiabilite h2{font-size:19px;margin-bottom:8px;}
body.page-apprendre .ap-fiabilite p{margin:0;font-size:15px;color:rgba(28,23,18,.8);max-width:80ch;}
body.page-apprendre .ap-fiabilite .ap-audio-bientot{margin-top:12px;font-weight:600;color:var(--ink);}
@media (max-width:640px){body.page-apprendre .ap-hub{grid-template-columns:1fr;}body.page-apprendre .ap-progress-bar{flex-basis:120px;}}

/* --- Parcours : étapes --- */
body.page-apprendre .ap-steps{list-style:none;padding:0;margin:0 0 36px;display:grid;grid-template-columns:repeat(5,1fr);gap:10px;scroll-margin-top:110px;}
body.page-apprendre .ap-step{display:flex;align-items:center;gap:10px;height:100%;box-sizing:border-box;padding:12px;background:var(--white);border:1.5px solid var(--line);border-radius:4px;text-decoration:none;color:var(--ink);}
body.page-apprendre .ap-step:hover{border-color:var(--ink);}
body.page-apprendre .ap-step.is-actif{border-color:var(--df-noir);box-shadow:inset 0 -4px 0 var(--cc);}
body.page-apprendre .ap-step-num{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--sand-deep);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;}
body.page-apprendre .ap-step.is-actif .ap-step-num{background:var(--df-noir);color:var(--df-jaune-vif);}
body.page-apprendre .ap-step-ok{display:none;}
body.page-apprendre .ap-step.is-fait .ap-step-num{background:var(--ap-bon);color:var(--white);}
body.page-apprendre .ap-step.is-fait .ap-step-n{display:none;}
body.page-apprendre .ap-step.is-fait .ap-step-ok{display:inline;}
body.page-apprendre .ap-step-txt{display:flex;flex-direction:column;min-width:0;}
body.page-apprendre .ap-step-txt b{font-size:13.5px;line-height:1.25;}
body.page-apprendre .ap-step-txt small{font-size:12px;color:rgba(28,23,18,.55);}
@media (max-width:900px){
  body.page-apprendre .ap-steps{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:8px;}
  body.page-apprendre .ap-steps li{flex:0 0 200px;}
}

/* --- Leçon --- */
body.page-apprendre .ap-lecon,body.page-apprendre .ap-gram{background:var(--white);border-radius:4px;border-top:5px solid var(--cc);padding:32px;box-shadow:0 1px 3px rgba(0,0,0,.06);scroll-margin-top:110px;}
body.page-apprendre .ap-gram{margin-bottom:28px;}
body.page-apprendre .ap-lecon-head{display:flex;gap:18px;align-items:flex-start;margin-bottom:22px;}
body.page-apprendre .ap-lecon-emoji{font-size:30px;line-height:1;width:56px;height:56px;flex-shrink:0;border-radius:50%;background:var(--sand-deep);display:flex;align-items:center;justify-content:center;}
body.page-apprendre .ap-lecon-num{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(28,23,18,.5);margin:0 0 4px;}
body.page-apprendre .ap-lecon-head h2{font-size:clamp(22px,2.6vw,30px);margin:0 0 6px;}
body.page-apprendre .ap-lecon-intro{margin:0;color:rgba(28,23,18,.72);font-size:16px;}
body.page-apprendre .ap-hint{font-size:13px;color:rgba(28,23,18,.55);margin:0 0 12px;}
body.page-apprendre .ap-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;}
body.page-apprendre .ap-card{perspective:1000px;display:block;width:100%;min-height:104px;border:none;background:none;padding:0;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;}
body.page-apprendre .ap-card-inner{display:grid;height:100%;transition:transform .45s;transform-style:preserve-3d;}
body.page-apprendre .ap-card.flipped .ap-card-inner{transform:rotateY(180deg);}
body.page-apprendre .ap-card-front,body.page-apprendre .ap-card-back{grid-area:1/1;min-height:104px;box-sizing:border-box;padding:14px;border-radius:4px;display:flex;align-items:center;justify-content:center;text-align:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;}
body.page-apprendre .ap-card-front{background:var(--sand);border:2px solid var(--cc);font-size:16px;font-weight:600;color:var(--ink);line-height:1.35;}
body.page-apprendre .ap-card-back{background:var(--df-noir);color:var(--df-jaune-vif);transform:rotateY(180deg);font-family:var(--serif);font-size:19px;font-weight:700;line-height:1.25;}
body.page-apprendre .ap-card:focus-visible{outline:3px solid var(--df-jaune-vif);outline-offset:3px;border-radius:4px;}
body.page-apprendre .ap-test-msg{font-size:17px;font-weight:700;margin:24px 0 0;}
body.page-apprendre .ap-test-msg.is-bon{color:var(--ap-bon);}
body.page-apprendre .ap-test-msg.is-faux{color:var(--ap-faux);}
body.page-apprendre .ap-fin-parcours{margin-top:28px;text-align:center;background:linear-gradient(120deg, var(--df-noir), var(--df-ambre));color:var(--white);border-radius:4px;padding:32px;}
body.page-apprendre .ap-fin-parcours p{font-size:18px;margin:0 0 16px;}
body.page-apprendre .ap-fin-parcours .btn-primary{background:var(--df-jaune-vif);color:var(--df-noir);}
@media (max-width:600px){
  body.page-apprendre .ap-lecon,body.page-apprendre .ap-gram{padding:22px 18px;}
  body.page-apprendre .ap-lecon-emoji{width:44px;height:44px;font-size:24px;}
  body.page-apprendre .ap-cards{grid-template-columns:repeat(2,1fr);gap:10px;}
  body.page-apprendre .ap-card-front{font-size:14.5px;}
  body.page-apprendre .ap-card-back{font-size:16px;}
}

/* --- Quiz (page Quiz + tests de fin de leçon) --- */
body.page-apprendre .ap-quiz-mount{max-width:680px;scroll-margin-top:110px;}
body.page-apprendre .ap-quiz-jeu{background:var(--white);border-radius:4px;padding:32px;box-shadow:0 1px 3px rgba(0,0,0,.06);}
body.page-apprendre .ap-quiz-jeu .ap-quiz-mount{margin:0 auto;}
body.page-apprendre .ap-quiz-jeu .ap-quiz-fin-actions{justify-content:center;}
body.page-apprendre .ap-q-top{display:flex;align-items:center;gap:14px;margin-bottom:22px;}
body.page-apprendre .ap-q-compteur{font-size:13px;font-weight:700;color:rgba(28,23,18,.6);white-space:nowrap;}
body.page-apprendre .ap-q-barre{flex:1;height:6px;border-radius:3px;background:var(--sand-deep);overflow:hidden;}
body.page-apprendre .ap-q-barre span{display:block;height:100%;background:var(--df-jaune);transition:width .3s;}
body.page-apprendre .ap-q-consigne{font-size:14px;color:rgba(28,23,18,.6);margin:0 0 4px;}
body.page-apprendre .ap-q-prompt{font-family:var(--serif);font-size:clamp(24px,3.4vw,34px);font-weight:700;color:var(--ink);margin:0 0 22px;line-height:1.2;}
body.page-apprendre .ap-q-reponses{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
body.page-apprendre .ap-q-rep{padding:15px 16px;border:1.5px solid var(--line);border-radius:4px;background:var(--sand);font-family:var(--sans);font-size:15.5px;font-weight:600;color:var(--ink);cursor:pointer;text-align:left;transition:border-color .12s, background .12s;}
body.page-apprendre .ap-q-rep:hover:not(:disabled){border-color:var(--ink);background:var(--white);}
body.page-apprendre .ap-q-rep:disabled{cursor:default;opacity:.55;}
body.page-apprendre .ap-q-rep.is-bon{opacity:1;border-color:var(--ap-bon);background:rgba(47,143,70,.12);}
body.page-apprendre .ap-q-rep.is-faux{opacity:1;border-color:var(--ap-faux);background:rgba(212,44,74,.1);}
body.page-apprendre .ap-q-feedback{min-height:1.6em;margin:16px 0 12px;font-weight:700;font-size:15px;}
body.page-apprendre .ap-q-feedback.is-bon{color:var(--ap-bon);}
body.page-apprendre .ap-q-feedback.is-faux{color:var(--ap-faux);}
body.page-apprendre .ap-q-resultat{text-align:center;padding:10px 0;outline:none;}
body.page-apprendre .ap-q-score-label{margin:0;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:rgba(28,23,18,.55);}
body.page-apprendre .ap-q-score{font-family:var(--serif);font-size:64px;font-weight:700;line-height:1;margin:6px 0 10px;color:var(--ink);}
body.page-apprendre .ap-q-score-msg{font-size:16px;margin:0;}
body.page-apprendre .ap-q-best{font-size:13.5px;color:rgba(28,23,18,.6);margin:10px 0 0;}
body.page-apprendre .ap-q-erreurs{margin-top:24px;background:var(--sand);border-radius:4px;padding:18px 22px;}
body.page-apprendre .ap-q-erreurs h3{font-size:16px;margin-bottom:10px;}
body.page-apprendre .ap-q-erreurs ul{list-style:none;margin:0;padding:0;}
body.page-apprendre .ap-q-erreurs li{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-top:1px solid var(--line);font-size:15px;}
body.page-apprendre .ap-q-erreurs li:first-child{border-top:none;}
body.page-apprendre .ap-q-erreurs li span{color:rgba(28,23,18,.7);text-align:right;}
@media (max-width:600px){
  body.page-apprendre .ap-q-reponses{grid-template-columns:1fr;}
  body.page-apprendre .ap-quiz-jeu{padding:22px 18px;}
}

/* Réglages du quiz */
body.page-apprendre .ap-quiz-setup{background:var(--white);border-radius:4px;padding:32px;box-shadow:0 1px 3px rgba(0,0,0,.06);}
body.page-apprendre .ap-quiz-setup fieldset{border:none;padding:0;margin:0 0 26px;}
body.page-apprendre .ap-quiz-setup legend{font-family:var(--serif);font-weight:700;font-size:19px;margin-bottom:12px;padding:0;}
body.page-apprendre .ap-themes,body.page-apprendre .ap-sens{display:flex;flex-wrap:wrap;gap:8px;}
body.page-apprendre .ap-theme{position:relative;cursor:pointer;}
body.page-apprendre .ap-theme input{position:absolute;opacity:0;pointer-events:none;}
body.page-apprendre .ap-theme span{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border:1.5px solid var(--line);border-radius:2px;background:var(--white);font-size:14px;font-weight:600;color:var(--ink);}
body.page-apprendre .ap-theme span small{font-size:11.5px;font-weight:600;opacity:.55;}
body.page-apprendre .ap-theme input:checked + span{background:var(--df-noir);border-color:var(--df-noir);color:var(--df-jaune-vif);}
body.page-apprendre .ap-theme input:focus-visible + span{outline:3px solid var(--df-jaune-vif);outline-offset:2px;}
@media (max-width:600px){body.page-apprendre .ap-quiz-setup{padding:22px 18px;}}

/* --- Grammaire --- */
body.page-apprendre .ap-sommaire{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px;}
body.page-apprendre .ap-sommaire a{display:inline-flex;align-items:center;gap:8px;padding:9px 14px 9px 9px;background:var(--white);border:1.5px solid var(--line);border-radius:30px;text-decoration:none;color:var(--ink);font-size:14px;font-weight:600;}
body.page-apprendre .ap-sommaire a:hover{border-color:var(--ink);}
body.page-apprendre .ap-sommaire a span{width:24px;height:24px;border-radius:50%;background:var(--cc);color:var(--white);display:flex;align-items:center;justify-content:center;font-size:12.5px;}
body.page-apprendre .ap-gram-texte{font-size:16.5px;max-width:72ch;margin:0 0 20px;}
body.page-apprendre .ap-gram-sous{font-size:15px;color:rgba(28,23,18,.75);margin:18px 0 10px;}
body.page-apprendre .ap-table-wrap{overflow-x:auto;}
body.page-apprendre .ap-table{border-collapse:collapse;min-width:320px;font-size:15.5px;}
body.page-apprendre .ap-table th,body.page-apprendre .ap-table td{padding:11px 18px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top;}
body.page-apprendre .ap-table thead th{font-size:12.5px;letter-spacing:.05em;text-transform:uppercase;color:rgba(28,23,18,.55);border-bottom:2px solid var(--ink);}
body.page-apprendre .ap-table tbody th{font-weight:600;color:rgba(28,23,18,.7);}
body.page-apprendre .ap-table td[lang],body.page-apprendre .ap-table td b{font-family:var(--serif);font-size:18px;font-weight:700;color:var(--ink);}
body.page-apprendre .ap-table td small{display:block;font-size:13px;color:rgba(28,23,18,.6);font-family:var(--sans);}
body.page-apprendre .ap-table .ap-fleche{color:var(--cc);font-size:20px;font-weight:700;}
body.page-apprendre .ap-table .ap-calcul{font-variant-numeric:tabular-nums;color:rgba(28,23,18,.7);}
body.page-apprendre .ap-chips{display:flex;flex-wrap:wrap;gap:8px;}
body.page-apprendre .ap-chip{display:inline-flex;align-items:baseline;gap:8px;padding:8px 14px;background:var(--sand);border-radius:3px;font-size:14.5px;color:rgba(28,23,18,.75);}
body.page-apprendre .ap-chip b{font-family:var(--serif);font-size:17px;color:var(--ink);}
body.page-apprendre .ap-chips-grands .ap-chip{padding:12px 18px;}
body.page-apprendre .ap-chips-grands .ap-chip b{font-size:21px;}
body.page-apprendre .ap-chip-base{background:var(--sand-deep);}
body.page-apprendre .ap-chip mark{background:var(--df-jaune-vif);color:var(--df-noir);padding:0 2px;border-radius:2px;}
body.page-apprendre .ap-retenir{margin-top:22px;background:var(--df-noir);color:var(--white);border-radius:4px;padding:16px 20px;font-size:15.5px;}
body.page-apprendre .ap-retenir b{color:var(--df-jaune-vif);margin-right:4px;}
body.page-apprendre .ap-source{font-size:12.5px;color:rgba(28,23,18,.5);margin:10px 0 0;font-style:italic;}
body.page-apprendre .ap-next{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:12px;}

/* Encart « Apprendre » sur la page Dictionnaire */
body.page-dictionnaire .dico-cta-apprendre{display:flex;align-items:center;gap:16px;margin:-12px 0 36px;padding:18px 22px;background:var(--df-noir);color:var(--white);border-radius:3px;text-decoration:none;transition:transform .15s ease;}
body.page-dictionnaire .dico-cta-apprendre:hover{transform:translateY(-2px);}
body.page-dictionnaire .dca-emoji{font-size:28px;line-height:1;}
body.page-dictionnaire .dca-txt{flex:1;font-size:15px;color:rgba(255,255,255,.85);}
body.page-dictionnaire .dca-txt b{color:var(--white);margin-right:4px;}
body.page-dictionnaire .dca-lien{font-weight:700;color:var(--df-jaune-vif);white-space:nowrap;}
@media (max-width:640px){body.page-dictionnaire .dico-cta-apprendre{flex-wrap:wrap;}body.page-dictionnaire .dca-lien{width:100%;}}
