/* ============================================================
   SENTIER SAUVAGE — Feuille de style
   Projet du Cerf Blanc · Éclaireur d'âmes
   Identité : forêt sombre, sobre, sauvage, spirituelle, celtique.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Work+Sans:wght@300;400;500;600&display=swap');

/* ---------- Variables ---------- */
:root {
  /* Palette */
  --forest-dark: #101d15;      /* vert forêt très sombre */
  --forest: #1c2f22;           /* vert profond */
  --forest-soft: #26402e;      /* vert profond, plus clair */
  --beige: #e9e0c9;            /* beige naturel */
  --beige-light: #f6f1e6;      /* blanc cassé */
  --brown: #4a3728;            /* brun discret */
  --brown-soft: #6b5643;
  --gold: #b98a44;             /* doré / ocre */
  --gold-light: #d3ac6d;
  --ink: #1c2117;              /* texte sur fond clair */
  --ink-soft: #3d4536;

  /* Typo */
  --font-display: 'Cinzel', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Work Sans', sans-serif;

  /* Rythme */
  --radius: 2px;
  --container: 1140px;
  --shadow-soft: 0 12px 40px rgba(16, 29, 21, 0.18);
  --transition: 220ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--forest-dark);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { position: relative; padding: 96px 0; }
.section-alt { background: var(--beige); }
.section-dark {
  background: linear-gradient(180deg, var(--forest-dark), var(--forest));
  color: var(--beige-light);
}
.section-dark h2, .section-dark h3 { color: var(--beige-light); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(246, 241, 230, 0.78); }

/* ---------- Textures subtiles ---------- */
.texture-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(185, 138, 68, 0.08), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(185, 138, 68, 0.06), transparent 45%);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gold);
  color: var(--forest-dark);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-secondary {
  background: transparent;
  color: var(--beige-light);
  border-color: rgba(246, 241, 230, 0.45);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--forest-dark);
  border-color: var(--forest-dark);
}
.btn-outline:hover { background: var(--forest-dark); color: var(--beige-light); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 10px 4px;
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
}
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-locked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  font-size: 0.85rem;
}
.btn-locked:hover { transform: none; }

.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 29, 21, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(185, 138, 68, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-brand {
  font-family: var(--font-display);
  color: var(--beige-light);
  font-size: 1rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.nav-brand .brand-sub {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: rgba(246, 241, 230, 0.85);
  font-size: 0.92rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta { display: flex; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--beige-light);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(16, 29, 21, 0.88), rgba(16, 29, 21, 0.96)),
    radial-gradient(ellipse at 50% 0%, rgba(185, 138, 68, 0.14), transparent 60%);
  color: var(--beige-light);
  padding: 120px 0 100px;
  overflow: hidden;
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.hero-emblem { font-size: 2.2rem; margin-bottom: 22px; opacity: 0.9; }
.hero h1 {
  font-family: var(--font-display);
  color: var(--beige-light);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.hero-pitch {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--gold-light);
  max-width: 620px;
  margin: 0 auto 22px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--beige-light);
  background: rgba(246, 241, 230, 0.07);
  border: 1px solid rgba(185, 138, 68, 0.4);
  padding: 9px 20px;
  border-radius: 30px;
  margin: 0 0 28px;
}
.hero-actions { justify-content: center; margin-bottom: 20px; }
.hero-note {
  font-size: 0.85rem;
  color: rgba(246, 241, 230, 0.55);
  font-style: italic;
  margin-bottom: 0;
}
.hero-intro {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  max-width: 720px;
  margin: 52px auto 0;
  padding-top: 44px;
  border-top: 1px solid rgba(246, 241, 230, 0.12);
}
.hero-phone {
  flex: 0 0 auto;
  width: 170px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}
.hero .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(246, 241, 230, 0.85);
  max-width: 620px;
  margin: 0;
}

/* ---------- Countdowns ---------- */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.countdown-card {
  background: rgba(246, 241, 230, 0.05);
  border: 1px solid rgba(185, 138, 68, 0.3);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.countdown-card h3 {
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.countdown-card .countdown-date {
  font-size: 0.82rem;
  color: rgba(246, 241, 230, 0.6);
  margin-bottom: 20px;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.countdown-unit {
  min-width: 64px;
}
.countdown-unit .num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--beige-light);
  display: block;
}
.countdown-unit .label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 230, 0.55);
}
.countdown-done {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-light);
  padding: 10px 0;
}

/* ---------- Cartes / grilles ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--beige-light);
  border: 1px solid rgba(74, 55, 40, 0.12);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(185, 138, 68, 0.4);
}
.card .icon { font-size: 1.8rem; margin-bottom: 16px; display: block; }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0; }

.section-dark .card {
  background: rgba(246, 241, 230, 0.04);
  border-color: rgba(246, 241, 230, 0.14);
}
.section-dark .card h3 { color: var(--beige-light); }
.section-dark .card p { color: rgba(246, 241, 230, 0.72); }
.section-dark .card:hover { border-color: var(--gold); }

/* ---------- Étapes (14 jours) ---------- */
.steps { counter-reset: step; }
.step-card { position: relative; padding-left: 8px; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  opacity: 0.8;
  display: block;
  margin-bottom: 10px;
}

/* ---------- Galerie d'aperçus de l'application ---------- */
.screens-gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.screens-gallery::-webkit-scrollbar { height: 8px; }
.screens-gallery::-webkit-scrollbar-thumb { background: rgba(185, 138, 68, 0.35); border-radius: 4px; }
.screen-item {
  flex: 0 0 auto;
  width: 190px;
  scroll-snap-align: start;
  text-align: center;
}
.screen-item img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(74, 55, 40, 0.15);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  transition: transform var(--transition);
}
.screen-item:hover img { transform: translateY(-4px); }
.screen-item figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.human-note {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
  background: var(--beige);
  border: 1px solid rgba(185, 138, 68, 0.3);
  border-radius: var(--radius);
  padding: 22px 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.human-note strong { color: var(--forest-dark); }

/* ---------- Sentier / ligne de progression ---------- */
.sentier-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 50px auto 0;
  max-width: 720px;
  position: relative;
}
.sentier-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  opacity: 0.6;
  z-index: 0;
}
.sentier-point {
  position: relative;
  z-index: 1;
  background: var(--forest-dark);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---------- Formulaire ---------- */
.form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--beige-light);
  border: 1px solid rgba(74, 55, 40, 0.15);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-soft);
}
.form-field { margin-bottom: 20px; text-align: left; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-field input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(74, 55, 40, 0.3);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 68, 0.18);
}
.form-msg {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}
.form-msg.success { color: #3d6b3f; }
.form-msg.error { color: #8a3b2d; }
.form-msg.pending { color: var(--brown-soft); }
.form-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 18px;
}

/* ---------- Positionnement / mention ---------- */
.notice-box {
  border-left: 3px solid var(--gold);
  background: var(--beige);
  padding: 20px 26px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 720px;
  margin: 40px auto 0;
}

/* ---------- Tarifs ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  min-width: 0;
  background: var(--beige-light);
  border: 1px solid rgba(74, 55, 40, 0.15);
  border-radius: var(--radius);
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--beige-light), var(--beige));
  position: relative;
}
.price-card.featured::before {
  content: "Recommandé";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--forest-dark);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}
.price-card.accompagnement { border-style: dashed; }
.price-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
}
.price-amount {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--forest-dark);
  margin-bottom: 4px;
}
.price-period { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 22px; }
.price-desc { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 26px; flex-grow: 1; }
.price-card .btn { margin-top: auto; }
.price-tag-condition {
  font-size: 0.75rem;
  color: var(--brown-soft);
  margin-top: 10px;
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(74, 55, 40, 0.15);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 640px;
}

/* ---------- CTA de liaison entre pages ---------- */
.link-cta {
  text-align: center;
  padding: 70px 0;
}
.link-cta h3 { font-size: 1.6rem; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: rgba(246, 241, 230, 0.7);
  padding: 50px 0 30px;
  text-align: center;
}
.site-footer .footer-brand {
  font-family: var(--font-display);
  color: var(--beige-light);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.footer-links a { color: rgba(246, 241, 230, 0.75); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-fine { font-size: 0.78rem; color: rgba(246, 241, 230, 0.4); }

/* ---------- Animations discrètes ---------- */
/* Par défaut, .reveal est parfaitement visible : le contenu ne dépend
   jamais du JavaScript pour s'afficher. C'est uniquement lorsque le
   script détecte qu'il peut observer le défilement qu'il ajoute la
   classe .pending (masquage temporaire), puis .in-view au bon moment. */
.reveal { transition: opacity 700ms ease, transform 700ms ease; }
.reveal.pending { opacity: 0; transform: translateY(18px); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Le menu mobile n'utilise aucun positionnement "absolute" fragile :
     les liens et les boutons deviennent simplement des blocs qui
     s'empilent sous la barre de navigation, quelle que soit leur
     hauteur réelle (nombre de liens, taille de police, etc.). */
  .nav { flex-wrap: wrap; }
  .nav-links, .nav-cta { display: none; width: 100%; }
  .nav-toggle { display: block; }
  .site-header.menu-open .nav-links,
  .site-header.menu-open .nav-cta {
    display: flex;
    flex-direction: column;
    background: var(--forest-dark);
  }
  .site-header.menu-open .nav-links {
    gap: 18px;
    padding: 20px 24px 12px;
    border-top: 1px solid rgba(185, 138, 68, 0.2);
  }
  .site-header.menu-open .nav-cta {
    gap: 12px;
    padding: 0 24px 24px;
  }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .countdown-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 32px 22px; }
  .hero { padding: 48px 0 56px; }
  .hero-emblem { font-size: 1.7rem; margin-bottom: 14px; }
  .hero h1 { margin-bottom: 14px; }
  .hero-pitch { margin-bottom: 18px; }
  .hero-badge { font-size: 0.76rem; padding: 8px 16px; margin-bottom: 22px; }
  .hero-intro { flex-direction: column; text-align: center; gap: 24px; margin-top: 40px; padding-top: 32px; }
  .hero-phone { width: 140px; }
  .screen-item { width: 150px; }
  .human-note { padding: 18px 20px; }
  .hero .subtitle { max-width: 100%; }
  .hero-actions, .cta-actions { justify-content: center; }
  .sentier-visual { max-width: 100%; }
  .countdown-timer { gap: 8px; }
  .countdown-unit { min-width: 52px; }
}

@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}
