/* ==========================================
   FRANCE-DÉBARRAS - CSS GLOBAL 2025
   Design Premium: Apple × Tesla × Stripe
========================================== */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs France Officielle - STRICTES */
    --bleu-france: #0055A4;
    --blanc: #FFFFFF;
    --rouge-france: #EF4135;

    /* Variantes bleu */
    --bleu-clair: #0055A4;
    --bleu-tres-clair: #E8EEF7;

    /* Variantes rouge */
    --rouge-clair: #EF4135;

    /* Couleurs neutres */
    --dark-navy: #0055A4;
    --primary-blue: #0055A4;
    --secondary-red: #EF4135;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #E4E7EB;
    --gray-200: #CBD2DC;
    --gray-300: #9CA3AF;
    --gray-400: #7F8C8D;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Couleurs unies - PLUS DE GRADIENTS */
    --gradient-primary: #0055A4;
    --gradient-secondary: #EF4135;
    --gradient-tricolor: #0055A4;
    --gradient-dark: #0055A4;
    --gradient-glass: rgba(255,255,255,0.1);

    /* Shadows avec teinte bleue */
    --shadow-sm: 0 1px 3px rgba(0, 85, 164, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 85, 164, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 85, 164, 0.16);
    --shadow-xl: 0 20px 60px rgba(0, 85, 164, 0.20);
    --shadow-glow: 0 0 40px rgba(0, 85, 164, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1320px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TITRES - TOUS EN BLEU === */
h1, h2, h3, h4, h5, h6 {
    color: #0055A4;
}

/* === UTILITY CLASSES === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER - GLASSMORPHISM === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0A0E27;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header__logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 100px;
    width: auto;
}

.header__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 48px;
}

.header__menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.header__menu-link {
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.header__menu-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__menu-link:hover {
    color: var(--bleu-france);
}

.header__menu-link:hover::after,
.header__menu-link.active::after {
    width: 100%;
}

.header__cta {
    padding: 14px 32px;
    background: var(--rouge-france);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(239, 65, 53, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse-red-header 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.header__cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.header__cta:hover::before {
    width: 200px;
    height: 200px;
}

.header__cta:hover {
    background: var(--bleu-france);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 85, 164, 0.5);
    animation: none;
}

.header__cta:active {
    transform: translateY(-1px) scale(1.02);
}

/* Animation pulse rouge pour header CTA */
@keyframes pulse-red-header {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(239, 65, 53, 0.45);
    }
    50% {
        box-shadow: 0 7px 28px rgba(239, 65, 53, 0.65);
    }
}

/* Mobile Menu Toggle */
.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--dark-navy);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* === BUTTONS === */
.btn {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn--primary {
    background: white;
    color: var(--bleu-france);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.3);
}

.btn--primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn--secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn--solid {
    background: #EF4135;
    color: white;
    box-shadow: 0 10px 40px rgba(239, 65, 53, 0.4);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: glow-red-btn 2s ease-in-out infinite;
}

.btn--solid:hover {
    background: #0055A4;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 85, 164, 0.5);
    animation: none;
}

/* Animation glow rouge pour boutons */
@keyframes glow-red-btn {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(239, 65, 53, 0.4), 0 0 15px rgba(239, 65, 53, 0.2);
    }
    50% {
        box-shadow: 0 12px 50px rgba(239, 65, 53, 0.6), 0 0 30px rgba(239, 65, 53, 0.4);
    }
}

.btn--outline {
    background: transparent;
    color: var(--rouge-france);
    border: 3px solid var(--rouge-france);
    font-weight: 700;
}

.btn--outline:hover {
    background: var(--rouge-france);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(239, 65, 53, 0.4);
}

/* === SECTION STYLES === */
.section__header {
    text-align: center;
    margin-bottom: 80px;
}

.section__badge {
    display: inline-block;
    padding: 8px 20px;
    background: #0055A4;
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #0055A4;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: 20px;
    color: var(--gray-400);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === CARDS === */
.card {
    background: white;
    border-radius: 24px;
    padding: 48px 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0055A4;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card__icon {
    width: 70px;
    height: 70px;
    background: #0055A4;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
}

.card__icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: #0055A4;
    border-radius: 18px;
    opacity: 0.2;
    filter: blur(10px);
}

.card__icon svg {
    width: 36px;
    height: 36px;
    color: white;
    position: relative;
    z-index: 1;
}

.card__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: #0055A4;
    margin-bottom: 16px;
}

.card__description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-400);
}

/* === FOOTER === */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 80px 0 0;
}

.footer__main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer__brand {
    max-width: 350px;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.footer__logo .logo-img {
    height: 70px;
    width: auto;
}

.footer__logo-icon {
    width: 44px;
    height: 44px;
    background: #0055A4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.footer__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-300);
    margin-bottom: 24px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background: #0055A4;
    transform: translateY(-3px);
}

.footer__column-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer__links {
    list-style: none;
}

.footer__link {
    margin-bottom: 12px;
}

.footer__link a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer__link a:hover {
    color: white;
}

.footer__newsletter {
    margin-top: 20px;
}

.footer__newsletter-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer__newsletter-input::placeholder {
    color: var(--gray-400);
}

.footer__newsletter-btn {
    width: 100%;
    padding: 14px;
    background: #0055A4;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer__newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 85, 164, 0.4);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copyright {
    font-size: 14px;
    color: var(--gray-400);
}

.footer__legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__legal a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer__legal a:hover {
    color: white;
}

/* === FLOATING CONTACT BUTTONS === */
.contact-float {
    position: fixed;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.contact-float:hover {
    transform: scale(1.15);
}

.contact-float svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* === EMAIL FLOATING BUTTON === */
.email-float {
    bottom: 190px;
    background: #EA4335;
}

.email-float:hover {
    box-shadow: 0 8px 28px rgba(234, 67, 53, 0.5), 0 4px 12px rgba(0,0,0,0.15);
}

/* === PHONE FLOATING BUTTON === */
.phone-float {
    bottom: 110px;
    background: #0055A4;
}

.phone-float:hover {
    box-shadow: 0 8px 28px rgba(0, 85, 164, 0.5), 0 4px 12px rgba(0,0,0,0.15);
}

/* === WHATSAPP FLOATING BUTTON === */
.whatsapp-float {
    bottom: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    z-index: -1;
    animation: whatsapp-ring 2s infinite;
}

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

@keyframes whatsapp-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-float:hover {
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.15);
}

.whatsapp-float:hover::before {
    animation: none;
    opacity: 0;
}

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

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

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === PAGE HERO === */
.page-hero {
    padding: 180px 0 100px;
    background: #0055A4;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: rgba(0, 85, 164, 0.2);
    animation: float 20s ease-in-out infinite;
}

.page-hero__container {
    position: relative;
    z-index: 1;
}

.page-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: white;
}

.page-hero__subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 48px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-float {
        width: 48px;
        height: 48px;
        right: 16px;
    }

    .contact-float svg {
        width: 24px;
        height: 24px;
    }

    .email-float {
        bottom: 140px;
    }

    .phone-float {
        bottom: 80px;
    }

    .whatsapp-float {
        bottom: 16px;
    }

    .logo-img {
        height: 100px;
    }

    .header__nav {
        position: fixed;
        top: 132px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 40px 24px;
        flex-direction: column;
        gap: 32px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__menu {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .header__mobile-toggle {
        display: flex;
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* === ANIMATIONS FOR REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
