/* NexaSleep — feuille de style principale */
@font-face {
  font-family: 'Jakarta';
  src: url('/fonts/jakarta.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0d1f3f;
  --navy-2: #1a3260;
  --blue: #1f5fd6;
  --blue-600: #1a50b6;
  --blue-soft: #e9f1ff;
  --blue-softer: #f3f7ff;
  --sky: #8fb9ff;
  --gray-50: #f6f8fb;
  --gray-100: #eef2f7;
  --gray-200: #e1e7f0;
  --gray-400: #98a5b9;
  --gray-600: #5a6880;
  --white: #ffffff;
  --green: #1f9d6b;
  --green-soft: #e6f6ef;
  --red: #d64545;
  --red-soft: #fdeeee;
  --amber-soft: #fff6db;
  --amber: #8a6100;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(13, 31, 63, .06), 0 2px 8px rgba(13, 31, 63, .04);
  --shadow: 0 10px 30px -12px rgba(13, 31, 63, .18), 0 2px 6px rgba(13, 31, 63, .05);
  --shadow-lg: 0 30px 60px -24px rgba(13, 31, 63, .28);
  --container: 1180px;
  --font: 'Jakarta', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--navy); background: var(--white);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: linear-gradient(180deg, var(--gray-50), var(--blue-softer)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p { color: var(--gray-600); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* Éléments « à valider » (contenu provisoire) — visibles volontairement */
.todo {
  background: var(--amber-soft); color: var(--amber); border: 1px dashed #e0b84a; border-radius: 6px;
  padding: 0 6px; font-size: .92em; font-weight: 600;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px;
  padding: 15px 28px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 24px -10px rgba(31, 95, 214, .7); }
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 16px 30px -12px rgba(31, 95, 214, .8); }
.btn--ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--gray-200); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.btn--lg { padding: 18px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: .92rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--gray-100); box-shadow: 0 6px 20px -16px rgba(13, 31, 63, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; color: var(--navy); text-decoration: none; letter-spacing: -0.02em; }
.logo b { color: var(--blue); font-weight: 800; }
.logo svg { width: 30px; height: 30px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--gray-50); color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gray-50); color: var(--navy);
  display: inline-grid; place-items: center; transition: background .2s;
}
.icon-btn:hover { background: var(--blue-soft); color: var(--blue); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.cart-count[data-empty="true"] { display: none; }
.menu-toggle { display: none; }

@media (max-width: 920px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s ease; margin: 0; }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; padding: 12px 16px 20px; }
  .nav a { display: block; padding: 14px; font-size: 1.05rem; }
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); overflow: hidden;
  background: radial-gradient(1200px 520px at 85% 10%, var(--blue-soft), transparent 60%), radial-gradient(800px 400px at 0% 100%, var(--blue-softer), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .accent { color: var(--blue); }
.hero-lead { font-size: 1.14rem; color: var(--gray-600); max-width: 34em; }
.buy-box { margin-top: 28px; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); max-width: 520px; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; }
.price-note { color: var(--gray-600); font-size: .92rem; }
.buy-actions { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 16px; }
.buy-actions .btn--ghost { grid-column: 1 / -1; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--gray-50); box-shadow: inset 0 0 0 1.5px var(--gray-200); height: 56px; }
.qty button { width: 46px; height: 100%; border: 0; background: transparent; font-size: 1.3rem; color: var(--navy); border-radius: 999px; }
.qty button:hover { color: var(--blue); }
.qty output, .qty input { width: 34px; text-align: center; font-weight: 700; border: 0; background: transparent; font-size: 1.05rem; color: var(--navy); }
.reassurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; max-width: 560px; }
.reassurance li { display: flex; gap: 10px; align-items: center; font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--navy-2); }
.reassurance svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }

.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.float-card {
  position: absolute; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: .88rem; font-weight: 600; line-height: 1.3;
}
.float-card svg { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--blue); color: #fff; flex: none; }
.float-card small { display: block; font-weight: 500; color: var(--gray-600); }
.float-card--a { left: -22px; bottom: 34px; }
.float-card--b { right: -14px; top: 28px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
  .float-card--a { left: 10px; bottom: 14px; }
  .float-card--b { right: 10px; top: 14px; }
  .buy-box, .reassurance { max-width: none; }
}
@media (max-width: 560px) {
  .reassurance { grid-template-columns: 1fr; }
  .float-card--b { display: none; }
  .buy-actions { grid-template-columns: 1fr; }
  .qty { justify-self: start; }
}

/* ---------- Cartes bienfaits ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
@media (max-width: 540px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--gray-600); margin: 0; font-size: .96rem; }
.icon-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, var(--blue), #3d82f2); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 20px -10px rgba(31, 95, 214, .8); }
.icon-badge svg { width: 28px; height: 28px; }

/* ---------- Comparaison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }
.compare-col { border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--gray-100); }
.compare-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare-body { padding: 26px 28px 30px; }
.compare-title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.compare-title .mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.compare-col--good { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.compare-col--good .mark { background: var(--green); }
.compare-col--bad .mark { background: var(--red); }
.compare-col--bad { background: #fcfdff; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.compare-col--good .checklist svg { color: var(--green); }
.compare-col--bad .checklist svg { color: var(--red); }
.compare-col--bad .checklist li { color: var(--gray-600); font-weight: 500; }

/* ---------- Positions ---------- */
.media-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: transform .2s, box-shadow .2s; }
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.media-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-card .body { padding: 22px 24px 26px; }
.media-card p { color: var(--gray-600); margin: 0; font-size: .96rem; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 920px) { .zones { grid-template-columns: 1fr; } }
.zones-figure { background: radial-gradient(circle at 50% 40%, #fff, var(--blue-softer)); border-radius: var(--radius-lg); padding: clamp(14px, 3vw, 30px); box-shadow: var(--shadow); border: 1px solid var(--gray-100); margin: 0; }
.zones-figure img { border-radius: var(--radius); }
.zones-figure figcaption { font-size: .82rem; color: var(--gray-600); text-align: center; margin-top: 10px; }
.zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.zone-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: #fff; border-radius: 16px; padding: 14px 16px; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.zone-key { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .92rem; }
.zone-list strong { display: block; }
.zone-list span { color: var(--gray-600); font-size: .92rem; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step img { aspect-ratio: 16 / 10; object-fit: cover; }
.step-num { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(31, 95, 214, .9); }

/* ---------- Avis ---------- */
.rating-summary { display: inline-flex; align-items: center; gap: 12px; background: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-sm); font-weight: 700; }
.stars { display: inline-flex; gap: 2px; color: #f5b301; }
.stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 12px 0 16px; color: var(--navy-2); }
.review footer { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fd6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--gray-600); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA finale ---------- */
.final-cta { background: linear-gradient(135deg, var(--navy) 0%, #183a7a 60%, var(--blue) 130%); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; overflow: hidden; position: relative; }
.final-cta::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(143, 185, 255, .35), transparent 65%); }
.final-cta p { color: #c9d8f5; font-size: 1.08rem; }
.final-cta .price { color: #fff; }
.final-cta img { position: relative; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); border-radius: var(--radius); }
.final-cta .btn--primary { background: #fff; color: var(--navy); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.final-cta .btn--primary:hover { background: var(--blue-soft); }
@media (max-width: 820px) { .final-cta { grid-template-columns: 1fr; text-align: center; } .final-cta img { max-width: 320px; margin: 0 auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-50); padding: 56px 0 28px; margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--gray-100); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-600); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a, .link-btn { color: var(--navy); text-decoration: none; font-size: .95rem; }
.site-footer a:hover, .link-btn:hover { color: var(--blue); text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; text-align: left; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--gray-600); }
.payment-note { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Panier (tiroir) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(13, 31, 63, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fff; z-index: 100; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; }
.drawer.is-open + .drawer-backdrop, .drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--gray-100); }
.drawer-head h2 { font-size: 1.25rem; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.cart-item img { border-radius: 14px; background: var(--gray-50); }
.cart-item .name { font-weight: 700; line-height: 1.3; }
.cart-item .unit { color: var(--gray-600); font-size: .9rem; }
.cart-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 12px; }
.cart-item .qty { height: 42px; }
.cart-item .qty button { width: 36px; }
.remove-btn { background: none; border: 0; color: var(--gray-600); font-size: .85rem; text-decoration: underline; padding: 4px; }
.summary { display: grid; gap: 8px; margin-bottom: 16px; }
.summary div { display: flex; justify-content: space-between; }
.summary .total { font-weight: 800; font-size: 1.15rem; padding-top: 8px; border-top: 1px solid var(--gray-200); }
.summary small { color: var(--gray-600); }
.cart-empty { text-align: center; color: var(--gray-600); padding: 40px 0; }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .82rem; color: var(--gray-600); margin-top: 12px; }

/* ---------- Barre d'achat mobile ---------- */
.sticky-buy { visibility: hidden; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px 10px 10px 18px; display: none; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(140%); transition: transform .3s; border: 1px solid var(--gray-100); }
.sticky-buy.is-visible { transform: none; visibility: visible; }
.sticky-buy .name { font-size: .8rem; color: var(--gray-600); line-height: 1.2; }
.sticky-buy .p { font-weight: 800; font-size: 1.15rem; }
@media (max-width: 820px) { .sticky-buy { display: flex; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, -200%); visibility: hidden; opacity: 0; background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 150; font-weight: 600; display: flex; gap: 10px; align-items: center; transition: transform .3s, opacity .3s, visibility .3s; max-width: calc(100% - 32px); }
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; opacity: 1; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 760px; margin: 0 auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(13, 31, 63, .45); border: 1px solid var(--gray-100); padding: 24px 24px 20px; }
.cookie-banner h2 { font-size: 1.12rem; margin: 0 0 8px; }
.cookie-banner p { font-size: .92rem; color: var(--gray-600); margin: 0 0 16px; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cookie-actions .btn { padding: 13px 16px; font-size: .95rem; }
/* Les trois choix ont le même poids visuel (exigence CNIL : refuser aussi simple qu'accepter) */
.btn--choice { background: var(--navy); color: #fff; }
.btn--choice:hover { background: var(--navy-2); }
.cookie-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--gray-600); font-size: .85rem; text-decoration: underline; }
@media (max-width: 600px) { .cookie-actions { grid-template-columns: 1fr; } .cookie-banner { padding-top: 40px; } }

.modal { border: 0; border-radius: 22px; padding: 0; width: min(640px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--navy); }
.modal::backdrop { background: rgba(13, 31, 63, .5); }
.modal-inner { padding: 28px; }
.modal h2 { font-size: 1.3rem; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--gray-100); }
.pref p { margin: 4px 0 0; font-size: .88rem; color: var(--gray-600); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--gray-200); border-radius: 999px; transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { background: var(--sky); opacity: .7; }
.switch input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }

/* ---------- Bannière info (paiement annulé, etc.) ---------- */
.notice { background: var(--blue-soft); color: var(--navy); border-radius: 14px; padding: 14px 18px; font-weight: 600; margin: 16px auto 0; }

/* ---------- Panneau de débogage pixels ---------- */
.debug-panel { position: fixed; top: 84px; right: 12px; width: 340px; max-height: 60vh; overflow: auto; background: #0b1730; color: #cfe0ff; font: 12px/1.45 ui-monospace, Menlo, monospace; border-radius: 12px; padding: 12px; z-index: 400; box-shadow: var(--shadow-lg); }
.debug-panel b { color: #fff; }
.debug-panel .blocked { color: #ffb4b4; }

/* ---------- Pages légales / merci ---------- */
.page { padding: 48px 0 24px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: #2a3a57; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.prose th { background: var(--gray-50); }
.status-card { max-width: 620px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--gray-100); padding: clamp(28px, 5vw, 44px); text-align: center; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.status-icon svg { width: 36px; height: 36px; }
.status-icon.ok { background: var(--green-soft); color: var(--green); }
.status-icon.wait { background: var(--blue-soft); color: var(--blue); }
.status-icon.err { background: var(--red-soft); color: var(--red); }
.recap { text-align: left; margin: 24px 0; background: var(--gray-50); border-radius: 16px; padding: 18px 20px; }
.recap div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.recap .total { border-top: 1px solid var(--gray-200); margin-top: 6px; padding-top: 12px; font-weight: 800; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--blue-soft); border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Fenêtre coordonnées + vérification e-mail ---------- */
.order-dialog { border: 0; padding: 24px; border-radius: var(--radius); width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; color: var(--navy); box-shadow: var(--shadow-lg); }
.order-dialog::backdrop { background: rgba(13, 31, 63, .55); }
.od-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.od-head h2 { font-size: 1.3rem; margin: 0; }
.od-step { margin: 0 0 4px; font-size: .8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.od-summary { background: var(--blue-softer); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; margin: 14px 0 16px; }
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.od-full { grid-column: 1 / -1; }
.od-field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; }
.od-field em { font-style: normal; font-weight: 500; color: var(--gray-600); }
.od-field input { font: inherit; font-weight: 500; font-size: 1rem; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--gray-200); background: #fff; color: var(--navy); width: 100%; }
.od-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.od-field input[aria-invalid="true"] { border-color: var(--red); }
.od-field small { color: var(--red); font-weight: 500; min-height: 0; }
.od-field small:empty { display: none; }
.od-form > .btn { margin-top: 16px; }
.od-code { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 800 !important; }
.od-note { font-size: .82rem; color: var(--gray-600); margin: 14px 0; }
.od-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn[disabled] { color: var(--gray-400); cursor: default; text-decoration: none; }
.od-error { color: var(--red); font-weight: 600; margin: 12px 0 0; }
.od-error:empty { display: none; }
.order-dialog .secure-line { margin-top: 14px; }
@media (max-width: 520px) { .order-dialog { padding: 18px 16px; } .od-grid { grid-template-columns: 1fr; } }
