/* Delta Soutien Scolaire — feuille de style du site de production. Partie 1 : feuille validée des maquettes
   (conception/mission-06/maquettes/assets/maquette.css), reprise sans modification. Partie 2 : compléments de production. */
/* Maquettes de conception Delta (mission 6) : système visuel commun, mobile d'abord.
   Identité V02 : bleu #002C84, vert #087E0F, bleu décoratif #0088CE, fond sombre #0B2040.
   Ce fichier sert la conception ; il ne constitue pas le code du site de production. */
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-600-800-latin.woff") format("woff"); font-weight: 600 800; font-display: block; }
:root {
  --bleu: #002c84; --bleu-fonce: #001f5e; --vert-logo: #087e0f; /* vert principal V02 (logo) */
  --vert: #2f6f38; /* vert atténué pour les grandes surfaces : dérivé du vert principal, à valider */ --vert-fonce: #255a2c; --ciel: #0088ce; --nuit: #0b2040; --vert-clair: #a0d896;
  --vert-pale: #ecf6e9; --bleu-pale: #eef3fb; --creme: #f7f9fc;
  --encre: #142038; --gris: #4a566e; --trait: #dbe3ee;
  --rayon: 16px; --ombre: 0 1px 2px rgba(11,32,64,.06), 0 12px 32px rgba(11,32,64,.10);
  --titre: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --g: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--encre); line-height: 1.6; background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); color: var(--bleu); line-height: 1.16; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; } /* titres agrandis (lisibilité, demande de Mohamed) */
p { margin: 0; }
/* Grille commune : contenu fluide de 1152 à 1760 px (84 % de l’écran) + marges régulières ; les textes ont leur propre limite */
.wrap { max-width: calc(clamp(1152px, 84vw, 1760px) + 2 * var(--g)); margin: 0 auto; padding: 0 var(--g); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid #e09a00; outline-offset: 3px; }

/* Étiquette de maquette (toujours visible, compacte) */
.maquette-tag { background: #1d2433; color: #fff; font: 600 11px/1 "Segoe UI", sans-serif; letter-spacing: .04em; text-align: center; padding: 6px 8px; }
.maquette-tag b { color: #ffd166; }
.note-conception { display: inline-block; background: #fff4d6; color: #5c4300; border: 1px dashed #c9a227; border-radius: 8px; padding: 4px 10px; font-size: .78rem; font-weight: 600; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 1rem/1 "Segoe UI", sans-serif; text-decoration: none; border: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-appel { background: var(--vert); color: #fff; }
.btn-rappel { background: #fff; color: var(--bleu); border-color: var(--bleu); }
.btn-bleu { background: var(--bleu); color: #fff; }
.btn-blanc { background: #fff; color: var(--bleu); }
.btn-petit { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.lien-fleche { font-weight: 700; text-decoration: none; }
.lien-fleche::after { content: " →"; }

/* En-tête (variante A par défaut : vert pâle plat ; variante B : bleu nuit) */
.entete { position: sticky; top: 0; z-index: 30; }
.entete-haut { background: var(--vert-pale); }
/* Barre de menu : bleu principal Delta, fixe sur toutes les pages, jamais sur fond blanc */
.menubar { display: none; background: var(--bleu); box-shadow: 0 2px 10px rgba(11,32,64,.18); }
.entete-in { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.logo { margin-right: auto; display: flex; align-items: center; }
.logo img { width: 190px; height: 51px; }
.logo .sombre { display: none; }
.nav { display: none; }
.entete-actions { display: flex; align-items: center; gap: 8px; }
.ico-btn { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bleu); color: #fff; border: 0; }
.ico-btn svg { width: 22px; height: 22px; }
.menu-btn { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--bleu); background: var(--bleu); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-ouvert .menu-btn span { background: transparent; }
.menu-ouvert .menu-btn span::before { top: 0; transform: rotate(45deg); }
.menu-ouvert .menu-btn span::after { top: 0; transform: rotate(-45deg); }
.tel-bloc { display: none; }
html.var-b .entete-haut { background: var(--nuit); }
html.var-b .logo .couleur { display: none; } html.var-b .logo .sombre { display: block; }
html.var-b .ico-btn { background: var(--vert); }
html.var-b .menu-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
html.var-b .tel-bloc small { color: #c9d6ea; }

/* Bandeau d'annonces (sous le menu) */
/* Bandeau d'annonce : rose transparent à 85 % (proposition de Mohamed, hors palette V02, à valider), texte bleu nuit ;
   variante rouge à la même transparence : ?annonce=rouge */
html.annonce-rouge .annonce { background: rgba(220, 38, 38, .15); }
.annonce { background: rgba(232, 67, 123, .15); /* rose, 85 % de transparence */ color: var(--nuit); font-size: .95rem; font-weight: 700; }
.annonce-in { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.annonce-tag { flex: none; background: var(--bleu); color: #fff; font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.annonce-fenetre { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.annonce-texte { display: inline-block; padding-left: 100%; animation: telescripteur 40s linear infinite; }
/* Défilement de droite à gauche, comme un bandeau d'information télévisé */
@keyframes telescripteur { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.annonce:hover .annonce-texte, .annonce.en-pause .annonce-texte { animation-play-state: paused; }
.fige .annonce-texte { animation: none; padding-left: 2%; }
@media (prefers-reduced-motion: reduce) { .annonce-texte { animation: none; padding-left: 0; white-space: normal; } .annonce-fenetre { white-space: normal; -webkit-mask-image: none; mask-image: none; } }
.annonce-texte a { color: var(--bleu-fonce); font-weight: 800; margin-left: 8px; }
.annonce-pause { flex: none; width: 44px; height: 32px; border-radius: 8px; border: 1.5px solid var(--nuit); background: rgba(255,255,255,.35); color: var(--nuit); display: inline-flex; align-items: center; justify-content: center; }
.i-pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }

/* Premier écran */
.hero { background: linear-gradient(180deg, #f6f9fd, #fff 75%); padding: 16px 0 10px; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "texte" "galerie" "visuel"; }
.hero-texte { grid-area: texte; }
.surtitre { display: inline-flex; align-items: center; gap: 8px; color: var(--vert-fonce); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 6px; }
.surtitre::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.hero h1 { font-size: 1.55rem; font-weight: 800; font-style: italic; }
.hero h1 em { color: var(--vert); }
.precision { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.precision span { background: #fff; border: 1.5px solid var(--trait); border-radius: 999px; padding: 4px 11px; font-size: .86rem; font-weight: 700; color: var(--nuit); }
.precision span:first-child { background: #3a5688; border-color: #3a5688; color: #fff; } /* bleu adouci, dérivé du bleu principal */
.hero-sous { margin-top: 8px; color: var(--gris); font-size: 1rem; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hero-cta .btn { padding: 0 12px; }
.hero-cta.trois { grid-template-columns: 1fr 1fr; }
.hero-cta.trois .btn-bleu { grid-column: 1 / -1; }
@media (min-width: 641px) { .hero-cta.trois { flex-wrap: wrap; } }
.hero-visuel { grid-area: visuel; margin-top: 22px; position: relative; }
.hero-visuel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; box-shadow: var(--ombre); }
/* Diaporama de la grande photo : 4 images en fondu, ~5 s chacune, en boucle */
.diapo { position: relative; }
.diapo img + img { position: absolute; inset: 0; height: 100%; }
.diapo img { animation: fondu 20s infinite; }
.diapo img:nth-child(1) { animation-delay: 0s; } .diapo img:nth-child(2) { animation-delay: 5s; opacity: 0; }
.diapo img:nth-child(3) { animation-delay: 10s; opacity: 0; } .diapo img:nth-child(4) { animation-delay: 15s; opacity: 0; }
@keyframes fondu { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
.diapo img:nth-child(1) { animation-name: fondu-premiere; }
@keyframes fondu-premiere { 0% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 96% { opacity: 0; } 100% { opacity: 1; } }
.hero-visuel.en-pause .diapo img { animation-play-state: paused; }
.fige .diapo img { animation: none; } .fige .diapo img + img { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .diapo img { animation: none; } .diapo img + img { opacity: 0; } }
.diapo-cmd { display: flex; align-items: center; gap: 8px; }
.diapo-cmd button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--bleu); background: #fff; color: var(--bleu); display: inline-flex; align-items: center; justify-content: center; }
.legende { margin-top: 6px; font-size: .76rem; color: var(--gris); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.points { display: flex; gap: 6px; }
.points i { width: 8px; height: 8px; border-radius: 50%; background: #c3cee0; display: block; }
.points i.on { background: var(--bleu); width: 22px; border-radius: 4px; }
.hero-galerie { grid-area: galerie; margin-top: 14px; }

/* Galerie des prestations (boucle continue) */
.galerie-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.galerie-tete h2 { font-size: 1.5rem; font-weight: 800; color: var(--bleu); display: flex; align-items: center; gap: 10px; }
.galerie-tete h2::before { content: ""; width: 6px; height: 1.2em; border-radius: 3px; background: var(--vert); }
.galerie-cmd { display: flex; gap: 6px; }
.rond { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bleu); background: #fff; color: var(--bleu); display: inline-flex; align-items: center; justify-content: center; font: 700 1.2rem/1 sans-serif; }
.galerie-fenetre { position: relative; overflow: hidden; border-radius: 20px; background: var(--bleu-pale); padding: 10px; }
.galerie-fenetre::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 36px; background: linear-gradient(90deg, rgba(238,243,251,0), var(--bleu-pale)); pointer-events: none; }
.galerie-piste { display: flex; gap: 12px; width: max-content; transform: translateX(var(--decalage, 0px)); }
/* Défilement continu : la piste contient la série puis sa copie ; elle avance d'une série exacte,
   puis repart de zéro, sans saut visible. Pause au survol, au focus et par le bouton. */
.galerie { --carte: 250px; }
/* Ordinateur et tablette : boucle continue par arrêts ; à chaque arrêt, la première carte est alignée sur le bord
   de la zone (cartes complètes, la dernière annonce la suite) ; précédent/suivant avancent d'une carte. */
.galerie-piste.defile { animation: glisse 55s ease-in-out infinite; }
@keyframes glisse {
  0.000% { transform: translateX(calc(-0 * (var(--carte) + 12px))); }
  7.818% { transform: translateX(calc(-0 * (var(--carte) + 12px))); }
  9.091% { transform: translateX(calc(-1 * (var(--carte) + 12px))); }
  16.909% { transform: translateX(calc(-1 * (var(--carte) + 12px))); }
  18.182% { transform: translateX(calc(-2 * (var(--carte) + 12px))); }
  26.000% { transform: translateX(calc(-2 * (var(--carte) + 12px))); }
  27.273% { transform: translateX(calc(-3 * (var(--carte) + 12px))); }
  35.091% { transform: translateX(calc(-3 * (var(--carte) + 12px))); }
  36.364% { transform: translateX(calc(-4 * (var(--carte) + 12px))); }
  44.182% { transform: translateX(calc(-4 * (var(--carte) + 12px))); }
  45.455% { transform: translateX(calc(-5 * (var(--carte) + 12px))); }
  53.273% { transform: translateX(calc(-5 * (var(--carte) + 12px))); }
  54.545% { transform: translateX(calc(-6 * (var(--carte) + 12px))); }
  62.364% { transform: translateX(calc(-6 * (var(--carte) + 12px))); }
  63.636% { transform: translateX(calc(-7 * (var(--carte) + 12px))); }
  71.455% { transform: translateX(calc(-7 * (var(--carte) + 12px))); }
  72.727% { transform: translateX(calc(-8 * (var(--carte) + 12px))); }
  80.545% { transform: translateX(calc(-8 * (var(--carte) + 12px))); }
  81.818% { transform: translateX(calc(-9 * (var(--carte) + 12px))); }
  89.636% { transform: translateX(calc(-9 * (var(--carte) + 12px))); }
  90.909% { transform: translateX(calc(-10 * (var(--carte) + 12px))); }
  98.727% { transform: translateX(calc(-10 * (var(--carte) + 12px))); }
  100.000% { transform: translateX(calc(-11 * (var(--carte) + 12px))); }
}
@keyframes boucle { from { transform: translateX(0); } to { transform: translateX(calc(-11 * (var(--carte) + 12px))); } }
.galerie:hover .defile, .galerie:focus-within .defile, .galerie.en-pause .defile { animation-play-state: paused; }
.fige .galerie-piste.defile { animation: none; }
@media (max-width: 640px) {
  .galerie { --carte: calc(100vw - 2 * var(--g) - 20px - 44px); }
  .galerie-piste.defile { animation: pas 55s linear infinite; }
}
/* Téléphone : une carte entière à la fois ; ~4,7 s d'affichage puis fondu vers la suivante (jamais deux fragments) */
@keyframes pas {
  0.000% { transform: translateX(calc(-0 * (var(--carte) + 12px))); opacity: 1; }
  8.545% { transform: translateX(calc(-0 * (var(--carte) + 12px))); opacity: 1; }
  8.818% { transform: translateX(calc(-0 * (var(--carte) + 12px))); opacity: 0; }
  8.827% { transform: translateX(calc(-1 * (var(--carte) + 12px))); opacity: 0; }
  9.091% { transform: translateX(calc(-1 * (var(--carte) + 12px))); opacity: 1; }
  17.636% { transform: translateX(calc(-1 * (var(--carte) + 12px))); opacity: 1; }
  17.909% { transform: translateX(calc(-1 * (var(--carte) + 12px))); opacity: 0; }
  17.918% { transform: translateX(calc(-2 * (var(--carte) + 12px))); opacity: 0; }
  18.182% { transform: translateX(calc(-2 * (var(--carte) + 12px))); opacity: 1; }
  26.727% { transform: translateX(calc(-2 * (var(--carte) + 12px))); opacity: 1; }
  27.000% { transform: translateX(calc(-2 * (var(--carte) + 12px))); opacity: 0; }
  27.009% { transform: translateX(calc(-3 * (var(--carte) + 12px))); opacity: 0; }
  27.273% { transform: translateX(calc(-3 * (var(--carte) + 12px))); opacity: 1; }
  35.818% { transform: translateX(calc(-3 * (var(--carte) + 12px))); opacity: 1; }
  36.091% { transform: translateX(calc(-3 * (var(--carte) + 12px))); opacity: 0; }
  36.100% { transform: translateX(calc(-4 * (var(--carte) + 12px))); opacity: 0; }
  36.364% { transform: translateX(calc(-4 * (var(--carte) + 12px))); opacity: 1; }
  44.909% { transform: translateX(calc(-4 * (var(--carte) + 12px))); opacity: 1; }
  45.182% { transform: translateX(calc(-4 * (var(--carte) + 12px))); opacity: 0; }
  45.191% { transform: translateX(calc(-5 * (var(--carte) + 12px))); opacity: 0; }
  45.455% { transform: translateX(calc(-5 * (var(--carte) + 12px))); opacity: 1; }
  54.000% { transform: translateX(calc(-5 * (var(--carte) + 12px))); opacity: 1; }
  54.273% { transform: translateX(calc(-5 * (var(--carte) + 12px))); opacity: 0; }
  54.282% { transform: translateX(calc(-6 * (var(--carte) + 12px))); opacity: 0; }
  54.545% { transform: translateX(calc(-6 * (var(--carte) + 12px))); opacity: 1; }
  63.091% { transform: translateX(calc(-6 * (var(--carte) + 12px))); opacity: 1; }
  63.364% { transform: translateX(calc(-6 * (var(--carte) + 12px))); opacity: 0; }
  63.373% { transform: translateX(calc(-7 * (var(--carte) + 12px))); opacity: 0; }
  63.636% { transform: translateX(calc(-7 * (var(--carte) + 12px))); opacity: 1; }
  72.182% { transform: translateX(calc(-7 * (var(--carte) + 12px))); opacity: 1; }
  72.455% { transform: translateX(calc(-7 * (var(--carte) + 12px))); opacity: 0; }
  72.464% { transform: translateX(calc(-8 * (var(--carte) + 12px))); opacity: 0; }
  72.727% { transform: translateX(calc(-8 * (var(--carte) + 12px))); opacity: 1; }
  81.273% { transform: translateX(calc(-8 * (var(--carte) + 12px))); opacity: 1; }
  81.545% { transform: translateX(calc(-8 * (var(--carte) + 12px))); opacity: 0; }
  81.555% { transform: translateX(calc(-9 * (var(--carte) + 12px))); opacity: 0; }
  81.818% { transform: translateX(calc(-9 * (var(--carte) + 12px))); opacity: 1; }
  90.364% { transform: translateX(calc(-9 * (var(--carte) + 12px))); opacity: 1; }
  90.636% { transform: translateX(calc(-9 * (var(--carte) + 12px))); opacity: 0; }
  90.645% { transform: translateX(calc(-10 * (var(--carte) + 12px))); opacity: 0; }
  90.909% { transform: translateX(calc(-10 * (var(--carte) + 12px))); opacity: 1; }
  99.455% { transform: translateX(calc(-10 * (var(--carte) + 12px))); opacity: 1; }
  99.727% { transform: translateX(calc(-10 * (var(--carte) + 12px))); opacity: 0; }
  99.736% { transform: translateX(calc(-11 * (var(--carte) + 12px))); opacity: 0; }
  100% { transform: translateX(calc(-11 * (var(--carte) + 12px))); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .galerie-piste.defile { animation: none; } }
.carte { width: var(--carte); flex: none; border-radius: var(--rayon); overflow: hidden; background: #fff; box-shadow: var(--ombre); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.carte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carte-titre { flex: 1; background: var(--bleu); color: #fff; text-align: center; padding: 10px 12px 11px; min-height: 76px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.carte.verte .carte-titre { background: #4d7656; } /* vert des cartes, plus doux que le bouton « Appeler » (à valider) */
.carte-titre strong { font: 700 1.08rem/1.2 var(--titre); }
.carte-titre span { font-size: .78rem; opacity: .92; font-weight: 600; }
.toutes { display: inline-block; margin-top: 4px; font-weight: 700; font-size: .92rem; }

/* Sections */
.section { padding: 48px 0; }
.section.teinte { background: var(--creme); }
.kicker { color: var(--vert-fonce); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; margin-bottom: 6px; }
.intro { color: var(--gris); margin-top: 8px; max-width: 68ch; }
.grille { display: grid; gap: 16px; margin-top: 22px; }
.boite { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; }
.boite h3 { margin-bottom: 6px; }
.boite p { color: var(--gris); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { background: var(--bleu-pale); color: var(--bleu); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; }
.chip.vert { background: #e6f4e4; color: var(--vert-fonce); }
.etat { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: #fff4d6; color: #5c4300; }

/* En-tête ordinateur : entrées sur une ligne ; espacements resserrés jusqu'à 1440 px */
@media (min-width: 1024px) {
  .nav > ul > li > a, .nav > ul > li > button, .tel-bloc small { white-space: nowrap; }
  .mon-espace { padding: 0 10px !important; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .nav > ul > li > a, .nav > ul > li > button { padding: 0 6px !important; font-size: .93rem !important; }
  .entete-in { gap: 10px !important; }
  .logo img { width: 190px; height: 51px; }
  .tel-bloc .btn { padding: 0 14px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .tel-bloc small { display: none; }
  .tel-bloc .btn { font-size: 0; gap: 0; width: 48px; padding: 0; }
  .tel-bloc .btn svg { width: 20px; height: 20px; }
}

/* En-tête ordinateur équilibré : logo à gauche, menu centré, téléphone à droite */
@media (min-width: 1024px) {
  .entete-in { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; }
  .entete-in .nav { margin: 0; justify-self: center; }
  .entete-in .logo { margin: 0; }
}
/* Localisation : identifie immédiatement le centre et sa proximité */
.localisation { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 800 1.05rem/1.2 var(--titre); color: var(--bleu);
  background: #fff; border: 1.5px solid var(--trait); border-radius: 999px; padding: 6px 14px 6px 10px; box-shadow: 0 2px 8px rgba(11,32,64,.06); }
.localisation svg { width: 20px; height: 20px; color: var(--vert-logo); flex: none; }
@media (min-width: 1024px) { .localisation { font-size: 1.2rem; } .hero-texte { align-self: start; padding-top: 4px; } .hero { padding-top: 12px; } }
/* Bouton d'accès à la page récapitulative, centré sous la galerie */
.btn-toutes { display: flex; align-items: center; justify-content: center; width: fit-content; min-height: 48px; margin: 12px auto 0; padding: 0 26px; border-radius: 999px;
  background: #fff; color: var(--bleu); border: 2px solid var(--bleu); font: 700 1rem/1 "Segoe UI", sans-serif; text-decoration: none; transition: background-color .2s, color .2s; }
.btn-toutes:hover { background: var(--bleu); color: #fff; }
@media (max-width: 640px) { .btn-toutes { padding: 0 12px; font-size: .92rem; } }
.btn-toutes:focus-visible { outline: 3px solid #e09a00; outline-offset: 3px; }
.carte-relief .vignette { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.groupe-recap + .groupe-recap { border-top: 1px solid var(--trait); }
/* Groupes d'une ou deux prestations : cartes larges, pas de colonnes vides */
.grille-large { display: grid; gap: 18px; }
.carte-large { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border: 1px solid var(--trait); border-left: 5px solid var(--bleu); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11,32,64,.05), 0 6px 16px rgba(11,32,64,.07); text-decoration: none; color: var(--encre); transition: box-shadow .2s; }
.carte-large.vert { border-left-color: #4d7656; }
.carte-large:hover { box-shadow: 0 2px 4px rgba(11,32,64,.08), 0 14px 28px rgba(11,32,64,.14); }
.carte-large:focus-visible { outline: 3px solid #e09a00; outline-offset: 3px; }
.carte-large img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.carte-large-corps { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
.carte-large-corps strong { font: 800 clamp(1.45rem, 2.3vw, 2rem)/1.2 var(--titre); color: var(--bleu); }
.carte-large-corps .resume { color: var(--gris); font-size: 1.06rem; max-width: 60ch; }
@media (min-width: 641px) { .carte-large { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; } .carte-large img { aspect-ratio: auto; min-height: 220px; } .carte-large-corps { justify-content: center; padding: 22px 26px; } }
@media (min-width: 1024px) { .grille-large.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grille-large.n1 .carte-large { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }

/* Rythme des sections de l'accueil : fonds très légers alternés, filet de séparation, titres centrés */
.bloc-formule, .bloc-accomp, .bloc-avis { background: #fff; }
.bloc-toutes, .bloc-rappel, .bloc-faq { background: var(--creme); }
.bloc-sessions { background: #f4f9f3; }
.bloc-formule, .bloc-toutes, .bloc-sessions, .bloc-accomp, .bloc-rappel, .bloc-avis, .bloc-faq { border-top: 1px solid var(--trait); }
.titre-section { text-align: center; margin: 0 auto 26px; max-width: 760px; }
.titre-section h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.titre-section h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; margin: 12px auto 0; background: linear-gradient(90deg, var(--bleu) 0 50%, var(--vert-logo) 50% 100%); }
.titre-section .intro { margin: 12px auto 0; }
/* Cartes « Toutes les prestations » : relief discret, accent latéral, titres et niveaux centrés */
.carte-relief { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 132px; text-align: center; background: #fff; border: 1px solid var(--trait);
  border-left: 5px solid var(--bleu); border-radius: 14px; padding: 16px 14px; box-shadow: 0 1px 2px rgba(11,32,64,.05), 0 6px 16px rgba(11,32,64,.07); text-decoration: none; color: var(--encre); transition: box-shadow .2s, border-color .2s; }
.carte-relief.vert { border-left-color: #4d7656; }
.carte-relief strong { font: 700 1.22rem/1.25 var(--titre); color: var(--bleu); }
.carte-relief .lien-fleche { font-size: .95rem; color: var(--bleu); }
.carte-relief:hover { box-shadow: 0 2px 4px rgba(11,32,64,.08), 0 14px 28px rgba(11,32,64,.14); border-color: #b9c6dc; }
.carte-relief:focus-visible { outline: 3px solid #e09a00; outline-offset: 3px; }
/* Stages : vacances hors Noël et pré-rentrée distinctes */
.sessions-groupes { display: grid; gap: 18px; }
.groupe-sessions { background: #fff; border: 1px solid var(--trait); border-radius: 18px; padding: 18px; }
.groupe-sessions > h3 { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; }
.groupe-sessions .grille { margin-top: 12px; }
.groupe-sessions .boite.session { text-decoration: none; color: inherit; display: block; }
.groupe-sessions.pre .boite { margin-top: 12px; }
.chip.bleu { background: var(--bleu); color: #fff; }
@media (min-width: 1024px) { .sessions-groupes { grid-template-columns: 3fr 1fr; } }

/* Trouver ma formule : fond vert très pâle ; bleu réservé aux titres et actions ; résultat en carte blanche */
.finder { background: var(--vert-pale); border: 1px solid #d3e6cf; border-radius: 22px; padding: 22px; }
.finder h2 { color: var(--bleu); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.finder .sous-titre { color: var(--vert-fonce); font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.finder-champs { display: grid; gap: 12px; margin-top: 18px; }
.finder label { font-size: .88rem; font-weight: 800; color: var(--nuit); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.finder label b { width: 24px; height: 24px; border-radius: 50%; background: var(--bleu); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.faux-select { background: #fff; color: var(--encre); border: 1.5px solid #8a96ab; border-radius: 10px; min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-weight: 600; }
.faux-select::after { content: "▾"; color: var(--bleu); }
.finder-resultat { margin-top: 18px; background: #fff; border-radius: 18px; box-shadow: var(--ombre); padding: 14px; display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.finder-resultat img { width: 110px; height: 82px; object-fit: cover; border-radius: 12px; }
.finder-resultat .etiquette-resultat { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--vert-fonce); }
.finder-resultat h3 { color: var(--bleu); font-size: 1.3rem; margin: 2px 0 6px; }
.finder-resultat .btn { grid-column: 1 / -1; justify-self: stretch; }
.finder-vide { margin-top: 12px; background: #fff; border: 1.5px dashed #9aa8c0; border-radius: 16px; padding: 14px 16px; }
.finder-vide p { color: var(--gris); margin: 4px 0 10px; }
@media (min-width: 641px) {
  .finder { padding: 28px 32px; }
  .finder-resultat { grid-template-columns: 150px 1fr auto; }
  .finder-resultat img { width: 150px; height: 104px; }
  .finder-resultat .btn { grid-column: auto; justify-self: end; }
}

/* Étapes */
.etapes { counter-reset: e; display: grid; gap: 12px; margin-top: 20px; }
.etapes li { list-style: none; counter-increment: e; background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 14px 16px 14px 62px; position: relative; color: var(--gris); }
.etapes li::before { content: counter(e); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--bleu); color: #fff; font: 700 1rem/34px var(--titre); text-align: center; }
.etapes li:nth-child(even)::before { background: var(--vert); }
.etapes strong { color: var(--nuit); }

/* Bloc de rappel avec photo */
.rappel { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border-radius: 22px; box-shadow: var(--ombre); overflow: hidden; }
.rappel-photo { position: relative; background: var(--bleu-pale); }
.rappel-photo img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% 35%; }
.rappel-photo figcaption { position: absolute; left: 12px; bottom: 10px; background: rgba(11,32,64,.82); color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 6px; }
.rappel-corps { padding: 20px; }
.form { display: grid; gap: 12px; margin-top: 14px; }
.form-ligne { display: grid; gap: 12px; }
.champ label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 4px; color: var(--nuit); }
.champ label small { font-weight: 600; color: var(--gris); }
.champ .requis { color: #b42318; }
.saisie { min-height: 48px; border: 1.5px solid #8a96ab; border-radius: 10px; background: #fff; display: flex; align-items: center; padding: 0 12px; color: #6b768c; }
.saisie.rempli { color: var(--encre); }
.saisie.zone { min-height: 84px; align-items: flex-start; padding-top: 10px; }
.saisie.select::after { content: "▾"; margin-left: auto; color: var(--bleu); }
.champ.erreur .saisie { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.12); color: var(--encre); }
.msg-erreur { margin-top: 6px; color: #b42318; font-size: .86rem; font-weight: 600; display: flex; gap: 6px; }
.form-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mention { font-size: .8rem; color: var(--gris); }
.retour { border-radius: 12px; padding: 12px 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.retour.ok { background: #e7f5e6; color: #0b5a12; }
.retour.ko { background: #fdeceb; color: #8a1c12; }
.retour.attente { background: var(--bleu-pale); color: var(--bleu); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; flex: none; margin-top: 2px; }

/* Avis Google (emplacement) */
.avis-zone { border: 2px dashed #9aa8c0; border-radius: 18px; padding: 22px; background: #fff; display: grid; gap: 12px; }
.avis-faux { display: grid; gap: 10px; }
.avis-faux div { height: 64px; border-radius: 12px; background: repeating-linear-gradient(135deg, #f1f4f9 0 12px, #e8edf5 12px 24px); }

/* FAQ */
.faq { margin-top: 18px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: 0 16px; }
.faq summary { min-height: 52px; display: flex; align-items: center; font-weight: 700; color: var(--nuit); cursor: pointer; }
.faq details p { padding: 0 0 14px; color: var(--gris); }

/* Pied de page */
.pied { background: var(--nuit); color: #dfe7f3; padding: 40px 0 96px; font-size: .94rem; }
.pied a { color: #fff; }
.pied-grille { display: grid; gap: 26px; }
.pied h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pied li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.pied .adresse { font-size: .82rem; color: #aebbd2; margin-top: 10px; }
.pied .devise { color: var(--vert-clair); font-style: italic; margin: 8px 0; }

/* Chat : reprise du design du chat Wix actuel (pastille « Contactez-nous », panneau blanc et lavande) */
.chat-bulle { position: fixed; right: 14px; bottom: 14px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #5570b5; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 18px rgba(22,43,111,.28); border: 0; font: 600 1.15rem/1 "Oswald", "Bahnschrift", "Arial Narrow", sans-serif; letter-spacing: .01em; }
.chat-bulle svg { width: 26px; height: 26px; }
.chat-bulle .pastille-notif { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: #e3342f; border: 2px solid #fff; }
.chat-panneau { position: fixed; right: 14px; bottom: 84px; z-index: 41; width: min(370px, calc(100vw - 28px)); height: 530px; max-height: calc(100vh - 110px); background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(22,43,111,.3); overflow: hidden; display: flex; flex-direction: column; }
.chat-tete { background: #fff; color: #162b6f; padding: 18px 20px 14px; position: relative; }
.chat-tete strong { display: block; font: 600 1.3rem/1.1 "Oswald", "Bahnschrift", "Arial Narrow", sans-serif; letter-spacing: .01em; }
.chat-tete small { display: flex; align-items: center; gap: 6px; font-size: .86rem; margin-top: 4px; }
.chat-tete small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fb344; }
.chat-fermer { position: absolute; right: 14px; top: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #162b6f; }
.chat-corps { flex: 1; background: #b0bfef; padding: 12px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.chat-heure { align-self: center; background: #6b6b6b; color: #fff; font: 700 .7rem/1 "Segoe UI", sans-serif; padding: 5px 7px; border-radius: 4px; }
.bot { background: #fff; color: #162b6f; border-radius: 20px; padding: 12px 18px; font-size: .92rem; line-height: 1.4; max-width: 80%; }
.bot-note { font-size: .74rem; color: #2b3f80; margin-top: -4px; }
.chat-saisie { border-top: 1px solid #e3e7f3; padding: 14px 20px; display: flex; align-items: center; gap: 12px; color: #4d5470; font-size: .95rem; }
.chat-saisie span { flex: 1; }
.chat-saisie svg { width: 20px; height: 20px; color: #9aa3bd; }

/* Mon espace (élève) et gestion (direction) */
.mon-espace { border: 1.5px solid currentColor; }
.espace-bande { background: var(--bleu-pale); border-bottom: 1px solid var(--trait); }
.espace-bande.direction { background: var(--nuit); color: #fff; }
.espace-bande-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 52px; }
.espace-bande .role { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--bleu); color: #fff; padding: 3px 10px; border-radius: 999px; }
.espace-bande.direction .role { background: #e09a00; color: var(--nuit); }
.espace-bande strong { font-family: var(--titre); font-size: 1.25rem; }
.espace-bande .qui { margin-left: auto; font-size: .85rem; opacity: .85; }
.espace-carte h2 { font-size: 1.65rem; margin-bottom: 6px; }
.fictif { display: inline-block; background: #fff4d6; color: #5c4300; border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: .75rem; }
.statut { border-radius: 18px; padding: 22px; background: #fff; border: 1px solid var(--trait); border-left: 6px solid var(--bleu); }
.statut h2 { font-size: 1.65rem; margin: 8px 0; } .statut p { color: var(--gris); margin-bottom: 12px; }
.statut.attente { border-left-color: #c9a227; } .statut.actif { border-left-color: var(--vert); } .statut.suspendu { border-left-color: #b42318; } .statut.expire { border-left-color: #8a96ab; }
.etat-compte { display: inline-block; font-size: .76rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.etat-compte.attente { background: #fff4d6; color: #5c4300; } .etat-compte.actif { background: #e6f4e4; color: #1f5a28; }
.etat-compte.suspendu { background: #fdeceb; color: #8a1c12; } .etat-compte.expire { background: #eceff4; color: #3d475c; }
.onglets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.onglet { border: 1.5px solid var(--trait); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.onglet.on { background: var(--bleu); border-color: var(--bleu); color: #fff; } .onglet.verrou { color: #8a96ab; }
.liste-chapitres { display: grid; gap: 8px; margin-top: 12px; }
.chapitre { display: grid; grid-template-columns: 70px 1fr; gap: 2px 12px; align-items: center; background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--encre); }
.chapitre .num { grid-row: span 2; font: 800 .9rem var(--titre); color: #fff; background: var(--bleu); border-radius: 10px; text-align: center; padding: 10px 4px; }
.chapitre .titre { font-weight: 800; color: var(--bleu); } .chapitre .docs { font-size: .82rem; color: var(--gris); }
.doc { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 16px; display: grid; gap: 8px; justify-items: start; }
.tableau { overflow-x: auto; margin-top: 14px; border: 1px solid var(--trait); border-radius: 14px; background: #fff; }
.tableau table { width: 100%; border-collapse: collapse; min-width: 680px; }
.tableau th, .tableau td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.tableau th { background: var(--creme); font-size: .85rem; color: var(--nuit); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-danger { background: #fff; color: #b42318; border-color: #b42318; }
.cases { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.case { border: 1.5px solid var(--trait); border-radius: 10px; padding: 8px 12px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.case.on { border-color: var(--vert); background: #e6f4e4; color: #1f5a28; }
.liste-gestion { display: grid; gap: 8px; }
.ligne-chapitre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: 10px 12px; }
.ligne-chapitre .poignee { color: #8a96ab; font-weight: 800; cursor: grab; } .ligne-chapitre .num { font-weight: 800; color: var(--bleu); min-width: 56px; }
.ligne-chapitre .titre { flex: 1 1 200px; font-weight: 700; } .ligne-chapitre .actions { margin-left: auto; }
.depot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 1px solid var(--trait); border-radius: 12px; padding: 10px 12px; }
.depot.vide { border-style: dashed; } .depot .champ { flex: 1 1 200px; } .depot .mention { flex: 1 1 160px; }
.confirmation { border: 2px solid #b42318; }
.acces-espace { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--vert-pale); border: 1px solid #d3e6cf; border-radius: 14px; padding: 12px 16px; }

/* Méthode pédagogique et supports */
.bloc-methode { background: #fff; border-top: 1px solid var(--trait); }
.methode-grille { display: grid; gap: 14px; }
.methode-carte { background: #fff; border: 1px solid var(--trait); border-left: 5px solid var(--bleu); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(11,32,64,.05), 0 6px 16px rgba(11,32,64,.06); }
.methode-carte:nth-child(even) { border-left-color: #4d7656; }
.methode-carte h3 { margin: 6px 0; } .methode-carte p { color: var(--gris); }
.methode-num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--bleu-pale); color: var(--bleu); font-weight: 800; align-items: center; justify-content: center; }
.supports { display: grid; gap: 14px; }
.support { background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 16px; }
.support p { color: var(--gris); margin-top: 4px; }
.etoiles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.etoiles span { background: #fff7e0; color: #9a6b00; border: 1px solid #f0d58a; border-radius: 999px; padding: 2px 10px; font-weight: 800; letter-spacing: 1px; }
.etapes.seance li { background: #fff; }
@media (min-width: 641px) { .methode-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .supports { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .methode-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } .supports { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.boite.session.publiee { border-left-color: var(--bleu); background: #fbfdff; }
.boite.session.publiee .fictif { margin-bottom: 6px; }

/* Pages modèles */
.fil { font-size: .82rem; color: var(--gris); padding: 12px 0 0; }
.fil a { text-decoration: none; }
.page-tete { padding: 18px 0 28px; background: linear-gradient(180deg, var(--bleu-pale), #fff); }
.page-tete-grille { display: grid; gap: 18px; }
.page-tete h1 { font-size: 1.7rem; font-weight: 800; margin-top: 6px; }
.page-tete img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sommaire a { background: #fff; border: 1.5px solid var(--trait); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 700; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }
.infos { display: grid; gap: 10px; margin-top: 14px; }
.info { display: flex; gap: 10px; align-items: flex-start; }
.info b { color: var(--nuit); }
.pastille { width: 34px; height: 34px; border-radius: 10px; background: var(--bleu-pale); color: var(--bleu); display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 800; }
.liste-coche { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.liste-coche li { padding-left: 26px; position: relative; color: var(--gris); }
.liste-coche li::before { content: "✓"; position: absolute; left: 0; color: var(--vert); font-weight: 800; }
.session { border-left: 5px solid var(--vert); }
.ressource { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.ressource a { font-weight: 700; text-decoration: none; }
.pdf { font-size: .72rem; font-weight: 800; color: #fff; background: #b42318; border-radius: 4px; padding: 2px 6px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filtre { border: 1.5px solid var(--trait); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .88rem; min-height: 44px; display: inline-flex; align-items: center; background: #fff; }
.filtre.on { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.recherche { margin-top: 14px; }

/* Menu mobile ouvert (maquette) */
.tiroir { background: var(--bleu); }
.tiroir ul { list-style: none; margin: 0; padding: 6px 0 12px; }
.tiroir > div > ul > li { border-bottom: 1px solid rgba(255,255,255,.18); }
.tiroir a, .tiroir .ouvre { display: flex; align-items: center; justify-content: space-between; min-height: 50px; font-weight: 700; color: #fff; text-decoration: none; }
.tiroir .ouvre::after { content: "▾"; color: var(--vert-clair); }
.tiroir .sous { padding: 0 0 8px 14px; background: rgba(255,255,255,.06); border-radius: 10px; }
.tiroir .sous a { min-height: 44px; font-weight: 600; color: #dce7fb; }
.tiroir .btn-rappel { background: transparent; color: #fff; border-color: #fff; }

/* Planches (états, storyboard) */
.planche { padding-top: 28px; padding-bottom: 60px; }
.planche h1 { font-size: 1.6rem; }
.planche-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 18px; }
.etiquette { font-size: .8rem; font-weight: 800; color: #fff; background: #1d2433; border-radius: 6px; padding: 3px 8px; display: inline-block; margin-bottom: 8px; }
.ecran-simule { position: relative; border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; background: #fff; }

/* Tablette (≥ 641 px) */
@media (min-width: 641px) {
  :root { --g: 24px; }
  .logo img { width: 210px; height: 56px; }
  .hero { padding: 20px 0 12px; }
  .hero h1 { font-size: 2rem; }
  .hero-cta { display: flex; }
  .hero-cta .btn { padding: 0 22px; }
  .grille.g2, .grille.g3, .grille.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-champs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-ligne { grid-template-columns: 1fr 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .page-tete h1 { font-size: 2.1rem; }
}
/* Ordinateur (≥ 1024 px) */
@media (min-width: 1024px) {
  :root { --g: clamp(24px, 3vw, 56px); }
  .hero h1 { max-width: 28ch; }
  .hero-texte .precision, .hero-cta { max-width: 640px; }
  .entete-in { min-height: 78px; gap: 14px; }
  .logo img { width: 210px; height: 56px; }
  .nav > ul > li > a, .nav > ul > li > button { padding: 0 9px !important; }
  .nav { display: block; margin-left: auto; }
  .logo { margin-right: 0; }
  .nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
  .nav > ul > li { position: relative; }
  .nav > ul > li > a, .nav > ul > li > button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 11px; border-radius: 8px; font: 700 .98rem/1 "Segoe UI", sans-serif; color: var(--bleu); text-decoration: none; background: none; border: 0; }
  .nav > ul > li > a.actif, .nav > ul > li > button[aria-expanded="true"] { background: rgba(0,44,132,.08); box-shadow: inset 0 -3px 0 var(--vert-logo); }
  .nav > ul > li > button::after { content: "▾"; font-size: .75rem; color: var(--vert-logo); }
  html.var-b .nav > ul > li > a, html.var-b .nav > ul > li > button { color: #fff; }
  html.var-b .nav > ul > li > a.actif, html.var-b .nav > ul > li > button[aria-expanded="true"] { background: rgba(255,255,255,.12); box-shadow: inset 0 -3px 0 var(--vert-clair); }
  html.var-b .nav > ul > li > button::after { color: var(--vert-clair); }
  .nav .deroulant { position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--bleu-fonce); border-radius: 0 0 14px 14px; box-shadow: 0 16px 34px rgba(11,32,64,.35); padding: 8px; display: none; }
  .nav .deroulant.ouvert { display: block; }
  .nav .deroulant a { display: block; padding: 9px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; }
  .nav .deroulant a small { display: block; color: #aec3ea; font-weight: 500; font-size: .76rem; }
  .nav .deroulant a:hover { background: rgba(255,255,255,.12); }

  .menu-btn, .ico-btn.tel-mobile { display: none; }
  .tel-bloc { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .tel-bloc small { font-size: .72rem; color: var(--gris); }
  .hero { padding: 14px 0 6px; }
  .hero-grille { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "texte visuel" "galerie galerie"; column-gap: 44px; align-items: center; }
  .hero h1 { font-size: 2.15rem; }
  .hero-visuel img { aspect-ratio: 2 / 1; }
  .hero-cta { margin-top: 12px; }
  .galerie-tete { margin-bottom: 6px; }
  .galerie-tete h2 { font-size: 1.75rem; }
  .galerie-tete .rond { width: 40px; height: 40px; }
  .carte img { aspect-ratio: 16 / 10; }
  .carte-titre { min-height: 64px; padding: 8px 12px; }
  .hero-sous { font-size: 1.08rem; }
  .hero-visuel { margin-top: 0; }
  .hero-galerie { margin-top: 8px; }
  .galerie { --carte: clamp(232px, 15vw, 300px); }
  .grille.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rappel { grid-template-columns: 0.9fr 1.1fr; }
  .rappel-photo img { aspect-ratio: auto; min-height: 100%; }
  .rappel-corps { padding: 28px 32px; }
  .pied-grille { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .page-tete-grille { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
  .section { padding: 64px 0; }
  /* Grande photo un peu plus basse : la galerie remonte et la pastille du chat se place sous les cartes */
  .hero-visuel img { aspect-ratio: 2.6 / 1; }
}
.chat-bulle .lib { display: none; }
@media (min-width: 1024px) {
  .chat-bulle { width: auto; height: 56px; border-radius: 999px; padding: 0 26px 0 22px; right: 20px; bottom: 20px; }
  .chat-bulle .lib { display: inline; }
  .chat-bulle .pastille-notif { display: none; }
  .chat-panneau { right: 20px; bottom: 20px; }
}

/* Téléphone : premier écran compact (textes et boutons gardent leur taille de lecture) */
@media (max-width: 640px) {
  .maquette-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; padding: 5px 8px; }
  .hero { padding-top: 12px; }
  .hero h1 { font-size: 1.42rem; }
  .precision { gap: 5px; margin-top: 8px; }
  .precision span { font-size: .78rem; padding: 3px 9px; }
  .hero-cta { margin-top: 12px; }
  .galerie-tete h2 { font-size: 1.35rem; }
  .galerie-tete .rond { width: 40px; height: 40px; }
  .galerie .carte img { aspect-ratio: 16 / 10; }
  .galerie .carte-titre { min-height: 64px; padding: 8px 10px; }
  .chat-bulle { width: 50px; height: 50px; right: 10px; bottom: 10px; }
  .chat-bulle svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Surtitres de section (niveaux : « Collège · Lycée », « Du CP au CM2 »…) : lisibles, en pastille (demande de Mohamed) */
.titre-section .kicker { display: inline-block; font-size: 1.05rem; letter-spacing: .06em; padding: 5px 16px; margin-bottom: 10px; border-radius: 999px; background: #e9f2ea; color: #2f5a37; }
@media (max-width: 640px) { .titre-section .kicker { font-size: .98rem; } }

/* ==== Mission 7 : corrections après audit (démonstration locale reliée) ==================================== */
[hidden] { display: none !important; }
/* Ancres : le titre de la section atteinte reste visible sous l'en-tête fixe (retour de Mohamed) */
html { scroll-padding-top: calc(var(--entete-h, 120px) + 12px); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tag-illustratif { color: #c9d6ea; }
/* Actions seulement dessinées : bordure en pointillés et curseur neutre */
.illustratif { border-style: dashed !important; cursor: help; }
.chat-saisie.illustratif { border-top: 1px dashed #c3cbe0 !important; }
/* Formulaire de rappel : titre bien visible */
.titre-rappel { font-size: clamp(1.8rem, 3.4vw, 2.4rem); display: flex; align-items: center; gap: 12px; }
.titre-rappel::before { content: ""; width: 8px; height: 1.1em; border-radius: 4px; background: var(--vert); flex: none; }
.sous-titre-rappel { font: 700 1.15rem/1.3 var(--titre); color: var(--nuit); margin-top: 6px; }
.recap-court { background: var(--bleu-pale); border-radius: 10px; padding: 8px 12px; color: var(--nuit); }
/* Champs réels (aucun envoi) */
.champ input, .champ select, .champ textarea { width: 100%; min-height: 48px; border: 1.5px solid #8a96ab; border-radius: 10px; background: #fff; padding: 0 12px; font: inherit; color: var(--encre); }
.champ textarea { min-height: 84px; padding: 10px 12px; resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: #6b768c; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 3px solid #e09a00; outline-offset: 2px; }
.champ.erreur input, .champ.erreur select, .champ.erreur textarea { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
.resume-erreurs { background: #fdeceb; color: #8a1c12; border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--bleu); text-decoration: underline; cursor: pointer; min-height: 0; }
.retour.ko .lien-bouton { color: #8a1c12; }
.simu { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--gris); border: 1px dashed #c9a227; border-radius: 8px; padding: 6px 10px; background: #fffaf0; min-height: 44px; }
.simu input { width: 20px; height: 20px; }
.demo-note { font-style: italic; }
/* Demande : récapitulatif du contexte et trois intentions */
.demande-grille { display: grid; gap: 18px; }
.recap h2 { font-size: 1.35rem; }
.recap-liste { display: grid; gap: 8px; margin: 12px 0; }
.recap-liste div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; border-bottom: 1px solid var(--trait); padding-bottom: 6px; }
.recap-liste dt { font-weight: 700; color: var(--gris); font-size: .9rem; } .recap-liste dd { margin: 0; font-weight: 700; color: var(--nuit); }
.recap-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0; }
.choix-type { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filtre[aria-pressed="true"], .onglet[aria-pressed="true"] { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.filtre, .onglet { cursor: pointer; font-family: inherit; }
.page-tete-courte { padding-bottom: 8px; }
@media (min-width: 1024px) { .grille.demande-grille { grid-template-columns: minmax(280px, 1fr) 2fr; align-items: start; } .recap { position: sticky; top: calc(var(--entete-h, 120px) + 12px); } }
/* Liens en boîte, contact, ressources, articles, citation, archive */
.boite-lien { display: grid; gap: 6px; text-decoration: none; color: var(--encre); transition: box-shadow .2s; }
.boite-lien:hover { box-shadow: var(--ombre); }
.contact-cote { display: grid; gap: 14px; align-content: start; }
.ressource-pdf { display: flex; align-items: center; gap: 12px; flex: none; }
.ressource-pdf a { min-height: 44px; display: inline-flex; align-items: center; }
.ressource .code { color: var(--bleu); }
.recherche input { width: 100%; max-width: 520px; min-height: 48px; border: 1.5px solid #8a96ab; border-radius: 10px; padding: 0 12px; font: inherit; }
.article { max-width: 72ch; }
.article p { margin-top: 12px; }
.article-inter { font-size: 1.35rem; margin-top: 22px; }
.citation { margin: 0; text-align: center; }
.citation blockquote { margin: 0; font: 800 clamp(1.6rem, 3.4vw, 2.4rem)/1.2 var(--titre); color: var(--bleu); }
.citation figcaption { margin-top: 8px; font-size: 1.15rem; color: var(--nuit); }
.bandeau-archive { background: #fff4d6; color: #5c4300; border-bottom: 2px dashed #c9a227; padding: 10px var(--g); text-align: center; font-weight: 600; }
.session-dates { color: var(--nuit); margin-top: 6px; }
.boite.session .btn { margin-top: 12px; }
/* Espaces privés : navigation propre, accès au contact */
.espace-nav { background: #fff; border-bottom: 1px solid var(--trait); }
.espace-nav-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding-top: 6px; padding-bottom: 6px; }
.espace-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 700; text-decoration: none; color: var(--bleu); }
.espace-nav a[aria-current="page"] { background: var(--bleu-pale); box-shadow: inset 0 -3px 0 var(--bleu); }
.espace-nav .espace-tel { margin-left: auto; color: #1f5a28; } .espace-nav .espace-tel svg { width: 18px; height: 18px; }
.chapitre.non-demontre { border-style: dashed; color: var(--gris); background: #fafbfd; }
.chapitre.non-demontre .num { background: #8a96ab; } .chapitre.non-demontre .titre { color: var(--gris); }
.demo-etats { border: 2px dashed #c9a227; border-radius: 16px; padding: 14px; background: #fffdf6; }
.demo-titre { font-weight: 800; color: #5c4300; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.demo-etats [data-etat] { margin-top: 14px; }
.issues { margin-top: 16px; }
.depot { margin-top: 8px; } .depot.masque { background: #fafbfd; }
.depot .btn-row { margin-left: auto; }
.eval-gestion { border-left: 4px solid var(--bleu-pale); padding-left: 10px; margin-top: 12px; }
.etat-compte.refuse { background: #fdeceb; color: #8a1c12; }
.case input { margin-right: 6px; width: 18px; height: 18px; }
/* Tableaux de gestion : cartes sur petit écran, actions toujours visibles (audit I9) */
@media (max-width: 760px) {
  .tableau.cartes-mobile { border: 0; background: none; overflow: visible; }
  .tableau.cartes-mobile table { min-width: 0; }
  .tableau.cartes-mobile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau.cartes-mobile tr { display: block; background: #fff; border: 1px solid var(--trait); border-radius: 14px; padding: 6px 12px; margin-bottom: 12px; }
  .tableau.cartes-mobile td { display: grid; grid-template-columns: 112px 1fr; gap: 8px; border-bottom: 1px dashed var(--trait); padding: 8px 0; }
  .tableau.cartes-mobile td:last-child { border-bottom: 0; }
  .tableau.cartes-mobile td::before { content: attr(data-label); font-weight: 700; color: var(--gris); font-size: .85rem; }
  .tableau.cartes-mobile td.actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .tableau.cartes-mobile td.actions::before { width: 100%; }
}
/* Menus reliés : tiroir dans l'en-tête fixe (défile si long), sous-menus en boutons */
.tiroir { max-height: calc(100vh - 70px); overflow-y: auto; }
.tiroir .ouvre { width: 100%; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #fff; cursor: pointer; text-align: left; }
.tiroir .ouvre[aria-expanded="true"]::after { transform: rotate(180deg); }
@media (min-width: 1024px) { .tiroir { display: none !important; } }
.nav .deroulant a small { display: none; }
/* Chat : panneau fermé par l'attribut hidden ; bulle retirée tant qu'elle couvrirait une commande (audit I2) */
.chat-bulle { transition: opacity .2s, transform .2s, visibility .2s; }
.chat-bulle.chat-replie { opacity: 0; visibility: hidden; pointer-events: none; } /* sans déplacement : la mesure du chevauchement reste stable */
.chat-fermer { border: 0; background: none; cursor: pointer; width: 44px; height: 44px; right: 8px; top: 10px; }
/* Pause / reprise : icône lecture */
.i-lecture { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.est-en-pause { background: var(--bleu) !important; color: #fff !important; }
/* Zones tactiles d'au moins 44 × 44 px sans agrandir le bandeau ni la légende (audit F3) */
.annonce-pause, .diapo-cmd button { position: relative; }
.annonce-pause::after { content: ""; position: absolute; inset: -6px 0; }
.diapo-cmd button::after { content: ""; position: absolute; inset: -6px; }
/* Galerie pilotée : arrêts sur cartes entières (ordinateur, tablette) ; fondu enchaîné carte sur carte (téléphone) */
.galerie.pilotee .galerie-piste { animation: none !important; }
.galerie.fondu .galerie-piste { display: grid; width: auto; transform: none !important; }
.galerie.fondu .galerie-piste > .carte { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.galerie.fondu [data-copie] { display: none !important; }
.galerie.fondu .carte.sortante { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.galerie.fondu .carte.active { opacity: 1; visibility: visible; z-index: 2; transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) { .galerie.fondu .carte.active { transition: none; } }
/* Diaporama piloté : fondu de la nouvelle photo au-dessus de la précédente, indicateur synchronisé */
.hero-visuel.pilote .diapo img { animation: none !important; opacity: 0; transition: opacity 1s ease; }
.hero-visuel.pilote .diapo img.sortante { opacity: 1; z-index: 1; transition: none; }
.hero-visuel.pilote .diapo img.on { opacity: 1; z-index: 2; }
.points i { transition: width .3s, background .3s; }
/* Annonce pilotée : texte lisible dès l'arrivée, défilement par script */
.annonce.pilotee .annonce-texte { padding-left: 0; animation: none !important; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .annonce.pilotee .annonce-texte { transform: none !important; } }
/* Lisibilité : petites étiquettes et mentions agrandies (audit F3) */
.chip, .etat { font-size: .86rem; }
.mention { font-size: .88rem; }
.carte-titre span { font-size: .84rem; }
/* Rappel : cadrage moins serré (photo paysage) ; condensé sur téléphone (audit F2) */
.rappel-photo img { object-position: 50% 40%; }
@media (max-width: 640px) {
  .rappel-photo img { aspect-ratio: 16 / 7; }
  .rappel-photo figcaption { font-size: .7rem; }
  .bloc-toutes .grille.g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bloc-toutes .carte-relief { min-height: 96px; padding: 12px 8px; gap: 6px; }
  .bloc-toutes .carte-relief strong { font-size: 1rem; }
  .bloc-toutes .carte-relief .lien-fleche { display: none; }
  .methode-carte { padding: 12px 14px; } .methode-carte p { font-size: .95rem; }
  .section { padding: 36px 0; }
}
@media (min-width: 1024px) { .rappel-photo img { object-position: 62% 40%; } }
/* Corrections du contrôle mission 7 : grilles sans débordement, textes longs, zone tactile des boutons ronds */
.grille { grid-template-columns: minmax(0, 1fr); }
.boite.session .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 8px 16px; }
.recap-liste div { grid-template-columns: 110px minmax(0, 1fr); } .recap-liste dd { overflow-wrap: anywhere; }
.annonce-fenetre { min-width: 0; }
.rond { position: relative; } .rond::after { content: ""; position: absolute; inset: -3px; }
/* Contrastes relevés par le contrôle mission 7 (WCAG AA) */
.poignee { color: #5f6b80 !important; }
.chapitre.non-demontre .num { background: #5f6b80; }
.etoiles span { color: #6e4c00; }
.ecran-simule .chat-panneau { width: min(370px, calc(100% - 28px)); }
/* Complément mission 7 : bibliothèque niveau → matière → chapitre → documents */
.liste-matieres { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.matiere { display: grid; gap: 6px; align-content: start; background: #fff; border: 1px solid var(--trait); border-top: 5px solid var(--bleu); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--encre); }
.matiere strong { font: 800 1.25rem var(--titre); color: var(--bleu); }
.matiere .etat-matiere { font-size: .92rem; color: var(--gris); }
.matiere.vide { border-top-color: #5f6b80; background: #fafbfd; }
.vide-etat { text-align: center; padding: 32px 20px; border: 2px dashed var(--trait); border-radius: 18px; background: #fafbfd; }
.vide-etat p { color: var(--gris); margin: 10px auto 16px; max-width: 560px; }
.doc.indisponible { border-style: dashed; background: #fafbfd; }
.doc .indispo { font-weight: 800; font-size: .84rem; color: #5c4300; background: #fff4d6; border-radius: 999px; padding: 3px 10px; }
#niveaux-biblio .tableau table { min-width: 0; }
/* Complément mission 7 : navigation des ressources (cycle → niveau → matière), thèmes, ressources ordonnées */
.nav .deroulant.cycles { overflow: visible; }
.nav .deroulant .sous-groupe { position: relative; }
.nav .deroulant .ouvre-sous { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 44px; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.nav .deroulant .ouvre-sous::after { content: "▸"; color: var(--vert-clair); margin-left: 12px; }
.nav .deroulant .ouvre-sous:hover, .nav .deroulant .ouvre-sous[aria-expanded="true"] { background: rgba(255,255,255,.14); }
.nav .deroulant .sous-menu { display: none; position: absolute; top: -8px; left: 100%; min-width: 200px; padding: 8px; margin-left: 0; background: var(--bleu-fonce); border-radius: 14px; box-shadow: 0 16px 34px rgba(11,32,64,.35); z-index: 5; }
.nav .deroulant .sous-menu::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; } /* pont : le pointeur passe sans fermer */
.nav .deroulant .sous-groupe.a-gauche .sous-menu { left: auto; right: 100%; }
.nav .deroulant .sous-groupe.a-gauche .sous-menu::before { left: auto; right: -10px; }
.nav .deroulant .sous-groupe.ouvert .sous-menu { display: block; }
.nav .deroulant .a-part { border-top: 1px solid rgba(255,255,255,.2); margin-top: 4px; }
.tiroir .ouvre-cycle { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: #fff; cursor: pointer; text-align: left; }
.tiroir .ouvre-cycle::after { content: "▸"; color: var(--vert-clair); }
.tiroir .ouvre-cycle[aria-expanded="true"]::after { content: "▾"; }
.tiroir .sous-niveaux { padding: 0 0 6px 14px; border-left: 2px solid rgba(255,255,255,.25); }
.biblio-tete { padding-bottom: 20px; }
.retour-lien { margin: 0 0 8px; } .retour-lien a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.carte-cycle { background: #fff; border: 1px solid var(--trait); border-top: 5px solid var(--vert); border-radius: 18px; padding: 20px; }
.carte-cycle h2 a { text-decoration: none; }
.niveaux-liens { list-style: none; padding: 0; margin: 10px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.niveaux-liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--trait); border-radius: 999px; font-weight: 700; text-decoration: none; }
.chapitre .badge-nouveau, .chapitre .verrou { grid-column: 2; }
.badge-nouveau { justify-self: start; font-size: .8rem; font-weight: 800; color: #1f5a28; background: #e6f4e4; border-radius: 999px; padding: 3px 10px; margin-top: 4px; }
.chapitre.public .verrou { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .9rem; }
.chapitre .docs .chip { margin-right: 4px; }
.doc-tete { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-type { display: inline-block; font-size: .8rem; font-weight: 800; color: var(--nuit); background: var(--bleu-pale); border-radius: 999px; padding: 3px 10px; }
.ressource-gestion { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border: 1px solid var(--trait); border-radius: 12px; padding: 10px 12px; margin-top: 8px; background: #fff; }
.ressource-gestion.masque { background: #fafbfd; }
.ressource-gestion .ordre { font-weight: 800; color: var(--gris); min-width: 1.4em; }
.ressource-gestion b { flex: 1 1 180px; } .ressource-gestion .mention { flex: 1 1 220px; } .ressource-gestion .btn-row { margin-left: auto; }
.theme-titre { margin: 16px 0 8px; font: 800 1.05rem var(--titre); color: var(--nuit); }
.demo-ligne { border-style: dashed; background: #fffdf6; }
.apercu-btn { display: inline-flex; align-items: center; margin: 2px 4px; padding: 4px 12px; border: 1.5px solid var(--trait); border-radius: 999px; font-weight: 700; font-size: .85rem; background: #fff; }
.onglets-cycle { flex-basis: 100%; font-weight: 800; color: var(--nuit); font-size: .9rem; margin-top: 4px; }
/* Enrichissement : textes des onglets de la page « Prestations » du site actuel */
.section.origine { border-top: 1px solid var(--trait); }
.origine-texte { max-width: 860px; }
.origine-texte h3 { margin-top: 18px; font-size: 1.15rem; }
.origine-texte p { margin-top: 10px; }
.origine-texte .liste-coche { margin-top: 8px; }
/* Retour en un clic vers « Toutes nos prestations » (demande de Mohamed) */
.retour-bas { padding-top: 8px; padding-bottom: 28px; text-align: center; }
/* Bouton flottant « Retour aux prestations » : coin bas gauche (la bulle de chat occupe le coin bas droit) */
.retour-flottant { position: fixed; left: 14px; bottom: 14px; z-index: 39; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--bleu); color: #fff; font-weight: 800; font-size: .92rem; text-decoration: none; box-shadow: 0 6px 18px rgba(22,43,111,.28); }
.retour-flottant:hover { background: var(--nuit); }
.retour-flottant.flottant-cache { opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 1024px) { .retour-flottant { left: 20px; bottom: 20px; min-height: 56px; font-size: 1rem; } }
/* Mission 8 — couche de revue (N3) : sources et commentaires de revue masqués dans la version familles */
.note-revue { display: none; }
html.revue .note-revue { display: inline-block; background: #fff4d6; color: #5c4300; border: 1px dashed #c9a227; border-radius: 8px; padding: 4px 10px; font-size: .78rem; font-weight: 600; }
html.revue .note-revue::before { content: "Revue · "; font-weight: 800; }
html.revue figcaption.note-revue { position: absolute; left: 12px; bottom: 10px; }
.maquette-tag .tag-revue { font: inherit; line-height: 1; color: #ffd166; background: transparent; border: 0; box-shadow: inset 0 0 0 1px #ffd166; border-radius: 999px; padding: 0 8px; margin: 0 4px; cursor: pointer; vertical-align: baseline; }
.maquette-tag .tag-revue:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Scénario local de démonstration (N4) */
.scenario { margin: 6px 0 16px; padding: 10px 14px; border: 1px dashed var(--bleu); border-radius: 12px; background: var(--bleu-pale); font-size: .92rem; }
/* Photo du rappel (N6) : photo entière sur ordinateur, au lieu d'un très gros plan étiré sur toute la hauteur du formulaire */
@media (min-width: 1024px) {
  .rappel-photo { display: flex; align-items: center; background: transparent; padding: 28px 0 28px 28px; }
  .rappel-photo img { height: auto; min-height: 0; aspect-ratio: 16 / 10; object-position: 60% 40%; border-radius: 16px; }
}
.recap-actions .btn { white-space: normal; text-align: left; max-width: 100%; height: auto; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
/* ==== Mission 9 : équilibre visuel des pages ================================================================ */
/* Relief de référence (cartes « Toutes les prestations » de l'accueil) : ombre douce, angles arrondis, accent Delta,
   visible au repos et sur téléphone, sans rotation ni animation */
.relief { background: #fff; border: 1px solid var(--trait); border-left: 5px solid var(--bleu); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(11,32,64,.05), 0 6px 16px rgba(11,32,64,.07); }
.relief.vert { border-left-color: #4d7656; }
a.relief { transition: box-shadow .2s; }
a.relief:hover { box-shadow: 0 2px 4px rgba(11,32,64,.08), 0 14px 28px rgba(11,32,64,.14); border-top-color: #b9c6dc; border-right-color: #b9c6dc; border-bottom-color: #b9c6dc; }
a.relief:focus-visible { outline: 3px solid #e09a00; outline-offset: 3px; }
/* Cartes-liens en relief : titres lisibles, lien de détail aligné en bas de chaque carte */
.boite-lien.relief { display: flex; flex-direction: column; gap: 6px; }
.boite-lien.relief h3 { font-size: 1.3rem; }
.boite-lien.relief .lien-fleche { margin-top: auto; padding-top: 10px; font-weight: 800; color: var(--bleu); }
.extrait { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }

/* Introductions des pages : photo de la hauteur du bloc texte complet (lien de retour, titre, présentation, boutons,
   raccourcis), alignée en haut ; marges resserrées avant la première section */
.page-tete { padding: 12px 0 18px; }
.page-tete-grille { gap: 14px; }
.page-tete h1 { margin-top: 2px; }
.page-tete .intro { margin-top: 6px; }
.page-tete .hero-cta { margin-top: 12px; }
.page-tete .sommaire { margin-top: 10px; }
.page-tete .retour-lien { margin-bottom: 0; }
.page-tete-photo { margin: 0; position: relative; }
.page-tete-photo img { aspect-ratio: 5 / 2; border-radius: 14px; } /* téléphone : bande basse, sous les boutons */
@media (min-width: 641px) and (max-width: 1023px) { .page-tete-photo img { aspect-ratio: 3 / 1; } }
@media (min-width: 1024px) {
  .page-tete { padding: 14px 0 22px; }
  .page-tete-grille { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; gap: 40px; }
  .page-tete-photo { min-height: 230px; }
  .page-tete-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 18px; box-shadow: var(--ombre); }
}
.modele > .page-tete + .section, .modele > .page-tete + section { padding-top: 26px; }
@media (min-width: 1024px) { .modele > .page-tete + .section { padding-top: 34px; } }
.modele .titre-section { margin-bottom: 18px; }
.modele .titre-section h2::after { margin-top: 10px; }
.modele .titre-section + .grille, .modele .titre-section + .grille-large { margin-top: 0; }
/* Surtitres de section dans les pages : pastille lisible (« Le principe », « Public et niveau »…) */
.kicker { font-size: .95rem; }
.modele :not(.titre-section) > .kicker { display: inline-block; padding: 4px 14px; border-radius: 999px; background: #e9f2ea; color: #2f5a37; letter-spacing: .06em; margin-bottom: 8px; }

/* Accueil : accroche centrée sur deux lignes équilibrées ; pastille Meaux, arguments et boutons centrés dans la colonne */
.hero-texte { text-align: center; }
.hero h1 { text-wrap: balance; margin-left: auto; margin-right: auto; }
.hero .precision, .hero .hero-cta { justify-content: center; margin-left: auto; margin-right: auto; }

/* Prestations : groupes rapprochés de leurs cartes */
.groupe-recap { padding: 30px 0; }
@media (min-width: 1024px) { .groupe-recap { padding: 34px 0; } }

/* Sessions : nom, état, dates, mention fictive, détails, puis demande alignée en bas */
.boite.session { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.boite.session > .btn { margin-top: auto; }
.boite.session .chips { margin: 2px 0 10px; }
.boite.session h3 { margin-bottom: 0; }
.session-etat { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; border-radius: 999px; padding: 3px 12px; }
.session-etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.session-etat.ouvert { background: #e6f4e4; color: #1f5a28; }
.session-etat.attente { background: #fff4d6; color: #5c4300; }
.boite.session .session-dates { margin-top: 2px; font-size: 1.05rem; }
.boite.session .fictif { margin: 0; }

/* Demande : introduction centrée au-dessus de l'ensemble, « Inscriptions » visible, blocs remontés */
.page-tete-courte { padding: 10px 0 4px; }
.page-tete-courte .wrap { text-align: center; }
.page-tete-courte .intro { margin-left: auto; margin-right: auto; }
.surtitre-marque { padding: 4px 16px; border-radius: 999px; background: #e9f2ea; color: #2f5a37; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; }
.surtitre-marque::before { display: none; }
.modele > .page-tete-courte + .section { padding-top: 18px; }
.accueil-rappel { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--trait); }
.accueil-rappel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 40%; border-radius: 12px; }
.accueil-rappel p { margin-top: 10px; color: var(--gris); }
.accueil-rappel b { color: var(--nuit); }
@media (max-width: 1023px) {
  /* Téléphone et tablette : pour « Être rappelé », les champs d'abord ; l'accueil et le récapitulatif suivent */
  [data-type-actif="rappel"] .recap { order: 2; }
  .accueil-rappel { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; }
  .accueil-rappel p { margin-top: 0; }
}
/* Contact : coordonnées en relief */
.contact-cote .relief h3 { font-size: 1.3rem; }
.groupe-recap .carte-relief { justify-content: flex-start; }
.groupe-recap .carte-relief .vignette { aspect-ratio: 16 / 9; margin: 4px 0 0; }
.groupe-recap .carte-relief .lien-fleche { margin-top: auto; }
/* Fil d'Ariane aligné sur le contenu (la règle .fil remettait à zéro la marge latérale de .wrap) */
.wrap.fil { padding-left: var(--g); padding-right: var(--g); }
.session-etat { display: inline-block; line-height: 1.35; padding: 4px 12px; border-radius: 12px; }
.session-etat::before { display: inline-block; vertical-align: middle; margin: -2px 7px 0 0; }
.modele > .page-tete + .section > .wrap > .grille:first-child { margin-top: 0; }
@media (min-width: 1024px) { .page-tete-photo { min-height: 200px; } }
.sessions-note { text-align: center; margin: 14px auto 0; max-width: 68ch; }
.modele > .page-tete + .section > .wrap.grille, .modele > .page-tete-courte + .section > .wrap.grille { margin-top: 0; }
/* ==== Mission 9, complément : gestion des annonces et des sessions (démonstration locale) ===================== */
.gestion-tuiles h2 { font-size: 1.35rem; }
.gestion-grille { display: grid; gap: 20px; margin-top: 16px; }
@media (min-width: 1024px) { .gestion-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; } }
.titre-bloc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.titre-bloc h2 { font-size: 1.5rem; }
.liste-annonces { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.annonce-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; background: #fff; border: 1px solid var(--trait); border-left: 5px solid #8a96ab; border-radius: 12px; padding: 10px 12px; }
.annonce-ligne.choisie { border-left-color: var(--bleu); box-shadow: 0 1px 2px rgba(11,32,64,.05), 0 6px 16px rgba(11,32,64,.07); }
.annonce-ligne > div { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.resultat-public { margin-top: 6px; }
.cases-ligne { border: 0; padding: 0; margin: 0; min-width: 0; }
.cases-ligne legend { font-weight: 700; font-size: .88rem; color: var(--nuit); margin-bottom: 4px; padding: 0; }
.cases-ligne label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 18px; font-weight: 600; color: var(--encre); font-size: 1rem; }
.cases-ligne input { width: 20px; height: 20px; min-height: 0; }
.couleur-ligne { display: flex; gap: 8px; }
.couleur-ligne input[type="color"] { flex: none; width: 56px; padding: 4px; cursor: pointer; }
.champ input[type="range"] { padding: 0; border: 0; min-height: 44px; accent-color: var(--bleu); }
.champ output { font-weight: 800; color: var(--bleu); }
.alerte-contraste { background: #fdeceb; color: #8a1c12; border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.apercu-cadre { border: 1px dashed #8a96ab; border-radius: 12px; padding: 10px 12px; background: #fff; }
.annonce.apercu { border-radius: 10px; }
.annonce.apercu .annonce-in { padding: 6px 10px; }
.annonce.apercu .annonce-fenetre { white-space: normal; -webkit-mask-image: none; mask-image: none; }
.annonce.apercu .annonce-texte { padding-left: 0; animation: none; display: inline; }
.apercu-pause { opacity: .7; }
.annonce-sep { margin: 0 10px; color: var(--bleu); }
.session-etat.ferme { background: #fdeceb; color: #8a1c12; }
.avertissements .avert { margin-top: 6px; color: #5c4300; background: #fff4d6; border-radius: 8px; padding: 6px 10px; font-size: .92rem; }
.annonce.apercu .annonce-texte { color: var(--nuit); } /* même rendu que le bandeau public (la règle .boite p le grisait) */
.champ input[type="date"]:focus, .champ input[type="datetime-local"]:focus, .champ input[type="color"]:focus, .champ input[type="range"]:focus { outline: 3px solid #e09a00; outline-offset: 2px; }
.champ input[type="date"]:focus-within, .champ input[type="datetime-local"]:focus-within { outline: 3px solid #e09a00; outline-offset: 2px; }
.gestion-grille > * { min-width: 0; }
/* ==== Mission 9, complément : « À propos » en quatre blocs titrés, alignés sur le conteneur de la page ======== */
.a-propos-blocs { display: grid; gap: 18px; }
@media (min-width: 1024px) { .a-propos-blocs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.a-propos-bloc { padding: 22px 24px; }
.a-propos-bloc h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 4px; }
.a-propos-bloc p { margin-top: 10px; font-size: 1.08rem; line-height: 1.7; color: var(--encre); max-width: 70ch; }
.a-propos-bloc .depuis { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: #e9f2ea; color: #2f5a37; font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 640px) { .a-propos-bloc { padding: 18px 16px; } }
/* Deux colonnes indépendantes : pas de vide imposé par l'alignement en rangées ; la dernière carte de chaque colonne
   s'allonge pour que les deux colonnes finissent au même niveau. Un seul ordre partout (lecture, clavier, téléphone) :
   histoire, méthode, accompagnement, ancrage local. */
.a-propos-col { display: contents; }
@media (min-width: 1024px) {
  .a-propos-blocs { align-items: stretch; }
  .a-propos-col { display: flex; flex-direction: column; gap: 22px; }
  .a-propos-col .a-propos-bloc:last-child { flex: 1; }
}


/* ==== Partie 2 : compléments de production (mission 10) =========================================================
   Seuls ajouts au rendu validé : éléments rendus réels (listes de « Trouver ma formule », saisie du chat, retours des
   formulaires), lien d'évitement, et mise en page des articles du blog (complément demandé). */

/* Lien d'évitement : invisible jusqu'au premier Tab */
.lien-evitement { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--bleu); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.lien-evitement:focus { top: 8px; }

/* Champ piège anti-robots : hors écran, ignoré par les lecteurs d'écran */
.champ-piege { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Trouver ma formule : vraies listes, même apparence que les listes dessinées des maquettes */
.finder-select { width: 100%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23002c84' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
  color: var(--encre); border: 1.5px solid #8a96ab; border-radius: 10px; min-height: 50px; padding: 0 40px 0 14px; font: inherit; font-weight: 600; -webkit-appearance: none; appearance: none; cursor: pointer; }
.finder-select:focus-visible { outline: 3px solid var(--ciel); outline-offset: 2px; }
.finder-invite { margin-top: 14px; }

/* Sessions : état d'attente et repli (service indisponible ou aucune session publiée) */
.sessions-repli { text-align: left; }
.sessions-repli h3 { margin-bottom: 6px; }
.sessions-repli .btn-row { margin-top: 12px; }
[data-sessions-zone][aria-busy="true"] .sessions-repli { opacity: .75; }

/* Chat : fil de discussion réel, réponses guidées, saisie et envoi */
.chat-corps { overflow-y: auto; overscroll-behavior: contain; }
.chat-corps .visiteur { align-self: flex-end; background: #5570b5; color: #fff; border-radius: 20px; padding: 10px 16px; font-size: .92rem; line-height: 1.4; max-width: 80%; overflow-wrap: anywhere; }
.visiteur-note { align-self: flex-end; font-size: .74rem; color: #2b3f80; margin-top: -4px; }
.chat-corps .bot { overflow-wrap: anywhere; }
.chat-corps .bot a { color: #162b6f; font-weight: 700; text-decoration: underline; }
.chat-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-choix-btn { background: #fff; color: #162b6f; border: 1.5px solid #162b6f; border-radius: 999px; padding: 6px 14px; font: 600 .86rem/1.2 "Segoe UI", system-ui, sans-serif; min-height: 40px; cursor: pointer; }
.chat-choix-btn:hover { background: #eef1fb; }
.chat-choix-btn:focus-visible, .chat-envoyer:focus-visible { outline: 3px solid #162b6f; outline-offset: 2px; }
.chat-saisie { padding: 10px 14px 10px 20px; }
.chat-saisie textarea { flex: 1; min-width: 0; border: 0; resize: none; font: inherit; font-size: .95rem; color: #162b6f; background: transparent; min-height: 40px; max-height: 120px; padding: 9px 0; }
.chat-saisie textarea::placeholder { color: #4d5470; opacity: 1; }
.chat-saisie textarea:focus-visible { outline: 2px solid #5570b5; outline-offset: 2px; border-radius: 6px; }
.chat-envoyer { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #5570b5; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-envoyer:disabled { opacity: .6; cursor: wait; }
.chat-saisie .chat-envoyer svg { width: 20px; height: 20px; color: #fff; }
.chat-mention { font-size: .72rem; line-height: 1.35; color: #4d5470; padding: 0 20px 10px; }
.chat-mention a { color: #162b6f; }
.chat-erreur { background: #fdeceb; color: #8a1c12; font-size: .84rem; padding: 8px 20px; }
.chat-tete small.absent::before { background: #8a93ad; }
.chat-bulle.a-nouveau .pastille-notif { display: block; }

/* ==== Articles du blog (complément mission 10) ====
   Un seul axe : titre, introduction, date, paragraphes, intertitres et listes partent du bord gauche du conteneur de la
   page (même axe que l'en-tête). Colonne de lecture de 40rem (environ 70 caractères par ligne), texte aligné à gauche.
   Ordinateur : l'encadré « Autres articles » occupe la colonne de droite, au lieu d'un grand espace vide ; téléphone :
   il reste après le texte, dans l'ordre de lecture. */
.page-article .section .wrap.article { max-width: calc(clamp(1152px, 84vw, 1760px) + 2 * var(--g)); font-size: 1.06rem; line-height: 1.75; text-align: left; hyphens: manual; }
.page-article .article > * { max-width: 40rem; }
.page-article .article > p { margin: 0 0 1em; color: var(--encre); }
.page-article .article > .article-date { margin: 0 0 1.4em; color: var(--gris); font-size: .95rem; }
.page-article .article-inter { font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.3; color: var(--nuit); margin: 1.2em 0 .45em; }
.page-article .article ul, .page-article .article ol { margin: 0 0 1em; padding-left: 1.3em; }
.page-article .article li { margin: .3em 0; }
.page-article .article > img, .page-article .article > figure { display: block; max-width: 40rem; width: 100%; height: auto; margin: 1.4em 0; border-radius: 14px; }
.page-article .article > .boite { margin-top: 2em; font-size: 1rem; line-height: 1.6; }
.page-article .article > .boite h3 { margin-bottom: .4em; }
@media (min-width: 1024px) {
  .page-article .section .wrap.article { display: grid; grid-template-columns: minmax(0, 40rem) minmax(240px, 22rem); column-gap: clamp(32px, 5vw, 96px); align-items: start; }
  .page-article .article > * { grid-column: 1; }
  .page-article .article > .boite { grid-column: 2; grid-row: 1 / span 60; margin-top: 0; position: sticky; top: calc(var(--entete-h, 120px) + 16px); }
}
@media (max-width: 640px) {
  .page-article .section .wrap.article { font-size: 1rem; line-height: 1.7; }
  .page-article .article-inter { margin-top: 1.5em; }
}

/* Mission 12 : avis Google affichés en direct (Places API), dans les emplacements validés (accueil, Avis des familles).
   Carte blanche à relief léger, comme les autres cartes du site ; texte toujours lisible sur téléphone. */
.avis-google { display: grid; gap: 14px; }
.avis-repli p { margin: 0 0 10px; color: var(--encre); }
.avis-attente { display: flex; align-items: center; gap: 8px; }
.avis-contenu { display: grid; gap: 14px; }
.avis-synthese { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font-size: 1.05rem; color: var(--nuit); font-weight: 700; }
.avis-note-globale { font-size: 1.9rem; font-weight: 800; color: var(--nuit); line-height: 1; }
.avis-etoiles { color: #8a5a00; letter-spacing: 1px; }
.avis-total { font-weight: 600; color: var(--encre); }
.avis-tri { margin: 0; }
.avis-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.avis-carte { background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(11,32,64,.05), 0 6px 16px rgba(11,32,64,.06); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.avis-entete-carte { display: flex; align-items: center; gap: 10px; }
.avis-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bleu-pale); }
.avis-qui { display: grid; gap: 2px; min-width: 0; }
.avis-qui a, .avis-qui > span:first-child { font-weight: 700; color: var(--nuit); overflow-wrap: anywhere; }
.avis-dates { margin: 0; font-size: .86rem; color: var(--gris); }
.avis-texte { margin: 0; color: var(--encre); line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.avis-texte.replie { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.avis-suite, .avis-traduction .lien-bouton { justify-self: start; align-self: flex-start; min-height: 32px; }
.avis-traduction, .avis-original { margin: 0; font-size: .9rem; color: var(--gris); }
.avis-lien { margin: auto 0 0; font-size: .92rem; }
.avis-attribution { margin: 0; font-size: .82rem; color: var(--gris); display: flex; flex-wrap: wrap; align-items: center; }
/* Logo officiel : taille d'origine (18 px de haut, entre 16 et 19), jamais étiré ; espace libre 10 px (gauche, droite, haut), 5 px (bas) */
.logo-google-maps { box-sizing: content-box; width: 98px; height: 18px; max-width: none; flex: none; padding: 10px 10px 5px; }
.avis-lien { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; }
.avis-signaler { color: var(--gris); }
.avis-essai { margin: 0; padding: 10px 14px; border: 2px dashed var(--bleu); border-radius: 12px; background: #fff; color: var(--nuit); }
.avis-zone:has([data-avis-google]) { border: 0; padding: 0; background: none; }
.avis-initiale { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--bleu); }
.avis-google .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==== Mission 18 : bandeau de consentement « présence en direct » ====
   Discret, posé en bas à gauche, sans bloquer la lecture ; Accepter et Refuser strictement identiques (même taille, même
   style, même contraste). Sur téléphone, il laisse la place de la bulle du chat à droite. Disparaît dès qu'un choix est
   fait ; le choix se change sur la page Confidentialité. */
.bandeau-presence { position: fixed; left: 20px; bottom: 20px; z-index: 39; width: min(440px, calc(100vw - 40px)); background: #fff; color: var(--encre); border: 1px solid var(--trait); border-radius: 16px; box-shadow: 0 8px 28px rgba(22,43,111,.22); padding: 14px 16px; font-size: .88rem; line-height: 1.45; }
.bandeau-presence p { margin: 0 0 10px; }
.bandeau-presence strong { color: var(--nuit); }
.bandeau-presence a { color: #162b6f; }
.bandeau-presence-choix { display: flex; gap: 10px; }
.bandeau-presence .btn-choix { flex: 1 1 0; min-height: 44px; border-radius: 999px; border: 1.5px solid #162b6f; background: #fff; color: #162b6f; font: 600 .92rem/1.2 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.bandeau-presence .btn-choix:hover { background: #eef1fb; }
.bandeau-presence .btn-choix:focus-visible { outline: 3px solid #162b6f; outline-offset: 2px; }
@media (max-width: 760px) {
  .bandeau-presence { left: 10px; bottom: 10px; width: auto; right: 70px; padding: 12px 14px; font-size: .84rem; }
}


/* ==== Mission 19 : corrections du chat (audit du 14/10/2026) ====
   Badge numérique réel (aucun point sans message), cibles de 44 px, champ à 16 px (pas de zoom iOS), feuille à 85 % de la
   hauteur visible sur téléphone avec zones sûres, état de chaque message (envoi, enregistré, échec + réessayer). */
.chat-bulle .pastille-notif { display: none; position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #c0262d; color: #fff; border: 2px solid #fff; font: 700 .75rem/18px "Segoe UI", system-ui, sans-serif; text-align: center; }
.chat-bulle.a-nouveau .pastille-notif:not([hidden]) { display: block; }
.chat-choix-btn { min-height: 44px; }
.chat-tete strong:focus { outline: none; }
.chat-tete strong:focus-visible { outline: 3px solid #162b6f; outline-offset: 2px; }
.chat-saisie textarea { font-size: 16px; }
.visiteur-note.envoi { color: #4d5470; }
.visiteur-note.enregistre { color: #1f5c2a; }
.visiteur-note.echec { color: #8a1c12; font-weight: 600; }
.chat-reessayer { margin-left: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #8a1c12; background: #fff; color: #8a1c12; font: 600 .85rem/1 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.bot-note.conseiller { color: #162b6f; font-weight: 700; }
.bot.conseiller { background: #fff; border: 2px solid #162b6f; }
.chat-rappel-choix { font-size: .85rem; color: #162b6f; }
@media (max-width: 760px) {
  .chat-panneau { left: 0; right: 0; bottom: 0; width: 100%; height: 85vh; height: 85dvh; max-height: none; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .chat-bulle { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .chat-corps { padding: 12px 14px; }
}
@media (max-width: 760px) and (max-height: 480px) { .chat-panneau { height: 100vh; height: 100dvh; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .chat-bulle, .chat-panneau { transition: none !important; animation: none !important; } }

/* Mission 19 : légende du diaporama sans annotation ; les commandes restent alignées à droite */
.legende > .diapo-cmd:only-child { margin-left: auto; }

/* Mission 19 : lien discret vers les mentions légales, sous la grille du pied de page */
.pied-legal { padding-top: 14px; padding-bottom: 18px; font-size: 12px; text-align: center; }
.pied-legal a { color: inherit; opacity: .6; text-decoration: none; }
.pied-legal a:hover, .pied-legal a:focus-visible { opacity: 1; text-decoration: underline; }
