/*
 * LOT 100 — L'ACCUEIL DE LA PLATEFORME, COMME UNE PRÉSENTATION.
 *
 * Servi par App\Support\Actifs sous /actifs/plateforme-<empreinte>.css : gardé
 * un an par le téléphone, jamais chargé par les pages de l'application.
 *
 * Trois gestuelles, une par langue (classe posée par le serveur sur .pf) :
 *   pf-fr : élégance posée — amples, lents, fondus, titre qui s'écrit ;
 *   pf-en : rythme net — vifs, glissements latéraux, titre mot à mot ;
 *   pf-ar : la plume — de droite à gauche, titre révélé par un tracé, étoile.
 * Tout état « caché avant apparition » est écrit sous html.pf-pret (posée par
 * le script lui-même) : sans script, tout est visible. Seuls transform,
 * opacity (et clip-path pour le titre arabe) sont animés.
 */

@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap;
    src: url("/fonts/amiri-700-arabe.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200F; }

.pf { --courbe-sortie: cubic-bezier(.22,.61,.36,1); --courbe-nette: cubic-bezier(.2,.8,.2,1); --courbe-plume: cubic-bezier(.45,.05,.25,1); }
.pf-fr { --d-titre: 900ms; --d-trans: 800ms; --d-diapo: 7s; --courbe: var(--courbe-sortie); --pas: 90ms; --d-carte: 700ms; }
.pf-en { --d-titre: 600ms; --d-trans: 600ms; --d-diapo: 6s; --courbe: var(--courbe-nette); --pas: 60ms; --d-carte: 500ms; }
.pf-ar { --d-titre: 1000ms; --d-trans: 1000ms; --d-diapo: 8s; --courbe: var(--courbe-plume); --pas: 110ms; --d-carte: 900ms; }

/* ---------- 1. Le héros ---------- */
.pf-heros { position: relative; overflow: hidden; color: #fff; background: #1E4630;
    background: radial-gradient(1100px 520px at 85% -10%, rgba(211,175,97,.30), transparent 60%),
                linear-gradient(135deg, #1E4630 0%, #2B6441 58%, #367A50 100%); }
.pf-heros-motif { position: absolute; inset: -24px 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4l6 18 18 6-18 6-6 18-6-18-18-6 18-6z' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1'/%3E%3C/svg%3E"); }
.pf-etoile { position: absolute; top: 18px; inset-inline-end: 18px; width: 150px; height: 150px; pointer-events: none; }
.pf-etoile path { fill: none; stroke: #EAD9AE; stroke-width: 1.5; stroke-linejoin: round; }
.pf-heros-grille { position: relative; display: grid; gap: 2rem; grid-template-columns: 1.15fr .85fr; align-items: center;
    padding-top: 3rem; padding-bottom: 2.4rem; min-height: min(78vh, 660px); }
.pf-heros-texte { min-width: 0; }

.pf-diapos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.5rem; scrollbar-width: none; }
.pf-diapos::-webkit-scrollbar { display: none; }
.pf-diapo { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.pf-pret .pf-diapos { display: grid; overflow: visible; }
/* Les diapositives partagent la hauteur de la plus haute : on centre les plus courtes (aucun saut, pas de trou en bas). */
.pf-pret .pf-diapo { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
/* DA lot 100 : fondu séquencé — la diapositive sortante s'efface dans le premier tiers,
   l'entrante n'arrive qu'ensuite : jamais deux titres l'un sur l'autre. */
.pf-pret .pf-diapo { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity calc(var(--d-trans) * .35) linear, transform var(--d-trans) var(--courbe), visibility 0s linear calc(var(--d-trans) * .35); }
.pf-pret .pf-diapo.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity calc(var(--d-trans) * .6) var(--courbe) calc(var(--d-trans) * .35), transform var(--d-trans) var(--courbe), visibility 0s; }

.pf-pastille { display: inline-flex; gap: .45rem; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
    padding: .35rem .8rem; border-radius: 999px; font-size: .84rem; font-weight: 600; color: #fff; text-decoration: none; }
.pf-pastille i { width: 8px; height: 8px; border-radius: 50%; background: #EFD98F; flex: none; }
.pf-surtitre { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: #EFD98F; }
.pf-ar .pf-surtitre { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.pf-titre { color: #fff; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 700;
    font-size: clamp(1.75rem, 6.5vw, 3.1rem); line-height: 1.15; letter-spacing: -.01em; margin: .7rem 0 .2rem; text-wrap: balance; max-width: 20ch; }
.pf-titre em { font-style: normal; color: #EFD98F; }
.pf-ar .pf-titre { font-family: "Amiri", "Noto Naskh Arabic", "Segoe UI", "Traditional Arabic", serif; letter-spacing: 0; line-height: 1.6;
    font-size: clamp(1.9rem, 7vw, 3.2rem); padding-block: .05em; }
.pf-filet { display: block; width: 64px; height: 3px; background: #D3AF61; margin: .5rem 0 1rem; transform-origin: left center; }
.pf-ar .pf-filet { transform-origin: right center; }
.pf-accroche { font-size: clamp(1.02rem, 3.4vw, 1.2rem); opacity: .95; max-width: 52ch; margin: 0 0 .8rem; }
.pf-confiance { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; margin: 0; opacity: .92; }
.pf-confiance span::before { content: "✓ "; color: #9be4bd; font-weight: 700; }
.pf-regions { list-style: none; padding: 0; margin: .2rem 0 .6rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.pf-regions li { font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.pf-lien { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid #D3AF61; padding-bottom: 2px; display: inline-flex; gap: .35rem; align-items: center; }
.pf-lien:hover { color: #EFD98F; }
.pf-ar .pf-fleche { display: inline-block; transform: scaleX(-1); }

.pf-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.3rem; }
.pf-actions .btn { min-height: 52px; font-size: 1.02rem; }
.pf-btn-contour { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.pf-btn-contour:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.pf-explorer { margin-inline-start: .3rem; }

/* Commandes : présentes seulement quand le diaporama tourne (script). */
.pf-commandes { display: flex; visibility: hidden; align-items: center; gap: .4rem; margin-top: 1.4rem; }
.pf-pret .pf-commandes { visibility: visible; }
.pf-rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.pf-rond:hover { background: rgba(255,255,255,.2); }
.pf-rond svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pf-rond .pf-ic-lecture { fill: currentColor; stroke: none; display: none; }
.pf-rond[aria-pressed="true"] .pf-ic-pause { display: none; }
.pf-rond[aria-pressed="true"] .pf-ic-lecture { display: block; }
.pf-ar .pf-sens { transform: scaleX(-1); }
.pf-puces { display: flex; }
.pf-puces button { width: 30px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0; }
.pf-puces i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.4); transition: transform .3s, background-color .3s; }
.pf-puces button[aria-current="true"] i { background: #D3AF61; transform: scale(1.35); }
.pf-rond:focus-visible, .pf-puces button:focus-visible, .pf-heros a:focus-visible, .pf-carte:focus-visible { outline: 3px solid #EFD98F; outline-offset: 3px; }
.pf-progres { visibility: hidden; height: 2px; background: rgba(255,255,255,.18); margin-top: .8rem; max-width: 320px; overflow: hidden; }
.pf-pret .pf-progres { visibility: visible; }
.pf-progres i { display: block; height: 100%; background: #D3AF61; transform: scaleX(0); transform-origin: left center; }
.pf-ar .pf-progres i { transform-origin: right center; }
.pf-progres.en-cours i { animation: pf-remplir var(--d-diapo) linear forwards; }
.pf-heros.en-pause .pf-progres i, .pf-heros.hors-ecran .pf-progres i { animation-play-state: paused; }
@keyframes pf-remplir { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Le téléphone */
.pf-scene { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.pf-tel { width: 250px; border-radius: 34px; background: #0b1f18; padding: 10px; position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.08); }
.pf-tel::before { content: ""; position: absolute; top: 14px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: #0b1f18; z-index: 2; }
.pf-ecran { position: relative; border-radius: 25px; overflow: hidden; background: #f6f8f7; aspect-ratio: 420 / 818; }
.pf-ecran img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-pret .pf-heros .pf-ecran img { opacity: 0; transition: opacity var(--d-trans) var(--courbe); }
.pf-pret .pf-heros .pf-ecran img.active { opacity: 1; }
.pf-heros .pf-ecran img:not([src]) { display: none; }
.pf-exemple { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: #fff; opacity: .88; text-align: center; }
.pf-exemple-clair { color: #4a5a54; opacity: 1; margin-top: .6rem; }

/* ---------- Mouvements, par langue (seulement si le mouvement est accepté) ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Le téléphone flotte, doucement ; arrêté hors écran. */
    .pf-pret .pf-heros .pf-tel { animation: pf-flotte 6s ease-in-out infinite; }
    .pf-heros.hors-ecran .pf-tel, .pf-heros.hors-ecran .pf-ecran img { animation-play-state: paused !important; }
    @keyframes pf-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

    /* Ken Burns, borné à la durée de la diapositive. */
    .pf-pret .pf-heros .pf-ecran img.active { animation: pf-kb var(--d-diapo) linear forwards; }
    .pf-heros.en-pause .pf-ecran img.active { animation-play-state: paused; }
    @keyframes pf-kb { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -1%); } }
    .pf-en .pf-heros .pf-ecran img.active { animation-name: pf-derive; }
    @keyframes pf-derive { from { transform: scale(1.03) translateX(0); } to { transform: scale(1.03) translateX(-2%); } }
    .pf-ar .pf-heros .pf-ecran img { transform-origin: top right; }
    .pf-ar .pf-heros .pf-ecran img.active { animation-name: pf-kb-ar; }
    @keyframes pf-kb-ar { from { transform: scale(1); } to { transform: scale(1.05); } }

    /* Filet or qui se trace après le titre. */
    .pf-pret .pf-filet { transform: scaleX(0); }
    .pf-pret .pf-titre.revele + .pf-filet { transform: scaleX(1); transition: transform 700ms var(--courbe) calc(var(--d-titre) * .75); }

    /* Français : cascade de haut en bas, fondu-montée. */
    .pf-pret .pf-fr .pf-diapo:not(#pf-diapo-0) > * { opacity: 0; transform: translateY(14px); transition: opacity var(--d-titre) var(--courbe), transform var(--d-titre) var(--courbe); }
    .pf-pret .pf-fr .pf-diapo.active:not(#pf-diapo-0) > * { opacity: 1; transform: none; }
    .pf-pret .pf-fr .pf-diapo.active > :nth-child(2) { transition-delay: calc(var(--pas) * 1); }
    .pf-pret .pf-fr .pf-diapo.active > :nth-child(3) { transition-delay: calc(var(--pas) * 2); }
    .pf-pret .pf-fr .pf-diapo.active > :nth-child(4) { transition-delay: calc(var(--pas) * 3); }
    .pf-pret .pf-fr .pf-diapo.active > :nth-child(n+5) { transition-delay: calc(var(--pas) * 4); }
    .pf-ecrit .pf-l { opacity: 0; }
    .pf-ecrit .pf-l.on { opacity: 1; transition: opacity 140ms linear; }
    .pf-l.curseur { box-shadow: 2px 0 0 #EFD98F; }
    .pf-l.curseur-fin { box-shadow: 2px 0 0 rgba(239,217,143,0); transition: box-shadow 400ms; }

    /* Anglais : glissement latéral de la diapositive, titre mot à mot. */
    .pf-pret .pf-en .pf-diapo { transform: translateX(8%); }
    .pf-pret .pf-en .pf-diapos[data-sens="-1"] .pf-diapo { transform: translateX(-8%); }
    .pf-pret .pf-en .pf-diapo.sortie { transform: translateX(-8%); }
    .pf-pret .pf-en .pf-diapos[data-sens="-1"] .pf-diapo.sortie { transform: translateX(8%); }
    .pf-pret .pf-en .pf-diapo.active { transform: none; }
    .pf-mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
    .pf-mot > span { display: inline-block; transform: translateY(105%); }
    .pf-titre.revele .pf-mot > span { transform: none; transition: transform 550ms var(--courbe-nette) calc(var(--k, 0) * var(--pas-mot, 60ms)); }

    /* Arabe : la plume, de droite à gauche ; la diapositive glisse depuis la droite. */
    .pf-pret .pf-ar .pf-titre:not(.revele) { clip-path: inset(0 0 0 100%); }
    .pf-pret .pf-ar .pf-titre.revele { clip-path: inset(0 0 0 0); transition: clip-path var(--d-titre) var(--courbe-plume); }
    .pf-pret .pf-ar .pf-diapo:not(#pf-diapo-0) > :not(.pf-titre) { opacity: 0; transform: translateX(16px); transition: opacity 900ms var(--courbe), transform 900ms var(--courbe); }
    .pf-pret .pf-ar .pf-diapo.active:not(#pf-diapo-0) > :not(.pf-titre) { opacity: 1; transform: none; transition-delay: calc(var(--pas) * 3); }
    .pf-pret .pf-ar .pf-etoile path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pf-trace 2.4s var(--courbe-plume) .2s forwards; }
    .pf-pret .pf-ar .pf-etoile path + path { animation-delay: 1s; }
    @keyframes pf-trace { to { stroke-dashoffset: 0; } }
}

/* ---------- Apparitions au défilement (posées par le script sous la ligne de flottaison) ---------- */
.pf-attente { opacity: 0; transform: translateY(16px); }
.pf-en .pf-attente { transform: translateX(-16px); }
.pf-ar .pf-attente { transform: translateX(16px); }
.pf-attente.vu { opacity: 1; transform: none; transition: opacity var(--d-titre) var(--courbe), transform var(--d-titre) var(--courbe);
    transition-delay: calc(var(--k, 0) * var(--pas)); }

/* ---------- Les chiffres ---------- */
.acc-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2rem; position: relative; z-index: 2; }
.acc-chiffre { background: #fff; border-radius: 18px; padding: 1.1rem 1rem; box-shadow: 0 14px 36px rgba(22,33,29,.10); text-align: center; }
.acc-chiffre b { display: inline-block; font-family: "Poppins", system-ui, sans-serif; font-size: 2.2rem; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.acc-chiffre span { display: block; font-size: .87rem; color: #4a5a54; }

/* ---------- L'offre de lancement ---------- */
.acc-offre { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; text-decoration: none; color: inherit;
    background: #fdf6e8; border: 2px solid #D3AF61; border-radius: 22px; padding: 1.1rem 1.3rem; box-shadow: 0 14px 34px rgba(184,146,63,.18); }
.acc-offre-ic { width: 40px; height: 40px; fill: none; stroke: #B8923F; stroke-width: 1.7; stroke-linejoin: round; }
.acc-offre-titre { display: block; font-size: 1.15rem; color: #7A5510; }
@media (max-width: 600px) { .acc-offre { grid-template-columns: auto 1fr; } .acc-offre > .btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; } }

/* ---------- Avant → avec : les cartes qui se retournent ---------- */
.pf-cartes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 1.4rem; }
.pf-carte { appearance: none; -webkit-appearance: none; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; font: inherit;
    color: inherit; text-align: start; cursor: pointer; border-radius: 20px; perspective: 900px; }
.pf-carte-in { display: grid; height: 100%; border-radius: 20px; }
.pf-face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: .7rem; border-radius: 20px; padding: 1.2rem 1.25rem; min-height: 230px; }
.pf-face-avant { background: #FAF9F6; border: 1px solid #e3ebe7; color: #1d2b24; }
.pf-face-avec { background: #1E4630; color: #fff; border: 1px solid #1E4630; }
.pf-face-tete { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; }
.pf-face-tete svg { width: 26px; height: 26px; fill: none; stroke: #8a938e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pf-face-avec .pf-face-tete svg { stroke: #D3AF61; }
.pf-face-tete b { font-family: "Poppins", system-ui, sans-serif; font-size: 1.02rem; }
.pf-ar .pf-face-tete b { font-family: inherit; }
.pf-face-tete small { flex-basis: 100%; font-size: .8rem; color: #5d6b66; }
.pf-face-avec .pf-face-tete small { color: #cfe3d8; }
.pf-face-texte { flex: 1; font-size: .98rem; line-height: 1.55; }
.pf-face-geste { font-size: .86rem; font-weight: 700; color: #2B6441; }
.pf-face-avec .pf-face-geste { color: #EFD98F; }
/* Sans script : les deux faces l'une sous l'autre. */
html:not(.pf-pret) .pf-carte-in { display: flex; flex-direction: column; gap: .5rem; }
html:not(.pf-pret) .pf-face-geste { display: none; }
.pf-pret .pf-carte-in { transform-style: preserve-3d; transition: transform var(--d-carte) var(--courbe); }
.pf-pret .pf-face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pf-pret .pf-face-avec { transform: rotateY(180deg); }
.pf-pret .pf-carte[aria-pressed="true"] .pf-carte-in { transform: rotateY(180deg); }
.pf-pret .pf-ar .pf-face-avec, .pf-pret .pf-ar .pf-carte[aria-pressed="true"] .pf-carte-in { transform: rotateY(-180deg); }
@media (hover: hover) { .pf-carte:hover .pf-face-avant { border-color: #b8c9c0; } }

/* ---------- Rôles, avec la capture réelle ---------- */
.acc-titre { max-width: 760px; }
.acc-titre h2 { font-size: clamp(1.4rem, 4.5vw, 2.2rem); line-height: 1.2; margin: .3rem 0 .6rem; text-wrap: balance; }
.acc-titre p { color: #4a5a54; font-size: 1.02rem; }
.acc-h2 { font-size: clamp(1.4rem, 4.5vw, 2.2rem); line-height: 1.2; }
.acc-roles { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.3rem 0 1rem; }
.acc-roles button { border: 1.5px solid var(--trait, #dde5e1); background: #fff; border-radius: 999px; padding: .55rem 1rem; min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; }
.acc-roles button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc-role { display: none; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; background: #fff; border-radius: 22px; padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(22,33,29,.07); border: 1px solid #e3ebe7; }
.acc-role.actif { display: grid; }
.acc-role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.acc-role li { display: flex; gap: .6rem; align-items: flex-start; }
.acc-role li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 7px; margin-top: .1rem;
    background: var(--accent-pale, #e8f0ed) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a4d3c' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.pf-role-ecran { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.pf-tel-petit { width: 210px; border-radius: 30px; padding: 8px; box-shadow: 0 18px 40px rgba(22,33,29,.22); }
.pf-tel-petit .pf-ecran { border-radius: 23px; }
.pf-role-ecran .pf-exemple { color: #4a5a54; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .pf-pret .acc-role.actif { animation: pf-paraitre var(--d-trans) var(--courbe); }
    @keyframes pf-paraitre { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- Parcours, bulletin, Afrique, jeux, confiance (reprise du 25/09) ---------- */
.acc-parcours { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
#offres { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: start; }
.acc-etape { background: #fff; border-radius: 18px; padding: 1rem; border: 1px solid #e3ebe7; transition: transform .4s, border-color .4s; }
.acc-etape .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #eef3f1; color: #4a5a54; transition: background-color .4s, color .4s; }
.acc-etape h3 { font-size: 1rem; margin: .6rem 0 .3rem; }
.acc-etape p { margin: 0; font-size: .88rem; color: #4a5a54; }
.acc-etape.vu { border-color: var(--accent); transform: translateY(-3px); }
.acc-etape.vu .n { background: var(--accent); color: #fff; }
.acc-jauge { height: 8px; background: #e3ebe7; border-radius: 99px; margin-top: 1.2rem; overflow: hidden; }
.acc-jauge i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .6s; }
[dir="rtl"] .acc-jauge i { transform-origin: right center; }
.acc-bulletin { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; }
.acc-feuille { background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(22,33,29,.16); padding: 1.1rem; font-size: .72rem; color: #16211d;
    border-top: 6px solid var(--mod, #2B6441); transition: border-color .4s; }
.acc-feuille .ent { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--mod, #2B6441); }
.acc-feuille .ent .ar { direction: rtl; font-size: .85rem; }
.acc-feuille .logo { width: 38px; height: 38px; border-radius: 50%; background: var(--mod, #2B6441); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .7rem; }
.acc-feuille .titre { text-align: center; letter-spacing: .2em; font-weight: 800; margin: .7rem 0 .2rem; }
.acc-feuille table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.acc-feuille th { background: var(--mod, #2B6441); color: #fff; padding: .35rem; text-align: start; font-size: .66rem; }
.acc-feuille td { padding: .35rem; border-bottom: 1px solid #edf1ef; }
.acc-modeles { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.acc-modeles button { display: flex; align-items: center; gap: .45rem; border: 1.5px solid #dde5e1; background: #fff; border-radius: 12px; padding: .45rem .75rem; min-height: 44px;
    font: inherit; font-weight: 600; cursor: pointer; }
.acc-modeles button i { width: 16px; height: 16px; border-radius: 5px; }
.acc-modeles button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-pale, #e8f0ed); }
.acc-afrique { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.acc-carte { width: 100%; max-width: 420px; height: auto; display: block; margin-inline: auto; }
.acc-point { fill: #D3AF61; }
.acc-onde { fill: none; stroke: #D3AF61; stroke-width: 2; transform-origin: center; transform-box: fill-box; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
    /* Lot 101 : une carte vivante mais douce — chaque ville émet une onde toutes les 5 s (départs
       décalés), le Cameroun pulse lentement. Transform et opacité seulement ; en pause hors écran
       ou onglet caché (classe posée par le script). */
    .acc-onde { animation: onde 5s ease-out infinite; }
    .acc-point-cameroun { transform-origin: center; transform-box: fill-box; animation: pouls 3.2s ease-in-out infinite; }
    .acc-carte.en-pause .acc-onde, .acc-carte.en-pause .acc-point-cameroun { animation-play-state: paused; }
    @keyframes onde { 0% { transform: scale(.4); opacity: 0; } 8% { opacity: .75; } 55% { transform: scale(2.8); opacity: 0; } 100% { transform: scale(2.8); opacity: 0; } }
    @keyframes pouls { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
}
.acc-systemes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.acc-systemes span { background: #fff; border: 1px solid #dde5e1; border-radius: 999px; padding: .35rem .8rem; font-size: .86rem; font-weight: 600; }
.acc-jeux { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 1rem; }
.acc-jeu { background: #fff; border-radius: 22px; padding: 1.5rem; border: 1px solid #e3ebe7; }
.acc-question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed #dde5e1; }
.acc-question .choix { display: flex; gap: .35rem; flex: 0 0 auto; }
.acc-question button { border: 1.5px solid #dde5e1; background: #fff; border-radius: 10px; padding: .35rem .8rem; min-height: 40px; font: inherit; font-weight: 700; cursor: pointer; }
.acc-question button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.acc-score { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.acc-badge { width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem;
    background: conic-gradient(var(--accent) var(--p, 0%), #e3ebe7 0); position: relative; }
.acc-badge::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.acc-badge span { position: relative; z-index: 1; }
.acc-calc label { font-weight: 700; display: flex; justify-content: space-between; margin-top: .9rem; }
.acc-calc input[type=range] { width: 100%; accent-color: var(--accent); }
.acc-gain { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin: .8rem 0 0; font-variant-numeric: tabular-nums; }
.acc-securite { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.acc-securite .carte { border-radius: 18px; }
.acc-securite svg { width: 40px; height: 40px; }
.acc-final { background: #1E4630; background: linear-gradient(135deg, #1E4630, #2B6441); color: #fff; border-radius: 26px; padding: 2.4rem 1.6rem; text-align: center; }
.acc-final h2 { color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.3rem); margin: .2rem 0 .7rem; }
.acc-final .pf-actions .btn { min-height: 48px; }

/* ---------- Téléphone d'abord ---------- */
@media (max-width: 880px) {
    .pf-heros-grille, .acc-bulletin, .acc-afrique { grid-template-columns: 1fr; }
    .pf-heros-grille { padding-top: 1.6rem; padding-bottom: 3.6rem; min-height: 0; gap: 1.6rem; }
    .acc-chiffres, .acc-parcours { grid-template-columns: repeat(2, 1fr); }
    .acc-role { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pf-actions .btn { flex: 1 1 100%; }
    .pf-explorer { margin: .2rem auto 0; }
    .pf-heros .pf-tel { width: 200px; border-radius: 30px; padding: 8px; }
    .pf-heros .pf-ecran { border-radius: 23px; }
    .pf-regions li { font-size: .74rem; padding: .12rem .5rem; }
    .pf-accroche { margin-bottom: .6rem; }
    .pf-actions { margin-top: 1rem; }
    .pf-etoile { width: 84px; height: 84px; top: auto; bottom: 18px; inset-inline-end: 10px; }
    .acc-chiffre b { font-size: 1.8rem; }
}

/* ---------- Mouvement réduit : fondus courts, rien d'autre ---------- */
@media (prefers-reduced-motion: reduce) {
    .pf-pret .pf-diapo { transition: opacity 200ms linear, visibility 0s linear 200ms; transform: none !important; }
    .pf-pret .pf-diapo.active { transition: opacity 200ms linear, visibility 0s; }
    .pf-pret .pf-heros .pf-ecran img { transition: opacity 200ms linear; transform: none; }
    .pf-progres, .pf-pret .pf-progres { visibility: hidden; }
    .pf-attente { transform: none !important; }
    .pf-attente.vu { transition: opacity 200ms linear; transition-delay: 0s; }
    .pf-pret .pf-carte-in { transition: none; transform: none !important; }
    .pf-pret .pf-face { transition: opacity 200ms linear; }
    .pf-pret .pf-face-avec { transform: none !important; opacity: 0; }
    .pf-pret .pf-carte[aria-pressed="true"] .pf-face-avec { opacity: 1; }
    .pf-pret .pf-carte[aria-pressed="true"] .pf-face-avant { opacity: 0; }
    .acc-etape, .acc-jauge i { transition: none; }
    html { scroll-behavior: auto; }
}

/* Une ancre (#explorer, #avant-apres) ne se cache pas sous la barre du haut. */
.pf section[id] { scroll-margin-top: 84px; }

/* ---------- Lot 101 : « Découvrir Sahel EDU », la présentation racontée ouverte dans la page ---------- */
.pf-btn-or { background: #D3AF61; color: #16211d; border-color: #D3AF61; min-height: 56px; display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; }
.pf-btn-or:hover { background: #EFD98F; border-color: #EFD98F; color: #16211d; }
.pf-ic-lecture-btn { width: 1.15em; height: 1.15em; fill: currentColor; flex: 0 0 auto; }
.pf-ar .pf-ic-lecture-btn { transform: scaleX(-1); }
.pf-decouvrir { background: #0F2418; color: #fff; padding: 1.8rem 0; }
.pf-decouvrir-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.6rem; align-items: center; }
.pf-decouvrir h2 { color: #fff; margin: .3rem 0 .5rem; font-size: clamp(1.35rem, 3.2vw, 2rem); }
.pf-decouvrir-texte > p { margin: 0 0 .8rem; max-width: 60ch; }
.pf-decouvrir-vignette { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #1E4630; border: 1px solid #2B6441; }
.pf-decouvrir-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-decouvrir-rond { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: #D3AF61; color: #16211d; display: grid; place-items: center; }
.pf-decouvrir-rond .pf-ic-lecture-btn { width: 32px; height: 32px; }
.pf-decouvrir-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.pf-decouvrir-duree { font-weight: 600; color: #E3EBE7; }
.pf-decouvrir .pf-decouvrir-mention { margin: .8rem 0 0; font-size: .86rem; color: #C9D6CF; }
@media (max-width: 760px) {
    .pf-decouvrir-grille { grid-template-columns: 1fr; }
    .pf-decouvrir-vignette { order: 2; }
    .pf-decouvrir-actions .btn { flex: 1 1 100%; justify-content: center; }
}
/* La surcouche : tout l'écran, un bouton « Fermer » toujours visible (en fin de ligne ; à gauche en arabe). */
.pf-surcouche { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0F2418; color: #fff; }
.pf-surcouche[open] { display: flex; flex-direction: column; }
.pf-surcouche::backdrop { background: #0F2418; }
.pf-surcouche-barre { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 52px;
    padding: max(.3rem, env(safe-area-inset-top)) max(.7rem, env(safe-area-inset-right)) .3rem max(.7rem, env(safe-area-inset-left)); }
.pf-surcouche-nom { font-weight: 800; letter-spacing: .02em; }
.pf-surcouche-fermer { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid #fff;
    background: #0F2418; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.pf-surcouche-fermer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pf-surcouche-fermer:focus-visible { outline: 3px solid #D3AF61; outline-offset: 2px; }
.pf-surcouche-cadre { flex: 1 1 auto; position: relative; }
.pf-surcouche-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0F2418; }
html.pf-surcouche-ouverte { overflow: hidden; }
