/* =========================================================
   Kronos Guild — Landing page
   Palette : vert profond + or (couleurs de la marque)
   ========================================================= */
:root {
  --green-950: #0B1F17;
  --green-900: #0F2A1F;
  --green-850: #123226;
  --green-800: #173D2E;
  --green-700: #22513E;
  --gold: #D2AE45;
  --gold-light: #E6CB7C;
  --gold-dark: #A9862A;
  --cream: #F3EDE0;
  --text: #F3EDE0;
  --text-muted: #B8C4BB;
  --line: rgba(243, 237, 224, 0.14);
  --line-strong: rgba(243, 237, 224, 0.28);
  --error: #FF8A80;
  --success: #7FD8A6;

  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant", Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-pill: 999px;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--green-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--gold-light); letter-spacing: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--green-950); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 6px 8px 6px 24px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { padding: 6px 24px; border-color: var(--line-strong); color: var(--cream); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm { min-height: 44px; font-size: 14px; padding: 6px 20px; }
.btn-block { width: 100%; }
.btn-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-950); color: var(--gold-light); transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn-icon { transform: translateX(3px); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow-pill { display: inline-block; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-pill); background: rgba(243, 237, 224, 0.1); border: 1px solid var(--line); backdrop-filter: blur(6px); margin-bottom: 24px; }
.microcopy { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.microcopy.center { text-align: center; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(11, 31, 23, 0.9); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
@media (min-width: 768px) { .brand img { height: 60px; } }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 36px; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-muted); padding: 8px 0; transition: color var(--dur); }
.main-nav a:hover { color: var(--cream); }
@media (min-width: 900px) { .main-nav { display: block; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 32px); padding-bottom: 28px; isolation: isolate; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 50% 45%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,31,23,0.6) 0%, rgba(11,31,23,0.5) 22%, rgba(11,31,23,0.82) 42%, rgba(11,31,23,0.94) 70%, var(--green-950) 100%);
}
@media (min-width: 900px) {
  .hero { justify-content: center; }
  .hero-bg img { object-position: 50% 42%; }
  .hero-bg { left: 32%; }
  .hero-shade {
    background:
      linear-gradient(90deg, var(--green-950) 0%, var(--green-950) 30%, rgba(11,31,23,0.75) 45%, rgba(11,31,23,0.15) 70%, rgba(11,31,23,0.35) 100%),
      linear-gradient(180deg, rgba(11,31,23,0.4) 0%, transparent 25%, transparent 75%, var(--green-950) 100%);
  }
}
.hero-content { max-width: var(--container); }
.hero h1 { font-size: clamp(2.3rem, 7.5vw, 4.4rem); font-weight: 600; letter-spacing: -0.02em; max-width: 13ch; }
.hero h1 em { font-size: 1.08em; display: inline-block; margin-top: 0.08em; }
.hero-lead { margin-top: 20px; max-width: 46ch; color: var(--text-muted); font-size: 15px; }
@media (min-width: 768px) { .hero-lead { font-size: 16px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-price { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; }
.hero-price .price-now { font-size: 22px; }

.trust-strip { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.trust-strip li {
  display: flex; align-items: center; gap: 10px; padding: 14px 14px;
  background: rgba(243, 237, 224, 0.06); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; backdrop-filter: blur(8px);
}
.trust-strip svg { color: var(--gold); flex-shrink: 0; }
@media (min-width: 900px) { .trust-strip { grid-template-columns: repeat(4, 1fr); margin-top: 64px; } .trust-strip li { font-size: 14px; padding: 18px 20px; justify-content: center; } }

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
@media (min-width: 900px) { .section { padding-block: 120px; } }
.section h2 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.015em; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head > p:last-child { margin-top: 16px; color: var(--text-muted); }

/* ---------- Prix ---------- */
.price-now { font-weight: 700; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.price-old { color: var(--text-muted); font-size: 0.85em; }
.price-badge { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--gold); color: var(--green-950); font-size: 13px; font-weight: 700; }

/* ---------- Produit ---------- */
.product { background: linear-gradient(180deg, var(--green-950), var(--green-900)); }
.product-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start; } .gallery { position: sticky; top: calc(var(--header-h) + 24px); } }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--green-850); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 250ms ease; }
.gallery-main img.fading { opacity: 0.2; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--green-850); transition: border-color var(--dur); }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity var(--dur); }
.thumb:hover img, .thumb[aria-current="true"] img { opacity: 1; }
.thumb[aria-current="true"] { border-color: var(--gold); }

.product-name { font-size: clamp(2rem, 4.5vw, 3rem); }
.product-price { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.product-price .price-now { font-size: 30px; }
.product-desc { margin-top: 20px; color: var(--text-muted); max-width: 52ch; }

.swatches { border: 0; padding: 0; margin: 32px 0 0; }
.swatches legend { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; padding: 0; }
.swatches legend strong { color: var(--cream); font-weight: 600; }
.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 6px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent;
  cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color var(--dur), background-color var(--dur);
}
.swatch:hover { border-color: var(--gold-dark); }
.swatch[aria-checked="true"] { border-color: var(--gold); background: rgba(210, 174, 69, 0.1); }
.swatch-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(243,237,224,0.5); flex-shrink: 0; }

.spec-list { margin: 32px 0; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.spec-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-muted); }
.spec-list svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.spec-list strong { display: block; color: var(--cream); font-size: 15px; font-weight: 600; }

/* ---------- Vidéos ---------- */
.video-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
@media (min-width: 768px) { .video-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 24px; } }
.video-card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 16; background: var(--green-850); scroll-snap-align: center; }
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(11, 31, 23, 0.75); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; pointer-events: none; }
.video-toggle { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }
.video-toggle::after {
  content: ""; position: absolute; right: 14px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11, 31, 23, 0.75) center / 18px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E6CB7C'%3E%3Cpath d='M7 4v16l13-8z'/%3E%3C/svg%3E");
  border: 1px solid var(--line-strong);
}
.video-toggle[aria-pressed="true"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E6CB7C'%3E%3Cpath d='M6 4h4v16H6zM14 4h4v16h-4z'/%3E%3C/svg%3E"); }
.video-toggle:focus-visible { outline-offset: -4px; border-radius: var(--radius); }

/* ---------- Livraison ---------- */
.delivery { background: var(--green-900); }
.zone-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .zone-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.zone-card { padding: 28px; border-radius: var(--radius); background: var(--green-850); border: 1px solid var(--line); }
.zone-card h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--gold-light); }
.zone-card .zone-eta { margin-top: 6px; font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.zone-card dl { margin: 22px 0 0; display: grid; gap: 10px; }
.zone-card dl div { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.zone-card dt { color: var(--text-muted); }
.zone-card dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.zone-card details { margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.zone-card summary { cursor: pointer; color: var(--cream); font-weight: 500; min-height: 32px; display: flex; align-items: center; }
.zone-card details p { margin-top: 8px; line-height: 1.7; }

.steps { margin-top: 56px; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--font-serif); font-size: 22px; font-weight: 600; }
.steps strong { display: block; font-size: 15px; }
.steps p { margin-top: 4px; font-size: 14px; color: var(--text-muted); }

/* ---------- Commande ---------- */
.order { background: linear-gradient(180deg, var(--green-900), var(--green-950)); }
.order-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .order-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } }
.order-intro > p:not(.eyebrow) { margin-top: 16px; color: var(--text-muted); max-width: 44ch; }
.order-visual { display: none; margin-top: 36px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; }
.order-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .order-visual { display: block; } }

.order-card { padding: 24px 18px; border-radius: var(--radius); background: var(--green-850); border: 1px solid var(--line); }
@media (min-width: 768px) { .order-card { padding: 36px; } }

.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.req { color: var(--gold); }
input[type="text"], input[type="tel"], select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--green-950); border: 1px solid var(--line-strong); color: var(--cream); font-size: 16px;
  transition: border-color var(--dur);
}
input::placeholder { color: #8E9C92; }
input:hover, select:hover { border-color: rgba(243,237,224,0.45); }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 174, 69, 0.25); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2AE45' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
select option { background: var(--green-950); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-help { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.field-error { margin-top: 6px; font-size: 13px; color: var(--error); font-weight: 500; }
.field-error:empty { display: none; }
.field-error::before { content: "⚠ "; }

.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-row.two { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  min-height: 56px; padding: 10px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  font-size: 13px; transition: border-color var(--dur), background-color var(--dur);
}
.choice small { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.choice .swatch-dot { width: 22px; height: 22px; }
.choice input:checked + span { border-color: var(--gold); background: rgba(210, 174, 69, 0.12); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.choice:hover > span { border-color: var(--gold-dark); }

.qty-field { display: flex; align-items: center; justify-content: space-between; }
.qty-field .label { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: 50%; color: var(--gold-light); }
.qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.summary { margin: 8px 0 24px; padding: 18px; border-radius: var(--radius-sm); background: var(--green-950); border: 1px solid var(--line); display: grid; gap: 10px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary dt { color: var(--text-muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; }
.summary .total dt { color: var(--cream); font-weight: 600; }
.summary .total dd { color: var(--gold-light); font-size: 20px; font-weight: 700; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { margin-bottom: 24px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--error); background: rgba(255, 138, 128, 0.08); }
.error-summary h3 { font-size: 15px; font-family: var(--font-body); }
.error-summary ul { margin-top: 8px; list-style: disc; padding-left: 20px; font-size: 14px; }
.error-summary a { color: var(--error); }

#submit-btn { position: relative; padding: 6px 24px; font-size: 16px; }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(11,31,23,0.3); border-top-color: var(--green-950); animation: spin 0.8s linear infinite; }
#submit-btn[aria-busy="true"] .spinner { display: inline-block; }
#submit-btn[aria-busy="true"] { opacity: 0.85; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

.order-success { text-align: center; padding: 24px 8px; }
.order-success:focus { outline: none; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 216, 166, 0.12); color: var(--success); border: 1px solid var(--success); }
.order-success h3 { font-size: 26px; font-family: var(--font-serif); }
.order-success p { margin: 12px auto 28px; color: var(--text-muted); max-width: 40ch; }

/* ---------- Pied de page ---------- */
.site-footer { padding: 64px 0 120px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .site-footer { padding-bottom: 48px; } }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer-logo { width: 220px; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.site-footer a { text-decoration: none; color: var(--text-muted); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--gold-light); }
.copyright { font-size: 13px; color: var(--text-muted); }

/* ---------- Barre mobile ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 31, 23, 0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 300ms var(--ease-out);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta > div { display: flex; flex-direction: column; line-height: 1.3; }
.sticky-name { font-size: 13px; color: var(--text-muted); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
