:root{--bleu:#0A5CA8;--bleu-fonce:#08306B;--rose:#B8124F;--texte:#1F2933;--texte-doux:#52606D;--fond:#FFFFFF;--fond-doux:#EEF6FD;--bordure:#C5D5E4}
*,*::before,*::after{box-sizing:border-box}
html{font-size:100%;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:ui-rounded,"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;font-size:1.125rem;line-height:1.7;color:var(--texte);background:var(--fond)}
a{color:var(--bleu);text-underline-offset:.15em}
a:hover{color:var(--bleu-fonce)}
:focus-visible{outline:3px solid var(--rose);outline-offset:2px}
.skip{position:absolute;left:-999px;top:0;background:var(--bleu-fonce);color:#fff;padding:.5rem 1rem;z-index:10}
.skip:focus{left:0}
.wrap{max-width:70rem;margin:0 auto;padding:0 1.25rem}
.texte{max-width:46rem;margin:0 auto}

/* En-tête */
header.site{background:#fff;border-bottom:1px solid var(--bordure);position:sticky;top:0;z-index:5;box-shadow:0 2px 10px rgba(8,48,107,.06)}
header.site .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4rem 1.5rem;padding-top:.7rem;padding-bottom:.7rem}
.logo{display:flex;align-items:center;gap:.55rem;font-size:1.55rem;font-weight:800;color:var(--bleu-fonce);text-decoration:none;letter-spacing:.01em}
.logo-malin{color:var(--rose)}
.logo-pastille{display:inline-flex;width:2.3rem;height:2.3rem;border-radius:50%;background:var(--bleu);align-items:center;justify-content:center}
.logo-pastille svg{width:1.35rem;height:1.35rem;stroke:#fff;fill:none;stroke-width:1.8;stroke-linejoin:round}
header.site .wrap{position:relative}
.menu{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem 1.4rem}
.menu-lien,.menu-bouton{font:inherit;color:var(--bleu-fonce);text-decoration:none;font-weight:600;font-size:1rem;padding:.35rem 0;border:0;border-bottom:3px solid transparent;background:none;cursor:pointer}
.menu-bouton::after{content:"";display:inline-block;width:.45em;height:.45em;margin-left:.45em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-.2em) rotate(45deg);transition:transform .15s}
.menu-lien:hover,.menu-lien[aria-current],.menu-bouton:hover,.menu-bouton.actif,.menu-groupe.ouvert .menu-bouton{border-bottom-color:var(--rose);color:var(--bleu-fonce)}
.menu-groupe.ouvert .menu-bouton::after{transform:translateY(.05em) rotate(225deg)}
.mega{display:none;position:absolute;left:1.25rem;right:1.25rem;top:100%;background:#fff;border-top:3px solid var(--bleu);border-radius:0 0 12px 12px;box-shadow:0 14px 30px rgba(8,48,107,.16);padding:1.4rem 1.6rem 1.2rem;z-index:6}
.mega::before{content:"";position:absolute;left:0;right:0;top:-1.3rem;height:1.3rem}
.menu-groupe.ouvert .mega{display:block}
.mega-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:1.2rem 2rem}
.mega-titre{display:flex;align-items:center;gap:.5rem;margin:0 0 .5rem;padding-bottom:.45rem;border-bottom:1px solid var(--bordure);font-weight:800;color:var(--rose);font-size:1rem}
.mega-titre svg{width:1.15rem;height:1.15rem;stroke:var(--bleu);fill:none;stroke-width:1.8;stroke-linejoin:round;flex:none}
.mega ul{list-style:none;margin:0;padding:0}
.mega li{margin:.15rem 0}
.mega a{display:block;color:var(--texte);text-decoration:none;font-size:.98rem;line-height:1.4;padding:.25rem 0}
.mega a:hover,.mega a[aria-current]{color:var(--bleu);text-decoration:underline}
@media (min-width:48.01rem) and (hover:hover){.menu-groupe:hover .mega{display:block}.menu-groupe:hover .menu-bouton{border-bottom-color:var(--rose)}}
@media (max-width:48rem){.mega{left:0;right:0;border-radius:0 0 10px 10px;padding:1rem 1.25rem;max-height:70vh;overflow:auto}}

/* Vague de transition */
.vague{display:block;width:100%;height:3.2rem;margin-top:2rem}
.vague path{fill:var(--fond)}

/* Accueil */
.hero{background:linear-gradient(135deg,var(--bleu-fonce) 0%,var(--bleu) 100%);color:#fff;padding-top:3rem}
.hero-grille{display:grid;grid-template-columns:1.2fr .8fr;gap:2rem;align-items:center}
.sur-titre{margin:0 0 .5rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:.95rem;color:#FFE08A}
.hero h1{margin:0 0 1rem;font-size:clamp(2.2rem,6vw,3.6rem);line-height:1.1;font-weight:800}
.hero h1 em{font-style:normal;color:#FFE08A}
.hero-texte{margin:0 0 1.5rem;font-size:1.25rem;max-width:34rem}
.boutons{display:flex;flex-wrap:wrap;gap:.8rem;margin:0}
.bouton{display:inline-block;background:var(--rose);color:#fff;font-weight:700;text-decoration:none;padding:.75rem 1.4rem;border-radius:2rem;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.bouton:hover{color:#fff;filter:brightness(1.1)}
.bouton-clair{background:#fff;color:var(--bleu-fonce)}
.bouton-clair:hover{color:var(--bleu-fonce)}
.hero-illu svg{width:100%;height:auto;max-width:22rem;display:block;margin:0 auto}

main{padding:1rem 0 3.5rem}
.section{margin:2.5rem 0 3rem}
.titre-section{text-align:center;color:var(--bleu-fonce);font-size:clamp(1.6rem,3.5vw,2.1rem);margin:0 0 1.75rem}
.titre-section::after{content:"";display:block;width:4rem;height:4px;background:var(--rose);border-radius:2px;margin:.6rem auto 0}

/* Cartes des univers */
.univers{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1.5rem;list-style:none;margin:0;padding:0}
.carte{background:#fff;border:1px solid var(--bordure);border-radius:1.2rem;padding:1.6rem 1.4rem;height:100%;text-align:center;box-shadow:0 4px 16px rgba(8,48,107,.07);transition:transform .2s,box-shadow .2s}
.carte:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(8,48,107,.13)}
.carte svg{width:4rem;height:4rem;padding:.95rem;border-radius:50%;background:var(--bleu);stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.carte h3{margin:.8rem 0 .5rem;color:var(--rose);font-size:1.35rem}
.carte ul{margin:0;padding:0;list-style:none;font-size:1rem;line-height:1.5}
.carte li{margin:.35rem 0}

/* Derniers guides */
.guides{display:grid;grid-template-columns:repeat(auto-fit,minmax(19rem,1fr));gap:1.25rem;list-style:none;margin:0;padding:0}
.guide{display:flex;flex-direction:column;gap:.4rem;height:100%;padding:1.3rem 1.4rem;background:var(--fond-doux);border-radius:1rem;text-decoration:none;color:var(--texte);border-left:5px solid var(--bleu)}
.guide:hover{color:var(--texte);background:#E2EFFB}
.guide strong{color:var(--bleu-fonce);font-size:1.2rem;line-height:1.35}
.guide-univers{display:flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:700;color:var(--rose);text-transform:uppercase;letter-spacing:.04em}
.guide-univers svg{width:1.1rem;height:1.1rem;stroke:var(--rose);fill:none;stroke-width:2}
.guide-desc{font-size:1rem;line-height:1.55}
.intro{max-width:46rem;margin-left:auto;margin-right:auto}

/* Bandeau des pages */
.bandeau{background:var(--fond-doux);padding-top:2rem}
.fil{margin:0 0 .8rem;font-size:.95rem}
.fil a{color:var(--bleu)}
.bandeau-titre{display:flex;align-items:center;gap:1rem}
.bandeau-icone svg{width:3.6rem;height:3.6rem;padding:.85rem;border-radius:50%;background:var(--bleu);stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;display:block}
.bandeau h1{margin:0;color:var(--bleu-fonce);font-size:clamp(1.7rem,4.2vw,2.5rem);line-height:1.2}
.bandeau-desc{margin:1rem 0 .3rem;font-size:1.2rem;max-width:46rem}
.maj{color:var(--texte-doux);font-size:1rem;margin:.2rem 0 0}

/* Contenu */
h2{color:var(--rose);font-size:1.6rem;line-height:1.3;margin:2.5rem 0 .75rem;scroll-margin-top:6rem}
h3{color:var(--bleu-fonce);font-size:1.25rem;margin:1.75rem 0 .5rem}
.sommaire{background:#fff;border:1px solid var(--bordure);border-radius:1rem;padding:1.1rem 1.4rem;margin:1.5rem 0 2rem;box-shadow:0 4px 14px rgba(8,48,107,.06)}
.sommaire p{margin:0 0 .4rem;font-weight:800;color:var(--bleu-fonce);text-transform:uppercase;letter-spacing:.05em;font-size:.95rem}
.sommaire ol{margin:0;padding-left:1.4rem;font-size:1.02rem;line-height:1.6}
.note{background:var(--fond-doux);border-left:5px solid var(--bleu);padding:1rem 1.25rem;border-radius:.4rem;margin:1.5rem 0}
.note p{margin:.3rem 0}
.attention{border-left-color:var(--rose)}
blockquote{margin:1.25rem 0;padding:.75rem 1.25rem;background:var(--fond-doux);border-left:5px solid var(--rose);border-radius:.4rem}
blockquote p{margin:.3rem 0}
.table-wrap{overflow-x:auto;margin:1.25rem 0}
table{border-collapse:collapse;width:100%;font-size:1rem}
th,td{border:1px solid var(--bordure);padding:.6rem .8rem;text-align:left;vertical-align:top}
th{background:var(--fond-doux);color:var(--bleu-fonce)}
.sources{font-size:1rem;color:var(--texte-doux)}
.aussi{margin-top:3rem;padding:1.3rem 1.5rem;background:var(--fond-doux);border-radius:1rem}
.aussi h2{font-size:1.2rem;margin:0 0 .5rem;color:var(--bleu-fonce)}
.aussi ul{margin:0;padding-left:1.2rem}

/* Pied de page */
footer.site{background:var(--bleu-fonce);color:#fff;padding:2.2rem 0;font-size:1rem}
footer.site p{margin:.35rem 0}
footer.site a{color:#fff}
.pied-logo{font-size:1.4rem;font-weight:800}
.pied-logo span{color:#FFB3CB}

@media (max-width:48rem){.hero-grille{grid-template-columns:1fr}.hero-illu{display:none}}
@media (max-width:40rem){body{font-size:1.0625rem}header.site{position:static}header.site nav{gap:.1rem .9rem}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.carte{transition:none}.carte:hover{transform:none}}
.formulaire{max-width:36rem;margin:1.5rem 0 2rem}
.formulaire label{display:block;font-weight:700;color:var(--bleu-fonce);margin-bottom:.3rem}
.formulaire .requis{font-weight:400;color:var(--texte-doux);font-size:.95rem}
.formulaire input,.formulaire textarea{width:100%;font:inherit;padding:.6rem .75rem;border:1px solid var(--bordure);border-radius:.5rem;background:#fff;color:var(--texte)}
.formulaire input:focus,.formulaire textarea:focus{outline:3px solid var(--rose);outline-offset:1px;border-color:var(--bleu)}
.formulaire button{border:0;cursor:pointer;font:inherit;font-weight:700}
.piege{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Liens vers un autre site dans les cartes d'univers et l'encadré « Dans le même univers » */
a.externe::after { content: " ↗"; font-size: .85em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width:62rem){.mega-grille{grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:1.2rem 1.6rem}}
@media (min-width:48.01rem){.mega-etroit{left:auto;width:25rem}}

/* Notes de bas de page */
.appel-note{font-size:.72em;line-height:0;margin-left:.1em}
.appel-note a{text-decoration:none;font-weight:700;padding:0 .15em}
.notes{margin-top:2.5rem;padding-top:1rem;border-top:1px solid var(--bordure);font-size:.95rem;color:var(--texte-doux)}
.notes h2{font-size:1.1rem;margin:0 0 .5rem}
.notes ol{padding-left:1.4rem;margin:0}
.notes li{margin:.4rem 0}
.notes li:target{background:var(--fond-doux);border-radius:6px}
.retour-note{text-decoration:none;margin-left:.2em}

/* Image flottante, entourée par le texte */
.flotte-gauche{float:left;width:min(45%,24rem);margin:.35rem 1.5rem 1rem 0}
.flotte-droite{float:right;width:min(45%,24rem);margin:.35rem 0 1rem 1.5rem}
.flotte-gauche img,.flotte-droite img{display:block;width:100%;height:auto;border-radius:10px;box-shadow:0 4px 14px rgba(8,48,107,.15)}
.texte h2,.notes{clear:both}
@media (max-width:40rem){.flotte-gauche,.flotte-droite{float:none;width:100%;margin:.5rem 0 1rem}}
.texte .aussi{clear:both}

/* Ancres (notes, sommaire) : ne pas passer sous l'en-tête collant */
html{scroll-padding-top:6rem}
@media (max-width:40rem){html{scroll-padding-top:1rem}}

/* Profils comparés (ex. tableau de la page photo) */
.profils{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:1.5rem 0 2rem;align-items:start}
.profil{background:#fff;border:1px solid var(--bordure);display:flex;flex-direction:column}
.profil header{color:#fff;text-align:center;padding:.9rem .8rem .8rem}
.profil header h3{margin:0;font-size:1.45rem;color:#fff;line-height:1.2}
.profil header p{margin:.25rem 0 0;font-size:.92rem;line-height:1.35;color:#fff}
.profil-rose header{background:var(--rose)}
.profil-bleu header{background:var(--bleu)}
.profil-gris header{background:var(--texte-doux)}
.profil-bleu{box-shadow:0 8px 24px rgba(8,48,107,.18);position:relative;z-index:1;margin-top:-.6rem}
.profil-choix{margin:0;padding:1rem;text-align:center;font-size:1.2rem;line-height:1.35;border-bottom:1px solid var(--bordure)}
.profil-rose .profil-choix{color:var(--rose)}
.profil-bleu .profil-choix{color:var(--bleu)}
.profil-gris .profil-choix{color:var(--texte-doux)}
.profil ul{margin:0;padding:1rem 1.1rem 1.2rem 2.2rem;font-size:.98rem}
.profil li{margin:.45rem 0}
@media (max-width:48rem){.profils{grid-template-columns:1fr;gap:1rem}.profil-bleu{margin-top:0}}
