/* Kidivi - refonte "fraîche" avec Léo et sa grande sœur Mila (nov. 2026).
   Chargée après le <style> de chaque page : surcharge les couleurs, les
   rayons et ajoute les personnages. Aucun texte ici : la même feuille sert
   les 17 langues (propriétés logiques pour l'arabe en RTL). */

:root {
  --paper: #f3f9f6;
  --teal-soft: #e3f5f0;
  --mint: #cdefe7;
  --leaf: #3aa796;
  --coral: #ff8370;
  --coral-soft: #ffe2db;
  --sun-soft: #ffebc7;
  --blue: #2453d4;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  background:
    radial-gradient(60rem 30rem at 110% 30%, rgba(255, 183, 77, .10), transparent 60%),
    radial-gradient(50rem 30rem at -10% 55%, rgba(255, 131, 112, .08), transparent 60%),
    radial-gradient(60rem 40rem at 100% 85%, rgba(58, 167, 150, .10), transparent 60%),
    var(--paper);
}
h1, h2, h3, .brand, .price .amt { font-family: var(--round); }
h1, h2 { letter-spacing: -.025em; }

/* ---------- personnages (décoratifs) ---------- */
.kv-char { display: block; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 14px 18px rgba(16, 40, 36, .16)); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(150deg, #2f7e76 0%, #3aa796 55%, #46b39f 100%); position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 34rem; height: 34rem; inset-inline-end: -10rem; top: -14rem; background: rgba(255, 255, 255, .08); }
.hero::after { width: 22rem; height: 22rem; inset-inline-start: -8rem; bottom: -12rem; background: rgba(255, 183, 77, .16); }
.hero-in { position: relative; z-index: 1; }
.hero .chip { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); }
.phone-zone { padding-inline-start: 9.5rem; min-height: 30rem; align-items: center; }
.kv-hero-duo { position: absolute; inset-inline-start: -1.5rem; bottom: -1.2rem; width: 15.5rem; z-index: 2; animation: kv-bob 6s ease-in-out infinite; }
.kv-sun { position: absolute; inset-inline-start: 1rem; top: 1rem; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #ffb74d; box-shadow: 0 0 0 14px rgba(255, 183, 77, .22), 0 0 0 30px rgba(255, 183, 77, .1); z-index: 0; }
@keyframes kv-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@media (max-width: 860px) {
  .phone-zone { padding-inline-start: 0; padding-bottom: 10rem; min-height: 0; }
  .kv-hero-duo { inset-inline-start: calc(50% - 5.5rem); bottom: -2.2rem; width: 11rem; }
  .kv-sun { inset-inline-start: calc(50% - 10rem); top: -1rem; width: 3.4rem; height: 3.4rem; }
}

/* ---------- sections ---------- */
.sec { position: relative; }
.kicker { display: table; margin: 0 auto .7rem; background: var(--teal-soft); color: var(--teal-dark); padding: .3rem .85rem; border-radius: 999px; font-size: .74rem; }
.pain, .step, .price, details, .vcard { border-radius: 22px; box-shadow: 0 2px 0 rgba(29, 42, 40, .03), 0 10px 28px rgba(29, 42, 40, .07); }
.pain { border-top: 5px solid var(--coral); }
.pain:nth-child(2) { border-top-color: #ffb74d; }
.pain:nth-child(3) { border-top-color: var(--leaf); }
.step .num { background: linear-gradient(140deg, #ffb74d, #f59e2b); color: #3f2a00; border-radius: 12px; }
.price.hot { border-color: var(--leaf); }
.duo-note { background: linear-gradient(120deg, var(--teal-soft), var(--sun-soft)); }
.pill-lg { box-shadow: 0 8px 20px rgba(245, 158, 43, .35); transition: transform .2s ease, box-shadow .2s ease; }
a.pill-lg:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245, 158, 43, .45); }

/* Les deux enfants qui "se reconnaissent" dans les galères des parents. */
/* Bustes seulement : les visages, sans les jambes. */
.kv-cast { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; margin: 1.4rem auto -1.1rem; }
.kv-cast img { width: auto; height: 9.5rem; filter: none; }
@media (max-width: 520px) { .kv-cast img { height: 7.5rem; } }

/* Personnage en coin de section (grand écran uniquement). */
.kv-corner { position: absolute; top: 2.6rem; inset-inline-end: 1.5rem; height: 9.5rem; width: auto; }
@media (min-width: 981px) { .sec:has(.kv-corner) > h2, .sec:has(.kv-corner) > .sub { padding-inline: 9rem; } }
@media (max-width: 980px) { .kv-corner { display: none; } }

/* Personnage qui "passe la tête" à côté d'une maquette de fonctionnalité. */
.fx-visual { position: relative; }
.kv-peek { position: absolute; bottom: -1.2rem; height: 10.5rem; width: auto; z-index: 2; }
.kv-peek-end { inset-inline-end: -1.2rem; }
.kv-peek-start { inset-inline-start: -1.2rem; }
@media (max-width: 820px) { .kv-peek { height: 8rem; } .kv-peek-end { inset-inline-end: 0; } .kv-peek-start { inset-inline-start: 0; } }

/* High five au-dessus de la note "un abonnement pour les deux parents". */
.kv-duo-note { margin: 1.8rem auto -1.4rem; height: 11rem; width: auto; position: relative; z-index: 1; }

/* ---------- CTA final ---------- */
.ctaband { position: relative; overflow: visible; background: linear-gradient(150deg, #2f7e76 0%, #3aa796 100%); margin-top: 6rem; padding-inline: 13rem; }
.kv-cta { position: absolute; bottom: 0; height: 15rem; width: auto; }
.kv-cta-start { inset-inline-start: 1rem; }
.kv-cta-end { inset-inline-end: 1rem; }
@media (max-width: 900px) {
  .ctaband { padding: 9.5rem 1.4rem 2.6rem; margin-top: 4rem; }
  .kv-cta { height: 10rem; bottom: auto; top: -2.5rem; }
  .kv-cta-start { inset-inline-start: calc(50% - 8rem); }
  .kv-cta-end { inset-inline-end: calc(50% - 8rem); }
}

/* Barre de navigation : sur téléphone, logo + langue + bouton tenaient sur
   ~430 px et faisaient défiler la page horizontalement. */
@media (max-width: 720px) { .nav-links a:not(.pill) { display: none; } }
@media (max-width: 520px) {
  .nav-in { gap: .5rem; padding-inline: 1rem; }
  .nav-links { gap: .45rem; min-width: 0; }
  .lang-switch { max-width: 6.2rem; font-size: .8rem; padding: .28rem .35rem; }
  .nav-links .pill { padding: .42rem .75rem; font-size: .8rem; }
}
@media (max-width: 360px) { .brand { font-size: 0; gap: 0; } }

@media (prefers-reduced-motion: reduce) { .kv-hero-duo { animation: none; } }

/* ---------- Revue du 12/11/2026 ---------- */
/* Les sections perdaient leur marge laterale (« .sec » ecrasait le
   remplissage de « .wrap ») : les cartes touchaient les bords sous 1088 px. */
.sec.wrap { padding-inline: 1.5rem; }
@media (max-width: 520px) { .sec.wrap { padding-inline: 1.1rem; } }

/* Guides pratiques sur l'accueil (cartes generees par blog_src/build.py). */
.sec .lead { text-align: center; color: var(--mut); max-width: 40rem; margin: .7rem auto 0; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.guide-card { display: flex; flex-direction: column; background: var(--card, #fff); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 4px rgba(29,42,40,.07); transition: transform .15s ease, box-shadow .15s ease; }
.guide-card:hover, .guide-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,42,40,.12); }
.guide-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.guide-cat { margin: .9rem 1.1rem 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #24635D; }
.guide-tit { margin: .3rem 1.1rem 1.1rem; font-weight: 700; line-height: 1.35; }
.guide-all { text-align: center; margin-top: 1.4rem; font-weight: 700; }
.guide-all a { color: #24635D; }
.web-note { text-align: center; margin-top: 1.4rem; font-size: .92rem; color: var(--mut); }
.web-note a { color: #24635D; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .guide-card { transition: none; } }
