/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    /* Couleurs principales du texte */
    --color-text-dark: #ffffff;
    --color-text-dark-muted: rgba(255, 255, 255, 0.6);

    --color-text-light: #0a0a0a;
    --color-text-light-muted: rgba(0, 0, 0, 0.6);

    /* Couleur de marque / Accent */
    --color-accent: #3b82f6;
    /* Bleu électrique moderne */
    --color-accent-glow: rgba(59, 130, 246, 0.5);

    /* COULEURS DE SECTIONS (Utilisées par GSAP) */
    --bg-hero: #0a0f1d;
    /* Bleu nuit profond */
    --bg-expertise: #f8fafc;
    /* Blanc cassé / Gris très clair */
    --bg-contact: #050505;
    /* Noir intense */

    /* Typographie */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* Handle smooth scrolling in JS instead */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-hero);
    /* Couleur de départ */
    color: var(--color-text-dark);
    overflow-x: hidden;
    transition: color 0.5s ease;
}

/* =========================================
   ARRIÈRE-PLAN & TEMPLATES (Mockups)
========================================= */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-template {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.template-1 {
    width: 35vw;
    height: 50vh;
    top: 15%;
    right: -5%;
    transform: rotate(-10deg);
}

.template-2 {
    width: 25vw;
    height: 40vh;
    bottom: -15%;
    left: 2%;
    transform: rotate(15deg);
}

.template-3 {
    width: 30vw;
    height: 55vh;
    top: 25%;
    left: 30%;
    opacity: 0;
}

.template-header {
    height: 30px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.template-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.template-content.placeholder {
    flex: none;
    height: 80px;
}

/* =========================================
   TYPOGRAPHIE & LAYOUT
========================================= */
h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 600;
}

.italic {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.03em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section>.container {
    margin-top: auto;
    margin-bottom: auto;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 15, 29, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--color-accent);
}

.nav {
    display: none;
}

@media (min-width: 800px) {
    .nav {
        display: flex;
        gap: 3rem;
    }

    .nav a {
        color: inherit;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        position: relative;
        padding: 0.5rem 0;
    }

    .nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: currentColor;
        transition: width 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    }

    .nav a:hover::after {
        width: 100%;
    }
}

/* =========================================
   BOUTONS UI
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-magnetic {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-magnetic span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 1;
}

.btn-magnetic:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.btn-magnetic:hover {
    color: #000;
    border-color: #fff;
}

.btn-glow {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn-glow:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 35px var(--color-accent-glow), 0 0 70px var(--color-accent-glow);
    transform: translateY(-3px);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    text-align: left;
    padding-top: 12rem;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-dark-muted);
    max-width: 700px;
    margin-bottom: 3.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* =========================================
   CARTES (Glassmorphism)
========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 800px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 800px) {
    .cards-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   CARTES (Glassmorphism)
========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.glass-card.full-width {
    grid-column: 1 / -1;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--color-accent);
}

.glass-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.glass-card p {
    color: var(--color-text-dark-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* =========================================
   SECTION SERVICES — PREMIUM REDESIGN
========================================= */

/* Eyebrow / petite étiquette au-dessus du titre */
.svc-eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Les 3 étapes en ligne */
.svc-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 10rem;
}

@media (min-width: 900px) {
    .svc-steps {
        grid-template-columns: 1fr 60px 1fr 60px 1fr;
        align-items: stretch;
        gap: 0;
    }
}

/* Carte étape */
.svc-step-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: visible;
}

.svc-step-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(135deg, var(--color-accent), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.svc-step-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}

.svc-step-card:hover::before {
    opacity: 1;
}

/* Numéro d'étape */
.svc-step-number {
    position: absolute;
    top: -14px;
    left: 24px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--color-accent);
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

/* Cercle d'icône */
.svc-step-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-step-card:hover .svc-step-icon-wrap {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.svc-step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.svc-step-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-dark-muted);
    flex-grow: 1;
}

/* Flèche de connexion entre les étapes */
.svc-step-connector {
    display: none;
}

@media (min-width: 900px) {
    .svc-step-connector {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 60px;
    }
}

/* ---- Services inclus ---- */
.svc-included {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-top: 2rem;
}

.svc-included-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.svc-included-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.svc-included-header p {
    color: var(--color-text-dark-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 550px;
    margin: 0 auto;
}

.svc-included-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .svc-included-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .svc-included-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.svc-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.svc-feature:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.svc-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 70%, #000));
    color: #fff;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.svc-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.svc-feature-text strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.svc-feature-text span {
    font-size: 0.8rem;
    color: var(--color-text-dark-muted);
}

/* ---- Thème clair pour la section services ---- */
body.theme-light .svc-step-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

body.theme-light .svc-step-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
}

body.theme-light .svc-step-icon-wrap {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01));
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .svc-step-card p {
    color: var(--color-text-light-muted);
}

body.theme-light .svc-included {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .svc-included-header p {
    color: var(--color-text-light-muted);
}

body.theme-light .svc-feature {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.05);
}

body.theme-light .svc-feature:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .svc-feature-text span {
    color: var(--color-text-light-muted);
}

/* Sous-titre de section */
.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-text-dark-muted);
    max-width: 650px;
    margin: -1.5rem auto 3rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Barre de statistiques */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-dark-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Grille 4 colonnes pour les cartes accompagnement */
.cards-grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .cards-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cards-grid-4 .glass-card {
    padding: 2rem 1.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards-grid-4 .glass-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.cards-grid-4 .glass-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.cards-grid-4 .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Badge de confiance */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 10rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.trust-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.trust-badge p {
    color: var(--color-text-dark-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.trust-badge p strong {
    color: inherit;
    opacity: 1;
    filter: brightness(1.8);
}

/* =========================================
   SECTION COULEURS (Filtres)
========================================= */
.filters-container {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.template-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.template-grid > article {
    flex: 0 1 200px;
}

/* Cartes couleurs (ancienne section templates) */
.small-card {
    padding: 1.2rem;
    text-align: center;
    border-radius: 18px;
}

.small-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 500;
}

.card-color-preview {
    height: 80px;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.small-card:hover .card-color-preview {
    transform: scale(1.05);
}

/* Carte couleur sélectionnée */
.template-card {
    cursor: pointer;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.template-card.selected {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow), 0 12px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px) scale(1.02);
}

/* =========================================
   CONTACT FORM
========================================= */
.contact {
    text-align: center;
}

/* Réduction des marges pour la section contact */
.contact .section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--color-text-dark-muted);
    margin-bottom: 1.5rem;
}

.contact-form {
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
    padding: 2rem 2.5rem;
    position: relative;
    z-index: 2;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: inherit;
    opacity: 0.8;
    font-weight: 500;
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: inherit;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: inherit;
    opacity: 0.4;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--color-accent-glow);
}

.w-full {
    width: 100%;
}

.footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--color-text-dark-muted);
    font-size: 0.85rem;
    padding: 1.5rem 0;
}

/* =========================================
   THÈME CLAIR (Appliqué par JS au scroll)
========================================= */
body.theme-light {
    color: var(--color-text-light);
}

body.theme-light .hero-subtitle,
body.theme-light .glass-card p,
body.theme-light .contact-text,
body.theme-light .styled-list li,
body.theme-light .section-subtitle {
    color: var(--color-text-light-muted);
}

body.theme-light .stat-label {
    color: var(--color-text-light-muted);
}

body.theme-light .stats-bar {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .trust-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .trust-badge p {
    color: var(--color-text-light-muted);
}

body.theme-light .trust-badge p strong {
    filter: none;
    color: var(--color-text-light);
}

body.theme-light .bg-template {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
}

body.theme-light .template-header,
body.theme-light .template-content {
    background: rgba(0, 0, 0, 0.04);
}

body.theme-light .glass-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

body.theme-light .glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .service-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-light);
}

body.theme-light .service-badge:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--color-accent);
}

body.theme-light .filter-btn {
    border-color: rgba(0, 0, 0, 0.2);
}

body.theme-light .filter-btn:hover,
body.theme-light .filter-btn.active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

body.theme-light input,
body.theme-light textarea {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.15);
}

body.theme-light input:focus,
body.theme-light textarea:focus {
    background: rgba(0, 0, 0, 0.04);
}

/* Navbar adaptation en thème clair */
body.theme-light .header {
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--color-text-light);
}

body.theme-light .header .btn-magnetic {
    color: var(--color-text-light);
    border-color: rgba(0, 0, 0, 0.2);
}

body.theme-light .header .btn-magnetic::before {
    background: var(--color-text-light);
}

body.theme-light .header .btn-magnetic:hover {
    color: #fff;
}
/* ========================================================================
   CARROUSEL TEMPLATES
   ======================================================================== */

.templates-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 28px;
    padding: 0.5rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.template-square {
    flex: 0 0 calc((100% - 3rem) / 3);
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

body.theme-light .template-square {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

.template-square:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--color-accent-glow);
}

/* Modification du conteneur d'aperçu */
.template-preview {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    padding: 0; /* On enlève le padding pour que l'image prenne tout l'espace */
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Style de l'image thumbnail */
.template-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Permet à l'image de remplir le carré sans se déformer */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Effet de zoom fluide au survol de la carte */
.template-square:hover .template-thumb {
    transform: scale(1.08);
}

body.theme-light .template-preview {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.04) 0%,
            rgba(0, 0, 0, 0.01) 100%);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.tp-header {
    height: 8px;
    border-radius: 4px;
    background: var(--color-accent);
    opacity: 0.8;
    margin-bottom: 0.85rem;
    width: 40%;
}

.tp-line {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.5rem;
}

body.theme-light .tp-line {
    background: rgba(0, 0, 0, 0.18);
}

.tp-line-lg { width: 85%; height: 10px; }
.tp-line-md { width: 65%; }
.tp-line-sm { width: 45%; }

.tp-btn {
    width: 35%;
    height: 14px;
    border-radius: 7px;
    background: var(--color-accent);
    opacity: 0.7;
    margin-top: 0.85rem;
}

/* Preview 2 - Portfolio (grille) */
.tp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.tp-tile {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .tp-tile {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.06);
}

.tp-tile:nth-child(2) { background: var(--color-accent); opacity: 0.5; }

/* Preview 3 - Split (texte + image) */
.tp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.tp-split-right {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    min-height: 60px;
}

body.theme-light .tp-split-right {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Info (bas du carré) */
.template-info {
    flex: 1;
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.template-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-accent);
}

.template-info h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.template-info p {
    font-size: 0.82rem;
    line-height: 1.5;
    opacity: 0.7;
    margin: 0;
    flex: 1;
}

.template-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: gap 0.3s ease;
}

.template-square:hover .template-cta {
    gap: 0.7rem;
}

/* Flèches */
.carousel-arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

body.theme-light .carousel-arrow {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
}

body.theme-light .carousel-arrow:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.theme-light .carousel-dot {
    background: rgba(0, 0, 0, 0.2);
}

.carousel-dot.is-active {
    background: var(--color-accent);
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--color-accent-glow);
}

/* Responsive */
@media (max-width: 900px) {
    .template-square {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
    .carousel-track { gap: 1.5rem; }
}

@media (max-width: 640px) {
    .templates-carousel { gap: 0.5rem; }
    .template-square {
        flex: 0 0 100%;
        aspect-ratio: auto;
        min-height: 380px;
    }
    .carousel-arrow {
        width: 38px;
        height: 38px;
    }
}
/* =========================================
   OVERLAY TEMPLATE (GLASSMORPHISM PREMIUM)
========================================= */
.template-overlay {
    display: none; /* Flex via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 7, 12, 0.85); /* Fond nuit profond */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.template-overlay.active {
    opacity: 1;
}

/* La modale reprend l'esprit des .glass-card */
.template-modal {
    width: 94%;
    height: 94%;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03); /* Transparence subtile */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(30px) scale(0.98);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.template-overlay.active .template-modal {
    transform: translateY(0) scale(1);
}

/* En-tête de la modale */
.template-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
}

.template-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Le point lumineux dynamique (prend la couleur du thème choisi) */
.template-modal-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent-glow);
}

.template-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.02em;
}

/* Bouton fermer assorti aux filtres */
.overlay-close-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* Conteneur de l'Iframe */
.template-iframe-container {
    flex-grow: 1;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #fff; /* Fond blanc obligatoire pour que les sites chargés s'affichent bien */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.template-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =========================================
   ADAPTATION THEME CLAIR
========================================= */
body.theme-light .template-modal {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

body.theme-light .template-modal-header h3 {
    color: var(--color-text-light);
}

body.theme-light .overlay-close-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text-light-muted);
}

body.theme-light .overlay-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

body.theme-light .template-iframe-container {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .template-modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 1rem;
    }
    .template-iframe-container {
        border-radius: 12px;
    }
}

/* =========================================
   RESPONSIVE MOBILE
========================================= */

/* --- Hamburger button --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    color: inherit;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.25s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- Show hamburger, hide desktop CTA --- */
@media (max-width: 799px) {
    .hamburger { display: flex; }
    .header-cta { display: none; }
    .header { padding: 1rem 1.25rem; }
}

/* --- Mobile nav overlay --- */
@media (max-width: 799px) {
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 15, 29, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1050;
    }

    .nav.is-open { display: flex; }

    .nav a {
        color: #fff;
        text-decoration: none;
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        opacity: 0.9;
        transition: opacity 0.2s ease;
    }

    .nav a:hover { opacity: 1; }


}

/* --- Hero --- */
@media (max-width: 799px) {
    .hero { padding-top: 7rem; }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* --- Stats bar: 4 cols → 2×2 --- */
@media (max-width: 640px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
}

/* --- Glass cards --- */
@media (max-width: 640px) {
    .glass-card { padding: 2rem 1.5rem; }
}

/* --- Services steps margin --- */
@media (max-width: 640px) {
    .svc-steps { margin-bottom: 3rem; }
    .svc-included { padding: 1.5rem 1.25rem; }
}

/* --- Trust badge margin --- */
@media (max-width: 640px) {
    .trust-badge { margin-top: 6rem; }
}

/* --- Section suivi : supprime le centrage vertical sur mobile (trop de contenu) --- */
@media (max-width: 640px) {
    #suivi.section {
        min-height: unset;
        justify-content: flex-start;
        padding: 3rem 0;
    }
}

/* --- Container padding réduit sur mobile --- */
@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    #contact.section { padding: 3rem 0; min-height: unset; }
}

/* --- Contact form --- */
@media (max-width: 640px) {
    .contact-form { padding: 1.5rem 1.25rem; }
}
