:root {
  --ink: #1b1740;
  --ink-soft: #565177;
  --paper: #fffaf3;
  --card: #ffffff;
  --line: #efe5d8;
  --accent: #ff5a5f;
  --accent-hover: #f0444a;
  --accent-dark: #c2343b;
  --sun: #ffc53d;
  --sun-soft: #fff1c9;
  --mint: #2ec4b6;
  --mint-soft: #ddf6f2;
  --pink: #ff8fb1;
  --lilac: #8b7cf6;
  --peach: #fff0e6;
  --gold: #b97800;
  --night: #1b1740;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(27, 23, 64, .08);
  --font-title: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --confetti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E %3Cg opacity='.38'%3E %3Ccircle cx='24' cy='30' r='5' fill='%23ff5a5f'/%3E%3Crect x='70' y='18' width='14' height='6' rx='3' fill='%23ffc53d' transform='rotate(28 77 21)'/%3E %3Ccircle cx='150' cy='40' r='4' fill='%232ec4b6'/%3E%3Crect x='200' y='60' width='16' height='6' rx='3' fill='%238b7cf6' transform='rotate(-35 208 63)'/%3E %3Cpath d='M40 110 q8 -10 16 0 t16 0' stroke='%23ff8fb1' stroke-width='4' fill='none' stroke-linecap='round'/%3E %3Ccircle cx='120' cy='120' r='6' fill='%23ffc53d'/%3E%3Crect x='180' y='140' width='14' height='6' rx='3' fill='%23ff5a5f' transform='rotate(60 187 143)'/%3E %3Ccircle cx='230' cy='200' r='4' fill='%23ff5a5f'/%3E%3Crect x='30' y='190' width='16' height='6' rx='3' fill='%232ec4b6' transform='rotate(-20 38 193)'/%3E %3Cpath d='M110 220 l8 -12 l8 12 z' fill='%238b7cf6'/%3E%3Ccircle cx='80' cy='160' r='3' fill='%238b7cf6'/%3E %3C/g%3E%3C/svg%3E");
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* En-tête */
.site-header { background: rgba(255, 250, 243, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 70px; flex-wrap: wrap; }
.logo { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-img { width: auto; height: 50px; display: block; transform: rotate(-4deg); transition: transform .2s; filter: drop-shadow(0 4px 6px rgba(27, 23, 64, .18)); }
.logo:hover .logo-img { transform: rotate(3deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-mark { font-family: var(--font-title); font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.logo-sub { font-size: .82rem; color: var(--accent-dark); font-weight: 800; margin-top: 3px; letter-spacing: .02em; }
.footer-logo { margin: 0 0 12px; }
.footer-logo .logo-mark { color: #fff; }
.footer-logo .logo-sub { color: var(--sun); }
.site-header nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.site-header nav a:hover { background: var(--sun-soft); }
.site-header nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.menu-toggle { display: none; background: var(--ink); border: 0; color: #fff; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 700; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-header nav { display: none; width: 100%; order: 3; padding-bottom: 14px; }
  .site-header nav.open { display: block; }
  .site-header nav ul { flex-direction: column; gap: 4px; }
  .header-inner .btn-small { display: none; }
}

/* Boutons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  box-shadow: 0 6px 0 -1px #d93b41, 0 10px 24px rgba(255, 90, 95, .3); transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 -1px #d93b41; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: 9px 18px; font-size: .9rem; box-shadow: 0 4px 0 -1px #d93b41; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.hero .btn-ghost, .page-head .btn-ghost { color: var(--ink); border-color: var(--ink); }
.hero .btn-ghost:hover, .page-head .btn-ghost:hover { background: var(--ink); color: #fff; }

/* Sections */
section { padding: 72px 0; }
.alt { background: var(--peach); }
.dark { background: linear-gradient(rgba(27,23,64,.86), rgba(27,23,64,.86)), var(--confetti), var(--night); color: #f1eefc; }
.dark a:not(.btn) { color: var(--sun); }
.dark .btn-ghost { color: #fff; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--ink); background: var(--sun-soft); font-weight: 800; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; }
.dark .eyebrow { background: rgba(255, 197, 61, .18); color: var(--sun); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.dark .lead { color: #cdc8e8; }

.hero { position: relative; overflow: hidden; color: var(--ink); padding: 72px 0 80px;
  background: linear-gradient(90deg, rgba(255,250,243,.97) 0%, rgba(255,250,243,.92) 45%, rgba(255,250,243,.35) 80%, rgba(255,250,243,0) 100%), var(--confetti), radial-gradient(circle at 85% 15%, var(--sun-soft) 0, transparent 40%), radial-gradient(circle at 10% 90%, var(--mint-soft) 0, transparent 45%), var(--paper); }
.hero .lead { color: var(--ink-soft); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero, .page-head { background-image: linear-gradient(rgba(255,250,243,.9), rgba(255,250,243,.9)), var(--confetti); }
}
.hero picture { display: block; background: #fff; padding: 12px 12px 46px; border-radius: 6px; transform: rotate(2.5deg); box-shadow: 0 20px 50px rgba(27, 23, 64, .18); position: relative; }
.hero picture::after { content: "NEXG ✦ Tours"; position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: var(--font-title); font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.hero picture::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 197, 61, .75); border-radius: 3px; z-index: 1; }
.hero-img { width: 100%; height: auto; border-radius: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.badges li { padding: 5px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; background: #fff; border: 2px solid var(--line); }
.badges li:nth-child(5n+1) { background: var(--sun-soft); border-color: var(--sun); }
.badges li:nth-child(5n+2) { background: var(--mint-soft); border-color: var(--mint); }
.badges li:nth-child(5n+3) { background: #ffe3e4; border-color: var(--accent); }
.badges li:nth-child(5n+4) { background: #ece9ff; border-color: var(--lilac); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 0; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.grid > .card { border-top: 6px solid var(--accent); }
.grid > .card:nth-child(4n+2) { border-top-color: var(--sun); }
.grid > .card:nth-child(4n+3) { border-top-color: var(--mint); }
.grid > .card:nth-child(4n+4) { border-top-color: var(--lilac); }
a.card { transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 16px 40px rgba(27, 23, 64, .14); }
.dark .card { background: rgba(255,255,255,.06); color: #f1eefc; box-shadow: none; }
.card p:last-child { margin-bottom: 0; }

/* Emplacements photo à remplacer */
.photo-slot {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 2px dashed #b8b0d6;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; color: var(--ink-soft); font-size: .9rem; background: rgba(139, 124, 246, .07);
}
.photo-remplacement { display: block; }
.photo-remplacement img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare figcaption { font-size: .9rem; margin-top: 8px; color: inherit; opacity: .85; }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.price-card { display: flex; flex-direction: column; }
.pricing > .price-card { border-top: 6px solid var(--lilac); }
.pricing > .price-card:nth-child(2) { border-top-color: var(--accent); }
.pricing > .price-card:nth-child(3) { border-top-color: var(--sun); }
.pricing > .price-card:nth-child(4) { border-top-color: var(--mint); }
.price-card.featured { outline: 3px solid var(--accent); }
.price { font-family: var(--font-title); font-weight: 800; font-size: 2.4rem; letter-spacing: -.03em; margin: 4px 0 14px; }
.price-card ul { padding-left: 1.1em; margin: 0 0 22px; flex: 1; }
.tag { align-self: flex-start; display: inline-block; background: var(--accent); color: #fff; font-size: .75rem; padding: 3px 11px; border-radius: 999px; font-weight: 800; }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 2em; position: relative; margin-bottom: .6em; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .15em; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--mint); color: #fff; font-weight: 800; font-size: .8em; display: flex; align-items: center; justify-content: center; }
.dark .checks li::before { background: var(--sun); color: var(--ink); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: inline-flex; width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: #fff; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; transform: rotate(-6deg); }
.steps li:nth-child(4n+2)::before { background: var(--sun); color: var(--ink); transform: rotate(5deg); }
.steps li:nth-child(4n+3)::before { background: var(--mint); }
.steps li:nth-child(4n+4)::before { background: var(--lilac); transform: rotate(4deg); }

/* FAQ */
details { background: var(--card); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(27, 23, 64, .05); }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { color: var(--accent-dark); }
details p { margin: 10px 0 0; }

/* Contenu article */
.prose h2 { margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; background: #fff; border-radius: 12px; overflow: hidden; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--sun-soft); }
.table-scroll { overflow-x: auto; }
.breadcrumb { font-size: .88rem; margin-bottom: 14px; color: var(--ink-soft); }
.breadcrumb a { color: inherit; }
.page-head { color: var(--ink); padding: 60px 0 48px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,250,243,.97) 0%, rgba(255,250,243,.92) 45%, rgba(255,250,243,.35) 80%, rgba(255,250,243,0) 100%), var(--confetti), radial-gradient(circle at 90% 20%, var(--sun-soft) 0, transparent 45%), radial-gradient(circle at 0% 100%, #ffe3e4 0, transparent 40%), var(--paper); }
.page-head .lead { color: var(--ink-soft); }
.note { background: var(--sun-soft); border-left: 5px solid var(--sun); padding: 14px 18px; border-radius: 10px; }

/* Formulaire */
form.quote { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
form.quote .full { grid-column: 1 / -1; }
@media (max-width: 640px) { form.quote { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 5px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 95, .15); }
.hp { position: absolute; left: -9999px; }
.small { font-size: .85rem; color: var(--ink-soft); }

.cta-band { text-align: center; }
.cta-band .actions { justify-content: center; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3rem); }

/* Pied de page */
.site-footer { background: linear-gradient(rgba(27,23,64,.86), rgba(27,23,64,.86)), var(--confetti), var(--night); color: #cdc8e8; padding: 56px 0 22px; font-size: .94rem; border-top: 8px solid var(--sun); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { color: var(--sun); font-family: var(--font-title); font-weight: 800; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; } .hero picture, a.card:hover { transform: none; } }

/* Calendrier des disponibilités */
.cal { max-width: 420px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { margin: 0; font-weight: 700; text-transform: capitalize; }
.cal-nav { background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 36px; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; font-weight: 600; font: inherit; font-size: .95rem; cursor: pointer; background: #f1ece5; color: var(--ink); padding: 0; }
.cal-day.libre { background: #e5f3ea; color: #1f6b3a; border-color: #bfe0cb; }
.cal-day.libre:hover { border-color: #1f6b3a; }
.cal-day.complet { background: #f6e1e6; color: #9c2f4c; text-decoration: line-through; cursor: not-allowed; }
.cal-day.option { background: #fbecd6; color: #8a5a12; cursor: not-allowed; }
.cal-day.passe { background: none; color: #bdb5c4; cursor: default; }
.cal-day.selected { outline: 2px solid var(--accent); outline-offset: 1px; font-weight: 700; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; margin-top: 12px; list-style: none; padding: 0; }
.cal-legend span { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.date-status { font-size: .9rem; margin: 6px 0 0; }
.date-status.ok { color: #1f6b3a; }
.date-status.ko { color: #9c2f4c; }

/* Tarifs : 4 offres, gammes, simulateur */
.pricing-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gamme { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-soft); margin: 0 0 4px; }
.gamme.signature { color: var(--gold); }
.simu fieldset { border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; background: #fff; }
.simu legend { font-weight: 700; padding: 0 6px; }
.simu fieldset label { font-weight: 400; display: flex; gap: 10px; align-items: center; padding: 6px 0; cursor: pointer; }
.simu fieldset input { width: auto; }
.simu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .simu-row { grid-template-columns: 1fr; } }
.simu-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.simu-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.simu-table td:last-child { text-align: right; white-space: nowrap; }
.simu-table .total td { font-weight: 700; font-size: 1.25rem; border-bottom: 0; font-family: var(--font-title); }

/* Comparaison avant / après */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba-handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--night); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ba-label { position: absolute; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.ba-label.l { left: 10px; } .ba-label.r { right: 10px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
