/* Site public Savoir — refonte « premium ».
   Minimalisme affirmé : typographie surdimensionnée, blancs généreux, une seule
   couleur d'accent, nav translucide, bandes pleines séparées par des respirations
   transparentes où vit le graphe d'arrière-plan (canvas fixe sous le contenu).
   Contrainte CSP (default-src 'self') : aucune police externe — pile système. */
@font-face {
  font-family: 'Poppins';
  font-weight: 400;
  font-display: swap;
  src: url('/actifs/fonts/poppins-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-weight: 500;
  font-display: swap;
  src: url('/actifs/fonts/poppins-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-display: swap;
  src: url('/actifs/fonts/poppins-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-display: swap;
  src: url('/actifs/fonts/poppins-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-weight: 800;
  font-display: swap;
  src: url('/actifs/fonts/poppins-800.woff2') format('woff2');
}

:root {
  --encre: #0b0d12;
  --texte: #1d1d1f;
  --texte-2: #6e6e73;
  --fond: #fbfbfd;
  --gris-bande: #f5f5f7;
  --hairline: rgba(0, 0, 0, .08);
  --bordure: #d8d8de;
  --accent: #2563eb;
  --accent-fonce: #1e50c8;
  --rayon: 20px;
  --pilule: 980px;
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --police-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--police);
  color: var(--texte);
  background: var(--fond);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Graphe d'arrière-plan : canvas fixe SOUS tout le contenu ---- */
#graphe-fond {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

/* ---- Typographie ---- */
h1,
h2,
h3 {
  color: var(--encre);
  margin: 0 0 .5em;
}

h1 {
  font-size: clamp(2.9rem, 6.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.08;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.sous-titre {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  color: var(--texte-2);
  line-height: 1.5;
  max-width: 42em;
  margin: 0 auto;
  font-weight: 400;
}

.surtitre {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

p {
  margin: 0 0 1em;
}

/* ---- Structure : bandes pleines + respirations transparentes ---- */
.contenu {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.contenu-etroit {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

.bande {
  position: relative;
  background: var(--fond);
  padding: clamp(88px, 11vw, 148px) 0;
}

.bande-grise {
  background: var(--gris-bande);
}

.bande-encre {
  background: var(--encre);
}

.bande-encre h2,
.bande-encre h3 {
  color: #fff;
}

.bande-encre p,
.bande-encre .sous-titre {
  color: rgba(255, 255, 255, .72);
}

.bande-encre .surtitre {
  color: #7ea6ff;
}

.respiration {
  height: clamp(180px, 30vh, 340px);
  pointer-events: none;
}

.respiration-petite {
  height: clamp(90px, 14vh, 170px);
  pointer-events: none;
}

.centre {
  text-align: center;
}

/* ---- Entête translucide ---- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  height: 52px;
  padding: 0 28px;
  background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.marque {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--encre);
  text-decoration: none;
}

.marque .point {
  color: var(--accent);
}

.entete nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.entete nav a {
  color: rgba(29, 29, 31, .82);
  text-decoration: none;
  font-size: .8125rem;
  letter-spacing: .01em;
  transition: color .2s;
}

.entete nav a:hover {
  color: var(--encre);
}

.entete .bouton {
  font-size: .75rem;
  padding: 7px 15px;
}

/* ---- Boutons ---- */
.bouton {
  display: inline-block;
  cursor: pointer;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--pilule);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  text-align: center;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.bouton:hover {
  background: var(--accent-fonce);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .55);
}

.bouton:active {
  transform: translateY(0);
}

.bouton:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .5);
  outline-offset: 2px;
}

.bouton-secondaire {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--bordure);
}

.bouton-secondaire:hover {
  background: rgba(37, 99, 235, .06);
  box-shadow: none;
}

.bande-encre .bouton {
  background: #fff;
  color: var(--encre);
}

.bande-encre .bouton:hover {
  background: #e9e9ee;
  box-shadow: none;
}

.lien-fleche {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  white-space: nowrap;
}

.lien-fleche::after {
  content: " ›";
}

.lien-fleche:hover {
  text-decoration: underline;
}

/* ---- Héros ---- */
.heros {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(72px, 10vw, 128px) 28px 56px;
}

.heros h1 {
  max-width: 15em;
  margin-left: auto;
  margin-right: auto;
}

.heros .sous-titre {
  margin-top: 20px;
}

.actions-heros {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Emplacement du hero vidéo (placeholder — la vidéo fournie remplacera ce cadre) */
.cadre-video {
  position: relative;
  max-width: 1000px;
  margin: 64px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(120% 140% at 80% 10%, #1b2947 0%, #0e1524 55%, #0a0f1a 100%);
  box-shadow: 0 40px 100px -30px rgba(10, 15, 26, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.cadre-video .lecture {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s, background .25s;
}

.cadre-video:hover .lecture {
  transform: scale(1.06);
  background: rgba(255, 255, 255, .16);
}

.cadre-video .lecture svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  margin-left: 5px;
}

.cadre-video .legende-video {
  color: rgba(255, 255, 255, .85);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0;
}

.cadre-video .note-video {
  position: absolute;
  bottom: 16px;
  right: 20px;
  margin: 0;
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* ---- Grilles de piliers / promesses ---- */
.colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  margin-top: clamp(40px, 6vw, 72px);
  text-align: left;
}

.pilier .icone {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pilier .icone svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pilier p {
  color: var(--texte-2);
  font-size: .9375rem;
  margin: 0;
}

.bande-encre .pilier p {
  color: rgba(255, 255, 255, .65);
}

.citation {
  color: var(--texte-2);
  font-style: italic;
}

/* ---- Extrait à copier (branchement IA) ---- */
.extrait {
  background: #0d1117;
  color: #dce3ee;
  border-radius: 16px;
  padding: 22px 26px;
  margin: 28px auto 0;
  max-width: 760px;
  font-family: var(--police-mono);
  font-size: .8125rem;
  line-height: 1.7;
  text-align: left;
  white-space: pre-wrap;
  overflow-x: auto;
  box-shadow: 0 24px 60px -24px rgba(10, 15, 26, .4);
}

.note {
  color: var(--texte-2);
  font-size: .875rem;
}

/* ---- Tarifs ---- */
.paliers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: clamp(40px, 6vw, 64px);
  align-items: stretch;
  text-align: left;
}

.palier {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--rayon);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.palier:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -28px rgba(11, 13, 18, .18);
}

.palier-vedette {
  border: 1.5px solid var(--accent);
  box-shadow: 0 24px 60px -28px rgba(37, 99, 235, .25);
}

.palier h3 {
  font-size: 1.25rem;
}

.prix {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--encre);
  margin: 6px 0 2px;
}

.prix span {
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--texte-2);
}

.palier ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  flex: 1;
}

.palier li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: .9375rem;
  color: var(--texte);
}

.palier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%232563eb' fill-opacity='.1'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.5' stroke='%232563eb' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

.palier .bouton {
  width: 100%;
}

/* ---- FAQ ---- */
.faq {
  max-width: 720px;
  margin: clamp(48px, 7vw, 88px) auto 0;
  text-align: left;
}

.faq h2 {
  text-align: center;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq details:first-of-type {
  border-top: 1px solid var(--hairline);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 22px 44px 22px 0;
  font-weight: 600;
  color: var(--encre);
  font-size: 1.0625rem;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--texte-2);
  transition: transform .25s;
}

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

.faq details p {
  color: var(--texte-2);
  padding: 0 0 22px;
  max-width: 60ch;
}

/* ---- Formulaires ---- */
.formulaire {
  max-width: 460px;
  margin: clamp(40px, 6vw, 56px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.formulaire label {
  font-weight: 600;
  color: var(--encre);
  font-size: .8125rem;
  margin: 14px 0 4px;
}

.formulaire input[type=email],
.formulaire input:not([type]) {
  padding: 13px 16px;
  border: 1px solid var(--bordure);
  border-radius: 12px;
  font-size: 1.0625rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.formulaire input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
}

.formulaire fieldset {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formulaire legend {
  font-weight: 600;
  font-size: .8125rem;
  padding: 0 6px;
}

.formulaire fieldset label {
  font-weight: 400;
  font-size: .9375rem;
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.formulaire .bouton {
  margin-top: 22px;
}

.aide {
  color: var(--texte-2);
  font-size: .8125rem;
  margin: 2px 0 0;
}

.erreur {
  color: #d70015;
  font-weight: 500;
  font-size: .9375rem;
}

/* ---- Suivi de provisionnement ---- */
.suivi {
  text-align: center;
}

.suivi .extrait {
  margin-top: 20px;
}

/* ---- Pied de page ---- */
.pied {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 44px 28px 52px;
  border-top: 1px solid var(--hairline);
  background: var(--fond);
  color: var(--texte-2);
  font-size: .75rem;
}

.pied a {
  color: var(--texte-2);
  text-decoration: none;
}

.pied a:hover {
  color: var(--encre);
}

/* ---- Apparitions au défilement (activées par apparitions.js via html.anim) ---- */
html.anim .apparition {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

html.anim .apparition.visible {
  opacity: 1;
  transform: none;
}

html.anim .retard-1 {
  transition-delay: .08s;
}

html.anim .retard-2 {
  transition-delay: .16s;
}

html.anim .retard-3 {
  transition-delay: .24s;
}

/* ---- Adaptation ---- */
@media (max-width: 820px) {
  .entete {
    gap: 18px;
    justify-content: space-between;
  }

  .entete nav {
    gap: 18px;
  }

  .entete nav a:not(.bouton) {
    display: none;
  }

  .respiration {
    height: 22vh;
  }

  .cadre-video {
    border-radius: 16px;
    margin-top: 44px;
  }

  .cadre-video .lecture {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bouton,
  .palier,
  .cadre-video .lecture {
    transition: none;
  }
}
/* --- Pages juridiques (conditions, confidentialité) --- */

.texte-juridique {
  text-align: left;
}

.texte-juridique h2 {
  font-size: 1.3rem;
  margin: 2.4rem 0 .6rem;
}

.texte-juridique ul {
  margin: .4rem 0 1rem;
  padding-left: 1.3rem;
}

.texte-juridique li {
  margin: .4rem 0;
}

/* --- Consentement au formulaire d'inscription --- */

.formulaire .consentement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: .9375rem;
  margin-top: 16px;
}

.formulaire .consentement input[type=checkbox] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}
