/* ─── FONTS AUTO-HÉBERGÉES ───────────────────────────────────────── */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600 700;
  font-display: swap;
  src: url('assets/fonts/cormorant-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 400 500 600 700 800;
  font-display: swap;
  src: url('assets/fonts/manrope.woff2') format('woff2');
}

/* ─── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --ink: #14201c;
  --muted: #61706a;
  --line: #dce4df;
  --paper: #fbfaf7;
  --soft: #eef3ef;
  --white: #ffffff;
  --accent: #233f36;
  --accent-strong: #162b25;
  --gold-dark: #9c8350;
  --gold: #b79a62;
  --gold-light: #e2cfaa;
  --serif: "Cormorant Garamond", Georgia, serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.8rem); font-weight: var(--fw-semibold); }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: var(--fw-semibold); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: var(--fw-semibold); }

.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: var(--fw-black);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-2);
}

/* ─── HEADER ─────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--space-4);
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(251, 250, 247, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: transform 0.35s ease, background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
.header.is-scrolled {
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-4);
}
.header-logo {
  display: flex; align-items: baseline; gap: 6px;
  flex-shrink: 0;
}
.header-logo-main {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  color: var(--accent);
  letter-spacing: 0.01em;
}
.header-logo-sep { color: var(--gold); font-size: 0.85rem; }
.header-logo-sub {
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--muted);
  letter-spacing: 0.08em;
}
.header-nav {
  display: flex; align-items: center; gap: var(--space-4);
  margin-left: auto;
}
.header-nav a {
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--ink); }
.header-cta {
  flex-shrink: 0;
  padding: 9px 22px;
  border: 1px solid rgba(156, 131, 80, 0.4);
  color: var(--gold-dark);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.header-cta:hover {
  border-color: var(--gold-dark);
  color: var(--accent-strong);
  background: rgba(156, 131, 80, 0.07);
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 65% 30%, rgba(183, 154, 98, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: calc(68px + 80px) var(--space-4) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.hero-text {
  text-align: center;
  width: 100%;
}
.hero-eyebrow { color: var(--gold-dark); margin-bottom: var(--space-3); }
.hero-title {
  color: var(--accent-strong);
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: var(--space-4);
}
/* ─── ROTATING WORDS ─────────────────────────────────────────────── */
.hero-title-intro {
  display: block;
}

.rotating-wrap {
  display: block;
  margin-top: 0.06em;
}

.rotating-slot {
  display: block;
  height: 2.6em; /* 2 lignes + marge — couvre "accompagner des projets de vie" */
  overflow: hidden;
  position: relative;
}

/* État de base : hors-écran en bas, sans transition (reset instantané) */
.rotating-word {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(2.5em);
  color: var(--gold-dark); /* WCAG AA ✓ sur fond --paper (3.5:1 grande typo) */
  /* PAS de transition ici : le reset snap est instantané et hors-vue */
}

/* Mot actif : entre depuis le bas */
.rotating-word.is-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

/* Mot sortant : sort vers le haut */
.rotating-word.is-leaving {
  opacity: 0;
  transform: translateY(-2.5em);
  transition: opacity 0.42s ease, transform 0.55s cubic-bezier(0.55, 0, 0.45, 1);
  z-index: 1;
}

/* Soulignement doré — apparaît une fois, reste statique */
.rotating-underline {
  display: block;
  height: 1px;
  width: 52%;
  margin: 0.18em auto 0;
  background: linear-gradient(to right, rgba(156, 131, 80, 0.08) 0%, var(--gold-dark) 50%, rgba(156, 131, 80, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.7s ease 0.3s;
}

.rotating-underline.is-visible {
  opacity: 1;
}

/* Accessibilité — texte lisible par les lecteurs d'écran, invisible visuellement */
.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;
}

.hero-sub {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto var(--space-4);
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-5);
}

/* Hero stats inline */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  justify-content: center;
  text-align: center;
}
.hstat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}
.hstat-lbl {
  display: block;
  font-size: 0.64rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.35;
}

/* Hero media / video slot */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-slot {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid rgba(183, 154, 98, 0.22);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.video-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(183, 154, 98, 0.05) 0%, transparent 65%);
  pointer-events: none;
}
.video-slot:hover {
  border-color: rgba(183, 154, 98, 0.48);
  background: rgba(255, 255, 255, 0.04);
}
.video-play-btn {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(183, 154, 98, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(183, 154, 98, 0.5);
  transition: border-color 0.3s, color 0.3s, transform 0.35s;
  position: relative;
  z-index: 1;
}
.video-slot:hover .video-play-btn {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.1);
}
.video-play-btn svg { transform: translateX(2px); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(20, 32, 28, 0.2);
  animation: scroll-bounce 2.5s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 34px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 34px;
  border: 1px solid rgba(35, 63, 54, 0.25);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: rgba(35, 63, 54, 0.04);
}

/* ─── SECTIONS ───────────────────────────────────────────────────── */
.section { padding: 110px var(--space-4); }
.section-paper { background: var(--paper); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner-narrow { max-width: 740px; margin: 0 auto; }
.section-heading { margin-bottom: var(--space-5); }
.section-heading h2 { margin-bottom: var(--space-2); color: var(--ink); }
.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  margin-top: var(--space-2);
}

/* ─── WHY LIST — editorial, no cards ────────────────────────────── */
.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 var(--space-5);
  border-top: 1px solid var(--line);
}
.why-item {
  padding: var(--space-4) 0 var(--space-5);
}
.why-count {
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: var(--fw-semibold);
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-3);
}
.why-item h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--ink);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}
.why-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── TOOLS LIST — minimal 2-col ─────────────────────────────────── */
.tools-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.tool-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3ch 1fr;
  gap: var(--space-3);
  align-items: start;
  transition: background 0.2s;
  cursor: default;
}
.tool-item:hover { background: var(--soft); }
.tool-item:nth-child(odd) {
  padding-right: var(--space-5);
  border-right: 1px solid var(--line);
}
.tool-item:nth-child(even) {
  padding-left: var(--space-5);
}
.tool-item:nth-last-child(-n+2) { border-bottom: none; }
.tool-num {
  font-size: 0.64rem;
  font-weight: var(--fw-black);
  color: var(--gold-dark);
  letter-spacing: 0.14em;
  padding-top: 3px;
}
.tool-icon {
  width: 22px;
  height: 22px;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.tool-body h3 {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  color: var(--ink);
  margin-bottom: 7px;
  line-height: 1.3;
}
.tool-body p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── HOW TIMELINE ───────────────────────────────────────────────── */
.how-timeline {
  position: relative;
  padding-left: 56px;
  max-width: 680px;
}
.how-timeline::before {
  content: "";
  position: absolute;
  left: 17px; top: 18px; bottom: 48px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(183,154,98,0.08) 100%);
}
.how-step {
  position: relative;
  padding-bottom: var(--space-5);
}
.how-step:last-child { padding-bottom: 0; }
.how-marker {
  position: absolute;
  left: -56px; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: background 0.25s, border-color 0.25s;
}
.section-paper .how-marker { background: var(--paper); }
.how-step:hover .how-marker { background: var(--gold); border-color: var(--gold); }
.how-marker span {
  font-size: 0.64rem;
  font-weight: var(--fw-black);
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  transition: color 0.25s;
}
.how-step:hover .how-marker span { color: var(--white); }
.how-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--ink);
  margin-bottom: var(--space-1);
  line-height: 1.15;
  transition: color 0.2s;
}
.how-step:hover .how-content h3 { color: var(--accent); }
.how-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
  max-width: 520px;
}
.how-tag {
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(183,154,98,0.07);
  border: 1px solid rgba(183,154,98,0.18);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  color: var(--gold-dark);
  letter-spacing: 0.04em;
}

/* ─── REVENUE — no cards ─────────────────────────────────────────── */
.revenue-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 var(--space-5);
  border-top: 1px solid var(--line);
  margin-bottom: var(--space-3);
}
.revenue-item {
  padding: var(--space-4) 0 var(--space-5);
}
.revenue-fig {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.revenue-lbl {
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  color: var(--ink);
  margin-bottom: var(--space-2);
  line-height: 1.45;
}
.revenue-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
}
.revenue-note {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  opacity: 0.7;
}

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  padding: var(--space-3) 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
  font-weight: var(--fw-regular);
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 var(--space-3);
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 600px;
}

/* ─── CONTACT FORM ───────────────────────────────────────────────── */
.section-contact { background: var(--accent-strong); }
.section-contact .section-heading .eyebrow { color: rgba(226,207,170,0.6); }
.section-contact .section-heading h2 { color: var(--white); }
.section-contact .section-lead { color: rgba(255,255,255,0.5); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-group select option { background: var(--accent-strong); color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(183,154,98,0.5);
  background: rgba(255,255,255,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  align-self: flex-start;
  padding: 15px 42px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn-submit:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: var(--space-5) var(--space-4);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-sub { font-size: 0.74rem; color: rgba(255,255,255,0.3); }
.footer-links {
  display: flex; flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-agent-site { color: var(--gold-light) !important; }
.footer-agent-site:hover { color: var(--gold) !important; }
.footer-legal {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.18);
}

/* ─── REVEAL ANIMATION ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-scroll-hint { animation: none; }
  /* Rotating words : affiche le 1er mot, statique */
  .rotating-slot { height: auto; overflow: visible; }
  .rotating-word { position: static; display: none; opacity: 1; transform: none; transition: none; }
  .rotating-word.is-active { display: block; opacity: 1; transform: none; transition: none; }
  .rotating-underline { opacity: 1; transition: none; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-inner {
    padding-top: calc(68px + 60px);
    padding-bottom: 60px;
    min-height: auto;
  }
  .hero-stats { grid-template-columns: repeat(2, auto); }
  .why-list { grid-template-columns: 1fr; border-top: none; }
  .why-item { border-top: 1px solid var(--line); }
  .revenue-numbers { grid-template-columns: 1fr; }
  .revenue-item { border-top: 1px solid var(--line); padding-bottom: var(--space-4); }
  .revenue-item:first-child { border-top: 1px solid var(--line); }
  .header-nav { display: none; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 480px) {
  .header { padding: 0 var(--space-3); }
  .header-inner { gap: var(--space-2); }
  .header-cta { padding: 8px 16px; font-size: 0.72rem; }
}

/* ─── BURGER ─────────────────────────────────────────────────────── */
.burger {
  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;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--accent-strong);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 1000px) {
  .burger { display: flex; margin-left: auto; }
  .header-cta { display: none; }
}

/* ─── MENU MOBILE ────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--accent-strong);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-4) var(--space-5);
  height: 100%;
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  flex-shrink: 0;
}
.mobile-nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  color: var(--white);
}
.mobile-nav-logo span {
  color: var(--gold-light);
  opacity: 0.6;
}
.mobile-nav-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--white); }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-5);
  gap: 2px;
}
.mobile-nav-links a {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.75);
  line-height: 1.25;
  transition: color 0.2s;
}
.mobile-nav-links a:hover { color: var(--white); }
.mobile-nav-simulator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(183, 154, 98, 0.45);
  border-radius: var(--radius-md);
  background: rgba(183, 154, 98, 0.08);
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
}
.mobile-nav-simulator:hover {
  background: rgba(183, 154, 98, 0.16);
  border-color: rgba(183, 154, 98, 0.7);
}
.mobile-nav-simulator-icon {
  font-size: 0.8rem;
  color: var(--gold);
}
.mobile-nav-simulator svg { margin-left: auto; opacity: 0.6; }
.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-3);
  padding: 16px;
  background: var(--gold-dark);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.mobile-nav-cta:hover { background: var(--gold); }

/* Mobile ≤768px : hauteur augmentée pour les phrases longues */
@media (max-width: 768px) {
  .rotating-slot { height: 4em; }
}

@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(2, auto); gap: var(--space-3); }
  .tools-list { grid-template-columns: 1fr; }
  .tool-item:nth-child(odd),
  .tool-item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: none;
    border-left: none;
  }
  .tool-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tool-item:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .how-timeline { padding-left: 44px; }
  .how-marker { left: -44px; width: 30px; height: 30px; }
  .how-timeline::before { left: 14px; }
  .section { padding: 80px var(--space-3); }
}

@media (max-width: 440px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
}

/* ─── ELRIC ──────────────────────────────────────────────────────── */
.elric-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  margin-top: var(--space-4);
}

.elric-photo {
  width: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 100px;
  flex-shrink: 0;
}

.elric-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.elric-content .eyebrow { margin-bottom: var(--space-2); }
.elric-content h2 { margin-bottom: var(--space-4); }

.elric-bio-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.elric-quote {
  border-left: 2px solid var(--gold-dark);
  padding-left: var(--space-3);
  margin: var(--space-4) 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}

.elric-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.elric-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.elric-stat-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: var(--fw-semibold);
  color: var(--ink);
  line-height: 1;
}

.elric-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.elric-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.elric-social a:hover { color: var(--gold-dark); }
.elric-social svg { flex-shrink: 0; }

.footer-social {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.38);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  color: var(--gold-light);
  border-color: var(--gold-dark);
}

.elric-stat-lbl {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.45;
}

.elric-philosophy {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.elric-philosophy-icon {
  color: var(--gold-dark);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 3px;
}

.elric-philosophy-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: var(--space-2);
}

.elric-philosophy-sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .elric-layout { grid-template-columns: 1fr; gap: var(--space-4); }
  .elric-photo { position: static; width: 180px; }
  .elric-stats { grid-template-columns: repeat(3, 1fr); }
  .elric-philosophy { padding: var(--space-3); gap: var(--space-3); }
}

@media (max-width: 700px) {
  .elric-stats { grid-template-columns: 1fr 1fr; }
  .elric-philosophy { flex-direction: column; }
}

/* ─── CTA INTERMÉDIAIRE ──────────────────────────────────────────── */
.cta-mid {
  background: var(--accent-strong);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.cta-mid-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.3;
}

/* ─── EQUIPE ─────────────────────────────────────────────────────── */
.team-media {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
  align-items: stretch;
}

.team-photo-main {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper);
}

.team-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.team-video-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 9/16;
  background: var(--accent-strong);
}

.team-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-caption {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: var(--space-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── PROFILS ────────────────────────────────────────────────────── */
.section-soft { background: var(--soft); }

.profils-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--space-6);
  border-top: 1px solid var(--line);
}

.profil {
  padding: var(--space-4) 0 var(--space-5);
}

.profil-num {
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: var(--fw-semibold);
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
  transform: scale(0.84);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.profil.is-visible .profil-num {
  transform: scale(1);
}

.profil h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--ink);
  margin-bottom: var(--space-1);
  line-height: 1.15;
}

.profil-sub {
  font-size: 0.66rem;
  font-weight: var(--fw-bold);
  color: var(--gold-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  display: block;
}

.profil-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-4);
  padding: 0;
}

.profil-list li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  padding-left: var(--space-3);
  position: relative;
  transform: translateX(-14px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.profil-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: var(--fw-bold);
}

.profil.is-visible .profil-list li              { transform: translateX(0); }
.profil.is-visible .profil-list li:nth-child(1) { transition-delay: 0.08s; }
.profil.is-visible .profil-list li:nth-child(2) { transition-delay: 0.18s; }
.profil.is-visible .profil-list li:nth-child(3) { transition-delay: 0.28s; }
.profil.is-visible .profil-list li:nth-child(4) { transition-delay: 0.38s; }

.profil-conclusion {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  line-height: 1.55;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0.5s;
}

.profil.is-visible .profil-conclusion {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .profil-list li { transform: none; transition: none; }
  .profil-conclusion { opacity: 1; transform: none; transition: none; }
  .profil-num { transform: none; transition: none; }
  .temoignage { transition: none; }
}

@media (max-width: 700px) {
  .profils-grid { grid-template-columns: 1fr; }
  .profil { border-top: 1px solid var(--line); }
  .profil:first-child { border-top: none; }
}

/* ─── TÉMOIGNAGES ────────────────────────────────────────────────── */
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
  align-items: start;
}

.temoignage {
  background: var(--accent-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4) var(--space-4);
  position: relative;
  box-shadow: 0 8px 32px rgba(20, 32, 28, 0.14);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.temoignage:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(20, 32, 28, 0.22);
}

.temoignage::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 9rem;
  line-height: 1;
  color: rgba(226, 207, 170, 0.1);
  position: absolute;
  top: -8px;
  left: 16px;
  pointer-events: none;
}

.temoignage-body p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  padding-top: var(--space-3);
  position: relative;
}

.temoignage-author {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(226, 207, 170, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.temoignage-author strong {
  font-size: 0.88rem;
  font-weight: var(--fw-bold);
  color: var(--white);
}

.temoignage-author span {
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* ─── BREAK PHOTO ────────────────────────────────────────────────── */
.section-break-photo {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.section-break-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.break-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: center;
  background: rgba(20, 32, 28, 0.5);
}

.break-quote {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: var(--fw-semibold);
  color: var(--white);
  line-height: 1.15;
}

.break-sub {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

@media (max-width: 700px) {
  .team-media { grid-template-columns: 1fr; }
  .section-break-photo { height: 340px; }
}

/* ─── RETOUR EN HAUT ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 89;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

@media (max-width: 700px) {
  .back-to-top { bottom: 84px; right: 20px; width: 40px; height: 40px; }
}

/* ─── WHATSAPP FLOTTANT ──────────────────────────────────────────── */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  animation: wa-pulse 2.8s ease-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  animation: none;
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.wa-float::after {
  content: "Contactez-moi sur WhatsApp";
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wa-float:hover::after {
  opacity: 1;
}

@media (max-width: 700px) {
  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }
  .wa-float svg { width: 27px; height: 27px; }
  .wa-float::after { display: none; }
}
