/* ─────────────────────────────────────────────────────────
   T'knoWeb showcase — "fun edition"
   Brand colors keep the legacy green, but with motion,
   gradients, glow effects and a more playful tone.
   ───────────────────────────────────────────────────────── */

:root {
    --tkw-green: #32913f;
    --tkw-green-dark: #267330;
    --tkw-green-bright: #4ec562;
    --tkw-lime: #b6e362;
    --tkw-cyan: #2bd9c0;
    --tkw-green-soft: rgba(50, 145, 63, .1);
    --tkw-dark: #1a1f1c;
    --tkw-darker: #0f1311;
    --tkw-yellow: #ffd166;
    --tkw-pink: #ff6b9d;
    --tkw-light: #f6faf6;
    --tkw-muted: #6c757d;

    --bs-primary: #32913f;
    --bs-primary-rgb: 50, 145, 63;
    --bs-link-color: #32913f;
    --bs-link-hover-color: #267330;
    --bs-link-color-rgb: 50, 145, 63;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Raleway Variable', 'Raleway', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--tkw-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

a { color: var(--tkw-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tkw-green-dark); }

h1, h2 { font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }

/* ─── Scroll reveal — JS toggles .is-visible ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .4s; }

/* ─── Bootstrap recolor ─── */
.btn-primary {
    --bs-btn-bg: var(--tkw-green);
    --bs-btn-border-color: var(--tkw-green);
    --bs-btn-hover-bg: var(--tkw-green-dark);
    --bs-btn-hover-border-color: var(--tkw-green-dark);
    --bs-btn-active-bg: var(--tkw-green-dark);
    --bs-btn-active-border-color: var(--tkw-green-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 50%);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(50, 145, 63, .35);
}
.btn-primary:hover::before { opacity: 1; }

.btn-outline-primary {
    --bs-btn-color: var(--tkw-green);
    --bs-btn-border-color: var(--tkw-green);
    --bs-btn-hover-bg: var(--tkw-green);
    --bs-btn-hover-border-color: var(--tkw-green);
}

.btn-glow {
    position: relative;
    isolation: isolate;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--tkw-green), var(--tkw-lime), var(--tkw-cyan), var(--tkw-green));
    background-size: 300% 300%;
    z-index: -1;
    filter: blur(10px);
    opacity: .7;
    animation: btnGlow 4s linear infinite;
}
@keyframes btnGlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-bg-primary {
    background-color: var(--tkw-green) !important;
    color: #fff !important;
}

.form-control, .form-select { transition: border-color .2s, box-shadow .2s; }
.form-control:focus, .form-select:focus {
    border-color: var(--tkw-green);
    box-shadow: 0 0 0 .25rem rgba(50, 145, 63, .2);
}

/* ─── Navbar ─── */
.navbar-tkw {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(50, 145, 63, .12);
    transition: background .3s, box-shadow .3s, padding .2s;
    padding-top: .35rem;
    padding-bottom: .35rem;
}
.navbar-tkw.is-scrolled {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 6px 24px rgba(15, 23, 42, .07);
}

.navbar-tkw .navbar-brand { padding: 0; margin: 0; }
.navbar-tkw .navbar-brand img {
    height: 56px; width: auto;
    transition: transform .3s;
}
.navbar-tkw .navbar-brand:hover img { transform: rotate(-4deg) scale(1.04); }

.navbar-tkw .nav-link {
    color: var(--tkw-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .04em;
    position: relative;
    padding-top: .55rem;
    padding-bottom: .55rem;
}
.navbar-tkw .nav-link::after {
    content: '';
    position: absolute;
    left: .9rem; right: .9rem;
    bottom: .35rem;
    height: 2px;
    background: var(--tkw-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.navbar-tkw .nav-link:hover::after,
.navbar-tkw .nav-link.active::after { transform: scaleX(1); }
.navbar-tkw .nav-link:hover,
.navbar-tkw .nav-link.active { color: var(--tkw-green); }

/* ─── Hero — animated mesh + blobs ─── */
.hero {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, var(--tkw-green) 0%, var(--tkw-green-dark) 100%);
    overflow: hidden;
    isolation: isolate;
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    z-index: -1;
    animation: blobFloat 18s ease-in-out infinite;
}
.hero::before {
    width: 480px; height: 480px;
    top: -120px; left: -120px;
    background: var(--tkw-lime);
}
.hero::after {
    width: 520px; height: 520px;
    bottom: -160px; right: -120px;
    background: var(--tkw-cyan);
    animation-delay: -8s;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.06); }
    66% { transform: translate(-30px, 40px) scale(.96); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: -1;
}

.hero h1 {
    line-height: 1.05;
    text-transform: none;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.hero .gradient-text {
    background: linear-gradient(120deg, #fff, var(--tkw-lime), #fff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shineSlide 6s linear infinite;
}
@keyframes shineSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero .badge {
    background: rgba(255, 255, 255, .92) !important;
    color: var(--tkw-green) !important;
    font-weight: 600;
}

.hero-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

.hero-icon {
    background: #fff;
    color: var(--tkw-green);
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    animation: bobble 3s ease-in-out infinite;
}
@keyframes bobble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hero-stat-row {
    border-top: 1px solid rgba(255, 255, 255, .25);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}
.hero-stat .num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.hero-stat .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

.scroll-hint {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .8);
    font-size: 1.4rem;
    animation: arrowDown 1.6s ease-in-out infinite;
}
@keyframes arrowDown {
    0%, 100% { transform: translate(-50%, 0); opacity: .65; }
    50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ─── Marquee tech stack ─── */
.marquee {
    overflow: hidden;
    background: linear-gradient(90deg, var(--tkw-dark), var(--tkw-darker));
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 1.25rem 0;
    position: relative;
}
.marquee::before, .marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--tkw-dark), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--tkw-dark), transparent); }
.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: 1.25rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    opacity: .85;
}
.marquee-item .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--tkw-lime);
    box-shadow: 0 0 12px var(--tkw-lime);
}
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Section spacing helpers ─── */
.py-lg-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
@media (max-width: 991.98px) { .py-lg-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; } }

.page-header-section {
    background: linear-gradient(180deg, var(--tkw-light), #ffffff);
    border-bottom: 1px solid rgba(50, 145, 63, .15);
    position: relative;
    overflow: hidden;
}
.page-header-section::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tkw-green-soft), transparent 70%);
    top: -180px; right: -120px;
    z-index: 0;
}
.page-header-section > .container { position: relative; z-index: 1; }
.page-header-section h1 {
    text-transform: none;
    margin: 0 0 .5rem;
}

/* ─── Section heading "kicker" ─── */
.kicker {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--tkw-green);
    background: var(--tkw-green-soft);
    padding: .35rem .8rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}

/* ─── Service cards (with tilt) ─── */
.service-card {
    --rotX: 0deg;
    --rotY: 0deg;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.6rem;
    height: 100%;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
    transform: perspective(1000px) rotateX(var(--rotX)) rotateY(var(--rotY)) translateZ(0);
    will-change: transform;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.service-card:hover {
    box-shadow: 0 24px 50px -20px rgba(50, 145, 63, .35);
    border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-bright));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 24px -8px rgba(50, 145, 63, .55);
    transition: transform .3s;
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }

/* ─── Step cards ─── */
.step-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.4rem;
    height: 100%;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -14px rgba(50, 145, 63, .25);
}
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-bright));
    color: #fff;
    font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 8px 20px -6px rgba(50, 145, 63, .55);
}

.big-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-bright));
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 14px 30px -10px rgba(50, 145, 63, .55);
}

/* ─── Portfolio ─── */
.portfolio-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}
.portfolio-card:hover {
    transform: translateY(-6px) rotate(-.4deg);
    box-shadow: 0 22px 50px -18px rgba(50, 145, 63, .35);
}
.portfolio-thumb {
    height: 150px;
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
    position: relative; overflow: hidden;
}
.portfolio-thumb::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 60%);
}
.portfolio-card:hover .portfolio-thumb { animation: thumbShake .5s ease-in-out; }
@keyframes thumbShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

/* ─── KPIs ─── */
.kpi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform .25s;
}
.kpi-card:hover { transform: scale(1.03); }
.kpi-number {
    font-size: 2.6rem;
    font-weight: 900;
    background: linear-gradient(120deg, var(--tkw-green), var(--tkw-green-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.value-list { list-style: none; padding-left: 0; }
.value-list li {
    padding-left: 2.2rem;
    position: relative;
    margin-bottom: 1rem;
    transition: transform .2s;
}
.value-list li:hover { transform: translateX(4px); }
.value-list li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    color: var(--tkw-green);
    position: absolute;
    left: 0; top: .15rem;
    font-size: .9rem;
    background: var(--tkw-green-soft);
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* ─── Job offers ─── */
.job-card, .job-row-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.4rem;
    color: var(--tkw-dark);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    position: relative;
    overflow: hidden;
}
.job-card:hover, .job-row-card:hover {
    transform: translateY(-4px);
    color: var(--tkw-dark);
    border-color: var(--tkw-green);
    box-shadow: 0 18px 40px -16px rgba(50, 145, 63, .35);
}
.job-row-card { padding: 1.4rem 1.6rem; }
.job-row-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--tkw-green), var(--tkw-green-bright));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s;
}
.job-row-card:hover::before { transform: scaleY(1); }

.job-detail {
    border-left: 4px solid var(--tkw-green);
    padding-left: 1.5rem;
}
.job-detail p { line-height: 1.75; }

.apply-aside {
    background: linear-gradient(160deg, var(--tkw-light), #fff);
    border: 1px solid rgba(50, 145, 63, .25);
    border-radius: 1rem;
    top: 1.5rem;
    box-shadow: 0 12px 30px -16px rgba(50, 145, 63, .35);
}

/* ─── CTA & footer ─── */
.cta-band {
    background: linear-gradient(135deg, var(--tkw-dark), var(--tkw-darker));
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    background: var(--tkw-green);
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    top: -100px; left: 30%;
    animation: blobFloat 20s ease-in-out infinite;
}
.cta-band > .container { position: relative; z-index: 1; }

.site-footer {
    background: linear-gradient(180deg, var(--tkw-dark), var(--tkw-darker));
    color: rgba(255, 255, 255, .85);
}
.site-footer h5, .site-footer h6, .site-footer .h6 { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .85); transition: color .2s, transform .2s; display: inline-block; }
.site-footer a:hover { color: var(--tkw-lime); transform: translateX(2px); }
.site-footer .footer-logo img { width: 220px; max-width: 100%; }
.site-footer .footer-icon {
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-bright));
    border-radius: 50%;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(50, 145, 63, .55);
}

/* ─── Legal pages ─── */
.legal-content { line-height: 1.8; }
.legal-content h2 { margin-top: 2rem; }

.contact-info {
    background: linear-gradient(160deg, var(--tkw-light), #fff);
    border: 1px solid rgba(50, 145, 63, .2);
    border-radius: 1rem;
    padding: 1.6rem;
}

/* ─── Hiring badge ─── */
.hiring-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-bright));
    color: #fff;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .08em;
    box-shadow: 0 8px 24px -8px rgba(50, 145, 63, .55);
    animation: wobble 2.4s ease-in-out infinite;
    transform-origin: center;
}
@keyframes wobble {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}
.hiring-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .9);
    animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .9); }
    70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ─── Alerts ─── */
.alert-success {
    border: 0;
    background: linear-gradient(135deg, #d4f5dc, #f6faf6);
    color: var(--tkw-green-dark);
    border-left: 4px solid var(--tkw-green);
    animation: slideIn .5s cubic-bezier(.2, .8, .2, 1);
}
.alert-danger {
    border: 0;
    background: linear-gradient(135deg, #ffd9dc, #fff5f6);
    color: #9a000a;
    border-left: 4px solid #9a000a;
    animation: slideIn .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
}

/* ─── Section heading utility ─── */
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: .5rem; }
.section-heading p { color: var(--tkw-muted); margin-bottom: 0; }

/* ─── Confetti container ─── */
.confetti-piece {
    position: fixed;
    width: 10px; height: 10px;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, opacity;
}

/* ─────────────────────────────────────────────────────────
   Click-to-call dans la navbar.
   Desktop (≥ lg): badge texte + icône à côté du bouton Contact.
   Mobile (< lg): bouton rond icône-only à côté du burger.
   ───────────────────────────────────────────────────────── */

/* Desktop variant — pill-style with the full number, hidden on mobile
   because the dedicated mobile button takes over outside the collapse. */
.nav-call .nav-call-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--tkw-green-soft);
    color: var(--tkw-green) !important;
    border: 1px solid rgba(50, 145, 63, .25);
    padding: .35rem .85rem !important;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.nav-call .nav-call-link::after { display: none; } /* override the default underline */
.nav-call .nav-call-link:hover,
.nav-call .nav-call-link:focus-visible {
    background: var(--tkw-green);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(50, 145, 63, .55);
    outline: none;
}
.nav-call .nav-call-link .bi {
    animation: navCallRing 2.4s ease-in-out infinite;
    transform-origin: top center;
}
@keyframes navCallRing {
    0%, 60%, 100% { transform: rotate(0); }
    65% { transform: rotate(15deg); }
    70% { transform: rotate(-12deg); }
    75% { transform: rotate(10deg); }
    80% { transform: rotate(-8deg); }
    85% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
    .nav-call .nav-call-link .bi { animation: none; }
}

/* ─── Menu icons (only "Solutions IA" keeps its icon on desktop) ─── */
.navbar-tkw .nav-link .nav-ico { margin-right: .3rem; }

/* ─── Burger: three bars that turn into a cross while the menu is open ─── */
.tkw-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--tkw-green-soft);
    transition: background .2s;
}
.tkw-burger:focus { box-shadow: 0 0 0 .2rem rgba(50, 145, 63, .3); }
.tkw-burger span {
    display: block;
    width: 22px; height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--tkw-dark);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s;
}
.tkw-burger[aria-expanded="true"] { background: rgba(50, 145, 63, .18); }
.tkw-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tkw-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tkw-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile menu panel (< lg) ─── */
@media (max-width: 991.98px) {
    .navbar-tkw .navbar-collapse {
        margin: .6rem -.25rem .25rem;
        padding: .5rem;
        border-radius: 1.1rem;
        background: #fff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 20px 40px -18px rgba(15, 23, 42, .3);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    .navbar-tkw .navbar-nav { flex-direction: row; flex-wrap: wrap; gap: .15rem; }
    .navbar-tkw .navbar-nav .nav-item { flex: 0 0 100%; }

    /* One row per page: icon, label, arrow */
    .navbar-tkw .nav-link {
        display: flex;
        align-items: center;
        gap: .8rem;
        padding: .8rem .85rem !important;
        border-radius: .8rem;
        text-transform: none;
        letter-spacing: 0;
        font-size: 1rem;
        transition: background .2s, color .2s;
    }
    .navbar-tkw .nav-link::after { display: none; }
    .navbar-tkw .nav-link .nav-ico {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        margin: 0;
        border-radius: 10px;
        background: var(--tkw-light);
        color: var(--tkw-green);
        font-size: 1.05rem;
        flex-shrink: 0;
    }
    .navbar-tkw .nav-link-ai .nav-ico { color: #1d8e7f; background: rgba(43, 217, 192, .14); }
    .navbar-tkw .nav-link .nav-arrow { margin-left: auto; font-size: .8rem; color: #b8c2bb; }
    .navbar-tkw .nav-link:hover,
    .navbar-tkw .nav-link:focus-visible { background: var(--tkw-light); }
    .navbar-tkw .nav-link.active { background: var(--tkw-green-soft); color: var(--tkw-green-dark); }
    .navbar-tkw .nav-link.active .nav-ico { background: var(--tkw-green); color: #fff; }
    .navbar-tkw .nav-link.active .nav-arrow { color: var(--tkw-green); }

    /* Call and contact: two big buttons side by side at the bottom of the panel */
    .navbar-tkw .navbar-nav .nav-item.nav-cta {
        flex: 1 1 calc(50% - .25rem);
        margin-top: .5rem;
        padding-top: .6rem;
        border-top: 1px solid #edf1ee;
    }
    .navbar-tkw .nav-cta > a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        border-radius: .8rem !important;
        font-size: 1rem !important;
        font-weight: 700;
    }
    .nav-call .nav-call-link { padding: .65rem .9rem !important; }
    .navbar-tkw .nav-contact-btn { padding: .65rem .9rem; }
}

/* Mobile-only icon button (sits next to the burger, always visible). */
.btn-call-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-dark));
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(50, 145, 63, .55);
    border: 0;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.btn-call-mobile:hover,
.btn-call-mobile:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -6px rgba(50, 145, 63, .7);
    outline: none;
}
.btn-call-mobile .bi { font-size: 1.05rem; }

/* ─────────────────────────────────────────────────────────
   PORTFOLIO — bento layout, varied tag colors, fun hovers
   ───────────────────────────────────────────────────────── */

.portfolio-hero {
    position: relative;
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-dark));
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    padding: 4rem 0 5rem;
}
.portfolio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 209, 102, .25), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(43, 217, 192, .3), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(182, 227, 98, .25), transparent 45%);
}
.portfolio-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -.02em;
    text-transform: none;
    line-height: 1.05;
}

/* Floating shapes drifting in the background. */
.floating-shape {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    opacity: .6;
    animation: floatDrift 14s ease-in-out infinite;
}
.floating-shape svg { display: block; }
.floating-shape.s1 { top: 10%; left: 6%; animation-delay: 0s; }
.floating-shape.s2 { top: 20%; right: 8%; animation-delay: -3s; }
.floating-shape.s3 { bottom: 14%; left: 12%; animation-delay: -7s; }
.floating-shape.s4 { bottom: 20%; right: 14%; animation-delay: -10s; }
@keyframes floatDrift {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    33% { transform: translate(20px, -25px) rotate(8deg); }
    66% { transform: translate(-18px, 18px) rotate(-6deg); }
}

/* Bento grid for project cards. */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 220px;
    gap: 1.25rem;
}
.bento-item {
    position: relative;
    border-radius: 1.25rem;
    padding: 1.5rem;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: default;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
    isolation: isolate;
}
.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    z-index: -1;
}
.bento-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 60%);
    z-index: -1;
    pointer-events: none;
}
.bento-item:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .35);
}
.bento-item .b-icon {
    font-size: 3rem;
    align-self: flex-start;
    margin-bottom: auto;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), filter .4s;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25));
}
.bento-item:hover .b-icon { transform: rotate(-8deg) scale(1.15); }
.bento-item .b-tag {
    align-self: flex-start;
    background: rgba(255, 255, 255, .25);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .25rem .65rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: .5rem;
}
.bento-item h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 .35rem; line-height: 1.2; }
.bento-item p { font-size: .85rem; opacity: .92; margin: 0; line-height: 1.5; }

/* Bento color variants — each card gets its own gradient. */
.bento-item.bv-1 { background: linear-gradient(135deg, #32913f, #4ec562); }
.bento-item.bv-2 { background: linear-gradient(135deg, #2bd9c0, #1d8e7f); }
.bento-item.bv-3 { background: linear-gradient(135deg, #ffd166, #f0a800); color: #1a1f1c; }
.bento-item.bv-3 .b-tag { background: rgba(26, 31, 28, .15); color: #1a1f1c; }
.bento-item.bv-4 { background: linear-gradient(135deg, #ff6b9d, #c2185b); }
.bento-item.bv-5 { background: linear-gradient(135deg, #1a1f1c, #2d3a30); }
.bento-item.bv-6 { background: linear-gradient(135deg, #b6e362, #6db028); color: #1a1f1c; }
.bento-item.bv-6 .b-tag { background: rgba(26, 31, 28, .15); color: #1a1f1c; }

/* Bento sizing — wide / tall / square mix. */
.bento-item.size-md  { grid-column: span 2; grid-row: span 1; }
.bento-item.size-lg  { grid-column: span 3; grid-row: span 2; }
.bento-item.size-wide { grid-column: span 4; grid-row: span 1; }
.bento-item.size-tall { grid-column: span 2; grid-row: span 2; }

@media (max-width: 991.98px) {
    .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .bento-item.size-md, .bento-item.size-lg, .bento-item.size-wide, .bento-item.size-tall {
        grid-column: span 1; grid-row: span 1;
    }
    .bento-item.size-lg, .bento-item.size-tall { grid-row: span 2; }
}
@media (max-width: 575.98px) {
    .bento { grid-template-columns: 1fr; }
    .bento-item.size-lg, .bento-item.size-tall { grid-row: span 2; }
}

/* Stats strip used on portfolio page. */
.stats-strip {
    background: linear-gradient(135deg, var(--tkw-dark), var(--tkw-darker));
    color: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.stats-strip::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: var(--tkw-green);
    filter: blur(80px);
    opacity: .35;
    top: -100px; right: -50px;
    animation: blobFloat 16s ease-in-out infinite;
}
.stats-strip .stat-num {
    font-size: 2.6rem;
    font-weight: 900;
    background: linear-gradient(120deg, var(--tkw-lime), var(--tkw-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.stats-strip .stat-lbl {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
    margin-top: .3rem;
}

/* ─────────────────────────────────────────────────────────
   CONTACT — choice cards, FAQ, animated icons
   ───────────────────────────────────────────────────────── */

.contact-hero {
    position: relative;
    background: linear-gradient(135deg, #f6faf6 0%, #ffffff 100%);
    overflow: hidden;
    padding: 4rem 0 3rem;
}
.contact-hero::before {
    content: '';
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 145, 63, .18), transparent 65%);
    top: -160px; right: -120px;
    animation: blobFloat 18s ease-in-out infinite;
    z-index: 0;
}
.contact-hero::after {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 217, 192, .14), transparent 65%);
    bottom: -120px; left: -80px;
    animation: blobFloat 22s ease-in-out infinite;
    animation-delay: -7s;
    z-index: 0;
}
.contact-hero > .container { position: relative; z-index: 1; }
.contact-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    text-transform: none;
    letter-spacing: -.02em;
}
.contact-hero h1 .gradient-text-green {
    background: linear-gradient(120deg, var(--tkw-green), var(--tkw-green-bright), var(--tkw-cyan));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shineSlide 6s linear infinite;
}

/* Cards "what type of request" with emoji-like icons. */
.choice-card {
    display: block;
    /* A <button>: without it, each card is only as wide as its text */
    width: 100%;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    text-decoration: none;
    color: var(--tkw-dark);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
    height: 100%;
    cursor: pointer;
    position: relative;
}
.choice-card:hover {
    transform: translateY(-6px);
    color: var(--tkw-dark);
    text-decoration: none;
    border-color: var(--tkw-green);
    box-shadow: 0 18px 40px -16px rgba(50, 145, 63, .35);
}
.choice-card .emoji {
    font-size: 2.4rem;
    display: inline-block;
    margin-bottom: .75rem;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1.6);
}
.choice-card:hover .emoji { transform: scale(1.2) rotate(-8deg); }
.choice-card .choice-title { display: block; font-size: .95rem; font-weight: 800; margin: 0 0 .25rem; }
.choice-card .choice-sub { display: block; font-size: .8rem; color: var(--tkw-muted); margin: 0; }
.choice-card .check {
    position: absolute;
    top: 8px; right: 8px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--tkw-green);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .25s, transform .25s;
}
.choice-card.is-active {
    border-color: var(--tkw-green);
    background: linear-gradient(160deg, rgba(50, 145, 63, .06), #fff);
}
.choice-card.is-active .check { opacity: 1; transform: scale(1); }
.choice-card.is-active .emoji { transform: scale(1.15) rotate(-4deg); }

/* Fancy form card. */
.contact-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
}
.contact-form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tkw-green), var(--tkw-cyan), var(--tkw-lime), var(--tkw-green));
    background-size: 300% 100%;
    animation: btnGlow 8s linear infinite;
}

/* Floating-label inputs. */
.tkw-floating {
    position: relative;
}
.tkw-floating > input,
.tkw-floating > textarea,
.tkw-floating > .form-control {
    width: 100%;
    border: 1px solid #d8dde2;
    border-radius: .65rem;
    padding: 1.4rem .9rem .55rem;
    font-size: 1rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
/* Only the message area is tall: every widget of the Symfony form has .form-control, the one-line inputs included */
.tkw-floating > textarea {
    min-height: 130px;
    resize: vertical;
}
.tkw-floating > input:focus,
.tkw-floating > textarea:focus,
.tkw-floating > .form-control:focus {
    outline: none;
    border-color: var(--tkw-green);
    box-shadow: 0 0 0 .25rem rgba(50, 145, 63, .18);
}
.tkw-floating > label {
    position: absolute;
    left: .9rem;
    top: 1rem;
    color: var(--tkw-muted);
    pointer-events: none;
    transition: top .2s, font-size .2s, color .2s;
    background: #fff;
    padding: 0 .25rem;
}
.tkw-floating > input:focus + label,
.tkw-floating > input:not(:placeholder-shown) + label,
.tkw-floating > textarea:focus + label,
.tkw-floating > textarea:not(:placeholder-shown) + label,
.tkw-floating > .form-control:focus + label,
.tkw-floating > .form-control:not(:placeholder-shown) + label {
    top: -.55rem;
    font-size: .75rem;
    color: var(--tkw-green);
    font-weight: 600;
}

/* Animated contact-method cards. */
.method-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--tkw-dark);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    margin-bottom: .75rem;
}
.method-card:hover {
    transform: translateX(4px);
    color: var(--tkw-dark);
    text-decoration: none;
    border-color: var(--tkw-green);
    box-shadow: 0 12px 28px -16px rgba(50, 145, 63, .3);
}
.method-card .m-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-bright));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform .35s;
}
.method-card:hover .m-icon { transform: rotate(-10deg) scale(1.08); }
.method-card .m-icon.icon-shake .bi { animation: bellShake 1.2s infinite; transform-origin: top center; }
@keyframes bellShake {
    0%, 50%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
}
.method-card .m-icon.icon-bounce .bi {
    display: inline-block;
    animation: iconBounce 1.6s ease-in-out infinite;
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.method-card .m-title { font-weight: 700; margin: 0; line-height: 1.2; }
.method-card .m-sub { font-size: .8rem; color: var(--tkw-muted); margin: 0; }
.method-card .arrow {
    margin-left: auto;
    color: var(--tkw-green);
    transition: transform .25s;
}
.method-card:hover .arrow { transform: translateX(4px); }

/* FAQ accordion (without JS — uses <details>). */
.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0;
    margin-bottom: .75rem;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] {
    border-color: var(--tkw-green);
    box-shadow: 0 12px 28px -16px rgba(50, 145, 63, .25);
}
.faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 700;
    user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    margin-left: auto;
    color: var(--tkw-green);
    transition: transform .25s;
    font-weight: 400;
}
.faq-item[open] > summary::after { transform: rotate(180deg); }
.faq-item .q-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--tkw-green-soft);
    color: var(--tkw-green);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
}
.faq-item .answer {
    padding: 0 1.4rem 1.2rem 4.05rem;
    color: var(--tkw-muted);
    line-height: 1.7;
    animation: faqSlide .35s ease-out;
}
@keyframes faqSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* Promise band on contact page. */
.promise-band {
    background: linear-gradient(135deg, var(--tkw-green), var(--tkw-green-dark));
    color: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.promise-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .1), transparent 40%);
}
.promise-band .promise-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ─────────────────────────────────────────────────────────
   Intelligence artificielle — home section, AI page, chat mock
   Dark "neural" background, cyan → lime accents.
   ───────────────────────────────────────────────────────── */

/* Navbar entry, highlighted among the others */
.navbar-tkw .nav-link.nav-link-ai .bi { color: var(--tkw-cyan); }

/* "Nouveau" pill in the home hero, above the badge */
.ai-pill {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    max-width: 100%;
    padding: .35rem .95rem .35rem .4rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(15, 19, 17, .35);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    transition: background .2s, transform .2s;
}
.ai-pill:hover { color: #fff; background: rgba(15, 19, 17, .55); transform: translateY(-1px); }
.ai-pill-tag {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--tkw-cyan), var(--tkw-lime));
    color: var(--tkw-darker);
    border-radius: 999px;
    padding: .15rem .6rem;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.hero-card-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-card-link:hover { color: var(--tkw-lime); }

/* Dark sections: home showcase and AI page hero */
.ai-showcase,
.ai-hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(43, 217, 192, .18), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(182, 227, 98, .12), transparent 45%),
        linear-gradient(160deg, var(--tkw-darker), #14241a 60%, var(--tkw-darker));
    overflow: hidden;
    isolation: isolate;
}
.ai-showcase::before,
.ai-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(43, 217, 192, .28) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.ai-showcase .kicker,
.ai-hero .kicker { color: var(--tkw-cyan); background: rgba(43, 217, 192, .14); }
.ai-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; }
.ai-lead { color: rgba(255, 255, 255, .8); max-width: 600px; }
.ai-cta-text { max-width: 560px; }
.ai-gradient-text {
    background: linear-gradient(120deg, var(--tkw-cyan), var(--tkw-lime), var(--tkw-cyan));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shineSlide 6s linear infinite;
}
.ai-chip {
    display: inline-flex;
    align-items: center;
    padding: .3rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .05);
    font-size: .8rem;
    color: rgba(255, 255, 255, .85);
}

/* Featured solution cards (home) */
.ai-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, background .3s;
}
.ai-card:hover {
    color: #fff;
    transform: translateY(-6px);
    border-color: rgba(43, 217, 192, .6);
    background: rgba(255, 255, 255, .08);
}
.ai-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .5rem; }
.ai-card p { color: rgba(255, 255, 255, .75); font-size: .92rem; }
.ai-card .ai-more { margin-top: auto; color: var(--tkw-cyan); font-weight: 700; font-size: .9rem; }
.ai-card .ai-more .bi { display: inline-block; transition: transform .2s; }
.ai-card:hover .ai-more .bi { transform: translateX(4px); }
.ai-tag {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tkw-lime);
    border: 1px solid rgba(182, 227, 98, .4);
    border-radius: 999px;
    padding: .2rem .6rem;
}
.ai-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    width: 56px; height: 56px;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tkw-cyan), var(--tkw-green-bright));
    color: var(--tkw-darker);
    font-size: 1.6rem;
    box-shadow: 0 10px 30px -8px rgba(43, 217, 192, .55);
    transition: transform .3s;
}
.ai-card:hover .ai-icon { transform: rotate(-8deg) scale(1.08); }

/* Secondary solutions (home) */
.ai-mini {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    height: 100%;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    transition: border-color .3s, transform .3s;
}
.ai-mini:hover { color: #fff; border-color: rgba(43, 217, 192, .5); transform: translateY(-3px); }
.ai-mini > .bi { font-size: 1.4rem; color: var(--tkw-cyan); line-height: 1.2; }
.ai-mini strong { display: block; }
.ai-mini strong + span { display: block; font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* Chat illustration */
.chat-mock {
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    color: #fff;
}
.chat-mock-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
    font-weight: 600;
}
.chat-mock-header .status {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--tkw-lime);
    box-shadow: 0 0 0 4px rgba(182, 227, 98, .2);
}
.chat-mock-header .bi { color: var(--tkw-cyan); }
.chat-mock-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem; }
.chat-bubble {
    max-width: 85%;
    padding: .7rem .95rem;
    border-radius: 1rem;
    font-size: .88rem;
    line-height: 1.45;
    opacity: 0;
    animation: bubbleIn .5s cubic-bezier(.2, .8, .2, 1) forwards;
}
.chat-bubble.user {
    align-self: flex-end;
    background: var(--tkw-green);
    color: #fff;
    border-bottom-right-radius: .3rem;
}
.chat-bubble.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, .94);
    color: var(--tkw-dark);
    border-bottom-left-radius: .3rem;
}
.chat-bubble.ai .bi { color: var(--tkw-green); }
.chat-bubble:nth-child(1) { animation-delay: .3s; }
.chat-bubble:nth-child(2) { animation-delay: 1.1s; }
.chat-bubble:nth-child(3) { animation-delay: 1.9s; }
.chat-bubble:nth-child(4) { animation-delay: 2.7s; }
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.chat-chart { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: .6rem; }
.chat-chart span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--tkw-cyan), var(--tkw-green));
}
.chat-chart span:nth-child(1) { height: 55%; }
.chat-chart span:nth-child(2) { height: 100%; }
.chat-chart span:nth-child(3) { height: 70%; }
.chat-chart span:nth-child(4) { height: 45%; }
.chat-chart span:nth-child(5) { height: 62%; }
.chat-mock-caption {
    padding: 0 1.1rem .8rem;
    font-size: .72rem;
    color: rgba(255, 255, 255, .5);
    text-align: right;
}
@media (prefers-reduced-motion: reduce) {
    .chat-bubble { opacity: 1; animation: none; }
}

/* AI page: table of contents and solution blocks */
.ai-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 2rem;
}
.ai-toc a {
    padding: .45rem .9rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: .85rem;
    font-weight: 600;
    color: var(--tkw-dark);
    transition: border-color .2s, color .2s;
}
.ai-toc a:hover { border-color: var(--tkw-green); color: var(--tkw-green); }
.ai-toc a .bi { color: var(--tkw-green); }
.ai-solution {
    padding: 2.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    scroll-margin-top: 90px;
}
.ai-solution:last-child { border-bottom: 0; }
.ai-solution .ai-icon { margin-bottom: 0; }
.ai-tag-light {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tkw-green);
    background: var(--tkw-green-soft);
    border-radius: 999px;
    padding: .25rem .7rem;
}
.ai-example {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--tkw-light);
    border: 1px solid rgba(50, 145, 63, .2);
    font-size: .9rem;
}
.ai-example > .bi { color: var(--tkw-green); font-size: 1.2rem; line-height: 1.3; }

/* "Your data never reaches the AI" notices: statistics block of the AI page, statistics card of the home */
.ai-privacy {
    display: flex;
    gap: .85rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(43, 217, 192, .12), rgba(50, 145, 63, .1));
    border: 1px solid rgba(43, 217, 192, .45);
    font-size: .92rem;
}
.ai-privacy > .bi { color: #1d8e7f; font-size: 1.4rem; line-height: 1.2; }
.ai-card .ai-card-note {
    font-size: .82rem;
    color: var(--tkw-lime);
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: .75rem;
}

/* ─────────────────────────────────────────────────────────
   Portfolio — project cards (Réalisations page)
   ───────────────────────────────────────────────────────── */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 24px 50px -20px rgba(50, 145, 63, .35);
}
.project-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
/* Room for the top-right badge, a long sector line would run under it */
.project-badge + .project-head { padding-right: 3.25rem; }
.project-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    color: #fff;
    font-size: 1.45rem;
}
.project-card.pv-1 .project-icon { background: linear-gradient(135deg, #32913f, #4ec562); }
.project-card.pv-2 .project-icon { background: linear-gradient(135deg, #2bd9c0, #1d8e7f); }
.project-card.pv-3 .project-icon { background: linear-gradient(135deg, #ffd166, #f0a800); color: #1a1f1c; }
.project-card.pv-4 .project-icon { background: linear-gradient(135deg, #ff6b9d, #c2185b); }
.project-card.pv-5 .project-icon { background: linear-gradient(135deg, #1a1f1c, #2d3a30); }
.project-card.pv-6 .project-icon { background: linear-gradient(135deg, #b6e362, #6db028); color: #1a1f1c; }
.project-sector {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tkw-green);
}
.project-card h3 { font-size: 1.2rem; font-weight: 800; margin: .1rem 0 0; line-height: 1.25; }
.project-client { font-size: .85rem; color: var(--tkw-muted); margin-bottom: .75rem; }
.project-card > p { font-size: .93rem; }
.project-highlights { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; }
.project-highlights li { display: flex; gap: .5rem; margin-bottom: .4rem; }
.project-highlights li .bi { color: var(--tkw-green); flex-shrink: 0; line-height: 1.5; }
.project-techs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.project-techs span {
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 6px;
    background: var(--tkw-light);
    border: 1px solid rgba(50, 145, 63, .18);
    color: var(--tkw-green-dark);
}
.project-badge {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .6rem;
    border-radius: 999px;
    color: #1d8e7f;
    background: rgba(43, 217, 192, .14);
}
