/* ==========================================================================
   Clémence — aide à domicile à Grasse
   Palette : sauge / abricot / crème — registre chaleureux, jamais médical
   ========================================================================== */

/* Polices auto-hébergées : pas de requête tierce bloquante, pas d'IP visiteur chez Google */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 340 640;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 340 640;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/karla-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/karla-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sage: #5b8c7e;
  --sage-deep: #3e6357;
  --sage-ink: #2e4c42;
  --apricot: #e8a87c;
  --apricot-deep: #d68d5a;
  --apricot-text: #a55524;   /* variante texte/icônes : AA sur crème, sable et fonds abricotés */
  --cream: #fdfbf7;
  --sand: #f6efe3;
  --mist: #c9d5cd;
  --ink: #2f3e46;
  --ink-soft: #52616b;
  --white: #fffdf9;

  --map-road: #9db8ad;
  --map-halo: rgba(91, 140, 126, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 18px 45px -18px rgba(47, 62, 70, 0.22);
  --shadow-card: 0 10px 30px -12px rgba(47, 62, 70, 0.16);

  --container: 1160px;
  --transition: 0.35s cubic-bezier(0.2, 0.6, 0.25, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;             /* 18 px — lisibilité seniors */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 430;
  color: var(--sage-deep);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--apricot-text); }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.section-tinted { background: var(--sand); }

.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apricot-text);
  margin-bottom: 0.9rem;
}

h2 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 22ch; }

.section-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--apricot-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn svg { width: 1.25em; height: 1.25em; flex: none; }

.btn-primary {
  background: var(--sage-deep);
  color: var(--cream);
  box-shadow: 0 14px 28px -14px rgba(62, 99, 87, 0.65);
}
.btn-primary:hover {
  background: var(--sage-ink);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(62, 99, 87, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--mist);
}
.btn-ghost:hover {
  color: var(--sage-deep);
  box-shadow: inset 0 0 0 2px var(--sage);
  transform: translateY(-2px);
}

.btn-large { padding: 1.1rem 2rem; font-size: 1.1rem; }
.btn-small { padding: 0.6rem 1.15rem; font-size: 0.95rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  border-bottom-color: rgba(201, 213, 205, 0.5);
  box-shadow: 0 8px 24px -18px rgba(47, 62, 70, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-leaf { width: 34px; height: 34px; color: var(--sage); flex: none; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 540;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink);
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a:not(.btn) {
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
}
.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--apricot-text);
  transition: right var(--transition);
}
.nav-list a:not(.btn):hover { color: var(--sage-deep); }
.nav-list a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;   /* repli : sans lui, le halo déborde et scrolle horizontalement */
  overflow: clip;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.hero::before {
  /* halo sauge très doux derrière le visuel */
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 58%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(91, 140, 126, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: rgba(91, 140, 126, 0.1);
  border: 1px solid rgba(91, 140, 126, 0.25);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  margin: 0 0 1.6rem;
}
.kicker-leaf { width: 1.05em; height: 1.05em; }

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin-bottom: 0.5em;
}

.hero-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-lead strong { color: var(--ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hero-credit {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
}
.hero-credit a { font-weight: 700; }

.credit-badge {
  flex: none;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--apricot);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  box-shadow: 0 8px 18px -8px rgba(214, 141, 90, 0.6);
}

/* Visuel hero : photo en arche + cartes flottantes */

.hero-visual { position: relative; }

.hero-arch {
  position: relative;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--mist);
}
.hero-arch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 6px rgba(253, 251, 247, 0.55);
  pointer-events: none;
}
.hero-arch img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border-radius: 16px;
  padding: 0.8rem 1.05rem;
  box-shadow: var(--shadow-card);
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 240px;
}
.hero-card strong { color: var(--ink); font-size: 0.98rem; }
.hero-card svg { width: 26px; height: 26px; flex: none; color: var(--sage); }

.hero-card-advf { left: -1.5rem; bottom: 4.2rem; animation: floaty 7s ease-in-out infinite; }
.hero-card-same { right: -1rem; top: 3rem; animation: floaty 8s ease-in-out 1.2s infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Marquee communes ---------- */

.marquee {
  overflow: hidden;
  background: var(--sage-deep);
  color: var(--cream);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  color: var(--apricot);
  font-size: 0.8rem;
}

@keyframes marquee {
  to { transform: translateX(calc(-100% / 3)); }
}

/* ---------- Qui suis-je ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about-visual {
  position: relative;
  display: grid;
  gap: 1.4rem;
}

.about-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.about-photo-offset {
  width: 72%;
  justify-self: end;
  margin-top: -4.5rem;
  border: 6px solid var(--cream);
}

.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--sage);
  margin-top: 1.4rem;
  transform: rotate(-4deg);
}

/* ---------- Prestations ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(91, 140, 126, 0.12);
  color: var(--sage-deep);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 38px; height: 38px; }

.service-card:nth-child(even) .service-icon {
  background: rgba(232, 168, 124, 0.18);
  color: var(--apricot-text);
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.service-card p { font-size: 1.02rem; color: var(--ink-soft); }

/* ---------- Crédit d'impôt ---------- */

.section-dark {
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(232, 168, 124, 0.12), transparent 55%),
    var(--sage-ink);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark h2 em { color: var(--apricot); }
.section-dark p { color: rgba(253, 251, 247, 0.85); }
.section-dark strong { color: var(--cream); }
.section-dark .section-kicker { color: var(--apricot); }

.credit-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.credit-statut {
  margin-top: 1.4rem;
  padding: 0.9rem 1.2rem;
  border-left: 3px solid var(--apricot);
  border-radius: 0 10px 10px 0;
  background: rgba(253, 251, 247, 0.08);
  font-size: 1rem;
}

.credit-calc {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.1rem;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.45);
}
.credit-calc h3 { color: var(--ink); font-size: 1.5rem; margin-bottom: 0.3rem; }
.credit-calc p { color: var(--ink-soft); }
.calc-hint { font-size: 1rem; margin-bottom: 1.4rem; }

.calc-slider-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.calc-slider-row output {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sage-deep);
}

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--sage) var(--calc-fill, 27%), var(--mist) var(--calc-fill, 27%));
  outline-offset: 6px;
  margin: 0.4rem 0 1.6rem;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--sage-deep);
  box-shadow: 0 4px 10px rgba(47, 62, 70, 0.25);
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--sage-deep);
  box-shadow: 0 4px 10px rgba(47, 62, 70, 0.25);
}

.calc-results { display: grid; gap: 0.7rem; margin-bottom: 1.2rem; }

.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  font-size: 1.02rem;
}
.calc-line strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 560;
  white-space: nowrap;
}

.calc-line-before {
  background: rgba(201, 213, 205, 0.35);
  color: var(--ink-soft);
}
.calc-line-before strong { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-soft); }

.calc-line-after {
  background: rgba(232, 168, 124, 0.22);
  color: var(--ink);
  border: 1.5px solid rgba(214, 141, 90, 0.5);
}
.calc-line-after strong { color: var(--apricot-text); font-size: 1.8rem; }

.calc-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Pourquoi moi ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 1rem 0 3rem;
}

.why-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid rgba(201, 213, 205, 0.6);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.8rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--sage);
  box-shadow: var(--shadow-card);
}

.why-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 400;
  color: rgba(91, 140, 126, 0.35);
  line-height: 1;
  display: block;
  margin-bottom: 0.9rem;
}

.why-card h3 { font-size: 1.35rem; }
.why-card p { color: var(--ink-soft); font-size: 1.02rem; }

.why-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.why-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 35%; }
.why-photo figcaption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  background: rgba(253, 251, 247, 0.92);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink);
}

/* ---------- Déroulement ---------- */

.steps-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  padding: 0;
  margin: 2.4rem 0 0;
  position: relative;
}

.steps-list::before {
  /* route en pointillés qui relie les étapes */
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  border-top: 3px dashed rgba(91, 140, 126, 0.4);
  z-index: 0;
}

.step { position: relative; z-index: 1; }

.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  margin-bottom: 1.1rem;
  box-shadow: 0 0 0 8px var(--sand);
}

.step h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.step p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Zone & horaires ---------- */

.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.zone-block { margin-top: 1.8rem; }
.zone-block h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.zone-block h3 svg { width: 26px; height: 26px; color: var(--apricot-text); flex: none; }
.zone-block p { color: var(--ink-soft); }

.zone-honest {
  border-left: 3px solid var(--apricot);
  padding-left: 1.1rem;
  font-size: 1rem;
}

.zone-map {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.2rem;
}
.zone-map svg { width: 100%; height: auto; display: block; }

/* reliefs décoratifs */
.map-relief path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.16;
}

.map-halo {
  fill: var(--map-halo);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--transition);
}

/* itinéraire en pointillés + trace qui se dessine derrière le vélo */
.map-route {
  fill: none;
  stroke: var(--map-road);
  stroke-width: 3;
  stroke-dasharray: 1 11;
  stroke-linecap: round;
}

.map-trail {
  fill: none;
  stroke: var(--sage);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: map-trail-draw 9s ease-in-out infinite alternate;
}

@keyframes map-trail-draw {
  to { stroke-dashoffset: 0; }
}

/* communes */
.pin-ring {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  opacity: 0.35;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--transition), opacity var(--transition);
}
.pin-dot {
  fill: var(--sage-deep);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--transition);
}
.pin-core { fill: var(--cream); }

.pin-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  fill: var(--ink);
  transition: fill var(--transition);
}

.map-pin:hover .pin-dot { transform: scale(1.3); }
.map-pin:hover .pin-ring { transform: scale(1.25); opacity: 0.7; }
.map-pin:hover .pin-label { fill: var(--sage-ink); }
.map-pin:hover ~ .map-halo,
.map-pin:hover .map-halo { transform: scale(1.08); }

/* vélo électrique */
.map-bike {
  offset-path: path("M115 105 C 175 155, 215 195, 280 235 C 345 275, 390 300, 445 335");
  offset-rotate: 0deg;          /* le vélo reste droit : incliné sur la pente, il devient illisible */
  offset-distance: 0%;
  animation: map-bike-ride 9s ease-in-out infinite alternate;
}

.map-bike-glyph { transform: scale(1.15); }

.map-bike-pad { fill: var(--cream); }

.map-bike-glyph circle,
.map-bike-glyph path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-bike-spark { stroke: var(--apricot-text); stroke-width: 1.8; }

@keyframes map-bike-ride {
  to { offset-distance: 100%; }
}

/* navigateurs sans offset-path : le vélo reste posé au milieu du trajet */
@supports not (offset-path: path("M0 0 L1 1")) {
  .map-bike { transform: translate(280px, 235px); animation: none; }
  .map-trail { animation: none; stroke-dashoffset: 0.5; }
}

.map-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  fill: var(--ink-soft);
}

/* ---------- Avis ---------- */

.reviews-empty {
  max-width: 640px;
  margin: 1.5rem auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.4rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.reviews-quote {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--apricot);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.reviews-empty p { color: var(--ink-soft); margin-bottom: 1.6rem; }

.reviews .section-kicker, .reviews h2 { text-align: center; display: block; margin-inline: auto; }
.reviews h2 { max-width: none; }

/* ---------- FAQ ---------- */

.faq-inner { max-width: 780px; }

.faq-list { display: grid; gap: 0.9rem; margin-top: 2rem; }

.faq-list details {
  background: var(--white);
  border: 1.5px solid rgba(201, 213, 205, 0.6);
  border-radius: var(--radius);
  padding: 0 1.5rem;
  transition: border-color var(--transition);
}
.faq-list details[open] { border-color: var(--sage); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.2rem 0;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-marker {
  flex: none;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(91, 140, 126, 0.12);
}
.faq-marker::before, .faq-marker::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--sage-deep);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-marker::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-list details p {
  padding: 0 0 1.3rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 540;
  color: var(--sage-deep);
  text-decoration: none;
  margin: 0.8rem 0 0.5rem;
  transition: color var(--transition), transform var(--transition);
}
.contact-phone:hover { color: var(--apricot-text); transform: translateY(-2px); }
.contact-phone svg { width: 1em; height: 1em; flex: none; }

.contact-mail { font-size: 1.05rem; }
.contact-hours { color: var(--ink-soft); font-size: 1rem; max-width: 42ch; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1.2rem;
}

.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-weight: 700; font-size: 1rem; }

.form-field input,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--sage);   /* 3,7:1 : la limite du champ doit rester perceptible */
  border-radius: 14px;
  padding: 0.85rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #b3532f;
  box-shadow: 0 0 0 3px rgba(179, 83, 47, 0.14);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(91, 140, 126, 0.15);
}
.form-field ::placeholder { color: #6b7772; opacity: 1; }

.form-status { margin: 0; font-weight: 700; color: var(--sage-deep); min-height: 1.4em; }
.form-status.error { color: #b3532f; }

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

.site-footer {
  background: var(--ink);
  color: rgba(253, 251, 247, 0.8);
  padding: 3.5rem 0 2rem;
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(253, 251, 247, 0.15);
}

.brand-footer .brand-name { color: var(--cream); }
.brand-footer .brand-sub { color: var(--mist); }
.brand-footer .brand-leaf { color: var(--apricot); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; }

.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-nav a, .footer-contact a { color: rgba(253, 251, 247, 0.85); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--apricot); }

.footer-contact { display: grid; gap: 0.6rem; align-content: start; font-weight: 700; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.9rem;
  color: rgba(253, 251, 247, 0.62);
}
.footer-legal a { color: inherit; }
.footer-legal p { margin: 0; }

/* ---------- Animations d'apparition ---------- */

/* masqué uniquement si JS est là pour les révéler — sinon tout reste visible */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.25, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-card-advf, .hero-card-same { animation: none; }
  .map-bike { animation: none; offset-distance: 55%; }
  .map-trail { animation: none; stroke-dashoffset: 0.45; }
  * { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .steps-list::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin-inline: auto; }
  .hero-card-advf { left: -0.5rem; }
  .hero-card-same { right: -0.5rem; }

  .about-grid, .credit-grid, .zone-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; }

  /* Nav mobile */
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(201, 213, 205, 0.5);
    box-shadow: 0 24px 40px -20px rgba(47, 62, 70, 0.3);
    padding: 0.6rem 1.25rem 1.2rem;
    display: none;
  }
  .nav-open .nav-list { display: flex; }
  .nav-list li { border-bottom: 1px solid rgba(201, 213, 205, 0.4); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a:not(.btn) { display: block; padding: 0.95rem 0.2rem; font-size: 1.1rem; }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-cta { padding-top: 1rem; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 1.06rem; }

  .services-grid { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-card { position: static; max-width: none; margin-top: 0.9rem; animation: none; }
  .hero-visual { display: grid; }

  .about-photo-offset { width: 82%; margin-top: -3rem; }

  .why-photo img { aspect-ratio: 4 / 3; }

  .credit-calc { padding: 1.7rem 1.3rem; }
  .contact-form { padding: 1.7rem 1.3rem; }

  .footer-legal { flex-direction: column; }
}
