/* FonKid — page de présentation */
:root {
  --bg: #FBF6EE;
  --bg-alt: #F4ECDF;
  --card: #FFFFFF;
  --ink: #1F2430;
  --muted: #5B6271;
  --line: #E9DDCB;
  --red: #E5483B;
  --red-dark: #C33A2F;
  --green: #2F8A68;
  --yellow: #F4B731;
  --blue: #4AA3DF;
  --navy: #1F3B6E;
  --radius: 22px;
  --shadow: 0 12px 34px rgba(31, 36, 48, .07);
  --font-title: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 900; }
h1 em, h2 em { font-style: normal; color: var(--red); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 850; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: #3A4152; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.kicker { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--red); margin-bottom: .6em; }
.wrap { width: min(1140px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(860px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--red); color: #fff; border: 0; border-radius: 999px;
  padding: .95em 1.6em; font: 800 1.02rem/1 var(--font-title); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px rgba(229, 72, 59, .28); }
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: .7em 1.15em; font-size: .92rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; padding: 1.1em; font-size: 1.1rem; }
.btn-wa { background: #25A55F; box-shadow: 0 8px 20px rgba(37, 165, 95, .25); }
.btn-wa:hover { background: #1E8A4F; }
.link { color: var(--red); font-weight: 700; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 246, 238, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(233, 221, 203, .7); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 900 1.45rem/1 var(--font-title); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--red); position: relative; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.logo-dot::after { content: ""; position: absolute; left: 6px; top: 7px; width: 14px; height: 6px; border-radius: 6px; background: #fff; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 650; color: #3A4152; font-size: .95rem; }
.nav-links a:hover { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; background: #fff; border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.lang button { border: 0; background: transparent; font: 800 .78rem/1 var(--font-title); padding: .55em .7em; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 54px 0 70px; background: radial-gradient(52% 64% at 78% 42%, #FFE6D2 0%, rgba(251,246,238,0) 70%); }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; grid-template-areas: "copy phone" "actions picker"; column-gap: 40px; row-gap: 0; }
.hero-copy { grid-area: copy; align-self: end; padding-bottom: 6px; }
.hero-actions { grid-area: actions; align-self: start; }
.hero .phone-stage { grid-area: phone; justify-self: center; align-self: end; }
.hero .picker { grid-area: picker; justify-self: center; align-self: start; scroll-margin-top: 90px; }
.badge { display: inline-block; background: #fff; border-radius: 999px; padding: .45em 1em; font: 800 .82rem/1 var(--font-title); color: var(--red); box-shadow: inset 0 0 0 1.5px #F4C8C2; margin-bottom: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.phone-stage { width: min(520px, 100%); aspect-ratio: 420 / 380; }
.phone-stage svg { width: 100%; height: auto; display: block; }
.picker { width: min(520px, 100%); background: #fff; border-radius: var(--radius); padding: 16px 18px 12px; box-shadow: var(--shadow); margin-top: 6px; }
.picker-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.picker-head strong { font: 850 1.1rem/1.2 var(--font-title); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .12s ease; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatch.sw-perso::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 900 1rem/1 var(--font-title); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.picker-caption { margin: 10px 0 2px; font-size: .92rem; color: #3A4152; min-height: 1.5em; }
.picker-caption b { font-family: var(--font-title); }

/* Animation sonnerie */
.fk-handset { transform-box: fill-box; transform-origin: 50% 100%; }
.fk-waves { opacity: 0; }
.fk-ringing .fk-handset { animation: ring 4.2s ease-in-out infinite; }
.fk-ringing .fk-waves { animation: waves 4.2s ease-in-out infinite; }
@keyframes ring {
  0%, 62%, 100% { transform: translateY(0) rotate(0); }
  66% { transform: translateY(-7px) rotate(-3deg); }
  70% { transform: translateY(-7px) rotate(3deg); }
  74% { transform: translateY(-7px) rotate(-3deg); }
  78% { transform: translateY(-7px) rotate(3deg); }
  82% { transform: translateY(0) rotate(0); }
}
@keyframes waves { 0%, 62%, 84%, 100% { opacity: 0; } 66%, 80% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fk-ringing .fk-handset, .fk-ringing .fk-waves { animation: none; }
  .btn, .swatch { transition: none; }
}

/* Sections */
.section { padding: 84px 0; }
.alt { background: var(--bg-alt); }
.band { padding: 70px 0; background: var(--ink); color: #fff; }
.band .lead { color: #D6D9E0; }
.band h2 { color: #fff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px 26px 18px; box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; font: 900 1.2rem/1 var(--font-title); margin-bottom: 14px; }
.step:nth-child(2) .step-n { background: var(--blue); }
.step:nth-child(3) .step-n { background: var(--green); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 22px 20px 10px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.08rem; margin-top: 10px; }
.feature p { font-size: .95rem; color: var(--muted); }
.ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #FDE6E2; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(4n+2) .ico { background: #E2F0FA; } .feature:nth-child(4n+2) .ico svg { stroke: var(--blue); }
.feature:nth-child(4n+3) .ico { background: #E2F2EA; } .feature:nth-child(4n+3) .ico svg { stroke: var(--green); }
.feature:nth-child(4n+4) .ico { background: #FDF0D4; } .feature:nth-child(4n+4) .ico svg { stroke: #C98F12; }

.plus-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; margin-top: 34px; }
.plus-card { background: var(--card); border-radius: 26px; padding: 26px 26px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plus-card p { color: #3A4152; }
.plus-ico { width: 64px; height: 64px; margin-bottom: 14px; }
.plus-ico svg { width: 64px; height: 64px; }
.mini-lineup { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: -6px -6px 10px; }
.mini-lineup svg { width: 100%; height: auto; }
.tag { align-self: flex-start; margin-top: auto; background: #FDE6E2; color: var(--red-dark); border-radius: 999px; padding: .45em .95em; font: 800 .85rem/1.2 var(--font-title); }
.tag-green { background: #E2F2EA; color: #1E6A4E; }
.tag-blue { background: #E2F0FA; color: #1F5E8C; margin-bottom: 10px; }
.plus-penpal .small { margin: 0; }

.vintage { background: #2B2418; color: #F7F1E3; padding: 70px 0; }
.vintage-in { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: center; }
.vintage h2 { color: #F7F1E3; }
.vintage .lead { color: #E3D8BF; }
.vintage .kicker { color: #E9C77B; }
.vintage-phone svg { width: 100%; height: auto; }

.cmp { margin-top: 30px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: center; border-top: 1px solid #F1E8DA; }
.cmp-row > span { padding: 14px 14px; font-size: .95rem; }
.cmp-head { border-top: 0; background: #F8F2E8; font: 800 .95rem/1.2 var(--font-title); }
.cmp-row [role="rowheader"] { font-weight: 700; }
.cmp-us { background: #FFF1EE; }
.cmp-head .cmp-us { color: var(--red); }
.bad::before, .mid::before, .good::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.bad::before { background: #E5483B; } .mid::before { background: #F4B731; } .good::before { background: #2F8A68; }

.prices { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 28px 30px 12px; margin-top: 30px; }
.price-main { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px dashed var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.price-main span { font: 900 1.4rem/1 var(--font-title); }
.price-main strong { font: 900 2.1rem/1 var(--font-title); color: var(--red); }
.price-list { list-style: none; padding: 0; margin: 0 0 14px; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #F1E8DA; }
.price-list li:last-child { border-bottom: 0; }
.price-list strong { font-family: var(--font-title); white-space: nowrap; }
.ok { color: var(--green); }

/* Formulaire */
.reserve { background: linear-gradient(180deg, var(--bg) 0%, #FFE9DB 100%); }
.card { background: var(--card); border-radius: 28px; box-shadow: 0 18px 50px rgba(31,36,48,.10); }
.form-card { padding: 38px 40px 34px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 22px 0 6px; }
.field { display: block; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; padding: 0; }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; font: 500 1rem/1.4 var(--font); color: var(--ink); background: #FFFDF9; border: 1.5px solid var(--line); border-radius: 14px; padding: .78em .9em; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(74,163,223,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: .55em 1em; border-radius: 999px; background: #F8F2E8; border: 1.5px solid var(--line); font-weight: 650; font-size: .93rem; transition: background .12s, border-color .12s, color .12s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.chips-sm .chip span { padding: .4em .85em; font-size: .88rem; }
.yn-list { display: grid; gap: 10px; }
.yn { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #FFFAF3; border: 1px solid #F1E8DA; border-radius: 14px; padding: 10px 12px; }
.yn > span { font-size: .95rem; }
.yn .chips { flex-wrap: nowrap; }
.style-pick { display: flex; align-items: center; gap: 10px; }
.style-dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: #3A4152; margin: 6px 0 16px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red-dark); font-weight: 700; min-height: 1.2em; margin: 0 0 10px; }
.success-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.check { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font: 900 1.5rem/1 var(--font-title); }
.row-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.center-btns { justify-content: center; margin-top: 8px; }
.thanks-phone { width: 220px; margin: 0 auto 6px; }
.thanks-phone svg { width: 100%; height: auto; }

/* FAQ */
.faq { margin-top: 26px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font: 800 1.05rem/1.35 var(--font-title); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #3A4152; padding-bottom: 6px; }

.footer { background: var(--ink); color: #D6D9E0; padding: 40px 0 34px; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer p { margin: 0 0 4px; }
.legal { display: grid; grid-template-columns: 1fr 1.7fr; gap: 18px 44px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; color: #AEB4C0; scroll-margin-top: 80px; }
.legal h2 { font: 800 .95rem/1.3 var(--font-title); color: #fff; letter-spacing: 0; margin: 0 0 8px; }
.footer .legal p { margin: 0 0 8px; }
.legal a { color: #fff; }
.consent a { color: var(--red); }

/* Bouton collant (mobile) */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251,246,238,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 -6px 20px rgba(31,36,48,.08);
    transform: translateY(110%); transition: transform .25s ease; }
  .sticky-cta .btn { display: block; width: 100%; text-align: center; }
  .sticky-cta.on { transform: none; }
  .footer { padding-bottom: 100px; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; grid-template-areas: "copy" "phone" "picker" "actions"; row-gap: 10px; }
  .hero { padding-top: 28px; padding-bottom: 54px; }
  .hero-copy, .hero-actions { text-align: center; }
  .hero .phone-stage { width: min(440px, 100%); margin: -56px 0 -6px; }
  .cta-row { margin-top: 18px; }
  .cta-row { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plus-grid { grid-template-columns: 1fr; }
  .vintage-in { grid-template-columns: 1fr; text-align: center; }
  .vintage-phone { width: min(360px, 100%); margin: 0 auto; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 2.05rem; }
  .hero .lead { font-size: 1.05rem; }
  .badge { margin-bottom: 12px; }
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px 24px; }
  .cmp-row { grid-template-columns: 1.15fr 1fr 1fr 1fr; }
  .cmp-row > span { padding: 11px 8px; font-size: .8rem; }
  .bad::before, .mid::before, .good::before { display: block; margin: 0 0 4px; }
  .yn { flex-direction: column; align-items: flex-start; }
  .swatch { width: 34px; height: 34px; }
  .nav-right .btn-sm { display: none; }
  .price-main strong { font-size: 1.7rem; }
  .legal { grid-template-columns: 1fr; }
}
