/* Camping du Clos Marin — site de démonstration La Balise.
   Aucune règle inline dans la page : la CSP du domaine (style-src 'self') les bloquerait. */

@font-face { font-family: "Archivo"; src: url("/exemples/camping/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/exemples/camping/fonts/atkinson.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #F6F1E7; --bg-2: #ECE4D2; --card: #FFFDF8; --ink: #12262C; --muted: #4B5D62;
  --line: rgba(18, 38, 44, .13); --line-2: rgba(18, 38, 44, .3);
  --deep: #0E3B4A; --deep-ink: #EAF4F6; --deep-muted: #B4D2D9;
  --acc: #F28C28; --acc-2: #E57E1C; --acc-ink: #12262C; --acc-text: #A54A06;
  --err: #B3261E; --err-light: #FFB4AB;
  --radius: 16px; --shadow: 0 1px 0 rgba(18, 38, 44, .05), 0 24px 44px -30px rgba(18, 38, 44, .5);
  --head: "Archivo", system-ui, sans-serif; --head-w: 800; --font: "Atkinson", system-ui, sans-serif;
}
.dark { --acc: #F5A04A; --acc-2: #F8B26A; --acc-ink: #12262C; --acc-text: #F5A04A; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); }
main, .foot { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: var(--head-w, 400); line-height: 1.02; letter-spacing: -0.01em; }
h1 em, h2 em { color: var(--acc-text); font-style: italic; }
.dark h1 em, .dark h2 em { color: var(--acc); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--acc-text); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--acc); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* Bandeau démo */
.demo-bar { position: relative; z-index: 60; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 8px 16px; background: #14181b; color: #c9d1d6; font: 400 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center; }
.demo-bar strong { color: #fff; font-weight: 700; }
.demo-bar a { color: #ffd479; font-weight: 700; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }
.demo-sim { color: #ffd479; font-weight: 700; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.is-scrolled { border-color: var(--line); box-shadow: 0 10px 24px -22px rgba(0,0,0,.5); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font: var(--head-w, 400) 25px/1 var(--head); letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--acc); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--acc); color: var(--acc-ink); }
.btn-main:hover { background: var(--acc-2); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.top-cta { min-height: 42px; padding: 8px 18px; font-size: 15px; }

/* Typo de section */
.kicker { font: 700 13px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--acc-text); margin-bottom: 14px; }
.dark .kicker { color: var(--acc); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--muted); }
.dark { background: var(--deep); color: var(--deep-ink); }
.dark .section-lead { color: var(--deep-muted); }
.alt { background: var(--bg-2); }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.dark .fine { color: var(--deep-muted); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.6vw, 82px); }
.hero-lead { margin-top: 20px; font-size: 19px; max-width: 540px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.hero-facts strong { color: var(--ink); }

/* Cartes, champs, pastilles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 15px/1.2 var(--font); cursor: pointer; transition: background-color .15s, border-color .15s; }
.chip:hover { border-color: var(--acc-text); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.field { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; color: #1a1a1a; font: 400 16px/1.4 var(--font); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--acc-text); outline-offset: 1px; }
.form-error { min-height: 1.3em; margin-top: 8px; color: var(--err); font-size: 14px; font-weight: 600; }
.dark .form-error { color: var(--err-light); }
/* Cartes claires posées sur un fond sombre : on reprend les couleurs du fond clair */
.dark .basket .fine, .dark .card .fine, .dark .item .fine { color: var(--muted); }
.dark .basket .form-error, .dark .card .form-error { color: var(--err); }
.dark .basket .basket-label { color: var(--muted); }
.dark .basket .btn-line, .dark .card .btn-line, .dark .item .btn-line { color: var(--ink); }
.dark .basket :focus-visible, .dark .card :focus-visible { outline-color: var(--ink); }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--card); color: var(--ink); }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 700 20px/1 var(--font); cursor: pointer; }
.stepper button:hover { background: var(--bg-2); }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; }
.step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 700 15px/1.2 var(--font); }
.step-label span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; }
.dark .step-label span { background: var(--acc); color: var(--acc-ink); }
.step { margin-bottom: 26px; }

/* Panier */
.book-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.basket { position: sticky; top: 92px; padding: 24px; border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.basket-label { font: 700 12px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--acc-text); }
.basket-lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.basket-lines li { display: flex; justify-content: space-between; gap: 12px; }
.basket-lines li.sub { color: var(--muted); font-size: 14px; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 4px; padding-top: 14px; border-top: 1.5px solid var(--line-2); font: 700 15px/1.2 var(--font); }
.basket-total strong { font: var(--head-w, 400) 34px/1 var(--head); }
.basket form { margin-top: 12px; }
.done { text-align: center; padding: 8px 0 0; }
.done h3 { font-size: 30px; margin: 12px 0 8px; }
.done-mark { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; }
.done-mark svg { width: 32px; height: 32px; }

/* FAQ */
.faq { margin: 0; display: grid; gap: 0; }
.faq > div { padding: 18px 0; border-top: 1px solid var(--line-2); }
.faq dt { font-weight: 700; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

/* Pied de page */
.foot { padding: 52px 0 96px; background: var(--ink); color: #d7dcd8; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; font-size: 15px; }
.foot .brand-name { color: #fff; font-size: 28px; }
.foot a { color: #fff; }
.foot-small { margin-top: 6px; font-size: 13px; opacity: .75; }
.foot-credit a { text-decoration: none; font-weight: 700; color: #ffd479; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); display: none; }

@media (max-width: 960px) {
  .hero-grid, .book-grid { grid-template-columns: 1fr; }
  .basket { position: static; }
  .nav { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.04; }
h1 em, h2 em { font-style: normal; }
.hero h1 { font-size: clamp(38px, 5.8vw, 70px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-2); }
.now { margin: -34px 22px 0; position: relative; padding: 18px 20px; }
.now-title { font: 700 14px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); }
.now-date { display: block; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.now-big { margin: 8px 0 4px; font: 800 26px/1.15 var(--head); }
.dark .chip { background: transparent; color: var(--deep-ink); border-color: rgba(234, 244, 246, .35); }
.dark .chip:hover { border-color: var(--acc); }
.dark .chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.dark .step-note { margin-top: 10px; color: var(--deep-muted); }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dates .field { margin-top: 0; }
.dark .book-steps .field > span { color: var(--deep-ink); }
.quick { margin-top: 12px; }
.plan { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #CFE5C4; }
.plan-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch { position: absolute; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 2px solid #1f6a3a; background: #5CB46E; color: #08240F; font: 800 14px/1 var(--font); cursor: pointer; transition: transform .12s; }
.pitch:hover:not(:disabled) { transform: scale(1.08); z-index: 2; }
.pitch:disabled { cursor: not-allowed; }
.pitch.taken { background: #C9C4B8; border-color: #9D978A; color: #5B564B; text-decoration: line-through; }
.pitch.dim { background: #DCE8D6; border-color: #B7C9AE; color: #6E7F68; opacity: .7; }
.pitch.sel { background: #F28C28; border-color: #12262C; color: #12262C; z-index: 3; box-shadow: 0 0 0 3px #fff; }
.legend { margin-top: 10px; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 4px; vertical-align: -2px; border: 1.5px solid #1f6a3a; }
.sw.free { background: #5CB46E; } .sw.taken { background: #C9C4B8; border-color: #9D978A; } .sw.sel { background: #F28C28; border-color: #12262C; } .sw.dim { background: #DCE8D6; border-color: #B7C9AE; }
.pitch-card { margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: rgba(234, 244, 246, .08); border: 1px solid rgba(234, 244, 246, .2); min-height: 64px; }
.pitch-card h3 { font-size: 22px; margin-bottom: 6px; }
.pitch-card ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 15px; }
.pitch-card .price { margin-top: 8px; font-weight: 700; color: var(--acc); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.opt { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(234, 244, 246, .22); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.opt small { display: block; color: var(--deep-muted); font-size: 12.5px; }
.opt label { display: flex; align-items: center; gap: 10px; cursor: pointer; width: 100%; }
.opt input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--acc); flex: none; }
.opt-step { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; }
.opt-step > div:first-child { min-width: 0; }
.opt .stepper { flex: none; background: transparent; color: var(--deep-ink); border-color: rgba(234, 244, 246, .35); }
.opt .stepper button:hover { background: rgba(234, 244, 246, .12); }
.basket-when { margin-top: 6px; font-weight: 700; }
.basket-lines .empty { color: var(--muted); }
.basket-acompte { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--muted); margin-bottom: 4px; }
.basket-acompte strong { color: var(--ink); }
.table-wrap { position: relative; overflow-x: auto; margin-bottom: 28px; }
.rates { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15.5px; }
.rates th, .rates td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rates th:first-child, .rates td:first-child { text-align: left; white-space: normal; }
.rates thead th { background: var(--deep); color: var(--deep-ink); font-size: 13.5px; }
.rates thead th small { display: block; font-weight: 400; opacity: .85; }
.rates tbody th { font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.side-photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-2); }
.pad { padding: 26px; }
.pad h3 { font-size: 26px; margin-bottom: 10px; }
.plain { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.infos-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.infos-grid h2 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 20px; }
@media (max-width: 960px) { .two, .infos-grid { grid-template-columns: 1fr; } .now { margin-inline: 0; margin-top: 14px; } .pitch { font-size: 12px; } }
@media (max-width: 520px) { .dates { grid-template-columns: 1fr; } }
.free-list { margin-top: 12px; }
.free-list .chip { min-height: 44px; }
@media (max-width: 520px) { .plan { aspect-ratio: 1 / 1; } }
.rates th:first-child, .rates td:first-child { min-width: 170px; }
