/* Tamaris & Cie — 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: "Bodoni Moda"; src: url("/exemples/evenementiel/fonts/bodoni.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/exemples/evenementiel/fonts/bodoni-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/exemples/evenementiel/fonts/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Contrastes (WCAG) : ivory/plum 15.0 · gold/plum 7.2 · mist/plum 9.4 · ink/ivory 15.0 · muted/ivory 6.4 · gold-dark/ivory 5.8 · gold-dark/blush 4.7 · plum/gold 7.2 */
:root {
  --plum: #2A1722;
  --plum-2: #3A2230;
  --plum-3: #4D3041;
  --ivory: #FAF4EC;
  --card: #FFFBF5;
  --blush: #EFD9D2;
  --ink: #2A1722;
  --muted: #6A5760;
  --mist: #D8C6CB;
  --gold: #C9A15B;
  --gold-2: #D8B574;
  --gold-dark: #7C591B;
  --line: rgba(42, 23, 34, .14);
  --line-light: rgba(250, 244, 236, .15);
  --radius: 22px;
  --shadow: 0 1px 0 rgba(42, 23, 34, .04), 0 26px 50px -32px rgba(42, 23, 34, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Bodoni Moda", Georgia, serif;
  --font: "Hanken Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plum); color: var(--ivory); font: 400 18px/1.6 var(--font); }
main, .foot { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
/* Bodoni est une police à axe de taille optique : plafonné pour garder des déliés visibles */
h1, h2, h3 { margin: 0; font-family: var(--serif); font-optical-sizing: none; font-variation-settings: "opsz" 28; font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold); }
.plan h2 em, .dates h2 em, .about h2 em { color: var(--gold-dark); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.plan :focus-visible, .dates :focus-visible, .about :focus-visible { outline-color: var(--plum); }
small { font-size: .84em; }

/* ---------- 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: #1B0F17; color: var(--mist); font-size: 14px; text-align: center; }
.demo-bar strong { color: var(--ivory); font-weight: 600; }
.demo-bar a { color: var(--gold); font-weight: 600; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 0; border-radius: 999px; font: 600 16px/1.1 var(--font); letter-spacing: .02em; text-decoration: none; text-align: center; cursor: pointer; transition: transform .25s var(--ease), background-color .2s ease, color .2s ease; }
.btn-gold { background: var(--gold); color: var(--plum); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-gold:active { transform: translateY(1px) scale(.98); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(42, 23, 34, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.top.is-scrolled { border-color: var(--line-light); }
.top-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: grid; }
.brand-name { font: 500 23px/1 var(--serif); font-variation-settings: "opsz" 28; }
.brand-sub { margin-top: 4px; font-size: 13px; letter-spacing: .06em; color: var(--mist); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--mist); font-weight: 500; font-size: 15px; letter-spacing: .03em; text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--ivory); }
.top-cta { padding: 11px 22px; border-radius: 999px; background: var(--gold); color: var(--plum); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s ease; }
.top-cta:hover { background: var(--gold-2); }

/* ---------- Hero + composeur ---------- */
.hero { padding: 54px 0 96px; background: radial-gradient(800px 520px at 88% 12%, rgba(201, 161, 91, .16), transparent 62%), radial-gradient(600px 400px at 0% 100%, rgba(77, 48, 65, .7), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin-top: 18px; font-size: clamp(42px, 5.4vw, 76px); }
.hero-lead { margin-top: 22px; max-width: 32em; font-size: 19px; color: var(--mist); }
.hero-photo { margin: 30px 0 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 200px 200px 24px 24px; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); }

.composer { padding: 26px; border-radius: 26px; background: var(--ivory); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.comp-title { font-size: 30px; }
.q { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 8px; font: 600 15px var(--font); letter-spacing: .02em; }
.q legend small { font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px rgba(42, 23, 34, .25); font: 500 15px/1.1 var(--font); transition: background-color .2s ease, color .2s ease, transform .25s var(--ease); }
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--plum); color: var(--ivory); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.guests { display: block; margin-top: 18px; font: 600 15px var(--font); }
.guests output { color: var(--gold-dark); font: 500 22px var(--serif); font-variation-settings: "opsz" 28; }
.guests input { width: 100%; margin: 10px 0 0; accent-color: var(--gold-dark); }
.result { margin-top: 20px; padding: 22px; border-radius: 20px; background: var(--plum); color: var(--ivory); }
.result-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.result-price { margin-top: 6px; font: 500 clamp(32px, 4vw, 44px)/1.05 var(--serif); font-variation-settings: "opsz" 28; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.split { height: 10px; margin-top: 14px; border-radius: 999px; background: var(--plum-3); overflow: hidden; }
.split-fees { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gold); transition: width .6s var(--ease); }
.result dl { display: grid; gap: 8px; margin: 14px 0 18px; }
.result dl div { display: flex; justify-content: space-between; gap: 12px; }
.result dt { color: var(--mist); }
.result dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.fine { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.result .fine { color: var(--mist); }

/* ---------- Rétroplanning ---------- */
.plan { padding: 100px 0; background: var(--ivory); color: var(--ink); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.kicker-gold { color: var(--gold); }
.plan h2, .venues h2, .dates h2, .about h2 { margin-top: 12px; font-size: clamp(36px, 4.6vw, 58px); }
.section-lead { margin-top: 18px; max-width: 36em; font-size: 19px; color: var(--muted); }
.timeline { position: relative; display: grid; gap: 14px; margin: 38px 0 0; padding: 0 0 0 34px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), rgba(201, 161, 91, .15)); }
.timeline li { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); animation: slide .5s var(--ease) both; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--ivory); }
.timeline time { font: 500 24px/1.1 var(--serif); font-variation-settings: "opsz" 28; color: var(--gold-dark); }
.timeline strong { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: 16px; }
@keyframes slide { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Lieux ---------- */
.venues { padding: 100px 0; }
.venue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.venue-grid li { padding: 12px 12px 22px; border-radius: 24px; background: var(--plum-2); box-shadow: inset 0 0 0 1px var(--line-light); transition: transform .4s var(--ease); }
.venue-grid li:hover { transform: translateY(-6px); }
.venue-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.venue-grid h3 { margin: 16px 8px 0; font-size: 26px; }
.venue-grid p { margin: 8px 8px 0; color: var(--mist); font-size: 16px; }

/* ---------- Dates ---------- */
.dates { padding: 100px 0; background: var(--blush); color: var(--ink); }
.dates-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; margin-top: 34px; align-items: start; }
.weekends[hidden] { display: none; }
.weekends { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.we { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); font: 500 17px/1.25 var(--font); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(42, 23, 34, .18); transition: transform .25s var(--ease), background-color .2s ease; }
.we:hover:not(:disabled) { transform: translateY(-2px); }
.we small { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 400; }
.we small::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3E9A68; }
.we[data-state="option"] small::before { background: var(--gold); }
.we[data-state="complet"] small::before { background: #A24B4B; }
.we:disabled { background: transparent; color: #6E5B65; cursor: default; box-shadow: inset 0 0 0 1px var(--line); }
.we[aria-checked="true"] { background: var(--plum); color: var(--ivory); box-shadow: none; }
.we[aria-checked="true"] small { color: var(--mist); }
.book-form, .book-done { padding: 26px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.pick { margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--blush); color: var(--plum); font-weight: 600; }
.b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; }
.field-wide { grid-column: 1 / -1; }
.field > span { display: block; margin: 0 0 6px 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input { width: 100%; padding: 13px 14px; border: 0; border-radius: 14px; background: var(--ivory); color: var(--ink); font: 500 17px var(--font); box-shadow: inset 0 0 0 1.5px rgba(42, 23, 34, .28); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--plum), 0 0 0 4px rgba(201, 161, 91, .5); }
.form-error { min-height: 1.4em; margin: 12px 0 8px; color: #B3261E; font-weight: 600; font-size: 16px; }
.book-done { text-align: center; }
.book-done[hidden] { display: none; }
.book-done:focus { outline: none; }
.book-done h3 { margin-top: 10px; font-size: 34px; }
.book-done p { margin-top: 8px; color: var(--muted); }
.book-done .btn { margin-top: 16px; }
.done-mark { width: 90px; margin: 0 auto; animation: beat 1.4s var(--ease) both; }
@keyframes beat { 0% { transform: scale(.3); opacity: 0; } 55% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- Portrait ---------- */
.about { padding: 100px 0; background: var(--ivory); color: var(--ink); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo { margin: 0; justify-self: center; width: min(100%, 380px); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 190px 190px 24px 24px; box-shadow: var(--shadow); }
.quote { margin-top: 24px; padding-left: 20px; border-left: 3px solid var(--gold); font: italic 400 25px/1.3 var(--serif); font-variation-settings: "opsz" 28; }

/* ---------- Pied de page ---------- */
.foot { padding: 56px 0; background: #1B0F17; color: var(--mist); font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; }
.brand-name-foot { margin-bottom: 12px; color: var(--ivory); font-size: 27px; }
.foot a { color: var(--ivory); }
.foot-small { margin-top: 6px; font-size: 14px; }
.foot-credit a { color: var(--gold); font-weight: 600; text-decoration: none; }
.foot-credit a:hover { text-decoration: underline; }

.sticky-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .hero-grid, .dates-grid, .about-grid { grid-template-columns: 1fr; }
  .venue-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .demo-long { display: none; }
  .top-inner { min-height: 62px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 19px; }
  .brand-sub { display: none; }
  .top-cta { display: none; }
  .hero { padding: 30px 0 64px; }
  .hero-lead { font-size: 18px; }
  .composer { padding: 18px 14px; border-radius: 22px; }
  .plan, .venues, .dates, .about { padding: 72px 0; }
  .timeline { padding-left: 28px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .timeline li::before { left: -25px; }
  .venue-grid, .weekends, .b-grid { grid-template-columns: 1fr; }
  .book-form, .book-done { padding: 22px 16px; }
  .foot { padding-bottom: 100px; }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; transition: transform .35s var(--ease), opacity .3s ease; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); }
  .sticky-cta.is-away { transform: translateY(150%); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Les éléments de grille peuvent rétrécir sous la largeur de leur contenu */
.hero-grid > *, .dates-grid > *, .about-grid > * { min-width: 0; }
