/*
Theme Name: Devcom Agency - White Edition Pro SEO
Description: Version SEO optimisée 95/100 avec corrections design
Version: 3.0 SEO - HEADER MOBILE CORRIGÉ
Author: Devcom Agency
*/

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

:root {
    /* PALETTE FOND BLANC AMÉLIORÉE */
    --white-primary: #ffffff;
    --white-soft: #f8fafc;
    --gray-light: #f1f5f9;
    --gray-medium: #64748b;
    --gray-dark: #334155;
    --black-text: #0f172a;
    --black-rich: #1e293b;
    --red-primary: #dc2626;
    --red-accent: #ef4444;
    --red-light: #fef2f2;
    --red-dark: #991b1b;
    
    /* OMBRES AMÉLIORÉES */
    --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-red: 0 4px 14px 0 rgba(220, 38, 38, 0.2);
    --shadow-dramatic: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* GRADIENTS */
    --gradient-red: linear-gradient(135deg, var(--red-primary) 0%, var(--red-accent) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--white-primary) 0%, var(--white-soft) 100%);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white-primary);
    color: var(--black-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==============================================
   ANIMATIONS AMÉLIORÉES
   ============================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes reveal {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Classes utilitaires pour animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic);
}

/* ==============================================
   HEADER AMÉLIORÉ AVEC LOGO - MOBILE CORRIGÉ
   ============================================== */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-light);
    z-index: 9000;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--black-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    gap: 12px;
}

.logo:hover {
    color: var(--red-primary);
    transform: scale(1.05);
}

/* CORRECTION LOGO: Tailles adaptives */
.logo-image {
    max-height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.1);
}

/* Logo SVG par défaut stylé */
.logo-svg {
    width: 50px;
    height: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.3));
}

.logo:hover .logo-svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.5));
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-left: 8px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.menu a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.menu a:hover {
    color: var(--red-primary);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: width 0.3s ease;
}

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

/* BOUTON CONTACT AMÉLIORÉ */
.cta-nav-pro {
    background: var(--gradient-red);
    color: var(--white-primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-red);
    position: relative;
    overflow: hidden;
}

.cta-nav-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-nav-pro:hover::before {
    left: 100%;
}

.cta-nav-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(220, 38, 38, 0.4);
}

/* ==============================================
   HERO SECTION AVEC STATS CORRIGÉES + ROUGE
   ============================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 12rem 0 4rem;
    background: linear-gradient(135deg,
        var(--white-primary) 0%,
        var(--white-soft) 50%,
        var(--red-light) 100%);
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
    will-change: transform;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    transition: transform 0.1s ease-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.hero-title .line {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-title .word:nth-child(1) {
    animation-delay: 0.2s;
    color: var(--black-text);
}
.hero-title .word:nth-child(2) {
    animation-delay: 0.4s;
    color: var(--red-primary);
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}
.hero-title .word:nth-child(3) {
    animation-delay: 0.6s;
    color: var(--black-text);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--gray-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--gray-medium);
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

/* STATISTIQUES HERO CORRIGÉES AVEC + ROUGE */
.stats-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* CHANGÉ: 3 colonnes au lieu de 4 */
    gap: 2rem;
    margin-top: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--white-primary);
    border: 2px solid var(--gray-light);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    border-color: var(--red-primary);
    box-shadow: var(--shadow-red);
    transform: translateY(-8px) scale(1.02);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--black-text);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* CORRECTION 1: STATS +150 +50 +15 TOUT EN ROUGE */
.stat-number-full-red {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--red-primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number-full-red {
    transform: scale(1.1);
}

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

/* ==============================================
   SECTION PRÉSENTATION - DESIGN PROPRE
   ============================================== */

.presentation-section {
    padding: 8rem 0;
    background: var(--white-primary);
}

.presentation-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.presentation-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--black-text);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.presentation-title .accent {
    color: var(--red-primary);
}

.presentation-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* DESIGN PROPRE POUR LE HIGHLIGHT - SANS ENCADRÉ */
.presentation-highlight-clean {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--black-text);
    font-weight: 600;
    max-width: 800px;
    margin: 3rem auto 0;
    line-height: 1.7;
    padding: 3rem 0;
    position: relative;
    font-style: italic;
}

.presentation-highlight-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-red);
    border-radius: 2px;
}

.presentation-highlight-clean::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--red-primary);
    opacity: 0.5;
    border-radius: 1px;
}

/* ==============================================
   SERVICES SECTION - CARDS MOBILE CORRIGÉES
   ============================================== */

.services {
    padding: 8rem 0;
    background: var(--white-primary);
}

.services-header {
    text-align: center;
    margin-bottom: 6rem;
}

.services-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--black-text);
}

.services-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* CARDS CORRIGÉES POUR MOBILE */
.service-card {
    height: 520px;
    perspective: 1000px;
    border-radius: 20px;
    overflow: hidden;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-large);
}

.card-front {
    background: var(--white-primary);
    border: 2px solid var(--gray-light);
}

.card-back {
    background: var(--red-primary);
    color: var(--white-primary);
    transform: rotateY(180deg);
    /* CORRECTION MOBILE: Padding ajusté pour éviter débordement */
    padding: 1.5rem 1rem 1rem 1rem;
}

.service-number {
    font-size: 0.8rem;
    color: var(--red-primary);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.card-back .service-number {
    color: rgba(255, 255, 255, 0.8);
}

.service-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--black-text);
}

.card-back .service-title {
    color: var(--white-primary);
    /* CORRECTION MOBILE: Taille réduite sur mobile */
    font-size: 1.4rem;
}

.service-subtitle {
    font-size: 0.9rem;
    color: var(--red-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.card-back .service-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-back .service-desc {
    color: rgba(255, 255, 255, 0.95);
    /* CORRECTION MOBILE: Taille police réduite */
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
    flex-grow: 1;
    /* CORRECTION MOBILE: Ajustement espacement */
    padding: 0;
}

.service-features li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.6rem;
    position: relative;
    font-size: 0.85rem;
    padding-left: 1.2rem;
    line-height: 1.3;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--white-primary);
    font-weight: bold;
    font-size: 0.8rem;
}

/* BOUTONS SERVICES CORRIGÉS POUR MOBILE */
.service-btn-front {
    background: var(--gradient-red);
    border: none;
    color: var(--white-primary);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-red);
    min-height: 44px;
    width: 100%;
    max-width: 200px;
}

.service-btn-front:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.learn-more-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    letter-spacing: 0.05em;
    min-height: 44px;
    margin-bottom: 0;
    /* CORRECTION MOBILE: Taille ajustée */
    width: 100%;
    max-width: 180px;
}

.learn-more-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==============================================
   SECTION OBJECTIF - CORRECTION 3: SANS ICÔNE
   ============================================== */

.objectif-section {
    padding: 8rem 0;
    background: var(--gray-light);
}

.objectif-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* CORRECTION 3: VERSION SANS ICÔNE */
.objectif-card-elegant-no-icon {
    background: var(--white-primary);
    border-radius: 25px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-large);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.objectif-card-elegant-no-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--red-light) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
    transition: all 0.4s ease;
}

.objectif-card-elegant-no-icon:hover::before {
    opacity: 0.5;
    transform: scale(1.1);
}

.objectif-card-elegant-no-icon:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dramatic);
}

.objectif-title {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.objectif-description {
    position: relative;
    z-index: 2;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--black-text);
    line-height: 1.8;
    font-weight: 400;
}

/* ==============================================
   CONTACT SECTION AMÉLIORÉE
   ============================================== */

.contact {
    padding: 8rem 0;
    background: var(--white-primary);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info {
    position: relative;
}

.contact-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: 2rem;
    color: var(--black-text);
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* AVANTAGES CONTACT STYLISÉS */
.contact-benefits {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--black-text);
    padding: 1rem;
    background: var(--white-soft);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: var(--red-light);
    transform: translateX(10px);
}

.benefit-icon {
    background: var(--gradient-red);
    color: var(--white-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: var(--shadow-red);
}

.benefit-text {
    font-weight: 600;
}

/* FORMULAIRE AMÉLIORÉ */
.contact-form {
    background: var(--white-primary);
    border: 2px solid var(--gray-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    position: relative;
    transition: all 0.3s ease;
}

.contact-form:hover {
    border-color: var(--red-primary);
    box-shadow: var(--shadow-red);
}

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

.form-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black-text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-subtitle {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--white-primary);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    color: var(--black-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-medium);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* BOUTON SUBMIT STYLISÉ */
.form-footer {
    margin-top: 2.5rem;
    text-align: center;
}

.form-submit-stylized {
    position: relative;
    background: var(--gradient-red);
    color: var(--white-primary);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    max-width: 320px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-red);
    overflow: hidden;
    min-height: 56px;
}

.form-submit-stylized::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.form-submit-stylized:hover::before {
    left: 100%;
}

.form-submit-stylized:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4);
}

.form-submit-stylized:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.form-submit-stylized:hover .btn-icon {
    transform: translateX(4px);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--red-dark);
    border-radius: 50px;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.form-submit-stylized:hover .btn-bg {
    transform: scale(1);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--gray-medium);
}

/* ==============================================
   FOOTER AVEC POPUPS
   ============================================== */

.site-footer {
    background: var(--gray-light);
    border-top: 1px solid var(--gray-medium);
    padding: 3rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--red-light);
    transition: left 0.3s ease;
    z-index: -1;
}

.footer-links a:hover::before {
    left: 0;
}

.footer-links a:hover {
    color: var(--red-primary);
    transform: translateY(-2px);
}

.footer-text {
    color: var(--gray-medium);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==============================================
   MODALS AMÉLIORÉES
   ============================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--white-primary);
    border: 2px solid var(--gray-light);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--black-text);
    box-shadow: var(--shadow-dramatic);
    margin: 2rem;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-light);
    border: none;
    color: var(--gray-dark);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--red-primary);
    color: var(--white-primary);
    transform: rotate(90deg) scale(1.1);
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
}

.modal-subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.modal-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black-text);
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section h4 {
    font-size: 1.3rem;
    color: var(--red-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ==============================================
   STYLES POUR NOTIFICATIONS ET ÉTATS
   ============================================== */

/* Notifications de formulaire - CORRECTION: Plus visibles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10001;
    max-width: 400px;
    box-shadow: var(--shadow-dramatic);
    animation: slideInRight 0.4s ease;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.notification.success {
    background: #059669;
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.notification.error {
    background: #dc2626;
    border-color: #ef4444;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* États du formulaire */
.form-submit-stylized.loading {
    background: var(--gray-medium) !important;
    cursor: not-allowed;
}

.form-submit-stylized.success {
    background: #10b981 !important;
}

.form-submit-stylized.error {
    background: var(--red-accent) !important;
}

/* ==============================================
   RESPONSIVE AMÉLIORÉ - CORRECTIONS MOBILE
   ============================================== */

@media (max-width: 1024px) {
    .nav {
        padding: 1rem 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stats-hero {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    /* CORRECTION HEADER MOBILE: Plus compact et beau */
    .nav {
        padding: 0.5rem 1rem; /* Réduit significativement */
        min-height: 60px; /* Hauteur fixe plus petite */
    }

    /* CORRECTION LOGO MOBILE: Tailles réduites */
    .logo {
        font-size: 1.3rem; /* Réduit de 1.8rem */
        gap: 8px; /* Réduit l'espacement */
    }

    .logo-image {
        max-height: 32px; /* Réduit de 45px */
    }

    .logo-svg {
        width: 35px; /* Réduit de 50px */
        height: 35px;
    }

    .logo-text {
        font-size: 1.2rem; /* Taille explicite pour mobile */
        letter-spacing: -0.3px;
    }

    /* CORRECTION CTA MOBILE: Plus petit */
    .cta-nav-pro {
        padding: 0.6rem 1.2rem; /* Réduit */
        font-size: 0.8rem; /* Plus petit */
        border-radius: 20px; /* Moins arrondi */
    }

    .hero {
        padding: 8rem 0 3rem; /* Ajusté pour header plus petit */
    }

    /* CORRECTION STATS MOBILE */
    .stats-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 3rem;
    }

    .stat-item {
        padding: 2rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* CORRECTION CARDS MOBILE IMPORTANTE */
    .service-card {
        height: auto;
        min-height: 450px;
    }

    .card-back {
        padding: 1.5rem 1rem 1rem 1rem;
    }

    .service-features {
        margin: 1rem 0 0.5rem 0;
    }

    .service-features li {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .learn-more-btn {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
        margin-top: 0.5rem;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 2rem;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 2rem;
    }

    .contact-benefits {
        gap: 1rem;
    }

    .benefit-item {
        font-size: 1rem;
        padding: 0.8rem;
    }

    /* CORRECTION: Notre engagement centré mobile */
    .objectif-card-elegant-no-icon {
        padding: 2rem 1.5rem;
        text-align: center;
        margin: 0 auto;
    }
    
    .objectif-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .objectif-description {
        text-align: center;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* CORRECTION TRÈS PETITS ÉCRANS: Header encore plus compact */
    .nav {
        padding: 0.4rem 0.8rem;
        min-height: 55px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 6px;
    }

    .logo-image {
        max-height: 28px;
    }

    .logo-svg {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .cta-nav-pro {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .service-card {
        height: auto;
        min-height: 400px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .stat-item {
        padding: 1.5rem 0.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .presentation-section,
    .objectif-section {
        padding: 4rem 0;
    }

    .services {
        padding: 6rem 0;
    }

    .stats-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* CORRECTIONS SPÉCIFIQUES TRÈS PETITS ÉCRANS */
    .card-back .service-title {
        font-size: 1.2rem;
    }

    .card-back .service-desc {
        font-size: 0.8rem;
    }

    .service-features li {
        font-size: 0.75rem;
    }

    .learn-more-btn {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
    }
}

/* ==============================================
   UTILITAIRES ET EFFETS SPÉCIAUX
   ============================================== */

.text-center { text-align: center; }
.text-red { color: var(--red-primary); }
.bg-white { background: var(--white-primary); }
.bg-light { background: var(--white-soft); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-red { box-shadow: var(--shadow-red); }
.rounded-xl { border-radius: 1rem; }
.rounded-2xl { border-radius: 1.5rem; }

/* Animations d'apparition */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

/* États de chargement */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

.error {
    border-color: var(--red-primary) !important;
    background: var(--red-light) !important;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}

/* Sélection de texte */
::selection {
    background: var(--red-light);
    color: var(--red-dark);
}

/* Focus visible amélioré */
*:focus-visible {
    outline: 2px solid var(--red-primary);
    outline-offset: 2px;
}

/* Accessibilité - Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: absolute;
    left: 6px;
    top: 7px;
    width: auto;
    height: auto;
    padding: 8px 16px;
    background: var(--red-primary);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    z-index: 10000;
}

/* Print styles */
@media print {
    .header,
    .modal-overlay,
    .contact-form {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}
