/* ═══════════════════════════════════════════════════════════════════════════
   WAWA PHOTOBOOTH — design system (blanc, ivoire & or) — base commune
   Palette tirée de la maquette : or #EBC177 / bronze #93642D / ivoire #FDFAF4 / noir chaud #14100C
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-display-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-display-latin-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Polices de repli ajustées pour limiter le décalage de mise en page (CLS) */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Playfair Fallback"; src: local("Georgia"); size-adjust: 112%; ascent-override: 95%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --ivory: #fdfaf4;
  --cream: #f7f0e3;
  --white: #ffffff;
  --ink: #1c1712;
  --ink-soft: #4a3f33;
  --muted: #6b5d4d;
  --line: #eadfc9;
  --line-strong: #dccaa4;
  --dark: #14100c;
  --dark-2: #1e1812;
  --dark-3: #2b231a;

  --gold-100: #f8edd2;
  --gold-200: #ebc177;
  --gold-300: #d9a94f;
  --gold-400: #c99a3e;
  --gold-500: #b8893a;
  --gold-700: #8a5e1e;      /* texte or sur fond clair : contraste ≥ 5:1 */
  --brown: #93642d;         /* boutons « Choisir cette formule » — texte blanc ≥ 5:1 */
  --brown-dark: #7a4f1f;
  --gold-grad: linear-gradient(135deg, #f4d79a 0%, #e2b565 38%, #c99a3e 72%, #b8893a 100%);
  --gold-grad-text: linear-gradient(120deg, #f2d596 0%, #d9a94f 45%, #b8893a 100%);

  --ok: #1f7a4d;
  --danger: #b3261e;
  --danger-bg: #fdeceb;

  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", "Playfair Fallback", Georgia, "Times New Roman", serif;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(70, 48, 15, .06), 0 2px 8px rgba(70, 48, 15, .05);
  --shadow-md: 0 6px 24px rgba(70, 48, 15, .10);
  --shadow-lg: 0 18px 50px rgba(70, 48, 15, .16);
  --glow: 0 0 0 1px rgba(201, 154, 62, .55), 0 10px 40px rgba(201, 154, 62, .25);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { overflow-x: clip; margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold-700); text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-700); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-200); }
::selection { background: var(--gold-200); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--dark { background: var(--dark); color: #f3ead9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.center { text-align: center; }

/* ── Titres de section (filet or animé) ─────────────────────────────────── */
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 14px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold-200); }
.section-title { min-width: 0; display: flex; align-items: center; gap: 18px; margin-bottom: 32px; }
.section-title h2 { white-space: nowrap; margin: 0; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-title::after { content: ""; flex: 0 1 140px; height: 2px; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .25s; }
html:not(.js) .section-title::after, .section-title.is-visible::after { transform: scaleX(1); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }

/* ── Boutons ────────────────────────────────────────────────────────────── */
.btn { --btn-bg: var(--white); --btn-fg: var(--ink); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .75rem 1.6rem; border: 1px solid transparent; border-radius: var(--r-pill); background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .9s var(--ease); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(4px); }
.btn--gold { background: var(--gold-grad); color: #2a1a06; box-shadow: 0 8px 24px rgba(201, 154, 62, .35); --btn-fg: #2a1a06; }
.btn--gold:hover { box-shadow: 0 12px 34px rgba(201, 154, 62, .5); }
.btn--light { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--brown { background: var(--brown); color: #fff; --btn-fg: #fff; }
.btn--brown:hover { background: var(--brown-dark); box-shadow: 0 10px 26px rgba(147, 100, 45, .35); }
.btn--outline { background: transparent; border-color: var(--gold-500); color: var(--gold-700); --btn-fg: var(--gold-700); }
.btn--outline:hover { background: var(--gold-100); }
.btn--ghost-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; --btn-fg: #fff; }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: .9rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]::after { display: none; }

/* ── En-tête ────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(253, 250, 244, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(70, 48, 15, .07); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 70px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 64px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 52px; }
.nav { margin-inline: auto; }
.nav ul { display: flex; gap: clamp(14px, 2.2vw, 34px); list-style: none; }
.nav a { position: relative; display: inline-block; padding: 8px 2px; color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.social { display: flex; gap: 6px; list-style: none; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: color .25s, background-color .25s, transform .3s var(--ease); }
.social a:hover { color: var(--gold-700); background: var(--gold-100); transform: translateY(-2px); }
.social .icon { width: 22px; height: 22px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; place-items: center; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 980px) {
  .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; max-height: calc(100dvh - var(--header-h)); overflow: auto; background: var(--ivory); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px var(--gutter) 28px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { display: block; padding: 16px 4px; font-size: 1.1rem; }
  .nav a::after { display: none; }
  .nav-cta { display: block; margin-top: 20px; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 520px) { .brand img { height: 50px; } .social a { width: 36px; height: 36px; } .header-actions { gap: 4px; } }

/* ── Pied de page ───────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: #d9cdb8; padding-top: 64px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-bottom: 48px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 16px; }
.footer-brand p { color: #b8ab94; max-width: 32ch; font-size: .95rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-200); margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #d9cdb8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-200); text-decoration: underline; }
.footer-social { margin-top: 18px; }
.footer-social a { color: #d9cdb8; border: 1px solid rgba(255, 255, 255, .16); }
.footer-social a:hover { color: var(--gold-200); background: rgba(235, 193, 119, .1); }
.todo-inline { color: #b8ab94; font-style: italic; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; color: #a99d86; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Cartes / formules ──────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.pkg-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; }
.pkg-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.pkg-card:hover { transform: translateY(-8px); box-shadow: var(--glow); border-color: var(--gold-300); }
.pkg-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dark); }
.pkg-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transition: transform .9s var(--ease); }
.pkg-card:hover .pkg-card__media img { transform: scale(1.08); }
.pkg-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 16, 12, .35)); }
.pkg-card__tag { position: absolute; z-index: 1; left: 12px; top: 12px; background: rgba(20, 16, 12, .72); color: var(--gold-200); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); }
.pkg-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.pkg-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.pkg-price { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--gold-700); margin: 0 0 12px; line-height: 1; }
.pkg-feats { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; color: var(--ink-soft); font-size: .95rem; }
.pkg-feats li { display: flex; gap: 10px; align-items: flex-start; }
.pkg-feats .icon { color: var(--gold-700); width: 18px; height: 18px; margin-top: 3px; }
.pkg-card .btn { margin-top: auto; }

/* ── Révélation au défilement ───────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .reveal--left { transform: translateX(-34px); }
.js .reveal--right { transform: translateX(34px); }
.js .reveal--scale { transform: scale(.94); }
.js .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

/* ── Divers ─────────────────────────────────────────────────────────────── */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--gold-100); border: 1px solid var(--line-strong); color: #4a3510; font-size: .95rem; }
.notice .icon { margin-top: 2px; color: var(--gold-700); }
.notice--warn { background: #fff4e0; border-color: #f0c987; }
.notice--danger { background: var(--danger-bg); border-color: #f1b8b4; color: #7a1c16; }
.notice--danger .icon { color: var(--danger); }
.todo { background: #fff8e1; border: 1px dashed #d9a94f; padding: 1px 6px; border-radius: 6px; font-style: normal; color: #6a4a0a; }
.page-hero { background: radial-gradient(1000px 360px at 85% -10%, rgba(235, 193, 119, .35), transparent 60%), linear-gradient(180deg, var(--cream), var(--ivory)); padding-block: clamp(44px, 7vw, 84px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 14px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
noscript .notice { margin: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .skip-link { display: none; } body { background: #fff; } }
.d1 { --d: 90ms; } .d2 { --d: 180ms; } .d3 { --d: 270ms; } .d4 { --d: 360ms; } .d5 { --d: 450ms; }
.mt-lg { margin-top: 36px; } .mt-md { margin-top: 24px; } .mb-0 { margin-bottom: 0; }

/* ── Composants partagés (accueil + pages) ─────────────────────────────── */
.formules-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.formules-head .section-title { margin-bottom: 24px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; transition: border-color .25s, background-color .25s, transform .3s var(--ease); }
.pill-link:hover { border-color: var(--gold-500); background: var(--gold-100); color: var(--ink); transform: translateX(3px); }
.pill-link .icon { width: 16px; height: 16px; }


/* ── Informations ────────────────────────────────────────────────────────── */
.infos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.info { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .4s var(--ease), box-shadow .4s; height: 100%; }
.info:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info .icon { width: 30px; height: 30px; color: var(--gold-700); stroke-width: 1.4; margin-top: 2px; }
.info strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.info p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 1000px) { .infos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .infos { grid-template-columns: 1fr; } }


/* ── Appel à l'action final ──────────────────────────────────────────────── */
.cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: var(--dark); color: #f3ead9; padding-block: clamp(64px, 9vw, 110px); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 50% 0%, rgba(235, 193, 119, .28), transparent 70%), radial-gradient(500px 260px at 90% 100%, rgba(201, 154, 62, .18), transparent 70%); }
.cta-band h2 { color: #fff; margin-inline: auto; max-width: 20ch; }
.cta-band p { color: #d9cdb8; margin: 0 auto 28px; max-width: 52ch; }
.cta-band .btn { animation: pulse-ring 3.2s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 8px 24px rgba(201, 154, 62, .35), 0 0 0 0 rgba(235, 193, 119, .55); } 70% { box-shadow: 0 8px 24px rgba(201, 154, 62, .35), 0 0 0 18px rgba(235, 193, 119, 0); } 100% { box-shadow: 0 8px 24px rgba(201, 154, 62, .35), 0 0 0 0 rgba(235, 193, 119, 0); } }
[hidden] { display: none !important; }
