/* =============================================================
   Journées Portes Ouvertes BMW & MINI — 8 au 10 octobre 2026
   Feuille de style unique, pensée mobile d'abord.
   ============================================================= */

:root {
  /* Couleurs */
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --surface-2: #EFEDE8;
  --ink: #0D0F12;
  --ink-2: #3F444C;
  --muted: #6A6F78;
  --line: rgba(13, 15, 18, .1);
  --line-strong: rgba(13, 15, 18, .18);
  --accent: #1C69D4;
  --accent-hover: #1558B8;
  --accent-ring: rgba(28, 105, 212, .4);
  --danger: #C2271D;
  --night: #0F1013;
  --night-ink: #F2F0EB;
  --wine-1: #7C1C37;
  --wine-2: #4B0F21;
  --wine-3: #290811;
  --gold: #E3C48A;
  --ice-1: #2F5E86;
  --ice-2: #173554;
  --ice-3: #0C1E31;
  --ice: #D4E7F7;

  /* Typo */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rythme */
  --gutter: 16px;
  --header-h: 60px;
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(13, 15, 18, .05);
  --shadow: 0 1px 2px rgba(13, 15, 18, .04), 0 18px 40px -22px rgba(13, 15, 18, .22);
  --shadow-hover: 0 1px 2px rgba(13, 15, 18, .04), 0 26px 50px -24px rgba(13, 15, 18, .32);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 24px; --header-h: 64px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 68px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
sup { font-size: .6em; line-height: 0; vertical-align: super; }
sub { font-size: .7em; line-height: 0; }

:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.35rem;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--font-display); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: #fff; box-shadow: 0 8px 20px -10px rgba(28, 105, 212, .7); }
.btn-primary:hover { --btn-bg: var(--accent-hover); }
.btn-ghost { --btn-bd: var(--line-strong); }
.btn-ghost:hover { --btn-bd: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 1.7rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-header { min-height: 42px; padding: 0 1.05rem; font-size: .9375rem; }

/* ---------- Bandeau ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(245, 244, 240, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(245, 244, 240, .9); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 8px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; margin-right: auto; }
.brand-logo { display: block; flex: none; width: auto; height: 42px; }
@media (min-width: 640px) { .brand-logo { height: 48px; } }
@media (min-width: 1024px) { .brand-logo { height: 54px; } }
.brand-marks { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; line-height: 1; }
.mark-bmw { letter-spacing: .02em; }
.mark-mini { letter-spacing: .2em; margin-right: -.2em; }
.brand-sep { width: 1px; height: 16px; background: currentColor; opacity: .35; }
.brand-event {
  display: none;
  padding-left: 12px; border-left: 1px solid var(--line-strong);
  font: 600 .8125rem/1.15 var(--font-display); color: var(--ink-2); white-space: nowrap;
}
.brand-dates { color: var(--muted); font-weight: 500; }
@media (min-width: 420px) { .brand-event { display: block; } .brand-dates { display: block; } }
@media (min-width: 640px) { .brand-dates { display: inline; } }
@media (max-width: 339px) { .brand-marks { font-size: .9375rem; gap: 7px; } .brand-logo { height: 38px; } }

/* ---------- Haut de page ---------- */
.hero { position: relative; padding: 32px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto; height: 110%; pointer-events: none;
  background:
    radial-gradient(42% 40% at 78% 38%, rgba(28, 105, 212, .11), transparent 70%),
    radial-gradient(36% 36% at 12% 22%, rgba(227, 196, 138, .16), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "vehicles" "promo" "days";
}
.hero-head { grid-area: head; }
.vehicles { grid-area: vehicles; }
.promo { grid-area: promo; }
.days { grid-area: days; }

.hero-title {
  font-weight: 800; font-size: clamp(2.6rem, 12.4vw, 6.6rem); line-height: .93; letter-spacing: -.045em;
}
.hero-title span { display: block; }
.hero-dates {
  margin-top: 16px;
  font: 700 clamp(1.15rem, 4.6vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -.02em;
  color: var(--accent);
}
.hero-lede { margin-top: 10px; font-size: clamp(1.0625rem, 2.8vw, 1.25rem); color: var(--ink-2); }
.hero-ctas { display: flex; margin-top: 24px; }
.hero-ctas .btn { flex: 1 1 100%; }
@media (min-width: 480px) { .hero-ctas .btn { flex: 0 0 auto; } }

/* Photos des véhicules : empilées à la verticale sur téléphone, en deux colonnes dès les écrans larges */
.vehicles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; }
@media (min-width: 600px) { .vehicles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 720px) { .vehicles { gap: 20px; margin-top: 32px; } }

.vehicle {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
/* Visuels officiels carrés : affichés en entier (titre, prix, étiquette CO2 et mentions restent lisibles) */
.vehicle-media {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1;
  background: #1A1C20;
}
.vehicle-media img { width: 100%; height: 100%; object-fit: contain; }
.vehicle-media.is-missing img { display: none; }
.vehicle-media.is-missing::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 clamp(2.2rem, 9vw, 3.6rem)/1 var(--font-display); letter-spacing: -.04em;
  color: rgba(13, 15, 18, .1);
}
/* Les tailles suivent la largeur de la carte (unités cqi) : compactes sur téléphone, larges sur ordinateur */
.vehicle { container-type: inline-size; }
.vehicle-info {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 12px 14px;
}
.vehicle-brand {
  margin-bottom: 3px;
  font: 700 .6875rem/1.3 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.vehicle-name { font-weight: 800; font-size: clamp(1.15rem, 11cqi, 1.75rem); line-height: 1.05; letter-spacing: -.03em; }
.vehicle-name span { display: block; margin-top: 4px; font-size: max(.64em, .8125rem); font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); }
.vehicle-price {
  flex: none; white-space: nowrap;
  font: 800 clamp(1.5rem, 15cqi, 2.5rem)/1 var(--font-display); letter-spacing: -.045em;
}
.vehicle-from { display: block; margin: 0 0 4px; font-size: max(.4em, .75rem); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.vehicle-price small { margin-left: .1em; font-size: max(.4em, .6875rem); font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); }
.vehicle-terms {
  display: block; margin-top: 5px;
  font: 600 .8125rem/1.2 var(--font-body); letter-spacing: 0; color: var(--ink);
}
@container (min-width: 300px) {
  .vehicle-info { padding: 16px 18px 18px; gap: 10px; }
  .vehicle-brand { font-size: .75rem; }
}
@container (min-width: 460px) {
  .vehicle-info { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 20px 24px 22px; }
  .vehicle-price { text-align: right; }
  .vehicle-from { margin-bottom: 6px; }
}
@media (min-width: 720px) { .vehicle { border-radius: var(--radius-xl); } }
@media (hover: hover) {
  .vehicle:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
}

/* Phrase sous les offres, dans un bloc blanc comme les cartes véhicules */
.promo {
  margin-top: 10px; padding: 18px 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  font: 600 clamp(1rem, 3.6vw, 1.25rem)/1.35 var(--font-display); letter-spacing: -.01em; color: var(--ink);
}
@media (min-width: 640px) { .promo { margin-top: 20px; padding: 22px 24px; } }
@media (min-width: 720px) { .promo { border-radius: var(--radius-xl); } }

/* Calendrier des 3 journées */
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.day {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.day-link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.day-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@supports selector(:has(*)) { .day-link:focus-visible { outline: none; } }
.day-date { display: flex; flex-direction: column; }
.day-name { font: 600 .6875rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.day-num { font: 800 2.25rem/1 var(--font-display); letter-spacing: -.04em; margin-top: 4px; }
.day-month { font: 600 .8125rem/1.2 var(--font-display); color: var(--ink-2); }
.day-what { font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.day--special { background: linear-gradient(160deg, var(--wine-1), var(--wine-2)); color: #fff; border-color: transparent; cursor: pointer; transition: transform .2s var(--ease-out); }
.day--special .day-month, .day--special .day-what { color: rgba(255, 255, 255, .82); }
.day--special .day-name { color: var(--gold); }
.day--special:has(.day-link:focus-visible) { outline: 3px solid var(--accent-ring); outline-offset: 3px; }
.day--special::after {
  content: ""; position: absolute; top: 14px; right: 12px; width: 16px; height: 16px; opacity: .8;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) { .day--special:hover { transform: translateY(-2px); } }

@media (min-width: 640px) {
  .hero { padding: 48px 0 72px; }
  .days { gap: 12px; margin-top: 20px; }
  .day { padding: 18px; }
  .day-name { font-size: .75rem; }
  .day-num { font-size: 2.75rem; }
  .day-what { font-size: .9375rem; }
}

@media (min-width: 1024px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    grid-template-areas: "head days" "vehicles vehicles" "promo promo";
    column-gap: 56px; align-items: end;
  }
  .days { grid-template-columns: 1fr; margin-top: 0; gap: 10px; }
  .day, .day-link { flex-direction: row; align-items: center; gap: 18px; }
  .day { padding: 14px 20px 14px 16px; }
  .day-date { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: end; min-width: 132px; }
  .day-num { grid-row: 1 / span 2; margin: 0; font-size: 2.75rem; }
  .day-name { align-self: end; }
  .day-month { align-self: start; }
  .day-what { font-size: .9375rem; padding-right: 22px; }
  .day--special::after { top: 50%; margin-top: -8px; right: 18px; }
  .vehicles { margin-top: 56px; gap: 24px; }
  .promo { margin-top: 24px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 640px) { .section { padding: 88px 0; } }
@media (min-width: 1024px) { .section { padding: 112px 0; } }

.section-head { max-width: 760px; margin-bottom: 28px; }
@media (min-width: 640px) { .section-head { margin-bottom: 44px; } }
.eyebrow {
  margin-bottom: 12px;
  font: 700 .75rem/1.3 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
h2 { font-weight: 800; font-size: clamp(2rem, 7.4vw, 3.5rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.section-lede { margin-top: 14px; max-width: 36em; font-size: clamp(1rem, 2.4vw, 1.125rem); color: var(--ink-2); text-wrap: pretty; }

/* Apparition au défilement */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Samedi ---------- */
.saturday { position: relative; background: var(--night); color: var(--night-ink); overflow: hidden; }
.saturday::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 0% 0%, rgba(124, 28, 55, .35), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(47, 94, 134, .3), transparent 70%);
}
.saturday .container { position: relative; }
.saturday .eyebrow { color: var(--gold); }
.saturday .section-lede { color: rgba(242, 240, 235, .72); }
.saturday h2 .amp { font-weight: 600; color: rgba(242, 240, 235, .55); }

.sat-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .sat-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.sat-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px 20px 24px; border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, .08);
}
@media (min-width: 640px) { .sat-card { padding: 34px 32px 32px; } }
.sat-card--wine { background: radial-gradient(130% 100% at 100% 0%, var(--wine-1) 0%, var(--wine-2) 48%, var(--wine-3) 100%); }
.sat-card--winter { background: radial-gradient(130% 100% at 100% 0%, var(--ice-1) 0%, var(--ice-2) 48%, var(--ice-3) 100%); }
.sat-deco {
  position: absolute; z-index: -1; right: -36px; top: -26px; width: 220px; height: 220px;
  fill: none; stroke: #fff; stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; opacity: .12;
}
.sat-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16);
}
.sat-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.sat-card--wine .sat-icon { color: var(--gold); }
.sat-card--winter .sat-icon { color: var(--ice); }
.sat-card h3 { font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.1rem); letter-spacing: -.03em; line-height: 1.05; margin-top: 4px; }
.sat-card > p { color: rgba(255, 255, 255, .8); max-width: 32em; }

.feature-list { display: grid; gap: 10px; margin-top: 4px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.feature-list .icon { width: 20px; height: 20px; color: var(--gold); }
.sat-legal {
  margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .75rem; line-height: 1.45; color: rgba(255, 255, 255, .66);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .875rem; font-weight: 500; line-height: 1.2;
}
.chips .icon { width: 18px; height: 18px; color: var(--ice); }

.coupon {
  position: relative; margin-top: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--ice); color: var(--ice-3);
}
.coupon::before, .coupon::after {
  content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: #10263D;
}
.coupon::before { left: -9px; }
.coupon::after { right: -9px; }
.coupon-value {
  flex: none; padding-right: 16px; border-right: 2px dashed rgba(12, 30, 49, .25);
  font: 800 clamp(2.4rem, 11vw, 3.25rem)/1 var(--font-display); letter-spacing: -.05em; white-space: nowrap;
}
.coupon-text { font-size: .9375rem; line-height: 1.35; }
.coupon-text strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -.01em; }
@media (max-width: 459px) {
  .coupon { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 22px 18px; }
  .coupon-value { padding: 0 0 10px; border-right: 0; border-bottom: 2px dashed rgba(12, 30, 49, .25); align-self: stretch; }
  .coupon::before, .coupon::after { top: 38%; }
}

/* ---------- Inscription ---------- */
.signup-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) {
  .signup-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 64px; align-items: start; }
  .signup-head { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* Bloc adresse (colonne de gauche de l'inscription) */
.visit-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  margin-top: 24px; padding: 20px;
  border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow);
  background: radial-gradient(70% 90% at 100% 0%, rgba(28, 105, 212, .08), transparent 70%), var(--surface);
}
.visit-pin {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: var(--accent); color: #fff; box-shadow: 0 10px 20px -10px rgba(28, 105, 212, .8);
}
.visit-pin .icon { width: 26px; height: 26px; }
.visit-label { font: 700 .75rem/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.visit-address { margin-top: 6px; font: 800 clamp(1.2rem, 4.6vw, 1.4rem)/1.25 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.visit-hours { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.visit-hours .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.visit-hours strong { display: block; margin-top: 2px; color: var(--ink); font-weight: 700; white-space: nowrap; }
/* Horaires : une ligne par période, heures en gras */
.hours-line { display: block; margin-top: 2px; color: var(--ink); }
.hours-line strong, .visit-hours .hours-line strong { display: inline; margin: 0; font-weight: 700; white-space: nowrap; }
.visit-map { grid-column: 1 / -1; width: 100%; }
@media (min-width: 640px) { .visit-card { padding: 24px; } }

.form-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); padding: 22px 18px 20px;
}
@media (min-width: 640px) { .form-card { padding: 34px 32px 28px; } }

.form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; gap: 14px; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .fieldset legend { font: 600 .9375rem/1.3 var(--font-display); color: var(--ink); }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 9px; }

.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #FBFAF8; font-size: 16px; /* 16 px : évite le zoom automatique sur iPhone */
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder { color: #9A9EA5; }
.field input:hover { border-color: rgba(13, 15, 18, .3); }
.field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(28, 105, 212, .14); }
.field input[aria-invalid="true"] { border-color: var(--danger); background: #FFF8F7; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(194, 39, 29, .12); }
.field-error { font-size: .8125rem; line-height: 1.35; color: var(--danger); font-weight: 500; }
.field-error:empty { display: none; }

/* Choix de la marque */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brand-choice { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.brand-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.brand-card {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 14px 0 18px; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); background: #FBFAF8;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
/* Même typographie que les champs du formulaire */
.brand-word { font: 400 1rem/1.2 var(--font-body); color: var(--ink); }
.brand-check {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); background: #fff;
  transition: background-color .2s, border-color .2s;
}
.brand-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s var(--ease-out); }
.brand-choice:hover .brand-card { border-color: rgba(13, 15, 18, .34); }
.brand-choice input:checked + .brand-card { border-color: var(--accent); background: #F3F7FD; box-shadow: 0 0 0 3px rgba(28, 105, 212, .12); }
.brand-choice input:checked + .brand-card .brand-check { background: var(--accent); border-color: var(--accent); }
.brand-choice input:checked + .brand-card .brand-check svg { opacity: 1; transform: none; }
.brand-choice input:focus-visible + .brand-card { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.fieldset.is-invalid .brand-card { border-color: var(--danger); }
.brand-choice.is-flash .brand-card { animation: flash 1.2s var(--ease-out); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 3px rgba(28, 105, 212, .12); } 30% { box-shadow: 0 0 0 8px rgba(28, 105, 212, .25); } }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Envoi */
.btn-spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: .7; }
.btn.is-loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { margin-top: -4px; font-size: .8125rem; line-height: 1.45; color: var(--muted); text-align: center; }
.form-note a { color: var(--ink-2); text-underline-offset: 2px; }
.form-status { font-size: .875rem; color: var(--danger); font-weight: 500; text-align: center; }
.form-status:empty { display: none; }

/* Confirmation : fenêtre au centre de l'écran (typographie système, comme la confirmation Google Forms) */
html.modal-open { overflow: hidden; }
.modal {
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  width: min(400px, calc(100% - 32px)); max-height: none;
  margin: auto; padding: 84px 24px 22px; border: 0; border-radius: 20px;
  background: var(--surface); color: #111111;
  font-family: var(--font-system);
  box-shadow: 0 30px 80px -20px rgba(13, 15, 18, .5);
  overflow: visible;
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .45s var(--ease-out); }
.modal::backdrop {
  background: rgba(13, 15, 18, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: modal-fade .3s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modal-fade { from { opacity: 0; } }

.modal-logo { /* rond blanc qui dépasse du haut de la fenêtre */
  position: absolute; top: -64px; left: 50%; margin-left: -66px;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; background: #fff;
  box-shadow: 0 12px 32px -10px rgba(13, 15, 18, .28), 0 0 0 1px rgba(13, 15, 18, .04);
  animation: modal-logo .6s .12s var(--ease-out) both;
}
.modal-logo img { width: 100px; height: auto; }
@keyframes modal-logo { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 8px; right: 8px; width: 42px; height: 42px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: #6b6f76; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }

.modal-brand { margin: 0 0 22px; text-align: center; font-size: 1.125rem; color: #6b6f76; }
.modal .modal-title {
  margin: 0 0 18px; text-align: center;
  font: 700 clamp(1.4rem, 5.8vw, 1.625rem)/1.2 var(--font-system); letter-spacing: -.01em; color: #111111;
}
.modal-text { margin: 0 0 22px; font-size: 1.0625rem; line-height: 1.45; color: #111111; }
.modal-info {
  margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: clamp(.75rem, 3.3vw, .875rem); line-height: 1.4; color: #6b6f76; text-align: center;
}
.modal-info .icon { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -3px; stroke-width: 2; }
@media (max-width: 400px) { .modal { padding-left: 20px; padding-right: 20px; } }
.modal-ok { width: 100%; }

/* ---------- Pied de page + infos pratiques ---------- */
.site-footer {
  padding: 56px 0 calc(32px + env(safe-area-inset-bottom));
  background: var(--surface-2); border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.infos { padding-bottom: 36px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.infos-title { font-weight: 800; font-size: clamp(1.6rem, 5.6vw, 2.25rem); letter-spacing: -.035em; color: var(--ink); }
.infos-list { display: grid; gap: 18px; margin: 20px 0 0; }
@media (min-width: 720px) { .infos-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; } }
.infos-list > div { display: grid; gap: 4px; align-content: start; }
.infos-list > div[hidden] { display: none; }
.infos-list dt { display: flex; align-items: center; gap: 8px; font: 600 .75rem/1.3 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.infos-list dt .icon { width: 16px; height: 16px; }
.infos-list dd { margin: 0; font-weight: 500; color: var(--ink); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-top { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; }
@media (min-width: 720px) { .footer-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.footer-logo { display: block; width: auto; height: 52px; }
.footer-event { font-size: .875rem; color: var(--muted); }
.legal { display: grid; gap: 10px; padding-bottom: 22px; font-size: .75rem; line-height: 1.55; color: var(--muted); max-width: 980px; }
.copyright { font-size: .75rem; color: var(--muted); }

/* ---------- Liens légaux du pied de page ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 4px 0 20px; }
.footer-links a, .footer-links button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 .8125rem/1.6 var(--font-body); color: var(--ink-2); text-decoration: none;
}
.footer-links a:hover, .footer-links button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a[aria-current="page"] { color: var(--accent); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Pages légales ---------- */
.legal-page { padding: 32px 0 72px; }
@media (min-width: 640px) { .legal-page { padding: 48px 0 96px; } }
.legal-container { max-width: 840px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  font: 600 .9375rem/1 var(--font-display); color: var(--ink-2); text-decoration: none;
}
.legal-back:hover { color: var(--accent); }
.legal-back .icon { width: 18px; height: 18px; }
.legal-page h1 { font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; letter-spacing: -.04em; }
.legal-meta { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.legal-page h2 {
  margin: 44px 0 12px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 4.4vw, 1.75rem); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance;
}
.legal-page h3 { margin: 28px 0 8px; font-weight: 700; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
.legal-page h4 { margin: 20px 0 6px; font: 700 1rem/1.4 var(--font-body); color: var(--ink); }
.legal-page p, .legal-page li, .legal-page address { font-size: .9375rem; line-height: 1.7; color: var(--ink-2); }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { list-style: disc; padding-left: 1.3em; margin: 10px 0 14px; }
.legal-page li + li { margin-top: 6px; }
.legal-page address { font-style: normal; margin: 8px 0 16px; padding: 12px 16px; border-left: 3px solid var(--line-strong); background: var(--surface); border-radius: 0 10px 10px 0; }
.legal-page a { color: var(--accent); font-weight: 500; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-page strong { color: var(--ink); }
.legal-ids { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; margin: 16px 0; }
.legal-ids dt { font: 600 .75rem/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-ids dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.legal-encart {
  margin-top: 28px; padding: 22px 22px 18px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.legal-page .legal-encart h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-table-wrap { overflow-x: auto; margin: 14px 0; }
.legal-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.legal-table th, .legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.legal-table thead th { font: 600 .75rem/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-table tbody th { color: var(--ink); font-weight: 600; }
.legal-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.a-completer { padding: 1px 6px; border-radius: 4px; background: #FFF1B8; color: #6B5300; font-weight: 600; }

/* ---------- Bandeau cookies (présentation de 6eme-avenue.com) ---------- */
.cookie-banner {
  position: fixed; z-index: 80; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  width: min(720px, calc(100% - 24px));
  padding: 26px 30px 22px; background: #fff; color: #111;
  box-shadow: 0 24px 60px -18px rgba(13, 15, 18, .45), 0 0 0 1px rgba(13, 15, 18, .06);
  transform: translate(-50%, 24px); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .45s var(--ease-out);
}
.cookie-banner.is-visible { transform: translate(-50%, 0); opacity: 1; }
.cookie-banner[hidden] { display: none; }
.cookie-title { font: 400 1.375rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .01em; color: #111; }
.cookie-text { margin-top: 14px; font-size: .8125rem; line-height: 1.45; font-weight: 700; text-align: justify; color: #111; }
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 12px; margin-top: 18px; }
.cookie-link {
  margin-right: auto; padding: 8px 0; border: 0; background: none; cursor: pointer;
  font: 500 .8125rem/1.2 var(--font-body); color: #111;
}
.cookie-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: 500 .8125rem/1 var(--font-body);
  transition: background-color .2s, border-color .2s, color .2s;
}
.cookie-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cookie-btn-ghost { background: #fff; color: var(--accent); }
.cookie-btn-ghost:hover { background: #F1F6FD; color: var(--accent-hover); }
@media (max-width: 559px) {
  .cookie-banner { padding: 20px 18px 16px; }
  .cookie-title { font-size: 1.125rem; }
  .cookie-text { text-align: left; }
  .cookie-link { width: 100%; margin: 0; text-align: center; order: 3; }
  .cookie-actions .cookie-btn { flex: 1 1 0; min-height: 44px; }
}

/* ---------- Panneau « Préférences sur les cookies » ---------- */
.cookie-panel {
  /* Pas de zone « extensible » : chaque partie a sa propre hauteur, le panneau ne peut pas s'écraser */
  width: min(860px, calc(100% - 24px));
  height: fit-content; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); /* fit-content : ne s'étire pas jusqu'en bas */
  margin: auto; padding: 0; border: 0; border-radius: 6px;
  background: #fff; color: #111; overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px -20px rgba(13, 15, 18, .5);
}
.cookie-panel[open] { display: block; animation: modal-in .4s var(--ease-out); }
.cookie-panel::backdrop { background: rgba(13, 15, 18, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: modal-fade .3s ease; }
.cookie-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cookie-panel-head h2 { font: 400 1.25rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .01em; outline: none; }
.cookie-panel-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #6b6f76; cursor: pointer; display: grid; place-items: center; }
.cookie-panel-close:hover { background: var(--surface-2); color: var(--ink); }
.cookie-panel-body { display: flex; flex-direction: column; }
.cookie-tabs { display: flex; gap: 6px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cookie-tabs::-webkit-scrollbar { display: none; }
.cookie-tabs [role="tab"] {
  flex: none; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer;
  font: 500 .8125rem/1.2 var(--font-body); color: var(--ink-2); white-space: nowrap; text-align: left;
}
.cookie-tabs [role="tab"][aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-tabs { flex: none; }
/* Hauteur réelle de la zone de texte (défilante), adaptée à la hauteur de l'écran */
.cookie-tab-content {
  height: clamp(170px, calc(100vh - 360px), 340px); height: clamp(170px, calc(100dvh - 360px), 340px);
  overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px;
}
@media (min-width: 560px) {
  .cookie-tab-content { height: clamp(190px, calc(100vh - 250px), 360px); height: clamp(190px, calc(100dvh - 250px), 360px); }
}
.cookie-tab h3 { font: 700 1.0625rem/1.3 var(--font-body); color: #111; }
.cookie-tab p, .cookie-tab li { margin-top: 10px; font-size: .875rem; line-height: 1.6; color: var(--ink-2); }
.cookie-tab ul { list-style: disc; padding-left: 1.2em; margin-top: 6px; }
.cookie-tab a { color: var(--accent); overflow-wrap: anywhere; }
.cookie-tab-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-used { padding: 10px 12px; background: var(--surface-2); border-radius: 6px; }
.cookie-always { flex: none; font-size: .8125rem; font-weight: 600; color: var(--accent); }
.cookie-switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.cookie-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cookie-switch span[aria-hidden] {
  position: absolute; inset: 0; border-radius: 999px; background: #C9CCD1; transition: background-color .2s;
}
.cookie-switch span[aria-hidden]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease-out);
}
.cookie-switch input:checked + span[aria-hidden] { background: var(--accent); }
.cookie-switch input:checked + span[aria-hidden]::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + span[aria-hidden] { outline: 3px solid var(--accent-ring); outline-offset: 2px; }
.cookie-panel-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
@media (max-width: 559px) { .cookie-panel-foot .cookie-btn { flex: 1 1 100%; min-height: 44px; } }
@media (min-width: 720px) {
  .cookie-panel-body { flex-direction: row; }
  .cookie-tabs { flex-direction: column; flex: 0 0 240px; gap: 2px; padding: 12px 0; border-bottom: 0; border-right: 1px solid var(--line); overflow: visible; }
  .cookie-tabs [role="tab"] { border: 0; border-radius: 0; padding: 12px 20px; white-space: normal; background: none; }
  .cookie-tabs [role="tab"][aria-selected="true"] { background: #F1F6FD; color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
  .cookie-tab-content { flex: 1 1 0; min-width: 0; padding: 24px 28px; } /* étirement en largeur seulement (disposition en ligne) */
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
