/* =========================================================================
   Kiddiflow — Landing (front-page) styles
   Chargé uniquement sur la page d'accueil (cf. functions.php).
   S'appuie sur les tokens --kf-* définis dans style.css (design system).
   Tout ce qui est ici = composition spécifique one-page (hero, grids,
   steps, témoignages, FAQ, section beta). Aucune nouvelle couleur.
   ========================================================================= */

/* ───── Utilitaires de section ───── */
.kf-eyebrow {
    display: inline-block;
    font-family: var(--kf-font-base);
    font-size: var(--kf-text-label-lg);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--kf-gold-dark);
    margin: 0 0 var(--kf-space-base);
}
.kf-section--alt { background: var(--kf-bg-secondary); }
.kf-section--accent { background: rgba(127, 201, 216, 0.10); }
.kf-section-note {
    max-width: 640px;
    margin: var(--kf-space-2xl) auto 0;
    text-align: center;
    color: var(--kf-ink-soft);
    font-size: var(--kf-text-body-md);
}
.kf-section__head {
    max-width: 720px;
    margin: 0 auto var(--kf-space-3xl);
    text-align: center;
}
.kf-section__head p {
    color: var(--kf-ink-soft);
    font-size: var(--kf-text-headline-md);
    line-height: var(--kf-leading-normal);
    margin: var(--kf-space-base) 0 0;
}
.kf-lead {
    font-size: var(--kf-text-headline-md);
    color: var(--kf-ink-soft);
    line-height: var(--kf-leading-normal);
}

/* =========================================================================
   1. Hero
   ========================================================================= */
.kf-hero {
    padding-top: var(--kf-space-3xl);
    padding-bottom: var(--kf-space-3xl);
    background:
        radial-gradient(60% 80% at 85% 10%, rgba(127, 201, 216, 0.10), transparent 60%),
        radial-gradient(55% 70% at 10% 90%, rgba(232, 185, 72, 0.08), transparent 60%),
        var(--kf-bg-primary);
}
.kf-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--kf-space-3xl);
    align-items: center;
}
.kf-hero h1 {
    margin: 0 0 var(--kf-space-base);
}
.kf-hero__sub {
    font-size: var(--kf-text-headline-md);
    color: var(--kf-ink-soft);
    line-height: var(--kf-leading-normal);
    max-width: 34rem;
    margin: 0 0 var(--kf-space-2xl);
}
.kf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--kf-space-base);
    align-items: center;
}
.kf-hero__note {
    margin-top: var(--kf-space-base);
    font-size: var(--kf-text-body-sm);
    color: var(--kf-ink-subtle);
}

/* Aperçu app stylisé (CSS only, en attendant l'illustration héros Phase 5) */
.kf-appcard {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    background: var(--kf-bg-card);
    border-radius: var(--kf-radius-3xl);
    box-shadow: var(--kf-shadow-lg);
    padding: var(--kf-space-xl);
    overflow: hidden;
}
.kf-appcard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 96px;
    background: var(--kf-gradient-cta);
    opacity: 0.12;
}
.kf-appcard__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--kf-space-md);
    margin-bottom: var(--kf-space-lg);
}
.kf-appcard__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--kf-radius-full);
    background: var(--kf-gradient-achievement);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}
.kf-appcard__title {
    font-family: var(--kf-font-fun);
    font-weight: 800;
    font-size: var(--kf-text-title-lg);
    color: var(--kf-ink);
}
.kf-appcard__subtitle {
    font-size: var(--kf-text-body-sm);
    color: var(--kf-ink-soft);
}
.kf-step-row {
    display: flex;
    align-items: center;
    gap: var(--kf-space-md);
    padding: var(--kf-space-md);
    border-radius: var(--kf-radius-lg);
    background: var(--kf-bg-primary);
    margin-bottom: var(--kf-space-sm);
}
.kf-step-row__check {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: var(--kf-radius-full);
    display: grid;
    place-items: center;
    color: #fff;
}
.kf-step-row--done .kf-step-row__check { background: var(--kf-sage-dark); }
.kf-step-row--active .kf-step-row__check { background: var(--kf-brand-dark); }
.kf-step-row--pending .kf-step-row__check {
    background: transparent;
    border: 2px solid var(--kf-ink-subtle);
}
.kf-step-row__check svg { width: 15px; height: 15px; }
.kf-step-row__label { font-weight: 600; font-size: var(--kf-text-body-lg); }
.kf-step-row--done .kf-step-row__label { color: var(--kf-ink-soft); }
.kf-step-row__emoji { margin-left: auto; font-size: 1.25rem; }
.kf-appcard__tokens {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--kf-space-xs);
    margin-top: var(--kf-space-lg);
    font-weight: 800;
    font-family: var(--kf-font-fun);
    color: var(--kf-gold-dark);
}

/* =========================================================================
   2. Trust bar
   ========================================================================= */
.kf-trustbar {
    background: var(--kf-bg-secondary);
    padding: var(--kf-space-xl) 0;
    text-align: center;
}
.kf-trustbar p {
    margin: 0;
    color: var(--kf-ink-soft);
    font-weight: 600;
    font-size: var(--kf-text-title-lg);
}

/* =========================================================================
   3. Problème (empathie) — checklist
   ========================================================================= */
.kf-checklist {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--kf-space-base);
}
.kf-checklist li {
    display: flex;
    align-items: flex-start;
    gap: var(--kf-space-md);
    font-size: var(--kf-text-headline-md);
    line-height: var(--kf-leading-normal);
    color: var(--kf-ink);
}
.kf-checklist svg {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: 3px;
    color: var(--kf-sage-dark);
}

/* =========================================================================
   4. Split (solution)
   ========================================================================= */
.kf-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--kf-space-3xl);
    align-items: center;
}
.kf-split__media {
    background: var(--kf-gradient-achievement);
    border-radius: var(--kf-radius-3xl);
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: var(--kf-space-2xl);
    box-shadow: var(--kf-shadow-md);
}
.kf-split__media img { max-width: 60%; height: auto; }

/* =========================================================================
   5. Grilles de cards (features)
   ========================================================================= */
.kf-grid {
    display: grid;
    gap: var(--kf-space-xl);
    grid-template-columns: 1fr;
}
.kf-feature__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--kf-radius-lg);
    display: grid;
    place-items: center;
    margin-bottom: var(--kf-space-base);
    color: #fff;
}
.kf-feature__icon svg { width: 28px; height: 28px; }
.kf-feature__icon--brand  { background: var(--kf-brand-dark); }
.kf-feature__icon--gold   { background: var(--kf-gold-dark); }
.kf-feature__icon--accent { background: var(--kf-accent-dark); }
.kf-feature__icon--sage   { background: var(--kf-sage-dark); }
.kf-feature h3 { margin: 0 0 var(--kf-space-sm); font-size: var(--kf-text-headline-md); }
.kf-feature p { margin: 0; color: var(--kf-ink-soft); line-height: var(--kf-leading-normal); }
.kf-card--interactive { transition: transform var(--kf-duration-base) var(--kf-ease-out), box-shadow var(--kf-duration-base) var(--kf-ease-out); }
.kf-card--interactive:hover { transform: translateY(-2px); box-shadow: var(--kf-shadow-lg); }

/* =========================================================================
   6. Étapes (comment ça marche)
   ========================================================================= */
.kf-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--kf-space-2xl);
}
.kf-step__num {
    font-family: var(--kf-font-fun);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--kf-gold);
    margin-bottom: var(--kf-space-sm);
}
.kf-step h3 { margin: 0 0 var(--kf-space-sm); font-size: var(--kf-text-headline-md); }
.kf-step p { margin: 0; color: var(--kf-ink-soft); line-height: var(--kf-leading-normal); }

/* =========================================================================
   7. Témoignages
   ========================================================================= */
.kf-quote {
    position: relative;
    padding-top: var(--kf-space-2xl);
}
.kf-quote::before {
    content: "\201C";
    position: absolute;
    top: -0.25rem;
    left: 0;
    font-family: var(--kf-font-fun);
    font-size: 4rem;
    line-height: 1;
    color: var(--kf-brand-dark);
}
.kf-quote:nth-child(3n+2)::before { color: var(--kf-accent-dark); }
.kf-quote:nth-child(3n)::before   { color: var(--kf-violet-dark); }
.kf-quote blockquote {
    margin: 0 0 var(--kf-space-lg);
    font-size: var(--kf-text-title-lg);
    line-height: var(--kf-leading-normal);
    color: var(--kf-ink);
}
.kf-quote figcaption {
    display: flex;
    align-items: center;
    gap: var(--kf-space-md);
    font-size: var(--kf-text-body-md);
    color: var(--kf-ink-soft);
}
.kf-quote__avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--kf-radius-full);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: var(--kf-brand-dark);
}
.kf-quote:nth-child(3n+2) .kf-quote__avatar { background: var(--kf-accent-dark); }
.kf-quote:nth-child(3n) .kf-quote__avatar   { background: var(--kf-violet-dark); }

/* =========================================================================
   8. Bandeau pros
   ========================================================================= */
.kf-pro-banner {
    background: var(--kf-accent-light);
    padding: var(--kf-space-2xl) 0;
}
.kf-pro-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--kf-space-md);
    text-align: center;
    color: var(--kf-ink);
    font-size: var(--kf-text-title-lg);
}

/* =========================================================================
   9. FAQ (accordéons natifs <details>)
   ========================================================================= */
.kf-faq {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: var(--kf-space-md);
}
.kf-faq details {
    background: var(--kf-bg-card);
    border-radius: var(--kf-radius-lg);
    box-shadow: var(--kf-shadow-sm);
    overflow: hidden;
}
.kf-faq summary {
    list-style: none;
    cursor: pointer;
    padding: var(--kf-space-lg) var(--kf-space-xl);
    font-weight: 700;
    font-size: var(--kf-text-title-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--kf-space-md);
}
.kf-faq summary::-webkit-details-marker { display: none; }
.kf-faq summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--kf-brand-dark);
    transition: transform var(--kf-duration-base) var(--kf-ease-out);
    line-height: 1;
}
.kf-faq details[open] summary::after { transform: rotate(45deg); }
.kf-faq details p {
    margin: 0;
    padding: 0 var(--kf-space-xl) var(--kf-space-lg);
    color: var(--kf-ink-soft);
    line-height: var(--kf-leading-normal);
}

/* =========================================================================
   10. Section beta (CTA final + formulaire)
   ========================================================================= */
.kf-beta {
    background: var(--kf-gradient-cta);
    color: var(--kf-ink-reverse);
    padding-top: var(--kf-space-5xl);
    padding-bottom: var(--kf-space-5xl);
}
.kf-beta__inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}
.kf-beta h2 { color: var(--kf-ink-reverse); margin: 0 0 var(--kf-space-base); }
.kf-beta__sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--kf-text-headline-md);
    line-height: var(--kf-leading-normal);
    margin: 0 0 var(--kf-space-2xl);
}
.kf-beta__formwrap {
    background: var(--kf-bg-card);
    border-radius: var(--kf-radius-2xl);
    padding: var(--kf-space-2xl);
    box-shadow: var(--kf-shadow-lg);
    text-align: left;
}
.kf-beta__note {
    margin-top: var(--kf-space-base);
    font-size: var(--kf-text-body-sm);
    color: rgba(255, 255, 255, 0.85);
}
.kf-beta__note a { color: #fff; }

/* Fallback natif si Fluent Forms pas encore configuré */
.kf-beta-fallback {
    text-align: center;
    color: var(--kf-ink);
}
.kf-beta-fallback p { color: var(--kf-ink-soft); margin: 0 0 var(--kf-space-lg); }

/* ── Override visuel Fluent Forms pour matcher le design system ── */
.kf-beta__formwrap .ff-el-input--label label,
.kf-beta__formwrap .ff_form_instance label {
    font-family: var(--kf-font-base);
    font-weight: 600;
    font-size: var(--kf-text-label-lg);
    color: var(--kf-ink);
}
.kf-beta__formwrap input[type="text"],
.kf-beta__formwrap input[type="email"],
.kf-beta__formwrap select,
.kf-beta__formwrap textarea {
    width: 100%;
    padding: 12px 16px !important;
    font-family: var(--kf-font-base) !important;
    font-size: var(--kf-text-body-lg) !important;
    color: var(--kf-ink) !important;
    background: var(--kf-bg-primary) !important;
    border: 2px solid rgba(31, 31, 40, 0.10) !important;
    border-radius: var(--kf-radius-lg) !important;
    box-shadow: none !important;
}
.kf-beta__formwrap input:focus,
.kf-beta__formwrap select:focus,
.kf-beta__formwrap textarea:focus {
    border-color: var(--kf-brand-dark) !important;
    outline: 3px solid rgba(212, 163, 115, 0.25) !important;
    outline-offset: 0 !important;
    background: var(--kf-bg-card) !important;
}
.kf-beta__formwrap .ff-btn-submit,
.kf-beta__formwrap button[type="submit"] {
    width: 100%;
    min-height: 52px;
    margin-top: var(--kf-space-sm);
    background: var(--kf-gradient-cta) !important;
    color: var(--kf-ink-reverse) !important;
    font-family: var(--kf-font-base) !important;
    font-weight: 800 !important;
    font-size: 1.0625rem !important;
    border: 0 !important;
    border-radius: var(--kf-radius-full) !important;
    box-shadow: var(--kf-shadow-cta) !important;
    cursor: pointer;
    transition: transform var(--kf-duration-fast) var(--kf-ease-out);
}
.kf-beta__formwrap .ff-btn-submit:hover { transform: translateY(-1px); }

/* =========================================================================
   Scroll reveal (respecte prefers-reduced-motion via .kf-reveal toggle JS)
   ========================================================================= */
.kf-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--kf-duration-slow) var(--kf-ease-out),
                transform var(--kf-duration-slow) var(--kf-ease-out);
}
.kf-reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   CTA sticky mobile
   ========================================================================= */
.kf-sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: var(--kf-space-md) var(--kf-space-base);
    background: rgba(247, 247, 245, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(120%);
    transition: transform var(--kf-duration-base) var(--kf-ease-out);
}
.kf-sticky-cta.is-visible { transform: none; }
.kf-sticky-cta .kf-btn { width: 100%; }

/* =========================================================================
   Responsive — mobile-first, on étend à partir de 768px / 1024px
   ========================================================================= */
@media (min-width: 768px) {
    .kf-hero { padding-top: var(--kf-space-5xl); padding-bottom: var(--kf-space-5xl); }
    .kf-hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--kf-space-4xl); }
    .kf-split { grid-template-columns: 1fr 1fr; }
    .kf-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .kf-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .kf-steps { grid-template-columns: repeat(3, 1fr); }
    .kf-testimonial-grid { grid-template-columns: repeat(3, 1fr); }
    .kf-sticky-cta { display: none; }
}
@media (min-width: 1024px) {
    .kf-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.kf-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--kf-space-2xl);
}

/* =========================================================================
   Mascotte (hero) + fan de screenshots (section solution)
   ========================================================================= */

/* Évite tout scroll horizontal créé par les rotations / décalages */
.kf-landing { overflow-x: clip; }

/* ───── Mascotte renard ───── */
.kf-hero__media { display: flex; justify-content: center; }
.kf-mascot {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: grid;
    place-items: center;
}
.kf-mascot::before {
    content: "";
    position: absolute;
    inset: 6%;
    border-radius: var(--kf-radius-full);
    background: radial-gradient(circle at 50% 45%,
        rgba(232, 185, 72, 0.22),
        rgba(212, 163, 115, 0.12) 45%,
        transparent 70%);
    z-index: 0;
}
.kf-mascot__img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-width: 360px;
    filter: drop-shadow(0 18px 24px rgba(31, 31, 40, 0.18));
    animation: kf-float 5s var(--kf-ease-in-out) infinite;
}
@keyframes kf-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-12px) rotate(1.5deg); }
}

/* ───── Fan de screenshots ───── */
.kf-split__media--plain {
    background: none;
    box-shadow: none;
    padding: 0;
    min-height: 0;
}
.kf-shots {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Le positionnement (rotation + décalage) est porté par la <figure> ;
   l'effet de survol (soulèvement) est porté par l'<img> → les deux
   transforms se composent et chaque téléphone réagit individuellement.
   L'ombre est un drop-shadow (épouse la forme du téléphone, pas une
   boîte rectangulaire). */
.kf-shots__phone {
    position: absolute;
    margin: 0;
    width: 112px;
}
.kf-shots__phone img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 16px rgba(31, 31, 40, 0.20));
    transition: transform var(--kf-duration-base) var(--kf-ease-out),
                filter var(--kf-duration-base) var(--kf-ease-out);
    will-change: transform;
}
.kf-shots__phone:nth-child(1) { transform: translateX(-88px) translateY(6px) rotate(-9deg);  z-index: 1; }
.kf-shots__phone:nth-child(2) { transform: translateX(-30px) translateY(-8px) rotate(-3deg); z-index: 2; }
.kf-shots__phone:nth-child(3) { transform: translateX(30px)  translateY(-8px) rotate(3deg);  z-index: 3; }
.kf-shots__phone:nth-child(4) { transform: translateX(88px)  translateY(6px) rotate(9deg);   z-index: 4; }

/* Survol : chaque téléphone se soulève et passe au premier plan */
.kf-shots__phone:hover { z-index: 10; }
.kf-shots__phone:hover img {
    transform: translateY(-16px) scale(1.05);
    filter: drop-shadow(0 22px 28px rgba(31, 31, 40, 0.28));
}

@media (min-width: 768px) {
    .kf-shots { height: 470px; }
    .kf-shots__phone { width: 178px; }
    .kf-shots__phone:nth-child(1) { transform: translateX(-150px) translateY(8px) rotate(-10deg); }
    .kf-shots__phone:nth-child(2) { transform: translateX(-52px) translateY(-10px) rotate(-3.5deg); }
    .kf-shots__phone:nth-child(3) { transform: translateX(52px)  translateY(-10px) rotate(3.5deg); }
    .kf-shots__phone:nth-child(4) { transform: translateX(150px) translateY(8px) rotate(10deg); }
}

@media (prefers-reduced-motion: reduce) {
    .kf-mascot__img { animation: none; }
    .kf-shots__phone img { transition: none; }
}

/* =========================================================================
   Modale d'inscription bêta
   ========================================================================= */
.kf-modal[hidden] { display: none; }
.kf-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--kf-space-base);
}
.kf-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 31, 40, 0.55);
    backdrop-filter: blur(3px);
    animation: kf-fade-in var(--kf-duration-base) var(--kf-ease-out);
}
.kf-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 2 * var(--kf-space-base));
    overflow-y: auto;
    background: var(--kf-bg-card);
    border-radius: var(--kf-radius-2xl);
    box-shadow: var(--kf-shadow-lg);
    padding: var(--kf-space-2xl);
    animation: kf-modal-in var(--kf-duration-base) var(--kf-ease-out);
}
@keyframes kf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes kf-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
/* Bouton fermer : icône discrète (override des styles bouton Kadence) */
.kf-modal__close {
    position: absolute;
    top: var(--kf-space-md);
    right: var(--kf-space-md);
    width: 38px;
    height: 38px;
    min-height: 0 !important;
    padding: 0 !important;
    display: grid;
    place-items: center;
    border: 0 !important;
    border-radius: var(--kf-radius-full) !important;
    background: transparent !important;
    color: var(--kf-ink-soft) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background var(--kf-duration-fast) var(--kf-ease-out),
                color var(--kf-duration-fast) var(--kf-ease-out);
}
.kf-modal__close:hover {
    background: rgba(31, 31, 40, 0.06) !important;
    color: var(--kf-ink) !important;
    transform: none !important;
}

/* Fonts de la marque forcées dans la modale (Kadence applique sinon les
   siennes aux champs et boutons) */
.kf-modal,
.kf-modal input,
.kf-modal select,
.kf-modal button,
.kf-modal label {
    font-family: var(--kf-font-base) !important;
}
.kf-modal h2.kf-fun { font-family: var(--kf-font-fun) !important; }

.kf-modal__dialog h2 {
    margin: 0 0 var(--kf-space-sm);
    font-size: var(--kf-text-display-sm);
    padding-right: var(--kf-space-2xl);
}
.kf-modal__sub { margin: 0 0 var(--kf-space-xl); color: var(--kf-ink-soft); }

/* ───── Champs de formulaire ───── */
.kf-beta-form { display: grid; gap: var(--kf-space-base); }
.kf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--kf-space-base);
}
.kf-field { display: grid; gap: var(--kf-space-xs); }
.kf-field label,
.kf-field__legend {
    font-weight: 600;
    font-size: var(--kf-text-label-lg);
    color: var(--kf-ink);
}
.kf-field input[type="text"],
.kf-field input[type="email"],
.kf-field input[type="number"],
.kf-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--kf-font-base);
    font-size: var(--kf-text-body-lg);
    color: var(--kf-ink);
    background: var(--kf-bg-primary);
    border: 2px solid rgba(31, 31, 40, 0.10);
    border-radius: var(--kf-radius-lg);
    transition: border-color var(--kf-duration-fast) var(--kf-ease-out);
}
.kf-field textarea { min-height: 140px; resize: vertical; }
.kf-field input:focus,
.kf-field textarea:focus {
    outline: none;
    border-color: var(--kf-brand-dark);
    background: var(--kf-bg-card);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.22);
}
.kf-field input:user-invalid { border-color: var(--kf-rose-dark); }

.kf-choice { display: grid; gap: var(--kf-space-sm); }
.kf-choice__item {
    display: flex;
    align-items: center;
    gap: var(--kf-space-sm);
    padding: 12px 16px;
    border: 2px solid rgba(31, 31, 40, 0.10);
    border-radius: var(--kf-radius-lg);
    cursor: pointer;
    font-weight: 500;
    transition: border-color var(--kf-duration-fast) var(--kf-ease-out),
                background var(--kf-duration-fast) var(--kf-ease-out);
}
.kf-choice__item:hover { border-color: var(--kf-brand-light); }
.kf-choice__item:has(input:checked) {
    border-color: var(--kf-brand-dark);
    background: rgba(212, 163, 115, 0.10);
}
.kf-choice__item input { accent-color: var(--kf-brand-dark); width: 18px; height: 18px; }

/* Honeypot : invisible aux humains */
.kf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Consentement RGPD : petite case + texte discret */
.kf-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--kf-space-sm);
    font-size: var(--kf-text-body-sm);
    line-height: var(--kf-leading-normal);
    color: var(--kf-ink-soft);
    cursor: pointer;
}
.kf-consent input {
    flex: 0 0 auto;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--kf-brand-dark);
}
.kf-consent a {
    color: var(--kf-brand-dark);
    text-underline-offset: 0.15em;
}

.kf-beta-form__error {
    margin: 0;
    padding: var(--kf-space-md);
    border-radius: var(--kf-radius-md);
    background: rgba(201, 120, 120, 0.12);
    color: var(--kf-rose-dark);
    font-weight: 600;
    font-size: var(--kf-text-body-md);
}
.kf-beta-form__submit {
    width: 100%;
    margin-top: var(--kf-space-xs);
}

/* ───── Spinner ───── */
.kf-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kf-spin 0.7s linear infinite;
}
@keyframes kf-spin { to { transform: rotate(360deg); } }
.kf-beta-form.is-sending .kf-beta-form__submit { pointer-events: none; opacity: 0.85; }
.kf-beta-form.is-sending .kf-spinner { display: inline-block; }
.kf-beta-form.is-sending .kf-btn__label { opacity: 0.85; }

/* ───── Panneau succès ───── */
.kf-modal__panel--success { text-align: center; }
.kf-success-icon {
    width: 76px;
    height: 76px;
    margin: var(--kf-space-sm) auto var(--kf-space-lg);
    border-radius: var(--kf-radius-full);
    display: grid;
    place-items: center;
    background: rgba(110, 149, 97, 0.16);
    color: var(--kf-sage-dark);
}
.kf-modal__panel--success p {
    color: var(--kf-ink-soft);
    line-height: var(--kf-leading-normal);
    margin: 0 0 var(--kf-space-xl);
}

/* Empêche le scroll de la page quand la modale est ouverte */
body.kf-modal-open { overflow: hidden; }

@media (max-width: 480px) {
    .kf-field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .kf-modal__overlay,
    .kf-modal__dialog { animation: none; }
    .kf-spinner { animation-duration: 1.2s; }
}

/* =========================================================================
   Formulaire de contact (page /contact) — réutilise .kf-field, .kf-consent,
   .kf-btn, .kf-spinner, .kf-beta-form (états is-sending) du formulaire bêta.
   ========================================================================= */
.kf-contact {
    max-width: 640px;
    margin: 0 auto;
}
.kf-contact-card {
    background: var(--kf-bg-card);
    border-radius: var(--kf-radius-2xl);
    box-shadow: var(--kf-shadow-md);
    padding: var(--kf-space-2xl);
}
.kf-contact-success {
    text-align: center;
    padding: var(--kf-space-lg) 0;
}
.kf-contact-success .kf-success-icon { margin-top: 0; }
.kf-contact-success p { color: var(--kf-ink-soft); line-height: var(--kf-leading-normal); }
