/* EyePutt — direction « Nuit ». Aucune ressource tierce : polices servies par le site. */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --nuit: #0A1730;
  --nuit-2: #0F1F3B;
  --ivoire: #F5F1E8;
  --brume: #C9D0DD;
  --vert: #8FC1A6;
  --filet: rgba(245, 241, 232, 0.14);
  --filet-fort: rgba(245, 241, 232, 0.32);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gouttiere: 20px;
  --marge-g: max(var(--gouttiere), env(safe-area-inset-left));
  --marge-d: max(var(--gouttiere), env(safe-area-inset-right));
  --largeur: 1180px;
  --air: clamp(5rem, 13vw, 9.5rem);
  --barre: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--nuit);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--barre) + env(safe-area-inset-top) + 1.25rem);
}

body {
  margin: 0;
  background: var(--nuit);
  color: var(--ivoire);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
figure { margin: 0; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--vert); }

:focus-visible {
  outline: 2px solid var(--ivoire);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.lien-evitement {
  position: absolute; left: var(--marge-g); top: -100px;
  background: var(--ivoire); color: var(--nuit);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 10; text-decoration: none;
}
.lien-evitement { z-index: 30; }
.lien-evitement:focus { top: max(12px, env(safe-area-inset-top)); }

.cadre {
  width: 100%;
  max-width: calc(var(--largeur) + var(--marge-g) + var(--marge-d));
  margin-inline: auto;
  padding-left: var(--marge-g);
  padding-right: var(--marge-d);
}

/* ——— Titres ——— */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.3rem, 7vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 1.75rem;
  line-height: 1.1;
}
p { margin: 0; text-wrap: pretty; }
.secondaire { color: var(--brume); }

/* ——— Barre de navigation ——— */

.barre {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nuit);
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
  padding-top: env(safe-area-inset-top);
}
.barre > .cadre {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--barre);
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
}
.marque:hover { color: var(--ivoire); }
.marque img {
  width: 36px; height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--filet);
}
.menu-bouton {
  flex: none;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--filet-fort);
  border-radius: 10px;
  background: transparent;
  color: var(--ivoire);
  font: 500 1rem/1 var(--sans);
  cursor: pointer;
}
.menu-bouton[aria-expanded="true"] { background: var(--ivoire); color: var(--nuit); border-color: var(--ivoire); }
.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--marge-d) 1.5rem var(--marge-g);
  background: var(--nuit);
  border-bottom: 1px solid var(--filet);
}
.menu.ouvert { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu-sections a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--filet);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  text-decoration: none;
}
.menu-sections a.actif { text-decoration: underline; text-decoration-color: var(--vert); text-underline-offset: 0.25em; }
.langues {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--brume);
}
.langues a {
  display: inline-block;
  padding: 0.5rem 0.4rem;
  text-decoration: none;
  color: var(--brume);
}
.langues a[aria-current="page"] { color: var(--ivoire); text-decoration: underline; }
.langues a:hover { color: var(--vert); }
.bouton-barre { min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.9375rem; }

@media (min-width: 1100px) {
  .menu-bouton { display: none; }
  .menu {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: none;
    border: 0;
  }
  .menu-sections { display: flex; gap: 1.5rem; }
  .menu-sections a {
    padding: 0.5rem 0;
    border: 0;
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--brume);
    text-underline-offset: 0.45em;
    text-decoration-thickness: 1px;
  }
  .menu-sections a:hover { color: var(--ivoire); }
  .menu-sections a.actif { color: var(--ivoire); }
  .langues { margin: 0; }
}

/* ——— Ouverture ——— */

.ouverture { padding-top: clamp(2rem, 7vw, 5rem); padding-bottom: var(--air); }
.ouverture .cadre {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.promesse {
  font-size: clamp(3.3rem, 13.5vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-wrap: initial;
}
.promesse span { display: block; }
.promesse em { font-style: italic; color: var(--vert); }
.ouverture p.chapeau {
  margin-top: 1.75rem;
  max-width: 34em;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--brume);
}
.appel { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 12px;
  background: var(--vert);
  color: var(--nuit);
  font: 600 1.0625rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover { background: var(--ivoire); color: var(--nuit); }
.bientot { font-size: 0.9375rem; color: var(--brume); }

.visuel {
  --w: min(262px, 60vw);
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 2rem;
}
.visuel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--w) * 1.56);
  height: calc(var(--w) * 2.62);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ivoire);
  opacity: 0.14;
}

/* ——— Cadre d'iPhone ——— */

.telephone {
  --w: min(262px, 60vw);
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.16);
  background: #161D2B;
  box-shadow: 0 0 0 1px rgba(245, 241, 232, 0.2);
}
.visuel .telephone { --w: inherit; }
.telephone > img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.13);
  overflow: hidden;
  background: #FAF7F7;
}
.telephone > img { height: auto; object-fit: cover; }

/* ——— Sections ——— */

.section { padding-block: var(--air); }
.section + .section,
.ouverture + .section { padding-top: 0; }
.chapeau-section { margin-top: 1.5rem; max-width: 36em; color: var(--brume); font-size: 1.125rem; }

.constat .cadre { display: grid; gap: 1.75rem; }
.constat p { max-width: 34em; font-size: 1.1875rem; color: var(--brume); }

.etapes {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  counter-reset: etape;
}
.etapes li { counter-increment: etape; }
.etapes li::before {
  content: counter(etape);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--vert);
  margin-bottom: 0.75rem;
}
.etapes p { margin-top: 0.6rem; color: var(--brume); max-width: 26em; }

.cible .cadre { display: grid; gap: 3rem; align-items: start; }
.schema { max-width: 440px; width: 100%; margin-inline: auto; }
.schema svg { width: 100%; height: auto; }
.schema text { font-family: var(--sans); }
.zones { margin: 0; display: grid; gap: 1.6rem; }
.zones dt { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.zones dd { margin: 0.35rem 0 0; color: var(--brume); max-width: 30em; }

.coach .cadre { display: grid; gap: 3rem; align-items: center; }
.carte-coach {
  justify-self: start;
  background: var(--ivoire);
  color: #024C14;
  border-radius: 16px;
  padding: 1.35rem 1.6rem;
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.exercices {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.exercices li {
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--filet);
}
.exercices h3 { font-size: 1.6rem; }
.exercices p { margin-top: 0.35rem; color: var(--brume); }
.ligue {
  margin-top: 2.5rem;
  max-width: 26em;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  line-height: 1.25;
}

.ecrans .rangee {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 2px 1.25rem;
  margin-inline: calc(-1 * var(--marge-g)) calc(-1 * var(--marge-d));
  padding-inline: var(--marge-g) var(--marge-d);
  scrollbar-width: thin;
  scrollbar-color: var(--filet-fort) transparent;
}
.ecrans .telephone { --w: min(230px, 62vw); flex: none; scroll-snap-align: center; }
.ecrans figcaption {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  line-height: 1.25;
  max-width: 26em;
}

.faq dl { margin: 2.5rem 0 0; display: grid; gap: 0; max-width: 46rem; }
.faq dt {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.15;
  padding-top: 1.4rem;
  border-top: 1px solid var(--filet);
}
.faq dd { margin: 0.5rem 0 1.5rem; color: var(--brume); }

/* ——— Liste d'attente ——— */

.attente .cadre { display: grid; gap: 2.5rem; }
.attente p.chapeau-section { margin-top: 1.25rem; }
.formulaire { display: grid; gap: 1.1rem; max-width: 30rem; }
.formulaire label.champ { display: grid; gap: 0.45rem; font-size: 0.9375rem; color: var(--brume); }
.formulaire input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--filet-fort);
  border-radius: 12px;
  background: var(--nuit-2);
  color: var(--ivoire);
  font: 400 1.0625rem/1.3 var(--sans);
}
.formulaire input[type="email"]::placeholder { color: #9AA3B5; }
.formulaire input[type="email"]:focus-visible { outline-offset: 2px; border-color: var(--ivoire); }
.consentement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--brume);
  cursor: pointer;
}
.consentement input {
  width: 22px; height: 22px;
  margin: 0.1rem 0 0;
  accent-color: var(--vert);
}
.piege { display: none; }
.formulaire .bouton { justify-self: start; }

/* ——— Pied de page ——— */

.pied {
  padding-top: 3rem;
  padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 1.5rem));
  border-top: 1px solid var(--filet);
  font-size: 0.9375rem;
  color: var(--brume);
}
.pied .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.pied .marque { font-size: 1.4rem; color: var(--ivoire); }
.pied .marque img { width: 28px; height: 28px; border-radius: 7px; }
.pied nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
.pied nav li + li::before { content: "·"; margin-right: 0.5rem; color: var(--brume); }
.pied nav a { display: inline-block; padding-block: 0.4rem; color: var(--brume); }
.pied nav a:hover { color: var(--vert); }

/* ——— Petites pages ——— */

.page { padding-top: clamp(2rem, 7vw, 4.5rem); padding-bottom: var(--air); }
.page .cadre > * { max-width: 46rem; }
.page h1 { font-size: clamp(2.6rem, 9vw, 4.2rem); line-height: 1; }
.page h2 { font-size: 1.75rem; line-height: 1.15; margin-top: 2.75rem; }
.page p, .page ul { margin-top: 0.9rem; color: var(--brume); }
.page ul { padding-left: 1.2rem; }
.page li + li { margin-top: 0.4rem; }
.page .maj { margin-top: 1.25rem; font-size: 0.9375rem; }
.a-remplir { color: var(--vert); }

/* La grille des pas (Aide, FAQ 15) : la colonne des tailles reste en place, les distances défilent. */
.page .faq dl { grid-template-columns: minmax(0, 1fr); }
.grille-pas {
  margin-top: 1.1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--filet);
  border-radius: 12px;
}
.grille-pas table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 0.9375rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--ivoire);
}
.grille-pas th, .grille-pas td {
  padding: 0.5rem 0.6rem;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--filet);
}
.grille-pas thead th { color: var(--brume); font-size: 0.8125rem; font-weight: 600; vertical-align: bottom; }
.grille-pas thead th:first-child, .grille-pas tbody th {
  position: sticky;
  left: 0;
  background: var(--nuit);
  text-align: left;
  border-right: 1px solid var(--filet-fort);
}
.grille-pas tbody th { font-weight: 600; }
.grille-pas tbody tr:last-child > * { border-bottom: 0; }

/* ——— Apparition douce ——— */

.apparition-prete .apparait {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .2, 1);
}
.apparition-prete .apparait.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparition-prete .apparait { opacity: 1; transform: none; transition: none; }
}

/* ——— Écrans larges ——— */

@media (min-width: 640px) {
  :root { --gouttiere: 32px; }
  .etapes { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .exercices { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .appel { flex-direction: row; align-items: center; gap: 1.5rem; }
}

@media (min-width: 900px) {
  :root { --gouttiere: 48px; }
  body { font-size: 1.125rem; }
  .ouverture .cadre { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); gap: 2rem; }
  .promesse { font-size: min(6.6vw, 6.3rem); }
  .visuel { --w: min(290px, 24vw); padding-block: 4rem; }
  .constat .cadre { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .constat p { margin-top: 0.6rem; }
  .cible .cadre { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .cible .entete-section { grid-column: 1 / -1; }
  .coach .cadre { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; }
  .carte-coach { justify-self: center; font-size: 1.3rem; padding: 1.6rem 2rem; }
  .exercices { grid-template-columns: repeat(3, 1fr); }
  .ecrans .rangee { overflow: visible; margin-inline: 0; padding-inline: 0; justify-content: flex-start; gap: 2.5rem; }
  .ecrans .telephone { --w: 250px; }
  .attente .cadre { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}
