/* ============================================================
   Loca Santé — site vitrine
   Palette santé + finance : émeraude/teal, menthe, ardoise.
   Typographie auto-hébergée : Inter (texte) + Poppins (titres).
   ============================================================ */

/* ---------- Polices auto-hébergées (woff2) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/poppins-800.woff2") format("woff2"); }

:root {
  --ink:        #0c2a27;
  --ink-soft:   #3c5450;
  --muted:      #55675f;
  --primary:    #0e8a72;
  --primary-600:#0b7158;
  --primary-700:#085744;
  --mint:       #5fd9b6;
  --mint-soft:  #d6f4ea;
  --accent:     #c8a24a;
  --accent-ink: #8a6e1f;
  --accent-soft:#f5ecd2;
  --bg:         #ffffff;
  --bg-soft:    #f1f8f5;
  --bg-deep:    #0f463a;
  --line:       #e2ebe7;
  --white:      #ffffff;

  --radius:     18px;
  --radius-lg:  26px;
  --shadow-sm:  0 1px 2px rgba(12, 42, 39, .05), 0 6px 16px -6px rgba(12, 42, 39, .12);
  --shadow:     0 2px 6px rgba(12, 42, 39, .06), 0 26px 50px -20px rgba(12, 42, 39, .30);
  --shadow-lg:  0 8px 16px rgba(8, 87, 68, .10), 0 50px 90px -32px rgba(8, 87, 68, .48);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, "Apple Color Emoji", sans-serif;
  --font-head: "Poppins", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { --pad-y: 15px; --pad-x: 28px; font-size: 1.04rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  color: #fff; box-shadow: 0 10px 24px -10px rgba(11, 113, 88, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(11, 113, 88, .75); }

.btn-secondary {
  background: #fff; color: var(--primary-700); border-color: var(--primary);
}
.btn-secondary:hover { background: var(--mint-soft); border-color: var(--primary-700); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--primary-700); border-color: #bfe0d4; }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--primary); transform: translateY(-2px); }

.btn-soft { background: var(--mint-soft); color: var(--primary-700); border-color: #bfe6d8; }
.btn-soft:hover { background: #c4eede; transform: translateY(-2px); }

.btn:active { transform: translateY(0) scale(.99); }

/* Accessibilité : focus visible net (clavier) */
.btn:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { display: inline-grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(11,113,88,.35)); }
.brand-text { font-size: 1.25rem; letter-spacing: -0.03em; color: var(--ink); }
.brand-text span { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { font-weight: 600; font-size: .96rem; color: var(--ink-soft); transition: color .2s ease; }
.nav > a:hover { color: var(--primary); }
.nav .nav-cta { color: #fff; }
.nav .nav-cta::after { content: "↗"; margin-left: 4px; font-weight: 700; opacity: .9; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; transition: .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(26px, 3.5vw, 44px); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* Image de fond ancrée en bas et agrandie : le dessin du blueprint (centré-bas
     dans l'image source) remonte ainsi jusqu'en haut du hero, plus de bande vide. */
  background: url("assets/bg/blueprint-emerald.webp") no-repeat center bottom / 118% 175%;
  opacity: .2;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 80% -12%, var(--mint-soft) 0%, transparent 60%),
    radial-gradient(620px 420px at 92% 30%, rgba(200,162,74,.16) 0%, transparent 60%),
    radial-gradient(900px 520px at 12% 0%, #e3f3ec 0%, transparent 58%),
    linear-gradient(180deg, #e8f4ef 0%, #f4faf8 52%, #ffffff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin-bottom: 18px; }
.hero h1 .hl { color: var(--primary); position: relative; }
.lead { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(30px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line); }
.hero-trust li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-trust strong { font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.hero-trust span { font-size: .82rem; color: var(--muted); }

/* Hero visual : carte appareil */
.hero-visual { display: grid; place-items: center; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; width: 115%; height: 115%; z-index: 0;
  background: radial-gradient(circle at 60% 45%, rgba(95,217,182,.30), transparent 62%);
  filter: blur(10px);
}
.device-card { position: relative; z-index: 1; width: min(420px, 92%); aspect-ratio: 4/4.4; }
.device-glow {
  position: absolute; inset: -10% -6% 12% -6%;
  background: linear-gradient(160deg, var(--primary) 0%, #0a4d3d 100%);
  border-radius: 40px; box-shadow: var(--shadow-lg); transform: rotate(-4deg);
}
.device {
  position: absolute; inset: 8% 14% 6% 14%;
  background: linear-gradient(160deg, #f7fffb 0%, #e3f5ee 100%);
  border-radius: 28px; box-shadow: inset 0 1px 0 #fff, 0 18px 40px -20px rgba(0,0,0,.5);
  padding: 20px; display: flex; flex-direction: column; gap: 18px;
}
.device-screen {
  background: #06251f; border-radius: 14px; padding: 18px; color: #eafaf4;
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 0 2px 14px rgba(0,0,0,.5);
}
.screen-row { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.screen-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: pulse 1.8s infinite; }
.screen-bars { display: flex; gap: 6px; align-items: flex-end; height: 40px; }
.screen-bars i { flex: 1; background: linear-gradient(var(--mint), var(--primary)); border-radius: 4px; opacity: .85; }
.screen-bars i:nth-child(1){ height: 55%; } .screen-bars i:nth-child(2){ height: 100%; } .screen-bars i:nth-child(3){ height: 72%; }
.device-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.device-keys span { height: 24px; background: #fff; border-radius: 8px; box-shadow: var(--shadow-sm); }

.hero-photo-frame {
  position: absolute; inset: 4% 5% 4% 5%; overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #eef7f3 100%);
  border-radius: 28px; box-shadow: inset 0 1px 0 #fff, 0 26px 50px -22px rgba(0,0,0,.55);
  display: grid; place-items: center; padding: 6px;
  transform: scale(1.12) rotate(4deg); transform-origin: center;
}
.hero-photo { width: 100%; height: 100%; object-fit: contain; transform: scale(1.18); mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 24px rgba(8, 40, 30, .22)); }

.float-chip {
  position: absolute; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .9rem; color: var(--ink);
}
.float-chip small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); }
.chip-1 { left: -6%; bottom: 16%; flex-direction: column; align-items: flex-start; gap: 0; animation: float 5s ease-in-out infinite; }
.chip-1 strong { color: var(--primary); font-size: 1.05rem; }
.chip-2 { right: -4%; top: 14%; animation: float 5s ease-in-out infinite 1.2s; }

@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
@keyframes pulse { 0%,100%{ opacity: 1; } 50%{ opacity: .35; } }

/* ---------- Bandeau cibles ---------- */
.strip { background: var(--mint-soft); color: var(--primary-700); border-block: 1px solid #cdeee1; }
.strip-inner { padding-block: 18px; text-align: center; }
.strip-inner p { font-size: 1rem; }
.strip-inner strong { color: var(--ink); }

/* ---------- Sections génériques ---------- */
.section { padding: clamp(42px, 6vw, 72px) 0; }
.section-soft {
  background:
    radial-gradient(720px 400px at 0% 0%, rgba(95,217,182,.20), transparent 60%),
    radial-gradient(620px 380px at 100% 100%, rgba(200,162,74,.10), transparent 62%),
    linear-gradient(135deg, #ecf6f1 0%, #f5fbf8 58%, #ffffff 100%);
}
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; letter-spacing: -0.03em; }
.section-head h2::after { content: ""; display: block; width: 54px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-ink)); margin: 16px auto 0; }
.section-head.left { text-align: left; }
.section-head.left h2::after { margin-left: 0; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #2ec9a6, #0e8a72);
  color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
  box-shadow: 0 8px 18px -8px rgba(20,160,133,.7);
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; }
.step a { color: var(--primary-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Cards produits ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

/* Groupes catalogue : étagère portables (3-4) + 2 produits (duo) */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; align-items: stretch; }
/* 4 portables : 2×2 équilibré en tablette (évite le 3 + 1) — carrousel < 720px, 4 de front ≥ 1000px */
@media (min-width: 721px) and (max-width: 1000px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
}
.grid-duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; max-width: 760px; margin-inline: auto; }
.group-label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary-600); margin: 0 0 14px; }
.swipe-hint { display: none; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.8,.25,1), box-shadow .3s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card-featured {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent), var(--primary)) border-box;
  border: 2px solid transparent; box-shadow: var(--shadow);
}
.card-featured:hover { box-shadow: var(--shadow-lg); }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-ink)); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(200,162,74,.9);
}
.card-top { display: flex; flex-direction: column; gap: 4px; }
.card-top h3 { font-size: 1.4rem; }
.card-tag { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.card-desc { color: var(--ink-soft); font-size: .96rem; height: 4.32em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-feats { display: flex; flex-direction: column; gap: 7px; }
.card-feats li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--ink-soft); }
.card-feats li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 9px;
  border-left: 2.4px solid var(--primary); border-bottom: 2.4px solid var(--primary);
  transform: rotate(-45deg); border-radius: 1px;
}
.card-price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
.card-price .price { font-size: 2.3rem; font-weight: 800; color: var(--primary-700); letter-spacing: -.04em; white-space: nowrap; }
.card-price .per { color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.card .btn { justify-content: center; margin-top: 4px; }
.cards-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 22px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm), inset 0 -18px 30px -26px rgba(8,40,30,.22);
  transition: transform .3s cubic-bezier(.2,.8,.25,1), box-shadow .3s ease;
}
.feature::before {
  content: ""; position: absolute; right: -6%; bottom: -10%; width: 60%; height: 76%; z-index: 0; pointer-events: none;
  background: url("assets/bg/blueprint-emerald.webp") no-repeat right bottom / contain; opacity: .06;
}
.feature > * { position: relative; z-index: 1; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--mint-soft) 0%, var(--accent-soft) 100%); margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(138,110,31,.16), 0 10px 18px -10px rgba(11,113,88,.5);
}
.feature-ic svg { width: 27px; height: 27px; fill: none; stroke: var(--primary-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(even) .feature-ic svg { stroke: var(--accent-ink); }
.feature h3 { font-size: 1.14rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- FAQ ---------- */
.rule-before, .rule-after { display: none; }
.rule-before { margin: 0 0 clamp(20px, 4vw, 32px); }
.rule-after { margin: clamp(24px, 4vw, 36px) 0 0; }
.rule-mobile { display: none; border: 0; height: 1px; background: var(--line); margin: 6px 0 18px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 22px; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent-ink);
  transition: transform .25s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; color: var(--ink-soft); }
.faq-item a { color: var(--primary-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- CTA final ---------- */
.cta { padding: clamp(34px, 5vw, 60px) 0; }
.cta-inner {
  text-align: center; background: linear-gradient(140deg, var(--primary-600) 0%, var(--primary-700) 100%);
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 70px) 30px; color: #eafaf4;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    /* Blueprint ancré en bas et agrandi : le dessin (centré-bas dans l'image)
       remonte jusqu'en haut de la bannière, plus de bande foncée vide. */
    url("assets/bg/blueprint-white.webp") no-repeat center bottom / 100% 165%,
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 30px 30px,
    radial-gradient(600px 320px at 85% -10%, rgba(95,217,182,.28), transparent 62%);
  opacity: 1;
}
.cta-inner > * { position: relative; }
.cta-inner .btn-primary { background: #fff; color: var(--primary-700); box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.cta-inner .btn-primary:hover { background: #f3fbf8; transform: translateY(-2px); }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.cta-inner p { color: #ffffff; font-size: 1.08rem; margin-bottom: 28px; }

/* ---------- Bande pré-footer (partenaire facturation) ---------- */
.prefooter { background: var(--bg-soft); border-top: 1px solid var(--line); }
.prefooter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-block: clamp(28px, 4vw, 42px); border-bottom: 2px solid var(--line); }
.prefooter-text { display: flex; align-items: center; gap: 16px; }
.prefooter-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(140deg, #e6f8f0, #c4eede); box-shadow: inset 0 0 0 1px rgba(14,138,114,.14); }
.prefooter-ic svg { width: 27px; height: 27px; fill: none; stroke: var(--primary-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prefooter h3 { font-size: 1.18rem; margin-bottom: 3px; }
.prefooter p { color: var(--ink-soft); font-size: .96rem; max-width: 62ch; }
.prefooter .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .prefooter-inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .prefooter-text { align-items: flex-start; gap: 14px; }
  .prefooter-ic { margin-top: 2px; }
  .prefooter .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #d3e8e0; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text span { color: var(--mint); }
.footer-brand p { margin-top: 14px; max-width: 38ch; font-size: .95rem; color: #cfe6dd; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: .95rem; color: #d3e8e0; transition: color .2s ease; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-block: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: #bcd6cc;
}
.footer-bottom a { color: #e7f3ee; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--mint); }

/* ---------- Nav : page active ---------- */
.nav > a[aria-current="page"] { color: var(--primary); }
.nav > a[aria-current="page"]:not(.nav-cta)::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--primary); margin-top: 3px;
}

/* ---------- Page hero (en-tête des pages internes) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(22px, 4vw, 44px) 0 clamp(18px, 3vw, 30px); }
.page-hero + .section, .page-hero + .product { padding-top: clamp(20px, 4vw, 36px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 85% -20%, var(--mint-soft) 0%, transparent 60%),
    linear-gradient(180deg, #fbfffd 0%, #ffffff 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/bg/blueprint-emerald.webp") no-repeat center right / cover;
  opacity: .10;
}
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 8px 0 14px; max-width: 18ch; }
.page-hero .lead { color: var(--ink-soft); font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 56ch; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--primary-600); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted); }

/* ---------- Fiche produit ---------- */
.product { padding: clamp(36px, 6vw, 64px) 0; }
.product-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.product-media { grid-column: 1; grid-row: 1; }
.product-info { grid-column: 2; grid-row: 1 / span 2; }
.product-extra { grid-column: 1; grid-row: 2; display: grid; gap: 16px; align-content: start; margin-top: 18px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.aside-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.aside-card p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 14px; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-partner { background: linear-gradient(160deg, var(--mint-soft) 0%, #ffffff 70%); border-color: #cdeee1; }
.aside-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid #e7d6a6; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

.product-visual {
  position: relative; border-radius: var(--radius-lg); padding: 40px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--bg-deep) 100%);
  display: grid; place-items: center; min-height: 360px; box-shadow: var(--shadow);
}
.product-visual .device-card { width: min(300px, 80%); }
.product-visual .device-glow { background: rgba(255,255,255,.10); box-shadow: none; }

.product-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 6px 0 10px; }
.product-brand { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-600); }
.product-info .lead { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 22px; }

.price-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 24px;
}
.price-box .price { font-size: 2.7rem; font-weight: 800; letter-spacing: -.04em; color: var(--primary-700); }
.price-box .per { color: var(--muted); font-weight: 600; }
.price-box .price-note { margin-top: 4px; color: var(--muted); font-size: .88rem; }
.price-box .btn { width: 100%; justify-content: center; margin-top: 16px; }
.price-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.price-perks li { font-size: .78rem; font-weight: 700; color: var(--primary-700);
  background: #fff; border: 1px solid #cdeee1; padding: 5px 11px; border-radius: 999px; }
.price-perks li::before { content: "✓ "; color: var(--primary); }

/* Bloc "Inclus dans votre location" */
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perks-grid .perk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.perks-grid .perk:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.perks-grid .perk-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--mint-soft), var(--accent-soft)); margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(138,110,31,.16); }
.perks-grid .perk-ic svg { width: 23px; height: 23px; fill: none; stroke: var(--primary-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perks-grid .perk:nth-child(even) .perk-ic svg { stroke: var(--accent-ink); }
.perks-grid h3 { font-size: 1.04rem; margin-bottom: 6px; }
.perks-grid p { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .perks-grid { grid-template-columns: 1fr; } }

.spec-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 8px 0 24px; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-weight: 600; }
.spec-list dd { color: var(--ink); font-weight: 600; text-align: right; }

.checklist { display: grid; gap: 10px; margin: 6px 0 8px; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 10px;
  border-left: 2.6px solid var(--primary); border-bottom: 2.6px solid var(--primary);
  transform: rotate(-45deg); border-radius: 1px;
}

/* ---------- Prose (pages texte) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 36px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { display: grid; gap: 8px; margin: 6px 0 18px; }
.prose ul li { position: relative; padding-left: 22px; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.prose a { color: var(--primary-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .legal-fineprint { font-size: .85rem; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.prose .todo { background: #fff4d6; color: #8a5a00; padding: 0 5px; border-radius: 4px; font-style: italic; font-weight: 600; }

/* ---------- Stat band ---------- */
.stat-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%); color: #eafaf4; }
.stat-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    /* Blueprint centré et couvrant toute la bande (plus de couture à droite). */
    url("assets/bg/blueprint-white.webp") no-repeat center center / cover,
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 30px 30px;
  opacity: 1; }
.stat-band > .container { position: relative; z-index: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-block: clamp(34px, 5vw, 54px); text-align: center; }
.stat-grid strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; letter-spacing: -.02em; }
.stat-grid span { font-size: .9rem; color: rgba(255, 255, 255, .85); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 52px); align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--mint-soft); display: grid; place-items: center; flex: 0 0 auto; }
.contact-info .info-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--primary-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-info h3 { font-size: 1.02rem; margin-bottom: 2px; }
.contact-info p, .contact-info a { color: var(--ink-soft); font-size: .96rem; }
.contact-info a { color: var(--primary-600); font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--mint-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.form-status { margin-top: 14px; font-weight: 600; color: var(--primary-600); display: none; }
.form-status.show { display: block; }

/* ---------- Mini-grid produits (catalogue / liés) ---------- */
.section-head.left { text-align: left; margin-left: 0; margin-right: 0; max-width: none; }
.related { padding-top: 8px; }
.cards-2 { max-width: 760px; }

/* ---------- Image produit dans les cartes ---------- */
.card-media {
  display: block; position: relative; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 92% at 50% 20%, #f3faf6 0%, #ffffff 72%);
  border: 1px solid var(--line); margin-bottom: 4px; aspect-ratio: 1 / 1;
}
.card-media::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 13%; height: 7%;
  background: radial-gradient(ellipse at center, rgba(8,87,68,.20), transparent 70%);
  filter: blur(3px); z-index: 0;
}
.card-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  padding: 20px; mix-blend-mode: multiply; transition: transform .35s ease; }
.card:hover .card-img { transform: scale(1.05) translateY(-2px); }

/* ---------- Image sur la fiche produit ---------- */
.product-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 92% at 50% 22%, #f3faf6 0%, #ffffff 72%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; place-items: center; padding: 40px; aspect-ratio: 1 / 1;
}
.product-media::after {
  content: ""; position: absolute; left: 26%; right: 26%; bottom: 14%; height: 6%;
  background: radial-gradient(ellipse at center, rgba(8,87,68,.22), transparent 70%);
  filter: blur(4px); z-index: 0;
}
.product-photo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- Reveal on scroll ---------- */
/* Visible par défaut (sûr sans JS / si le script ne se charge pas) */
.reveal { opacity: 1; transform: none; }
/* État de départ de l'animation appliqué uniquement quand le JS est actif */
.js .reveal { opacity: 0.001; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media, .product-info, .product-extra { grid-column: auto; grid-row: auto; }
  .product-extra { margin-top: 4px; }
  .contact-grid { grid-template-columns: 1fr; }
  .rule-mobile { display: block; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
}

/* Menu burger jusqu'à la tablette paysage : la barre inline (logo + 5 liens + CTA)
   ne tient sur une seule ligne qu'à partir de ~1000px ; en dessous, « Comment ça
   marche » / « À propos » wrappaient sur 2 lignes et le header débordait (iPad 768). */
@media (max-width: 1000px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px); gap: 4px;
    padding: 14px 22px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 8px; justify-content: center; border-bottom: 0; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .device-card { width: min(290px, 82%); }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
  .hero-trust { gap: 10px; }
  .hero-trust strong { font-size: 1.12rem; }
  .hero-trust span { font-size: .7rem; }

  /* Groupe de 3 : carrousel horizontal (swipe) sur mobile */
  .shelf {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 16px 0 14px; scroll-padding-inline: 22px; -webkit-overflow-scrolling: touch;
  }
  .shelf > .card { flex: 0 0 72%; scroll-snap-align: start; }
  /* Carte de carrousel compacte (≈ moitié de hauteur) */
  .shelf .card { padding: 14px 16px; gap: 7px; }
  .shelf .card-media { aspect-ratio: auto; height: 118px; margin-bottom: 2px; }
  .shelf .card-img { padding: 8px; }
  .shelf .card-media::after { bottom: 9%; }
  .shelf .card-top h3 { font-size: 1.18rem; }
  .shelf .card-tag { font-size: .66rem; }
  .shelf .card-desc { -webkit-line-clamp: 2; min-height: 0; font-size: .86rem; }
  .shelf .card-price { padding-top: 2px; }
  .shelf .card-price .price { font-size: 1.6rem; }
  .shelf .card .btn { padding: 9px 12px; font-size: .86rem; }
  .shelf::-webkit-scrollbar { height: 6px; }
  .shelf::-webkit-scrollbar-thumb { background: #cdeee1; border-radius: 999px; }
  .swipe-hint { display: flex; align-items: center; gap: 6px; justify-content: center;
    color: var(--accent-ink); font-size: .82rem; font-weight: 700; margin-top: 4px; }
  /* Groupe de 2 : reste en 2 colonnes même sur mobile */
  .grid-duo { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  /* Duo compact sur petit écran (2 colonnes maintenues) */
  .grid-duo > .card { padding: 16px 13px; }
  .grid-duo .card-media { margin-bottom: 2px; }
  .grid-duo .card-top h3 { font-size: 1.12rem; }
  .grid-duo .card-tag { font-size: .66rem; }
  .grid-duo .card-desc { font-size: .84rem; min-height: 0; -webkit-line-clamp: 4; }
  .grid-duo .card-price { column-gap: 4px; }
  .grid-duo .card-price .price { font-size: 1.5rem; }
  .grid-duo .card-price .per { font-size: .82rem; }
  .grid-duo .btn { padding: 10px 12px; font-size: .85rem; }
  .shelf > .card { flex-basis: 72%; }
}

/* ---------- Raffinements esthétiques (profondeur des sections) ---------- */
.section-soft { position: relative; overflow: hidden; }
.section-soft > .container { position: relative; z-index: 1; }
.section-soft::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(14, 138, 114, .055) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}
/* Même texture discrète sur les sections au fond blanc */
.section:not(.section-soft) { position: relative; }
.section:not(.section-soft) > .container { position: relative; z-index: 1; }
.section:not(.section-soft)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(14, 138, 114, .11) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 50% 40%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 90% at 50% 40%, #000 60%, transparent 100%);
}
.eyebrow { box-shadow: inset 0 0 0 1px rgba(138,110,31, .18); }

/* Signature : micro-animations discrètes */
.hero-visual::before { animation: haloPulse 8s ease-in-out infinite; }
@keyframes haloPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.09); opacity: 1; } }

.card-media { position: relative; }
.card-img { will-change: transform; }

.cta-inner::after {
  content: ""; position: absolute; top: -60%; left: -30%; width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.10), transparent);
  transform: rotate(8deg); animation: ctaSheen 9s ease-in-out infinite; pointer-events: none;
}
@keyframes ctaSheen { 0%, 70% { transform: translateX(-40%) rotate(8deg); } 100% { transform: translateX(320%) rotate(8deg); } }

.feature-ic { transition: transform .25s ease; }
.feature:hover .feature-ic { transform: translateY(-3px) scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Cadres image ----------
   Contiennent une vraie <img>. Si l'image est absente (404), le onerror la masque
   et le fond de marque ci-dessous reste affiché — aucun texte « photo à fournir ». */
.img-slot {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  /* Fallback de marque visible quand aucune image n'est chargée */
  background: linear-gradient(135deg, var(--mint-soft) 0%, #e3f3ec 60%, #d2efe2 100%);
}
.img-slot > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; border-radius: inherit;
}

/* Bandeau média + texte (mise en situation) */
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.media-text .img-slot { aspect-ratio: 5 / 4; min-height: 280px; }
.media-text-copy h2 { margin: 6px 0 12px; }
.media-text-copy p { color: var(--ink-soft); margin-bottom: 18px; }
/* Emplacement large (bannière) pour les pages internes */
.img-slot.slot-wide { aspect-ratio: 21 / 8; min-height: 200px; margin-top: 26px; }

@media (max-width: 760px) {
  .media-text { grid-template-columns: 1fr; gap: 22px; }
  .media-text .img-slot { aspect-ratio: 4 / 3; min-height: 200px; }
  .img-slot.slot-wide { aspect-ratio: 4 / 3; }
}
