/* Notea, site de présentation.
   Une page de cahier à grands carreaux : encre bleue sur papier, marge rouge,
   titres en serif comme le thème Cahier de l'app. Les ombres dures en
   bleu-noir viennent du stylo, pas d'un kit d'interface. L'or sur la nuit
   reste réservé à Notea Plus. */

:root {
  --paper: #FBFAF5;
  --paper-deep: #F3F1E8;
  --ink: #1F4FA0;
  --ink-soft: #3E69B4;
  --text: #17213A;
  --text-soft: #4D5670;
  --seyes: #E7EDF7;
  --seyes-strong: #D0DBEF;
  --margin: #CF5F57;
  --night: #0E1018;
  --night-card: #191C28;
  --gold: #D8B466;
  --gold-light: #F1DDA8;
  --on-gold: #1A1206;
  --highlight: #FFE76A;
  --success: #2F7D52;
  --danger: #B23B32;

  --radius: 12px;
  --radius-small: 8px;
  --line: 2px solid var(--text);
  --hard: 4px 4px 0 var(--text);

  --font-display: "Young Serif", "New York", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Un grand carreau Seyès : 32 px, quatre lignes fines de 8 px. */
  --cell: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--text);
  color: var(--paper);
  border-radius: var(--radius-small);
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: var(--line);
  border-radius: var(--radius);
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--text); }

.btn--ink { background: var(--ink); color: #fff; box-shadow: var(--hard); }
.btn--paper { background: #fff; color: var(--text); box-shadow: var(--hard); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #B8913F);
  color: var(--on-gold);
  border-color: var(--on-gold);
  box-shadow: 4px 4px 0 #000;
}
.btn--small { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; box-shadow: 3px 3px 0 var(--text); }
.btn--block { width: 100%; }

.link {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.brand__mark { width: 36px; height: 36px; }
.brand--small { font-size: 1.25rem; }
.brand--small .brand__mark { width: 30px; height: 30px; }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
}
.nav__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn { margin-left: 8px; }
.nav__login { margin-left: auto; font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 6px; }
.nav__links + .nav__login { margin-left: 4px; }
.nav__login:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Cahier ---------- */

.seyes {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--seyes-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--seyes-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--seyes) 1px, transparent 1px);
  background-size: var(--cell) var(--cell), var(--cell) var(--cell), 100% 8px;
  background-position: -1px -1px;
}

/* La marge rouge du cahier, à gauche du contenu. */
.seyes::before,
.margin::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(16px, calc((100% - 1180px) / 2 - 36px));
  width: 2px;
  background: var(--margin);
  opacity: 0.75;
}

/* ---------- En-tête de page ---------- */

.hero { border-bottom: var(--line); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 48px;
  padding-block: 96px 112px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}
.lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.hero__note {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

/* Démonstration : le téléphone qui écoute, la fiche qui s'écrit. */
.hero__demo {
  position: relative;
  min-height: 560px;
}

.phone {
  position: absolute;
  top: 0;
  left: 0;
  width: 270px;
  height: 556px;
  padding: 10px;
  border-radius: 46px;
  background: var(--text);
  box-shadow: 8px 8px 0 rgba(23, 33, 58, 0.18);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  background: #F8F7F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 46px 20px 26px;
  overflow: hidden;
}
.phone__island {
  position: absolute;
  top: 11px;
  width: 84px;
  height: 24px;
  border-radius: 12px;
  background: #000;
}
.phone__title {
  font-weight: 700;
  font-size: 0.9375rem;
}
.phone__subject {
  align-self: flex-start;
  margin-top: 18px;
  padding: 4px 12px;
  border-radius: var(--radius-small);
  background: #EFEEE8;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8125rem;
}
.dial {
  position: relative;
  width: 188px;
  height: 188px;
  margin-top: 44px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
}
.dial__ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--ink) 0deg 1.4deg, transparent 1.4deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 82px, #000 83px, #000 93px, transparent 94px);
          mask: radial-gradient(circle, transparent 82px, #000 83px, #000 93px, transparent 94px);
  opacity: 0.55;
}
.dial__time {
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dial__state {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-soft);
}
.phone__controls {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.phone__pause,
.phone__spacer { width: 44px; height: 44px; border-radius: 50%; }
.phone__pause {
  background: #EFEEE8 linear-gradient(90deg, transparent 15px, var(--ink) 15px 20px, transparent 20px 24px, var(--ink) 24px 29px, transparent 29px) center / 44px 16px no-repeat;
}
.phone__stop {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--danger) radial-gradient(circle, transparent 0) ;
  position: relative;
}
.phone__stop::after {
  content: "";
  position: absolute;
  inset: 23px;
  border-radius: 4px;
  background: #fff;
}

.sheet {
  position: absolute;
  right: -12px;
  bottom: -8px;
  width: min(320px, 66%);
  padding: 22px 22px 18px;
  border: var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  background-image: linear-gradient(to bottom, var(--seyes-strong) 1px, transparent 1px);
  background-size: 100% 32px;
  background-position: 0 59px;
  box-shadow: var(--hard);
  transform: rotate(1.5deg);
}
.sheet__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 32px;
  color: var(--ink);
}
.sheet__lines {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.sheet__lines li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
}
.sheet__lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.sheet__foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--seyes-strong);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
}

mark.hl {
  color: inherit;
  background: linear-gradient(transparent 38%, var(--highlight) 38%, var(--highlight) 92%, transparent 92%) no-repeat;
  background-size: 100% 100%;
}

/* Le seul mouvement non demandé de la page : la fiche s'écrit une fois. */
@media (prefers-reduced-motion: no-preference) {
  .ink-line {
    clip-path: inset(0 100% 0 0);
    animation: write 0.9s cubic-bezier(0.3, 0.1, 0.3, 1) forwards;
    animation-delay: calc(0.7s + var(--d) * 0.75s);
  }
  mark.hl {
    background-size: 0% 100%;
    animation: highlight 0.6s ease-out forwards;
    animation-delay: 2.4s;
  }
  .sheet {
    opacity: 0;
    animation: arrive 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards;
  }
}
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes highlight { to { background-size: 100% 100%; } }
@keyframes arrive {
  from { opacity: 0; transform: translateY(18px) rotate(1.5deg); }
  to { opacity: 1; transform: rotate(1.5deg); }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: 112px;
  border-bottom: var(--line);
}
.section--quiet { background: var(--paper-deep); }
.section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 18ch;
}
.section__lede {
  margin-top: 16px;
  max-width: 40em;
  font-size: 1.1875rem;
  color: var(--text-soft);
}

/* Étapes : numérotées dans la marge, comme on numérote un exercice. */
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.step { position: relative; }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--margin);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.625rem; }
.step p { margin-top: 12px; color: var(--text-soft); max-width: 32em; }

/* Fonctions : texte d'un côté, exemple à toucher de l'autre. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
  margin-top: 88px;
}
.feature--flip .feature__text { order: 2; }
.feature__text h3 { font-size: 2rem; max-width: 16ch; }
.feature__text p { margin-top: 16px; color: var(--text-soft); max-width: 30em; font-size: 1.125rem; }

.specimen { justify-self: center; width: min(100%, 480px); }
.specimen__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.segmented button,
.billing button {
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  padding: 9px 16px;
  font: 700 0.9375rem var(--font-body);
  color: var(--text-soft);
  cursor: pointer;
}
.segmented button[aria-pressed="true"],
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.summary {
  margin-top: 16px;
  padding: 24px 26px;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--hard);
  min-height: 300px;
}
.summary h4 { font-size: 1.25rem; color: var(--ink); }
.summary ul { margin: 14px 0 0; padding-left: 20px; }
.summary li { margin-bottom: 8px; font-size: 0.98rem; }
.summary li::marker { color: var(--ink); }

/* Carte de révision : retournée au toucher. */
.flashcard {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1200px;
  font: inherit;
  color: inherit;
  text-align: left;
}
.flashcard__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--hard);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.3, 0.1, 0.2, 1);
}
.flashcard__back {
  transform: rotateY(180deg);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.25rem;
}
.flashcard[aria-pressed="true"] .flashcard__front { transform: rotateY(-180deg); }
.flashcard[aria-pressed="true"] .flashcard__back { transform: rotateY(0); }
.flashcard__hint {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--margin);
}
.flashcard__back .flashcard__hint { color: var(--gold-light); }

/* Quiz. */
.quiz {
  margin: 0;
  padding: 26px;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--hard);
  display: grid;
  gap: 10px;
}
.quiz legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.3;
}
.quiz__option {
  text-align: left;
  padding: 14px 16px;
  border: 2px solid var(--seyes-strong);
  border-radius: var(--radius-small);
  background: var(--paper);
  font: 700 1rem var(--font-body);
  color: var(--text);
  cursor: pointer;
}
.quiz__option:hover { border-color: var(--ink); }
.quiz__option[data-state="right"] { border-color: var(--success); background: #E7F2EB; }
.quiz__option[data-state="wrong"] { border-color: var(--danger); background: #F8E6E4; }
.quiz__feedback { min-height: 1.6em; font-size: 0.9375rem; color: var(--text-soft); }

/* Plan de révision. */
.plan {
  padding: 24px 26px;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--hard);
}
.plan__title { font-family: var(--font-display); font-size: 1.375rem; }
.plan ul { list-style: none; margin: 14px 0 0; padding: 0; }
.plan li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0 14px 16px;
  border-top: 1px solid var(--seyes-strong);
  position: relative;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 2px;
  background: var(--ink);
}
.plan li span { font-size: 0.9375rem; color: var(--text-soft); }

/* Le reste, en liste de définitions. */
.also { margin-top: 104px; }
.also h3 { font-size: 1.625rem; }
.also__list {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}
.also__list div { padding: 18px 0; border-top: 1px solid var(--seyes-strong); }
.also__list dt { font-weight: 700; }
.also__list dd { margin: 4px 0 0; color: var(--text-soft); }

/* Confidentialité. */
.privacy__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 48px 0 36px;
}
.privacy__facts p { color: var(--text-soft); }
.privacy__facts strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 1.125rem; }

/* Tarifs. */
.billing {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: 36px;
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
  align-items: stretch;
}
.plan-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--hard);
}
.plan-card h3 { font-size: 1.75rem; }
.plan-card--free { background: #fff; }
.plan-card--plus {
  background: var(--night);
  color: #F2EEE4;
  border-color: var(--night);
  box-shadow: 4px 4px 0 var(--gold);
}
.plus-head { display: flex; align-items: center; gap: 12px; }
.plus-mark { width: 34px; height: 22px; fill: var(--gold); }
.plan-card--plus h3 { color: var(--gold); }

.price { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; }
.price__amount { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-variant-numeric: lining-nums; }
.price__period { color: var(--text-soft); }
.plan-card--plus .price__period { color: #A9A49A; }
.plan-card__sub { margin-top: 10px; color: var(--text-soft); min-height: 3.2em; }
.plan-card--plus .plan-card__sub { color: #C9C3B6; }

/* Listes sur les lignes du cahier : pas de coches vertes. */
.ruled {
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
  flex: 1;
}
.ruled li {
  padding: 12px 0;
  border-top: 1px solid var(--seyes-strong);
}
.plan-card--plus .ruled li { border-top-color: #2C3040; }
.plan-card__fine { margin-top: 14px; font-size: 0.875rem; color: #A9A49A; text-align: center; }

/* Questions. */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--seyes-strong); }
.faq details:last-of-type { border-bottom: 1px solid var(--seyes-strong); }
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--text-soft); max-width: 40em; }

/* Appel final, sur l'encre. */
.cta {
  background: var(--night);
  color: #F2EEE4;
  padding-block: 112px;
  text-align: center;
}
.cta__inner { display: grid; justify-items: center; gap: 20px; }
.cta h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); color: var(--gold-light); max-width: 16ch; }
.cta p { color: #C9C3B6; font-size: 1.1875rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.btn--outline-light { background: transparent; color: var(--gold-light); border-color: rgba(241, 221, 168, 0.55); box-shadow: none; }
.btn--outline-light:hover { background: rgba(241, 221, 168, 0.08); }

.footer { padding-block: 40px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer__links a { color: var(--text-soft); font-size: 0.9375rem; }
.footer__fine { width: 100%; font-size: 0.875rem; color: var(--text-soft); }

/* ---------- Écrans moyens et téléphones ---------- */

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: 8px; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 64px 80px; gap: 56px; }
  .hero__demo { min-height: 540px; max-width: 520px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .feature { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; }
  .feature--flip .feature__text { order: 0; }
  .privacy__facts { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .section, .cta { padding-block: 72px; }
  .hero__inner { padding-block: 48px 64px; }
  .lede { font-size: 1.125rem; }
  .hero__actions .btn { width: 100%; }
  .hero__demo { min-height: 500px; }
  .phone { transform: scale(0.86); transform-origin: top left; left: 0; }
  .sheet { width: 78%; bottom: 0; }
  .also__list { grid-template-columns: 1fr; }
  .plan-card { padding: 24px; }
  .flashcard__face { padding: 22px; font-size: 1.25rem; }
  .flashcard__back { font-size: 1.0625rem; }
  .seyes::before, .margin::before { left: 8px; }
  .hero h1 br { display: none; }
}
