/* =========================================================
   SOS Lumbago France — thème élégant
   Rouge profond · blanc · beige poudré · typographie fine
   ========================================================= */
:root {
  --rouge: #c0403a;
  --rouge-fonce: #9e302b;
  --rouge-pale: #f8e9e7;
  --beige: #f5f0ea;
  --beige-fonce: #ebe3d9;
  --noir: #1b1b1b;
  --texte: #2a2a2a;
  --gris: #6f6a64;
  --bord: #e7e1d9;
  --blanc: #ffffff;
  --vert: #3d7a5a;
  --rayon: 4px;
  --ombre: 0 10px 30px rgba(40, 25, 15, .07);
  --police: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-titre: "Outfit", "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police);
  font-weight: 400;
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rouge); text-underline-offset: 3px; }
a:hover { color: var(--rouge-fonce); }
img { max-width: 100%; }
::selection { background: var(--rouge-pale); }

.conteneur { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- Bandeau supérieur rouge ---------- */
.bandeau-promo {
  background: var(--rouge);
  color: #fff;
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 9px 16px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.bandeau-promo strong { font-weight: 600; }
.bandeau-promo .info {
  width: 21px; height: 21px; border: 1.5px solid #fff; border-radius: 50%;
  display: inline-grid; place-items: center; color: #fff; text-decoration: none;
  font-size: .75rem; font-weight: 600; flex: none; font-family: Georgia, serif; font-style: italic;
}
.bandeau-promo .info:hover { background: #fff; color: var(--rouge); }

/* ---------- En-tête ---------- */
.entete { background: var(--blanc); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--bord); }
.entete-haut {
  display: flex; align-items: center; gap: 40px; padding: 18px 0 10px;
}
.logo {
  display: flex; flex-direction: column; text-decoration: none; color: var(--rouge); line-height: 1;
}
.logo-nom {
  font-weight: 300; font-size: 2.15rem; letter-spacing: .04em; white-space: nowrap;
}
.logo-nom b { font-weight: 500; }
.logo-sous {
  font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gris);
  margin-top: 6px; padding-left: 2px;
}
.icones { display: flex; gap: 26px; align-items: center; }
.icones a {
  color: var(--noir); display: grid; place-items: center; position: relative; text-decoration: none;
}
.icones svg { width: 27px; height: 27px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.icones a:hover { color: var(--rouge); }
.icones a .pastille {
  position: absolute; top: -7px; right: -9px; background: var(--rouge); color: #fff;
  font-size: .62rem; font-weight: 600; border-radius: 999px; min-width: 18px; height: 18px;
  display: grid; place-items: center; padding: 0 4px;
}
.icones a[data-titre]:hover::after {
  content: attr(data-titre); position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  background: var(--noir); color: #fff; font-size: .72rem; padding: 4px 9px; white-space: nowrap;
  letter-spacing: .03em; border-radius: 2px;
}
.recherche-entete {
  margin-left: auto; flex: 0 1 460px; background: var(--beige); display: flex; align-items: center;
  gap: 14px; padding: 0 20px; height: 62px;
}
.recherche-entete svg { width: 23px; height: 23px; stroke: var(--noir); fill: none; stroke-width: 1.5; flex: none; }
.recherche-entete input {
  border: 0; background: transparent; padding: 0; height: 100%; font-size: 1.05rem; outline: none; color: var(--noir);
}
.recherche-entete input::placeholder { color: var(--noir); opacity: .9; }

.nav-principale {
  display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; padding: 14px 0 16px;
}
.nav-principale::-webkit-scrollbar { display: none; }
.nav-principale a {
  text-decoration: none; color: var(--noir); text-transform: uppercase; font-size: .9rem;
  letter-spacing: .06em; white-space: nowrap; position: relative; padding-bottom: 4px;
}
.nav-principale a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--rouge); transition: right .25s ease;
}
.nav-principale a:hover::after, .nav-principale a.actif::after { right: 0; }
.nav-principale a.actif { color: var(--rouge); }
.nav-principale a.accent { color: var(--rouge); font-weight: 500; margin-left: auto; }

/* ---------- Bandeau titre ---------- */
.bandeau {
  background: var(--beige);
  padding: 64px 0 76px;
  position: relative; overflow: hidden;
}
.bandeau::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 1px solid rgba(192, 64, 58, .18); border-radius: 50%;
}
.bandeau::before {
  content: ""; position: absolute; right: 40px; bottom: -180px; width: 300px; height: 300px;
  border: 1px solid rgba(192, 64, 58, .12); border-radius: 50%;
}
.surtitre {
  display: inline-block; color: var(--rouge); text-transform: uppercase; letter-spacing: .3em;
  font-size: .78rem; font-weight: 500; margin-bottom: 16px;
}
.bandeau h1 {
  font-family: var(--police-titre); font-weight: 400; color: var(--noir);
  margin: 0 0 14px; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; max-width: 820px;
}
.bandeau h1 em { color: var(--rouge); font-style: normal; font-weight: 400; }
.bandeau p { margin: 0; font-size: 1.12rem; color: var(--gris); max-width: 640px; font-weight: 300; }

/* ---------- Recherche ---------- */
.recherche {
  background: var(--blanc); box-shadow: var(--ombre); border: 1px solid var(--bord);
  padding: 26px 28px; margin-top: -38px; position: relative; z-index: 10;
}
.recherche form { display: flex; gap: 12px; flex-wrap: wrap; }
.recherche input[type="text"] { flex: 1 1 280px; background: var(--beige); border-color: var(--beige); }
.recherche-info { margin: 12px 0 0; color: var(--gris); font-size: .95rem; }
.recherche-info strong { color: var(--rouge); font-weight: 500; }

input, select, textarea {
  font: inherit; padding: 13px 15px; border: 1px solid var(--bord); border-radius: var(--rayon);
  background: #fff; color: var(--texte); width: 100%; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(192, 64, 58, .12); background: #fff;
}
select {
  appearance: none; padding-right: 34px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231b1b1b' fill='none' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 13px center;
}

.btn {
  font: inherit; font-weight: 500; font-size: .88rem; text-transform: uppercase; letter-spacing: .12em;
  border: 1px solid var(--rouge); border-radius: var(--rayon); padding: 13px 26px; cursor: pointer;
  background: var(--rouge); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center; transition: all .2s;
}
.btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); color: #fff; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.btn-secondaire { background: transparent; color: var(--noir); border-color: var(--noir); }
.btn-secondaire:hover { background: var(--noir); border-color: var(--noir); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Titres de section ---------- */
.titre-section { text-align: center; margin: 70px 0 34px; }
.titre-section h2 {
  font-family: var(--police-titre); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0; color: var(--noir);
}
.titre-section p { color: var(--gris); margin: 6px 0 0; font-weight: 300; }
.filet { width: 48px; height: 1.5px; background: var(--rouge); margin: 16px auto 0; }

/* ---------- Carte + liste ---------- */
.zone-carte {
  display: grid; grid-template-columns: 1fr 420px; gap: 24px; margin: 0 0 30px;
}
#carte { height: 640px; border: 1px solid var(--bord); background: var(--beige); }
.liste { background: var(--blanc); border: 1px solid var(--bord); display: flex; flex-direction: column; max-height: 640px; }
.liste-entete { padding: 20px 20px 16px; border-bottom: 1px solid var(--bord); }
.liste-entete h2 {
  margin: 0 0 12px; font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em;
}
.liste-entete .filtres { display: flex; gap: 8px; }
.liste-entete select { font-size: .9rem; padding: 10px 12px; padding-right: 30px; }
.liste-resultats { overflow-y: auto; padding: 4px 0; flex: 1; }
.compteur { color: var(--gris); font-size: .86rem; margin-top: 10px; }

.centre {
  padding: 18px 20px; border-bottom: 1px solid var(--bord); cursor: pointer;
  transition: background .2s; border-left: 3px solid transparent;
}
.centre:hover { background: #fcfaf7; }
.centre.selectionne { background: var(--beige); border-left-color: var(--rouge); }
.centre h3 { margin: 0 0 3px; font-size: 1.04rem; font-weight: 500; color: var(--noir); }
.centre .adresse { color: var(--gris); font-size: .9rem; margin: 0; }
.centre .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.badge {
  font-size: .7rem; font-weight: 500; padding: 3px 9px; border: 1px solid var(--bord);
  color: var(--gris); text-transform: uppercase; letter-spacing: .06em; background: #fff;
}
.badge.distance { border-color: var(--noir); color: var(--noir); }
.badge.plusproche { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.badge.exemple { background: var(--beige); border-color: var(--beige-fonce); color: #8a6d4a; }
.centre .liens { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; margin-top: 4px; }
.centre .liens a {
  color: var(--noir); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid transparent;
}
.centre .liens a:hover { color: var(--rouge); border-bottom-color: var(--rouge); }
.centre .liens a.principal { color: var(--rouge); font-weight: 500; }
.centre .liens svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.vide { padding: 36px 24px; text-align: center; color: var(--gris); }

/* ---------- Atouts (accueil) ---------- */
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--bord); margin-bottom: 70px; }
.atout { padding: 34px 28px; text-align: center; border-right: 1px solid var(--bord); }
.atout:last-child { border-right: 0; }
.atout svg { width: 38px; height: 38px; stroke: var(--rouge); fill: none; stroke-width: 1.2; margin-bottom: 12px; }
.atout h3 { margin: 0 0 6px; font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; }
.atout p { margin: 0; color: var(--gris); font-size: .94rem; font-weight: 300; }

/* ---------- Pages de contenu ---------- */
.page { padding: 56px 0 80px; }
.page-grille { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.carte-blanche { background: var(--blanc); }
.carte-blanche h2 {
  font-family: var(--police-titre); font-weight: 500; color: var(--noir); font-size: 1.9rem;
  margin: 2em 0 .5em; line-height: 1.2; scroll-margin-top: 190px;
}
.carte-blanche h2::after { content: ""; display: block; width: 36px; height: 1.5px; background: var(--rouge); margin-top: 12px; }
.carte-blanche h2:first-child { margin-top: 0; }
.carte-blanche p, .carte-blanche li { font-weight: 300; font-size: 1.04rem; }
.carte-blanche strong { font-weight: 500; }
.carte-blanche ul { padding-left: 20px; }
.carte-blanche li { margin-bottom: 4px; }
.carte-blanche li::marker { color: var(--rouge); }

.encadre { background: var(--beige); padding: 22px 26px; margin: 24px 0; border-left: 2px solid var(--rouge); }
.encadre p:last-child, .encadre ul:last-child { margin-bottom: 0; }
.encadre.alerte { background: var(--rouge-pale); border-left-color: var(--rouge); }
.encadre.alerte > strong:first-child { color: var(--rouge-fonce); }
.encadre.succes { background: #eef4f0; border-left-color: var(--vert); }

.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 26px 0; border: 1px solid var(--bord); }
.etape { padding: 24px 22px; border-right: 1px solid var(--bord); }
.etape:last-child { border-right: 0; }
.etape .num {
  font-family: var(--police-titre); font-size: 2.4rem; color: var(--rouge); line-height: 1; margin-bottom: 10px;
}
.etape h3 { margin: 0 0 6px; font-size: .84rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
.etape p { margin: 0; font-size: .93rem !important; color: var(--gris); }

.aside { position: sticky; top: 200px; display: grid; gap: 18px; }
.aside .carte-blanche { padding: 28px; background: var(--beige); }
.aside h3 {
  margin: 0 0 10px; font-size: .84rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em;
}
.aside p { font-size: .95rem; color: var(--gris); }
.aside .encadre { margin: 0; }

details { border-bottom: 1px solid var(--bord); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--bord); }
details summary {
  cursor: pointer; font-weight: 400; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--rouge); font-size: 1.4rem; line-height: 1; font-weight: 300; }
details[open] summary::after { content: "–"; }
details[open] summary { margin-bottom: 8px; color: var(--rouge); }
details p { margin: 0; color: var(--gris); }

/* ---------- Formulaire ---------- */
.formulaire fieldset { border: 0; border-top: 1px solid var(--bord); padding: 28px 0 8px; margin: 0; }
.formulaire fieldset:first-of-type { border-top: 0; padding-top: 0; }
.formulaire legend {
  font-family: var(--police-titre); font-size: 1.6rem; color: var(--noir); padding: 0 0 14px; font-weight: 500;
}
.champ { margin-bottom: 20px; }
.champ label {
  display: block; font-weight: 500; margin-bottom: 7px; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--noir);
}
.champ .aide { font-size: .84rem; color: var(--gris); margin-top: 6px; font-weight: 300; }
.requis { color: var(--rouge); }
.ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 20px; }
.cases label, .case-unique {
  display: flex; gap: 10px; align-items: flex-start; font-weight: 300; text-transform: none;
  letter-spacing: 0; font-size: .98rem !important; color: var(--texte) !important; cursor: pointer;
}
.cases input, .case-unique input { width: 17px; height: 17px; margin-top: 4px; accent-color: var(--rouge); flex: none; }
.suggestions {
  border: 1px solid var(--bord); margin-top: 4px; background: #fff; box-shadow: var(--ombre);
  max-height: 240px; overflow-y: auto; display: none; position: absolute; left: 0; right: 0; z-index: 500;
}
.suggestions.visible { display: block; }
.suggestions button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 11px 15px; font: inherit; cursor: pointer; border-bottom: 1px solid var(--bord);
}
.suggestions button:hover { background: var(--beige); }
.geo-ok { color: var(--vert); font-size: .88rem; font-weight: 500; }
#apercu-carte { height: 230px; margin-top: 10px; border: 1px solid var(--bord); display: none; }
.erreur { color: var(--rouge); font-size: .86rem; margin-top: 6px; }
.message-envoi { display: none; }
.message-envoi.visible { display: block; }

/* ---------- Pied de page ---------- */
.pied { background: var(--beige); color: var(--texte); padding: 56px 0 28px; font-size: .94rem; border-top: 3px solid var(--rouge); }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.pied h4 { margin: 0 0 14px; font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; }
.pied p { margin: 6px 0; font-weight: 300; color: var(--gris); }
.pied a { color: var(--noir); text-decoration: none; }
.pied a:hover { color: var(--rouge); }
.pied .logo-nom { font-size: 1.6rem; color: var(--rouge); }
.pied-bas { border-top: 1px solid var(--beige-fonce); margin-top: 40px; padding-top: 20px; font-size: .8rem; color: var(--gris); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Popup Leaflet ---------- */
.leaflet-popup-content-wrapper { border-radius: 2px; box-shadow: var(--ombre); }
.leaflet-container { font-family: var(--police); }
.leaflet-container a.leaflet-popup-close-button { color: var(--noir); }
.popup h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 500; }
.popup p { margin: 3px 0 !important; color: var(--gris); }
.popup a { color: var(--rouge); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .entete-haut { gap: 24px; }
  .recherche-entete { flex-basis: 340px; }
  .nav-principale { gap: 32px; }
}
@media (max-width: 960px) {
  .zone-carte, .page-grille { grid-template-columns: 1fr; }
  #carte { height: 440px; }
  .liste { max-height: none; }
  .liste-resultats { max-height: 540px; }
  .aside { position: static; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .entete-haut { flex-wrap: wrap; }
  .recherche-entete { order: 3; flex: 1 1 100%; margin-left: 0; height: 52px; }
  .icones { margin-left: auto; }
  .entete { position: static; }
  .atout { border-right: 0; border-bottom: 1px solid var(--bord); }
}
@media (max-width: 560px) {
  .bandeau-promo { font-size: .8rem; }
  .logo-nom { font-size: 1.6rem; }
  .icones { gap: 18px; }
  .icones svg { width: 24px; height: 24px; }
  .nav-principale { gap: 26px; font-size: .9rem; }
  .bandeau { padding: 44px 0 64px; }
  .recherche { padding: 18px; }
  .recherche form .btn { flex: 1 1 auto; }
  .pied-grille { grid-template-columns: 1fr; }
  .etape { border-right: 0; border-bottom: 1px solid var(--bord); }
}

/* ---------- Schéma cercle vicieux ---------- */
.cercle-vicieux { margin: 30px 0; background: var(--beige); padding: 30px 24px 24px; text-align: center; }
.cercle-vicieux svg { width: 100%; max-width: 420px; height: auto; }
.cercle-vicieux figcaption { max-width: 520px; margin: 12px auto 0; color: var(--gris); font-weight: 300; }

/* ---------- Section vidéo (accueil) ---------- */
.video {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center;
  background: var(--beige); padding: 56px; margin: 70px 0 0;
}
.video-texte h2 {
  font-family: var(--police-titre); font-weight: 400; font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0; line-height: 1.1; color: var(--noir);
}
.video-texte h2 em { color: var(--rouge); font-style: normal; font-weight: 400; }
.video-texte p { color: var(--gris); font-weight: 300; font-size: 1.04rem; }
.video-texte .btn { margin-top: 10px; }
.video-cadre { position: relative; aspect-ratio: 16 / 9; background: var(--noir); box-shadow: var(--ombre); }
.video-cadre::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--rouge); z-index: 0;
}
.video-cadre iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 960px) {
  .video { grid-template-columns: 1fr; padding: 32px 20px; gap: 36px; }
  .video-cadre::before { display: none; }
}

/* Étapes dans la colonne latérale */
.aside .etape { border: 0; border-bottom: 1px solid var(--beige-fonce); padding: 14px 0; display: flex; gap: 16px; align-items: baseline; }
.aside .etape:last-child { border-bottom: 0; padding-bottom: 0; }
.aside .etape .num { font-size: 1.8rem; margin: 0; flex: none; width: 22px; }
.aside .etape p { margin: 0; }

/* ---------- Typographie moderne ---------- */
.logo-nom { font-family: var(--police-titre); font-weight: 300; letter-spacing: .05em; }
.logo-nom b { font-weight: 600; }
.bandeau h1, .titre-section h2, .video-texte h2 { font-weight: 300; letter-spacing: -.015em; }
.carte-blanche h2 { font-weight: 400; letter-spacing: -.01em; font-size: 1.75rem; }
.formulaire legend, .dialog-entete h2, .admin-connexion h1, .admin-titre h1 { font-weight: 400; letter-spacing: -.01em; }
.etape .num { font-weight: 300; }

/* ---------- Pied de page : contacts ---------- */
.pied-contact strong { color: var(--noir); font-weight: 500; }
.pied-contact p { line-height: 1.45; margin-bottom: 12px; }
.pied-mail { color: var(--rouge) !important; font-weight: 500; }

/* ---------- Drapeaux rouges ---------- */
.drapeaux { border: 2px solid var(--rouge); padding: 26px 28px; margin: 20px 0 10px; background: #fff; }
.drapeaux-intro { margin-top: 0; }
.drapeaux ul { columns: 2; column-gap: 36px; padding-left: 0; list-style: none; margin: 18px 0; }
.drapeaux li { break-inside: avoid; padding-left: 22px; position: relative; margin-bottom: 10px; font-size: .97rem !important; }
.drapeaux li::before { content: "→"; position: absolute; left: 0; color: var(--rouge); font-weight: 600; }
.drapeaux li strong { color: var(--rouge-fonce); }
.drapeaux-urgence { background: var(--rouge-pale); padding: 12px 16px; margin-bottom: 0; }
.slogan {
  font-family: var(--police-titre); font-weight: 300 !important; font-size: clamp(1.7rem, 3.4vw, 2.4rem) !important;
  text-align: center; margin: 56px 0 10px; color: var(--noir); letter-spacing: -.01em;
}
.slogan em { color: var(--rouge); font-style: normal; font-weight: 500; }
@media (max-width: 700px) { .drapeaux ul { columns: 1; } .drapeaux { padding: 20px 18px; } }

/* ---------- Logo agrandi ---------- */
.entete .logo-nom { font-size: 3.1rem; }
.entete .logo-sous { font-size: .74rem; margin-top: 8px; }
@media (max-width: 1100px) { .entete .logo-nom { font-size: 2.6rem; } }
@media (max-width: 560px)  { .entete .logo-nom { font-size: 2.1rem; } .entete .logo-sous { font-size: .62rem; } }

/* ---------- Galerie campagne « le mouvement » ---------- */
.galerie-campagne { margin: 30px 0 10px; }
.galerie-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.galerie-grille a { display: block; overflow: hidden; box-shadow: var(--ombre); }
.galerie-grille img { display: block; width: 100%; height: auto; aspect-ratio: 18 / 25; object-fit: cover; object-position: center top; transition: transform .35s ease; }
.galerie-grille a:hover img { transform: scale(1.03); }
.galerie-campagne figcaption { margin-top: 12px; font-size: .84rem; color: var(--gris); text-align: center; font-weight: 300; }
@media (max-width: 760px) { .galerie-grille { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Vidéo dans une page de contenu ---------- */
.video-article { margin: 34px 0 10px; }
.video-article .video-cadre::before { display: none; }
.video-article figcaption { margin-top: 10px; font-size: .86rem; color: var(--gris); text-align: center; font-weight: 300; }

/* ---------- Page « Le lumbago » ---------- */
.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.chiffre { background: var(--beige); padding: 22px 24px; display: flex; gap: 18px; align-items: center; }
.chiffre span { font-family: var(--police-titre); font-weight: 300; font-size: 3rem; color: var(--rouge); line-height: 1; flex: none; }
.chiffre p { margin: 0; font-size: .95rem !important; }
.chaine { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px 0; counter-reset: none; }
.chaine li { background: #fff; border: 1px solid var(--rouge); color: var(--rouge-fonce); padding: 7px 14px; font-size: .9rem !important;
  margin: 0 26px 0 0 !important; position: relative; }
.chaine li::after { content: "→"; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--rouge); }
.chaine li:last-child::after { content: "↺"; }
.chaine small { color: var(--gris); }
.exercices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.exercice { border: 1px solid var(--bord); padding: 18px 20px; }
.exercice h3 { margin: 0 0 6px; font-size: .84rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--rouge); }
.exercice p { margin: 0; font-size: .95rem !important; color: var(--texte); }
.source { margin-top: 40px; padding: 16px 20px; border-top: 1px solid var(--bord); font-size: .88rem; color: var(--gris); background: #fcfaf7; }
@media (max-width: 700px) { .chiffres, .exercices { grid-template-columns: 1fr; } }

/* ---------- Page Recommandations HAS ---------- */
.messages-cles { background: var(--beige); padding: 26px 30px; border-top: 3px solid var(--rouge); }
.messages-cles h2 { margin-top: 0 !important; }
.messages-cles li { margin-bottom: 8px; }
.grade { display: inline-block; font-family: var(--police); font-size: .68rem !important; font-weight: 600; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 3px; vertical-align: 1px; white-space: nowrap; }
.grade-a { background: #dcefd9; color: #2f6a2a; } .grade-b { background: #fbf1c7; color: #7a5d00; }
.grade-c { background: #f9dde3; color: #8d2a3d; } .grade-ae { background: #dbe8f6; color: #24507e; }
.legende-grades { font-size: .86rem !important; color: var(--gris); margin: 16px 0 0; }
.drapeaux-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.drapeau { border: 1px solid var(--bord); border-top: 4px solid; padding: 18px 20px; background: #fff; }
.drapeau h3 { margin: 0; font-size: .86rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.drapeau > p { margin: 4px 0 10px; font-size: .86rem !important; color: var(--gris); }
.drapeau ul { margin: 0; padding-left: 18px; } .drapeau li { font-size: .92rem !important; margin-bottom: 5px; }
.drapeau-rouge { border-top-color: #d33a2c; } .drapeau-rouge h3 { color: #d33a2c; }
.drapeau-jaune { border-top-color: #e2b300; } .drapeau-jaune h3 { color: #a07f00; }
.drapeau-bleu { border-top-color: #2a5ea8; } .drapeau-bleu h3 { color: #2a5ea8; }
.drapeau-noir { border-top-color: #1b1b1b; } .drapeau-noir h3 { color: #1b1b1b; }
.note-source { font-size: .86rem !important; color: var(--gris); font-style: italic; }
.tableau-wrap { overflow-x: auto; margin: 18px 0; }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.tableau th, .tableau td { border: 1px solid var(--bord); padding: 10px 12px; text-align: left; vertical-align: top; }
.tableau thead th { background: var(--rouge); color: #fff; font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.tableau tbody th { background: var(--beige); color: var(--rouge-fonce); font-weight: 500; white-space: nowrap; }
@media (max-width: 700px) { .drapeaux-grille { grid-template-columns: 1fr; } .messages-cles { padding: 20px 18px; } }

.drapeaux-grille.une-colonne { grid-template-columns: 1fr; }
.drapeaux-grille.une-colonne .drapeau ul { columns: 2; column-gap: 32px; }
@media (max-width: 700px) { .drapeaux-grille.une-colonne .drapeau ul { columns: 1; } }

/* ---------- Affiches réparties (petit format) ---------- */
.affiche { float: right; width: 170px; margin: 6px 0 16px 28px; }
.affiche a { display: block; box-shadow: var(--ombre); overflow: hidden; }
.affiche img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.affiche a:hover img { transform: scale(1.04); }
.affiche figcaption { font-size: .7rem; color: var(--gris); margin-top: 6px; text-align: center; letter-spacing: .02em; }
.carte-blanche h2 { clear: both; }
.carte-blanche > h2 + .affiche + p, .carte-blanche > h2 + .affiche + ul { margin-top: 0; }
.slogan, .etapes, .chiffres, .exercices, .drapeaux, .source, .encadre, .messages-cles, .tableau-wrap { clear: both; }
.bandeau-mouvement {
  display: grid; grid-template-columns: 190px 1fr; gap: 44px; align-items: center;
  background: var(--beige); padding: 40px 48px; margin: 70px 0 0;
}
.bandeau-mouvement .affiche-accueil { float: none; width: 100%; margin: 0; }
.bandeau-mouvement h2 { font-family: var(--police-titre); font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; line-height: 1.15; letter-spacing: -.015em; }
.bandeau-mouvement h2 em { color: var(--rouge); font-style: normal; font-weight: 400; }
.bandeau-mouvement p { color: var(--gris); font-weight: 300; max-width: 560px; }
@media (max-width: 700px) {
  .affiche { width: 120px; margin-left: 16px; }
  .bandeau-mouvement { grid-template-columns: 110px 1fr; gap: 20px; padding: 24px 18px; align-items: start; }
}

/* La carte ne doit jamais passer au-dessus de l'en-tête fixe */
#carte, #apercu-carte { isolation: isolate; position: relative; z-index: 0; }

/* Présentation du centre (liste et carte) */
.desc-centre { margin: 8px 0 6px; font-size: .88rem; color: var(--texte); line-height: 1.5; white-space: pre-line; }
.popup-desc { font-size: .82rem; line-height: 1.45; }

/* ---------- Carte de France stylisée ---------- */
.carte-bloc { position: relative; border: 1px solid var(--bord); background: #fff; height: 640px; display: flex; flex-direction: column; }
.carte-vues { display: flex; gap: 0; border-bottom: 1px solid var(--bord); flex: none; }
.carte-vues button {
  font: inherit; background: none; border: 0; padding: 12px 18px; cursor: pointer; color: var(--gris);
  text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.carte-vues button.actif { color: var(--rouge); border-bottom-color: var(--rouge); }
.carte-stylisee { position: relative; flex: 1; min-height: 0; background: linear-gradient(180deg, #fff 0%, #fbf8f4 100%); }
.carte-stylisee[hidden], .carte-detaillee[hidden] { display: none !important; }
#carte.carte-detaillee { flex: 1; height: auto; border: 0; min-height: 0; }
.cs-svg { display: block; width: 100%; height: 100%; }
.cs-terre { fill: #efe7dd; stroke: #cdbca9; stroke-width: .8; stroke-linejoin: round; }
.cs-motif { fill: url(#cs-points); stroke: none; pointer-events: none; }
.cs-cadre { fill: #fff; stroke: var(--bord); }
.cs-etiquette { font-family: var(--police); font-size: 8.5px; letter-spacing: .14em; fill: var(--gris); }
.cs-centre { cursor: pointer; outline: none; }
.cs-point { fill: var(--rouge); stroke: #fff; stroke-width: 2; transition: r .2s; }
.cs-halo { fill: var(--rouge); opacity: 0; transition: opacity .2s; }
.cs-centre:hover .cs-halo, .cs-centre:focus .cs-halo { opacity: .18; }
.cs-centre:hover .cs-point, .cs-centre:focus .cs-point, .cs-actif .cs-point { r: 7.5; }
.cs-actif .cs-halo { opacity: .22; animation: cs-pouls 1.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.cs-proche .cs-point { stroke: var(--noir); stroke-width: 2.2; }
@keyframes cs-pouls { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.6); opacity: 0; } }
.cs-moi-point { fill: var(--noir); stroke: #fff; stroke-width: 2; }
.cs-moi-halo { fill: var(--noir); opacity: .14; }
.cs-bulle {
  position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: var(--noir); color: #fff;
  padding: 7px 12px; font-size: .8rem; white-space: nowrap; pointer-events: none; z-index: 5; box-shadow: var(--ombre);
  display: flex; flex-direction: column; line-height: 1.35;
}
.cs-bulle span { color: #cfc6bc; font-size: .74rem; }
.cs-bulle::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--noir); transform: translateX(-50%) rotate(45deg); }
.carte-legende { position: absolute; left: 16px; top: 54px; display: flex; flex-direction: column; gap: 6px; font-size: .74rem; color: var(--gris);
  background: rgba(255,255,255,.85); padding: 8px 10px; pointer-events: none; }
.carte-legende span { display: flex; align-items: center; gap: 8px; }
.carte-legende i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--bord); }
.leg-centre { background: var(--rouge); } .leg-moi { background: var(--noir); }
.carte-bloc:has(.carte-detaillee:not([hidden])) .carte-legende { display: none; }
@media (max-width: 960px) { .carte-bloc { height: 560px; } }
@media (max-width: 560px) { .carte-bloc { height: 520px; } .carte-legende { top: 50px; left: 8px; } }
.cs-bulle[hidden] { display: none; }

/* ---------- Section vidéos ---------- */
.videos { clear: both; background: var(--beige); margin: 44px 0 10px; padding: 34px 32px 30px; position: relative; overflow: hidden; }
.videos::before { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border: 1px solid rgba(192,64,58,.18); border-radius: 50%; }
.videos-entete { position: relative; margin-bottom: 22px; }
.videos-entete h2 { margin: 0 !important; }
.videos-entete h2::after { margin-top: 12px; }
.videos-entete p { margin: 12px 0 0; color: var(--gris); }
.videos-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.video-principale { grid-column: 1 / -1; }
.video-carte { margin: 0; }
.video-facade, .video-carte iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--noir);
  box-shadow: 0 14px 34px rgba(60, 35, 20, .16);
}
.video-facade { position: relative; cursor: pointer; overflow: hidden; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; filter: saturate(.9); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,27,27,0) 45%, rgba(27,27,27,.45) 100%); }
.video-facade:hover img, .video-facade:focus-visible img { transform: scale(1.04); filter: saturate(1); }
.video-lecture {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 64px; height: 64px; border-radius: 50%; background: var(--rouge); display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(255,255,255,.28); transition: transform .25s, box-shadow .25s;
}
.video-principale .video-lecture { width: 84px; height: 84px; }
.video-lecture svg { width: 42%; height: 42%; fill: #fff; margin-left: 6%; }
.video-facade:hover .video-lecture { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 12px rgba(255,255,255,.32); }
.video-facade:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.video-carte figcaption { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.video-num { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rouge); }
.video-num::before { content: ""; display: inline-block; width: 22px; height: 1.5px; background: var(--rouge); vertical-align: middle; margin-right: 10px; }
@media (max-width: 700px) {
  .videos { padding: 24px 16px 20px; margin-left: -4px; margin-right: -4px; }
  .videos-grille { grid-template-columns: 1fr; gap: 16px; }
  .video-lecture { width: 54px; height: 54px; } .video-principale .video-lecture { width: 64px; height: 64px; }
}

/* Vidéos en format réduit : 3 vignettes côte à côte */
.videos-grille { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-principale { grid-column: auto; }
.video-lecture, .video-principale .video-lecture { width: 48px; height: 48px; box-shadow: 0 0 0 6px rgba(255,255,255,.28); }
.video-facade, .video-carte iframe { box-shadow: 0 10px 24px rgba(60, 35, 20, .14); }
.videos { padding: 28px 28px 24px; }
@media (max-width: 860px) { .videos-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .videos-grille { grid-template-columns: 1fr; } }
