/* Tous à table ! — page de présentation (générée par outils/genere-site.mjs).
   Couleurs et polices de l'app (WebContent/css/app.css). */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ground: #0e3a2f;
  --ground-2: #0a2c23;
  --sky: #22604d;
  --cream: #fff6e9;
  --cream-2: #f6ead8;
  --ink: #1f2a24;
  --ink-soft: #5c6660;
  --on-ground: #f3f8f5;
  --on-ground-soft: #cfe3d8;
  --red: #c62e3a;
  --red-dark: #7a1a26;
  --gold: #e9b44c;
  --gold-light: #f6d58b;
  --green: #2e8b57;
  --title: "Fredoka", ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--on-ground);
  font: 500 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* clip (et non hidden) : coupe tout débordement horizontal sans créer de
   zone de défilement, y compris sur iPhone. */
html, body { overflow-x: clip; }

/* Fond : lumière du haut et flocons, fixés derrière le contenu. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90vmax 60vmax at 50% -20%, rgb(34 96 77 / 95%), transparent 65%),
    radial-gradient(50vmax 40vmax at 100% 100%, rgb(198 46 58 / 14%), transparent 65%),
    var(--ground);
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgb(255 255 255 / 35%) 1.2px, transparent 1.6px),
    radial-gradient(circle at 70% 60%, rgb(255 255 255 / 25%) 1px, transparent 1.4px),
    radial-gradient(circle at 45% 85%, rgb(255 255 255 / 30%) 1.4px, transparent 1.8px);
  background-size: 180px 180px, 240px 240px, 310px 310px;
}

a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

h1, h2, h3 { font-family: var(--title); font-weight: 700; margin: 0; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: 20px; }

/* ─── En-tête ─────────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  position: relative;
  z-index: 5;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-ground);
  text-decoration: none;
  font: 700 22px/1 var(--title);
}
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 16px rgb(0 0 0 / 30%); }

.langs { position: relative; }
.langs summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 15px/1 var(--body);
  color: var(--on-ground-soft);
  border: 1.5px solid rgb(255 255 255 / 18%);
  background: rgb(0 0 0 / 15%);
  border-radius: 999px;
  padding: 9px 15px;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.langs[open] summary, .langs summary:hover { color: #fff; border-color: rgb(255 255 255 / 35%); }
.langs ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 170px;
  background: var(--cream);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 40%);
}
.langs li a {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.langs li a:hover { background: var(--cream-2); }
.langs li a[aria-current] { color: var(--red); }

/* ─── Accroche ────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 70px;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding-top: 50px; padding-bottom: 96px; }
}
/* Une colonne de grille ne s'élargit jamais au-delà de l'écran. */
.hero > *, .feature > * { min-width: 0; }
.ribbon {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 18px;
  background: linear-gradient(180deg, #d63b47, var(--red));
  color: #fff;
  font: 700 15px/1.3 var(--body);
  border-radius: 6px;
  box-shadow: 0 6px 0 var(--red-dark), 0 14px 26px rgb(0 0 0 / 25%);
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 66px);
  line-height: 1.05;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 .gold { color: var(--gold); }
.hero p { margin: 0 0 30px; color: var(--on-ground-soft); max-width: 54ch; font-size: clamp(17px, 2vw, 19px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font: 600 18px/1.1 var(--title);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #3a2a10;
  box-shadow: 0 5px 0 #b98522, 0 12px 24px rgb(0 0 0 / 25%);
}
.btn-gold:hover { color: #3a2a10; }
.btn-line { border: 2px solid rgb(255 255 255 / 30%); color: #fff; }
.btn-line:hover { border-color: rgb(255 255 255 / 55%); }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font: 600 18px/1.1 var(--title);
}
.soon svg { width: 18px; height: 22px; fill: currentColor; }

/* Téléphones */
/* overflow: clip — les téléphones inclinés ne doivent jamais élargir la page
   (sur iPhone, un débordement fait glisser toute la page de côté). */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
  overflow: clip;
  overflow-clip-margin: 40px;
  padding: 10px 0 30px;
}
.phone {
  width: min(270px, 62vw);
  aspect-ratio: 1206 / 2622;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #2c3a35, #0b1512);
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 12%) inset, 0 40px 80px -20px rgb(0 0 0 / 60%);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}
.phones .phone + .phone {
  position: absolute;
  left: 50%;
  top: 46px;
  transform: translateX(-6%) rotate(7deg);
  width: min(230px, 52vw);
  z-index: -1;
  opacity: 0.95;
}
.phones .phone:first-child { transform: translateX(-24%) rotate(-4deg); }
.phones .mascot {
  position: absolute;
  width: 150px;
  left: -2%;
  bottom: -18px;
  z-index: 2;
  filter: drop-shadow(0 12px 18px rgb(0 0 0 / 35%));
}
@media (max-width: 520px) {
  .phones { min-height: 0; }
  .phones .phone:first-child { transform: translateX(-18%) rotate(-4deg); }
  .phones .mascot { width: 110px; left: 0; }
}

/* ─── Titres de section ───────────────────────────────── */
.section-title {
  text-align: center;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.1;
  margin: 0 auto 36px;
  max-width: 20ch;
  text-wrap: balance;
}
.block { padding-top: 70px; padding-bottom: 20px; }

/* ─── Comment ça marche ───────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border-radius: 26px;
  padding: 26px 24px 24px;
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 50%);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font: 700 22px/1 var(--title);
  box-shadow: 0 4px 0 var(--red-dark);
}
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* ─── Rangées image + texte ───────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  padding: 26px 0;
}
@media (min-width: 760px) {
  .feature { grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
  .feature.flip > .phone { order: 2; }
}
.feature > .phone { margin: 0 auto; width: min(260px, 66vw); }
.feature h3 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }
.feature .kicker {
  display: inline-block;
  margin-bottom: 10px;
  font: 800 13px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.feature p { margin: 0; color: var(--on-ground-soft); max-width: 50ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 38px; color: var(--on-ground-soft); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green) 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='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ─── Thèmes ──────────────────────────────────────────── */
.themes { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .themes { grid-template-columns: repeat(3, 1fr); } }
.theme {
  position: relative;
  min-height: 250px;
  padding: 24px 24px 26px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 55%), inset 0 1px 0 rgb(255 255 255 / 20%);
}
.theme .kicker {
  font: 800 12.5px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.theme h3 { font-size: 30px; line-height: 1.05; margin: 8px 0 10px; overflow-wrap: break-word; }
.theme p { margin: 0; font-size: 16px; line-height: 1.45; opacity: 0.95; }
/* La mascotte flotte : le texte l'habille au lieu de passer dessous, quelle
   que soit la longueur du nom du thème dans la langue. */
.theme img {
  float: right;
  width: 108px;
  margin: -8px -12px 4px 10px;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 30%));
}
/* Trois colonnes étroites (tablette, paysage) : la mascotte passe au-dessus,
   le titre garde toute la largeur. */
@media (min-width: 760px) and (max-width: 1000px) {
  .theme img { float: none; display: block; width: 86px; margin: -6px -6px 4px auto; }
  .theme h3 { font-size: 26px; }
}
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 48px;
  margin: 38px 0 12px;
}
.stat { text-align: center; }
.stat b { display: block; font: 700 clamp(40px, 5vw, 54px)/1 var(--title); color: var(--gold); }
.stat span { color: var(--on-ground-soft); font-weight: 700; font-size: 16px; }
.center-note { text-align: center; color: var(--on-ground-soft); max-width: 60ch; margin: 10px auto 0; }

/* ─── Simple et sans surprise ─────────────────────────── */
.perks { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .perks { grid-template-columns: 1fr 1fr; } }
.perks li {
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgb(255 255 255 / 6%);
  border: 1.5px solid rgb(255 255 255 / 10%);
  color: var(--on-ground-soft);
}
.perks ul { margin: 0; padding: 0; display: contents; }
.perks .ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgb(233 180 76 / 16%);
  font-size: 22px;
}

/* ─── Essai gratuit ───────────────────────────────────── */
.trial {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 30px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--gold);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 60%);
}
.trial h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; color: var(--red); }
.trial p { margin: 0 0 14px; color: var(--ink-soft); }
.trial ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.trial li {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--cream-2);
  font-weight: 700;
}
.trial .small { font-size: 15px; margin: 0; }

/* ─── Contact ─────────────────────────────────────────── */
.help-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(160deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 3%));
  border: 1.5px solid rgb(255 255 255 / 12%);
}
.help-band > div:first-child { flex: 1 1 320px; }
.help-band h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 6px; }
.help-band p { margin: 0; color: var(--on-ground-soft); }
/* Les boutons passent à la ligne plutôt que d'élargir la page. */
.help-band .actions { flex: 0 1 auto; min-width: 0; }
.btn { max-width: 100%; }

/* ─── Pied de page ────────────────────────────────────── */
.foot {
  margin-top: 70px;
  padding-top: 26px;
  padding-bottom: 40px;
  border-top: 1.5px solid rgb(255 255 255 / 12%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  font-size: 15px;
  color: var(--on-ground-soft);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: var(--on-ground-soft); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a[aria-current] { color: var(--gold-light); }

/* Paysage sur téléphone : moins de hauteur perdue. */
@media (orientation: landscape) and (max-height: 500px) {
  .top { padding-top: 10px; padding-bottom: 10px; }
  .hero { padding-top: 16px; padding-bottom: 50px; }
  .block { padding-top: 50px; }
}
