/* ============================================================
   Prélude — hugo-maitre.fr v2
   Minimalisme chaud, accent orange #F97316, esprit « agence IA »
   ============================================================ */

:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-soft: rgba(249, 115, 22, 0.16);
  --cream: #FAF7F2;
  --ink: #1C1917;
  --ink-soft: #57534E;
  --muted: #78716C;
  --surface: #FFFFFF;
  --border: #E7E0D8;
  --dark: #14110E;
  --dark-2: #1E1915;
  --dark-border: rgba(250, 247, 242, 0.12);
  --shadow: 0 8px 30px rgba(28, 25, 23, 0.08);
  --radius: 18px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-brand: "Satoshi", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: #fff; }

.container {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

.container.narrow { max-width: 860px; }

.icon {
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
  flex-shrink: 0;
}

/* ---------- Orbes lumineux (fond « IA », sans filter:blur coûteux) ---------- */

.orb {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.orb-1 { top: -180px; right: -120px; }
.orb-2 { bottom: -260px; left: -200px; width: 480px; height: 480px; }
.orb-3 { top: -100px; left: 50%; transform: translateX(-50%); opacity: 0.7; }
.orb-dark {
  top: 10%;
  right: -150px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0.07) 40%, transparent 70%);
}

/* ---------- Topbar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.8rem 0;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.topbar.scrolled { border-bottom-color: var(--border); }

.topbar-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { color: var(--orange); font-size: 1.1rem; }

.brand-name {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  background: var(--surface);
}

/* ---------- Typographie ---------- */

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  /* Masque pour le reveal des titres ; le padding évite de rogner les surlignages */
  overflow: hidden;
  padding-inline: 0.25em;
  margin-inline: -0.25em;
}

.section-title .ttl-inner { display: block; will-change: transform; }

/* Mots du text reveal (bio) */
.split-words .w { display: inline-block; will-change: transform; }

.section-title.center { text-align: center; }
.section-title.light { color: var(--cream); }

.section-intro {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  max-width: 60ch;
}

.section-intro.center { margin-inline: auto; text-align: center; }

.accent { color: var(--orange); }

.gradient-text {
  background: linear-gradient(90deg, var(--orange), #FDBA74, var(--orange));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* Surlignage rectangle derrière le texte (façon v1) */

.hl { position: relative; font-style: inherit; white-space: nowrap; z-index: 0; }

/* Marqueur : trait incliné pour épouser l'italique, bords réguliers, translucide */
.hl::before {
  content: "";
  position: absolute;
  inset: 0.12em -0.18em 0.08em;
  background: rgba(249, 115, 22, 0.32);
  border-radius: 0.16em;
  transform: scaleX(0) skewX(-11deg);
  transform-origin: left center;
  z-index: -1;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.3, 1) 0.12s;
}

.hl.in::before { transform: scaleX(1) skewX(-11deg); }

.hl-dark::before { background: rgba(249, 115, 22, 0.85); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem 1.8rem;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-small { font-size: 0.92rem; padding: 0.6rem 1.3rem; }

.topbar-actions { display: flex; align-items: center; gap: 0.6rem; }

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.25);
}

.btn-dark:hover {
  background: #000;
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.35);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 8px 26px rgba(249, 115, 22, 0.45);
}

.btn-primary:focus-visible,
a:focus-visible,
input:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.btn .icon { transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(4px); }

.guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.guarantee .icon { color: var(--orange); }
.guarantee.center { justify-content: center; margin-top: 1.5rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section.dark { background: var(--dark); color: var(--cream); overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6.5rem, 11vw, 9rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.eyebrow .icon { color: var(--orange); }

.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}

.hero-title .line { display: block; }

.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.hero-sub strong { font-weight: 700; }

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin-bottom: 2.2rem;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-badges .icon { color: var(--orange); }

/* ---------- Téléphone 3D ---------- */

.hero-visual { display: flex; justify-content: center; }

.phone-stage {
  position: relative;
  perspective: 1200px;
  padding: 1rem 0;
}

.phone-glow {
  position: absolute;
  inset: -15% -25%;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.3) 0%, transparent 65%);
  pointer-events: none;
}

.phone3d {
  position: relative;
  width: min(290px, 72vw);
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(5deg);
  will-change: transform;
}

/* Tranches d'extrusion (générées en JS, empilées en translateZ négatif) */
.phone-layer {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: linear-gradient(145deg, #211C18, #0E0B09 70%);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.phone-layer.back {
  background:
    radial-gradient(60% 40% at 30% 20%, rgba(249, 115, 22, 0.18), transparent 60%),
    linear-gradient(145deg, #26201B, #12100D 70%);
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.phone-frame {
  position: relative;
  transform: translateZ(1px);
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(145deg, #2A2522, #171310 60%);
  border: 1px solid rgba(249, 115, 22, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    -18px 30px 60px rgba(28, 25, 23, 0.35),
    inset 0 0 4px rgba(255, 255, 255, 0.12);
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 22px;
  background: #0C0A09;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(249, 115, 22, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, #241B14 0%, #15110E 55%, #0F0D0B 100%);
  padding: 60px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Reflet balayant l'écran */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.07) 45%, transparent 60%);
  background-size: 280% 100%;
  animation: sweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {
  0%, 55% { background-position: 120% 0; }
  85%, 100% { background-position: -160% 0; }
}

.scr-statusbar {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(250, 247, 242, 0.85);
}

.scr-signal { display: inline-flex; gap: 4px; }
.scr-signal .icon { width: 0.95em; height: 0.95em; }

.scr-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(250, 247, 242, 0.94);
  border-radius: 16px;
  padding: 11px 13px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.scr-card strong { display: block; font-size: 0.8rem; }
.scr-card span { color: var(--muted); }

.scr-call-icon,
.scr-msg-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  flex-shrink: 0;
}

.scr-call-icon { background: rgba(220, 38, 38, 0.12); color: #DC2626; }
.scr-msg-avatar { background: var(--orange); color: #fff; font-size: 0.85rem; border-radius: 50%; }

.scr-typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
  background: rgba(250, 247, 242, 0.16);
  border-radius: 14px;
  padding: 9px 12px;
}

.scr-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.7);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.scr-typing span:nth-child(2) { animation-delay: 0.15s; }
.scr-typing span:nth-child(3) { animation-delay: 0.3s; }

.scr-chip {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  background: var(--orange);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem; /* = gap, pour une boucle sans couture */
  width: max-content;
  will-change: transform;
  animation: marquee var(--marquee-dur, 16s) linear infinite;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.marquee-track i { font-style: normal; color: var(--orange); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cartes ---------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 14px 36px rgba(28, 25, 23, 0.12);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Problème + calculateur ---------- */

.stat-source {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -1.8rem 0 2.5rem;
}

.calculator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
}

.calc-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 1.6rem;
}

.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2.4rem;
  margin-bottom: 1.8rem;
}

.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.calc-slider { display: flex; align-items: center; gap: 1rem; }

.calc-slider output {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
  min-width: 4.5ch;
  text-align: right;
  white-space: nowrap;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.25);
  cursor: grab;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.25);
  cursor: grab;
}

.calc-result p:first-child {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
}

.calc-amount {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.calc-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.problem-outro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- Comment ça marche (section sombre épinglée) ---------- */

.how { padding: 0; }

.how-pin {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.how .container { position: relative; z-index: 1; }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(1.5rem, 3vw, 3rem);
}

.steps { list-style: none; display: flex; flex-direction: column; gap: 2rem; }

.step { display: flex; gap: 1.2rem; align-items: flex-start; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--dark-border);
  color: var(--cream);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  background: transparent;
}

.step.active .step-num {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.5);
}

.step h3 { font-size: 1.2rem; margin-bottom: 0.3rem; color: var(--cream); }
.step p { color: rgba(250, 247, 242, 0.65); font-size: 0.98rem; }

/* Fenêtre SMS stylisée (dans la section sombre) */

.chat-frame {
  position: relative;
  color: var(--ink); /* la section sombre force le texte crème : on rétablit l'encre */
  background: linear-gradient(180deg, #FDFBF8 0%, #F6F1E9 100%);
  border-radius: 34px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  box-shadow:
    0 0 0 8px rgba(30, 25, 21, 0.9),
    0 0 0 9px rgba(249, 115, 22, 0.3),
    0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 400px;
  margin-inline: auto;
}

.chat-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1.4rem 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.3rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

.chat-header strong { display: block; font-size: 0.98rem; }
.chat-status { font-size: 0.8rem; color: var(--muted); }

.chat-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 330px;
}

.bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.bubble.assistant {
  background: #ECE5DA;
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.bubble.client {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

.chat-receipt {
  align-self: flex-end;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: -0.4rem;
}

/* Bloc démo appelable — bordure dégradée animée */

.demo-wrap { padding-bottom: clamp(4rem, 8vw, 6rem); }

.demo-call { text-align: center; }

.demo-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.demo-kicker em { color: var(--orange); }

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.glow-border {
  position: relative;
  display: inline-block;
  border-radius: 999px;
  padding: 3px;
  background: conic-gradient(from var(--angle), var(--orange), #FDBA74, var(--orange-dark), var(--orange));
  animation: rotateBorder 3.5s linear infinite;
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.35);
}

@keyframes rotateBorder { to { --angle: 360deg; } }

.demo-number {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  background: var(--dark-2);
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.demo-number:hover { background: var(--orange); color: #fff; }
.demo-number .icon { color: var(--orange); transition: color 0.25s ease; }
.demo-number:hover .icon { color: #fff; }

.demo-hint {
  font-size: 0.95rem;
  color: rgba(250, 247, 242, 0.55);
  margin-top: 1.1rem;
}

/* ---------- Qui suis-je ---------- */

.about { background: var(--surface); }

/* Photo sticky : elle reste à l'écran pendant que la bio se révèle au scroll */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-photo {
  perspective: 900px;
  position: sticky;
  top: clamp(5rem, 14vh, 9rem);
  max-width: 360px;
  justify-self: center;
}

.about-photo .portrait {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

.about-photo:hover .portrait { box-shadow: 0 24px 60px rgba(28, 25, 23, 0.25); }

.about-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.about-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  margin-left: -0.8rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.about-loc:hover {
  border-color: var(--border);
  background: var(--cream);
  color: var(--ink);
}

.about-loc:hover .pin { animation: pinBounce 0.5s ease; }

@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px) scale(1.15); }
}

.about-photo .icon { color: var(--orange); }

/* Bouton LinkedIn : flow bleu animé qui tourne derrière le bouton */
.linkedin-btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: color 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.18);
}

.linkedin-btn::before {
  content: "";
  position: absolute;
  inset: -2.5px;
  border-radius: 999px;
  background: conic-gradient(from var(--angle), #0A66C2, #5EB1F7, #BBDDFA, #0A66C2);
  animation: rotateBorder 2.8s linear infinite;
  z-index: -2;
}

.linkedin-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface);
  z-index: -1;
  transition: background-color 0.2s ease;
}

.linkedin-btn img { display: block; width: 22px; height: 22px; border-radius: 4px; }

.linkedin-btn:hover {
  color: #0A66C2;
  box-shadow: 0 8px 26px rgba(10, 102, 194, 0.4);
}

.about-text { padding-block: 2vh 6vh; }

/* Bio : un seul gros bloc éditorial qui se « remplit » au scroll (façon Apple) */
.about-text p {
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 24em;
}

.about-text p:last-child { margin-bottom: 0; }
.about-text p strong { color: var(--orange); font-weight: 700; }

/* ---------- Témoignage (masqué pour l'instant) ---------- */

.testimonial {
  background: var(--surface);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  font-size: 1.15rem;
}

.testimonial footer { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ + CTA final ---------- */

.final { overflow: hidden; }
.final .container { position: relative; z-index: 1; }

.faq {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  transition: border-color 0.2s ease;
}

.faq details[open] { border-color: rgba(249, 115, 22, 0.45); }

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin-top: 0.7rem; color: var(--ink-soft); }

.cal-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 560px;
  margin-top: 2.5rem;
  overflow: hidden;
}

#cal-inline { width: 100%; height: 100%; min-height: 560px; }

/* ---------- Modal Cal.com ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 14, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 1rem;
  overflow: auto;
}

#cal-modal-inline { min-height: 560px; }

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover { border-color: var(--orange); color: var(--orange); }

body.modal-open { overflow: hidden; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer nav { display: flex; gap: 1.4rem; }
.footer-rgpd { display: flex; align-items: center; gap: 0.45rem; }
.footer-rgpd .icon { color: var(--orange); }

/* ---------- Reveal (état initial animé en JS) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(26px); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .how-grid,
  .about-grid { grid-template-columns: 1fr; }

  .hero { padding-top: 6rem; }
  .hero-visual { order: 1; margin-top: 1.5rem; }
  .phone3d { width: min(240px, 64vw); }

  .cards-3 { grid-template-columns: 1fr; }
  .calc-controls { grid-template-columns: 1fr; }

  .how-pin { min-height: auto; display: block; }

  /* Mobile : photo en flux normal, bio entièrement centrée */
  .about-photo { max-width: 300px; position: static; margin-inline: auto; }
  .about-photo figcaption { justify-content: center; }
  .about-text { padding-block: 0; text-align: center; }
  .about-text .section-title { text-align: center; }
  .about-text p { margin-bottom: 1.6rem; margin-inline: auto; }

  .brand-tag { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }

  .hl::before { transform: scaleX(1) rotate(-1.2deg); transition: none; }

  .marquee-track,
  .glow-border,
  .gradient-text,
  .phone-screen::after,
  .scr-typing span { animation: none; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   Pages légales (mentions légales, politique de confidentialité)
   ============================================================ */

.legal-main {
  padding: clamp(7rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.legal-main .orb-1 { top: -200px; right: -150px; }

.legal-wrap {
  width: min(780px, 100% - 3rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.6rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.legal-back:hover { color: var(--orange); gap: 0.6rem; }
.legal-back .icon { width: 1em; height: 1em; }

.legal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

.legal-intro {
  background: var(--orange-soft);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.legal-wrap h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.9rem;
}

.legal-wrap h2:first-of-type { margin-top: 0; }

.legal-wrap p { color: var(--ink-soft); margin-bottom: 1rem; }
.legal-wrap p strong { color: var(--ink); }
.legal-wrap em { color: var(--muted); }
.legal-wrap a { color: var(--orange); text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }

.legal-wrap ul {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}

.legal-wrap ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}

.legal-wrap ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* Encadré coordonnées (éditeur, hébergeur…) */
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.2rem;
}

.legal-card p { margin-bottom: 0.5rem; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-note { font-size: 0.92rem; }
