/* ===== KATHARSIS COURTAGE — DESIGN SYSTEM V2 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0A0A0B;
  --black-soft: #131315;
  --slate: #1C1C20;
  --crimson: #8B1228;
  --crimson-bright: #C41E3A;
  --crimson-deep: #5C0C1A;
  --gold: #C9A24B;
  --gold-bright: #E8C778;
  --white: #F5F3EF;
  --muted: #ABA79D; /* éclairci depuis #9A968D pour contraste WCAG AA sur fond noir */
  --border: rgba(201,162,75,0.18);
  --focus-ring: #E8C778;
}

html { scroll-behavior: scroll; } /* JS bascule en smooth pour respecter prefers-reduced-motion */
html.smooth-scroll { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn { from { opacity: 0.4; } to { opacity: 1; } }

h1, h2, h3, .display { font-family: 'Cinzel', serif; }

img { max-width: 100%; height: auto; display: block; }

/* Focus visible — accessibilité clavier (WCAG AA) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Lien d'évitement (skip to content) */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--gold); color: var(--black);
  padding: 12px 20px; border-radius: 2px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* TEXTURE BG */
.texture {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139,18,40,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201,162,75,0.05) 0%, transparent 50%),
    var(--black);
  background-attachment: fixed;
}

#petals-canvas {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  width: 100%; height: 100%;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 70px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mini { width: 42px; height: 28px; object-fit: contain; }
.nav-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; letter-spacing: 0.06em; color: var(--white); }
.nav-name span { color: var(--crimson-bright); }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-dropdown { position: relative; }
.nav-dropdown > button {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.25s; display: flex; align-items: center; gap: 6px; padding: 8px 0;
}
.nav-dropdown > button:hover, .nav-dropdown > button[aria-expanded="true"] { color: var(--gold-bright); }
.nav-dropdown > button .chevron { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown > button[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--black-soft); border: 1px solid var(--border);
  min-width: 240px; padding: 10px 0;
  opacity: 0; visibility: hidden; transition: all 0.2s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-dropdown-menu.open,
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.nav-dropdown-menu a {
  display: block; padding: 11px 22px; color: var(--muted); text-decoration: none;
  font-size: 13.5px; letter-spacing: 0.02em; transition: all 0.2s;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { color: var(--gold-bright); background: rgba(201,162,75,0.08); padding-left: 28px; }

.nav-links > a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links > a:hover { color: var(--gold-bright); }

.nav-cta {
  border: 1px solid var(--gold); color: var(--gold-bright) !important;
  padding: 9px 22px; border-radius: 2px; font-weight: 500 !important;
  transition: all 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--black) !important; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; background: none; border: none; width: 40px; height: 40px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--white); transition: all 0.25s; display: block; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV PANEL ===== */
.mobile-nav-panel {
  position: fixed; top: 70px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--black); border-top: 1px solid var(--border);
  padding: 24px 5vw; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav-panel.open { transform: translateX(0); }

.mobile-nav-group { margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.mobile-nav-group-title {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; color: var(--white); font-size: 15px; font-family: inherit;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mobile-nav-group-title .chevron { transition: transform 0.2s; color: var(--gold); }
.mobile-nav-group-title[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.mobile-nav-sublist { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.mobile-nav-sublist.open { max-height: 400px; }
.mobile-nav-sublist a {
  display: block; padding: 13px 4px 13px 16px; color: var(--muted); text-decoration: none; font-size: 14.5px;
}
.mobile-nav-sublist a:hover { color: var(--gold-bright); }

.mobile-nav-link {
  display: block; padding: 18px 4px; color: var(--white); text-decoration: none;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-cta {
  display: block; margin-top: 20px; text-align: center;
  background: var(--crimson); color: var(--white); text-decoration: none;
  padding: 16px; border-radius: 2px; font-weight: 500; letter-spacing: 0.03em;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 100px 5vw 0; font-size: 12.5px; color: var(--muted);
  max-width: 1080px; margin: 0 auto;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.4; }
.breadcrumb .current { color: var(--gold-bright); }

/* ===== SECTIONS GÉNÉRIQUES ===== */
section { padding: 90px 5vw; position: relative; }
.container { max-width: 1080px; margin: 0 auto; }

.section-eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; text-align: center; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; text-align: center; margin-bottom: 20px; color: var(--white); }
.section-lead { font-size: 17px; color: var(--muted); text-align: center; max-width: 600px; margin: 0 auto 64px; }

.btn-crimson {
  background: var(--crimson); color: var(--white); border: 1px solid var(--crimson-bright);
  padding: 16px 32px; border-radius: 2px; font-weight: 500; font-size: 15px; text-decoration: none;
  letter-spacing: 0.03em; transition: all 0.25s; display: inline-block;
}
.btn-crimson:hover { background: var(--crimson-bright); box-shadow: 0 0 24px rgba(196,30,58,0.35); }

.btn-ghost {
  border: 1px solid var(--border); color: var(--white); padding: 16px 32px; border-radius: 2px;
  font-size: 15px; text-decoration: none; transition: all 0.25s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border); padding: 56px 5vw 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  max-width: 1080px; margin: 0 auto 40px;
}
.footer-col h4 { font-size: 13px; color: var(--gold-bright); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 13.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-col p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.footer-brand { font-family: 'Cinzel', serif; font-weight: 700; font-size: 16px; color: var(--white); letter-spacing: 0.04em; margin-bottom: 12px; display: block; }
.footer-brand span { color: var(--crimson-bright); }
.footer-bottom {
  max-width: 1080px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-legal { font-size: 12.5px; color: var(--muted); }

/* ===== FORMULAIRES ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.field .req { color: var(--crimson-bright); }

input, select, textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border); background: var(--black-soft);
  border-radius: 2px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--white);
  outline: none; transition: border-color 0.2s; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--crimson-bright); }
select option { background: var(--black-soft); }
textarea { resize: vertical; min-height: 100px; }

.error-msg { font-size: 12.5px; color: #FF6B7A; min-height: 16px; }

.form-submit {
  background: var(--crimson); color: var(--white); padding: 16px 28px; border: 1px solid var(--crimson-bright);
  border-radius: 2px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: all 0.25s; width: 100%; letter-spacing: 0.03em;
}
.form-submit:hover { background: var(--crimson-bright); box-shadow: 0 0 24px rgba(196,30,58,0.3); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* Honeypot anti-spam (champ caché humainement, visible aux bots) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 1.5px dashed var(--border); border-radius: 4px; padding: 26px 18px;
  text-align: center; cursor: pointer; transition: all 0.25s;
  background: rgba(255,255,255,0.015);
  display: block;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--gold); background: rgba(201,162,75,0.05); }
.upload-zone:focus-within { border-color: var(--gold-bright); }
.upload-zone input[type="file"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.upload-zone-icon { font-size: 22px; margin-bottom: 10px; opacity: 0.7; }
.upload-zone-label { font-size: 13.5px; color: var(--white); margin-bottom: 4px; font-weight: 500; }
.upload-zone-sub { font-size: 12px; color: var(--muted); }
.upload-filename { font-size: 12.5px; color: var(--gold-bright); margin-top: 8px; word-break: break-all; }
.upload-error { font-size: 12px; color: #FF6B7A; margin-top: 6px; }

.doc-item { margin-bottom: 22px; }
.doc-item-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; gap: 12px; }
.doc-item-title { font-size: 14px; color: var(--white); font-weight: 500; }
.doc-item-badge {
  font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 2px;
  white-space: nowrap;
}
.doc-item-badge.required { background: rgba(139,18,40,0.2); color: #FF8C97; border: 1px solid rgba(139,18,40,0.4); }
.doc-item-badge.optional { background: rgba(171,167,157,0.12); color: var(--muted); border: 1px solid var(--border); }

/* ===== PRODUITS GRID (restructurée, proportions cohérentes) ===== */
.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.produit-card {
  background: var(--black); border: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: all 0.25s; position: relative;
  display: flex; flex-direction: column;
  min-height: 240px;
  padding: 30px 26px;
}
.produit-card:hover, .produit-card:focus-visible { border-color: var(--gold); transform: translateY(-3px); }
.produit-icon { width: 44px; height: 44px; margin-bottom: 18px; flex-shrink: 0; }
.produit-icon svg { width: 100%; height: 100%; stroke: var(--gold-bright); fill: none; stroke-width: 1.5; }
.produit-name { font-family: 'Cinzel', serif; font-size: 16px; color: var(--white); margin-bottom: 8px; line-height: 1.3; }
.produit-desc { font-size: 13px; color: var(--muted); margin-bottom: auto; line-height: 1.6; padding-bottom: 16px; }
.produit-price { font-size: 12.5px; color: var(--gold-bright); letter-spacing: 0.03em; padding-top: 14px; border-top: 1px solid var(--border); }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; color: var(--white); font-size: 15.5px; text-align: left;
}
.faq-question .chevron { color: var(--gold); flex-shrink: 0; transition: transform 0.25s; }
.faq-question[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer.open { max-height: 400px; }
.faq-answer-inner { padding: 0 4px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ===== TÉMOIGNAGES ===== */
.temoignages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.temoignage-card { background: var(--black-soft); border: 1px solid var(--border); padding: 28px 26px; }
.temoignage-stars { color: var(--gold); font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.temoignage-text { font-size: 14.5px; color: var(--white); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.temoignage-author { font-size: 13px; color: var(--muted); }
.temoignage-author strong { color: var(--gold-bright); font-style: normal; }

/* ===== RÉASSURANCE BAR ===== */
.reassurance-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.reassurance-item {
  background: var(--black-soft); padding: 28px 20px; text-align: center;
}
.reassurance-icon { width: 32px; height: 32px; margin: 0 auto 12px; }
.reassurance-icon svg { width: 100%; height: 100%; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.reassurance-label { font-size: 13px; color: var(--white); font-weight: 500; }

/* ===== VISUALLY HIDDEN (texte accessible non visible) ===== */
.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;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .temoignages-grid { grid-template-columns: 1fr; }
  .reassurance-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  section { padding: 64px 5vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== ANIMATIONS PREMIUM ===== */

/* ── Reveal au scroll ── */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0; transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-scale { transform: scale(0.95); }
.reveal-delay-1 { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease 0.12s, transform 0.65s ease 0.12s; }
.reveal-delay-2 { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease 0.24s, transform 0.65s ease 0.24s; }
.reveal-delay-3 { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease 0.36s, transform 0.65s ease 0.36s; }
.reveal.revealed, .reveal-left.revealed, .reveal-right.revealed, .reveal-scale.revealed,
.reveal-delay-1.revealed, .reveal-delay-2.revealed, .reveal-delay-3.revealed {
  opacity: 1; transform: none;
}

/* ── Glow card ── */
.glow-card {
  position: relative; overflow: hidden;
  --glow-x: 50%; --glow-y: 50%; --glow-opacity: 0;
}
.glow-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 200px at var(--glow-x) var(--glow-y), rgba(201,162,75,0.08), transparent 70%);
  opacity: var(--glow-opacity);
  transition: opacity 0.3s ease;
}
.glow-card > * { position: relative; z-index: 1; }

/* ── Ripple bouton ── */
.btn-crimson, .form-submit { overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  width: 6px; height: 6px; margin: -3px;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: ripple-anim 0.55s linear;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(55); opacity: 0; } }

/* ── Labels flottants ── */
/* Labels formulaires : statiques, clairs, accessibles */
.field-float, .field-textarea { position: relative; }
.field-float label, .field-textarea label {
  display: block;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 8px;
}
.field-float input, .field-float select { padding: 14px 18px; }
.field-float .req, .field-textarea .req { color: var(--crimson-bright); }
.field-textarea textarea { padding: 14px 18px; }

/* ── Timeline ── */
.timeline-container { max-width: 680px; margin: 0 auto; position: relative; }
.timeline-container::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
}
.timeline-step {
  display: flex; align-items: flex-start; gap: 28px;
  margin-bottom: 40px; position: relative;
  opacity: 0; transform: translateX(-20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.timeline-step.tl-visible { opacity: 1; transform: none; }
.timeline-step:last-child { margin-bottom: 0; }

.tl-dot {
  width: 58px; min-width: 58px; height: 58px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--black-soft); border: 1px solid var(--border);
  position: relative; z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tl-dot svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.timeline-step.tl-visible .tl-dot {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(201,162,75,0.2);
}

.tl-content { padding-top: 12px; }
.tl-step-num { font-size: 11px; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 6px; }
.tl-content h3 { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 6px; font-family: 'Cinzel', serif; }
.tl-content p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── Hover cartes produits ── */
.produit-card {
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.produit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,162,75,0.3);
}

/* ── Hover liens footer ── */
.footer-col a {
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { padding-left: 6px; }

/* ── Ligne or animée sous les titres de sections ── */
.section-title-line {
  display: flex; flex-direction: column; align-items: center; margin-bottom: 20px;
}
.section-title-line::after {
  content: ''; display: block; width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.8s ease 0.3s;
  margin-top: 16px;
}
.section-title-line.revealed::after { width: 120px; }

/* ── Effet or subtil sur les chiffres hero ── */
@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.shimmer-gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gold-shimmer 3s ease infinite;
}

/* ── Transition page (fondu à l'entrée) ── */
@keyframes page-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main { animation: page-enter 0.45s ease forwards; }

/* ── Guides : cards ── */
.guide-card {
  background: var(--black); border: 1px solid var(--border);
  padding: 28px 24px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.guide-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.guide-card-icon { font-size: 24px; }
.guide-card-cat { font-size: 11px; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; }
.guide-card h3 { font-size: 16px; font-weight: 600; color: var(--white); font-family: 'Cinzel', serif; line-height: 1.3; }
.guide-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.guide-card-arrow { font-size: 18px; color: var(--gold); margin-top: auto; }

/* ── Page guide : contenu ── */
.guide-content { max-width: 760px; margin: 0 auto; padding: 0 5vw 100px; }
.guide-content h2 { font-family: 'Cinzel', serif; font-size: 22px; color: var(--gold-bright); margin: 48px 0 16px; border-left: 2px solid var(--gold); padding-left: 16px; }
.guide-content h3 { font-size: 17px; font-weight: 600; color: var(--white); margin: 32px 0 12px; }
.guide-content p { font-size: 15.5px; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.guide-content ul { list-style: none; padding: 0; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.guide-content ul li { font-size: 15px; color: var(--muted); padding-left: 22px; position: relative; }
.guide-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.guide-content .highlight-box {
  background: rgba(201,162,75,0.06); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); padding: 20px 22px; margin: 28px 0;
}
.guide-content .highlight-box p { color: var(--white); font-size: 15px; margin: 0; }
.guide-content .warn-box {
  background: rgba(139,18,40,0.08); border: 1px solid rgba(139,18,40,0.25);
  border-left: 3px solid var(--crimson-bright); padding: 20px 22px; margin: 28px 0;
}
.guide-content .warn-box p { color: #FF8C97; font-size: 15px; margin: 0; }
.guide-cta-block {
  background: var(--black-soft); border: 1px solid var(--border);
  padding: 32px 28px; text-align: center; margin-top: 56px;
}
.guide-cta-block h3 { font-family: 'Cinzel', serif; color: var(--white); margin-bottom: 12px; }
.guide-cta-block p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }


/* ── Barre de progression formulaire ── */
.form-progress {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.form-progress-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); flex: 1;
}
.form-progress-step span {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-family: 'Cinzel', serif; flex-shrink: 0;
  transition: all 0.3s;
}
.form-progress-active { color: var(--gold-bright); }
.form-progress-active span { border-color: var(--gold); background: rgba(201,162,75,0.1); color: var(--gold-bright); }
.form-progress-line { height: 1px; flex: 1; background: var(--border); margin: 0 12px; }

/* ── Footer liens légaux ── */
.footer-legal-links { display: flex; align-items: center; }
.footer-legal-links a { font-size: 12.5px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--gold-bright); }
/* ===== BLOC C — RGPD CONSENTEMENT ===== */
.field-rgpd { margin-top: 4px; }
.rgpd-consent {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.rgpd-consent input[type="checkbox"] {
  width: 18px; min-width: 18px; height: 18px;
  margin-top: 2px; cursor: pointer;
  accent-color: var(--gold);
  padding: 0;
}
.rgpd-consent a { color: var(--gold-bright); text-decoration: underline; }
.rgpd-consent a:hover { color: var(--gold); }
.rgpd-consent .req { color: var(--crimson-bright); }

/* ===== BLOC D — RESPONSIVE COMPLET ===== */

/* ── Tablette portrait (481px – 860px) ── */
@media (max-width: 860px) and (min-width: 481px) {
  /* Formulaires : 2 colonnes jusqu'à 600px, 1 colonne après */
  .form-row { grid-template-columns: 1fr 1fr; }
  /* Grille guides : 2 colonnes */
  .guides-row { grid-template-columns: 1fr 1fr; }
  /* Timeline */
  .timeline-container::before { left: 22px; }
  .tl-dot { width: 46px; min-width: 46px; height: 46px; }
  /* Page pourquoi : stats en 2x2 */
  .pq-stats { grid-template-columns: 1fr 1fr; }
  /* Grille produits : 2 colonnes */
  .produits-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Petits mobiles (≤ 480px) ── */
@media (max-width: 480px) {
  /* Espacements globaux */
  section { padding: 56px 4vw; }
  .container { padding: 0 4vw; }

  /* Nav */
  nav { padding: 0 4vw; height: 60px; }
  .nav-name { font-size: 15px; }

  /* Hero */
  .hero { padding: 100px 4vw 60px; }
  .lycoris-hero { width: min(220px, 75vw); }

  /* Onglets produits */
  .produits-tabs { gap: 8px; }
  .produits-tab { font-size: 11.5px; padding: 8px 14px; width: 100%; text-align: center; }

  /* Grille produits : 1 colonne */
  .produits-grid { grid-template-columns: 1fr; }

  /* Formulaires layout */
  .layout { grid-template-columns: 1fr; gap: 28px; padding: 0 4vw 60px; }
  .form-row { grid-template-columns: 1fr; }
  .price-banner { flex-direction: column; gap: 6px; }
  .price-banner-value { font-size: 20px; }

  /* Timeline */
  .timeline-container::before { left: 18px; }
  .tl-dot { width: 38px; min-width: 38px; height: 38px; }
  .tl-dot svg { width: 18px; height: 18px; }
  .timeline-step { gap: 18px; margin-bottom: 32px; }
  .tl-content h3 { font-size: 15px; }

  /* Sections titre */
  .section-title { font-size: clamp(22px, 6vw, 32px); }
  .section-lead { font-size: 15px; }

  /* Steps (processus) */
  .steps { grid-template-columns: 1fr; gap: 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal { font-size: 11px; }
  .footer-legal-links { flex-wrap: wrap; gap: 6px; }

  /* Témoignages */
  .temoignages-grid { grid-template-columns: 1fr; }

  /* Reassurance bar */
  .reassurance-bar { grid-template-columns: 1fr 1fr; }

  /* Guide content */
  .guide-content { padding: 0 4vw 60px; }
  .guide-content h2 { font-size: 18px; }

  /* Mentions légales */
  .legal-body { padding: 0 4vw 60px; }

  /* Page merci */
  .merci-reassurance { grid-template-columns: 1fr; gap: 16px; }
  .merci-actions { flex-direction: column; align-items: stretch; }

  /* Page 404 */
  .p404-links-grid { grid-template-columns: 1fr 1fr; }

  /* Pourquoi */
  .pq-engagements-grid { grid-template-columns: 1fr; }
  .pq-stats { grid-template-columns: 1fr 1fr; }
  .pq-diff-table th:nth-child(2),
  .pq-diff-table td:nth-child(2) { display: none; }
}

/* ── Très petits écrans (≤ 360px) ── */
@media (max-width: 360px) {
  .nav-name { font-size: 13px; }
  .hero-slogan { font-size: clamp(26px, 8vw, 36px); }
  .produits-tab { padding: 8px 10px; font-size: 11px; }
  .price-banner-value { font-size: 18px; }
  .p404-number { font-size: clamp(64px, 20vw, 100px); }
  .footer-legal { font-size: 10px; word-break: break-word; }
}

/* ── Hauteur tactile minimale (WCAG 2.5.5) ── */
@media (max-width: 860px) {
  .mobile-nav-sublist a,
  .mobile-nav-link,
  .mobile-nav-group-title,
  .faq-question,
  .produits-tab,
  .btn-crimson,
  .btn-ghost,
  .form-submit,
  .nav-cta {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .mobile-nav-cta {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Upload zones plus grandes sur tactile */
  .upload-zone { padding: 32px 18px; }
  /* Champs plus hauts sur mobile */
  input, select, textarea { padding: 16px 18px; font-size: 16px; }
  /* font-size: 16px évite le zoom auto iOS sur focus */
}

/* ── Grand écran (> 1280px) ── */
@media (min-width: 1280px) {
  .container { max-width: 1180px; }
  .produits-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* ===== HERO BADGES RÉASSURANCE ===== */
.hero-badges {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-top: 20px;
}
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--white);
  letter-spacing: 0.05em; padding: 9px 18px;
  border: 1px solid rgba(201,162,75,0.45);
  background: linear-gradient(135deg, rgba(201,162,75,0.08) 0%, rgba(139,18,40,0.06) 100%);
  box-shadow: 0 0 0 1px rgba(201,162,75,0.1) inset, 0 2px 12px rgba(0,0,0,0.25);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: default;
}
.hero-badge:hover {
  border-color: rgba(201,162,75,0.75);
  background: linear-gradient(135deg, rgba(201,162,75,0.14) 0%, rgba(139,18,40,0.1) 100%);
  box-shadow: 0 0 16px rgba(201,162,75,0.18), 0 0 0 1px rgba(201,162,75,0.2) inset;
}
.hero-badge svg { stroke: var(--gold-bright); flex-shrink: 0; }
.hero-badge-sep { color: rgba(201,162,75,0.3); font-size: 18px; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 20px;
  width: 36px; height: 36px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-size: 16px; transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); background: rgba(201,162,75,0.08); }
/* Affichage conditionnel icône selon le mode actif */
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }
:root[data-theme="light"] .theme-icon-dark { display: none; }
:root[data-theme="light"] .theme-icon-light { display: block; }
.theme-icon-dark, .theme-icon-light { line-height: 1; }

/* ===== LIGHT MODE ===== */
:root[data-theme="light"] {
  --black: #F5F4F0;
  --black-soft: #ECEAE4;
  --white: #1A1714;
  --muted: #5A5550;
  --border: rgba(0,0,0,0.12);
  --gold: #8B6A1E;
  --gold-bright: #A07C22;
  --crimson: #9B1228;
  --crimson-bright: #B01530;
  --crimson-deep: #7A0D20;
}
:root[data-theme="light"] body { background: #F5F4F0; color: #1A1714; }
:root[data-theme="light"] nav {
  background: rgba(245,244,240,0.96);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
:root[data-theme="light"] .nav-dropdown-menu {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
:root[data-theme="light"] .nav-dropdown-menu a { color: #1A1714; }
:root[data-theme="light"] .nav-dropdown-menu a:hover { background: rgba(0,0,0,0.04); color: var(--gold); }
:root[data-theme="light"] .texture { opacity: 0.03; }
:root[data-theme="light"] #petals-canvas { opacity: 0.35; }
:root[data-theme="light"] .produit-card,
:root[data-theme="light"] .docs-panel,
:root[data-theme="light"] .form-panel,
:root[data-theme="light"] .pq-stat,
:root[data-theme="light"] .pq-engagement,
:root[data-theme="light"] .guide-card,
:root[data-theme="light"] .faq-item {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.15);
  color: #1A1714;
}
:root[data-theme="light"] .upload-zone { background: #F0EEE8; border-color: rgba(0,0,0,0.15); }
:root[data-theme="light"] footer { background: #1A1714; }
:root[data-theme="light"] footer,
:root[data-theme="light"] footer a,
:root[data-theme="light"] .footer-col p,
:root[data-theme="light"] .footer-legal { color: #E8E4DC; }
:root[data-theme="light"] .footer-brand { color: #E8E4DC !important; }
:root[data-theme="light"] .footer-brand span { color: #E86060 !important; }
:root[data-theme="light"] .footer-col h4 { color: #C9A24B !important; }
:root[data-theme="light"] .footer-reassurance-label { color: #C9A24B !important; }
:root[data-theme="light"] .footer-reassurance-value { color: #B0A89A !important; }
:root[data-theme="light"] .footer-legal-links a { color: #B0A89A !important; }
:root[data-theme="light"] .footer-legal-links a:hover { color: #C9A24B !important; }
:root[data-theme="light"] .mobile-nav-panel { background: #FFFFFF; }
:root[data-theme="light"] .reassurance-bar { background: #FFFFFF; border-color: rgba(0,0,0,0.08); }
:root[data-theme="light"] .price-banner { background: rgba(139,106,30,0.08); }
:root[data-theme="light"] .timeline-container::before { background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent); }
:root[data-theme="light"] .hero-badge { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); }
:root[data-theme="light"] .pq-cta { background: var(--crimson-deep); }
:root[data-theme="light"] .pq-cta h2, :root[data-theme="light"] .pq-cta p { color: #F5F4F0; }

/* ===== FOOTER RÉASSURANCE ===== */
.footer-reassurance {
  border-top: 1px solid var(--border);
  padding: 28px 5vw;
}
.footer-reassurance-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.footer-reassurance-badge {
  display: flex; align-items: flex-start; gap: 12px;
}
.footer-reassurance-badge svg { stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-reassurance-label { font-size: 12px; color: var(--gold-bright); font-weight: 600; letter-spacing: 0.03em; margin-bottom: 3px; }
.footer-reassurance-value { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) {
  .footer-reassurance-badges { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .footer-reassurance-badges { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: column; align-items: center; gap: 8px; }
  .hero-badge-sep { display: none; }
}

/* ===== NAV CONTACT DROPDOWN ===== */
.nav-contact-panel {
  min-width: 260px !important;
  padding: 0 !important;
}
.nav-contact-info {
  padding: 16px 0;
}
.nav-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 20px;
  transition: background 0.15s;
}
.nav-contact-item:hover { background: rgba(255,255,255,0.04); }
.nav-contact-item svg { stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }
.nav-contact-item a {
  color: var(--white); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-contact-item a:hover { color: var(--gold-bright); }
.nav-contact-item span {
  color: var(--muted); font-size: 13px; line-height: 1.5;
}

/* Light mode contact */
:root[data-theme="light"] .nav-contact-item a { color: #1A1714; }
:root[data-theme="light"] .nav-contact-item a:hover { color: var(--gold); }
:root[data-theme="light"] .nav-contact-item:hover { background: rgba(0,0,0,0.03); }
