/* Max Auto 85 — CSS public, transcrit valeur par valeur depuis la maquette
   Claude Design « v1 · dominante claire » (_design-source/Max Auto 85.dc.html).
   Échelle d'espacement base 4 : 4·8·12·16·24·32·48·64. Rayon 0 partout sauf 2px champs.
   Couleurs fixes : encre #121316, rouge #D6152A, jaune #F5C518 (repères, jamais un CTA),
   gris #5A5C61, texte courant #3A3C40. Thèmes (fond) : sable (défaut) / blanc. */

:root,
:root[data-theme="sable"] {
  --bg: #EDE7DB;
  --bg2: #DDD5C6;
  --hatch: #CFC6B4;
  --rule: #BCB3A1;
  --rule-soft: #C6BDAB;
  --desk: #C8C1B2;
  --muted-dark: #5A5C61;
}
:root[data-theme="blanc"] {
  --bg: #F7F6F3;
  --bg2: #E6E4DF;
  --hatch: #DAD7D0;
  --rule: #C9C6BE;
  --rule-soft: #D9D6CE;
  --desk: #DEDCD6;
  --muted-dark: #5A5C61;
}
:root {
  --ink: #121316;
  --rouge: #D6152A;
  --jaune: #F5C518;
  --gris: #5A5C61;
  --texte: #3A3C40;
  --titres: 'Archivo Narrow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --courant: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  font-family: var(--courant);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .legal a { text-decoration: underline; }
h1, h2, h3 { margin: 0; }

.frame {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg);
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  min-height: 100vh;
}
@media (max-width: 1283px) {
  .frame { border-left: 0; border-right: 0; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg);
  font-family: var(--titres); font-weight: 700; text-transform: uppercase;
  padding: 12px 16px;
}
.skip-link:focus { left: 0; }

*:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }

/* ─── Header — logo fourni en bannière + infos horaires/tel à droite ── */
.site-header {
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.brand { display: block; background: #0B0C0E; border-bottom: 2px solid var(--ink); }
.brand-img { display: block; width: 100%; height: auto; }
.header-infos { display: none; }
.header-nav-row {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 16px; padding: 8px 16px; min-height: 52px;
}
.site-nav {
  display: none;
  font-family: var(--titres); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.site-nav a.is-active { border-bottom: 3px solid var(--rouge); }
.burger {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: 0; padding: 10px; margin: -10px;
  cursor: pointer;
}
.burger span { width: 26px; height: 2px; background: var(--ink); display: block; }

@media (min-width: 901px) {
  /* Bannière collée à gauche, bloc état + horaires + téléphone à droite */
  .header-top { display: grid; grid-template-columns: auto 1fr; border-bottom: 2px solid var(--ink); }
  .brand { border-bottom: 0; border-right: 2px solid var(--ink); }
  .brand-img { width: auto; height: 240px; }
  .header-infos { display: flex; flex-direction: column; }
  .hi-etat {
    display: flex; align-items: stretch; border-bottom: 1px solid var(--ink);
    flex: 1;
  }
  .hi-ico {
    width: 56px; flex: none; background: var(--ink); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700;
  }
  .hi-txt {
    padding: 12px 16px; display: flex; flex-direction: column;
    justify-content: center; gap: 4px;
  }
  .hi-lbl {
    font-family: var(--titres); font-weight: 700; font-size: 34px;
    text-transform: uppercase; line-height: 1;
  }
  .hi-detail { font-family: var(--mono); font-size: 14px; color: var(--texte); }
  .header-infos--bientot .hi-etat {
    background: repeating-linear-gradient(45deg, var(--jaune) 0 10px, var(--ink) 10px 20px);
  }
  .header-infos--bientot .hi-ico { color: var(--jaune); }
  .header-infos--bientot .hi-txt { background: var(--bg); margin: 4px 4px 4px 0; flex: 1; }
  /* Fermé : pas de pictogramme ✕ (ressemble à un bouton « fermer ») */
  .header-infos--ferme .hi-etat { background: var(--bg2); }
  .header-infos--ferme .hi-ico { display: none; }
  .header-infos--ferme .hi-lbl { color: var(--texte); }
  .header-infos--exception .hi-etat { background: var(--ink); }
  .header-infos--exception .hi-ico { background: var(--ink); color: var(--jaune); }
  .header-infos--exception .hi-lbl { color: var(--bg); }
  .header-infos--exception .hi-detail { color: var(--jaune); }
  .hi-horaires {
    font-family: var(--mono); font-size: 13px; color: var(--texte);
    padding: 12px 16px; line-height: 1.6; border-bottom: 1px solid var(--ink);
    flex: none;
  }
  .hi-tel {
    flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--rouge); color: #FFFFFF; min-height: 64px;
    font-family: var(--titres); font-weight: 700; font-size: 26px; letter-spacing: 0.04em;
  }
  .header-nav-row { justify-content: flex-start; padding: 12px 32px; }
  .site-nav { display: flex; gap: 28px; position: static; }
  .burger { display: none; }
}
@media (min-width: 1200px) {
  .brand-img { height: 300px; }
}

/* Nav mobile dépliée (écran absent de la maquette — liberté admise) */
@media (max-width: 900px) {
  .site-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 2px solid var(--ink);
    z-index: 50;
  }
  .site-nav.is-open a {
    padding: 14px 16px; border-top: 1px solid var(--rule);
    min-height: 48px; display: flex; align-items: center;
  }
  .site-nav.is-open a.is-active { border-bottom: 0; color: var(--rouge); }
}

.bandeau {
  background: var(--jaune); color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 10px 16px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
}

.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 901px) {
  .mobile-only { display: none; }
  .desktop-only { display: block; }
}

/* ─── Indicateur d'ouverture — 4 états ───────────────────────────── */
.indicator { border-bottom: 2px solid var(--ink); }
.indicator-row {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--ink);
}
.indicator-ico {
  width: 52px; flex: none;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.indicator-txt { padding: 10px 14px; flex: 1; }
.indicator-libelle {
  font-family: var(--titres); font-weight: 700; font-size: 28px;
  text-transform: uppercase; line-height: 1;
}
.indicator-detail {
  font-family: var(--mono); font-size: 13px; margin-top: 3px; color: var(--texte);
}
/* État 2 · ferme bientôt : hachures jaune/encre, contenu détouré */
.indicator--bientot .indicator-row {
  background: repeating-linear-gradient(45deg, var(--jaune) 0 10px, var(--ink) 10px 20px);
}
.indicator--bientot .indicator-ico { color: var(--jaune); }
.indicator--bientot .indicator-txt { background: var(--bg); margin: 4px 4px 4px 0; }
/* État 3 · fermé — sans pictogramme ✕ (écart maquette voulu par l'utilisateur) */
.indicator--ferme .indicator-row { background: var(--bg2); }
.indicator--ferme .indicator-ico { display: none; }
.indicator--ferme .indicator-libelle { color: var(--texte); }
/* État 4 · fermeture exceptionnelle */
.indicator--exception .indicator-row { background: var(--ink); }
.indicator--exception .indicator-ico { background: var(--ink); color: var(--jaune); }
.indicator--exception .indicator-libelle { color: var(--bg); }
.indicator--exception .indicator-detail { color: var(--jaune); }

.indicator-tel {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--rouge); color: #FFFFFF;
  min-height: 68px;
  font-family: var(--titres); font-weight: 700; font-size: 26px; letter-spacing: 0.04em;
}
.indicator-tel--labelled { flex-direction: column; gap: 2px; min-height: 84px; }
.indicator-tel-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.indicator-tel--labelled .indicator-tel-num { font-size: 30px; }

/* ─── Hero (accueil) ─────────────────────────────────────────────── */
/* Mobile (maquette) : photo façade AVANT le bloc titre, pas de boutons
   (le bandeau téléphone rouge est juste au-dessus). */
.hero { border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; }
.hero-img { order: -1; }
.hero .hero-actions { display: none; }
.hero-txt { padding: 16px; }
.hero-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--gris); margin: 0; text-transform: uppercase;
}
.hero-title {
  font-family: var(--titres); font-weight: 700; font-size: 30px;
  text-transform: uppercase; line-height: 1.05; letter-spacing: 0.01em;
  margin: 10px 0 0;
}
.hero-title .accent { color: var(--rouge); }
.hero-desc { font-size: 16px; line-height: 1.55; color: var(--texte); margin: 10px 0 0; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.hero-actions--page { padding: 0 16px 32px; margin-top: 0; }
.hero-img { position: relative; border-bottom: 2px solid var(--ink); }

@media (min-width: 901px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-img { order: 0; border-bottom: 0; }
  .hero .hero-actions { display: flex; }
  .hero-txt {
    padding: 56px 40px; border-right: 2px solid var(--ink);
    display: flex; flex-direction: column; justify-content: center;
  }
  .hero-title { font-size: 68px; line-height: 0.98; margin: 16px 0 0; letter-spacing: 0; }
  .hero-desc { font-size: 19px; margin: 20px 0 0; max-width: 44ch; }
  .hero-actions { margin-top: 28px; }
  .hero-img { min-height: 460px; }
  .hero-img .placeholder-hatch { aspect-ratio: auto; min-height: 460px; height: 100%; }
}

.placeholder-hatch {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(135deg, var(--bg2) 0 10px, var(--hatch) 10px 20px);
  display: flex; align-items: center; justify-content: center;
}
.placeholder-label {
  font-family: var(--mono); font-size: 11px; color: var(--gris); letter-spacing: 0.1em;
  text-transform: uppercase;
}
.media-cartouche {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 10px; padding: 4px 8px; letter-spacing: 0.06em;
}
.media-cartouche--right { left: auto; right: 0; }
@media (min-width: 901px) {
  .media-cartouche { font-size: 11px; padding: 6px 10px; }
}

/* ─── Boutons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--titres); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; text-align: center; cursor: pointer;
}
.btn--primary {
  background: var(--rouge); color: #FFFFFF;
  font-size: 20px; padding: 16px 24px; min-height: 56px; border: 0;
}
.btn--secondary {
  background: var(--ink); color: var(--bg);
  font-size: 17px; padding: 14px; min-height: 48px; border: 0;
}
.btn--tertiary {
  background: transparent; color: var(--ink);
  font-size: 17px; padding: 14px; min-height: 48px;
  border: 2px solid var(--ink);
}
.btn--block { display: flex; width: 100%; }

/* ─── Réassurance ────────────────────────────────────────────────── */
.reassurance {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 2px solid var(--ink);
}
.reassurance li {
  padding: 12px 8px; text-align: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  line-height: 1.4; text-transform: uppercase; letter-spacing: 0.04em;
}
.reassurance li + li { border-left: 1px solid var(--ink); }
@media (min-width: 901px) {
  .reassurance li {
    padding: 20px 32px; text-align: left; font-size: 13px; letter-spacing: 0.08em;
  }
}

/* ─── Blocs à en-tête filet ──────────────────────────────────────── */
.bloc { padding: 16px 16px 24px; }
.bloc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--ink); padding-bottom: 6px;
}
.bloc-head h2 {
  font-family: var(--titres); font-weight: 700; font-size: 20px; text-transform: uppercase;
}
.tout-voir {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--rouge);
}
@media (min-width: 901px) {
  .bloc { padding: 40px; }
  .bloc-head { padding-bottom: 10px; margin-bottom: 24px; }
  .bloc-head h2 { font-size: 32px; }
  .tout-voir { font-size: 12px; letter-spacing: 0.1em; }
}

/* Prestations : liste 4 entrées (mobile) / grille 4×2 (desktop) */
.prestations-liste { list-style: none; margin: 0; padding: 0; }
.prestations-liste a {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.prestations-liste li:last-child a { border-bottom: 0; }
.prestations-liste .num { font-family: var(--mono); font-size: 11px; color: var(--gris); width: 24px; }
.prestations-liste .lbl {
  font-family: var(--titres); font-weight: 700; font-size: 19px;
  text-transform: uppercase; flex: 1;
}
.prestations-liste .fleche { color: var(--rouge); font-size: 18px; }

.prestations-grid {
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
}
.prestation-cell { display: block; padding: 20px; border-right: 1px solid var(--rule); }
.prestation-cell:hover { background: var(--bg2); }
.prestation-cell:nth-child(4n) { border-right: 0; }
.prestation-cell:nth-child(n+5) { border-top: 1px solid var(--rule); }
.prestation-num { font-family: var(--mono); font-size: 11px; color: var(--gris); }
.prestation-num--prep { color: var(--rouge); }
.prestation-titre {
  font-family: var(--titres); font-weight: 700; font-size: 21px;
  text-transform: uppercase; margin-top: 6px;
}
.prestation-texte { font-size: 15px; line-height: 1.5; color: var(--texte); margin: 6px 0 0; }
@media (min-width: 901px) { .prestations-grid.desktop-only { display: grid; } }

/* Actus (accueil) */
.home-bas { border-top: 0; }
.home-actus-grid { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.actu-card a { display: block; }
.actu-thumb { position: relative; border: 2px solid var(--ink); background: var(--bg2); }
.actu-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.actu-play {
  position: absolute; inset: 0; margin: auto;
  width: 48px; height: 48px;
  background: var(--rouge); border: 2px solid var(--ink); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.actu-date {
  font-family: var(--mono); font-size: 10px; color: var(--gris);
  letter-spacing: 0.08em; margin-top: 8px; text-transform: uppercase;
}
.actu-titre {
  font-family: var(--titres); font-weight: 700; font-size: 18px;
  text-transform: uppercase; line-height: 1.1; margin-top: 4px;
}
.actu-chapo { font-size: 14px; line-height: 1.45; color: var(--texte); margin: 6px 0 0; }
.vide { font-size: 16px; color: var(--texte); padding-top: 14px; margin: 0; }
.vide--page { padding: 16px; }

/* Mobile (maquette accueil) : rangée compacte, vignette 96×96 à gauche */
@media (max-width: 900px) {
  .actu-card a:has(.actu-thumb) {
    display: grid; grid-template-columns: 96px 1fr;
    column-gap: 12px; align-items: start;
  }
  .actu-card a:has(.actu-thumb) .actu-thumb {
    grid-row: 1 / span 3; width: 96px; height: 96px;
  }
  .actu-card a:has(.actu-thumb) .actu-thumb img {
    width: 96px; height: 96px; aspect-ratio: 1 / 1; object-fit: cover;
  }
  .actu-card a:has(.actu-thumb) .actu-date { margin-top: 0; }
  .actu-card .actu-play { width: 32px; height: 32px; font-size: 14px; }
}

@media (min-width: 901px) {
  .home-bas { display: grid; grid-template-columns: 2fr 1fr; }
  .home-actus { border-right: 2px solid var(--ink); }
  .home-actus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 0; }
  .actu-titre { font-size: 19px; }
}

/* Accès / plan : carte statique auto-hébergée (tuiles OSM assemblées par
   bin/gen-plan.sh — aucune requête tierce côté visiteur), marqueur au centre */
.plan {
  position: relative; height: 160px; display: flex;
  align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg2);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.plan img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.plan-marqueur {
  position: absolute; width: 14px; height: 14px;
  background: var(--rouge); border: 2px solid var(--ink);
}
.plan-attribution {
  position: absolute; right: 0; bottom: 0;
  font-family: var(--mono); font-size: 9px; color: var(--texte);
  background: rgba(247, 246, 243, 0.8); padding: 2px 5px;
}
.acces-infos { padding: 16px; }
.acces-adresse {
  font-family: var(--titres); font-weight: 700; font-size: 18px; text-transform: uppercase;
}
.acces-meta {
  font-family: var(--mono); font-size: 13px; color: var(--texte);
  margin-top: 4px; line-height: 1.6;
}
.acces-infos .btn { margin-top: 12px; }
@media (min-width: 901px) {
  .plan { height: 240px; border-top: 0; }
  .plan-marqueur { width: 16px; height: 16px; }
  .acces-infos { padding: 24px; }
  .acces-adresse { font-size: 22px; }
  .acces-meta { margin-top: 6px; line-height: 1.7; }
  .acces-infos .btn { margin-top: 16px; font-size: 16px; }
}

/* ─── Pages intérieures : en-tête ────────────────────────────────── */
.page-head { padding: 16px; border-bottom: 2px solid var(--ink); }
.page-head h1 {
  font-family: var(--titres); font-weight: 700; font-size: 34px;
  text-transform: uppercase; line-height: 1;
}
.page-head p { font-size: 16px; line-height: 1.55; color: var(--texte); margin: 8px 0 0; }
@media (min-width: 901px) {
  .page-head { padding: 40px; }
  .page-head h1 { font-size: 52px; }
  .page-head p { font-size: 19px; max-width: 60ch; }
  .page-head--services { display: grid; grid-template-columns: 1fr 2fr; padding: 0; }
  .page-head--services .page-head-titre { padding: 40px; border-right: 2px solid var(--ink); }
  .page-head--services .page-head-intro { padding: 40px; display: flex; align-items: center; }
  .page-head--services .page-head-intro p { margin: 0; }
}

/* ─── Pages Services / Préparation (explications complètes) ──────── */
.svc-detail-liste { border-top: 0; }
.svc-detail {
  display: flex; gap: 12px;
  padding: 24px 16px; border-bottom: 1px solid var(--rule);
}
.svc-detail:last-child { border-bottom: 0; }
.svc-detail-num {
  font-family: var(--mono); font-size: 12px; color: var(--gris);
  padding-top: 6px; width: 28px; flex: none;
}
.svc-detail-num--prep { color: var(--rouge); }
.svc-detail-corps { max-width: 68ch; }
.svc-detail-corps h2 {
  font-family: var(--titres); font-weight: 700; font-size: 24px;
  text-transform: uppercase; line-height: 1.1;
}
.svc-detail-lead { font-size: 16px; font-weight: 600; color: var(--ink); margin: 6px 0 0; }
.svc-detail-texte p { font-size: 16px; line-height: 1.6; color: var(--texte); margin: 10px 0 0; text-wrap: pretty; }
.svc-detail-texte ul { margin: 10px 0 0; padding-left: 22px; color: var(--texte); }

.renvoi {
  display: flex; align-items: center; gap: 14px;
  border-top: 2px solid var(--ink);
  padding: 20px 16px; min-height: 72px;
}
.renvoi:hover { background: var(--bg2); }
.renvoi-num {
  width: 44px; height: 44px; flex: none;
  background: var(--bg2); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; font-weight: 600;
}
.renvoi-num--prep { background: var(--ink); color: var(--bg); }
.renvoi-txt { flex: 1; }
.renvoi-titre {
  display: block; font-family: var(--titres); font-weight: 700;
  font-size: 20px; text-transform: uppercase; line-height: 1.1;
}
.renvoi-desc { display: block; font-size: 14px; color: var(--texte); margin-top: 3px; }
.renvoi-fleche { color: var(--rouge); font-size: 22px; }

.encart-mesure { border: 2px solid var(--ink); margin: 24px 16px; }
.encart-mesure-titre {
  background: var(--jaune); color: var(--ink); padding: 8px 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.encart-mesure-texte { padding: 16px; font-size: 16px; line-height: 1.55; color: var(--texte); }
.encart-mesure--page { margin: 16px; }

@media (min-width: 901px) {
  .svc-detail { padding: 32px 40px; gap: 20px; }
  .svc-detail-num { font-size: 13px; width: 36px; }
  .svc-detail-corps h2 { font-size: 28px; }
  .svc-detail-lead { font-size: 17px; }
  .svc-detail-texte p { font-size: 17px; }
  .renvoi { padding: 24px 40px; }
  .encart-mesure--page { margin: 32px 40px 8px; max-width: 720px; }
}

.cta-tel { padding: 16px; border-top: 2px solid var(--ink); }
.cta-tel-note {
  font-family: var(--mono); font-size: 12px; color: var(--texte);
  line-height: 1.6; margin: 0 0 12px;
}
.cta-tel .indicator-tel { min-height: 64px; font-size: 24px; }
.cta-tel-titre {
  font-family: var(--titres); font-weight: 700; font-size: 20px;
  text-transform: uppercase; margin-bottom: 12px;
}

/* ─── Flux actualités ────────────────────────────────────────────── */
.flux-post { padding: 16px; border-bottom: 1px solid var(--rule); }
.flux-post:last-of-type { border-bottom: 0; }
.flux-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--gris); text-transform: uppercase;
}
.flux-titre {
  font-family: var(--titres); font-weight: 700; font-size: 22px;
  text-transform: uppercase; margin: 6px 0 10px; line-height: 1.1;
}
.flux-citation {
  border-left: 4px solid var(--ink); padding-left: 12px; margin: 10px 0 0;
}
.flux-citation p { font-size: 16px; line-height: 1.55; color: var(--texte); margin: 0; }
.flux-chapo { font-size: 16px; line-height: 1.55; color: var(--texte); margin: 10px 0 0; }
.flux-suite { padding: 16px; border-top: 2px solid var(--ink); }

.media { position: relative; border: 2px solid var(--ink); background: var(--bg2); }
.media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media--video video { width: 100%; }
.media-play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px;
  background: var(--rouge); border: 2px solid var(--ink); color: #FFFFFF;
  font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lite-yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

.galerie-mosaique { display: grid; grid-template-columns: 2fr 1fr; gap: 4px; }
.galerie-principale img,
.galerie-secondaire img { border: 2px solid var(--ink); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.galerie-secondaire { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; }
.galerie-plus {
  border: 2px solid var(--ink); background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 16px; font-weight: 600;
}

@media (min-width: 901px) {
  .flux-post { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
  .flux-titre { font-size: 26px; }
}

/* ─── Post détail ────────────────────────────────────────────────── */
.post-retour { padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.post-retour a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  min-height: 44px; display: inline-flex; align-items: center;
}
.post-cover { border-bottom: 2px solid var(--ink); }
.post-cover .media { border: 0; }
.post-corps { padding: 16px; }
.post-tags { display: flex; gap: 8px; align-items: center; }
.post-tag {
  font-family: var(--mono); font-size: 10px; background: var(--ink); color: var(--bg);
  padding: 4px 8px; letter-spacing: 0.08em; text-transform: uppercase;
}
.post-date { font-family: var(--mono); font-size: 11px; color: var(--gris); }
.post-titre {
  font-family: var(--titres); font-weight: 700; font-size: 32px;
  text-transform: uppercase; margin: 10px 0 0; line-height: 1.05;
}
.post-chapo { font-size: 17px; line-height: 1.6; margin: 12px 0 0; font-weight: 600; }
.post-texte p { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 12px 0 0; text-wrap: pretty; }
.post-texte ul { margin: 12px 0 0; padding-left: 24px; }
.post-texte li { font-size: 17px; line-height: 1.6; }
.post-galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 16px; }
.post-galerie-item img { border: 2px solid var(--ink); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.post-galerie-item--large { grid-column: 1 / -1; }
.cta-tel--post .indicator-tel { margin-top: 0; }

@media (min-width: 901px) {
  .post-cover, .post-corps, .cta-tel--post { max-width: 860px; }
  .post-corps { margin: 0 auto; padding: 24px 16px; }
  .post-cover { margin: 0 auto; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
  .cta-tel--post { margin: 0 auto; border-top: 0; }
  .post-titre { font-size: 44px; }
}

/* ─── Contact ────────────────────────────────────────────────────── */
.contact-form-bloc { padding: 16px; }
.contact-form-bloc h1 {
  font-family: var(--titres); font-weight: 700; font-size: 20px;
  text-transform: uppercase; margin: 0 0 4px;
}
.contact-note { font-size: 14px; color: var(--gris); margin: 0 0 16px; }
.contact-form-bloc form { display: flex; flex-direction: column; gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--texte); text-transform: uppercase;
}
.champ input, .champ textarea {
  border: 2px solid var(--ink); border-radius: 2px; background: #FFFFFF;
  min-height: 48px; padding: 0 12px; font-size: 16px; font-family: inherit;
  color: #121316; width: 100%;
}
.champ textarea { padding: 10px 12px; resize: vertical; min-height: 96px; }
.champ--mono { font-family: var(--mono) !important; }
.champ-erreur { color: var(--rouge); font-size: 14px; }
.champ [aria-invalid="true"] { border-color: var(--rouge); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; margin: 0; }
.form-ok, .form-erreur { border: 2px solid var(--ink); padding: 16px; font-size: 16px; }
.form-ok { background: var(--bg2); }
.form-erreur { border-color: var(--rouge); }
.contact-rgpd { font-size: 13px; color: var(--gris); margin: 0; }

@media (min-width: 901px) {
  .contact-form-bloc { max-width: 560px; margin: 0 auto; padding-top: 24px; padding-bottom: 48px; }
}

/* ─── Légal ──────────────────────────────────────────────────────── */
.legal { padding: 16px; max-width: 720px; }
.legal h2 {
  font-family: var(--titres); font-weight: 700; font-size: 20px;
  text-transform: uppercase; margin: 24px 0 8px;
}
.legal p { color: var(--texte); margin: 0 0 12px; }
@media (min-width: 901px) { .legal { padding: 24px 40px 48px; } }

/* ─── Footer : contenu centré, deux colonnes en desktop ──────────── */
.site-footer {
  background: var(--ink); color: var(--bg);
  padding: 24px 16px; text-align: center;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  justify-items: center; align-items: center;
  max-width: 960px; margin: 0 auto;
}
.footer-brand {
  font-family: var(--titres); font-weight: 700; font-size: 20px; text-transform: uppercase;
}
/* #5A5C61 (maquette) illisible sur encre (2,8:1) → gris clair AA (9,8:1) */
.footer-meta {
  font-family: var(--mono); font-size: 13px; color: #B9BCC2; line-height: 1.7;
  margin-top: 8px;
}
.footer-social {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  list-style: none; margin: 0 0 14px; padding: 0;
}
.footer-social a {
  display: inline-flex; padding: 9px; color: #B9BCC2; border: 2px solid #3A3D43;
}
.footer-social a:hover { color: var(--bg); border-color: var(--bg); }
.footer-social svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px;
  font-family: var(--mono); font-size: 12px; color: #B9BCC2;
}
.footer-legal a { color: #B9BCC2; text-decoration: underline; }
.footer-legal a:hover { color: var(--bg); }
@media (min-width: 901px) {
  .site-footer { padding: 36px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { font-size: 26px; }
  .footer-meta { line-height: 1.8; }
}

/* ─── Divers ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══ THÈME RALLYE — refonte livrée course, blanc / rouge ═══
   Troisième thème : mise en page recomposée en CSS sur le même DOM.
   Fini la grille dure « plaque émaillée » : fond blanc, bandes de livrée
   rouges, cartes à ombre douce (coins nets), hero centré, chips, footer clair. */
:root[data-theme="rallye"] {
  --bg: #FFFFFF;
  --bg2: #F4F5F6;
  --hatch: #E9EAEC;
  --rule: #E2E3E6;
  --rule-soft: #ECEDEF;
  --desk: #EDEEF0;
  --muted-dark: #7A7E86;
  --ink: #16181D;
  --gris: #7A7E86;
  --texte: #3F434A;
  --r-ombre: 0 2px 10px rgba(22, 24, 29, 0.07), 0 12px 32px rgba(22, 24, 29, 0.06);
  --r-bordure: 1.5px solid #E4E5E8;
}
/* Bande de livrée : double filet rouge (épais + fin) */
[data-theme="rallye"] .bloc-head h2,
[data-theme="rallye"] .page-head h1 {
  font-style: italic;
  border-left: 10px solid var(--rouge);
  padding-left: 16px;
}

/* ── Cadre général : aéré, sans murs noirs ── */
[data-theme="rallye"] .frame { border-left: 0; border-right: 0; max-width: 1240px; }
[data-theme="rallye"] body { background: var(--desk); }

/* ── Header : bannière flottante, nav centrée, bloc infos en carte ── */
[data-theme="rallye"] .site-header { border-bottom: 0; }
[data-theme="rallye"] .header-top { border-bottom: 0; }
[data-theme="rallye"] .brand {
  border: 0; background: #0B0C0E;
  margin: 16px; overflow: hidden;
  box-shadow: var(--r-ombre);
}
[data-theme="rallye"] .header-infos {
  margin: 16px 16px 16px 0; overflow: hidden;
  border: var(--r-bordure); box-shadow: var(--r-ombre); background: var(--bg);
}
[data-theme="rallye"] .hi-etat { border-bottom: 1px solid var(--rule); }
[data-theme="rallye"] .hi-ico { display: none; }
[data-theme="rallye"] .hi-txt { border-left: 8px solid var(--rouge); }
[data-theme="rallye"] .header-infos--bientot .hi-etat { background: var(--bg); }
[data-theme="rallye"] .header-infos--bientot .hi-txt { border-left-color: var(--jaune); background: var(--bg); margin: 0; }
[data-theme="rallye"] .header-infos--ferme .hi-etat { background: var(--bg2); }
[data-theme="rallye"] .header-infos--ferme .hi-txt { border-left-color: #B9BCC2; }
[data-theme="rallye"] .header-infos--exception .hi-etat { background: var(--bg2); }
[data-theme="rallye"] .header-infos--exception .hi-txt { border-left-color: var(--jaune); }
[data-theme="rallye"] .header-infos--exception .hi-lbl { color: var(--ink); }
[data-theme="rallye"] .header-infos--exception .hi-detail { color: var(--texte); }
[data-theme="rallye"] .hi-horaires { border-bottom: 1px solid var(--rule); }
[data-theme="rallye"] .header-nav-row { justify-content: center; position: relative; padding-bottom: 14px; }
[data-theme="rallye"] .site-nav { font-style: italic; gap: 36px; }
[data-theme="rallye"] .site-nav a.is-active { border-bottom: 3px solid var(--rouge); }
[data-theme="rallye"] .header-nav-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(to bottom, var(--rouge) 0 5px, transparent 5px 6px, var(--rouge) 6px 8px);
}

/* ── Indicateur mobile : carte flottante ── */
[data-theme="rallye"] .mobile-only .indicator {
  margin: 12px 16px; overflow: hidden;
  border: var(--r-bordure); box-shadow: var(--r-ombre);
}
[data-theme="rallye"] .indicator { border-bottom: 0; }
[data-theme="rallye"] .indicator-row { border-bottom: 1px solid var(--rule); }
[data-theme="rallye"] .indicator-ico { display: none; }
[data-theme="rallye"] .indicator-txt { border-left: 8px solid var(--rouge); }
[data-theme="rallye"] .indicator--bientot .indicator-row { background: var(--bg); }
[data-theme="rallye"] .indicator--bientot .indicator-txt { border-left-color: var(--jaune); margin: 0; }
[data-theme="rallye"] .indicator--ferme .indicator-row { background: var(--bg2); }
[data-theme="rallye"] .indicator--ferme .indicator-txt { border-left-color: #B9BCC2; }
[data-theme="rallye"] .indicator--exception .indicator-row { background: var(--bg2); }
[data-theme="rallye"] .indicator--exception .indicator-txt { border-left-color: var(--jaune); }
[data-theme="rallye"] .indicator--exception .indicator-libelle { color: var(--ink); }
[data-theme="rallye"] .indicator--exception .indicator-detail { color: var(--texte); }

/* ── Hero : centré, image en carte dessous ── */
[data-theme="rallye"] .hero { display: flex; flex-direction: column; border-bottom: 0; }
[data-theme="rallye"] .hero-txt {
  order: 0; border-right: 0; text-align: center;
  max-width: 760px; margin: 0 auto; padding: 40px 20px 8px;
}
[data-theme="rallye"] .hero-img {
  order: 1; margin: 24px 16px 8px;
  overflow: hidden; box-shadow: var(--r-ombre); min-height: 0; border-bottom: 0;
}
[data-theme="rallye"] .hero-img .placeholder-hatch { min-height: 300px; aspect-ratio: auto; }
[data-theme="rallye"] .hero-title { font-style: italic; }
[data-theme="rallye"] .hero-kicker { color: var(--rouge); }
[data-theme="rallye"] .hero-desc { margin-left: auto; margin-right: auto; }
[data-theme="rallye"] .hero .hero-actions { display: flex; justify-content: center; }
[data-theme="rallye"] .media-cartouche {
  background: var(--rouge); color: #FFFFFF;
}

/* ── Boutons : ombres ── */
[data-theme="rallye"] .btn,
[data-theme="rallye"] .indicator-tel,
[data-theme="rallye"] .hi-tel {
  font-style: italic;
}
[data-theme="rallye"] .btn--primary { box-shadow: 0 8px 22px rgba(214, 21, 42, 0.30); }
[data-theme="rallye"] .btn--tertiary { border: 2px solid var(--rouge); color: var(--rouge); }

/* ── Réassurance : chips centrées ── */
[data-theme="rallye"] .reassurance {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  border: 0; padding: 20px 16px 4px;
}
[data-theme="rallye"] .reassurance li {
  border: var(--r-bordure) !important;
  padding: 10px 18px; background: var(--bg); box-shadow: var(--r-ombre);
  text-align: center;
}

/* ── Sections : titres à barre rouge, plus de filets durs ── */
[data-theme="rallye"] .bloc-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
[data-theme="rallye"] .bloc-head h2 { font-size: 26px; }
@media (min-width: 901px) {
  [data-theme="rallye"] .bloc-head h2 { font-size: 34px; }
}

/* ── Prestations : cartes à ombre douce ── */
[data-theme="rallye"] .prestations-grid { border: 0; gap: 16px; }
[data-theme="rallye"] .prestation-cell {
  border: var(--r-bordure) !important;
  background: var(--bg); box-shadow: var(--r-ombre); padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
[data-theme="rallye"] .prestation-cell:hover {
  background: var(--bg); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22,24,29,0.10), 0 16px 40px rgba(22,24,29,0.10);
}
[data-theme="rallye"] .prestation-num,
[data-theme="rallye"] .prestations-liste .num,
[data-theme="rallye"] .svc-detail-num {
  display: inline-block; width: auto; height: fit-content; flex: none;
  background: var(--ink); color: #FFFFFF;
  padding: 2px 9px; transform: skewX(-8deg); font-weight: 600;
}
[data-theme="rallye"] .prestation-num--prep,
[data-theme="rallye"] .svc-detail-num--prep,
[data-theme="rallye"] .svc-num--prep { background: var(--rouge); color: #FFFFFF; }
[data-theme="rallye"] .prestations-liste a {
  border: var(--r-bordure); margin-bottom: 10px;
  padding: 14px; background: var(--bg); box-shadow: var(--r-ombre);
}
[data-theme="rallye"] .prestations-liste li:last-child a { border-bottom: var(--r-bordure); }

/* ── Actus / cartes médias ── */
[data-theme="rallye"] .home-bas { display: block; }
[data-theme="rallye"] .home-actus { border-right: 0; }
[data-theme="rallye"] .actu-thumb,
[data-theme="rallye"] .media,
[data-theme="rallye"] .galerie-principale img,
[data-theme="rallye"] .galerie-secondaire img,
[data-theme="rallye"] .post-galerie-item img,
[data-theme="rallye"] .galerie-plus {
  border: var(--r-bordure); overflow: hidden;
}
[data-theme="rallye"] .actu-titre,
[data-theme="rallye"] .flux-titre,
[data-theme="rallye"] .post-titre,
[data-theme="rallye"] .renvoi-titre,
[data-theme="rallye"] .svc-detail-corps h2,
[data-theme="rallye"] .acces-adresse { font-style: italic; }
[data-theme="rallye"] .actu-play, [data-theme="rallye"] .media-play { border: 0; }

/* Accès : la carte du plan sous les actus */
[data-theme="rallye"] .home-acces {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin: 0 16px 24px; border: var(--r-bordure);
  overflow: hidden; box-shadow: var(--r-ombre); background: var(--bg);
}
@media (min-width: 901px) {
  [data-theme="rallye"] .home-acces { grid-template-columns: 1.4fr 1fr; margin: 0 40px 40px; }
  [data-theme="rallye"] .plan { height: 100%; min-height: 240px; }
}
[data-theme="rallye"] .plan { border: 0; height: 200px; }

/* ── Pages intérieures ── */
[data-theme="rallye"] .page-head { border-bottom: 0; text-align: left; }
[data-theme="rallye"] .page-head--services { display: block; }
[data-theme="rallye"] .page-head--services .page-head-titre { border-right: 0; padding-bottom: 8px; }
[data-theme="rallye"] .page-head--services .page-head-intro { padding-top: 0; }
[data-theme="rallye"] .svc-detail {
  border: var(--r-bordure); background: var(--bg);
  box-shadow: var(--r-ombre); margin: 0 16px 16px; padding: 22px;
}
[data-theme="rallye"] .svc-detail:last-child { border-bottom: var(--r-bordure); }
@media (min-width: 901px) {
  [data-theme="rallye"] .svc-detail { margin: 0 40px 18px; padding: 28px 32px; }
}
[data-theme="rallye"] .encart-mesure {
  border: 0; border-left: 10px solid var(--jaune);
  background: var(--bg2); overflow: hidden;
}
[data-theme="rallye"] .encart-mesure-titre { background: transparent; padding-bottom: 0; }
[data-theme="rallye"] .renvoi {
  border: var(--r-bordure); margin: 8px 16px 24px;
  background: var(--bg); box-shadow: var(--r-ombre);
}
@media (min-width: 901px) { [data-theme="rallye"] .renvoi { margin: 8px 40px 32px; } }
[data-theme="rallye"] .renvoi:hover { background: var(--bg2); }
[data-theme="rallye"] .renvoi-num { transform: skewX(-8deg); }
[data-theme="rallye"] .flux-post { border-bottom: 1px solid var(--rule); }
[data-theme="rallye"] .flux-citation { border-left-color: var(--rouge); }
[data-theme="rallye"] .post-retour { border-bottom: 0; }
[data-theme="rallye"] .post-cover { border: 0; }
[data-theme="rallye"] .post-tag { background: var(--rouge); }

/* ── CTA téléphone : carte centrée ── */
[data-theme="rallye"] .cta-tel { border-top: 0; text-align: center; padding: 8px 16px 40px; }
[data-theme="rallye"] .cta-tel .indicator-tel,
[data-theme="rallye"] .indicator-tel {
  box-shadow: 0 8px 22px rgba(214, 21, 42, 0.30);
}
[data-theme="rallye"] .cta-tel .indicator-tel { max-width: 520px; margin: 0 auto; }
[data-theme="rallye"] .cta-tel-titre { font-style: italic; }

/* ── Formulaire contact ── */
[data-theme="rallye"] .champ input, [data-theme="rallye"] .champ textarea {
  border: 1.5px solid #D8DADD; border-radius: 0;
}
[data-theme="rallye"] .champ input:focus-visible,
[data-theme="rallye"] .champ textarea:focus-visible {
  outline: 3px solid rgba(214, 21, 42, 0.45); outline-offset: 1px;
}
[data-theme="rallye"] .hp-field { position: absolute; }

/* ── Footer : clair, double bande de livrée en tête ── */
[data-theme="rallye"] .site-footer {
  background: var(--bg2); color: var(--ink);
  position: relative; padding-top: 34px; margin-top: 16px;
}
[data-theme="rallye"] .site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: linear-gradient(to bottom, var(--rouge) 0 6px, transparent 6px 7px, var(--rouge) 7px 10px);
}
[data-theme="rallye"] .footer-brand { font-style: italic; color: var(--rouge); }
[data-theme="rallye"] .footer-meta { color: var(--texte); }
[data-theme="rallye"] .footer-legal, [data-theme="rallye"] .footer-legal a { color: var(--gris); }
[data-theme="rallye"] .footer-legal a:hover { color: var(--ink); }
[data-theme="rallye"] .footer-social a { color: var(--gris); border-color: #D8DADD; background: var(--bg); }
[data-theme="rallye"] .footer-social a:hover { color: var(--rouge); border-color: var(--rouge); }

/* Focus visible : rouge (le jaune plaque appartient aux thèmes maquette) */
[data-theme="rallye"] *:focus-visible { outline-color: var(--rouge); }
