/* ═══════════════════════════════════════════════════
   SCRIVAELO — global.css
   Breakpoints : mobile < 640px | tablet 640–1024px | desktop > 1024px
   Layout token : --gutter (padding latéral unifié)
   ═══════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

/* ─── TOKENS ─── */
:root {
  --bg:          #F5F3EE;
  --bg-alt:      #ECEAE4;
  --text:        #0F0F0D;
  --text-muted:  #3D3B35;
  --text-light:  #7A7670;
  --gold:        #9A7340;
  --gold-dark:   #5C3D0F;
  --border:      #D4D0C8;
  --white:       #FFFFFF;

  --nav-h:       64px;
  --gutter:      clamp(1rem, 5vw, 2.5rem);
  --radius-sm:   4px;
  --radius-md:   12px;
  --radius-lg:   16px;

  --container:   1100px;
  --container-narrow: 640px;

  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── BASE ─── */
html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(180deg, #F8F5F0 0%, #EEE9E1 100%);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================================
   LIGNES DORÉES — fond fixe pleine page
   ============================================================ */
.gold-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .gold-lines animate { display: none; }
}

/* Les sections et la nav passent par-dessus */
nav, section, footer {
  position: relative;
  z-index: 1;
}

/* ─── LAYOUT UTILITAIRES ─── */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow {
  max-width: var(--container-narrow);
}

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */
body > nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(245, 243, 238, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.06em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.logo-img { width: 26px; height: 26px; object-fit: contain; }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: #333 !important; }

.btn-nav-ghost {
  background: transparent !important;
  color: var(--text) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  border: 1px solid var(--border) !important;
  transition: border-color var(--transition), color var(--transition) !important;
}
.btn-nav-ghost:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
  margin-left: 0.25rem;
}
.lang-switcher a {
  font-size: 0.78rem !important;
  color: var(--text-light) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}
.lang-switcher a.active { color: var(--gold) !important; font-weight: 500 !important; }
.lang-switcher a:hover  { color: var(--text) !important; }

/* Hamburger — mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(245, 243, 238, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 199;
  flex-direction: column;
  padding: 2rem var(--gutter);
  gap: 0;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-drawer a:hover { color: var(--text); }
.nav-drawer .btn-nav {
  margin-top: 1.25rem;
  text-align: center;
  padding: 0.75rem 1.5rem !important;
  font-size: 0.95rem !important;
  border-radius: var(--radius-sm) !important;
}
.nav-drawer .lang-switcher {
  border-left: none;
  padding-left: 0;
  margin-top: 1.25rem;
  gap: 1rem;
}
.nav-drawer .lang-switcher a { font-size: 0.9rem !important; }

/* ════════════════════════════════════════
   PAGE DOTS
   ════════════════════════════════════════ */
.page-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 200;
}
.page-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(154, 115, 64, 0.22);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}
.page-dot:hover  { background: rgba(154, 115, 64, 0.5); }
.page-dot.active { background: var(--gold-dark); transform: scale(1.55); }

/* ════════════════════════════════════════
   SECTIONS — BASE
   ════════════════════════════════════════ */
section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(4rem, 8vw, 6rem);
  padding-inline: var(--gutter);
  scroll-margin-top: var(--nav-h);
}

/* Premier section (hero) : plein écran */
section.hero {
  min-height: 100svh;
  padding-block: 0;
}

/* ════════════════════════════════════════
   ANIMATIONS IN-VIEW
   ════════════════════════════════════════ */
section.section-animate {
  opacity: 0;
  transform: perspective(1200px) translateY(48px) rotateX(12deg) scale(0.97);
  transform-origin: center top;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
section.section-animate.in-view {
  opacity: 1;
  transform: perspective(1200px) translateY(0) rotateX(0deg) scale(1);
}

.section-animate:not(section) {
  opacity: 0;
  transform: perspective(1200px) translateY(48px) rotateX(12deg) scale(0.97);
  transform-origin: center top;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.section-animate:not(section).in-view {
  opacity: 1;
  transform: perspective(1200px) translateY(0) rotateX(0deg) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .section-animate,
  .section-animate:not(section) {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-block: clamp(5rem, 12vw, 8rem);
  padding-inline: var(--gutter);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.35rem 1.1rem;
  margin-bottom: 2.25rem;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.5rem;
}
h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  font-weight: 400;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

/* Boutons */
.btn-primary {
  background: var(--text);
  color: var(--bg);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: #333; }

.btn-ghost,
.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 400;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover,
.btn-secondary:hover { border-color: var(--text); }

/* Ornement décoratif */
.hero-ornament {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(140px, 20vw, 240px);
  height: clamp(140px, 20vw, 240px);
  opacity: 0.12;
  pointer-events: none;
}

/* Scroll indicator */
.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-light);
  margin-top: 2rem;
  animation: fadeInUp 0.9s ease 0.4s both;
}
.scroll-indicator__icon {
  width: 30px;
  height: 46px;
  border: 1px solid var(--text-light);
  border-radius: 20px;
  position: relative;
}
.scroll-indicator__icon::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--text-light);
  border-radius: 50%;
  animation: scrollDot 1.6s infinite;
}
.scroll-indicator__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
}

@keyframes scrollDot {
  0%, 20% { opacity: 0; transform: translate(-50%, 0) scale(0.9); }
  30%      { opacity: 1; transform: translate(-50%, 11px) scale(1); }
  100%     { opacity: 0; transform: translate(-50%, 22px) scale(0.8); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   PROMISE
   ════════════════════════════════════════ */
.promise {}

.promise-card {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 8px 40px rgba(15, 15, 13, 0.07);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.promise-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.promise-item svg   { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.promise-item strong { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text); margin-bottom: 0.25rem; }
.promise-item span  { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; }

/* ════════════════════════════════════════
   CONTAINER (sections internes)
   ════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}
.container--narrow {
  max-width: var(--container-narrow);
}

/* ════════════════════════════════════════
   SECTION LABEL + TITRES H2
   ════════════════════════════════════════ */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.85rem;
}

.features h2,
.beta h2,
.download h2,
.ai-text h2,
.how-it-works h2,
.testimonials h2,
.pricing h2,
.faq h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--text);
  line-height: 1.15;
}

.features h2,
.beta h2,
.download h2,
.how-it-works h2,
.testimonials h2,
.pricing h2,
.faq h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.features h2 em,
.how-it-works h2 em,
.testimonials h2 em,
.pricing h2 em,
.faq h2 em { font-style: italic; color: var(--gold); }

/* ════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════ */
.features {}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.feature-card:hover { background: var(--bg-alt); }

.feature-icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ════════════════════════════════════════
   AI SECTION
   ════════════════════════════════════════ */
.ai-section {}

.ai-inner {
  display: grid;
  grid-template-columns: 1fr; /* colonne visuelle retirée -> texte seul, centré */
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ai-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.ai-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1.1rem;
  text-align: left;
}
.ai-text h2 em { font-style: italic; color: var(--gold); }

.ai-text > p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.ai-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.ai-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.ai-list li svg   { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.ai-list strong   { color: var(--text); font-weight: 500; }

.ai-note {
  display: flex;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.ai-note svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.ai-note p   { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }

.ai-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ── Slider tilt cards ─────────────────────────────────── */
.tilt-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding: 0 48px;
  box-sizing: border-box;
}

.tilt-slider__track {
  position: relative;
  width: 100%;
}

/* Toutes les cards : absolues et invisibles par défaut */
.tilt-card {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: rgba(245, 243, 238, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(154, 115, 64, 0.25);
  border-radius: 12px;
  padding: 1.4rem;
  cursor: default;
  transform-style: preserve-3d;
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 2px 8px rgba(15,15,13,0.06), 0 0 0 0.5px rgba(154,115,64,0.12) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: perspective(600px) scale3d(0.97,0.97,1);
}

/* Card active : relative pour donner sa hauteur au track */
.tilt-card.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: perspective(600px) scale3d(1,1,1);
}

.tilt-card:hover {
  box-shadow: 0 16px 40px rgba(15,15,13,0.12), 0 0 0 1px rgba(154,115,64,0.3) inset;
}

.tilt-card__shine {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

.tilt-card__label {
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  border-bottom: 1px solid rgba(154, 115, 64, 0.2);
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
}

.tilt-card__item {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(15, 15, 13, 0.05);
}

.tilt-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.tilt-dot.green  { background: #4A8C6A; }
.tilt-dot.yellow { background: #C4892A; }

.tilt-card__note {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  color: var(--gold);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  margin-top: 0.75rem;
  opacity: 0.8;
}

/* Cards screenshot */
.tilt-card--screenshot {
  padding: 0;
  overflow: hidden;
}
.tilt-card__screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  position: relative;
  z-index: 2;
}

/* ── Lightbox ───────────────────────────────────────────── */
.scrivaelo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.scrivaelo-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.scrivaelo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 11, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* grain de papier */
.scrivaelo-lightbox__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.scrivaelo-lightbox__frame {
  position: relative;
  z-index: 1;
  max-width: min(880px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  transform: scale(0.88) translateY(16px);
  transition: transform 0.4s cubic-bezier(0.34, 1.26, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
}

.scrivaelo-lightbox.open .scrivaelo-lightbox__frame {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.scrivaelo-lightbox__img-wrap {
  border: 1px solid rgba(154, 115, 64, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(154, 115, 64, 0.12) inset,
    0 32px 80px rgba(15, 14, 11, 0.5),
    0 0 40px rgba(154, 115, 64, 0.08);
}

.scrivaelo-lightbox__img {
  display: block;
  max-width: min(880px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 11px;
}

.scrivaelo-lightbox__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.scrivaelo-lightbox__caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(232, 196, 106, 0.7);
  letter-spacing: 0.02em;
}

.scrivaelo-lightbox__close {
  background: rgba(245, 243, 238, 0.06);
  border: 1px solid rgba(154, 115, 64, 0.3);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(232, 196, 106, 0.7);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.scrivaelo-lightbox__close:hover {
  background: rgba(154, 115, 64, 0.15);
  border-color: rgba(154, 115, 64, 0.6);
  color: rgba(232, 196, 106, 1);
}

.scrivaelo-lightbox__close svg {
  width: 14px;
  height: 14px;
}

/* curseur zoom sur les screenshots */
.tilt-card--screenshot .tilt-card__screenshot {
  cursor: zoom-in;
}

/* Flèches */
.tilt-slider__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  background: rgba(245, 243, 238, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(154, 115, 64, 0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  transition: background 0.2s, border-color 0.2s;
  z-index: 10;
}
.tilt-slider__arrow svg { width: 16px; height: 16px; }
.tilt-slider__arrow:hover { background: rgba(154,115,64,0.12); border-color: rgba(154,115,64,0.5); }
.tilt-slider__arrow--prev { left: 0; }
.tilt-slider__arrow--next { right: 0; }

/* Dots */
.tilt-slider__dots { display: flex; gap: 0.45rem; align-items: center; }
.tilt-slider__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(154, 115, 64, 0.25);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.tilt-slider__dot.active { background: var(--gold); transform: scale(1.3); }

/* ════════════════════════════════════════
   BETA
   ════════════════════════════════════════ */
.beta {}

.beta-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  font-size: 0.97rem;
  line-height: 1.7;
}

.form-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.beta-form input,
.beta-form select {
  flex: 1;
  min-width: 180px;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.beta-form input:focus,
.beta-form select:focus { border-color: var(--text); }

.beta-form .select-full {
  width: 100%;
  margin-bottom: 0.7rem;
}

.beta-form button {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0.9rem 2rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  font-family: 'DM Sans', sans-serif;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  margin-top: 0.7rem;
}
.beta-form button:hover { background: #333; }

/* ════════════════════════════════════════
   DOWNLOAD
   ════════════════════════════════════════ */
.download {}

.download-sub {
  text-align: center;
  color: var(--text-muted);
  margin-top: -1.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.93rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 760px;
  margin-inline: auto;
  border: 1px solid var(--border);
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.download-card {
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 2rem);
  text-align: center;
  transition: background var(--transition);
}
.download-card:hover { background: var(--bg-alt); }

.dl-icon { width: 30px; height: 30px; color: var(--gold); margin: 0 auto 0.9rem; }
.dl-icon svg { width: 100%; height: 100%; }
.dl-name  { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--text); margin-bottom: 0.25rem; }
.dl-ext   { font-size: 0.75rem; color: var(--text-light); margin-bottom: 1.25rem; font-family: monospace; }

.btn-dl {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
}
.btn-dl:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  line-height: 1;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
}
.footer-sep      { color: var(--border); font-size: 0.85rem; }
.footer-tagline  { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.93rem; color: var(--text-muted); }
.footer-copy     { font-size: 0.8rem; color: var(--text-light); }

/* ════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ai-visual { justify-content: flex-start; }
  .tilt-slider { padding: 0 44px; }

  .hero-ornament { display: none; }
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 640px)
   ════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --gutter: 1.1rem;
    --nav-h:  56px;
  }

  /* Nav */
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  /* Sections */
  section {
    padding-block: clamp(3rem, 8vw, 4.5rem);
  }
  section.hero { min-height: 100svh; }

  /* Hero */
  .hero-inner { padding-block: clamp(4rem, 10vw, 6rem); }
  .hero-cta   { flex-direction: column; align-items: center; }
  .btn-primary,
  .btn-ghost,
  .btn-secondary { width: 100%; text-align: center; }

  /* Promise */
  .promise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    border-right: none;
  }

  /* AI */
  .ai-text h2 { text-align: center; }
  .ai-visual  { justify-content: center; }
  .tilt-slider { padding: 0 40px; }

  /* Download */
  .download-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  /* Footer */
  .site-footer { flex-direction: column; gap: 0.4rem; text-align: center; }
  .footer-sep  { display: none; }

  /* Page dots */
  .page-dots { display: none; }

  /* Scroll indicator */
  .scroll-indicator { margin-top: 1.5rem; }
}

/* ════════════════════════════════════════
   EFFET CSS TRANSFORMS — Desktop / Tablet
   Inspiré du pen ZEqxBb de Nikolay Talanov
   ════════════════════════════════════════

   NOTES TECHNIQUES :
   - perspective sur body (pas sur les sections) pour un referentiel
     viewport cohérent sur toutes les sections
   - transform-origin fixe à "50% 50%" pour éviter le saut d'origine
     quand pg-below → pg-active → pg-above
   - translateY compense la perspective pour que la section arrive
     bien centrée depuis le bas / reparte vers le haut
   ════════════════════════════════════════ */

@media (min-width: 640px) {

  html.desktop-scroll,
  body.desktop-scroll {
    overflow: hidden;
    height: 100%;
  }

  /* Fond neutre pour éviter le flash pendant les transitions */
  body.desktop-scroll {
    background: var(--bg);
  }

  /* Chaque section = page plein écran empilée */
  section.pg-section {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: unset;
    padding-block: 0;
    scroll-margin-top: 0;

    /* transform-origin FIXE — ne change jamais entre les états */
    transform-origin: 50% 0%;

    /* État de repos : en attente sous l'écran */
    transform: translateY(100%) scale(0.92);
    opacity: 0;
    pointer-events: none;

    transition:
      transform 0.78s cubic-bezier(0.65, 0, 0.15, 1),
      opacity   0.55s cubic-bezier(0.65, 0, 0.15, 1);
    will-change: transform, opacity;

    /* Force la promotion GPU dès le départ — évite le recalcul au premier scroll */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    z-index: 1;
  }

  /* ── Page active : au premier plan, plein écran ── */
  section.pg-section.pg-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
  }

  /* ── Page passée : recule en haut, rétrécit et s'estompe ── */
  section.pg-section.pg-above {
    transform: translateY(-22%) scale(0.88);
    opacity: 0;
    z-index: 5;
  }

  /* ── Page suivante : attend en bas, légèrement inclinée ── */
  section.pg-section.pg-below {
    transform: translateY(100%) scale(0.92);
    opacity: 0;
    z-index: 5;
  }

  /* Nav et dots toujours au-dessus des sections */
  nav          { z-index: 300; }
  .nav-drawer  { z-index: 299; }
  .page-dots   { z-index: 400; }

  /* Masquer le scroll indicator sur les slides inactives */
  section.pg-section:not(.pg-active) .scroll-indicator {
    display: none;
  }
}

/* ════════════════════════════════════════
   PRIVACY MANIFESTO
   ════════════════════════════════════════ */
.privacy-manifesto {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) 1.2rem;
}

.privacy-manifesto h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  line-height: 1.15;
  text-align: center;
  margin-bottom: 0.85rem;
}
.privacy-manifesto h2 em { font-style: italic; color: var(--gold); }

.privacy-intro {
  max-width: 620px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.privacy-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(154, 115, 64, 0.08);
}

.privacy-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: var(--bg);
}
.privacy-card__icon svg { width: 18px; height: 18px; }

.privacy-card__body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.privacy-card__body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.privacy-statement {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 680px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--gold) 5%, var(--bg));
}
.privacy-statement svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-top: 2px;
}
.privacy-statement p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  .privacy-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════ */
.how-it-works {}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  transition: box-shadow var(--transition);
}
.step-card:hover {
  box-shadow: 0 8px 32px rgba(15, 15, 13, 0.09);
}

.step-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  margin: 0 auto 1rem;
}
.step-icon svg { width: 100%; height: 100%; }

.step-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.step-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-connector {
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-inline: 4px;
}
.step-connector svg { width: 100%; height: auto; }

/* ════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════ */
.testimonials {}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(15, 15, 13, 0.08);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.testimonial-card blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ════════════════════════════════════════
   PRICING
   ════════════════════════════════════════ */
.pricing {}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 480px;
  margin-inline: auto;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 12px 48px rgba(15, 15, 13, 0.08);
  position: relative;
}

.pricing-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pricing-features li svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.pricing-note {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ════════════════════════════════════════
   FAQ
   ════════════════════════════════════════ */
.faq {}

.faq-list {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background var(--transition);
}
.faq-item:last-child { border-bottom: none; }
.faq-item[open]      { background: var(--bg-alt); }

.faq-item summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--gold); }

.faq-item p {
  padding: 0 1.4rem 1.2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ════════════════════════════════════════
   DOWNLOAD — layout colonne avec footer en bas
   ════════════════════════════════════════ */
.download {
  background: var(--bg);
  /* Override pg-section justify-content:center */
  justify-content: flex-start !important;
  align-items: stretch !important;
  overflow-y: auto !important;
  padding-block: 0 !important;
}

/* Le container download centré verticalement dans l'espace dispo */
.download > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(3rem, 6vw, 5rem);
  width: 100%;
}

/* ════════════════════════════════════════
   FOOTER ENRICHI
   ════════════════════════════════════════ */
.site-footer-full {
  width: 100%;
  background: var(--text);
  color: var(--bg);
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--bg);
  text-decoration: none;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo .logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-tagline-full {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(245, 243, 238, 0.55);
  line-height: 1.65;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.social-link {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245, 243, 238, 0.18);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 243, 238, 0.55);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.social-link svg { width: 15px; height: 15px; }
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.4);
  margin-bottom: 0.25rem;
}
.footer-col a {
  font-size: 0.85rem;
  color: rgba(245, 243, 238, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--bg); }

.footer-bottom {
  border-top: 1px solid rgba(245, 243, 238, 0.1);
  padding: 1rem var(--gutter);
  text-align: center;
  width: 100%;
}
.site-footer-full > .footer-bottom {
  width: 100%;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(245, 243, 238, 0.35);
}

/* ════════════════════════════════════════
   RESPONSIVE ADDITIONS
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .step-connector {
    display: none;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ── Pages internes (docs, changelog, légal) ───────────────── */
.inner-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #F8F5F0 0%, #EEE9E1 100%);
}

.inner-page nav,
.inner-page footer {
  flex-shrink: 0;
}

.inner-content {
  flex: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 5rem;
  box-sizing: border-box;
}

/* En-tête de page interne */
.inner-header {
  margin-bottom: 3rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(154, 115, 64, 0.2);
}

.inner-header__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

.inner-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.inner-header__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

/* Prose */
.inner-prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin: 2.5rem 0 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(154, 115, 64, 0.15);
}

.inner-prose h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 1.8rem 0 0.5rem;
}

.inner-prose p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.inner-prose ul,
.inner-prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.inner-prose li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.3rem;
}

.inner-prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inner-prose a:hover {
  opacity: 0.75;
}

.inner-prose strong {
  color: var(--text);
  font-weight: 500;
}

.inner-prose .placeholder {
  background: rgba(154, 115, 64, 0.08);
  border: 1px dashed rgba(154, 115, 64, 0.35);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
}

/* Changelog entries */
.changelog-entry {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(154, 115, 64, 0.12);
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-version {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.changelog-version__tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(154, 115, 64, 0.1);
  border: 1px solid rgba(154, 115, 64, 0.25);
  color: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.changelog-version__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}

.changelog-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.4rem;
  vertical-align: middle;
  letter-spacing: 0.03em;
}

.changelog-badge--new      { background: rgba(74, 140, 106, 0.12); color: #3a7a5a; border: 1px solid rgba(74,140,106,0.25); }
.changelog-badge--improved { background: rgba(154, 115, 64, 0.10); color: #8a6030; border: 1px solid rgba(154,115,64,0.25); }
.changelog-badge--fix      { background: rgba(180, 80, 60, 0.08);  color: #9a4535; border: 1px solid rgba(180,80,60,0.2); }

/* Docs — navigation latérale sur desktop */
.docs-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.docs-sidebar h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  opacity: 0.7;
}

.docs-sidebar a {
  display: block;
  font-size: 0.83rem;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  padding: 0.3rem 0;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--gold);
  border-left-color: var(--gold);
}

@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(154, 115, 64, 0.15);
  }
  .docs-sidebar h5 { display: none; }
  .docs-sidebar a {
    border-left: none;
    padding-left: 0;
    font-size: 0.8rem;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ── Modale Contact ─────────────────────────────────────── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.contact-modal[hidden] { display: none; }

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,15,13,0.55);
  backdrop-filter: blur(3px);
}

.contact-modal__box {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(15,15,13,0.18);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.contact-modal__header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.contact-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.contact-modal__close:hover { color: var(--text); }
.contact-modal__close svg { width: 20px; height: 20px; }

.contact-modal__sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.contact-modal__field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-modal__field input,
.contact-modal__field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}

.contact-modal__field input:focus,
.contact-modal__field textarea:focus {
  border-color: var(--gold);
}

.contact-modal__submit {
  width: 100%;
  margin-top: 0.5rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.15s;
}
.contact-modal__submit:hover { opacity: 0.85; }
.contact-modal__submit:disabled { opacity: 0.5; cursor: not-allowed; }

.contact-modal__success {
  text-align: center;
  margin-top: 1rem;
  color: var(--gold-dark);
  font-size: 0.92rem;
}


/* ============================================================
   ANTI-JANK TACTILE / PETITS ECRANS (<=1024px ou pointeur tactile)
   Scroll natif fluide : on neutralise le scroll plein ecran et
   les effets coûteux au repaint (decor fixe, backdrop-filter, will-change).
   N'affecte pas le desktop souris >=1024px.
   ============================================================ */
@media (pointer: coarse), (max-width: 1023px) {
  /* Decor plein ecran fixe : repaint a chaque frame de scroll */
  .gold-lines { display: none !important; }
  /* Nav : backdrop-filter recalcule en continu pendant le scroll */
  body > nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(245, 243, 238, 0.98) !important;
  }
  /* Ne pas promouvoir des calques inutiles */
  .section-animate { will-change: auto !important; }
  /* Cartes tilt : effet souris inutile au tactile + blur coûteux */
  .tilt-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: auto !important;
  }
  /* Filet de securite : aucune section ne reste "epinglee" en 100vh */
  html.desktop-scroll, body.desktop-scroll {
    overflow: auto !important;
    height: auto !important;
  }
  section.pg-section {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }
}

/* ── Sélecteur de langue (header) — remplace la liste .lang-switcher ───────── */
.lang-select {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.34rem 1.7rem 0.34rem 0.7rem;
  margin-left: 1.1rem;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a08b6a' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  transition: color var(--transition), border-color var(--transition);
  font-family: inherit;
}
.lang-select:hover { color: var(--text); border-color: var(--text-light); }
.lang-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-select option { color: #1a1a1a; text-transform: none; }
.nav-drawer .lang-select { margin-left: 0; margin-top: 0.75rem; width: fit-content; }

/* ── Langues du footer sur deux colonnes ──────────────────────────────────── */
.footer-langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.75rem;
}
