/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --border: #334155;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* CRUCIAL pour le mobile */
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Empêche le scroll horizontal global */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TYPOGRAPHIE & BOUTONS --- */
.text-gradient {
    background: linear-gradient(to right, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.btn-secondary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: transparent;
}

/* --- HEADER & NAVIGATION --- */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

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

.nav {
    display: flex;
    align-items: center;
}

/* Liens de navigation principaux */
.nav>a,
.dropdown-trigger {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.nav>a:hover,
.dropdown-trigger:hover {
    color: var(--primary);
}

/* --- NOUVEAU : Classe ajoutée par le JS pour le lien actif --- */
.active-link {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Styles du Menu Déroulant (Dropdown) - VERSION BUREAU */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    /* Sort du flux sur Desktop */
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Liens à l'intérieur du dropdown */
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
    margin: 0;
}

.dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.dropdown-menu a i {
    font-size: 1.2rem;
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- POPUP / MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--border);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 25%;
    transition: width 0.3s ease;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

/* Options Grid */
.grid-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.option-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.option-card i {
    font-size: 2rem;
    color: var(--primary);
}

.option-card input {
    display: none;
}

.option-card:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
}

.option-card:has(input:checked) i,
.option-card:has(input:checked) span {
    color: white;
}

/* Options List */
.list-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-pill input {
    display: none;
}

.radio-pill:hover {
    border-color: var(--primary);
}

.radio-pill:has(input:checked) {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
}

.form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- FOOTER --- */
.footer {
    background: #0b1120;
    padding: 80px 0 30px;
    margin-top: 100px;
    /* Espace avec la section précédente */
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    /* 1 colonne large pour le logo/desc, et 3 colonnes égales pour les liens */
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
    /* Aligne tout le contenu en haut */
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* La description sous le logo */
.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 20px;
    margin-bottom: 25px;
    /* Espace avant le logo Insta */
    max-width: 300px;
    line-height: 1.6;
}

/* Liens du footer */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
    /* Petit effet de glissement au survol */
}

/* Logo Instagram */
.social-links {
    display: flex;
    gap: 15px;
    /* Pas de margin-top ici car c'est géré par le margin-bottom de .footer-desc */
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    /* Logo un peu plus gros */
    transition: all 0.3s ease;
    display: flex;
    /* Pour bien centrer l'icône si besoin */
}

.social-links a:hover {
    color: #E1306C;
    /* La couleur officielle d'Instagram (rose/rouge) */
    transform: translateY(-3px);
    /* Petit saut au survol */
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}



/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {

    /* Ajustement taille titre */
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Footer en colonne */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .grid-options {
        grid-template-columns: 1fr;
    }

    /* --- MENU BURGER MOBILE --- */
    .menu-toggle {
        display: block;
        z-index: 101;
    }

    .header .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 20px 0 40px;
        border-bottom: 1px solid var(--border);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        display: flex;
        box-sizing: border-box;
    }

    .header .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header .nav>a,
    .dropdown-trigger {
        margin: 15px 0;
        font-size: 1.2rem;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* --- DROPDOWN MOBILE (CORRECTION DU BUG DE GLISSEMENT) --- */
    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .dropdown-menu {
        /* 1. On annule le positionnement du PC */
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
        /* Force l'annulation du centrage PC */

        /* 2. LA LIGNE MAGIQUE : On interdit l'animation de déplacement */
        transition: none !important;

        background: rgba(255, 255, 255, 0.03);
        width: 100%;
        min-width: 0;
        box-sizing: border-box;

        box-shadow: none;
        border: none;
        text-align: center;

        /* Caché par défaut */
        display: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        margin-top: 10px;
    }

    /* Désactive l'effet hover du bureau */
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    /* Affiché seulement si classe .active présente */
    .dropdown.active .dropdown-menu {
        display: flex;
        /* On garde une petite animation d'apparition vers le bas, mais pas de gauche/droite */
        animation: slideDown 0.3s ease forwards;
    }

    .dropdown.active .dropdown-trigger i {
        transform: rotate(180deg);
        color: var(--primary);
    }

    .dropdown-menu a {
        padding: 15px;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        white-space: normal;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* --- UTILITAIRES DE SECTION --- */
.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background: rgba(255, 255, 255, 0.02);
    /* Fond très légèrement différent */
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Petite décoration (le point au dessus du titre comme sur la capture) */
.circle-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* --- GRILLE DES SERVICES (LA DEMANDE PRINCIPALE) --- */
.services-grid {
    display: grid;
    /* Création automatique de colonnes : 3 sur PC, 2 sur Tablette, 1 sur Mobile */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    /* Couleur gris foncé */
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Les boîtes d'icônes colorées */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

/* Dégradés pour les icônes comme sur la capture */
.icon-box.purple {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.icon-box.blue {
    background: linear-gradient(135deg, #3b82f6, #2dd4bf);
}

.icon-box.indigo {
    background: linear-gradient(135deg, #4f46e5, #ec4899);
}

.icon-box.pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.icon-box.violet {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.icon-box.cyan {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: white;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Pousse le lien vers le bas pour aligner */
}

.learn-more {
    color: #3b82f6;
    /* Bleu clair */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.learn-more:hover {
    gap: 10px;
    /* La flèche bouge au survol */
    color: #60a5fa;
}

/* --- SECTION PROCESS (PRO) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 20px;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    /* Très subtil en fond */
    display: block;
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.process-step h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    color: var(--primary);
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.1));
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --- RESPONSIVE ACCUEIL --- */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        /* Une seule colonne pour le process */
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Cartes en pile sur mobile */
    }
}

/* --- PAGES SPÉCIFIQUES (Site Vitrine, etc.) --- */

/* Intro Text */
.section-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Modification de la grille Process pour 4 étapes */
.process-grid.four-steps {
    grid-template-columns: repeat(4, 1fr);
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Section FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: var(--border);
    /* Ou var(--primary) si tu veux de la couleur */
    background: rgba(255, 255, 255, 0.03);
}

.faq-title {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-title i {
    color: var(--primary);
    font-size: 1.3rem;
}

.faq-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- RESPONSIVE SPÉCIFIQUE --- */
@media (max-width: 992px) {

    /* Sur tablette, on passe les 4 étapes en 2 lignes de 2 */
    .process-grid.four-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Sur mobile, tout en colonne */
    .process-grid.four-steps {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SECTION PROJETS (Pour projets.html) --- */

.projects-grid {
    display: grid;
    /* On passe de 350px à 500px pour forcer des cartes larges comme avant */
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.project-image-wrapper {
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

/* Dans ton fichier assets/style.css */

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* --- AJOUTE CETTE LIGNE --- */
    object-position: top center;
    /* -------------------------- */

    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.project-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    margin-top: auto;
    /* Pousse la liste vers le bas si le texte est court */
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.project-features li i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Bouton pleine largeur pour les cartes */
.full-width {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Dans ton fichier assets/style.css */



/* Responsive pour mobile */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image-wrapper {
        height: 200px;
    }
}

/* --- SECTION A PROPOS (apropos.html) --- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Image et cadre */
.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Important si l'image dépasse */
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    /* Petit effet d'ombre pour donner du volume */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Badge "100% Engagé" flottant sur l'image */
.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    /* Effet flou */
}

.exp-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.exp-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Texte de présentation */
.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Statistiques (3+ ans, etc.) */
.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    /* Ou var(--text-color) */
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- BOITE A OUTILS (Skills) --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    /* Forme pilule */
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Mobile */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        /* Une seule colonne sur mobile */
        gap: 2rem;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-width: 400px;
        /* Limite la taille de l'image sur mobile */
        margin: 0 auto;
    }
}

/* --- PAGE CONTACT (contact.html) --- */

.hero-contact {
    padding: 8rem 0 4rem 0;
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Le formulaire prend 2/3, la sidebar 1/3 */
    gap: 3rem;
    align-items: start;
}

/* --- FORMULAIRE --- */
.contact-form-container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Styles des champs (input, textarea, select) */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Style spécifique pour le select */
.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.contact-form select {
    appearance: none;
    /* Enlève la flèche par défaut du navigateur */
    cursor: pointer;
}

/* --- SIDEBAR (Infos & Insta) --- */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-card h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: white;
    text-decoration: underline;
}

/* Couleur spéciale Instagram */
.gradient-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    border: none !important;
}

/* Responsive Mobile */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        /* Tout sur une colonne */
    }

    .form-row {
        grid-template-columns: 1fr;
        /* Champs nom/prénom l'un sous l'autre */
        gap: 0;
    }

    .contact-sidebar {
        order: -1;
        /* Optionnel : met les infos AVANT le formulaire sur mobile */
        margin-bottom: 2rem;
    }
}

/* --- CORRECTION POPUP MOBILE --- */
@media (max-width: 768px) {

    /* 1. Rendre le popup défilable et adapté à l'écran */
    .modal-container {
        width: 95%;
        /* Prend presque toute la largeur */
        max-height: 85vh;
        /* Ne dépasse jamais 85% de la hauteur de l'écran */
        overflow-y: auto;
        /* Active le scroll vertical SI nécessaire */
        padding: 1.5rem;
        /* Un peu moins de marge intérieure */
        margin-top: 20px;
        /* Petite marge en haut */
    }

    /* 2. Passer les options en 2 colonnes (comme sur PC mais en petit) */
    .grid-options {
        grid-template-columns: 1fr 1fr;
        /* 2 colonnes égales */
        gap: 10px;
        /* Espace réduit entre les cartes */
    }

    /* 3. Réduire la taille des cartes pour qu'elles rentrent mieux */
    .option-card {
        padding: 1rem 0.5rem;
        /* Moins de padding */
        min-height: 100px;
        /* Hauteur minimale réduite */
    }

    .option-card i {
        font-size: 1.5rem;
        /* Icône un peu plus petite */
        margin-bottom: 0.5rem;
    }

    .option-card span {
        font-size: 0.85rem;
        /* Texte un peu plus petit */
    }

    /* 4. Ajuster la liste des budgets (Step 2) */
    .list-options {
        display: grid;
        grid-template-columns: 1fr;
        /* Une colonne pour les budgets, c'est mieux lisible */
        gap: 10px;
    }

    .radio-pill {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* 5. S'assurer que les titres ne sont pas trop gros */
    .form-step h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}

/* --- BANDEAU COOKIES --- */

/* =========================================
   GESTION DES COOKIES (Bandeau + Popup)
   ========================================= */

/* --- 1. LE BANDEAU (Ton code actuel) --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Boutons du bandeau */
.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    /* Un peu moins d'espace pour faire tenir 3 boutons */
    justify-content: flex-end;
}

.btn-cookie-outline,
.btn-cookie-primary {
    padding: 0.8rem 1rem;
    /* Padding ajusté */
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    /* Empêche le texte de passer à la ligne */
}

.btn-cookie-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
}

.btn-cookie-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-cookie-primary {
    background: white;
    border: 1px solid white;
    color: black;
}

.btn-cookie-primary:hover {
    background: #e0e0e0;
}

/* --- 2. LE POPUP DE PRÉFÉRENCES (Nouveau) --- */

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--card-bg);
    /* Utilise la couleur de tes cartes */
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.active .cookie-modal-content {
    transform: translateY(0);
}

.close-cookie-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cookie-modal:hover {
    color: white;
}

.cookie-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cookie-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cookie-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option-item:last-child {
    border-bottom: none;
}

.option-info {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 600;
    font-size: 1rem;
    color: white;
}

.option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- 3. LES SWITCHS (Interrupteurs iOS style) --- */
/* --- CORRECTION SWITCH IOS (Vert) --- */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
    /* Un peu plus haut pour être tactile */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3a3a3c;
    /* Gris foncé quand éteint (Style iOS Dark) */
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    /* Boule blanche */
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s cubic-bezier(0.25, 0.1, 0.25, 1.3);
    /* Petit effet de rebond */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* C'est ici qu'on met le VERT IOS (#34C759) */
input:checked+.slider {
    background-color: #34C759;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Switch verrouillé (pour les cookies obligatoires) */
.slider.locked {
    background-color: #34C759;
    /* Vert aussi car il est actif */
    opacity: 0.6;
    /* Un peu transparent pour montrer qu'on ne peut pas toucher */
    cursor: not-allowed;
}

.slider.locked:before {
    transform: translateX(20px);
}

/* --- CORRECTION CROIX DE FERMETURE --- */
.close-cookie-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    /* Petit fond pour mieux la voir */
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10050;
    /* Z-INDEX TRÈS ÉLEVÉ POUR ÊTRE SÛR QU'ELLE EST CLIQUABLE */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-cookie-modal:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- 4. RESPONSIVE (Important pour Mobile) --- */
@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        padding: 1.2rem;
    }

    .cookie-buttons {
        flex-direction: column;
        /* Boutons l'un sous l'autre */
        width: 100%;
        gap: 0.8rem;
    }

    .cookie-content {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Le bouton "Tout accepter" en premier visuellement grâce à l'ordre flex */
    #btnAccept {
        order: -1;
    }
}

/* Responsive Mobile */
@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        /* Arrondi seulement en haut */
        max-width: 100%;
    }

    .cookie-buttons {
        flex-direction: column;
        /* Boutons l'un sous l'autre */
        width: 100%;
    }

    .cookie-content {
        flex-direction: row;
    }
}

/* --- PAGE MENTIONS LÉGALES (legals.html) --- */

.hero-small {
    padding: 8rem 0 3rem 0;
    background-color: var(--bg-color);
}

.legal-content {
    max-width: 800px;
    /* On limite la largeur pour que ce soit lisible */
    margin: 0 auto;
}

.legal-block {
    margin-bottom: 3rem;
}

.legal-block h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.legal-block h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.legal-block p,
.legal-block ul li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-block ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-block a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-block a:hover {
    text-decoration: underline;
}

.legal-separator {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 3rem 0;
}

/* --- PAGES LÉGALES (Politique & Mentions) --- */

.hero-small {
    padding: 8rem 0 3rem 0;
    background-color: var(--bg-color);
    /* Fond sombre simple */
}

/* Conteneur texte centré et pas trop large */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-intro {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.separator {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0 3rem 0;
}

/* Sections */
.policy-section {
    margin-bottom: 3.5rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.policy-section ul li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.policy-section strong {
    color: var(--text-color);
    /* Met le gras en blanc plus vif */
}

/* Liens dans le texte */
.link-highlight {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.link-highlight:hover {
    text-decoration: underline;
}

/* Boîte d'alerte / engagement */
.alert-box {
    background: rgba(168, 85, 247, 0.1);
    /* Fond violet très léger */
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.alert-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.alert-box p {
    margin: 0;
    font-size: 0.95rem;
    color: white;
}

/* --- CHATBOT PREMIUM --- */

.chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    /* Juste en dessous du modal cookie/popup */
    font-family: 'Outfit', sans-serif;
}

/* --- BOUTON FLOTTANT (TRIGGER) --- */
.chat-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Effet rebond */
    position: relative;
}

.chat-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.6);
}

.chat-trigger i {
    font-size: 1.8rem;
    color: white;
    position: absolute;
    transition: all 0.3s ease;
}

/* Animation icône (Passer de Bulle à Croix) */
.chat-trigger .close-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.chat-trigger .open-icon {
    opacity: 1;
    transform: rotate(0);
}

.chatbot-wrapper.active .chat-trigger .close-icon {
    opacity: 1;
    transform: rotate(0);
}

.chatbot-wrapper.active .chat-trigger .open-icon {
    opacity: 0;
    transform: rotate(90deg);
}

/* Badge de notification (Le petit "1" rouge) */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #1a1a1a;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* --- FENÊTRE DE CHAT --- */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(20, 20, 25, 0.95);
    /* Très sombre */
    backdrop-filter: blur(15px);
    /* Effet verre */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Animation d'entrée */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.chatbot-wrapper.active .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar-container {
    position: relative;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

.chat-info h3 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.status-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.close-chat-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
}

.close-chat-btn:hover {
    opacity: 1;
}

/* Body */
.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date-divider {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.message.bot {
    align-self: flex-start;
    max-width: 85%;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px 12px 12px 2px;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-time {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

/* Options / Boutons */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.option-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
}

.option-btn:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

/* Footer (Input) */
.chat-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

.chat-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.send-btn {
    background: var(--primary-color);
    border: none;
    width: 40px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        /* Presque toute la largeur */
        right: 0;
        bottom: 80px;
        height: 60vh;
    }
}

/* --- CORRECTION MOBILE CHATBOT --- */
@media (max-width: 768px) {

    /* 1. On s'assure que le wrapper est bien au-dessus de tout */
    .chatbot-wrapper {
        z-index: 2147483647;
        /* Z-index maximum possible */
        bottom: 20px;
        right: 20px;
    }

    /* 2. Le bouton déclencheur un peu plus petit sur mobile */
    .chat-trigger {
        width: 55px;
        height: 55px;
    }

    /* 3. LA FENÊTRE DE CHAT : On force sa position et sa taille */
    .chat-window {
        position: fixed;
        /* Très important : fixe par rapport à l'écran */
        bottom: 90px !important;
        /* Juste au-dessus du bouton */
        right: 20px !important;
        left: 20px !important;
        /* On l'étire de gauche à droite */
        width: auto !important;
        /* On annule la largeur fixe PC */
        height: 60vh !important;
        /* 60% de la hauteur de l'écran */
        max-height: 500px;
        margin: 0;

        /* On s'assure qu'elle est visible quand active */
        transform-origin: bottom right;
    }

    /* 4. Ajustement du corps du message pour scroller */
    .chat-body {
        max-height: none;
    }
}