/* www.coachou.fr — colours of the mascot (design/brand), same palette as the app (app/lib/core/theme.dart). */
@font-face {
  font-family: 'Lexend';
  src: url('/fonts/Lexend-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Playwrite FR Moderne';
  src: url('/fonts/PlaywriteFRModerne-Variable.ttf') format('truetype');
  font-weight: 100 400;
  font-display: swap;
}

:root {
  --paper: #F8F7FF;
  --tint: #F0ECFF;
  --card: #FFFFFF;
  --text: #1F1A3D;
  --muted: #5F5880;
  --ink: #5420D8;
  --ink-strong: #3B12A8;
  --ink-soft: #ECE7FD;
  --rule: #E4DEFA;
  --orange: #F88605;
  --orange-text: #B54A00;
  --yellow: #FFD23F;
  --success: #1D7F46;
  --danger: #C42F47;
  --on-ink: #FFFFFF;
  --shadow: 0 10px 30px rgba(59, 18, 168, 0.10);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17122E;
    --tint: #1E1840;
    --card: #211A40;
    --text: #EEEBFA;
    --muted: #ADA6C8;
    --ink: #C3B2FF;
    --ink-strong: #DCD1FF;
    --ink-soft: #2A2250;
    --rule: rgba(255, 255, 255, 0.10);
    --orange-text: #FFA94D;
    --success: #72D69C;
    --danger: #FF8F9E;
    --on-ink: #17122E;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 'Lexend', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--on-ink); padding: 8px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

.wordmark { font-family: 'Playwrite FR Moderne', cursive; color: var(--ink); }

/* Header -------------------------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand .wordmark { font-size: 1.5rem; line-height: 2; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.button) { color: var(--text); text-decoration: none; font-weight: 500; }
.top nav a:not(.button):hover { color: var(--ink); }
@media (max-width: 760px) { .top nav a:not(.button) { display: none; } }

/* Buttons ------------------------------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 14px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--on-ink);
  font: 500 1rem 'Lexend', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { background: var(--ink-strong); border-color: var(--ink-strong); }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: var(--ink-soft); color: var(--ink); border-color: var(--ink); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }

/* Hero ---------------------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--ink) 16%, transparent), transparent 55%),
    radial-gradient(circle at 15% 90%, color-mix(in srgb, var(--yellow) 18%, transparent), transparent 45%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px;
  padding-block: clamp(32px, 7vw, 88px);
}
.eyebrow { color: var(--orange-text); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.6em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; }
h1 span { display: block; color: var(--ink); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.note { color: var(--muted); font-size: 0.95rem; }
.hero-art img {
  width: min(520px, 100%); margin-inline: auto;
  border-radius: 32px; box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(320px, 80%); }
}

/* Sections ------------------------------------------------------------------------------------ */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-tinted { background: var(--tint); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.step-number {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--yellow); color: #1F1A3D; font-weight: 700; font-size: 1.2rem;
}
.steps p { color: var(--muted); margin: 0; }

.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards li { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; border-top: 4px solid var(--orange); }
.cards p { color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
}

.confiance { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li {
  position: relative; padding: 16px 18px 16px 56px; background: var(--card);
  border: 1px solid var(--rule); border-radius: 16px; color: var(--muted);
}
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before {
  content: ''; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@media (max-width: 860px) { .confiance { grid-template-columns: 1fr; } }

/* Invitation and contact form ----------------------------------------------------------------- */
.invitation { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.invitation-text img { border-radius: 50%; margin-bottom: 16px; }
.invitation-text p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 860px) { .invitation { grid-template-columns: 1fr; } }

.contact { background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--rule);
  background: var(--paper); color: var(--text); font: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--ink-soft); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 120px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { color: var(--muted); font-size: 0.9rem; }
.status { margin: 14px 0 0; min-height: 1.6em; font-weight: 500; }
.status.ok { color: var(--success); }
.status.error { color: var(--danger); }

/* Legal notice ------------------------------------------------------------------------------ */
.legal { max-width: 46em; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p { color: var(--muted); }

/* Footer -------------------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule); padding-block: 28px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer p { margin: 0; }
.footer .wordmark { font-size: 1.2rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
