.kl-home-presentation {
    --tf-ink: #0f2230;
    --tf-dark: #34495e;
    --tf-accent: #1fb5ad;
    --tf-accent-2: #14d6c8;
    --tf-orange: #ff8a3d;
    --tf-violet: #7c5cff;
    --tf-sun: #ffc83d;
    --tf-border: rgba(52, 73, 94, .10);
    position: relative;
    overflow: hidden;
    color: var(--tf-dark);
    background: #fff;
}
.kl-home-presentation * { box-sizing: border-box; }
.kl-home-presentation h2, .kl-home-presentation h3, .kl-home-presentation h4 { font-weight: 800; letter-spacing: -.01em; }

/* ---------- Apparition au scroll ---------- */
.kl-hp-js .kl-hp-reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
}
.kl-hp-js .kl-hp-reveal.is-in { opacity: 1; transform: none; }

/* ====================================================
   1. HERO — fond sombre, blobs animés, effet verre
   ==================================================== */
.kl-hp-hero {
    position: relative;
    padding: 5rem 0 7.5rem;
    color: #fff;
    background:
            radial-gradient(circle at 15% 20%, rgba(31, 181, 173, .35), transparent 45%),
            radial-gradient(circle at 85% 75%, rgba(124, 92, 255, .30), transparent 45%),
            linear-gradient(135deg, #0b1b27 0%, #12344a 100%);
}
.kl-hp-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.kl-hp-blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: .55; }
.kl-hp-blob.b1 { width: 340px; height: 340px; background: #1fb5ad; top: -90px; left: -80px; animation: kl-hp-drift 14s ease-in-out infinite; }
.kl-hp-blob.b2 { width: 300px; height: 300px; background: #7c5cff; bottom: -110px; right: -60px; animation: kl-hp-drift 18s ease-in-out infinite reverse; }
.kl-hp-hero .container { position: relative; z-index: 2; }

.kl-hp-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem 1rem .4rem .8rem; border-radius: 50px;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #b9fff9; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.kl-hp-badge::before {
    content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3dffd0;
    box-shadow: 0 0 0 0 rgba(61, 255, 208, .7); animation: kl-hp-ping 2s infinite;
}
.kl-hp-title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; margin: 1.2rem 0 1.1rem; color: #fff !important; }
.kl-hp-title span {
    background: linear-gradient(90deg, #3dffd0, #ffc83d, #3dffd0); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: kl-hp-shine 6s linear infinite;
}
.kl-hp-lead { font-size: 1.08rem; line-height: 1.75; color: rgba(255, 255, 255, .80); max-width: 560px; }

.kl-hp-cta {
    position: relative; display: inline-flex; align-items: center; gap: .6rem;
    margin-top: 1rem; padding: .95rem 2rem; border-radius: 60px;
    background: linear-gradient(135deg, #1fb5ad, #14d6c8); color: #06222a !important;
    font-weight: 800; text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(20, 214, 200, .40);
    transition: transform .25s, box-shadow .25s;
}
.kl-hp-cta::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(20, 214, 200, .55); animation: kl-hp-ping 2.4s infinite;
}
.kl-hp-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 38px rgba(20, 214, 200, .55); }
.kl-hp-cta i { transition: transform .25s; }
.kl-hp-cta:hover i { transform: translateX(4px) scale(1.15); }

/* Illustration */
.kl-hp-illustration { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.kl-hp-taxi { animation: kl-hp-float 4.5s ease-in-out infinite; }
.kl-hp-wheel { transform-box: fill-box; transform-origin: center; animation: kl-hp-spin 1.4s linear infinite; }
.kl-hp-pin { animation: kl-hp-bounce 2.6s ease-in-out infinite; }
.kl-hp-route { stroke-dasharray: 8 10; animation: kl-hp-dash 1.2s linear infinite; }
.kl-hp-ring { transform-box: fill-box; transform-origin: center; animation: kl-hp-ring 2.6s ease-out infinite; }

/* ====================================================
   2. CHIFFRES CLÉS — cartes flottantes qui chevauchent
   ==================================================== */
.kl-hp-stats { position: relative; z-index: 3; margin-top: -4rem; padding-bottom: 1rem; }
.kl-hp-stat {
    position: relative; height: 100%; overflow: hidden; text-align: center;
    background: #fff; border-radius: 22px; padding: 1.8rem 1.2rem 1.5rem;
    box-shadow: 0 22px 50px rgba(15, 34, 48, .16);
    transition: transform .3s, box-shadow .3s;
}
.kl-hp-stat::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--g, linear-gradient(90deg, #1fb5ad, #14d6c8));
}
.kl-hp-stat:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(15, 34, 48, .22); }
.kl-hp-stat-value {
    font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; line-height: 1.1;
    background: var(--g, linear-gradient(90deg, #1fb5ad, #14d6c8));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.kl-hp-stat-label { margin-top: .45rem; font-weight: 600; color: var(--tf-dark); opacity: .85; }
.kl-hp-stat.s1 { --g: linear-gradient(90deg, #1fb5ad, #14d6c8); }
.kl-hp-stat.s2 { --g: linear-gradient(90deg, #ff8a3d, #ffc83d); }
.kl-hp-stat.s3 { --g: linear-gradient(90deg, #7c5cff, #c06bff); }

/* ====================================================
   3. COMMENT ÇA MARCHE — timeline minimaliste
   ==================================================== */
.kl-hp-steps-wrap { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, #fff 0%, #f4fbfb 100%); }
.kl-hp-heading { text-align: center; margin-bottom: 3rem; }
.kl-hp-heading h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; display: inline-block; position: relative; padding-bottom: .9rem; }
.kl-hp-heading h3::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 5px; border-radius: 5px;
    transform: translateX(-50%); background: linear-gradient(90deg, #1fb5ad, #7c5cff);
}
.kl-hp-timeline { position: relative; }
@media (min-width: 768px) {
    .kl-hp-timeline::before {
        content: ""; position: absolute; top: 31px; left: 16%; right: 16%; height: 3px; border-radius: 3px;
        background: repeating-linear-gradient(90deg, #1fb5ad 0 10px, transparent 10px 20px); opacity: .5;
    }
}
.kl-hp-step { position: relative; text-align: center; padding: 0 .75rem; height: 100%; }
.kl-hp-step-num {
    position: relative; z-index: 2; width: 64px; height: 64px; margin: 0 auto 1.3rem;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font-size: 1.5rem; font-weight: 900; color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 0 0 7px #fff, 0 12px 26px var(--sh);
    transition: transform .35s;
}
.kl-hp-step:hover .kl-hp-step-num { transform: rotate(-8deg) scale(1.12); }
.kl-hp-step-card {
    background: #fff; border-radius: 20px; padding: 1.4rem 1.3rem; height: calc(100% - 85px);
    border: 1px solid var(--tf-border); box-shadow: 0 8px 26px rgba(52, 73, 94, .07);
    transition: transform .3s, box-shadow .3s;
}
.kl-hp-step:hover .kl-hp-step-card { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(52, 73, 94, .13); }
.kl-hp-step-card h4 { color: var(--tf-ink); }
.kl-hp-step-card p { color: #5d6d7c; line-height: 1.65; }
.kl-hp-step.t1 { --c1: #1fb5ad; --c2: #14d6c8; --sh: rgba(31, 181, 173, .40); }
.kl-hp-step.t2 { --c1: #ff8a3d; --c2: #ffc83d; --sh: rgba(255, 138, 61, .40); }
.kl-hp-step.t3 { --c1: #7c5cff; --c2: #c06bff; --sh: rgba(124, 92, 255, .40); }

/* ====================================================
   4. ATOUTS — grille "bento" colorée, chaque carte différente
   ==================================================== */
.kl-hp-features-wrap { padding: 1.5rem 0 4.5rem; background: #f4fbfb; }
.kl-hp-feature {
    position: relative; overflow: hidden; height: 100%; border-radius: 26px; padding: 2rem 1.7rem;
    transition: transform .35s, box-shadow .35s;
}
.kl-hp-feature:hover { transform: translateY(-8px) rotate(-.4deg); }
.kl-hp-feature h4 { position: relative; z-index: 2; font-size: 1.2rem; }
.kl-hp-feature p { position: relative; z-index: 2; margin: 0; line-height: 1.65; }
.kl-hp-icon {
    position: relative; z-index: 2; width: 62px; height: 62px; border-radius: 18px; margin-bottom: 1.2rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    transition: transform .4s;
}
.kl-hp-feature:hover .kl-hp-icon { transform: rotate(-12deg) scale(1.12); }
.kl-hp-feature::after {
    content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
    right: -60px; bottom: -70px; opacity: .22; transition: transform .6s;
}
.kl-hp-feature:hover::after { transform: scale(1.5); }

.kl-hp-feature.f1 { background: linear-gradient(145deg, #1fb5ad, #0e7f8f); color: #fff; box-shadow: 0 18px 40px rgba(31, 181, 173, .35); }
.kl-hp-feature.f1 h4 { color: #fff; }
.kl-hp-feature.f1 p { color: rgba(255, 255, 255, .88); }
.kl-hp-feature.f1 .kl-hp-icon { background: rgba(255, 255, 255, .20); color: #fff; }
.kl-hp-feature.f1::after { background: #fff; }

.kl-hp-feature.f2 { background: #fff; border: 2px solid #ffe0c7; box-shadow: 0 18px 40px rgba(255, 138, 61, .15); }
.kl-hp-feature.f2 h4 { color: var(--tf-ink); }
.kl-hp-feature.f2 p { color: #5d6d7c; }
.kl-hp-feature.f2 .kl-hp-icon { background: linear-gradient(135deg, #ff8a3d, #ffc83d); color: #fff; box-shadow: 0 10px 22px rgba(255, 138, 61, .40); }
.kl-hp-feature.f2::after { background: #ff8a3d; }

.kl-hp-feature.f3 { background: linear-gradient(145deg, #2b1f6b, #7c5cff); color: #fff; box-shadow: 0 18px 40px rgba(124, 92, 255, .35); }
.kl-hp-feature.f3 h4 { color: #fff; }
.kl-hp-feature.f3 p { color: rgba(255, 255, 255, .85); }
.kl-hp-feature.f3 .kl-hp-icon { background: rgba(255, 255, 255, .16); color: #ffd66b; }
.kl-hp-feature.f3::after { background: #c06bff; }

/* ====================================================
   5. VILLES — bandeau sombre avec pastilles verre
   ==================================================== */
.kl-hp-cities-wrap { padding: 0 0 4.5rem; background: #f4fbfb; }
.kl-hp-cities {
    position: relative; overflow: hidden; border-radius: 28px; padding: 2.2rem 2rem; color: #fff;
    background: linear-gradient(120deg, #0b1b27, #16384a 60%, #1c4a5e);
    box-shadow: 0 24px 50px rgba(11, 27, 39, .30);
}
.kl-hp-cities::before {
    content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    top: -120px; right: -60px; background: #1fb5ad; filter: blur(70px); opacity: .45;
    animation: kl-hp-drift 12s ease-in-out infinite;
}
.kl-hp-cities strong { position: relative; display: block; margin-bottom: 1.1rem; font-size: 1.15rem; font-weight: 800; }
.kl-hp-cities-list { position: relative; display: flex; flex-wrap: wrap; gap: .6rem; }
.kl-hp-cities a {
    display: inline-flex; align-items: center; padding: .5rem 1.1rem; border-radius: 50px;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .20);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #d9fffb; font-weight: 600; font-size: .92rem; text-decoration: none !important;
    transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.kl-hp-cities a::before { content: "\f3c5"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: .5rem; font-size: .8rem; color: #3dffd0; transition: color .25s; }
.kl-hp-cities a:hover { transform: translateY(-3px); background: #3dffd0; color: #06222a; box-shadow: 0 10px 22px rgba(61, 255, 208, .35); }
.kl-hp-cities a:hover::before { color: #06222a; }

/* ---------- Keyframes ---------- */
@keyframes kl-hp-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.15); } }
@keyframes kl-hp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes kl-hp-spin { to { transform: rotate(360deg); } }
@keyframes kl-hp-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes kl-hp-dash { to { stroke-dashoffset: -18; } }
@keyframes kl-hp-ring { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes kl-hp-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 255, 208, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(61, 255, 208, 0); } }
@keyframes kl-hp-shine { to { background-position: 200% center; } }

@media (max-width: 767px) {
    .kl-hp-hero { padding: 3.2rem 0 6.5rem; }
    .kl-hp-stats { margin-top: -3.5rem; }
    .kl-hp-step-card { height: auto; }
    .kl-hp-cities { padding: 1.6rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .kl-home-presentation *, .kl-home-presentation *::before, .kl-home-presentation *::after { animation: none !important; transition: none !important; }
    .kl-hp-js .kl-hp-reveal { opacity: 1; transform: none; }
}

/* ====================================================
   PAGE VILLE (_city_content.html.twig)
   ==================================================== */
.kl-heading-fix, .kl-hp-heading-lead { max-width: 660px; margin: 1.1rem auto 0; color: #5d6d7c; line-height: 1.7; }

/* Hero */
.kl-cc-hero-wrap { padding: 2.5rem 0 1rem; }
.kl-cc-hero {
    position: relative; overflow: hidden; border-radius: 30px; padding: 3rem 2.5rem; color: #fff;
    background:
            radial-gradient(circle at 12% 15%, rgba(31, 181, 173, .35), transparent 45%),
            radial-gradient(circle at 90% 85%, rgba(124, 92, 255, .30), transparent 45%),
            linear-gradient(135deg, #0b1b27 0%, #12344a 100%);
    box-shadow: 0 24px 50px rgba(11, 27, 39, .28);
}
.kl-cc-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.kl-cc-hero .row { position: relative; z-index: 2; }
.kl-cc-hero .kl-hp-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

.kl-cc-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.kl-cc-pills li {
    padding: .4rem .95rem; border-radius: 50px; font-size: .88rem; font-weight: 600; color: #d9fffb;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .20);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.kl-cc-pills i { margin-right: .45rem; color: #3dffd0; }

/* Photo de la ville */
.kl-cc-photo {
    position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 26px;
    background: linear-gradient(135deg, #1fb5ad, #7c5cff);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
    transform: rotate(1.5deg); transition: transform .5s;
}
.kl-cc-photo:hover { transform: rotate(0) scale(1.02); }
.kl-cc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kl-cc-photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(11, 27, 39, .75) 100%);
}
.kl-cc-float {
    position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
    display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 18px; color: #fff;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .30);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.kl-cc-float-ico {
    flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: #06222a; background: linear-gradient(135deg, #ffc83d, #ff8a3d);
}
.kl-cc-float strong { display: block; font-size: 1rem; }
.kl-cc-float small { display: inline-flex; align-items: center; gap: .45rem; color: #b9fff9; font-weight: 700; }
.kl-cc-float small::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3dffd0; animation: kl-hp-ping 2s infinite;
}

/* À découvrir (réutilise .kl-hp-feature) */
.kl-cc-discover { background: #fff; padding: 4rem 0 3rem; }

/* Autres villes */
.kl-cc-others { padding: 1.5rem 0 3.5rem; background: #f4fbfb; }
.kl-cc-others-label { display: block; margin-bottom: 1.1rem; font-size: 1.15rem; font-weight: 800; color: var(--tf-ink); }
.kl-cc-mini {
    position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
    height: 150px; overflow: hidden; border-radius: 22px; padding: 1rem 1.2rem;
    color: #fff !important; text-decoration: none !important;
    background: linear-gradient(135deg, #1fb5ad, #0e7f8f);
    box-shadow: 0 12px 30px rgba(15, 34, 48, .14);
    transition: transform .3s, box-shadow .3s;
}
.kl-cc-mini.m2 { background: linear-gradient(135deg, #ff8a3d, #c2570f); }
.kl-cc-mini.m3 { background: linear-gradient(135deg, #7c5cff, #2b1f6b); }
.kl-cc-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.kl-cc-mini::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(11, 27, 39, .05) 25%, rgba(11, 27, 39, .80) 100%);
}
.kl-cc-mini span, .kl-cc-mini i { position: relative; z-index: 2; }
.kl-cc-mini span { display: block; }
.kl-cc-mini em { display: block; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #b9fff9; }
.kl-cc-mini b { font-size: 1.1rem; font-weight: 800; }
.kl-cc-mini i { transition: transform .25s; }
.kl-cc-mini:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15, 34, 48, .24); }
.kl-cc-mini:hover img { transform: scale(1.08); }
.kl-cc-mini:hover i { transform: translateX(5px); }

@media (max-width: 767px) {
    .kl-cc-hero { padding: 2rem 1.3rem; border-radius: 24px; }
    .kl-cc-photo { transform: none; }
}