/* VOICE   soin, calme et local : un praticien de village qui vient chez vous
   IDEA    la tournée à domicile : la carte du Biterrois autour de Bassan, comme un plan de visite
   PICTURE carte schématique des communes, cercles de 10/20/30 km, repère maison sur Bassan
   COLOUR  blanc, encre vert-noir, aplats pétrole profond, sable du littoral, accent corail
   TYPE    Schibsted Grotesk (variable, auto-hébergée) pour tout
   LAYOUT  laptop : titre + boutons à gauche, carte à droite ; téléphone : titre, carte, boutons, barre RDV fixe */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --ink: #0f2228;
  --muted: #4b5f65;
  --line: #dde5e6;
  --petrol: #0d4652;
  --petrol-2: #0a363f;
  --on-petrol: #f4fbfa;
  --on-petrol-2: #c3d8db;
  --sand: #f5eee2;
  --chip: #f5eee2;
  --coral: #c93f1b;
  --coral-ink: #ffffff;
  --coral-soft: #ff8a66;
  --coral-soft-ink: #0b171b;
  --coral-text: #b83a18;
  --focus: #ff8a66;
  --map-land: #f6efe3;
  --map-sea: #cfe5ec;
  --map-wave: #a9cdd8;
  --map-coast: #8bb5c1;
  --map-zone: rgba(201, 63, 27, .10);
  --map-ring: rgba(13, 70, 82, .45);
  --map-ringlab: #0d4652;
  --map-sealab: #3f7584;
  --map-dot: #55696e;
  --map-hl: #c93f1b;
  --map-ink: #0f2228;
  --map-minor: #4b5f65;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b171b;
    --bg-elev: #11232a;
    --ink: #e8f0f0;
    --muted: #a9bcc0;
    --line: #24393f;
    --petrol: #0f3c46;
    --petrol-2: #081f25;
    --on-petrol: #eef7f6;
    --on-petrol-2: #b5ccd0;
    --sand: #10242a;
    --chip: #16303a;
    --coral: #ff8a66;
    --coral-ink: #0b171b;
    --coral-text: #ff9a7a;
    --map-land: #13282e;
    --map-sea: #0c3440;
    --map-wave: #1b4a57;
    --map-coast: #2f6676;
    --map-zone: rgba(255, 138, 102, .11);
    --map-ring: rgba(181, 204, 208, .45);
    --map-ringlab: #b5ccd0;
    --map-sealab: #7fb0bf;
    --map-dot: #8ea4a9;
    --map-hl: #ff8a66;
    --map-ink: #e8f0f0;
    --map-minor: #a9bcc0;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b171b;
  --bg-elev: #11232a;
  --ink: #e8f0f0;
  --muted: #a9bcc0;
  --line: #24393f;
  --petrol: #0f3c46;
  --petrol-2: #081f25;
  --on-petrol: #eef7f6;
  --on-petrol-2: #b5ccd0;
  --sand: #10242a;
  --chip: #16303a;
  --coral: #ff8a66;
  --coral-ink: #0b171b;
  --coral-text: #ff9a7a;
  --map-land: #13282e;
  --map-sea: #0c3440;
  --map-wave: #1b4a57;
  --map-coast: #2f6676;
  --map-zone: rgba(255, 138, 102, .11);
  --map-ring: rgba(181, 204, 208, .45);
  --map-ringlab: #b5ccd0;
  --map-sealab: #7fb0bf;
  --map-dot: #8ea4a9;
  --map-hl: #ff8a66;
  --map-ink: #e8f0f0;
  --map-minor: #a9bcc0;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.02em; font-weight: 800; margin-bottom: 18px; }
h2 { font-size: clamp(27px, 3.1vw, 38px); line-height: 1.1; letter-spacing: -.015em; font-weight: 750; margin-bottom: 18px; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 1em; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: max(5vw, 16px); }
.narrow > * { max-width: 860px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bg); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.btn.small { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.cta { background: var(--coral); color: var(--coral-ink); }
.cta:hover { filter: brightness(1.08); }
.ghost { background: transparent; color: inherit; border-color: currentColor; }
.ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.hero .cta, .petrol .cta { background: var(--coral-soft); color: var(--coral-soft-ink); }

/* en-tête */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { position: relative; display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand b { display: block; font-size: 17px; line-height: 1.15; }
.brand small { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.mark { width: 40px; height: 40px; flex: none; }
.mk-bg { fill: var(--petrol); }
.mk-v { fill: #f4fbfa; }
.mk-a { fill: #ff8a66; }
#menu { margin-left: auto; }
#menu ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
#menu a { display: block; padding: 10px 11px; border-radius: 9px; font-size: 15px; font-weight: 600; text-decoration: none; }
#menu a:hover { background: var(--sand); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 9px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.menu-btn span { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

/* hero */
.hero { background: var(--petrol); color: var(--on-petrol); padding-block: clamp(30px, 4.5vw, 64px); }
.hero-in { display: grid; gap: clamp(26px, 4vw, 52px); align-items: center; }
.hero h1.long { font-size: clamp(30px, 3.6vw, 44px); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--on-petrol-2); max-width: 34em; }
.crumb { font-size: 14px; color: var(--on-petrol-2); margin-bottom: 14px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.facts { list-style: none; margin: 0; padding: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(255, 255, 255, .2); }
.facts b { display: block; font-size: 20px; line-height: 1.2; white-space: nowrap; }
.facts span { display: block; font-size: 14px; line-height: 1.4; color: var(--on-petrol-2); margin-top: 3px; }
.hero-map { margin: 0; border-radius: 20px; overflow: hidden; background: var(--map-land); color: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.hero-map figcaption { padding: 11px 16px 13px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--map-hl); margin-right: 7px; vertical-align: -1px; }
.zone-key { width: 14px; height: 14px; background: var(--map-zone); border: 2px dashed var(--map-hl); vertical-align: -2px; }

/* carte */
.map { display: block; width: 100%; height: auto; }
.map .land { fill: var(--map-land); }
.map .sea { fill: var(--map-sea); }
.map .sea-tex { opacity: .7; }
.map .wave { stroke: var(--map-wave); stroke-width: 1.2; }
.map .coast { fill: none; stroke: var(--map-coast); stroke-width: 2.2; stroke-linejoin: round; }
.map .zone { fill: var(--map-zone); }
.map .zone-edge { fill: none; stroke: var(--map-hl); stroke-width: 2; stroke-dasharray: 8 6; opacity: .8; }
.map .ringlab { font-size: 14px; font-weight: 800; fill: var(--map-hl); paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-linejoin: round; }
.map .sealab { font-size: 15px; font-style: italic; fill: var(--map-sealab); letter-spacing: .03em; }
.map .dot { fill: var(--map-dot); opacity: .75; }
.map .dot.hl { fill: var(--map-hl); opacity: 1; }
.map .dot.out { opacity: .35; }
.map .lab.out { fill: var(--map-minor); font-weight: 600; }
.map .lab { font-size: 15px; font-weight: 650; fill: var(--map-ink); paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-linejoin: round; }
.map .lab.big { font-size: 19px; font-weight: 800; }
.map .lab.minor { font-size: 13px; font-weight: 500; fill: var(--map-minor); }
.map .lab.hl { fill: var(--map-hl); font-weight: 700; }
.map .home .pin { fill: var(--map-hl); stroke: var(--map-land); stroke-width: 2; }
.map .home .house { fill: #ffffff; }
.map .home-lab { font-size: 19px; font-weight: 800; }

/* bandes */
.band { padding-block: clamp(46px, 6vw, 90px); }
.band.sand { background: var(--sand); }
.band.petrol { background: var(--petrol); color: var(--on-petrol); }
.intro { max-width: 46em; color: var(--muted); font-size: 18px; }
.note { max-width: 62em; margin: 22px 0 0; font-size: 15px; color: var(--muted); }

.why { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why svg { display: block; width: 58px; height: 58px; padding: 12px; margin-bottom: 16px; border-radius: 16px; background: var(--sand); fill: none; stroke: var(--petrol); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.why p { color: var(--muted); margin: 0; }

.split { display: grid; gap: 40px; align-items: start; }
.split > div > p { max-width: 38em; }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.id-card h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 18px 0 3px; }
.id-card h3:first-child { margin-top: 0; }
.id-card p { margin: 0; }

.motifs { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.motifs li { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px; }
.band.sand .motifs li { border-color: transparent; }
.motifs p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: s; background: var(--bg); border-radius: 16px; padding: 22px 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--petrol); color: var(--on-petrol); font-weight: 800; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.price { display: grid; gap: 30px; align-items: center; }
.price-big h2 { margin-bottom: 6px; }
.amount { font-size: clamp(68px, 9vw, 108px); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 0 0 8px; white-space: nowrap; }
.price-big p:last-child { color: var(--on-petrol-2); font-size: 18px; margin: 0; }
.price-list { list-style: none; padding: 0; margin: 0; }
.price-list li { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .2); color: var(--on-petrol-2); }
.price-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.price-list b { display: block; color: var(--on-petrol); font-size: 17px; margin-bottom: 2px; }

.zones { display: grid; gap: 24px; margin-top: 30px; }
.zones > div { display: grid; gap: 12px; }
.zones h3 { margin: 6px 0 0; }
.towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 13px; border-radius: 999px; background: var(--chip); font-size: 15px; line-height: 1.3; }
.towns em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; }
.card .towns { display: block; }
.card .towns li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line); }
.small-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.sectors { display: grid; gap: 14px; margin-top: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sector { display: block; padding: 22px 24px; border-radius: 16px; background: var(--petrol); color: var(--on-petrol); text-decoration: none; }
.sector b { display: block; font-size: 19px; margin-bottom: 4px; }
.sector b::after { content: " →"; color: var(--coral-soft); }
.sector span { color: var(--on-petrol-2); font-size: 15px; }
.sector:hover b { text-decoration: underline; text-underline-offset: 3px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 700; font-size: 18px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 28px; font-weight: 400; color: var(--coral-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 46em; }
.more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-weight: 600; }

.closing-in > * { max-width: 820px; }
.closing p { color: var(--on-petrol-2); font-size: 18px; max-width: 40em; }
.closing .ctas { margin-bottom: 0; }

.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p { max-width: 46em; }

/* pied de page */
.foot { background: var(--petrol-2); color: var(--on-petrol); padding-top: 50px; }
.foot-in { display: grid; gap: 30px; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.foot .brand small { color: var(--on-petrol-2); }
.foot-id p { color: var(--on-petrol-2); font-size: 15px; margin: 16px 0 0; max-width: 26em; }
.foot .rpps { font-size: 14px; }
.foot h2 { font-size: 15px; font-weight: 700; color: var(--on-petrol-2); margin: 6px 0 12px; letter-spacing: 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin: 0 0 9px; font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.copy { margin: 40px auto 0; padding-block: 18px 26px; font-size: 13px; color: var(--on-petrol-2); }

.bar { display: none; }

/* mouvement : un léger battement autour de Bassan */
.map .pulse { fill: none; stroke: var(--map-hl); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .map .pulse { animation: pulse 3.2s ease-out infinite; }
  @keyframes pulse { 0% { transform: scale(.4); opacity: .7; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
}

/* grands écrans */
@media (min-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
  .split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; }
  .price { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
}
@media (min-width: 760px) {
  .zones > div { grid-template-columns: 11em minmax(0, 1fr); align-items: start; }
}

/* tablette */
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  #menu { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(5vw, 16px) 18px; box-shadow: 0 14px 24px -18px rgba(0, 0, 0, .35); }
  #menu.open { display: block; }
  #menu ul { flex-direction: column; }
  #menu a { font-size: 17px; padding: 12px 8px; }
  .top-cta { order: 3; }
  .menu-btn { order: 2; }
}
@media (max-width: 960px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-id { grid-column: 1 / -1; }
}

/* téléphone */
@media (max-width: 700px) {
  .top-cta { display: none; }
  .bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(0, 0, 0, .3); }
  .bar .btn { min-height: 48px; }
  .bar .ghost { color: var(--ink); }
  body { padding-bottom: 80px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .brand small { font-size: 12.5px; }
  .ctas .btn { width: 100%; }
  .hero-in { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-txt { display: contents; }
  .hero .crumb { order: 0; }
  .hero h1 { order: 1; }
  .hero-map { order: 2; margin-bottom: 20px; }
  .hero .lead { order: 3; }
  .hero .ctas { order: 4; margin-top: 4px; }
  .hero .facts { order: 5; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .facts li { display: flex; align-items: baseline; gap: 12px; }
  .facts b { flex: none; width: 6.4em; font-size: 18px; }
  .facts span { margin: 0; }
  .why, .steps, .motifs, .sectors, .foot-in { grid-template-columns: minmax(0, 1fr); }
  .why { gap: 24px; }
  .why li { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 16px; }
  .why svg { grid-row: span 2; margin: 0; }
  .card { padding: 20px; }
  .map .lab.minor, .map .minor-dot { display: none; }
  .map .lab { font-size: 23px; stroke-width: 5px; }
  .map .lab.big { font-size: 27px; }
  .map .home-lab { font-size: 27px; }
  .map .ringlab { font-size: 19px; stroke-width: 5px; }
  .map .sealab { font-size: 21px; }
  .map .lab.m-hide { display: none; }
}
