/* LearnFrenchShortcut — mobile-first */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dmsans-latin-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1E2A44;
  --terra: #D96F4A;
  --cream: #FBF5EC;
  --blush: #F5CDBD;
  --sage: #7FA383;
  --butter: #F3D27A;
  --muted: #5B6478;
  --white: #FFFFFF;

  --line: 1.5px solid var(--ink);
  --radius: 20px;
  --radius-lg: 28px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1080px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }

p { margin: 0; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: var(--butter); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--butter);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  border: var(--line);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 6px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark em { font-weight: 400; font-style: italic; }
.on-dark .wordmark { color: var(--cream); }
.on-dark .wordmark em { color: var(--blush); }

/* ---------- Avatar ---------- */
.avatar {
  display: block;
  border-radius: 50%;
  flex: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: var(--line);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 11px var(--terra);
  object-fit: cover;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--blush);
  color: var(--blush);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge--ink { border-color: var(--ink); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding-bottom: 56px;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 36px;
  padding-top: 32px;
}
.hero-intro { position: relative; min-width: 0; }
.hero .avatar { width: 112px; height: 112px; margin: 11px 0 26px 11px; }
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.25rem);
  margin-top: 18px;
  color: var(--cream);
}
.hero h1 em { color: var(--blush); }
.hero-sub {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--cream);
  opacity: 0.92;
  max-width: 34ch;
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.hero .byline .avatar { width: 56px; height: 56px; margin: 0; }
.byline .avatar img { box-shadow: 0 0 0 3px var(--terra); border-color: var(--cream); }
.byline p { display: grid; font-size: 0.95rem; line-height: 1.4; }
.byline strong { color: var(--cream); font-weight: 700; }
.byline span { color: var(--blush); }

/* ---------- Form card ---------- */
.form-card {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius-lg);
  min-width: 0;
  padding: 24px 16px 22px; /* Turnstile exige 300px de large minimum */
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}
.form-card h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.form-card h2 em { color: var(--terra); }
.form-card .lead { color: var(--muted); font-size: 0.975rem; margin-bottom: 20px; }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field label,
.label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.input,
.select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem; /* ≥16px : pas de zoom iOS */
  color: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: 14px;
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231E2A44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.input:focus-visible,
.select:focus-visible { outline-offset: 2px; }
.input[aria-invalid="true"],
.select[aria-invalid="true"] { border-color: var(--terra); box-shadow: 0 0 0 1.5px var(--terra); }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 4px 0 18px;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--terra);
  cursor: pointer;
}
.consent label { cursor: pointer; }
.consent a { font-weight: 700; }

/* Honeypot : hors écran, invisible pour les humains et les lecteurs d'écran */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-wrap { min-height: 65px; margin-bottom: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  border: var(--line);
  border-radius: 999px;
  background: var(--terra);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.1875rem; /* gros texte gras : contraste AA "large text" */
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn--block { width: 100%; }
.btn svg { width: 22px; height: 22px; }

.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blush);
  border: var(--line);
}
.privacy-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 30px; }
.section-head h2 { font-size: clamp(2rem, 8vw, 2.75rem); }
.section-head h2 em { color: var(--terra); }
.section-head p { margin-top: 10px; color: var(--muted); max-width: 52ch; }

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* What's inside */
.inside-head {
  display: grid;
  gap: 28px;
  margin-bottom: 30px;
}
.inside-head .section-head { margin-bottom: 0; }
.guide-cover { margin: 0; width: 200px; }
.guide-cover img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(30, 42, 68, 0.12), 0 22px 40px -18px rgba(30, 42, 68, 0.55);
}
.guide-facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.guide-facts li { display: flex; align-items: center; gap: 10px; }
.guide-facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
  flex: none;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card {
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
}
.card svg { width: 48px; height: 48px; margin-bottom: 12px; }
.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.card p { margin-top: 4px; font-size: 0.875rem; color: var(--muted); line-height: 1.4; }

/* About */
.about {
  background: var(--blush);
  border-top: var(--line);
  border-bottom: var(--line);
  position: relative;
  overflow: hidden;
}
.about-inner {
  display: grid;
  gap: 28px;
  justify-items: start;
}
.about .avatar { width: 148px; height: 148px; margin: 11px; }
.about h2 { font-size: clamp(2rem, 8vw, 2.75rem); }
.about h2 em { color: var(--ink); }
.about p { margin-top: 14px; font-size: 1.125rem; max-width: 46ch; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 48px 0 36px;
}
.footer .wordmark { font-size: 1.375rem; }
.socials {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.socials a:hover { background: rgba(251, 245, 236, 0.1); }
.socials svg { width: 20px; height: 20px; }
.socials--light a { color: var(--ink); background: var(--white); }
.socials--light a:hover { background: var(--blush); }

.footer-legal {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(251, 245, 236, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.9rem;
}
.footer-legal a { min-height: 32px; display: inline-flex; align-items: center; }
.footer-legal p { width: 100%; opacity: 0.85; margin-top: 6px; }

/* ---------- Thank-you page ---------- */
.thanks {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.thanks .hero { flex: 1; padding-bottom: 64px; }
.thanks-body {
  position: relative;
  text-align: center;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.thanks-body .avatar { width: 104px; height: 104px; margin: 11px 11px 28px; }
.thanks-body h1 { font-size: clamp(3rem, 15vw, 5rem); margin: 0; }
.thanks-body h1 em { color: var(--blush); }
.thanks-body .hero-sub { margin: 12px auto 0; font-size: 1.375rem; font-family: var(--serif); }
.download {
  margin-top: 34px;
  width: 100%;
  max-width: 420px;
  min-height: 64px;
  font-size: 1.25rem;
  box-shadow: 4px 4px 0 var(--cream);
  border-color: var(--cream);
}
.download:hover { box-shadow: 5px 5px 0 var(--cream); }
.download:active { box-shadow: 1px 1px 0 var(--cream); }
.inbox-note { margin: 20px auto 0; max-width: 440px; font-size: 1rem; line-height: 1.5; opacity: 0.9; }
.download-meta { margin-top: 12px; font-size: 0.9rem; opacity: 0.85; }
.thanks-follow {
  margin-top: 48px;
  padding: 24px 20px;
  width: 100%;
  max-width: 520px;
  background: var(--cream);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius-lg);
}
.thanks-follow p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.thanks-follow .socials { justify-content: center; }

/* ---------- Legal pages ---------- */
.legal-header {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding-bottom: 44px;
}
.legal-header h1 { margin-top: 28px; font-size: clamp(2.2rem, 9vw, 3.25rem); }
.legal-header h1 em { color: var(--blush); }
.legal-header p { margin-top: 10px; opacity: 0.85; }

.legal {
  max-width: 760px;
  padding-top: 44px;
  padding-bottom: 64px;
}
.legal h2 {
  font-size: 1.5rem;
  margin: 38px 0 10px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal address { font-style: normal; }
.legal-box {
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 12px;
}

/* Placeholder à remplacer (très visible exprès) */
.placeholder {
  background: var(--butter);
  border: 1.5px dashed var(--ink);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: 64px; }
.notfound h1 { font-size: clamp(3rem, 15vw, 5rem); }
.notfound p { margin: 16px auto 30px; max-width: 36ch; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card { padding: 22px 20px 20px; }
  .form-card { padding: 32px 30px 28px; }
}

@media (min-width: 920px) {
  .hero { padding-bottom: 88px; }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
    padding-top: 48px;
  }
  .hero .avatar { width: 132px; height: 132px; }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .section { padding: 96px 0; }
  .about-inner { grid-template-columns: auto 1fr; align-items: center; gap: 56px; }
  .inside-head { grid-template-columns: auto 1fr; align-items: center; gap: 56px; margin-bottom: 40px; }
  .guide-cover { width: 260px; }
  .about .avatar { width: 200px; height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
