/* Alicia & Habib — feuille de style commune */
:root {
  --ink: #203337;
  --ink-soft: #4F5A55;
  --muted: #5A645F;
  --paper: #F3F4EE;
  --card: #FBFBF7;
  --sand: #E5E1D6;
  --sea: #C7D7D7;
  --line: #CBCCC7;
  --line-strong: #A9A79B;
  --line-soft: #DEDFD8;
  --gold: #6E5420;
  --arch: #C2AD86;
  --field: #8C9692;
  --error: #8A2E1F;
  --note: #EFE6D2;
  --serif: Fraunces, Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
input, select, textarea, button { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.02em; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.band { background: var(--sand); }
.band-sea { background: var(--sea); }
.h2 { font-size: 46px; line-height: 1.1; margin-bottom: 20px; }
.lead { max-width: 560px; margin-bottom: 32px; }
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 4px; }
.small { font-size: 15px; }
.note { font-size: 14px; color: var(--ink-soft); }
.tbc { color: var(--muted); font-style: italic; }

/* Navigation : en-tête collant ; sous 760 px, A & H + RSVP + FR|EN + menu accordéon */
html { scroll-padding-top: 80px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--paper); }
.site-nav { display: flex; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.monogram { font-family: var(--serif); font-size: 16px; letter-spacing: 0.08em; text-decoration: none; margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 4px 28px; }
.nav-rsvp { background: var(--ink); color: var(--paper); padding: 7px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-rsvp:hover { color: var(--paper); opacity: 0.9; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 13px; letter-spacing: 0.08em; }
.lang a { padding: 10px 6px; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lang .sep { width: 1px; height: 12px; background: var(--line-strong); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 759px) {
  .site-nav { flex-wrap: wrap; gap: 0 8px; min-height: 56px; padding: 6px 12px 6px 24px; }
  .nav-actions { order: 2; gap: 4px; }
  .nav-rsvp { padding: 7px 16px; font-size: 14px; }
  .lang { margin-left: 6px; }
  .nav-toggle { display: flex; }
  .nav-links { order: 3; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 6px -12px 0 0; padding: 4px 12px 16px 0; border-top: 1px solid var(--line-soft); }
  .js .site-header:not(.open) .nav-links { display: none; }
  .nav-links a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line-soft); font-family: var(--serif); font-size: 22px; font-weight: 300; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"] { font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
}

/* Boutons */
.btn, .btn-outline { display: inline-block; text-decoration: none; padding: 12px 28px; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer; line-height: 1.4; }
.btn { background: var(--ink); color: var(--paper); border: 0; }
.btn:hover { color: var(--paper); opacity: 0.92; }
.btn-outline { border: 1px solid var(--ink); background: none; color: var(--ink); padding: 11px 26px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Accueil */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 56px; }
.hero-text { flex: 999 1 460px; min-width: 0; }
.hero h1 { font-weight: 400; font-size: clamp(64px, 11vw, 124px); line-height: 0.98; margin-bottom: 32px; }
.hero h1 span { display: block; }
.hero h1 span + span { padding-left: 0.5em; }
.hero-date { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.35; margin: 0; }
.countdown { color: var(--muted); margin: 12px 0 28px; }
.hero-arch { flex: 0 1 430px; max-width: 430px; min-width: 0; padding: 12px 12px 0; border: 1px solid var(--arch); border-bottom: 0; border-radius: 999px 999px 0 0; }
.arch { display: block; width: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.hero-arch .arch { aspect-ratio: 776 / 1160; }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-media { flex: 1 1 280px; max-width: 380px; min-width: 0; }
.split-media .arch { aspect-ratio: 761 / 916; }
.split-text { flex: 999 1 420px; min-width: 0; max-width: 620px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); padding: 24px; }
.card h3 { font-weight: 400; font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.card h2 { font-weight: 400; font-size: 22px; line-height: 1.25; margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 32px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.step-title { font-family: var(--serif); font-size: 22px; margin: 0 0 4px; }

.gallery { display: flex; flex-direction: column; gap: 16px; }
.gallery-row { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery img { height: 400px; object-fit: cover; min-width: 0; }
.gallery .narrow { flex: 1 1 260px; border-radius: 999px 999px 0 0; }
.gallery .wide { flex: 2 1 420px; }
.gallery .solo { display: block; align-self: center; width: 100%; max-width: 660px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { font-size: 40px; line-height: 1.1; margin-bottom: 6px; }

/* Le mariage */
.page-title { font-size: 56px; line-height: 1.05; margin-bottom: 12px; }
.day { border-top: 1px solid var(--line); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.day:last-of-type { border-bottom: 1px solid var(--line); }
.day-date { flex: 1 1 200px; margin: 0; font-family: var(--serif); font-size: 20px; }
.day-items { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.slot { display: flex; gap: 32px; }
.slot-time { margin: 0; width: 56px; flex: none; color: var(--muted); }
.slot-title { margin: 0; font-weight: 600; }

.venue { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; margin-bottom: 40px; }
.venue img { display: block; flex: 1 1 340px; min-width: 0; max-width: 540px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.venue div { flex: 999 1 340px; min-width: 0; max-width: 520px; }
.venue h3 { font-weight: 400; font-size: 22px; margin-bottom: 6px; }

.info-row { border-top: 1px solid var(--line-strong); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.info-row:last-of-type { border-bottom: 1px solid var(--line-strong); }
.info-row > h3 { flex: 1 1 180px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.info-row > div { flex: 999 1 460px; min-width: 0; max-width: 680px; }
.passports { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.passport { background: var(--card); padding: 18px; }
.passport h4 { font-weight: 400; font-size: 19px; line-height: 1.25; margin-bottom: 8px; letter-spacing: 0; }
.passport p { margin-bottom: 6px; }
strong { font-weight: 600; }

.faq-wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.faq-wrap > h2 { flex: 1 1 260px; }
.faq { flex: 999 1 480px; min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 54px; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--serif); font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-size: 20px; }
.faq details[open] summary::after { content: '−'; }
.faq details > p { padding-bottom: 16px; margin: 0; }

/* Autour du mariage */
.notice { margin: 0 0 40px; padding: 14px 18px; background: var(--card); }
.safari { border-top: 1px solid var(--line-strong); padding: 28px 0 40px; }
.safari h3 { font-size: 34px; line-height: 1.15; margin-bottom: 8px; }
.safari .intro { max-width: 620px; margin-bottom: 20px; }
.facts, .tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
.fact { background: var(--paper); padding: 14px 16px; }
.fact p { margin: 0; font-size: 15px; }
.fact .k { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tiers { margin-bottom: 20px; }
.tier { background: var(--card); padding: 16px; }
.tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.tier-head p { margin: 0; }
.tier-name { font-family: var(--serif); font-size: 20px; }
.tier-from { font-size: 15px; font-weight: 600; }
.lodge { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding: 5px 0; font-size: 15px; }
.details > summary { display: inline-block; list-style: none; cursor: pointer; min-height: 44px; padding: 9px 22px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 500; }
.details > summary::-webkit-details-marker { display: none; }
.details[open] > summary { margin-bottom: 24px; }
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 24px; }
.route { border: 1px solid var(--line-strong); padding: 16px; }
.route h4 { font-weight: 400; font-size: 19px; margin-bottom: 4px; letter-spacing: 0; }
.route p { font-size: 15px; margin: 0; }
.program { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.program-days { flex: 3 1 420px; min-width: 0; }
.program-side { flex: 2 1 320px; min-width: 0; font-size: 15px; }
.program h5 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.dayline { border-top: 1px solid var(--line-strong); padding: 12px 0; display: flex; gap: 20px; }
.dayline .n { margin: 0; flex: none; width: 56px; font-family: var(--serif); color: var(--gold); }
.dayline p { margin: 0; }
.program-side ul { margin: 0 0 18px; padding-left: 18px; }
.two-col { display: flex; flex-wrap: wrap; gap: 32px 48px; border-top: 1px solid var(--line-strong); padding-top: 32px; }
.two-col > div { flex: 1 1 380px; min-width: 0; }
.two-col h3 { font-size: 28px; margin-bottom: 8px; }
.two-col ul { margin: 0; padding-left: 18px; }

/* RSVP */
.rsvp-page { background: var(--sea); }
.rsvp { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; padding-top: 64px; padding-bottom: 80px; }
.rsvp-aside { flex: 1 1 280px; min-width: 0; max-width: 340px; }
.rsvp-aside h1 { font-size: 50px; line-height: 1.05; margin-bottom: 16px; }
.rsvp-panel { flex: 999 1 520px; min-width: 0; background: var(--card); padding: 32px; }
.rsvp-form { display: flex; flex-direction: column; gap: 28px; }
.block { border-top: 1px solid var(--line-soft); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.block h2, .block legend { font-weight: 400; font-size: 22px; letter-spacing: 0; padding: 0; }
.block .hint { margin: -10px 0 0; font-size: 15px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; }
label.field, .field-label { display: block; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 4px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 0; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.field select { border-width: 1px 14px 1px 1px; border-color: transparent; outline: 1px solid var(--field); outline-offset: -1px; }
.field textarea { min-height: 88px; resize: vertical; }
.field input, .field select { min-width: 0; -webkit-appearance: none; appearance: none; }
.field input[type="checkbox"], .field input[type="radio"] { -webkit-appearance: auto; appearance: auto; }
.field select { -webkit-appearance: menulist; appearance: auto; }

/* Champs à corriger */
.invalid input, input.invalid, .invalid select, .choices.invalid .choice span { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field.invalid, .field-label.invalid { color: var(--error); }
.field-msg { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--error); }

/* Date : saisie JJ/MM/AAAA + calendrier */
.date-field { position: relative; display: block; margin-top: 4px; }
.date-field input[type="text"] { margin-top: 0; padding-right: 52px; }
.date-btn { position: absolute; top: 0; right: 0; bottom: 0; width: 46px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.field .date-native { position: absolute; top: 0; right: 0; bottom: 0; width: 46px; height: 100%; margin: 0 !important; padding: 0 !important; min-height: 0 !important; border: 0 !important; opacity: 0; cursor: pointer; }
.field .date-native::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }

/* Personnes */
.person { border: 1px solid var(--line-soft); background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.person-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.code-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.code-row .field { flex: 0 1 210px; min-width: 0; }
.code-row input { letter-spacing: 0.16em; text-transform: uppercase; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--field); background: #fff; font-size: 15px; cursor: pointer; }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 0 24px; }
.counters { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.counter { display: flex; align-items: center; gap: 10px; }
.counter .lbl { font-size: 15px; min-width: 58px; }
.counter button { width: 44px; height: 44px; border: 1px solid var(--field); background: #fff; font: inherit; font-size: 20px; color: var(--ink); cursor: pointer; }
.counter button:disabled { opacity: 0.4; cursor: not-allowed; }
.counter output { min-width: 24px; text-align: center; font-weight: 600; }
.status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.alert { margin: 0; font-size: 15px; font-weight: 500; color: var(--error); }
.callout { margin: 0; padding: 10px 14px; background: var(--note); font-size: 15px; }
.locked { opacity: 0.5; }
.thanks h2 { font-size: 34px; line-height: 1.15; margin-bottom: 8px; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.site-footer p { margin: 0; font-size: 14px; }
.site-footer .names { font-family: var(--serif); font-size: 22px; }
.site-footer a { color: var(--paper); }

@media (max-width: 600px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .h2 { font-size: 36px; }
  .page-title { font-size: 42px; }
  .gallery img { height: 280px; }
  .gallery .narrow { height: auto; aspect-ratio: 712 / 948; object-position: center top; } /* portraits entiers : têtes visibles sous l'arche */
  .rsvp-panel { padding: 22px; }
  .slot { gap: 16px; }
}
