/* ==========================================================================
   Olvio Avis — feuille de style
   Identité reprise du site Olvio : papier chaud, encre profonde, terracotta.
   Display en serif (Fraunces, repli Georgia), texte en sans (DM Sans, repli système).
   ========================================================================== */

:root {
  /* Palette Olvio */
  --bg: #F5F1EA;
  --bg-tint: #EFE8DC;
  --paper: #FDFBF7;
  --ink: #1A1815;
  --ink-soft: #4A4540;
  --muted: #8B8478;
  --accent: #A24E2A;
  --accent-soft: #C76A45;
  --accent-wash: rgba(162, 78, 42, 0.07);
  --accent-wash-2: rgba(162, 78, 42, 0.14);
  --line: rgba(26, 24, 21, 0.12);
  --line-strong: rgba(26, 24, 21, 0.24);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Grain : donne la texture papier caractéristique d'Olvio */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Halo tiède en haut à droite */
body::after {
  content: '';
  position: fixed;
  top: -35vh;
  right: -22vw;
  width: 75vw;
  height: 75vw;
  background: radial-gradient(circle, rgba(199, 106, 69, 0.16) 0%, rgba(199, 106, 69, 0) 62%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 2; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }
.wrap-tight { max-width: 860px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }

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

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0;
}

.display {
  font-size: clamp(44px, 7.5vw, 92px);
  line-height: 0.98;
  margin-bottom: 28px;
}
.display .italic { font-style: italic; color: var(--accent); }

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  margin-bottom: 18px;
}
h2 .italic { font-style: italic; color: var(--accent); }

h3 {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 34ch;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.body-soft { color: var(--ink-soft); }

.label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

/* --- En-tête -------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand:hover { color: var(--ink); }
.brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
.brand em { font-style: italic; color: var(--accent); font-weight: 400; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.header-meta {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

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

section { padding: clamp(64px, 9vw, 116px) 0; }
section + section { border-top: 1px solid var(--line); }

.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.section-intro { max-width: 56ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-intro p { color: var(--ink-soft); font-size: 17.5px; }

/* --- Comparaison ---------------------------------------------------------- */

.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  max-width: 520px;
  margin-top: 40px;
}
.versus-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.versus-card.win {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.versus-num {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.versus-card.win .versus-num { color: var(--accent); font-style: italic; }
.versus-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.35;
}
.versus-sep {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
}

/* --- Maquette téléphone --------------------------------------------------- */

.phone {
  width: 268px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 34px;
  padding: 9px;
  box-shadow: 0 26px 60px -22px rgba(26, 24, 21, 0.45), 0 2px 8px rgba(26, 24, 21, .12);
}
.phone-screen {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9 / 17;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.phone-notch::after {
  content: ''; width: 62px; height: 5px; border-radius: 3px; background: rgba(26,24,21,.16);
}
.phone-body {
  flex: 1;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-gbrand {
  font-size: 12px; font-weight: 700; letter-spacing: -0.02em; color: #5f6368;
  display: flex; align-items: center; gap: 6px;
}
.phone-gdot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.phone-name { font-family: var(--serif); font-size: 16px; line-height: 1.2; color: #202124; }
.phone-sub { font-size: 10.5px; color: #5f6368; }
.phone-stars { display: flex; gap: 5px; margin: 4px 0 2px; }
.phone-star {
  width: 25px; height: 25px;
  color: var(--accent-soft);
}
.phone-field {
  border: 1px solid #dadce0; border-radius: 6px; padding: 8px 9px;
  font-size: 10px; color: #9aa0a6; flex: 1; min-height: 52px;
}
.phone-btn {
  background: var(--accent); color: #fff; border-radius: 100px;
  font-size: 11px; font-weight: 600; text-align: center; padding: 8px;
}
.phone-caption {
  text-align: center;
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

/* --- Étapes --------------------------------------------------------------- */

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); padding: 34px 30px; }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.step p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

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

.grid { display: grid; gap: 24px; }
.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(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.card-plain { background: transparent; border: none; padding: 0; }
.card-plain h3 { margin-bottom: 8px; }

.rule-list { border-top: 1px solid var(--line); }
.rule-list > div { border-bottom: 1px solid var(--line); padding: 26px 0; }

/* --- Tarif ---------------------------------------------------------------- */

.price-card {
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 46px);
  max-width: 500px;
  position: relative;
}
.price {
  font-family: var(--serif);
  font-size: 62px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.price small {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}
.price-list { list-style: none; padding: 0; margin: 26px 0; }
.price-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 15.5px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent);
}
.guarantee {
  background: var(--accent-wash);
  border-left: 2px solid var(--accent);
  padding: 20px 22px;
  font-size: 15.5px;
  color: var(--ink);
}
.guarantee strong { font-family: var(--serif); font-weight: 500; font-size: 17.5px; }

/* --- Espace client -------------------------------------------------------- */

.client-head {
  padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.client-head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 26px 24px; }
.stat-value {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-value.up { color: var(--accent); font-style: italic; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 10px; letter-spacing: 0.03em; line-height: 1.35; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.panel h3 { margin-bottom: 22px; }
.panel svg { width: 100%; height: auto; display: block; }

.progress-track {
  background: var(--bg-tint);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.progress-fill { background: var(--accent); height: 100%; transition: width .6s ease; }

.qr-plaque {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: inline-block;
  line-height: 0;
}
.qr-plaque svg { width: 190px; height: 190px; }

.link-copy {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  word-break: break-all;
  color: var(--ink-soft);
}

/* --- Tableaux ------------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); font-weight: 500; background: var(--bg-tint);
}
tbody tr:last-child td { border-bottom: none; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-trial { background: var(--accent-wash-2); color: var(--accent); }
.badge-active { background: rgba(26,24,21,.08); color: var(--ink-soft); }
.badge-paused { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* --- Formulaires ---------------------------------------------------------- */

label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
input[type=text], input[type=password], select {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.field { margin-bottom: 20px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.45; }

.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; font-size: 15px; border-left: 2px solid; }
.notice-error { background: rgba(162,78,42,.08); border-color: var(--accent); color: var(--ink); }
.notice-info { background: rgba(26,24,21,.05); border-color: var(--line-strong); color: var(--ink-soft); }

/* --- Pied de page --------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.footer-meta { font-family: var(--serif); font-style: italic; font-size: 13.5px; letter-spacing: 0; }

/* --- Apparition ----------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); animation: reveal .9s cubic-bezier(.2,.6,.2,1) forwards; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .18s; }
.reveal-3 { animation-delay: .32s; }
.reveal-4 { animation-delay: .48s; }
.reveal-5 { animation-delay: .64s; }

@keyframes reveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .brand-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Récapitulatif et actions de formulaire -------------------------------- */

.recap { margin: 0; }
.recap > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.recap > div:first-child { padding-top: 0; }
.recap > div:last-child { border-bottom: none; padding-bottom: 0; }
.recap dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
  padding-top: 3px;
}
.recap dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn { margin: 0; }

/* --- Adaptatif ------------------------------------------------------------ */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .versus-sep { justify-content: center; }
  body::after { display: none; }

  .panel { padding: 22px 20px; }
  .recap > div { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 13px 0; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-actions .btn { width: 100%; text-align: center; }
  table { font-size: 14px; }
  th, td { padding: 12px 10px; overflow-wrap: anywhere; }
  .place-option { padding: 14px 15px; }
}

/* --- Impression ----------------------------------------------------------- */

@media print {
  body::before, body::after { display: none !important; }
  body { background: #fff; }
  .no-print { display: none !important; }
}
