/* Landing de capture - projet Foch
   Système visuel adapté du skill landing-page-design (elayadesign).
   Français, CSS pur, motion allégée pour mobile. */

:root {
  --black: #000000;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #272727;
  --text: #f5f5f5;
  --text-muted: #9b9b9b;
  --accent: #e8c39a;
  --accent-deep: #c99f6f;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-2xl: 24px;
  --r-full: 999px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--black);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-sm); z-index: 100;
}
.skip:focus { left: var(--s-200); top: var(--s-200); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--s-300);
}
.wrap.narrow { max-width: 680px; }

section { padding: var(--s-900) 0; }

/* Étiquette de section : apporte du rythme */
.section-tag {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-200);
  display: inline-flex;
  align-items: center;
  gap: var(--s-100);
}
.section-tag::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* Héro : photo nette en haut, texte en dessous */
.hero { padding: 0; }
.hero-media {
  position: relative;
  background: var(--black);
}
.hero-media img {
  width: 100%;
  height: clamp(320px, 68svh, 720px);
  object-fit: cover;
  object-position: center;
}
.hero-copy {
  padding-bottom: var(--s-900);
  padding-top: var(--s-700);
}

.eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-300);
}

h1 {
  font-size: var(--text-4xl);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 780px;
  background: linear-gradient(to right, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.hero-copy .sub {
  font-size: var(--text-lg);
  color: #dcdcdc;
  margin-top: var(--s-300);
  max-width: 680px;
  text-wrap: pretty;
}

/* Formulaire */
.capture { margin-top: var(--s-500); }
.capture form {
  display: flex; gap: var(--s-100); flex-wrap: wrap; align-items: stretch;
}
.capture input {
  flex: 1 1 260px; min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  padding: var(--s-100) var(--s-200);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.capture input::placeholder { color: #b7b7b7; }
.capture input:focus {
  outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.1);
}
.capture input[aria-invalid="true"] { border-color: #e07a6a; }

button, .btn {
  display: inline-block;
  font: inherit; font-size: var(--text-base); font-weight: 600;
  padding: var(--s-75) var(--s-200);
  border: 0; border-radius: var(--r-md);
  background: var(--accent); color: var(--black);
  cursor: pointer; text-decoration: none;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
button:hover, .btn:hover { background: #f0d3b3; }
button:active, .btn:active { transform: scale(0.98); }
button:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.form-note { margin-top: var(--s-100); font-size: var(--text-sm); color: #bfbfbf; }
.form-error { margin-top: var(--s-100); font-size: var(--text-sm); color: #e07a6a; display: none; }
.form-success { margin-top: var(--s-200); font-size: var(--text-base); color: var(--text); display: none; }
.form-success a.dl { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.proof {
  margin-top: var(--s-500);
  font-size: var(--text-sm);
  color: #bfbfbf;
  border-left: 2px solid var(--accent);
  padding-left: var(--s-200);
  max-width: 680px;
}

/* Cadeau */
.gift h2, .draw h2, .faq h2 {
  font-size: var(--text-3xl);
  line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance;
}
.gift p.big {
  font-size: var(--text-lg); color: #d8d8d8; margin-top: var(--s-300); text-wrap: pretty;
  max-width: 680px;
}
.gift ul {
  list-style: none; padding: 0; margin: var(--s-500) 0 0;
  display: grid; gap: var(--s-300);
  grid-template-columns: 1fr;
}
.gift li {
  color: #d8d8d8;
  border-top: 1px solid var(--surface-3);
  padding-top: var(--s-300);
}
.gift li strong {
  color: var(--text); display: block; font-size: var(--text-base);
  margin-bottom: var(--s-25);
}

/* Légende juste sous la photo */
.caption {
  font-size: var(--text-sm);
  color: #cfcfcf;
  border-left: 2px solid var(--accent);
  padding-left: var(--s-200);
  margin-bottom: var(--s-500);
  max-width: 680px;
  text-wrap: pretty;
}
/* Phrase de la tagline, rattachée au sous-titre */
.kicker {
  font-size: var(--text-lg);
  color: var(--accent);
  font-weight: 600;
  margin-top: var(--s-300);
  max-width: 680px;
  text-wrap: pretty;
}

/* Produits */
.draw { background: var(--surface-2); }
.draw .lead {
  font-size: var(--text-lg); color: #d8d8d8; margin-top: var(--s-300); text-wrap: pretty;
  max-width: 680px;
}
.products {
  margin-top: var(--s-600);
  display: grid; gap: var(--s-300);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.product {
  background: var(--surface-3);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.product:hover { transform: translateY(-4px); border-color: var(--accent-deep); }
.product img {
  width: 100%; height: 190px; object-fit: cover;
  background: var(--black);
}
.product .body { padding: var(--s-300); display: flex; flex-direction: column; gap: var(--s-50); flex: 1; }
.product h3 { font-size: var(--text-lg); font-weight: 700; }
.product p { color: #c9c9c9; font-size: var(--text-sm); text-wrap: pretty; }
.product .price { font-size: var(--text-2xl); font-weight: 700; color: var(--text); margin-top: var(--s-100); }
.product .add { margin-top: var(--s-200); align-self: flex-start; }
.product .add.on { background: #6b8f71; color: #fff; }
.opts { display: grid; gap: var(--s-100); margin-top: var(--s-200); }
.opts label {
  display: flex; align-items: center; gap: var(--s-100);
  border: 1px solid var(--surface-2); border-radius: var(--r-md);
  padding: var(--s-100) var(--s-200); cursor: pointer;
  font-size: var(--text-sm);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.opts label:hover { border-color: var(--accent-deep); }
.opts input { accent-color: var(--accent); }
.opts label em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--text); }
.draw-note { margin-top: var(--s-500); color: var(--text-muted); font-size: var(--text-sm); }

/* Vers le site : invitation à voir plus */
.more {
  background: var(--surface);
  border-top: 1px solid var(--surface-3);
  text-align: center;
}
.more-line {
  font-size: var(--text-xl);
  color: var(--text);
  font-weight: 600;
  text-wrap: balance;
}
.more-link {
  display: inline-block;
  margin-top: var(--s-300);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.4s var(--ease);
}
.more-link:hover { opacity: 0.7; }

/* Carrousel des séries */
.carousel {
  display: flex;
  gap: var(--s-200);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--s-400);
  padding-bottom: var(--s-300);
}
.carousel:empty { display: none; }
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-full); }
.slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: block;
  width: 240px;
  height: 160px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
}
.slide.ph { border: 1px dashed var(--accent-deep); }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.slide:hover img { transform: scale(1.03); }

/* FAQ */
.faq details { border-top: 1px solid var(--surface-3); padding: var(--s-300) 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--surface-3); }
.faq summary {
  cursor: pointer; font-size: var(--text-lg); font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: var(--s-200);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: var(--s-200); color: #c9c9c9; text-wrap: pretty; }

/* CTA final : respiration chaude */
.final { background: var(--accent); color: #1a1206; text-align: center; }
.final h2 { font-size: var(--text-3xl); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; color: #1a1206; }
.final .lead { margin-top: var(--s-300); color: #4a3a1e; }
.final .capture { display: flex; justify-content: center; }
.final .capture form { justify-content: center; }
.final input {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.22);
  color: #1a1206;
}
.final input::placeholder { color: #6b4d22; }
.final .form-note { color: #4a3a1e; }
.final button { background: #1a1206; color: var(--accent); }
.final button:hover { background: #2b1f0d; }

/* Pied */
footer { background: var(--black); padding: var(--s-700) 0; font-size: var(--text-sm); color: var(--text-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s-200) var(--s-400); justify-content: space-between; }
footer a { text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--text); }

/* Révélation au scroll */
.reveal {
  opacity: 0; transform: translateY(64px); filter: blur(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.reveal.on { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Barre panier */
.cartbar {
  position: fixed; left: 50%; bottom: var(--s-300);
  transform: translateX(-50%);
  background: var(--accent); color: var(--black);
  border-radius: var(--r-full);
  padding: var(--s-100) var(--s-100) var(--s-100) var(--s-300);
  display: flex; align-items: center; gap: var(--s-300);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 50;
  font-weight: 600;
}
.cartbar[hidden] { display: none; }
.cartbar button { border-radius: var(--r-full); background: var(--black); color: var(--accent); }
.cartbar button:hover { background: #222; }

/* Panneau panier */
.cartmodal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
}
.cartmodal[hidden] { display: none; }
.cartmodal-panel {
  background: var(--surface-2);
  width: 100%; max-width: 520px;
  max-height: 92svh; overflow-y: auto;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: var(--s-500) var(--s-400) var(--s-600);
}
.checkout { display: grid; gap: var(--s-200); margin-bottom: var(--s-300); }
.checkout .field { display: grid; gap: var(--s-25); }
.checkout label { font-size: var(--text-sm); color: var(--text-muted); }
.checkout input, .checkout textarea {
  width: 100%; font: inherit; font-size: var(--text-base); color: var(--text);
  background: var(--surface-3); border: 1px solid transparent; border-radius: var(--r-sm);
  padding: var(--s-100) var(--s-200);
}
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--accent); }
.checkout input[aria-invalid="true"], .checkout textarea[aria-invalid="true"] { border-color: #e07a6a; }
.checkout textarea { resize: vertical; min-height: 56px; }
.checkout .btn { width: 100%; margin-top: var(--s-100); }
.cart-msg { margin-top: var(--s-100); font-size: var(--text-sm); color: var(--text-muted); text-align: center; }
.alt { margin-top: var(--s-300); border-top: 1px solid var(--surface-3); padding-top: var(--s-300); }
.alt summary { cursor: pointer; color: var(--text-muted); font-size: var(--text-sm); list-style: none; }
.alt summary::-webkit-details-marker { display: none; }
.alt summary::after { content: " +"; color: var(--accent); }
.alt[open] summary::after { content: " −"; }
.alt[open] summary { margin-bottom: var(--s-200); }
.cartmodal-panel h2 { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--s-300); }
.cartmodal-panel ul { list-style: none; padding: 0; margin: 0 0 var(--s-300); }
.cartmodal-panel li {
  display: flex; justify-content: space-between; gap: var(--s-200);
  padding: var(--s-200) 0; border-bottom: 1px solid var(--surface-3);
}
.cartmodal-panel li button { background: none; color: var(--text-muted); padding: 0; font-size: var(--text-sm); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--text-xl); margin: var(--s-300) 0 var(--s-400); }
.cart-actions { display: grid; gap: var(--s-100); }
.cart-actions .btn, .cart-actions button { width: 100%; text-align: center; padding: var(--s-200); }
.cart-close { background: none; color: var(--text-muted); margin-top: var(--s-200); }
.cart-empty { color: var(--text-muted); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-6xl); }
  .gift ul { grid-template-columns: repeat(3, 1fr); }
  .gift li { border-top: 0; border-left: 1px solid var(--surface-3); padding-top: 0; padding-left: var(--s-300); }
}

@media (max-width: 600px) {
  .cartbar {
    font-size: var(--text-sm);
    padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
    gap: var(--s-200);
    bottom: var(--s-200);
    max-width: calc(100% - var(--s-400));
  }
  .cartbar button { font-size: var(--text-sm); padding: var(--s-75) var(--s-100); }
  .cartmodal-panel { padding: var(--s-400) var(--s-300) var(--s-500); }
  .cartmodal-panel h2 { font-size: var(--text-xl); }
  .cartmodal-panel li { font-size: var(--text-sm); }
  .cart-total { font-size: var(--text-lg); }
  .slide { width: 190px; height: 125px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .tagline .word { opacity: 1; transform: none; filter: none; transition: none; }
}
