/* La vitrine : accueil et tarifs.
 *
 * Le projet de design pose tout en styles en ligne — c'est ce qu'il faut pour
 * itérer dans un outil de maquette, c'est exactement ce qu'il ne faut pas pour
 * un site qu'on sert à des milliers de visiteurs et qu'on reprendra dans six
 * mois. Les valeurs sont donc les mêmes, sorties dans des classes nommées.
 */

.saut-au-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg-elevated); color: var(--text-primary);
  padding: 10px 16px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); text-decoration: none;
}
.saut-au-contenu:focus { left: 12px; top: 12px; }

.surtitre { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); }
.etiquette { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 5px; }
.etiquette--volet { margin-bottom: 1px; }

.chapo { font-size: 16.5px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 28px; max-width: 46ch; }
.chapo--large { max-width: 52ch; margin-bottom: 40px; }
.chapo--sombre { color: var(--text-primary); margin-bottom: 0; max-width: 48ch; }
.h2--moyen { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; margin: 0 0 16px; }

/* ── Ouverture ────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: clamp(28px, 3.4vw, 48px);
  align-items: start;
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.hero .eyebrow { margin: 0 0 22px; }
.hero h1 { margin: 0 0 24px; max-width: 20ch; }
.hero__intro { font-size: 18px; line-height: 1.62; color: var(--text-secondary); margin: 0 0 14px; max-width: 44ch; }
.hero__intro--fort { color: var(--text-primary); margin-bottom: 32px; }
.hero__intro--fort strong { font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__mention { font-size: 13.5px; line-height: 1.6; color: var(--text-tertiary); margin: 18px 0 0; max-width: 40ch; }

/* ── La démonstration ─────────────────────────────────────────────────── */

.demo__chapeau { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0 2px; }
.demo__rejouer {
  border: 1px solid var(--border-default); background: var(--bg-elevated);
  color: var(--text-secondary); font-family: var(--font-sans); font-size: 12px;
  height: 26px; padding: 0 10px; border-radius: var(--radius-full); cursor: pointer;
}
.demo__rejouer:hover { color: var(--text-primary); border-color: var(--border-strong); }

.demo {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo__barre { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--nav-bg); border-bottom: 1px solid var(--border-subtle); }
.demo__pastille { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex: none; }
.demo__titre { font-size: 12.5px; color: var(--text-secondary); }
.demo__heure { margin-left: auto; font-size: 11.5px; color: var(--text-tertiary); }
.demo__corps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.demo__fil { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--border-subtle); }
.demo__volet { padding: 16px; background: var(--bg-subtle); display: flex; flex-direction: column; gap: 9px; }

.demo__mail { border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-base); }
.demo__mail-tete { padding: 10px 12px; border-bottom: 1px dashed var(--border-default); }
.demo__objet { font-size: 13px; font-weight: 600; line-height: 1.35; }
.demo__expediteur { font-size: 11.5px; color: var(--text-secondary); margin-top: 3px; }
.demo__pieces { padding: 9px 12px; display: flex; flex-direction: column; gap: 6px; }
.demo__piece { display: flex; gap: 7px; align-items: center; font-size: 11.5px; color: var(--text-secondary); }
.demo__piece::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); flex: none; }

.bulle {
  align-self: flex-end; max-width: 92%;
  background: var(--accent-secondary-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
  padding: 10px 13px; font-size: 13.5px; line-height: 1.5;
}
.reponse { font-family: var(--font-serif); font-size: 15px; line-height: 1.55; margin: 0; }
.reponse--large { font-size: 16px; line-height: 1.62; max-width: 92%; }

.demo__lecture { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-secondary); }
.points { display: flex; gap: 3px; }
.points span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-primary); animation: breathe 1.2s infinite; }
.points span:nth-child(2) { animation-delay: .2s; }
.points span:nth-child(3) { animation-delay: .4s; }

.fiche { background: var(--bg-overlay); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 9px 11px; }
.fiche__genre { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-primary); margin-bottom: 3px; }
.fiche__genre--echeance { color: var(--accent-warning); }
.fiche__genre--neutre { color: var(--text-secondary); }
.fiche__texte { font-size: 12.5px; line-height: 1.4; }
.fiche__note { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }

.demo__saisie { padding: 11px 14px; border-top: 1px solid var(--border-subtle); display: flex; gap: 9px; align-items: center; background: var(--bg-elevated); font-size: 12.5px; color: var(--text-tertiary); }
.curseur { width: 1px; height: 14px; background: var(--text-tertiary); animation: blink 1.1s infinite; }
.demo__legende { font-size: 12.5px; color: var(--text-tertiary); margin: 12px 2px 0; line-height: 1.55; }

/* ── Le fil déroulant ─────────────────────────────────────────────────── */

.deux-colonnes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.notes { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--border-default); padding-top: 24px; }
.notes__titre { font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; margin: 0 0 5px; letter-spacing: 0; }
.notes p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; max-width: 40ch; }

.fenetre { background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.fenetre__tete { padding: 12px 18px; border-bottom: 1px solid var(--border-subtle); }
.fenetre__titre { font-size: 13.5px; font-weight: 600; }
.fenetre__sous-titre { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; }
.fenetre__cadre { height: 440px; overflow: hidden; position: relative; }
.fenetre__fil {
  padding: 22px 20px 40px;
  display: flex; flex-direction: column; gap: 18px;
  animation: thread 52s linear infinite alternate;
}
.fenetre__cadre:hover .fenetre__fil,
.fenetre__cadre:focus-within .fenetre__fil { animation-play-state: paused; }
.fenetre__voile { position: absolute; inset: auto 0 0 0; height: 72px; background: linear-gradient(to top, var(--bg-elevated), transparent); pointer-events: none; }
.fenetre .bulle { max-width: 84%; padding: 11px 14px; font-size: 14px; }

.computation { background: var(--bg-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 13px 15px; }
.computation .etiquette { margin-bottom: 8px; }
.computation__lignes { font-size: 14px; line-height: 1.7; }
.computation__lignes span { color: var(--text-secondary); }
.computation__lignes strong { font-weight: 600; }
.jetons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jeton { font-size: 11px; padding: 3px 8px; border-radius: var(--radius-full); background: var(--accent-primary-subtle); color: var(--accent-primary); }

.piece-jointe { border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.piece-jointe__tete { padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--bg-base); }
.piece-jointe__nom { font-size: 12.5px; font-weight: 600; }
.piece-jointe__taille { font-size: 11px; color: var(--text-tertiary); }
.piece-jointe__extrait { padding: 14px; font-family: var(--font-serif); font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); }
.a-completer { color: var(--accent-warning); }

.retenu {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 11px 13px;
  border-left: 2px solid var(--accent-primary);
  background: var(--accent-primary-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 13px; line-height: 1.55;
}

/* ── Ce qu'on ne fait plus ────────────────────────────────────────────── */

.troc { display: flex; flex-direction: column; border-top: 1px solid var(--border-default); }
.troc__ligne {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px 40px; padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: baseline;
}
.troc__avant { font-size: 16px; color: var(--text-secondary); text-decoration: line-through; text-decoration-thickness: 1px; }
.troc__apres { font-size: 16px; line-height: 1.55; }
.apres-troc { font-size: 15px; line-height: 1.65; color: var(--text-secondary); margin: 28px 0 0; max-width: 60ch; }

/* ── En complément ────────────────────────────────────────────────────── */

.complement { align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.complement .chapo { margin-bottom: 0; max-width: 44ch; }
.etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.etapes li { display: flex; gap: 14px; align-items: baseline; }
.etapes__rang { font-size: 12px; color: var(--accent-primary); min-width: 20px; flex: none; }
.etapes p { font-size: 15px; line-height: 1.6; margin: 0; }

/* ── Souveraineté ─────────────────────────────────────────────────────── */

.souverainete__tete { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; margin: 20px 0 40px; }
.souverainete__tete h2 { margin: 0; max-width: 24ch; }
/* Quatre cartes sur une grille automatique donnent trois colonnes puis une
   carte seule — la quatrième étape a l'air d'un oubli. Deux par deux, les
   quatre temps du parcours d'une pièce se lisent comme une séquence. */
.etapes-securite { margin-bottom: 12px; }
@media (min-width: 760px) {
  .etapes-securite { grid-template-columns: repeat(2, 1fr); }
}
.carte__rang { font-size: 11.5px; color: var(--accent-primary); margin-bottom: 10px; }
.carte__titre { font-family: var(--font-sans); font-size: 15px; font-weight: 600; margin: 0 0 7px; letter-spacing: 0; }
.carte__texte { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ── Appel final ──────────────────────────────────────────────────────── */

.appel { text-align: center; }
.appel__titre { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; letter-spacing: -.02em; margin: 0 auto 18px; max-width: 22ch; }
.appel__texte { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin: 0 auto 30px; max-width: 46ch; }
.appel__prix { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin: 26px auto 0; max-width: 50ch; }
.appel__prix strong { color: var(--text-primary); font-weight: 600; }

/* ── Tarifs ───────────────────────────────────────────────────────────── */

.tarifs-intro { padding-top: clamp(44px, 6vw, 88px); padding-bottom: clamp(30px, 4vw, 44px); }
.tarifs-intro > div { max-width: 44ch; }
.tarifs-intro .eyebrow { margin: 0 0 20px; }
.tarifs-intro h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; margin: 0 0 20px; max-width: 18ch; }
.tarifs-intro p { font-size: 17.5px; line-height: 1.62; color: var(--text-secondary); margin: 0; }

.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: stretch; padding-bottom: clamp(40px, 5vw, 64px); }
.formule {
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 28px 26px 26px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-sm);
}
.formule--relief { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.formule__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.formule__nom { font-family: var(--font-display); font-weight: 600; font-size: 23px; margin: 0; letter-spacing: 0; }
.formule__genre { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }
.formule__genre--fort { color: var(--accent-primary); }
.formule__prix { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.formule__montant { font-size: 44px; font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.formule__periode { font-size: 15px; color: var(--text-secondary); }
.formule__pitch { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); margin: 0; }
.formule__liste { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 10px; }
.formule__liste li { font-size: 14.5px; line-height: 1.5; }
.formule__facteur { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--border-subtle); padding-top: 18px; }
.formule__multiple { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--accent-primary); flex: none; }
.formule__facteur div { font-size: 14.5px; line-height: 1.5; }
.formule__facteur span { color: var(--text-tertiary); }
.formule .bouton { margin-top: auto; }
.tarifs-mention { font-size: 13px; color: var(--text-tertiary); margin: 16px 2px 0; }

.usage { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.usage h2 { margin: 0 0 18px; }
.usage .chapo { margin-bottom: 16px; }
.usage .chapo:last-of-type { margin-bottom: 28px; }
.fenetres { display: flex; flex-direction: column; gap: 14px; }
.fenetre-usage__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.fenetre-usage__nom { font-size: 15.5px; font-weight: 600; }
.fenetre-usage__duree { font-size: 12px; color: var(--text-tertiary); }
.fenetre-usage p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

.engagements { background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.engagements__titre { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 18px; }
.engagements ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; counter-reset: engagement; }
.engagements li { display: flex; gap: 16px; align-items: baseline; counter-increment: engagement; }
.engagements li::before { content: counter(engagement); font-family: var(--font-display); font-size: 26px; color: var(--accent-primary); line-height: 1; min-width: 26px; flex: none; }
.engagements h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 600; margin: 0 0 4px; letter-spacing: 0; }
.engagements p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

.particuliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--border-default); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.particulier { background: var(--bg-elevated); padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.particulier__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.particulier__nom { font-size: 16px; font-weight: 600; }
.particulier__condition { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); }
.particulier p { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.particulier a { font-size: 14.5px; margin-top: 4px; }

.questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 48px; }
.questions h3 { font-family: var(--font-sans); font-size: 15.5px; font-weight: 600; margin: 0 0 7px; letter-spacing: 0; }
.questions p { font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); margin: 0; max-width: 46ch; }
