/* =============================================================
   LOTARY — Landing page
   Charte : Marine #1A2447 · Doré #F5B872 · Crème #FDF8F3 · Poppins
   Mobile-first (le trafic vient de TikTok = majorité de téléphones).
   ============================================================= */

:root {
  --marine: #1A2447;
  --marine-2: #232f5c;      /* variante claire pour cartes sur marine */
  --dore: #F5B872;
  --dore-soft: rgba(245, 184, 114, 0.14);
  --creme: #FDF8F3;
  --texte-clair: #EDEFF6;   /* texte sur fond marine */
  --texte-clair-doux: #B9C0D6;
  --texte-sombre: #2A2F45;  /* texte sur fond crème */
  --texte-sombre-doux: #5A6076;
  --rouge: #E8896B;         /* pour la pire palette / colonne NON */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --maxw-narrow: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texte-sombre);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Structure ---------- */
.section {
  padding: 56px 20px;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}
.container--narrow {
  max-width: var(--maxw-narrow);
}

.section--marine {
  background: var(--marine);
  color: var(--texte-clair);
}
.section--creme {
  background: var(--creme);
  color: var(--texte-sombre);
}

/* ---------- Typographie ---------- */
h1, h2, h3 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 { font-size: 1.2rem; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.section--marine p { color: var(--texte-clair-doux); }
.section--marine h2 { color: var(--texte-clair); }

.text-dore { color: var(--dore); }

.section-intro {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.text-emphasis {
  margin-top: 28px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--texte-sombre);
  border-left: 4px solid var(--dore);
  padding-left: 16px;
}
.text-emphasis--light { color: var(--texte-clair); }

/* ---------- Boutons CTA ---------- */
.cta {
  display: inline-block;
  background: var(--dore);
  color: var(--marine);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 18px 42px;
  border-radius: 999px;
  margin-top: 8px;
  box-shadow: 0 10px 30px rgba(245, 184, 114, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(245, 184, 114, 0.42);
}
.cta:active { transform: translateY(0); }

/* ---------- SECTION 1 — HERO ---------- */
.hero { text-align: center; padding-top: 40px; }
.hero-title {
  font-size: 2.2rem;
  margin: 28px 0 20px;
}
.hero-subtitle {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 22px;
}
.hero-credibility {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texte-clair) !important;
  max-width: 620px;
  margin: 0 auto 32px;
}
.cta-subtext {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--texte-clair-doux) !important;
}

/* Vidéo — embed YouTube responsive 16:9 */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(245, 184, 114, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--marine-2);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Galeries photos (format d'origine conservé, aucun recadrage) */
.media-gallery {
  display: grid;
  gap: 12px;
  margin: 32px 0;
  grid-template-columns: 1fr; /* mobile : 1 photo par ligne, en grand */
  align-items: start; /* images alignées en haut, hauteurs naturelles */
}
.media-gallery picture,
.media-gallery img {
  display: block;
  width: 100%;
}
.media-gallery img {
  height: auto; /* format d'origine conservé, aucun recadrage */
  border-radius: var(--radius);
  border: 1px solid rgba(42, 47, 69, 0.12);
}

/* Bannière pleine largeur (ex. formation) */
.media-banner {
  margin: 32px 0;
}
.media-banner img {
  display: block;
  width: 100%;
  height: auto; /* image déjà en 16:9, affichée entière */
  border-radius: var(--radius);
  border: 1px solid rgba(245, 184, 114, 0.25);
}

/* ---------- SECTION 3 — chiffres (signature visuelle) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}
.stat {
  background: var(--marine-2);
  border: 1px solid rgba(245, 184, 114, 0.2);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--dore);
  letter-spacing: -0.03em;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--texte-clair-doux);
}

/* ---------- Lot type (traitement sobre, sans encadré) ---------- */
.lot-type-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--texte-clair-doux) !important;
  margin-bottom: 18px;
}
.lot-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.lot-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.lot-value {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--texte-clair);
  letter-spacing: -0.02em;
}
.lot-caption {
  font-size: 0.85rem;
  color: var(--texte-clair-doux);
  margin-top: 2px;
}
.lot-arrow {
  color: var(--dore);
  font-size: 1.3rem;
  opacity: 0.7;
  transform: rotate(90deg);
}

.closing-line {
  margin-top: 28px;
  font-weight: 600;
  color: var(--texte-clair) !important;
  border-left: 4px solid var(--dore);
  padding-left: 16px;
}

/* ---------- Listes ---------- */
.list-check, .list-cross { list-style: none; margin: 20px 0; }
.list-check li, .list-cross li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.list-check li::before { content: "✓"; position: absolute; left: 0; color: #2FA36B; font-weight: 800; }
.list-cross li::before { content: "✕"; position: absolute; left: 0; color: var(--rouge); font-weight: 800; }
.list-check--light li { color: var(--texte-clair); }
.list-check--light li::before { color: var(--dore); }

/* ---------- SECTION 8 — deux colonnes ---------- */
.two-cols { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.col {
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(42, 47, 69, 0.08);
}
.col--oui { border-top: 4px solid #2FA36B; }
.col--non { border-top: 4px solid var(--rouge); }
.col-title { margin-bottom: 12px; font-size: 1.3rem; }
.col-title--oui { color: #2FA36B; }
.col-title--non { color: var(--rouge); }

/* ---------- SECTION 9 — offre / prix ---------- */
.offer-box {
  background: var(--marine-2);
  border: 1px solid rgba(245, 184, 114, 0.25);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.offer-intro { font-weight: 600; color: var(--texte-clair) !important; }
.offer-box .list-check { text-align: left; display: inline-block; }
.price-block { margin: 28px 0 8px; }
.price-number {
  display: block;
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--dore);
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-old {
  display: block;
  margin-top: 8px;
  color: var(--texte-clair-doux);
  text-decoration: line-through;
  font-size: 0.95rem;
}
.price-old em { text-decoration: none; font-style: normal; }
.price-note { color: var(--texte-clair-doux) !important; margin-bottom: 24px; }

.final-price {
  margin: 24px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texte-clair) !important;
}
.final-price .text-dore { font-size: 1.5rem; font-weight: 900; }

/* ---------- SECTION 10 — FAQ ---------- */
.faq { margin-top: 24px; }
.faq-item {
  border: 1px solid rgba(42, 47, 69, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--texte-sombre);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-toggle {
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dore);
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 20px 18px; color: var(--texte-sombre-doux); margin: 0; }

/* ---------- Pied de page ---------- */
.footer {
  background: #10162e;
  color: var(--texte-clair-doux);
  padding: 36px 20px;
  text-align: center;
}
.footer-brand { font-weight: 700; color: var(--texte-clair); margin-bottom: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 0.85rem; }
.footer-links a { color: var(--texte-clair-doux); text-decoration: none; }
.footer-links a:hover { color: var(--dore); text-decoration: underline; }

/* ---------- Pages légales (CGV, confidentialité, mentions) ---------- */
.legal { background: var(--creme); color: var(--texte-sombre); min-height: 100vh; }
.legal-header {
  background: var(--marine);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-header .legal-brand { color: var(--texte-clair); font-weight: 800; }
.legal-header a { color: var(--dore); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.legal-header a:hover { text-decoration: underline; }
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}
.legal-main h1 {
  font-size: 1.8rem;
  color: var(--marine);
  line-height: 1.2;
  margin-bottom: 6px;
}
.legal-updated { color: var(--texte-sombre-doux); font-size: 0.88rem; margin-bottom: 28px; }
.legal-main h2 {
  font-size: 1.2rem;
  color: var(--marine);
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 36, 71, 0.12);
}
.legal-main p { color: var(--texte-sombre); line-height: 1.7; margin-bottom: 14px; }
.legal-main ul { margin: 0 0 16px; padding-left: 22px; }
.legal-main li { color: var(--texte-sombre); line-height: 1.7; margin-bottom: 8px; }
.legal-main strong { color: var(--marine); }
.legal-main a { color: #C88A2E; }
.legal-todo {
  display: inline;
  background: var(--dore-soft);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.92em;
  color: #8a6a2e;
}
.legal-note {
  margin-top: 40px;
  padding: 14px 16px;
  border-left: 3px solid var(--dore);
  background: rgba(245, 184, 114, 0.08);
  border-radius: 6px;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--texte-sombre-doux);
}
.legal-back-bottom {
  display: inline-block;
  margin-top: 32px;
  font-weight: 600;
  color: var(--marine);
  text-decoration: none;
}
.legal-back-bottom:hover { text-decoration: underline; }

/* =============================================================
   TABLETTE / DESKTOP — on enrichit à partir de la base mobile
   ============================================================= */
@media (min-width: 640px) {
  .section { padding: 80px 32px; }
  h2 { font-size: 2.2rem; }
  .hero-title { font-size: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 3rem; }
  .two-cols { grid-template-columns: 1fr 1fr; }
  .price-number { font-size: 4.2rem; }
  .lot-type { flex-direction: row; justify-content: center; gap: 28px; }
  .media-gallery--3 { grid-template-columns: repeat(3, 1fr); }
  .media-gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .lot-arrow { transform: none; }
  .lot-value { font-size: 2.2rem; }
}

@media (min-width: 960px) {
  .hero-title { font-size: 3.6rem; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-number { font-size: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
