/* ==========================================================================
   1. VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    /* --- Palette Client --- */
    --mauve-fonce: #925E78;
    --lavande-pale: #BD93BD;
    --blanc-casse: #F2EDEB;
    --corail: #F05365;
    --moutarde: #FABC2A;
    
    /* --- Couleurs Structurelles --- */
    --blanc: #FFFFFF;
    --bg-alt: #FAFAFA;
    --gris-texte: #4a4a4a;
    --noir-overlay: rgba(0, 0, 0, 0.95);
    
    /* --- Dégradés --- */
    --gradient-main: linear-gradient(135deg, var(--corail) 0%, var(--moutarde) 100%);
    --gradient-hover: linear-gradient(135deg, var(--moutarde) 0%, var(--corail) 100%);

/* --- Dimensions & Espacements --- */
    --container-width: 1200px;
    --container-tv: 1600px;
    --nav-height: 80px;      /* Desktop */
    --nav-height-mobile: 65px; /* Mobile (plus fin pour gagner de l'espace) */
    --border-radius: 20px;
}

/* ==========================================================================
   2. RESET & GLOBAL
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    font-size: 100%; /* Base 16px */
    /* IMPORTANT : On retire overflow-x: hidden d'ici pour éviter le double scroll */
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--blanc);
    color: var(--gris-texte);
    line-height: 1.6;
    
    /* Gestion correcte de la largeur et du débordement */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* On le garde UNIQUEMENT sur le body */
    
    position: relative;
}
/* --- Typographie Fluide (S'adapte automatiquement de Mobile à TV) --- */
/* Utilisation de clamp(min, ideal, max) pour éviter les media queries excessives */

h1, h2, h3, h4 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    color: var(--mauve-fonce);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    margin-bottom: 20px; 
}

h2 { 
    font-size: clamp(1.8rem, 3vw, 2.8rem); 
    margin-bottom: 30px; 
}

h3 { 
    font-size: clamp(1.3rem, 2vw, 1.8rem); 
    margin-bottom: 40px; 
}

h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
}

a { text-decoration: none; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Utilitaires --- */
.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.centered-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-marge {
    margin-top:50px;
}

.bg-light-alt { background-color: var(--bg-alt); }

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.highlight-corail { color: var(--corail); }
.highlight-moutarde { color: var(--moutarde); }

/* ==========================================================================
   3. NAVIGATION & MENU BURGER (OPTIMISÉ MOBILE)
   ========================================================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%; /* Utilisation de % pour éviter que le logo colle aux bords sur tablettes */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Support Safari */
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: height 0.3s ease, background 0.3s ease;
}

/* Logo */
.nav-left { flex: 1; display: flex; align-items: center; z-index: 1002; /* Le logo reste au dessus du menu */ }
.nav-logo { 
    height: 60%; /* Relatif à la hauteur de la nav */
    max-height: 120px; 
    width: auto; 
    object-fit: contain; 
    transition: 0.3s; 
}
.nav-logo:hover { transform: scale(1.05); }

/* Liens Desktop */
.nav-links {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.nav-links a {
    color: var(--gris-texte);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0; /* Zone de clic légèrement augmentée */
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0;
    background: var(--corail);
    transition: 0.3s;
}
.nav-links a:hover { color: var(--corail); }
.nav-links a:hover::after { width: 100%; }

/* Bouton Contact (Desktop) */
.nav-right { flex: 1; display: flex; justify-content: flex-end; }
.btn-nav {
    padding: 10px 25px;
    border: 2px solid var(--corail);
    border-radius: 50px;
    color: var(--corail) !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}
.btn-nav:hover {
    background: var(--corail);
    color: white !important;
    box-shadow: 0 5px 15px rgba(240, 83, 101, 0.3);
}

/* --- MENU BURGER (Mobile & Tablette) --- */
.menu-toggle, .mobile-only { display: none; }

/* Styles utilitaires JS */
body.no-scroll { overflow: hidden; } /* Bloque le scroll arrière-plan */

/* --- MEDIA QUERY NAVIGATION (< 992px) --- */
@media (max-width: 992px) {
    nav { 
        height: var(--nav-height-mobile); 
        padding: 0 20px;
    }

    .nav-logo { height: 45px; } /* Logo plus petit sur mobile */
    .nav-right { display: none; } 
    
    /* Bouton Burger Style */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px; height: 45px;
        background: transparent;
        border: none;
        color: var(--corail);
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 10020; /* Toujours au-dessus de tout */
        margin-left: auto;
        padding: 0;
        transition: transform 0.3s ease;
    }
    
    /* Animation de rotation quand le menu est ouvert */
    .menu-toggle.active {
        transform: rotate(90deg);
        color: var(--blanc); /* Devient blanc sur fond sombre */
    }

    .nav-links { display: none; }
    .mobile-only { display: block; margin-top: 20px; }

    /* MENU OUVERT (Overlay Plein Écran) */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0; /* Raccourci pour top:0, right:0, bottom:0, left:0 */
        width: 100vw;
        height: 100vh;
        /* Dégradé subtil sombre */
        background: linear-gradient(135deg, rgba(20,20,20,0.98) 0%, rgba(40,20,30,0.98) 100%);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        gap: 8vh; /* Espacement vertical responsive */
        padding: 80px 20px 40px 20px; /* Padding top pour ne pas chevaucher le logo */
        
        /* Animation d'entrée */
        opacity: 0;
        animation: fadeInMenu 0.4s ease forwards;
        
        /* Gestion du scroll interne si téléphone en mode paysage */
        overflow-y: auto; 
    }

    .nav-links.active a {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        color: var(--blanc);
        font-family: 'Exo 2', sans-serif;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 1px;
        transition: 0.3s;
        /* Suppression de la ligne au survol sur mobile pour un style plus "app" */
    }
    .nav-links.active a::after { display: none; } 

    .nav-links.active a:hover { 
        color: var(--moutarde);
        transform: scale(1.1);
    }
    
    /* Bouton Contact dans le menu mobile */
    .nav-links.active .btn-nav {
        border-color: var(--blanc);
        color: var(--blanc) !important;
        font-size: 1.2rem;
        padding: 15px 40px;
        margin-top: 10px;
    }
    .nav-links.active .btn-nav:hover {
        background: var(--blanc);
        color: var(--mauve-fonce) !important;
    }
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. HERO SECTION (ACCUEIL)
   ========================================================================== */
header {
    min-height: 100vh; /* S'adapte à la hauteur de l'écran */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 20px;
    background: radial-gradient(circle at top right, #fff5f5, #fff);
    text-align: center;
    padding-top: calc(var(--nav-height) + 40px);
}

@media (max-width: 768px) {
    header {
        /* Plus d'espace en haut sur mobile pour aérer */
        padding-top: calc(var(--nav-height-mobile) + 60px); 
        padding-bottom: 60px;
        min-height: auto; /* Évite de forcer 100vh sur petits écrans paysage */
    }
    
    .hero-content {
        width: 100%;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    z-index: 1;
}

.hero-logo { 
    width: clamp(140px, 15vw, 220px); /* Taille adaptative */
    margin-bottom: 30px; 
    animation: float 6s ease-in-out infinite; 
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--mauve-fonce);
    margin-bottom: 70px;
    font-weight: 500;
}

/* Groupe de Boutons */
.cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(240, 83, 101, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(240, 83, 101, 0.5); }

.btn-secondary {
    background: white;
    color: var(--corail);
    border: 2px solid var(--corail);
}
.btn-secondary:hover { background: var(--corail); color: white; }

/* Orbes Décoratifs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}
.orb-corail { width: 500px; height: 500px; background: var(--corail); top: -100px; right: -150px; }
.orb-moutarde { width: 400px; height: 400px; background: var(--moutarde); bottom: -50px; left: -100px; }

/* Assurez-vous que sur mobile, le conteneur ne dépasse pas */
@media (max-width: 768px) {
    .container, header, section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   5. SECTIONS CONTENU (NOUS CONNAITRE)
   ========================================================================== */
section { padding: 80px 0; }

.section-title { margin-bottom: 15px; }
.section-desc { text-align: center; color: #777; margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- 5.1 Histoire & Stats --- */
.about-story-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap; 
}

.story-text { 
    flex: 2 1 400px; /* Prend plus de place, min 400px */
    text-align: left; 
}
.story-text h3 { text-align: left; margin-bottom: 15px; }

.stat-box {
    flex: 1 1 300px;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--corail);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-number { 
    display: block; 
    font-size: 3.5rem; 
    font-weight: 800; 
    color: var(--corail); 
    line-height: 1; 
}

/* --- 5.2 Grille Missions --- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Auto-responsive */
    gap: 25px;
    width: 100%;
}

.mission-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.mission-card:hover { transform: translateY(-5px); border-color: var(--moutarde); }
.icon-small { font-size: 2.5rem; margin-bottom: 15px; color: var(--mauve-fonce); }

/* --- 5.3 Section ADN (Values) --- */
#notre-adn {
    background-color: var(--mauve-fonce);
    padding: 100px 20px;
    position: relative;
    margin-top: 60px;
}

.sub-title-white {
    color: var(--blanc);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 60px;
    text-align: center;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.value-point {
    border: 2px solid var(--corail);
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: 0.3s;
    height: 100%;
}
.value-point:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    border-color: var(--moutarde);
}

.value-point h4 { color: var(--moutarde); text-align: left; display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.value-point p { color: #f0f0f0; text-align: left; }

/* ==========================================================================
   6. SECTION NOS OFFRES (PRICING)
   ========================================================================== */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Permet le passage à la ligne sur mobile/tablette */
    align-items: stretch; /* Hauteur égale */
    margin-bottom: 60px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    width: 350px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: 0.3s;
}
.pricing-card:hover { transform: translateY(-10px); border-color: var(--moutarde); }

/* Pack Populaire */
.pricing-card.popular {
    border: 2px solid var(--corail);
    transform: scale(1.05);
    z-index: 2;
}
.pricing-card.popular:hover { transform: scale(1.05) translateY(-10px); }

.pack-icon { font-size: 2.5rem; margin-bottom: 15px; color: var(--corail); }
.card-header { text-align: center; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }

.price-main { font-size: 2.5rem; font-weight: 800; color: var(--mauve-fonce); line-height: 1; }
.price-prefix { font-size: 0.85rem; color: #888; text-transform: uppercase; display: block; margin-bottom: 5px; }

.features-list { margin: 20px 0; flex-grow: 1; }
.features-list li { margin-bottom: 15px; font-size: 0.95rem; display: flex; align-items: flex-start; gap: 10px; text-align: left; }
.features-list li.disabled { color: #ccc; text-decoration: line-through; }
.features-list small { display: block; color: #999; font-size: 0.8em; margin-top: 2px; }

/* Options à la carte */
.options-container { border-top: 1px solid #eee; padding-top: 40px; }
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
    min-width: 300px;
}


.option-card {
    background: var(--blanc-casse);
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    text-align: center;
}
.option-card:hover { background: white; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-color: var(--lavande-pale); }
.opt-price { display: block; font-weight: 700; color: var(--corail); margin: 10px 0; }

/* ==========================================================================
   7. PORTFOLIO (CAROUSEL INFINI)
   ========================================================================== */
.carousel-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Centrage pleine largeur */
    overflow: hidden;
    padding: 60px 0;
    /* Masque dégradé sur les bords */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 40px;
    width: max-content;
    padding-left: 40px;
    animation: scroll-infinite 40s linear infinite;
}

/* Pause l'animation au survol */
.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Défilement de la moitié (contenu dupliqué) */
}

/* Cartes Portfolio */
.portfolio-card {
    min-width: 350px;
    max-width: 350px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.02);
    display: block;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: var(--moutarde);
}

/* Image avec Overlay */
.portfolio-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(146, 94, 120, 0.85); /* Mauve transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.portfolio-card:hover .overlay { opacity: 1; }
.portfolio-card:hover img { transform: scale(1.1); }

.btn-visit-visual {
    padding: 12px 30px;
    background: white;
    color: var(--mauve-fonce);
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.portfolio-content { padding: 25px; text-align: left; }
.portfolio-content h3 { font-size: 1.3rem; margin-bottom: 8px; text-align: left; }

.tech-tag {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--blanc-casse);
    color: #666;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   8. BLOG & ARTICLES
   ========================================================================== */
/* Liste des articles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--moutarde);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-thumb { height: 220px; overflow: hidden; position: relative; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.1); }

.blog-card-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.85rem; color: #999; font-weight: 600; margin-bottom: 10px; display: block; }
.blog-card-content h3 { font-size: 1.3rem; text-align: left; margin-bottom: 15px; color: var(--mauve-fonce); }
.blog-card-content p { font-size: 0.95rem; color: #666; margin-bottom: 20px; flex-grow: 1; }

.link-arrow {
    font-weight: 700; color: var(--corail); font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.blog-card:hover .link-arrow { gap: 12px; color: var(--moutarde); }

/* --- PAGE ARTICLE UNIQUE --- */
.article-header-wrapper {
    background: radial-gradient(circle at center, #fff5f5, #fff);
    padding: 150px 0 60px 0;
    text-align: center;
}

.article-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

.article-main-image {
    width: 100%; height: auto; max-height: 500px;
    overflow: hidden; border-radius: 20px;
    margin-top: -40px; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}
.article-main-image img { width: 100%; height: 100%; object-fit: cover; }

.article-content-text { font-size: 1.1rem; line-height: 1.8; color: var(--gris-texte); text-align: left; }
.article-content-text h2 {
    color: var(--mauve-fonce); margin-top: 40px; margin-bottom: 20px;
    border-left: 5px solid var(--moutarde); padding-left: 20px; text-align: left;
}
.article-content-text ul {
    background: var(--bg-alt); padding: 30px; border-radius: 15px; margin-bottom: 25px;
}
.article-content-text li { display: flex; gap: 10px; margin-bottom: 10px; }

/* Partage */
.share-box {
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
    padding: 30px 0; margin-top: 60px; text-align: center;
}
.share-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.btn-share {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white; transition: 0.3s;
}
.btn-share.linkedin { background: #0077b5; }
.btn-share.facebook { background: #3b5998; }
.btn-share:hover { transform: translateY(-5px) rotate(10deg); }

/* ==========================================================================
   9. PAGES LÉGALES
   ========================================================================== */
.legal-container {
    max-width: 900px;
    margin: 120px auto 60px auto;
    background-color: var(--blanc);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.02);
}

.legal-container h1 { font-size: 2.5rem; margin-bottom: 40px; }
.legal-container h2 {
    font-size: 1.6rem; border-bottom: 3px solid var(--moutarde);
    padding-bottom: 10px; margin-top: 50px; display: inline-block;
}
.legal-container p { text-align: justify; margin-bottom: 15px; }

.legal-block {
    background-color: var(--bg-alt);
    padding: 30px; border-radius: 15px; margin-bottom: 30px;
    border-left: 5px solid var(--moutarde);
}

/* ==========================================================================
   10. FOOTER & FORMULAIRES
   ========================================================================== */
.clean-form {
    background: white; padding: 40px; border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    width: 100%; max-width: 700px; margin: 0 auto;
}

.form-row { display: flex; gap: 20px; margin-bottom: 20px; }

input, textarea {
    width: 100%; padding: 15px;
    border: 2px solid #eee; border-radius: 10px;
    font-family: 'Montserrat', sans-serif; font-size: 1rem;
    transition: 0.3s; background: #fdfdfd;
}
input:focus, textarea:focus {
    border-color: var(--moutarde); outline: none; background: white;
}
textarea { height: 150px; resize: none; }

/* --- PIED DE PAGE --- */
.pied-de-page {
    background-color: var(--blanc);
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 80px;
    color: var(--gris-texte);
}

.contenu-footer {
    max-width: 1000px;
    margin: 0 auto;
}

.pied-de-page p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--gris-texte);
}

.lien-contact {
    color: var(--corail);       /* Rose Corail */
    font-weight: 600;           /* Très gras */
    font-size: 1.4rem;          /* Agrandissement significatif */
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    border-bottom: 2px solid transparent;
    line-height: 1.4;
}

.lien-contact:hover {
    transform: scale(1.05);     /* Zoom léger */
    color: var(--corail);       /* RESTE ROSE (pas de jaune) */
    text-shadow: 0 4px 10px rgba(240, 83, 101, 0.3); /* Petite lueur rose */
    border-bottom: 2px solid var(--corail); /* Souligné rose */
}

.liens-footer {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.liens-footer a {
    color: var(--gris-texte);
    font-weight: 500;
    font-size: 1rem;
    transition: 0.2s;
}

.liens-footer a:hover {
    color: var(--corail);
    transform: translateY(-2px);
}

.reseaux-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.reseaux-footer a {
    color: var(--mauve-fonce);
    font-size: 26px;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.reseaux-footer a:hover {
    color: var(--corail);
    transform: scale(1.2) rotate(10deg);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .pied-de-page { padding: 40px 15px; }
    .pied-de-page p { font-size: 1rem; }
    .liens-footer { flex-direction: column; gap: 15px; }
}

/* ==========================================================================
   11. ANIMATIONS & POPUPS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s; }
.reveal.active { opacity: 1; transform: translateY(0); }

.popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); display: none;
    justify-content: center; align-items: center; z-index: 9999;
    backdrop-filter: blur(5px);
}

.popup-contenu {
    background: white; padding: 30px 40px; border-radius: 15px;
    text-align: center; font-weight: 600; font-size: 1.1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: popupPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%; cursor: pointer;
}

.popup-success { border-left: 8px solid #4CAF50; color: #2E7D32; }
.popup-error { border-left: 8px solid #F05365; color: #C62828; }

@keyframes popupPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   12. MEDIA QUERIES (RESPONSIVE TOTAL)
   ========================================================================== */

/* --- A. ÉCRANS TV & TRÈS LARGES (Min 1600px) --- */
@media (min-width: 1600px) {
    :root { 
        --container-width: 1500px; /* Contenu plus large */
    }
    
    html { font-size: 18px; } /* Tout grossit proportionnellement */
    
    .pricing-card { width: 400px; padding: 50px; }
    .portfolio-image { height: 280px; }
    .hero-logo { width: 250px; }
}

/* --- B. LAPTOP STANDARD (Max 1200px) --- */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
    
    .pricing-grid { gap: 20px; }
    .pricing-card { width: 30%; min-width: 300px; padding: 30px 20px; }
    
    .about-story-container { gap: 30px; }
}

/* --- C. TABLETTE & PETIT LAPTOP (Max 992px) --- */
@media (max-width: 992px) {
    /* Le Menu Burger s'active ici (voir section Navigation Partie 1) */
    
    .pricing-grid {
        justify-content: center;
    }
    
    .pricing-card {
        width: 45%; /* 2 cartes par ligne */
        margin-bottom: 20px;
    }
    .pricing-card.popular { transform: scale(1); border-width: 1px; }
    .pricing-card.popular:hover { transform: translateY(-5px); }

    .about-story-container {
        flex-direction: column;
    }
    
    .stat-box { 
        width: 100%; 
        border-left: none; 
        border-top: 5px solid var(--corail);
        margin-top: 20px;
    }
    
    .story-text { width: 100%; }
    
    .form-row { flex-direction: column; gap: 0; }
    input, textarea { margin-bottom: 15px; }
    .options-grid{min-width: 0;}
}

/* --- D. MOBILE LARGE (Max 768px) --- */
@media (max-width: 768px) {
    section { padding: 50px 0; }
    
    h1 { margin-bottom: 15px; }
    
    .pricing-card { width: 100%; max-width: 450px; } /* 1 carte par ligne */
    
    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    
    .mission-grid { grid-template-columns: 1fr; }
    
    .values-list { grid-template-columns: 1fr; }
    
    .article-header-wrapper { padding-top: 120px; }
    .article-main-image { border-radius: 10px; margin-top: 20px; }
    
    .legal-container {
        padding: 30px 20px;
        width: 95%;
        margin-top: 100px;
    }
    
    .portfolio-card {
        min-width: 280px; max-width: 280px; /* Cartes plus petites sur mobile */
    }
    .carousel-wrapper { padding: 40px 0; }
    
    .pied-de-page { padding: 40px 15px; }
    .liens-footer { flex-direction: column; gap: 15px; }
}

/* --- E. MOBILE PETIT (Max 480px) --- */
@media (max-width: 480px) {
    .nav-logo { height: 60px; }
    nav { padding: 0 20px; }
    
    h1 { font-size: 2rem; }
    .stat-number { font-size: 2.5rem; }
    
    .blog-grid { grid-template-columns: 1fr; }
    
    .pricing-card { padding: 25px 15px; }
    .clean-form { padding: 25px 15px; }
    
    .btn-nav { padding: 8px 15px; font-size: 0.8rem; }
    
    /* Ajustement ADN pour petit écran */
    .value-point { padding: 30px 20px; }
}


/* --- OPTIMISATION VITESSE MOBILE --- */
@media (max-width: 768px) {
    /* On cache les orbes décoratifs sur mobile pour soulager le GPU */
    .orb {
        display: none !important;
    }
    
    /* On arrête l'animation flottante sur mobile (l'animation consomme des ressources au chargement) */
    .hero-logo {
        animation: none !important;
    }
    
    /* On réduit la taille de l'image de fond si tu en as une, ou on simplifie les dégradés */
    header {
        background: #fff !important; /* Remplace le dégradé complexe par du blanc simple */
    }
}