:root {
    --bleu: #38BDF8;
    --bleu-pale: #E0F2FE;
    --bleu-fonce: #0369A1;
    --jaune: #FFD23F;
    --jaune-pale: #FEF6D6;
    --jaune-fonce: #854D0E;
    --vert: #4ADE80;
    --vert-pale: #DCFCE7;
    --vert-fonce: #15803D;
    --menthe: #2DD4BF;
    --menthe-pale: #CCFBF1;
    --menthe-fonce: #0F766E;
    --violet-pale: #EDE9FE;
    --violet-fonce: #6D28D9;
    --gris-pale: #F1F5F9;
    --texte: #0F172A;
    --doux: #475569;
    --fond: #F5FAFF;
    --carte: #FFFFFF;
    --ligne: #DCE7F2;
    --r: 16px;
    --ombre: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0; background: var(--fond); color: var(--texte);
    font: 400 1rem/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--bleu-fonce); }
a:hover { color: var(--texte); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--bleu-fonce); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
img { max-width: 100%; }

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

.evitement {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--texte); color: #fff; padding: .6rem 1rem;
    border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none;
}
.evitement:focus { top: 0; color: #fff; }

.entete {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.1rem 5%;
    background: var(--carte);
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--bleu) 0 33.3%, var(--jaune) 33.3% 66.6%, var(--vert) 66.6%) 1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
    position: sticky; top: 0; z-index: 100;
}
.marque { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--texte); text-decoration: none; }
.marque img { width: 50px; height: 50px; flex-shrink: 0; }
.marque-nom {
    display: flex; flex-wrap: wrap; column-gap: .32em; line-height: 1.1;
    font-weight: 800; font-size: clamp(1.05rem, 2.6vw, 1.6rem); letter-spacing: .02em;
}
.marque-nom span { color: var(--bleu-fonce); }
.marque:hover { color: var(--texte); }

.entete nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.entete nav a {
    display: inline-flex; align-items: center; gap: .45em;
    padding: 10px 15px; border-radius: 50px;
    color: var(--texte); text-decoration: none; white-space: nowrap;
    transition: background-color .2s ease;
}
.entete nav a:hover { background: var(--bleu-pale); color: var(--texte); }
.entete nav a.retour { border: 1.5px solid var(--ligne); font-size: .9rem; padding: 8px 14px; }
.entete nav a.retour:hover { border-color: var(--bleu); }
@media (min-width: 861px) and (max-width: 1280px) {
    .entete nav ul { gap: 2px; }
    .entete nav a { padding: 10px 11px; }
}
.entete svg { width: 1em; height: 1em; flex-shrink: 0; }
#mobile-menu-icon {
    display: none; background: none; border: 0; cursor: pointer;
    padding: 10px; color: var(--texte); font-size: 1.5rem; line-height: 0;
}

main { display: block; }
.une {
    position: relative; overflow: hidden;
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(160deg, var(--bleu-pale) 0%, #F0F9FF 55%, var(--fond) 100%);
}
.une-dedans { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.une-dedans > * { max-width: 760px; }
.formes span { position: absolute; border-radius: 50%; opacity: .55; }
.formes span:nth-child(1) { width: 320px; height: 320px; background: var(--bleu); right: -110px; top: -140px; opacity: .35; }
.formes span:nth-child(2) { width: 170px; height: 170px; background: var(--jaune); right: 12%; bottom: -90px; }
.formes span:nth-child(3) { width: 120px; height: 120px; background: var(--vert); left: -50px; bottom: 18%; opacity: .45; }

.surtitre {
    display: inline-block; margin: 0 0 1rem; padding: .3rem .9rem; border-radius: 50px;
    background: var(--jaune); color: var(--texte);
    font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.une h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); font-weight: 800; letter-spacing: -.01em; }
.une h1 span {
    background: linear-gradient(transparent 62%, rgba(74, 222, 128, .55) 62%);
    padding: 0 .1em;
}
.intro { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--doux); margin: 1.2rem 0 0; }

.avancement {
    margin-top: 2rem; padding: 1.3rem 1.4rem;
    background: var(--carte); border-radius: var(--r); box-shadow: var(--ombre);
}
.avancement-haut { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .7rem; }
.avancement-chiffre { font-size: 2rem; font-weight: 800; color: var(--vert-fonce); line-height: 1; }
.avancement-texte { color: var(--doux); }
.avancement-titre { margin: 0 0 .5rem; font-size: .85rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--bleu-fonce); }
.barre { display: flex; height: 14px; border-radius: 50px; background: var(--bleu-pale); overflow: hidden; }
.barre-rempli, .barre-pret { height: 100%; width: 0; transition: width .8s ease; }
.barre-rempli { background: linear-gradient(90deg, var(--bleu), var(--vert)); }
.barre-pret { background: repeating-linear-gradient(135deg, var(--menthe) 0 6px, var(--menthe-pale) 6px 10px); }
.maj { margin: .7rem 0 0; font-size: .9rem; color: var(--doux); }

.panne {
    max-width: 860px; margin: 1.5rem auto 0; padding: 1rem 1.2rem;
    background: var(--jaune-pale); color: var(--jaune-fonce);
    border-left: 5px solid var(--jaune); border-radius: 10px; font-weight: 600;
}
.panne[hidden] { display: none; }

.bloc, .question { max-width: 1100px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 3.5rem) 5% 0; }
.bloc > h2, .question h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; margin-bottom: 1.5rem; }
.bloc > h2::after {
    content: ''; display: block; width: 72px; height: 5px; margin-top: .55rem; border-radius: 5px;
    background: linear-gradient(90deg, var(--bleu) 0 33.3%, var(--jaune) 33.3% 66.6%, var(--vert) 66.6%);
}

.pastille {
    display: inline-block; flex-shrink: 0; padding: .2rem .7rem; border-radius: 50px;
    font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.pastille.vert { background: var(--vert-pale); color: var(--vert-fonce); }
.pastille.jaune { background: var(--jaune-pale); color: var(--jaune-fonce); }
.pastille.bleu { background: var(--bleu-pale); color: var(--bleu-fonce); }
.pastille.menthe { background: var(--menthe-pale); color: var(--menthe-fonce); }
.pastille.violet { background: var(--violet-pale); color: var(--violet-fonce); }
.pastille.gris { background: var(--gris-pale); color: var(--doux); }

.legende { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.5rem 0 1.5rem; padding: 0; list-style: none; }

.chantiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; align-items: start; }
.chantier {
    background: var(--carte); border-radius: var(--r); box-shadow: var(--ombre);
    padding: 1.4rem 1.5rem 1.3rem; border-top: 6px solid var(--vert); min-width: 0;
}
.chantier.n1 { border-top-color: var(--bleu); }
.chantier.branche.b0 { border-top-color: var(--jaune); }
.chantier.branche.b1 { border-top-color: var(--violet-fonce); }
.chantier h3 a { color: var(--texte); text-decoration-color: var(--bleu); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.chantier h3 a:hover { color: var(--bleu-fonce); }
.chantier-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.chantier-numero { margin: 0 0 .25rem; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bleu-fonce); }
.chantier h3 { font-size: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }
.chantier-texte { color: var(--doux); margin: .6rem 0 0; }
.groupe { margin-top: 1.1rem; }
.groupe-titre { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .85rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--doux); }
.groupe-titre.vert { color: var(--vert-fonce); }
.groupe-titre.menthe { color: var(--menthe-fonce); }
.groupe-titre.jaune { color: var(--jaune-fonce); }
.groupe-titre.violet { color: var(--violet-fonce); }
.groupe-titre.bleu { color: var(--bleu-fonce); }
.groupe-nombre { display: inline-block; min-width: 1.5rem; padding: 0 .4rem; border-radius: 50px; background: var(--gris-pale); color: var(--texte); text-align: center; letter-spacing: 0; }
.elements { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.elements li { position: relative; padding-left: 1.4rem; font-size: .95rem; overflow-wrap: anywhere; }
.elements li::before {
    content: ''; position: absolute; left: .1rem; top: .45em;
    width: .7rem; height: .7rem; border-radius: 50%; background: var(--bleu);
}
.elements li.vert::before { background: var(--vert); }
.elements li.menthe::before { background: var(--menthe); }
.elements li.jaune::before { background: var(--jaune); }
.elements li.violet::before { background: var(--violet-fonce); }
.elements li.gris::before { background: var(--doux); }
.element-quand { display: block; font-size: .85rem; color: var(--doux); }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.service {
    background: var(--carte); border-radius: var(--r); box-shadow: var(--ombre);
    padding: 1.3rem 1.4rem 1.2rem; border-top: 6px solid var(--bleu);
    min-width: 0;
}
.service.c1 { border-top-color: var(--jaune); }
.service.c2 { border-top-color: var(--vert); }
.service-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.service h3 { font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.service h3 a { color: var(--texte); text-decoration-color: var(--bleu); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.service h3 a:hover { color: var(--bleu-fonce); }
.service-texte { color: var(--doux); margin: .6rem 0 0; font-size: .95rem; }
.etapes { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.etapes li { position: relative; padding-left: 1.9rem; font-size: .95rem; }
.etapes li::before {
    content: ''; position: absolute; left: 0; top: .15em;
    width: 1.25rem; height: 1.25rem; border-radius: 50%;
    border: 2px solid var(--ligne); background: var(--carte);
}
.etapes li.fait::before {
    content: '✓'; border-color: var(--vert); background: var(--vert);
    color: var(--texte); font-size: .8rem; font-weight: 800; line-height: 1.05rem; text-align: center;
}
.etapes li.reste { color: var(--doux); }
.etapes li.menthe::before { border-color: var(--menthe); }
.etapes li.jaune::before { border-color: var(--jaune); }
.etape-etat { display: inline-block; margin-left: .4rem; padding: 0 .5rem; border-radius: 50px; font-size: .75rem; font-weight: 700; vertical-align: .1em; }
.etape-etat.menthe { background: var(--menthe-pale); color: var(--menthe-fonce); }
.etape-etat.jaune { background: var(--jaune-pale); color: var(--jaune-fonce); }
.etape-etat.violet { background: var(--violet-pale); color: var(--violet-fonce); }
.etape-etat.gris { background: var(--gris-pale); color: var(--doux); }
.etape-etat.bleu { background: var(--bleu-pale); color: var(--bleu-fonce); }


.journal { display: grid; gap: 1rem; max-width: 760px; }
.note {
    background: var(--carte); border-radius: 12px; box-shadow: var(--ombre);
    padding: 1.1rem 1.3rem; border-left: 5px solid var(--bleu);
}
.note:nth-child(3n+2) { border-left-color: var(--jaune); }
.note:nth-child(3n+3) { border-left-color: var(--vert); }
.note time { font-size: .85rem; font-weight: 700; color: var(--bleu-fonce); text-transform: uppercase; letter-spacing: .04em; }
.note h3 { font-size: 1.1rem; font-weight: 800; margin: .3rem 0 0; }
.note p { margin: .45rem 0 0; color: var(--doux); }

.question { padding-bottom: 3rem; }
.question > * { max-width: 760px; }
.question p {
    margin: 0; padding: 1.2rem 1.4rem; border-radius: var(--r);
    background: var(--vert-pale); border: 2px solid var(--vert);
}
.question p a { color: var(--vert-fonce); font-weight: 700; }
.question h2 { margin-bottom: 1rem; }

@media (max-width: 860px) {
    .entete { padding: .8rem 5%; }
    .marque { gap: 10px; }
    .marque img { width: 40px; height: 40px; }
    #mobile-menu-icon { display: block; }
    .entete nav ul#main-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--carte); padding: .5rem 5% 1rem;
        box-shadow: 0 10px 14px rgba(15, 23, 42, .08);
        border-top: 1px solid var(--ligne);
    }
    .entete nav ul#main-nav.open { display: flex; }
    .entete nav ul#main-nav a { width: 100%; padding: 13px 15px; border-radius: 10px; }
    .entete nav ul#main-nav a.retour { margin-top: .4rem; justify-content: center; }
    .formes span:nth-child(1) { width: 220px; height: 220px; right: -120px; top: -110px; }
    .formes span:nth-child(2) { width: 110px; height: 110px; right: -30px; bottom: -60px; }
    .formes span:nth-child(3) { display: none; }
}

footer[data-skynium-unify] {
    background: var(--sky-footer-bg, var(--texte));
    color: var(--sky-footer-text, #fff);
    padding: 3rem 5%; margin-top: 2rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem;
    font-family: var(--sans); text-align: left; line-height: 1.6;
}
footer[data-skynium-unify] > div { min-width: 200px; flex: 1; }
footer[data-skynium-unify] h3 {
    font: 700 1.05rem var(--sans); color: var(--sky-footer-heading, #fff);
    margin: 0 0 1rem; text-transform: uppercase; letter-spacing: 1px;
}
footer[data-skynium-unify] p { margin: 0 0 .5rem; font-size: .95rem; }
footer[data-skynium-unify] ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
footer[data-skynium-unify] a {
    color: var(--sky-footer-text, #fff); text-decoration: none; font-size: .95rem;
    display: inline-flex; align-items: center; gap: 10px;
}
footer[data-skynium-unify] a:hover { color: var(--sky-footer-accent, var(--jaune)); text-decoration: underline; }
footer[data-skynium-unify] a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
footer[data-skynium-unify] .footer-bottom {
    flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
}
footer[data-skynium-unify] .footer-brand {
    flex-direction: column; align-items: center; text-align: center; line-height: 1; gap: 0; text-decoration: none;
}
footer[data-skynium-unify] .footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); margin-bottom: 10px; }
footer[data-skynium-unify] .footer-brand .brand-name { font-weight: 700; font-size: .95rem; letter-spacing: .5px; white-space: nowrap; }
footer[data-skynium-unify] .footer-copyright { font-size: .85rem; opacity: .8; }
@media (max-width: 768px) {
    footer[data-skynium-unify] .footer-bottom { flex-direction: column; text-align: center; gap: 1.25rem; }
}

body.monochrome, body.high-saturation, body.low-saturation,
body.epilepsy-safe, body.visually-impaired, body.adhd-friendly { filter: none !important; }
html:not(:has(#skynium-a11y-filter)):has(> body.monochrome)        { filter: grayscale(100%); }
html:not(:has(#skynium-a11y-filter)):has(> body.high-saturation)   { filter: saturate(200%); }
html:not(:has(#skynium-a11y-filter)):has(> body.low-saturation)    { filter: saturate(50%); }
html:not(:has(#skynium-a11y-filter)):has(> body.epilepsy-safe)     { filter: brightness(.9) contrast(.9); }
html:not(:has(#skynium-a11y-filter)):has(> body.visually-impaired) { filter: contrast(1.2) brightness(1.1); }
html:not(:has(#skynium-a11y-filter)):has(> body.adhd-friendly)     { filter: saturate(80%); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .barre-rempli, .barre-pret, .entete nav a { transition: none; }
}
