/* ─── Viticolor · page de présentation (/decouvrir/) ───
   Reprend les jetons de l'app (src/theme.css) : bordeaux profond et or pour les
   bandeaux sombres, crème et or bruni (thème clair, contraste ≥ 4,5:1) ailleurs. */
:root {
  --wine-900: #260b10;
  --wine-800: #3a1219;
  --wine-700: #4a1a23;
  --wine-500: #6e2230;
  --gold: #d4b06a;
  --gold-light: #e8d5ae;
  --gold-dark: #85601c;
  --cream: #f7f1e6;
  --cream-2: #efe5d2;
  --paper: #fffaf2;
  --line: #e0d0b6;
  --ink: #2b1014;
  --ink-2: #4a2a2e;
  --ink-3: #66463f;
  --leaf: #4f7a3c;
  --on-dark: #f2e7d3;
  --on-dark-2: #dfc9b2;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine-500); text-underline-offset: 3px; }
a:hover { color: var(--wine-800); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: 24px; }
h4 { font-size: 22px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible,
.hero :focus-visible,
.cta :focus-visible,
.topbar :focus-visible { outline-color: var(--gold); }

.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 {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 780px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ─── Boutons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 16px/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); color: var(--ink); }
.btn--ghost { color: var(--on-dark); border-color: rgba(212, 176, 106, .7); }
.btn--ghost:hover { background: rgba(212, 176, 106, .14); color: var(--on-dark); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }

/* ─── En-tête ─── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(38, 11, 16, .96); color: var(--on-dark);
  border-bottom: 1px solid #56222b;
}
@supports (backdrop-filter: blur(8px)) {
  .topbar { background: rgba(38, 11, 16, .86); backdrop-filter: blur(8px); }
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); text-decoration: none;
  font: 600 26px/1 var(--font-display); letter-spacing: .01em;
}
.brand img { border-radius: 8px; }
.brand:hover { color: var(--gold-light); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav ul { display: flex; gap: 22px; }
.nav ul a { color: var(--on-dark-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; }
.nav ul a:hover { color: var(--gold); }

.menu-btn {
  display: none;
  width: 44px; height: 44px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1.5px solid rgba(212, 176, 106, .6); color: var(--gold);
  align-items: center; justify-content: center;
}
.js .menu-btn { display: inline-flex; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded='true'] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded='true'] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile : menu repliable (seulement quand le script est actif, sinon la
   navigation reste affichée en dessous du logo). */
@media (max-width: 899px) {
  .topbar__inner { flex-wrap: wrap; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 16px; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid #4a1a23; }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
}
@media (min-width: 900px) {
  .menu-btn { display: none !important; }
}

/* ─── Hero ─── */
.hero {
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(160, 58, 80, .45), transparent 60%),
    linear-gradient(180deg, var(--wine-800), var(--wine-900));
  color: var(--on-dark);
  padding: 48px 0 56px;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 88px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
.eyebrow, .kicker {
  font: 700 13px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow { color: var(--gold); }
.kicker { color: var(--gold-dark); }
.section--dark .kicker { color: var(--gold); }
.hero h1 { font-size: clamp(44px, 7.5vw, 76px); font-weight: 600; color: var(--on-dark); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--on-dark-2); max-width: 36em; }
.lead strong { color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--on-dark-2); font-size: 15px; }
.facts strong { display: block; font: 600 34px/1 var(--font-display); color: var(--gold); }

.hero__visual { justify-self: center; text-align: center; }
.hero__visual figcaption { margin-top: 14px; font-size: 13px; color: var(--on-dark-2); }

/* Cadre de téléphone (purement décoratif autour d'une capture réelle). */
.phone {
  width: min(300px, 78vw); padding: 10px; border-radius: 38px;
  background: #140609; border: 1px solid #56222b;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 176, 106, .15) inset;
}
.phone img { border-radius: 28px; width: 100%; }
.phone--sm { width: 100%; max-width: 240px; padding: 7px; border-radius: 30px; margin: 0 auto; }
.phone--sm img { border-radius: 23px; }

/* ─── Sections ─── */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--tint { background: var(--cream-2); }
.section--dark { background: var(--wine-800); color: var(--on-dark); }
.section-intro { max-width: 46em; color: var(--ink-2); margin-bottom: 32px; }

.two-col { display: grid; gap: 32px; margin-top: 16px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.prose p { color: var(--ink-2); font-size: 18px; }

.audience { display: grid; gap: 14px; }
.audience li { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--wine-500); padding: 16px 20px; border-radius: var(--radius); }
.audience h3 { font-size: 22px; margin-bottom: 4px; color: var(--wine-500); }
.audience p { margin: 0; color: var(--ink-2); font-size: 16px; }

.regions-strip { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 720px) { .regions-strip { grid-template-columns: repeat(3, 1fr); } }
.regions-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.regions-strip figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.regions-strip figcaption a { color: var(--ink-3); }

/* ─── Fonctionnalités ─── */
.group-title {
  font-size: 26px; color: var(--wine-500); margin: 40px 0 16px;
  display: flex; align-items: center; gap: 14px;
}
.group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column;
}
.card .icon {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 14px; border-radius: 50%;
  background: #f3e6e2; color: var(--wine-500);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.card h4 { margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 12px; }
.card .example { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-3); font-style: italic; }

/* ─── Aperçu ─── */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 24px;
  scroll-padding-inline: 16px;
}
.gallery li { scroll-snap-align: start; }
.gallery figcaption { font-size: 14.5px; color: var(--ink-2); margin-top: 14px; padding: 0 4px; }
.gallery figcaption strong { color: var(--wine-500); }
@media (min-width: 900px) {
  .gallery {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto;
    overflow: visible; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; gap: 48px 32px;
  }
}
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.desktop { margin-top: 56px; }
.desktop img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(58, 18, 25, .45); }
.desktop figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); text-align: center; }

/* ─── Bénéfices ─── */
.benefits { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; } }
.benefits li { border-top: 1px solid #6e2230; padding-top: 20px; }
.benefits h3 { color: var(--gold); font-size: 26px; }
.benefits p { color: var(--on-dark-2); margin: 0; }

/* ─── Sources ─── */
.sources dt { font: 600 22px/1.2 var(--font-display); color: var(--wine-500); margin-top: 20px; }
.sources dt:first-child { margin-top: 0; }
.sources dd { margin: 6px 0 0; color: var(--ink-2); }
.note { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold-dark); border-radius: var(--radius); padding: 24px; align-self: start; }
.note h3 { color: var(--wine-500); }
.note p { color: var(--ink-2); font-size: 16px; }
.note p:last-child { margin: 0; }

/* ─── Installation ─── */
.platforms { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
.platforms li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.platforms h3 { color: var(--wine-500); }
.platforms p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ─── FAQ ─── */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font: 600 22px/1.3 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 400 28px/1 var(--font-body); color: var(--gold-dark);
}
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--wine-500); }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* ─── Appel final ─── */
.cta {
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(160, 58, 80, .5), transparent 70%),
    var(--wine-900);
  color: var(--on-dark); text-align: center; padding: 72px 0;
}
.cta h2 { color: var(--on-dark); }
.cta p { color: var(--on-dark-2); margin-bottom: 28px; }

/* ─── Pied de page ─── */
.footer { background: #1c0a0e; color: var(--on-dark-2); padding: 40px 0; font-size: 15px; }
.footer a { color: var(--gold); }
.footer a:hover { color: var(--gold-light); }
.footer__inner { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer__inner { grid-template-columns: 1fr auto; } }
.footer p { margin-bottom: 6px; }
.brand--footer { font-size: 22px; margin-bottom: 10px !important; }
.footer__links { display: grid; gap: 8px; }
.footer__legal { grid-column: 1 / -1; font-size: 13px; opacity: .85; border-top: 1px solid #3a1219; padding-top: 16px; }
