/* Version 3 : nouvelle typographie partout, et refonte de tout ce qui suit le téléphone. Couleurs inchangées. */
@font-face { font-family: "Geist"; src: url("assets/geist.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root { --titres: "Geist", system-ui, sans-serif; --poids-titres: 600; --serrage: -.035em; }
:root { --trait-clair: rgba(240, 222, 200, .2); --trait-sombre: rgba(43, 8, 20, .2); }
body { font-family: "Geist", system-ui, sans-serif; }
h1, h2 { font-family: var(--titres); font-weight: var(--poids-titres); font-stretch: 100%; letter-spacing: var(--serrage); line-height: 1.04; }
h3 { font-stretch: 100%; letter-spacing: -.01em; }
.marque { font-family: var(--titres); font-size: 25px; font-weight: 600; font-stretch: 100%; letter-spacing: -.01em; }
.tableau h2, .pied h2, .tout-tete h2, .app-tete strong { font-family: "Geist", system-ui, sans-serif; font-stretch: 100%; letter-spacing: -.01em; }
.scene h1 { font-size: clamp(40px, 4.5vw, 68px); font-stretch: 100%; }
.appli h2 { font-size: clamp(38px, 5vw, 76px); }
.carte h3, .vide h3 { font-weight: 600; font-size: 27px; }
.menu-mobile nav a { font-family: var(--titres); font-weight: var(--poids-titres); font-stretch: 100%; }

/* Titres du bas de page : très grands, alignés à gauche sur la marge */
.outils-tete h2, .equipe .tete-section h2, .controle .tete-section h2, .pourquoi .tete-section h2,
.demarrage .tete-section h2, .tarifs .tete-section h2, .questions .tete-section h2, .essai h2 { font-size: clamp(38px, 5vw, 76px); max-width: 15em; }
.equipe .tete-section, .controle .tete-section, .pourquoi .tete-section, .demarrage .tete-section, .tarifs .tete-section, .questions .tete-section {
  max-width: none; margin: 0 0 clamp(36px, 5vw, 72px); text-align: left;
}
.tete-section p { max-width: 36em; margin-left: 0; font-size: 19px; }

/* Outils : tout gravite autour d'Arthur */
.outils { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); background: var(--griotte); color: var(--nacre); }
.outils-tete { display: block; padding-bottom: 0; }
.outils-tete h2 { color: #fff; }
.outils-tete p { max-width: 42em; margin-top: 24px; color: var(--nacre); font-size: 18px; line-height: 1.5; }
.constellation { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.constellation canvas { display: block; width: 100%; height: clamp(420px, 56vw, 820px); }
.defile, .pause { display: none; }
.annuaire { margin-top: 0; }
.recherche input { border-bottom-color: var(--nacre); color: #fff; font-family: var(--titres); }
.recherche input::placeholder { color: rgba(240, 222, 200, .62); }
.familles button { border-color: var(--trait-clair); color: var(--nacre); }
.familles button:hover { border-color: var(--nacre); }
.familles button[aria-pressed="true"] { background: var(--nacre); border-color: var(--nacre); color: var(--griotte); }
.liste-outils li { color: var(--nacre); }
.tout-voir { border-color: var(--nacre); color: var(--nacre); }
.aucun, .aucun a { color: var(--nacre); }
.outils :focus-visible { outline-color: var(--nacre); }

/* L'équipe : une liste, pas des cartes */
.equipe { background: radial-gradient(900px 700px at 85% 20%, #4a0d22, var(--griotte) 70%); color: var(--nacre); }
.equipe h2 { color: #fff; }
.equipe .tete-section p { color: var(--nacre); }
.equipe .cartes-3 { display: block; max-width: none; margin: 0; }
.expert.bloc {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: clamp(16px, 3vw, 48px); align-items: center;
  padding: clamp(18px, 2vw, 28px) 0; border: 0; border-top: 1px solid var(--trait-clair); border-radius: 0; background: none; box-shadow: none; color: var(--nacre);
}
.expert.bloc:last-child { border-bottom: 1px solid var(--trait-clair); }
.expert.bloc h3 {
  grid-row: 1; grid-column: 1; margin: 0; font-family: var(--titres); font-size: clamp(22px, 1.9vw, 28px); font-weight: var(--poids-titres); line-height: 1.2; color: #fff;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), color .3s;
}
.expert.bloc:hover h3 { transform: translateX(14px); color: var(--nacre); }
.expert.bloc p { grid-row: 1; grid-column: 2; max-width: 34em; font-size: 17px; line-height: 1.45; }
.expert.bloc .expert-logos { grid-row: 1; grid-column: 3; margin: 0; }
.usage-interne { max-width: none; margin: clamp(32px, 4vw, 52px) 0 0; text-align: left; font-size: 19px; line-height: 1.45; color: var(--nacre); font-family: var(--titres); border: 0; padding: 0; }

/* Le contrôle : le geste, à essayer soi-même */
.controle { background: var(--nacre); color: var(--griotte); }
.controle h2 { color: var(--griotte); }
.accord { max-width: 760px; margin-bottom: clamp(44px, 6vw, 84px); }
.accord-sujet { font-family: var(--titres); font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.2; }
.accord-detail { margin-top: 8px; font-size: 18px; }
.accord-rail { position: relative; margin-top: 26px; height: 76px; border-radius: 999px; background: var(--griotte); overflow: hidden; }
.accord-rail span { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 60px; color: var(--nacre); font-weight: 600; font-size: 17px; pointer-events: none; }
.accord-rail input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: grab; }
.accord-rail input:active { cursor: grabbing; }
.accord-rail input::-webkit-slider-thumb { -webkit-appearance: none; width: 64px; height: 64px; margin-left: 0; border-radius: 50%; background: var(--nacre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%232b0814' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/26px no-repeat; }
.accord-rail input::-moz-range-thumb { width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--nacre); }
.accord-rail input:focus-visible { outline-offset: -4px; outline-color: var(--nacre); }
.accord.fait .accord-rail { background: var(--grenat); }
.accord.fait .accord-rail span { padding-left: 0; }
.accord.fait .accord-rail input { display: none; }
.accord-retour { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; min-height: 44px; margin-top: 10px; font-size: 15px; }
.accord-retour button { min-height: 44px; border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.controle .cartes-3 { max-width: none; margin: 0; gap: clamp(24px, 4vw, 64px); }
.controle .bloc { padding: 18px 0 0; border: 0; border-top: 1px solid var(--trait-sombre); border-radius: 0; background: none; box-shadow: none; color: var(--griotte); }
.controle .bloc h3 { font-family: var(--titres); font-size: 22px; font-weight: 600; color: var(--griotte); margin-bottom: 12px; }
.controle .bloc p { font-size: 17px; line-height: 1.5; }
.controle :focus-visible { outline-color: var(--grenat); }

/* Pourquoi pas un autre outil */
.pourquoi { padding: 0 var(--marge) clamp(64px, 8vw, 120px); background: var(--nacre); color: var(--griotte); text-align: left; }
.pourquoi h2 { color: var(--griotte); }
.pourquoi .tete-section p { color: var(--griotte); }
.pourquoi-noms { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .1em .55em; max-width: none; margin: 0 0 36px; padding: 0; list-style: none; font-family: var(--titres); font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; line-height: 1.3; color: var(--grenat); }
.pourquoi-noms li { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; color: inherit; }
.pourquoi .face-action { text-align: left; }
.pourquoi .bouton-contour { background: var(--griotte); border-color: var(--griotte); color: var(--nacre); }

/* Démarrage : une vraie suite d'étapes */
.demarrage { background: var(--griotte); color: var(--nacre); }
.demarrage h2 { color: #fff; }
.demarrage .cartes-3 { max-width: none; margin: 0; gap: clamp(24px, 4vw, 64px); }
.demarrage li.bloc { padding: 18px 0 0; border: 0; border-top: 1px solid var(--trait-clair); border-radius: 0; background: none; box-shadow: none; color: var(--nacre); }
.demarrage li.bloc::before { content: none; }
.demarrage .etape { display: block; width: auto; height: auto; margin: 0 0 14px; border-radius: 0; background: none; color: var(--nacre); font-family: var(--titres); font-size: clamp(44px, 4vw, 60px); font-weight: 600; line-height: 1; }
.demarrage .bloc h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.demarrage .bloc p { font-size: 17px; line-height: 1.5; }

/* Formules : deux grands panneaux qui se touchent */
.tarifs { padding: clamp(60px, 7vw, 104px) 0 0; background: var(--griotte); color: var(--nacre); }
.tarifs .tete-section { padding: 0 var(--marge); }
.tarifs .tete-section h2 { color: #fff; }
.tarifs .formules-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.tarifs .offre { padding: clamp(32px, 5vw, 72px) var(--marge); border: 0; border-radius: 0; box-shadow: none; }
.tarifs .offre:first-child { background: var(--nacre); color: var(--griotte); }
.tarifs .offre-forte { background: radial-gradient(800px 600px at 80% 0%, #8a1a3e, var(--grenat) 60%); color: #fff; }
.tarifs .offre h3 { font-family: var(--titres); font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; line-height: 1.15; color: inherit; }
.tarifs .offre-pour { margin-top: 10px; font-size: 18px; color: inherit; }
.tarifs .offre-prix { margin: 28px 0 24px; font-family: var(--titres); font-size: clamp(48px, 4.6vw, 68px); font-weight: 600; letter-spacing: -.035em; color: inherit; }
.tarifs .offre-prix span { display: block; margin-top: 8px; font-family: "Geist", system-ui, sans-serif; font-size: 15px; letter-spacing: 0; color: inherit; }
.tarifs .offre li { font-size: 16.5px; color: inherit; }
.tarifs .offre-badge { position: static; align-self: flex-start; margin-bottom: 16px; background: var(--nacre); color: var(--griotte); }
.tarifs .offre:first-child .bouton-contour { background: var(--griotte); border-color: var(--griotte); color: var(--nacre); }
.tarifs .offre-forte .bouton-grenat { background: var(--nacre); color: var(--griotte); }
.tarifs .offre-forte :focus-visible { outline-color: var(--nacre); }
.tarifs .offre-note { max-width: none; margin: 0; padding: 22px var(--marge); text-align: left; color: var(--nacre); }

/* Questions */
.questions { background: var(--griotte); color: var(--nacre); }
.questions h2 { color: #fff; }
.questions .faq { max-width: none; margin: 0; }
.questions .faq details { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--trait-clair); border-radius: 0; background: none; box-shadow: none; max-width: none; }
.questions .faq details:last-child { border-bottom: 1px solid var(--trait-clair); }
.questions .faq summary { padding: 22px 0; font-family: var(--titres); font-size: 19px; font-weight: 600; line-height: 1.3; color: #fff; }
.questions .faq summary::after { color: var(--nacre); font-family: "Geist", system-ui, sans-serif; }
.questions .faq details p { max-width: 42em; padding-bottom: 24px; font-size: 17px; color: var(--nacre); }
.questions :focus-visible { outline-color: var(--nacre); }

/* Formulaire final : retour à la lumière du haut de page */
.essai { background: radial-gradient(900px 620px at 30% 45%, #72142f 0%, #4a0d22 50%, var(--griotte) 100%); }

@media (max-width: 860px) {
  .expert.bloc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .expert.bloc h3, .expert.bloc p, .expert.bloc .expert-logos { grid-row: auto; grid-column: 1; }
  .expert.bloc .expert-logos { margin-top: 6px; }
  .tarifs .formules-cartes { grid-template-columns: minmax(0, 1fr); }
  .controle .cartes-3, .demarrage .cartes-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .expert.bloc h3 { transition: none; }
  .expert.bloc:hover h3 { transform: none; }
}

/* styles.css réduit tous les titres de bas de page : on reprend la main ici */
main > section:not(.scene):not(.appli):not(.outils):not(.tout-metier):is(.equipe, .controle, .pourquoi, .demarrage, .tarifs, .questions, .essai) h2 {
  font-size: clamp(38px, 5vw, 76px); font-weight: var(--poids-titres); letter-spacing: var(--serrage); line-height: 1.04;
}
.demarrage ol.cartes.cartes-3 { max-width: none; margin: 0; }

/* Téléphone 3D */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.scene-3d { position: fixed; inset: 0; z-index: 15; width: 100vw; height: 100vh; pointer-events: none; }
@media (min-width: 1000px) {
  /* Le côté droit reste libre : le téléphone y passe */
  .avec-3d .equipe .cartes-3, .avec-3d .usage-interne, .avec-3d .controle .cartes-3,
  .avec-3d .pourquoi-noms, .avec-3d .demarrage ol.cartes.cartes-3 { max-width: 70%; }
  .avec-3d .controle .cartes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Téléphones : espaces réservés au téléphone 3D */
.pose-3d { display: none; }
@media (max-width: 999px) {
  .avec-3d .pose-3d { display: block; height: 110svh; }
  /* La scène des outils reste à l'écran un moment : le téléphone tourne au milieu des logos */
  .avec-3d .constellation { height: 230svh; margin-top: 0; }
  .avec-3d .constellation canvas { position: sticky; top: 0; height: 100svh; }
}

/* Pied de page sur téléphone : l'adresse e-mail tient sur une ligne */
@media (max-width: 999px) { .pied > div:last-child { grid-column: 1 / -1; } }
