/* Kebe Fermeture - site statique, une page d'accueil a defilement et une page
   de mentions legales. Aucun framework, aucune dependance externe.

   Theme clair seulement (le sombre a ete retire le 20/10/2026).

   Regle de couleur a ne pas perdre : l'accent #84cc16 ne fait que 1,9:1 sur du
   blanc, il est donc interdit pour du texte en theme clair. Il sert d'aplat
   (bouton plein, monogramme, filets) et --accent-text prend le relais pour les
   textes et les liens. */

:root {
  --graphite: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #e9ede8;
  --accent: #84cc16;
  --accent-dim: #6ba512;
  --accent-text: #4d7c0f;
  --ink: #1c2321;
  --ink-muted: #55605a;
  --ink-faint: #626d67;
  --line: rgba(28, 35, 33, 0.13);
  --line-strong: rgba(28, 35, 33, 0.26);
  --on-accent: #1c2321;
  --header-bg: rgba(244, 246, 243, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(28, 35, 33, 0.14);
  --glass-inset: rgba(255, 255, 255, 0.9);
  --glass-shadow: rgba(28, 35, 33, 0.10);
  --lift-shadow: rgba(28, 35, 33, 0.12);
  --carte-zone: #d9f99d;
  --carte-zone-survol: #c8f07a;
  --carte-reste: #ffffff;
  --carte-survol: #f4f6f3;
  --carte-trait: #9aa39e;
  --on-media: #f4f6f3;
  --voile-media: rgba(12, 16, 14, 0.78);
  --header-h: 66px;
  --r-card: 12px;
  --r-media: 12px;
  --r-btn: 8px;
  --r-input: 8px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Aucune regle overflow sur html : overflow-x:hidden casse position:sticky.
   Le debordement horizontal est traite a la source, chaque grille passant en
   une colonne aux points de rupture. */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-dim); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -0.02em; }

[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  font-weight: 600;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.center .eyebrow { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--glass-inset) inset;
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--glass-inset) inset, 0 10px 30px var(--glass-shadow); }
/* Sans backdrop-filter, le header reste opaque plutot que translucide illisible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--graphite); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 12px;
  height: 12px;
  background: var(--accent);
  flex: none;
  transition: transform 0.4s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo strong { font-weight: 700; }
.logo span.soft { font-weight: 400; color: var(--ink-muted); }

.nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; order: 1; }
.nav a {
  position: relative;
  color: var(--ink-muted);
  padding-bottom: 5px;
  transition: color 0.2s var(--ease);
}
/* Soulignement qui se deploie depuis la gauche, au survol et sur l'onglet actif */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(0.35); }
.nav a.current { color: var(--ink); font-weight: 600; }
.nav a.current::after { transform: scaleX(1); }

/* Bouton d'appel : le commercant decide au telephone, le numero reste a portee
   sur tout le site. Pastille verte pleine, seul aplat d'accent du header. */
.header-call {
  order: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.header-call:hover { background: var(--accent-dim); color: var(--on-accent); transform: translateY(-1px); }
.header-call .icone,
.contact-icone .icone {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav { margin-left: auto; }


/* ---------- Sections ---------- */

.section {
  scroll-margin-top: var(--header-h);
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--ink-muted); margin: 16px 0 0; font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
/* .section-head p est plus specifique que .eyebrow : on retablit le libelle */
.section-head .eyebrow { color: var(--accent-text); font-size: 13px; margin: 0 0 14px; }

.bloc-cartes-accueil { margin-top: 64px; }
.bloc-photos { margin-top: 18px; }
.bloc-materiaux { margin-top: 56px; }
.note { color: var(--ink-muted); font-size: 15px; margin: 16px 0 0; }

/* ---------- Hero ---------- */

#accueil { padding-top: 64px; padding-bottom: 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.03em; max-width: 13ch; }
.hero .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 24px 0 0;
}
.hero .rule { width: 56px; height: 3px; background: var(--accent); margin: 32px 0 0; transform-origin: left; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { font-size: 14px; color: var(--ink-muted); margin-left: 6px; }
.hero-note a { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border: 1px solid var(--accent);
  border-radius: var(--r-btn);
  cursor: pointer;
  font-family: var(--font);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(107, 165, 18, 0.28);
}
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--accent); box-shadow: none; }

/* ---------- Media ---------- */

.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  background: var(--surface);
  min-width: 0;
}
.media img, .media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.bloc-photos .media:hover img { transform: scale(1.045); }
.media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-media);
  background: linear-gradient(to top, var(--voile-media), rgba(12, 16, 14, 0));
}
figure.media { margin: 0; }

.ratio-4-3 { aspect-ratio: 4 / 3; }

/* ---------- Diaporama du hero ----------
   Cinq devantures, enseignes floutees, fondu enchaine (site.js). Sur grand ecran
   l'image occupe la droite du hero, derriere le texte, et un masque horizontal
   l'efface vers la gauche : le titre reste sur le fond de page, dans les deux
   themes. Sous 1024 px, le diaporama passe sous le texte, sans masque. */

.hero-grid { position: relative; }
.hero-texte { position: relative; z-index: 2; }
.hero-diapo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  animation: image-entree 1s var(--ease) 0.2s both;
}
.hero-diapo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-diapo img.on { opacity: 1; }

@media (min-width: 1025px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 540px; }
  .hero-texte { max-width: 560px; }
  .hero-diapo {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 62%;
    aspect-ratio: auto;
    border-radius: 0 var(--r-media) var(--r-media) 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 20%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.8) 42%, #000 52%);
    mask-image: linear-gradient(90deg, transparent 0, transparent 20%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.8) 42%, #000 52%);
  }
}

/* ---------- Cartes ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px var(--lift-shadow); border-color: var(--line-strong); }
.card h3 { font-size: 20px; }
.card p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.card .card-label { color: var(--accent-text); }

/* Lien de carte souligne par un filet qui se deploie au survol de la carte */
.card .card-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 2px;
  transition: background-size 0.35s var(--ease);
}
.card:hover .card-link, .card .card-link:focus-visible { background-size: 100% 2px; }

/* Variante verre, posee sur les trois cartes de l'accueil.
   Selecteur double : .card porte deja un fond, a specificite egale il gagnerait. */
.card.card-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-color: var(--glass-line);
  box-shadow: 0 1px 0 var(--glass-inset) inset, 0 14px 34px var(--glass-shadow);
}
.card.card-glass:hover { box-shadow: 0 1px 0 var(--glass-inset) inset, 0 20px 44px var(--lift-shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card.card-glass { background: var(--surface-2); }
}

.card-label {
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 600;
  margin: 0;
}

ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
ul.list li:last-child { border-bottom: 0; }
ul.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.card:hover ul.list li::before { width: 12px; }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 16px;
  text-align: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile strong { display: block; font-size: 18px; letter-spacing: -0.01em; }
.tile span { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 5px; }

/* ---------- Typologies de references ---------- */

.typo-card .card-label { color: var(--ink-faint); }

/* ---------- Zone d'intervention ----------
   Vert clair contre blanc : 1,17:1, la couleur seule ne distingue pas la zone.
   Les numeros sur la carte, la legende et le texte portent l'information. */

.section-zone { padding: 72px 0; }
.zone-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.zone-texte h2 { font-size: clamp(28px, 3.4vw, 40px); }
.zone-texte > p:not(.eyebrow) { color: var(--ink-muted); font-size: 17px; margin: 16px 0 0; max-width: 46ch; }
.legende { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.legende li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink); }
.pastille { flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 4px; }
.pastille-zone { background: var(--carte-zone); border: 1px solid var(--carte-trait); }
.pastille-siege { background: var(--ink); border-radius: 50%; box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.35); width: 10px; height: 10px; margin: 6px 3px 0; }
.zone-lien {
  display: inline-block;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 2px;
  transition: background-size 0.35s var(--ease);
}
.zone-lien:hover, .zone-lien:focus-visible { background-size: 100% 2px; }

.zone-carte {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
}
.carte-idf { display: block; width: 100%; height: auto; }
/* Fondu sur les bords : la grande couronne s'efface, la zone couverte reste au centre */
.zone-carte .carte-idf {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
}
.insecable { white-space: nowrap; }
.carte-idf .dept {
  fill: var(--carte-reste);
  stroke: var(--carte-trait);
  stroke-width: 1.3;
  stroke-linejoin: round;
  transition: fill 0.25s var(--ease);
}
.carte-idf .dept-couvert { fill: var(--carte-zone); }
.carte-idf .dept:hover { fill: var(--carte-survol); }
.carte-idf .dept-couvert:hover { fill: var(--carte-zone-survol); }
.carte-idf .dept-num {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink-muted);
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
.carte-idf .dept-num-couvert { fill: var(--ink); font-size: 10px; font-weight: 700; }
.carte-idf .siege-point { fill: var(--ink); stroke: var(--surface); stroke-width: 1; pointer-events: none; }
.carte-idf .siege-halo { fill: var(--accent); opacity: 0.35; pointer-events: none; transform-box: fill-box; transform-origin: center; }
/* Seule animation en boucle du site : le halo du siege pulse, une fois la carte apparue */
.js .zone-carte.is-visible .siege-halo { animation: pulsation 2.4s var(--ease) 0.6s infinite; }
@keyframes pulsation {
  0% { transform: scale(0.6); opacity: 0.55; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Formulaire ---------- */

/* Contact direct, au-dessus du formulaire, centre comme lui */
.contact-direct {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto 36px;
}
.contact-carte {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
  padding: 16px 22px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  color: var(--ink-muted);
  font-size: 13px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-carte:hover { color: var(--ink-muted); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px var(--lift-shadow); }
.contact-icone {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icone .icone { width: 19px; height: 19px; }
.contact-texte { display: flex; flex-direction: column; line-height: 1.35; }
.contact-texte strong { color: var(--ink); font-size: 17px; letter-spacing: -0.01em; }

.layout-form { max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-muted); font-weight: 600; transition: color 0.2s var(--ease); }
.field:focus-within label { color: var(--accent-text); }
.field .opt { color: var(--ink-faint); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 13px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.22); }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

.form-status {
  margin-top: 18px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-input);
  font-size: 14px;
  color: var(--ink-muted);
  animation: apparition 0.35s var(--ease);
}
.form-rgpd { font-size: 13px; color: var(--ink-faint); margin: 22px 0 0; max-width: 70ch; line-height: 1.55; }
.form-rgpd a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
}
.footer-col h4 {
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-col p, .footer-col li { margin: 0 0 8px; font-size: 14px; color: var(--ink-muted); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--ink-muted); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent-text); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.footer-brand .logo-mark { width: 10px; height: 10px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-faint);
}
.site-footer .wrap > .footer-bottom:first-child { border-top: 0; }
.footer-bottom a { color: var(--ink-faint); }
.footer-bottom a:hover { color: var(--accent-text); }

/* ---------- Page mentions legales ---------- */

.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.03em; }
.legal .legal-intro { color: var(--ink-muted); margin: 16px 0 0; font-size: 17px; }
.legal-bloc { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-bloc h2 { font-size: 22px; margin-bottom: 16px; }
.legal-bloc p { color: var(--ink-muted); margin: 0 0 12px; max-width: 70ch; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--line); }
.legal-table th { width: 38%; color: var(--ink-muted); font-weight: 600; padding-right: 18px; }
.legal-table td { color: var(--ink); }
.legal-retour { display: inline-block; margin-top: 48px; font-weight: 600; }

/* ---------- Animations ----------
   Une seule sequence a l'arrivee (hero), puis des apparitions discretes au
   defilement. La classe .js est posee par theme.js : sans JavaScript, tout
   reste visible. Coupe entierement si le visiteur a reduit les animations. */

@keyframes apparition {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes filet {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes image-entree {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}

.hero-texte > * { animation: apparition 0.7s var(--ease) both; }
.hero-texte > :nth-child(1) { animation-delay: 0.05s; }
.hero-texte > :nth-child(2) { animation-delay: 0.15s; }
.hero-texte > :nth-child(3) { animation-delay: 0.28s; }
.hero-texte > .rule { animation: filet 0.6s var(--ease) 0.45s both; }
.hero-texte > :nth-child(4) { animation-delay: 0.5s; }
.hero .media { animation: image-entree 1s var(--ease) 0.2s both; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--delai, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Une fois apparue, la carte retrouve sa transition de survol sans delai */
.js .card.reveal.is-visible { transition: opacity 0.6s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .zone-carte.is-visible .siege-halo { animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  /* Cinq onglets ne tiennent plus a cote du logo : le bouton de theme reste en
     haut a droite, la navigation passe en pleine largeur sur la ligne suivante */
  .header-inner { row-gap: 10px; padding-bottom: 12px; }
  .nav { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .header-call { order: 0; margin-left: auto; }
  .nav { margin-left: 0; }
}

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  #accueil { padding-top: 44px; padding-bottom: 64px; }
  .zone-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-zone { padding: 56px 0; }
}

@media (max-width: 560px) {
  .header-inner { padding-top: 14px; padding-bottom: 12px; gap: 10px; }
  .nav { gap: 16px; font-size: 13px; }
  .grid-4, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .card { padding: 22px; }
  .zone-carte { padding: 12px; }
  .hero-actions { gap: 12px; }
  .hero-note { margin-left: 0; width: 100%; }
  /* Le numero ne tient plus a cote du logo : pastille ronde, icone seule.
     Le numero reste lu par les lecteurs d'ecran et affiche dans le hero. */
  .header-call { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .header-call [data-tel-texte] {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .contact-carte { width: 100%; min-width: 0; }
  .btn { padding: 12px 20px; }
  .legal-table th, .legal-table td { display: block; width: 100%; padding: 4px 0; border-bottom: 0; }
  .legal-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* Piege a robots du formulaire : hors ecran, jamais affiche */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
