/* ==========================================================================
   EmiRoyal Ménages — feuille de style
   Sommaire : 1 Variables · 2 Base · 3 Composants · 4 Header · 5 Hero
              6 Sections · 7 Galerie · 8 Zones · 9 Formulaire · 10 Footer
              11 Barre mobile · 12 Pages légales · 13 Animations · 14 Responsive
   Pour changer les couleurs du site : modifier uniquement la section 1.
   ========================================================================== */

/* ---------- 1. Variables ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a1b4d;          /* bleu nuit : titres, fonds sombres */
  --royal: #1f45b5;        /* bleu royal : boutons, liens */
  --royal-dark: #17368f;
  --sky: #e8f1fd;          /* bleu très clair : fonds de sections */
  --sky-strong: #cfe2fa;
  --paper: #ffffff;
  --mist: #f5f8fd;
  --text: #25314f;
  --muted: #55607c;
  --line: #d9e3f3;
  --gold: #c9a24a;         /* touche dorée, utilisée avec parcimonie */
  --gold-soft: #e6c777;
  --whatsapp: #138a4b;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(10, 27, 77, .06), 0 4px 14px rgba(10, 27, 77, .05);
  --shadow: 0 2px 4px rgba(10, 27, 77, .05), 0 18px 40px -12px rgba(10, 27, 77, .22);
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--royal-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 560; letter-spacing: -.015em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-s); text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Composants ---------- */
.btn {
  --btn-bg: var(--royal); --btn-fg: #fff; --btn-bd: var(--royal);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.5rem;
  font: 650 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd); border-radius: 999px;
  cursor: pointer; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(10, 27, 77, .5); color: var(--btn-fg); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { --btn-bg: var(--gold-soft); --btn-fg: var(--ink); --btn-bd: var(--gold-soft); }
.btn--gold:hover { --btn-bg: #f0d58f; --btn-bd: #f0d58f; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: #fff; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-bd: var(--whatsapp); }
.btn--block { width: 100%; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--sky { background: var(--sky); }
.section--mist { background: var(--mist); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head p { color: var(--muted); font-size: 1.125rem; }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 27, 77, .96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(230, 199, 119, .22);
  transition: height .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { --header-h: 62px; box-shadow: 0 8px 26px -14px rgba(0, 0, 0, .6); border-color: rgba(230, 199, 119, .3); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: flex-end; gap: .55rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand__logo { height: calc(var(--header-h) - 14px); width: auto; display: block; transition: height .25s ease; }
.brand__sub { font: 650 .82rem/1 var(--font-body); letter-spacing: .04em; color: var(--gold-soft); padding-bottom: .7rem; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; gap: 1.5rem; }
.nav__link { color: #fff; text-decoration: none; font-weight: 600; font-size: .96rem; padding: .4rem 0; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { min-height: 44px; padding: .55rem 1.2rem; font-size: .95rem; }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: #fff; padding: 0; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; margin: auto; transition: transform .25s ease, background-color .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(74, 118, 224, .45), transparent 60%),
    linear-gradient(160deg, #0a1b4d 0%, #10297a 55%, #1a3a9c 100%);
  padding-block: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__company { display: block; font: 600 1.05rem/1.3 var(--font-body); letter-spacing: .01em; color: var(--gold-soft); margin-bottom: 1rem; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #d6e2fb; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__wa { margin-top: 1.2rem; font-size: .98rem; color: #c3d3f6; }
.hero__wa a { color: #fff; font-weight: 650; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 400px); padding-bottom: 1.2rem; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-l) var(--radius-l); overflow: hidden; box-shadow: var(--shadow); background: var(--sky-strong); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__visual::before { /* liseré doré décalé, rappel d'une couronne */
  content: ""; position: absolute; inset: -12px 12px 12px -12px; border: 1.5px solid var(--gold); border-radius: 999px 999px var(--radius-l) var(--radius-l); opacity: .75;
}
.hero__visual .arch { z-index: 1; }

.hero__facts { margin-top: clamp(2.5rem, 6vw, 4.5rem); background: rgba(255, 255, 255, .07); border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__facts ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__facts li { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1.4rem; font-weight: 600; font-size: .98rem; color: #e8efff; }
.hero__facts li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.hero__facts .icon { color: var(--gold-soft); width: 28px; height: 28px; }

/* ---------- 6. Sections ---------- */
/* Présentation */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__text p { color: var(--muted); }
.about__text p:first-of-type { color: var(--text); font-size: 1.15rem; }
.about__photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.about__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__photos figure { margin: 0; }
.about__photos figure:nth-child(2) { margin-top: 3rem; }
.about__list { margin-top: 1.5rem; display: grid; gap: .7rem; }
.about__list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.about__list .icon { color: var(--royal); margin-top: 2px; width: 22px; height: 22px; }

/* Services : trois familles, chacune une carte avec sa liste */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.service-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.8rem 1.6rem 1rem; box-shadow: var(--shadow-s); }
.service-group__title { display: flex; align-items: center; gap: .8rem; font-size: 1.45rem; margin-bottom: .2rem; }
.service-group__title .icon { width: 40px; height: 40px; padding: 9px; background: var(--sky); color: var(--royal); border-radius: 12px; }
.service-group__intro { color: var(--muted); font-size: .98rem; margin: .6rem 0 .6rem; }
.service { display: grid; grid-template-columns: 26px 1fr; gap: .9rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.service .icon { color: var(--royal); width: 26px; height: 26px; margin-top: 2px; }
.service h4 { font: 700 1.02rem/1.3 var(--font-body); letter-spacing: 0; margin: 0 0 .2rem; }
.service p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.55; }
.services__note { margin-top: 2rem; text-align: center; color: var(--muted); }

/* Pourquoi nous choisir */
.why { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.why h2 { color: #fff; }
.why .section__head p { color: #b9c9ee; }
.why__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.why__item { grid-column: span 2; padding: 1.6rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.why__item:nth-child(4) { grid-column: 2 / span 2; }
.why__item:nth-child(5) { grid-column: 4 / span 2; }
.why__item .icon { width: 34px; height: 34px; color: var(--gold-soft); margin-bottom: .9rem; }
.why__item h3 { color: #fff; margin-bottom: .4rem; }
.why__item p { margin: 0; color: #b9c9ee; font-size: .98rem; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.8rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s); }
.contact-card > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--sky); color: var(--royal); margin-bottom: .6rem; }
.contact-card h3 { margin: 0; }
.contact-card p { color: var(--muted); margin: 0 0 .8rem; font-size: .98rem; min-height: 3.2em; }
.contact-card .btn { margin-top: auto; }
.contact-card__value { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- 7. Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sky-strong); box-shadow: var(--shadow-s); }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.gallery__btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .8rem; text-align: left;
  font: 650 .95rem/1.2 var(--font-body); color: #fff; background: linear-gradient(to top, rgba(10, 27, 77, .78), transparent);
}
.gallery__note { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; text-align: center; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(6, 15, 45, .92); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lightbox__figure { margin: 0; text-align: center; color: #fff; max-width: min(92vw, 720px); }
.lightbox__figure img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius); }
.lightbox__figure figcaption { margin-top: .8rem; font-weight: 600; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- 8. Zones ---------- */
.zones__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.zone { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: .15rem; }
.zone__code { font: 560 2.8rem/1 var(--font-display); color: var(--royal); letter-spacing: -.03em; }
.zone__name { font-weight: 700; color: var(--ink); }
.zone__detail { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.zone--feature { grid-column: span 2; background: var(--ink); border-color: var(--ink); }
.zone--feature .zone__code { color: var(--gold-soft); }
.zone--feature .zone__name { color: #fff; }
.zone--feature .zone__detail { color: #bccbee; }
.zone--sens .icon { width: 44px; height: 44px; color: var(--gold-soft); margin-bottom: .2rem; }
.zones__foot { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.6rem; border-radius: var(--radius); background: var(--sky); }
.zones__foot p { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- 9. Formulaire ---------- */
.quote { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.quote__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.quote__aside p { color: var(--muted); }
.quote__steps { margin: 1.6rem 0; padding: 0; list-style: none; display: grid; gap: 1rem; counter-reset: step; }
.quote__steps li { display: grid; grid-template-columns: 38px 1fr; gap: .9rem; align-items: start; counter-increment: step; }
.quote__steps li::before { content: counter(step); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--gold-soft); font: 600 1.05rem var(--font-display); }
.quote__steps strong { display: block; color: var(--ink); }
.quote__steps span { color: var(--muted); font-size: .95rem; }
.quote__direct { display: flex; flex-wrap: wrap; gap: .7rem; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; margin-top: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 650; font-size: .93rem; color: var(--ink); padding: 0; }
.field .req { color: #b4232a; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .95rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--mist); border: 1.5px solid var(--line); border-radius: var(--radius-s); transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b8cbe9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(31, 69, 181, .16); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #b4232a; background: #fff7f7; }
.field__error { color: #b4232a; font-size: .88rem; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { font-size: .85rem; color: var(--muted); }
.field--fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.segmented label { position: relative; font-weight: 650; }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--mist); color: var(--ink); transition: all .15s ease; }
.segmented input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.consent { font-weight: 400 !important; display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--royal); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: .8rem; margin-top: 1.4rem; }
.form-status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-s); font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #e7f6ee; color: #0e5a31; border: 1px solid #b6e2c9; }
.form-status--info { background: var(--sky); color: var(--ink); border: 1px solid var(--sky-strong); }
.form-status--error { background: #fdecec; color: #8c1d22; border: 1px solid #f3c0c2; }
.form-status a { color: inherit; }
.form-note { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--ink); color: #b9c9ee; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #dfe8fc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__grid h2 { font: 700 .95rem var(--font-body); color: #fff; letter-spacing: 0; margin-bottom: .9rem; }
.footer__grid li { margin-bottom: .55rem; }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer .brand__logo { height: 84px; }
.site-footer .brand__sub { padding-bottom: 1rem; font-size: .9rem; }
.footer__about { max-width: 22rem; font-size: .97rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between; font-size: .9rem; }
.footer__bottom ul { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- 11. Barre de contact mobile ---------- */
.mobile-bar { display: none; }

/* ---------- 12. Pages légales ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__inner { max-width: 48rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.legal .todo { background: #fff6dc; border-bottom: 2px solid var(--gold); padding: 0 .35rem; border-radius: 3px; font-weight: 650; color: #5e4510; }
.legal__alert { background: #fff6dc; border: 1px solid #ecd596; border-radius: var(--radius-s); padding: 1rem 1.2rem; color: #5e4510; font-size: .95rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; }
.legal dt { font-weight: 700; color: var(--ink); }
.legal dd { margin: 0; }

/* ---------- 13. Animations (sobres) ---------- */
/* Entrée de la page : une seule séquence, sur le hero */
.js .hero__intro > * { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero__intro > *:nth-child(2) { animation-delay: .08s; }
.js .hero__intro > *:nth-child(3) { animation-delay: .16s; }
.js .hero__intro > *:nth-child(4) { animation-delay: .24s; }
.js .hero__intro > *:nth-child(5) { animation-delay: .32s; }
.js .hero__visual { opacity: 0; animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Apparition au scroll : seulement sur les éléments marqués data-reveal */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .hero__intro > *, .js .hero__visual { opacity: 1; transform: none; }
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1020px) {
  .services { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .zones__grid { grid-template-columns: repeat(3, 1fr); }
  .zone--feature { grid-column: span 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: .6rem 1rem 1.4rem; border-bottom: 1px solid rgba(230, 199, 119, .3); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 1rem .4rem; font-size: 1.08rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1rem; min-height: 52px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(100%, 340px); margin-top: .5rem; }
  .hero__facts ul { grid-template-columns: 1fr; }
  .hero__facts li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .about { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .quote__aside { position: static; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why__item, .why__item:nth-child(4), .why__item:nth-child(5) { grid-column: auto; }
  .why__item:nth-child(5) { grid-column: 1 / -1; }
  .contact__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .gallery__item:last-child { grid-column: 1 / -1; }
  .gallery__item:last-child img { aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-footer { padding-bottom: 76px; } /* laisse la place à la barre mobile */
  .hero__actions .btn { width: 100%; }
  .why__grid { grid-template-columns: 1fr; }
  .why__item:nth-child(5) { grid-column: auto; }
  .zones__grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .zone--feature { grid-column: 1 / -1; }
  .zone__code { font-size: 2.3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__photos figure:nth-child(2) { margin-top: 1.6rem; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dt { margin-top: .6rem; }

  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom)); gap: .5rem;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -14px rgba(10, 27, 77, .4);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 54px; border-radius: 14px; text-decoration: none; font: 700 .8rem/1.1 var(--font-body); color: var(--ink); background: var(--sky); }
  .mobile-bar a .icon { width: 22px; height: 22px; }
  .mobile-bar a.is-wa { background: var(--whatsapp); color: #fff; }
  .mobile-bar a.is-quote { background: var(--ink); color: var(--gold-soft); }
  .lightbox__prev { left: .4rem; } .lightbox__next { right: .4rem; }
}
