/* =====================================================================
   PROCESSUS : ACCUEIL, VERSION LÉGÈRE   (2026-11-17)
   Même esprit que les autres pages (fond blanc, bleu du logo, cartes à bordure fine) + un peu de vie :
   bandeau bleu avec le dessin montant qui se construit, cartes en escalier, titres numérotés.
   Actif SEULEMENT avec body.pr-accueil. AUCUN texte ajouté (les seuls « content » sont des chiffres ou vides).
   Version sombre « futuriste » conservée : /processus/?futur=1   Ancien dessin : /processus/?ancien=1
   ===================================================================== */

/* ---------- ALIGNEMENT SUR LE MENU (2026-11-17) ----------
   Le texte commence au bord gauche du LOGO et le dessin finit au bord droit de « S'inscrire ».
   Le menu a le contenu du pied de page : 1100 px (marge 20 px, 16 px sous 1024 px, 12 px sous 421 px), avec une marge latérale de 20 px (16 px sur tablette, 12 px sur téléphone). */
/* barre UNIQUE du menu = pied de page : contenu 1100 px (162,5 -> 1262,5 px à 1440 px) => moitié = 550 px
   (le menu fixe aussi --amh-demi dans menu-unifie.css : valeur commune, ne pas la changer ici sans la session menu) */
:root { --amh-demi: 550px; }
/* marge latérale du menu (recopiée : 20 px >= 1024 px, 16 px jusqu'à 1023 px, 12 px jusqu'à 420 px, 8 px de 1024 à 1100 px hors français) */
:root { --h-m: 20px; }
@media (max-width: 1023px) { :root { --h-m: 16px; } }
@media (max-width: 420px) { :root { --h-m: 12px; } }
@media (min-width: 1024px) and (max-width: 1100px) { :root:has(#amu:not([data-amu-lang="fr"])) { --h-m: 8px; } }


body.pr-accueil .s-page {
    line-height: 1.7;
    counter-reset: pr;
}

/* ---------- bandeau : PLEINE LARGEUR, collé à l'en-tête (comme les autres pages) ----------
   Il sort de la colonne de 56 rem par le calcul « 50 % - 50vw » ; son texte reste aligné sur la colonne (--pr-gouttiere).
   Le conteneur général coupe le petit dépassement dû à la barre de défilement (clip : le menu collant n'est pas gêné). */
body.pr-accueil #app > div { overflow-x: clip; }
body.pr-accueil main { padding-top: 0; }
body.pr-accueil .s-page .s-bandeau {
    --pr-gouttiere: max(calc(var(--amu-marge, var(--h-m)) + var(--sbw, 0px) / 2), calc(50vw - var(--amh-demi)));
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    min-height: clamp(19rem, 42vh, 25rem);
    margin: 0 calc(50% - 50vw) 3rem;
    padding: clamp(2.4rem, 5vw, 3.8rem) var(--pr-gouttiere);
    border-radius: 0;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(55, 138, 221, .45), transparent 65%),
        linear-gradient(135deg, #06304F, #085292);
}
/* fine grille de plan, très discrète, qui avance doucement */
body.pr-accueil .s-page .s-bandeau::before {
    content: "";
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 80% 20%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 90% at 80% 20%, #000 10%, transparent 75%);
    animation: pr-grille 50s linear infinite;
}
@keyframes pr-grille { to { background-position: 0 40px, 40px 0; } }
/* dessin montant : se construit à l'ouverture */
body.pr-accueil .s-page .s-bandeau::after {
    content: "";
    position: absolute; z-index: -1; pointer-events: none;
    top: 53%; right: var(--pr-gouttiere);
    height: min(88%, 42vw, 21rem); aspect-ratio: 1 / 1; width: auto;
    /* la marge vide à droite de l'image est annulée : la partie VISIBLE du dessin finit pile au bord droit du cadre (= bord droit de « S'inscrire ») */
    translate: 2.8% -50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E %3Cdefs%3E %3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238FD0FF'/%3E%3Cstop offset='.55' stop-color='%23378ADD'/%3E%3Cstop offset='1' stop-color='%23185FA5' stop-opacity='.55'/%3E%3C/linearGradient%3E %3ClinearGradient id='f' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23378ADD'/%3E%3Cstop offset='1' stop-color='%237CE6FF'/%3E%3C/linearGradient%3E %3Cfilter id='g' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='10'/%3E%3C/filter%3E %3C/defs%3E %3Cstyle%3E .b{transform-box:fill-box;transform-origin:50%25 100%25;animation:u 2.6s cubic-bezier(.2,.8,.2,1) both translate: none; aspect-ratio: auto; background-size: contain; background-position: right center; } .b2{animation-delay:.3s}.b3{animation-delay:.6s} @keyframes u{from{transform:scaleY(.03);opacity:0}to{transform:scaleY(1);opacity:1}} .l{stroke-dasharray:400;animation:d 1.8s 1.3s cubic-bezier(.3,.7,.2,1) both} @keyframes d{from{stroke-dashoffset:400}to{stroke-dashoffset:0}} .h{transform-box:fill-box;transform-origin:50%25 50%25;animation:p .7s 2.9s cubic-bezier(.3,1.6,.5,1) both} @keyframes p{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}} .w{animation:w 4s 3.4s ease-in-out infinite alternate;opacity:.35} @keyframes w{from{opacity:.3}to{opacity:.85}} @media (prefers-reduced-motion:reduce){.b,.l,.h,.w{animation:none}} %3C/style%3E %3Cg class='w' filter='url(%23g)'%3E%3Crect x='345' y='120' width='140' height='350' fill='%23378ADD'/%3E%3Crect x='185' y='220' width='140' height='250' fill='%23378ADD'/%3E%3Cline x1='75' y1='235' x2='411.6' y2='62.4' stroke='%237CE6FF' stroke-width='30' stroke-linecap='round'/%3E%3C/g%3E %3Crect class='b b1' x='25' y='320' width='140' height='150' rx='12' fill='url(%23b)'/%3E %3Crect class='b b2' x='185' y='220' width='140' height='250' rx='12' fill='url(%23b)'/%3E %3Crect class='b b3' x='345' y='120' width='140' height='350' rx='12' fill='url(%23b)'/%3E %3Cline class='l' x1='75' y1='235' x2='411.6' y2='62.4' stroke='url(%23f)' stroke-width='30' stroke-linecap='round'/%3E %3Cpolygon class='h' points='465,35 432.1,102.5 391.1,22.4' fill='%237CE6FF'/%3E %3C/svg%3E") no-repeat center / 100% 100%;
}

body.pr-accueil .s-page .s-bandeau h1 {
    max-width: min(60%, 34rem);
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.1; letter-spacing: -.02em; font-weight: 800;
    color: #fff;
    text-wrap: balance;
    animation: pr-entree .7s cubic-bezier(.2, .7, .2, 1) .05s both;
}
body.pr-accueil .s-page .s-bandeau p {
    max-width: min(56%, 32rem);
    margin: 0 0 1rem;
    color: #D6E6F4;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    animation: pr-entree .7s cubic-bezier(.2, .7, .2, 1) .2s both;
}
body.pr-accueil .s-page .s-bandeau p:last-child { animation-delay: .35s; }
@keyframes pr-entree { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
/* (le « &nbsp; » entre les deux boutons devient un élément vide ; les boutons reprennent leur taille) */
body.pr-accueil .s-page .s-bandeau p:has(a.s-bouton) { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 0; font-size: 0; line-height: 0; }

/* ---------- boutons ---------- */
body.pr-accueil .s-page a.s-bouton,
body.pr-accueil .s-page .s-bandeau a.s-bouton {
    display: inline-flex; align-items: center;
    padding: .8rem 1.4rem;
    border-radius: 12px;
    font-size: 1rem; font-weight: 700; line-height: 1.4;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
body.pr-accueil .s-page .s-bandeau a.s-bouton { box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .45); }
body.pr-accueil .s-page .s-bandeau a.s-bouton:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .55); }
/* second bouton du bandeau : contour clair */
body.pr-accueil .s-page .s-bandeau a.s-bouton ~ a.s-bouton {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: none;
    color: #fff !important;
}
body.pr-accueil .s-page .s-bandeau a.s-bouton ~ a.s-bouton:hover { background: rgba(255, 255, 255, .18); box-shadow: none; }

/* ---------- titres de section : petit numéro bleu ---------- */
body.pr-accueil .s-page h2 {
    display: flex; align-items: center; gap: .8rem;
    margin: 3.2rem 0 1rem;
    font-size: 1.6rem; line-height: 1.2; font-weight: 800;
    color: #12202D;
}
body.pr-accueil .s-page h2::before {
    counter-increment: pr;
    content: counter(pr, decimal-leading-zero);
    content: counter(pr, decimal-leading-zero) / "";
    flex: none;
    padding: .35rem .5rem;
    border: 1px solid #CFE3F4;
    border-radius: 8px;
    background: #EEF6FC;
    color: #085292;
    font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .1em;
}
body.pr-accueil .s-page h2:first-of-type { margin-top: 0; }

/* « B O S S » : les quatre lettres */
body.pr-accueil .s-page h2 + p > strong {
    display: inline-block;
    min-width: 1.4em; padding: 0 .22em;
    border-radius: .35em;
    background: #085292; color: #fff;
    text-align: center; font-weight: 800;
}

/* ---------- les trois cartes : petit escalier montant ---------- */
body.pr-accueil .s-page .s-cartes { align-items: start; gap: 18px; margin: 1.5rem 0; }
body.pr-accueil .s-page .s-carte {
    position: relative; overflow: hidden;
    padding: 26px 22px 24px;
    border-radius: 16px;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
body.pr-accueil .s-page .s-carte::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, #378ADD, #185FA5);
}
body.pr-accueil .s-page .s-carte:hover {
    transform: translateY(-5px);
    border-color: #9CC4EA;
    box-shadow: 0 16px 36px -12px rgba(8, 82, 146, .3);
}
@media (min-width: 901px) {
    body.pr-accueil .s-page .s-carte:nth-child(1) { margin-top: 36px; }
    body.pr-accueil .s-page .s-carte:nth-child(2) { margin-top: 18px; }
}

/* ---------- liste « Ce que contient Processus » : tuiles claires ---------- */
body.pr-accueil .s-page ul {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
    margin: 0 0 1.4rem; padding: 0; list-style: none;
}
body.pr-accueil .s-page li {
    position: relative;
    padding: 14px 16px 14px 44px;
    border: 1px solid #DDE6EE;
    border-radius: 14px;
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
}
body.pr-accueil .s-page li::before {
    content: "";
    position: absolute; left: 18px; top: 22px;
    width: 9px; height: 9px;
    border-radius: 2px;
    background: #378ADD;
    transform: rotate(45deg);
}
body.pr-accueil .s-page li:hover { border-color: #9CC4EA; box-shadow: 0 8px 22px -12px rgba(8, 82, 146, .3); }
body.pr-accueil .s-page li:first-child { grid-column: 1 / -1; border-color: #CFE3F4; background: #EEF6FC; }

/* ---------- encadré final ---------- */
body.pr-accueil .s-page .s-note {
    margin: 3rem 0 0;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border: 1px solid #CFE3F4;
    border-radius: 20px;
    background: linear-gradient(135deg, #EEF6FC, #fff);
    box-shadow: 0 10px 30px -16px rgba(8, 82, 146, .35);
    text-align: center;
}
body.pr-accueil .s-page .s-note p { max-width: 40rem; margin: 0 auto; }
body.pr-accueil .s-page .s-note strong { display: block; margin-bottom: .3rem; font-size: 1.35rem; line-height: 1.25; color: #06304F; }
body.pr-accueil .s-page .s-note a {
    display: block; width: fit-content;
    margin: 1rem auto 0; padding: .75rem 1.4rem;
    border-radius: 12px;
    background: #085292; color: #fff;
    font-weight: 600; text-decoration: none;
    transition: transform .2s, background .2s, box-shadow .2s;
}
body.pr-accueil .s-page .s-note a:hover { background: #06467E; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(8, 82, 146, .6); }

/* ---------- apparition au défilement (si le navigateur sait ; sinon tout est déjà visible) ---------- */
@supports (animation-timeline: view()) {
    body.pr-accueil .s-page > h2,
    body.pr-accueil .s-page .s-carte,
    body.pr-accueil .s-page .s-note {
        animation: pr-revele linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 50%;
    }
}
@keyframes pr-revele { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* ---------- téléphone ---------- */
@media (max-width: 900px) {
    body.pr-accueil .s-page ul { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    body.pr-accueil .s-page .s-bandeau { min-height: 0; margin-bottom: 2.2rem; }
    body.pr-accueil .s-page .s-bandeau h1,
    body.pr-accueil .s-page .s-bandeau p { max-width: none; }
    body.pr-accueil .s-page .s-bandeau::after { width: 80%; right: -12%; top: auto; bottom: -4%; height: 66%; opacity: .28; translate: none; aspect-ratio: auto; background-size: contain; background-position: right center; }
    body.pr-accueil .s-page h2 { margin-top: 2.4rem; font-size: 1.4rem; }
}
@media (max-width: 520px) {
    body.pr-accueil .s-page .s-bandeau a.s-bouton { flex: 1 1 100%; justify-content: center; }
}

/* ---------- accessibilité / impression ---------- */
@media (prefers-reduced-motion: reduce) {
    body.pr-accueil *, body.pr-accueil *::before, body.pr-accueil *::after {
        animation: none !important;
        transition: none !important;
    }
}
@media print {
    body.pr-accueil .s-page, body.pr-accueil .s-page * { animation: none !important; opacity: 1 !important; translate: none !important; }
    body.pr-accueil .s-page .s-bandeau::before, body.pr-accueil .s-page .s-bandeau::after { display: none !important; }
    body.pr-accueil .s-page .s-cartes .s-carte { margin-top: 0 !important; }
}
