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

:root {
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --accent: #38bdf8;
  --accent-2: #0ea5e9;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.15);
}

html {
  background: var(--bg-1);   /* évite la bande blanche si le contenu dépasse l'écran */
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 35%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

/* ---------- En-tête & navigation ---------- */

.site-header {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 4px 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

.brand-sub {
  margin-top: 4px;
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #94a3b8;
}

.nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.nav-link.is-active:hover {
  transform: none;
}

.nav-link:focus-visible,
.brand:focus-visible,
.contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-icon {
  width: 13px;
  height: 13px;
  opacity: 0.75;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Contenu ---------- */

.container {
  width: 100%;
  max-width: 850px;
  margin: auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
}

.icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 42px;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -2px;
}

h1 span {
  color: var(--accent);
}

p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.separator {
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin: 32px auto;
}

.contact {
  margin-top: 32px;
}

.contact a {
  display: inline-block;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
}

.contact a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
}

footer {
  margin-top: 45px;
  color: #94a3b8;
  font-size: 0.9rem;
}

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

@media (max-width: 780px) {
  .site-header {
    flex-direction: column;
    gap: 20px;
    padding-top: 4px;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .nav-link {
    flex: 1;
    justify-content: center;
    padding: 11px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 42px 24px;
    border-radius: 18px;
    margin-top: 32px;
  }

  h1 {
    letter-spacing: -1px;
  }

  p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ==========================================================
   LISEUSE — le guide en mode livre
   ========================================================== */

/* Styles requis par la librairie page-flip (rendu HTML) */
.stf__parent {
  position: relative;
  display: block;
  box-sizing: border-box;
  transform: translateZ(0);
  -ms-touch-action: pan-y;
  touch-action: pan-y;
}

.stf__block {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  perspective: 2000px;
}

.stf__item {
  display: none;
  position: absolute;
  transform-style: preserve-3d;
}

.stf__outerShadow,
.stf__innerShadow,
.stf__hardShadow,
.stf__hardInnerShadow {
  position: absolute;
  left: 0;
  top: 0;
}

/* La liseuse occupe l'écran, jamais plus : pas de défilement,
   le livre se dimensionne sur la hauteur réellement disponible. */
body.page-reader {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 12px 20px 0;
}

.page-reader .reader {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1500px;
  margin: 10px auto 0;
  display: flex;
  flex-direction: column;
}

.reader-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reader-shell:fullscreen {
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  padding: 26px 24px 30px;
}

.book-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding-bottom: 30px;   /* place réservée à la barre flottante */
  display: flex;
  align-items: center;
  justify-content: center;
}

.book {
  width: 100%;
  height: 100%;
}

.page {
  display: none;            /* la librairie révèle les pages en style inline :
                               si elle ne démarre pas, rien ne se déroule sous la liseuse */
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.page picture,
.page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.page--hard {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25);
}

.book-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #94a3b8;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ---------- Barre de lecture ---------- */

.reader-bar[hidden] {
  display: none;   /* sans cette règle, display:flex l'emporte sur l'attribut hidden */
}

.reader-bar {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.rb-btn,
.rb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.rb-btn svg,
.rb-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rb-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.rb-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #0b1220;
}

.rb-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.rb-meter {
  min-width: 128px;
  padding: 0 4px;
}

.rb-count {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.rb-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.rb-fill {
  display: block;
  height: 100%;
  width: 11%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.45s ease;
}

.rb-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.16);
}

.rb-action {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--muted);
}

.rb-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.rb-btn:focus-visible,
.rb-action:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.4);
}

.text-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Sur petit écran, l'en-tête se compacte pour laisser la place au livre */
@media (max-width: 780px) {
  body.page-reader {
    padding: 14px 14px 18px;
  }

  .page-reader .site-header {
    flex-direction: row;
    gap: 12px;
  }

  .page-reader .brand-sub {
    display: none;
  }

  .page-reader .brand-name {
    font-size: 1.35rem;
  }

  .page-reader .nav {
    width: auto;
    padding: 4px;
  }

  .page-reader .nav-link {
    flex: none;
    padding: 8px 13px;
    font-size: 0.82rem;
  }

  .page-reader .reader {
    margin-top: 14px;
  }

  .reader-bar {
    gap: 9px;
    padding: 8px 11px;
  }

  .rb-btn {
    width: 36px;
    height: 36px;
  }

  .rb-meter {
    min-width: 88px;
  }

  .rb-count {
    font-size: 0.7rem;
    letter-spacing: 1.4px;
    margin-bottom: 5px;
  }

  .rb-action {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Loupe : la page en grand ---------- */

.zoom-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.zoom-layer[hidden] {
  display: none;
}

.zoom-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: flex-start;
  padding: 58px 16px 16px;
  touch-action: pinch-zoom pan-x pan-y;
  cursor: zoom-in;
}

.zoom-scroll img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.zoom-scroll.is-zoomed {
  justify-content: flex-start;
  cursor: zoom-out;
}

.zoom-scroll.is-zoomed img {
  width: auto;
  max-width: none;
  height: auto;
  min-width: 190%;
}

.zoom-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.zoom-close:hover {
  background: var(--accent);
  color: #0b1220;
}

.zoom-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.zoom-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.zoom-hint {
  flex: none;
  padding: 12px 16px 16px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #64748b;
}

/* Les pages se détachent du fond sombre */
.page {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* Écrans peu hauts : on rend la hauteur au livre */
@media (max-height: 800px) {
  body.page-reader {
    padding: 12px 20px 16px;
  }

  .page-reader .brand-sub {
    display: none;
  }

  .page-reader .brand-name {
    font-size: 1.4rem;
  }

  .page-reader .nav {
    padding: 4px;
  }

  .page-reader .nav-link {
    padding: 8px 16px;
    font-size: 0.86rem;
  }

  .page-reader .reader {
    margin-top: 10px;
  }

  .reader-bar {
    padding: 7px 11px;
  }

  .rb-btn {
    width: 36px;
    height: 36px;
  }
}

/* Secours : affiché uniquement si la liseuse ne parvient pas à démarrer */
.reader-fallback {
  max-width: 460px;
  margin: auto;
  padding: 28px 26px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.reader-fallback a {
  display: inline-block;
  margin-top: 14px;
}

/* ==========================================================
   ACCUEIL
   ========================================================== */

.page-home .home {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4px;
}

/* --- Accroche --- */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 84px;
}

.hero-text h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-lede {
  max-width: 560px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero-portrait {
  margin: 0;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.hero-portrait figcaption {
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
}

.hero-portrait figcaption strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  margin-bottom: 3px;
}

/* --- Sections --- */

.block {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.block h2,
.cta h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 780px;
  margin-bottom: 18px;
}

.block-lede {
  max-width: 720px;
  margin: 0 0 40px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.block-note {
  max-width: 760px;
  margin: 36px 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.card {
  padding: 26px 24px 28px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
}

.card-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 14px;
}

.card h3,
.value h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.card p,
.value p {
  margin: 0;
  max-width: none;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fact {
  padding: 24px 22px;
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.fact-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  color: var(--accent);
  margin: 0 0 10px;
}

.fact-label {
  margin: 0;
  max-width: none;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 42px;
}

.value {
  padding-left: 18px;
  border-left: 2px solid rgba(56, 189, 248, 0.45);
}

/* --- Contact --- */

.cta {
  margin: 30px 0 70px;
  padding: 52px 44px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
}

.cta h2 {
  margin-left: auto;
  margin-right: auto;
}

.cta > p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin: 32px 0 8px;
}

.contact-line {
  font-size: 0.98rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  padding-bottom: 2px;
}

.contact-line:hover {
  color: var(--accent);
}

.contact-static {
  max-width: none;
  color: #94a3b8;
  border-bottom: none;
}

.home-footer {
  padding: 26px 0 40px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 44px 0 60px;
  }

  .hero-portrait {
    max-width: 340px;
  }

  .cards,
  .facts,
  .values {
    grid-template-columns: 1fr;
  }

  .values {
    gap: 24px;
  }

  .block {
    padding: 52px 0;
  }

  .cta {
    padding: 40px 24px;
  }
}

/* Les intitulés de section restent alignés à gauche
   (la règle générale sur les <p> les centrait) */
.page-home .eyebrow,
.page-home .block-lede,
.page-home .block-note {
  margin-left: 0;
  margin-right: 0;
}

.page-home .eyebrow {
  margin-bottom: 14px;
}

/* Portrait détouré : posé sur le fond, halo doux à la place du cadre */
.hero-portrait {
  position: relative;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  width: 88%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
  z-index: -1;
}

.hero-portrait img {
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.45));
}

.hero-portrait figcaption {
  margin-top: 10px;
  text-align: center;
}

/* Fondu du bas de portrait + halo correctement empilé */
.hero-portrait::before {
  z-index: 0;
}

.hero-portrait img {
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 99%);
}

.hero-portrait figcaption {
  position: relative;
  z-index: 1;
  margin-top: -6px;
}

/* ==========================================================
   TARIFS
   ========================================================== */

.page-pricing .pricing {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4px;
}

.pricing-intro {
  padding: 56px 0 44px;
  text-align: center;
}

.page-pricing .eyebrow {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pricing-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.pricing-intro h1 span {
  color: var(--accent);
}

.pricing-lede {
  max-width: 660px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted);
}

/* --- Grille des formules --- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

.plan-featured {
  background: rgba(56, 189, 248, 0.09);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.18);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06253a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.plan-tag {
  margin: 0 0 10px;
  max-width: none;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #94a3b8;
}

.plan-featured .plan-tag {
  color: var(--accent);
}

.plan-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 4px;
}

.plan-target {
  margin: 0 0 18px;
  max-width: none;
  font-size: 0.85rem;
  color: #94a3b8;
}

.plan-price {
  margin: 0 0 22px;
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--text);
}

.plan-featured .plan-price {
  color: var(--accent);
}

.plan-price span {
  display: block;
  margin-top: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: #94a3b8;
}

.plan-price-quote {
  font-size: 1.75rem;
  padding: 8px 0 14px;
}

.plan-list {
  flex: 1;
  list-style: none;
  margin: 0 0 24px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-list li {
  position: relative;
  padding: 0 0 11px 22px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-btn {
  text-align: center;
  padding: 12px 20px;
  font-size: 0.9rem;
}

.plans-note {
  max-width: none;
  margin: 26px 0 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #94a3b8;
}

/* --- Engagements --- */

.commitment {
  margin: 64px 0 0;
  padding: 42px 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.commitment h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 26px;
}

.commitment-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.commitment-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.commitment-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.page-pricing .cta {
  margin: 60px 0 70px;
}

@media (max-width: 1000px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 18px;
  }
}

@media (max-width: 620px) {
  .plans {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pricing-intro {
    padding: 36px 0 34px;
  }

  .commitment {
    margin-top: 44px;
    padding: 32px 22px;
  }

  .commitment-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   PAGES LÉGALES
   ========================================================== */

.page-legal .legal {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 4px 70px;
}

.page-legal .eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.legal h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.legal-date {
  margin: 0 0 34px;
  max-width: none;
  font-size: 0.85rem;
  color: #64748b;
}

.legal-intro {
  max-width: none;
  margin: 0 0 8px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.legal section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}

.legal p {
  max-width: none;
  margin: 0 0 14px;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--muted);
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal strong {
  color: var(--text);
}

.legal-note {
  padding: 14px 16px;
  border-left: 2px solid rgba(56, 189, 248, 0.5);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem !important;
}

.legal-bullets {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.legal-bullets li {
  margin-bottom: 6px;
}

/* Fiche d'identité de l'éditeur */
.legal-list {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 12px 24px;
  margin: 0;
}

.legal-list dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #94a3b8;
  padding-top: 2px;
}

.legal-list dd {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.55;
}

.legal-table th {
  font-size: 0.72rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom-color: rgba(56, 189, 248, 0.35);
}

.legal-table td {
  color: var(--muted);
}

/* Champs restant à renseigner — visibles volontairement */
mark.todo {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px dashed rgba(250, 204, 21, 0.55);
  color: #fde68a;
  font-size: 0.86rem;
  line-height: 1.5;
}

.legal-footer {
  padding-top: 34px;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-footer p {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #64748b;
}

/* Liens légaux dans les pieds de page du site */
.footer-legal {
  margin-top: 10px;
  font-size: 0.82rem;
}

.footer-legal a {
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-legal a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .legal-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-list dd {
    margin-bottom: 12px;
  }

  .legal-table {
    font-size: 0.84rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 8px;
  }
}

/* Tableaux légaux : défilement horizontal sur petit écran plutôt que débordement */
.legal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}

.legal-scroll .legal-table {
  margin-top: 0;
  min-width: 540px;
}


.footer-note {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: #64748b;
}

/* ==========================================================
   SÉLECTEUR DE LANGUE (7 langues, menu déroulant sans JavaScript)
   ========================================================== */

.site-header { gap: 18px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease;
}

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

.lang-menu summary:hover { background: rgba(255, 255, 255, 0.16); }

.lang-menu summary:focus-visible,
.lang-opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.lang-menu svg {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.lang-menu .chev {
  width: 13px;
  height: 13px;
  border-radius: 0;
  box-shadow: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.lang-menu[open] .chev { transform: rotate(180deg); }

.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-opt:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.lang-opt.is-active {
  color: var(--text);
  background: rgba(56, 189, 248, 0.16);
  font-weight: 700;
}

.guide-lang-note {
  margin-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-note {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: #64748b;
}

@media (max-width: 780px) {
  .header-right {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .lang-menu summary {
    padding: 9px 12px;
    font-size: 0.75rem;
  }

  .lang-list {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Mention de marque en pied de page */
.footer-tm {
  margin-top: 8px;
  max-width: none;
  font-size: 0.76rem;
  color: #64748b;
}
