/* =====================================================================
   PE-3 : page /parcours-eleva (chantier parcours-eleva).
   Repris de claude/maquette-parcours-eleva.html ; toutes les classes sont
   prefixees pc- (les noms de la maquette existent deja dans theme.css).
   Police : Manrope du site (aucune police externe).
   Deux modes :
   - sans JavaScript (html sans .js-enhanced) : les 11 panneaux s'empilent,
     tout est visible, les liens #ancre menent au panneau ;
   - avec JavaScript : une scene de la hauteur de l'ecran sous l'en-tete
     (--pc-header-h, mesuree par parcours.js, repli 76px), un panneau a la
     fois, defilement interne ; le pied de page est en dessous.
   ===================================================================== */

.pc-app {
    --pc-navy: #20304A;
    --pc-navy-d: #141F34;
    --pc-navy-m: #2B3F5E;
    --pc-gold: #C09E0D;
    --pc-gold-l: #E3C24A;
    --pc-cream: #F5F3EE;
    --pc-line: rgba(255, 255, 255, .12);
    --pc-txt: rgba(255, 255, 255, .86);
    --pc-mut: rgba(255, 255, 255, .66);
    --pc-li: clamp(30px, 4.3vh, 40px);
    /* PE-4h : hauteur reelle de la barre Precedent / Suivant (.pc-nav) :
       padding 18 + 22, bouton contour 15 + 18 + 15 + 2 x 2 de bordure. */
    --pc-nav-h: 92px;
    --pc-fondu: 20px;
    --pc-ease: cubic-bezier(.22, .8, .2, 1);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    font-family: "Manrope", "Manrope repli", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: #fff;
    background: var(--pc-navy-d);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.pc-app *,
.pc-app *::before,
.pc-app *::after {
    box-sizing: border-box;
}

.pc-app :focus-visible {
    outline: 3px solid var(--pc-gold-l);
    outline-offset: 3px;
}

.pc-app .pc-title:focus {
    outline: none;
}

html.js-enhanced .pc-app {
    height: calc(100vh - var(--pc-header-h, 76px));
    height: calc(100dvh - var(--pc-header-h, 76px));
    min-height: 420px;
}

/* ---------- Frise laterale ---------- */
.pc-rail {
    background: var(--pc-navy-d);
    border-right: 1px solid var(--pc-line);
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    position: relative;
    z-index: 6;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

html:not(.js-enhanced) .pc-rail {
    position: sticky;
    top: var(--pc-header-h, 76px);
    align-self: start;
    height: calc(100vh - var(--pc-header-h, 76px));
}

.pc-rail-title {
    margin: 0 0 14px;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pc-mut);
    font-weight: 600;
}

.pc-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Trait de repli tant que parcours.js n'a pas dessine la frise (.pc-fz). */
.pc-steps::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: rgba(192, 158, 13, .45);
}

.pc-steps.pc-has-fz::before {
    display: none;
}

.pc-fz {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.pc-seg-line {
    fill: none;
    stroke-linecap: round;
    stroke-width: 2.5;
    transition: stroke .5s, filter .5s;
}

.pc-seg-g {
    stroke: rgba(192, 158, 13, .45);
}

.pc-seg-g.pc-done {
    stroke: #E3C24A;
    filter: drop-shadow(0 0 6px rgba(227, 194, 74, .85));
}

.pc-steps li {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-height: var(--pc-li);
    max-height: 84px;
    display: flex;
    align-items: center;
}

.pc-steps li.pc-k-projet,
.pc-steps li.pc-k-partage {
    flex-grow: 1.5;
    min-height: calc(var(--pc-li) + 16px);
}

.pc-step-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    width: 100%;
    cursor: pointer;
    color: var(--pc-mut);
    border-radius: 8px;
    text-decoration: none;
}

.pc-step-btn:focus-visible {
    outline-offset: 2px;
}

li.pc-k-projet .pc-step-btn,
li.pc-k-partage .pc-step-btn {
    padding-left: 30px;
}

.pc-dot {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pc-navy-d);
    border: 2px solid rgba(255, 255, 255, .32);
    display: grid;
    place-items: center;
    transition: all .45s var(--pc-ease);
    position: relative;
    z-index: 1;
}

.pc-lbl {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.25;
    transition: color .3s, transform .45s var(--pc-ease);
}

.pc-lbl small {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.2;
    font-style: italic;
    font-weight: 600;
    color: #fff;
    opacity: .85;
}

.pc-step-btn:hover .pc-lbl {
    color: #fff;
}

li.pc-done .pc-dot {
    border-color: var(--pc-gold);
    background: var(--pc-gold);
}

li.pc-done .pc-dot::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--pc-navy);
    border-bottom: 2px solid var(--pc-navy);
    transform: rotate(-45deg) translate(1px, -1px);
}

li.pc-current .pc-dot {
    border-color: var(--pc-gold);
    box-shadow: 0 0 0 6px rgba(192, 158, 13, .28);
    transform: scale(1.14);
}

li.pc-current .pc-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pc-gold-l);
}

li.pc-current .pc-lbl {
    color: #fff;
    font-weight: 700;
    transform: translateX(4px);
}

/* Etapes cote Eleva : points plus petits, blancs. */
li.pc-k-projet .pc-dot,
li.pc-k-partage .pc-dot {
    width: 15px;
    height: 15px;
    border-width: 2px;
    margin-left: 5px;
    margin-right: 4px;
    border-color: rgba(255, 255, 255, .7);
}

li.pc-k-partage .pc-dot,
li.pc-k-partage.pc-done .pc-dot {
    background: linear-gradient(135deg, #fff 50%, var(--pc-gold) 50%);
}

li.pc-k-projet.pc-done .pc-dot {
    background: #fff;
    border-color: #fff;
}

li.pc-k-partage.pc-done .pc-dot {
    border-color: #fff;
}

li.pc-k-projet.pc-done .pc-dot::after,
li.pc-k-partage.pc-done .pc-dot::after {
    width: 6px;
    height: 3px;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(-45deg) translate(0, -1px);
}

li.pc-k-projet.pc-current .pc-dot,
li.pc-k-partage.pc-current .pc-dot {
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
    transform: scale(1.14);
}

li.pc-k-projet.pc-current .pc-dot::after,
li.pc-k-partage.pc-current .pc-dot::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    transform: none;
}

.pc-rail-cta,
.pc-mcta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-rail-cta {
    margin: 14px 0;
    flex-wrap: nowrap;
}

.pc-rail-cta .pc-btn {
    padding: 11px 12px;
    font-size: 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.pc-dejac {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #C9D0DC;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.pc-dejac:hover,
.pc-dejac:focus-visible {
    color: #fff;
}

.pc-rail-foot {
    margin: auto 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--pc-mut);
}

@media (max-height: 780px) {
    .pc-rail-foot {
        display: none;
    }

    .pc-lbl small {
        font-size: 10.5px;
    }
}

.pc-mbar {
    display: none;
}

/* ---------- Scene ---------- */
.pc-stage {
    position: relative;
    overflow: hidden;
    background: var(--pc-navy);
    min-width: 0;
}

.pc-bgfx {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(900px 600px at 88% 8%, rgba(192, 158, 13, .16), transparent 60%),
        radial-gradient(1100px 700px at 6% 105%, rgba(80, 110, 170, .30), transparent 60%),
        linear-gradient(160deg, #25395F, #17233A);
}

.pc-bgfx::before {
    content: "";
    position: absolute;
    inset: -48px;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: pc-drift 26s linear infinite;
}

@keyframes pc-drift {
    to { transform: translate(48px, 48px); }
}

.pc-wipe {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 28%, rgba(227, 194, 74, .30) 50%, transparent 72%);
    transform: translateX(-115%);
}

.pc-wipe.pc-go {
    animation: pc-wipe .95s cubic-bezier(.6, .1, .3, 1);
}

@keyframes pc-wipe {
    from { transform: translateX(-115%); }
    to { transform: translateX(115%); }
}

/* Sans JS : panneaux empiles. */
.pc-panel {
    position: relative;
    padding: 52px 56px 52px;
    scroll-margin-top: var(--pc-header-h, 76px);
}

html.js-enhanced .pc-panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    /* PE-4h : la zone qui defile s'arrete au-dessus de la barre Precedent /
       Suivant ; le texte s'efface sur --pc-fondu au lieu de passer dessous,
       et le padding bas laisse le dernier point entier hors du fondu. */
    bottom: var(--pc-nav-h);
    padding: 52px 56px var(--pc-fondu);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--pc-fondu)), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - var(--pc-fondu)), transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px) scale(.985);
    transition: opacity .55s var(--pc-ease), transform .7s var(--pc-ease), visibility 0s linear .7s;
}

html.js-enhanced .pc-panel.pc-is-above {
    transform: translateY(-60px) scale(.985);
}

html.js-enhanced .pc-panel.pc-is-below {
    transform: translateY(60px) scale(.985);
}

html.js-enhanced .pc-panel.pc-is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .6s var(--pc-ease) .1s, transform .75s var(--pc-ease) .1s, visibility 0s;
}

.pc-no-anim .pc-panel,
.pc-no-anim .pc-panel * {
    transition: none !important;
}

.pc-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    gap: 52px;
    align-items: center;
    position: relative;
}

/* PE-4h : le grand chiffre decoratif (.pc-ghost) descend de 30 px sous le
   contenu ; il ne doit pas a lui seul rendre un panneau defilable
   (panneaux 1 et 4 a 1 440 x 900). Marge de 8 px pour les contours de focus. */
html.js-enhanced .pc-inner {
    overflow-y: clip;
    overflow-clip-margin: 8px;
}

.pc-ghost {
    position: absolute;
    left: -14px;
    bottom: -30px;
    font-size: clamp(200px, 26vw, 380px);
    font-weight: 800;
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .07);
    pointer-events: none;
    user-select: none;
    letter-spacing: -.05em;
}

.pc-copy,
.pc-vis {
    position: relative;
    z-index: 1;
}

.pc-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--pc-gold-l);
    margin: 0 0 14px;
}

.pc-title {
    margin: 0 0 18px;
    font-size: clamp(30px, 3.5vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.015em;
}

.pc-lead {
    margin: 0 0 22px;
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--pc-txt);
}

/* PE-5d (R12 d) : lien pose sur des mots du texte (etapes 2 et 9), souligne,
   couleur du texte (contraste > 4,5:1 sur le fond nuit du panneau). */
.pc-txtlink {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.pc-txtlink:hover { text-decoration-thickness: 2px; }

/* Jauges « Votre acces client » et encart de nature (PE-4). */
.pc-acc { margin: 0 0 20px; }
.pc-acc-k { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pc-mut); }
.pc-acc-g { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pc-acc-g li { min-width: 0; }
.pc-acc-g i { display: block; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .18); position: relative; overflow: hidden; }
.pc-acc-g i::after { content: ""; position: absolute; inset: 0; background: var(--pc-gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--pc-ease); }
.pc-is-active .pc-acc-g li.pc-on i::after { transform: scaleX(1); transition-delay: 700ms; }
.pc-is-active .pc-acc-g li:nth-child(2).pc-on i::after { transition-delay: 880ms; }
.pc-is-active .pc-acc-g li:nth-child(3).pc-on i::after { transition-delay: 1060ms; }
.pc-is-active .pc-acc-g li:nth-child(4).pc-on i::after { transition-delay: 1240ms; }
html:not(.js-enhanced) .pc-acc-g li.pc-on i::after { transform: scaleX(1); }
.pc-acc-g span { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 600; line-height: 1.25; color: rgba(255, 255, 255, .5); }
.pc-acc-g li.pc-on span { color: var(--pc-txt); }
.pc-acc-g li.pc-now span { color: #fff; font-weight: 800; }
.pc-acc-g li.pc-now i::after { background: var(--pc-gold-l); box-shadow: 0 0 10px rgba(227, 194, 74, .8); }
.pc-kind { margin: 0 0 20px; }
.pc-kind .pc-kt { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pc-navy-d); background: #fff; border-radius: 999px; padding: 5px 12px; }
.pc-kind-partage .pc-kt { background: linear-gradient(90deg, #fff 60%, var(--pc-gold-l)); }
.pc-kind p { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; font-style: italic; color: #fff; }

.pc-points { list-style: none; margin: 0; padding: 0; }
.pc-points li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--pc-line); }
.pc-points li:last-child { border-bottom: 1px solid var(--pc-line); }
.pc-points .pc-ico { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--pc-gold); margin-top: 2px; position: relative; }
.pc-points .pc-ico::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--pc-gold); }
.pc-points b { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pc-gold-l); margin-bottom: 3px; }
.pc-points span { font-size: 15px; line-height: 1.55; color: var(--pc-txt); }
/* PE-4c : points de l'etape 1, forme de la capture d'Anthony (maquette-parcours-etape1.png). */
.pc-points-idee li { gap: 16px; }
.pc-points-idee .pc-ico { width: 24px; height: 24px; border-width: 2.5px; margin-top: 1px; }
.pc-points-idee .pc-ico::after { inset: 5px; }
.pc-points-idee b { font-size: 12.5px; letter-spacing: .18em; margin-bottom: 4px; }

.pc-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 12px;
    padding: 15px 24px;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--pc-ease), box-shadow .2s, background .2s, opacity .2s;
}

.pc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.pc-btn-gold {
    background: var(--pc-gold);
    color: var(--pc-navy-d);
}

.pc-btn-gold:hover {
    background: var(--pc-gold-l);
}

.pc-btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
}

.pc-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
}

.pc-free {
    align-self: center;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 600;
    color: #C9D0DC;
}

/* Entrees en cascade (avec JS seulement). */
html.js-enhanced .pc-rv {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s var(--pc-ease), transform .75s var(--pc-ease);
}

html.js-enhanced .pc-is-active .pc-rv {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--pc-i, 0) * 85ms + 300ms);
}

html.js-enhanced .pc-vis.pc-rv {
    transform: translateY(32px) scale(.96);
}

html.js-enhanced .pc-is-active .pc-vis.pc-rv {
    transform: none;
}

/* ---------- Accueil ---------- */
.pc-intro .pc-inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    row-gap: 30px;
}

.pc-intro .pc-title {
    font-size: clamp(34px, 4.4vw, 62px);
}

.pc-intro .pc-title em {
    font-style: normal;
    color: var(--pc-gold);
}

.pc-hint {
    margin: 22px 0 0;
    font-size: 13px;
    color: var(--pc-mut);
}

.pc-app kbd {
    font: inherit;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 2px 7px;
    color: #fff;
}

.pc-minis {
    grid-column: 1 / -1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.pc-mini {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--pc-line);
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--pc-ease), background .25s, border-color .25s;
}

.pc-mini:hover,
.pc-mini:focus-visible {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .13);
    border-color: var(--pc-gold);
}

.pc-mini.pc-k-projet,
.pc-mini.pc-k-partage {
    border: 1px dashed rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .03);
}

.pc-mini-n {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--pc-navy-d);
    background: var(--pc-gold-l);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.pc-mini-l {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}

.pc-mini.pc-k-projet .pc-mini-l,
.pc-mini.pc-k-partage .pc-mini-l {
    font-style: italic;
}

/* ---------- Cadre de scene ---------- */
.pc-vframe {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--pc-cream);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: perspective(1400px) rotateY(var(--pc-ry, 0deg)) rotateX(var(--pc-rx, 0deg));
    transition: transform .45s var(--pc-ease);
}

.pc-vframe .pc-sc { position: absolute; left: 0; top: 0; width: 100%; height: 88.89%; display: block; }
.pc-vframe.pc-nov .pc-sc { height: 100%; }
.pc-vctl { position: absolute; left: 0; right: 0; bottom: 0; height: 11.11%; min-height: 34px; background: var(--pc-navy-d); display: flex; align-items: center; gap: 12px; padding: 0 14px; z-index: 2; }
.pc-vframe.pc-nov .pc-vctl { display: none; }
.pc-pp { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--pc-gold); display: grid; place-items: center; padding: 0; cursor: pointer; }
.pc-pp:hover { background: var(--pc-gold-l); }
.pc-vframe.pc-paused .pc-ico-pause,
.pc-vframe:not(.pc-paused) .pc-ico-play { display: none; }
.pc-vbar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.pc-vbar i { display: block; height: 100%; width: 100%; background: var(--pc-gold-l); transform: scaleX(0); transform-origin: left; }
.pc-vframe.pc-play .pc-vbar i { animation: pc-vprog var(--pc-dur, 9000ms) linear both; }
@keyframes pc-vprog { to { transform: scaleX(1); } }
.pc-vframe.pc-paused * { animation-play-state: paused !important; }
.pc-rp { margin-left: auto; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font: inherit; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: all .3s; }
.pc-rp:hover { border-color: #fff; }
.pc-vframe.pc-ended .pc-rp { background: var(--pc-gold); border-color: var(--pc-gold); color: var(--pc-navy-d); animation: pc-rpulse 1.8s ease-in-out 2; }
@keyframes pc-rpulse { 50% { box-shadow: 0 0 0 7px rgba(192, 158, 13, .35); } }

/* Animations de scene (PE-4), rejouees a chaque lecture. */
.pc-sc text { font-family: "Manrope", "Manrope repli", system-ui, sans-serif; }
.pc-sc .pc-a { opacity: 0; transform-box: fill-box; transform-origin: center; }
.pc-sc .pc-a.pc-dr { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pc-sc .pc-sh { filter: drop-shadow(0 8px 12px rgba(32, 48, 74, .16)); }
.pc-play .pc-a.pc-up { animation: pc-aUp .8s var(--pc-ease) var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-pop { animation: pc-aPop .65s cubic-bezier(.34, 1.56, .64, 1) var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-rt { animation: pc-aRt .85s var(--pc-ease) var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-lf { animation: pc-aLf .85s var(--pc-ease) var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-fade { animation: pc-aFade .8s ease var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-dr { animation: pc-aDraw var(--pc-t, 1.2s) ease-in-out var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-gx { transform-origin: left center; animation: pc-aGx var(--pc-t, 1s) ease-out var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-gy { transform-origin: center bottom; animation: pc-aGy var(--pc-t, 1s) ease-out var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-drop { animation: pc-aDrop .8s cubic-bezier(.34, 1.3, .64, 1) var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-fly { animation: pc-aFly .9s var(--pc-ease) var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-cur { animation: pc-aCur 2.2s var(--pc-ease) var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-stamp { animation: pc-aStamp .6s cubic-bezier(.3, 1.6, .5, 1) var(--pc-d, 0s) both; }
.pc-play .pc-a.pc-adj { transform-origin: left center; animation: pc-aAdj var(--pc-t, 2s) ease-in-out var(--pc-d, 0s) both; }
.pc-play .pc-float { transform-box: fill-box; animation: pc-aFloat 3.4s ease-in-out infinite; }
.pc-play .pc-float.pc-b { animation-delay: -1.4s; }
@keyframes pc-aUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pc-aPop { from { opacity: 0; transform: scale(.15); } to { opacity: 1; transform: scale(1); } }
@keyframes pc-aRt { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@keyframes pc-aLf { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: none; } }
@keyframes pc-aFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pc-aDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pc-aGx { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes pc-aGy { from { opacity: 1; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes pc-aDrop { from { opacity: 0; transform: translateY(-80px); } to { opacity: 1; transform: none; } }
@keyframes pc-aFly { from { opacity: 0; transform: translateY(-130px) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes pc-aCur { 0% { opacity: 0; transform: translate(170px, 120px); } 25% { opacity: 1; } 65%, 100% { opacity: 1; transform: none; } }
@keyframes pc-aStamp { from { opacity: 0; transform: scale(2.2) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes pc-aAdj { 0% { opacity: 1; transform: scaleX(1); } 35% { opacity: 1; transform: scaleX(1.5); } 70% { opacity: 1; transform: scaleX(1.15); } 100% { opacity: 1; transform: scaleX(1.3); } }
@keyframes pc-aFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
/* PE-4g : fenetre qui s'agrandit, soleil qui suit son arc (centre --pc-ox / --pc-oy, en unites du viewBox). */
.pc-play .pc-a.pc-grow { transform-origin: left center; animation: pc-aGrow var(--pc-t, 1.6s) var(--pc-ease) var(--pc-d, 0s) both; }
.pc-sc .pc-a.pc-arc { transform-box: view-box; transform-origin: var(--pc-ox, 0) var(--pc-oy, 0); }
.pc-play .pc-a.pc-arc { animation: pc-aArc var(--pc-t, 2s) ease-in-out var(--pc-d, 0s) both; }
@keyframes pc-aGrow { 0% { opacity: 0; transform: scale(.6); } 20% { opacity: 1; transform: scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes pc-aArc { 0% { opacity: 0; transform: rotate(-100deg); } 12% { opacity: 1; } 100% { opacity: 1; transform: none; } }

/* Scene de nuit de l'accueil (en boucle). */
.pc-intro .pc-vframe {
    aspect-ratio: 16 / 10;
    background: #1A2138;
}

.pc-hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.pc-tw { animation: pc-tw 4s ease-in-out infinite; }
@keyframes pc-tw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.pc-gl { animation: pc-gl 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pc-gl { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
html.js-enhanced .pc-win { opacity: 0; }
html.js-enhanced .pc-panel.pc-is-active .pc-win { animation: pc-winon 1.4s ease forwards; }
@keyframes pc-winon { to { opacity: 1; } }

/* ---------- Navigation bas ---------- */
.pc-nav {
    display: none;
}

html.js-enhanced .pc-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 56px 22px;
    background: linear-gradient(to top, rgba(20, 31, 52, .95) 40%, transparent);
}

.pc-nav .pc-btn[aria-disabled="true"] {
    opacity: .3;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.pc-count {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--pc-mut);
}

/* Place laissee a droite a la pile flottante du site (affichee des 1024 px). */
@media (min-width: 1024px) {
    .pc-count { margin-right: 260px; }
}

@media (min-width: 1024px) and (max-width: 1240px) {
    .pc-count { margin-right: 200px; }
}

@media (min-width: 901px) and (max-height: 840px) {
    .pc-count { display: none; }
}

.pc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Ecrans peu hauts (ordinateur) ---------- */
@media (min-width: 901px) and (max-height: 960px) {
    html.js-enhanced .pc-panel { padding-top: 22px; }
    .pc-title { font-size: clamp(26px, 2.5vw, 36px); margin-bottom: 10px; }
    .pc-lead { font-size: 15.5px; line-height: 1.5; }
    .pc-points li { padding: 8px 0; }
    .pc-points span { font-size: 14px; line-height: 1.45; }
    .pc-cta-row { margin-top: 14px; }
    .pc-eyebrow { margin-bottom: 8px; }
    .pc-intro .pc-title { font-size: clamp(32px, 3.6vw, 50px); }
}

@media (min-width: 901px) {
    .pc-intro .pc-minis { max-width: calc(100% - 180px); }
}

/* ---------- Telephone et tablette ---------- */
@media (max-width: 900px) {
    .pc-app {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }

    .pc-rail { display: none; }

    .pc-mbar {
        display: block;
        background: var(--pc-navy-d);
        border-bottom: 1px solid var(--pc-line);
        padding: 12px 16px;
        position: relative;
        z-index: 6;
    }

    html:not(.js-enhanced) .pc-mbar {
        position: sticky;
        top: var(--pc-header-h, 76px);
    }

    .pc-mbar-row { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 8px; }
    .pc-mcur { margin: 0; font-size: 12.5px; font-weight: 600; text-align: left; line-height: 1.3; }
    .pc-segs { display: flex; gap: 5px; }
    .pc-seg { flex: 1; height: 22px; position: relative; }
    .pc-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); transition: background .4s; }
    .pc-seg.pc-done::before { background: var(--pc-gold); }
    .pc-seg.pc-current::before { background: #fff; }
    .pc-seg.pc-k-projet:not(.pc-done):not(.pc-current) { opacity: .55; }
    .pc-mcta { margin-top: 8px; flex-wrap: wrap; gap: 12px; }
    .pc-mcta .pc-btn { padding: 8px 12px; font-size: 12px; border-radius: 9px; }

    .pc-panel { padding: 28px 18px 40px; }
    html.js-enhanced .pc-panel { padding: 28px 18px var(--pc-fondu); }
    /* Barre du telephone : padding 14 + 16, bouton 14 + 17 + 14 + 2 x 2. */
    .pc-app { --pc-nav-h: 79px; }
    .pc-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
    .pc-intro .pc-inner { grid-template-columns: minmax(0, 1fr); }
    .pc-copy, .pc-vis { display: contents; }
    html.js-enhanced .pc-vis.pc-rv,
    html.js-enhanced .pc-is-active .pc-vis.pc-rv { opacity: 1; transform: none; }
    .pc-eyebrow { order: 0; }
    .pc-copy .pc-title { order: 1; }
    .pc-acc, .pc-kind { order: 2; }
    .pc-vframe { order: 3; }
    .pc-lead { order: 4; }
    .pc-points { order: 5; }
    .pc-cta-row, .pc-hint { order: 6; }
    .pc-minis { order: 8; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pc-mini { padding: 9px 10px; }
    .pc-mini-l { font-size: 11.5px; }
    .pc-ghost { font-size: 210px; bottom: auto; top: 20px; left: auto; right: -8px; }
    .pc-intro .pc-title { font-size: 34px; }
    .pc-acc-g span { font-size: 9.5px; }
    .pc-rp { padding: 6px 12px; }

    /* Le bouton du tchat reste en bas a droite : la barre lui laisse sa place. */
    html.js-enhanced .pc-nav { padding: 14px 76px 16px 18px; }
    .pc-count { display: none; }
    .pc-nav .pc-btn { flex: 1; white-space: nowrap; padding: 14px 8px; font-size: 14px; }
}

@media (max-width: 480px) {
    .pc-lead { font-size: 16px; }
    .pc-points span { font-size: 14.5px; }
}

/* ---------- Mouvement reduit (R10) ---------- */
@media (prefers-reduced-motion: reduce) {
    .pc-panel,
    .pc-panel *,
    .pc-dot,
    .pc-lbl,
    .pc-btn,
    .pc-mini,
    .pc-vframe,
    .pc-wipe,
    .pc-seg-line,
    .pc-panel *::before,
    .pc-panel *::after,
    .pc-dot::before,
    .pc-dot::after,
    .pc-btn::before,
    .pc-btn::after,
    .pc-seg-line::before,
    .pc-seg-line::after {
        /* PE-5c (R10) : pseudo-elements compris (jauge .pc-acc-g i::after). */
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
        animation: none !important;
    }

    .pc-bgfx::before { animation: none; }
    html.js-enhanced .pc-rv,
    .pc-sc .pc-a { opacity: 1 !important; transform: none !important; }
    .pc-sc .pc-a.pc-dr { stroke-dashoffset: 0 !important; }
    html.js-enhanced .pc-win { opacity: 1 !important; }
    html.js-enhanced .pc-panel { transform: none !important; }
}

/* ---------- PE-4 (R9) : repere de la pile flottante ----------
   includes/footer.php montre Inspirations / Simulateur une fois le premier
   element « *-hero » de <main> sorti par le haut de l'ecran. Des 1 024 px,
   le repere est fixe juste au-dessus de l'ecran : la pile est visible avec la
   scene (la barre Precedent / Suivant lui laisse la place a droite). Sous
   1 024 px, la pile devient une barre en bas de l'ecran qui couvrirait
   Precedent / Suivant : le repere est au bas de la scene, la barre ne vient
   qu'une fois la scene passee. */
.pc-app { position: relative; }
.pc-hero {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .pc-hero {
        position: fixed;
        top: -2px;
        bottom: auto;
    }
    /* footer.php cache aussi la pile tant que le pied touche l'ecran ; la
       scene finit pile au bas de l'ecran (a une fraction de pixel pres) :
       2 px de plus, sur le fond de la scene, gardent le pied hors champ. */
    html.js-enhanced .pc-app {
        height: calc(100vh - var(--pc-header-h, 76px) + 2px);
        height: calc(100dvh - var(--pc-header-h, 76px) + 2px);
        padding-bottom: 2px;
    }
}

/* PE-4 (R7, R9) : sans la bande d'images, la scene garde la place que la
   maquette lui donne (bande de 3 images 16/10, ecart 12 px, marge 14 px,
   reservees sous la scene) : la pile flottante se pose dans ce vide et ne
   couvre pas les commandes lecture / rejouer. */
@media (min-width: 901px) {
    .pc-panel:not(.pc-intro) .pc-vis {
        padding-bottom: calc((100% - 24px) / 3 * .625 + 14px);
    }
}
/* Ecrans bas ou etroits : le texte depasse la hauteur, la scene centree
   descendrait sous la pile ; elle reste en haut, a cote de l'accroche. */
@media (min-width: 901px) and (max-width: 1399px), (min-width: 901px) and (max-height: 820px) {
    .pc-panel:not(.pc-intro) .pc-vis { align-self: start; }
}

/* ---------- PE-4b (R17) : molette ----------
   a. Fenetre defilee vers le pied (scene non calee sous l'en-tete) : les
      panneaux ne defilent plus, la molette et le doigt font defiler la
      fenetre (sinon overscroll-behavior: contain bloquerait la remontee).
   h. Au doigt, au bas de l'etape 10, le glisse continue jusqu'au pied. */
html.js-enhanced .pc-app.pc-decale .pc-panel {
    overflow-y: hidden;
}
html.js-enhanced .pc-panel#chantier {
    overscroll-behavior-y: auto;
}

/* ==========================================================================
   PE-4i : en-tête nuit (essai, R18), sur /parcours-eleva seulement.
   header.php ajoute .site-header--nuit et le logo clair quand la page pose
   $headerVariant = 'nuit'. Couleurs seulement : hauteurs, marges et paliers
   restent ceux de theme.css. Sous-menus de bureau et panneau du burger
   restent blancs (liens bleu nuit) ; le bouton devis reste or partout.
   ========================================================================== */
.site-header.site-header--nuit {
    background: rgba(20, 31, 52, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header.site-header--nuit .brand:hover,
.site-header.site-header--nuit .brand:focus-visible {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.site-header.site-header--nuit .brand:focus-visible {
    outline-color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
    .site-header.site-header--nuit .brand:hover,
    .site-header.site-header--nuit .brand:focus-visible {
        filter: none;
    }
}

/* Liens de premier niveau : bureau seulement, le panneau du burger garde
   ses couleurs (R18 f). */
@media (min-width: 769px) {
    .site-header.site-header--nuit .nav-list > li > a {
        color: rgba(255, 255, 255, 0.92);
        transition: color 0.2s ease;
    }

    .site-header.site-header--nuit .nav-list > li > a:hover,
    .site-header.site-header--nuit .nav-list > li > a:focus-visible,
    .site-header.site-header--nuit .nav-item:hover > .nav-link,
    .site-header.site-header--nuit .nav-item:focus-within > .nav-link {
        color: var(--primary);
    }

    .site-header.site-header--nuit .nav-list > li > a:focus-visible::after {
        width: 100%;
    }
}

.site-header.site-header--nuit .nav-list a:focus-visible,
.site-header.site-header--nuit .header-phone:focus-visible,
.site-header.site-header--nuit .nav-toggle:focus-visible,
.site-header.site-header--nuit > .container.header-inner > .btn.btn-primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Sous-menus (bureau) : cartes blanches, liens bleu nuit, inchangés. */
.site-header.site-header--nuit .nav-submenu a {
    color: var(--secondary);
}

/* Téléphone (R18 c), aussi en bouton rond sous 768 px. */
.site-header.site-header--nuit .header-phone {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.site-header.site-header--nuit .header-phone-icon {
    color: var(--primary);
}

.site-header.site-header--nuit .header-phone:hover,
.site-header.site-header--nuit .header-phone:focus-visible {
    color: #ffffff;
    border-color: var(--primary);
}

/* Bouton devis : or, texte bleu nuit, dans tous les états (R18 d ; PE-5e :
   5,14:1, le blanc sur or ne faisait que 2,58:1). */
.site-header.site-header--nuit > .container.header-inner > .btn.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

@media (min-width: 769px) {
    /* is-scrolled (R18 e) : tailles de theme.css, couleurs nuit. */
    .site-header.site-header--nuit.is-scrolled {
        background: rgba(20, 31, 52, 0.72);
    }

    .site-header.site-header--nuit.is-scrolled .header-inner {
        background: rgba(32, 48, 74, 0.97);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }

    .site-header.site-header--nuit.is-scrolled > .container.header-inner > .btn.btn-primary {
        background: var(--primary);
        color: var(--secondary);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    }
}

/* Burger (R18 f) : traits blancs ; le panneau ouvert reste blanc. */
@media (max-width: 768px) {
    .site-header.site-header--nuit .nav-toggle {
        background: transparent;
        border-color: rgba(255, 255, 255, 0.3);
    }

    .site-header.site-header--nuit .nav-toggle span {
        background: #ffffff;
    }
}
