/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary: #1A9CDA; /* Bleu Hessa */
    --primary-light: rgba(26, 156, 218, 0.1);
    --secondary: #616265; /* Gris Hessa */
    --dark: #121212;
    --light: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-primary: 0 10px 20px rgba(26, 156, 218, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.text-blue {
    color: var(--primary);
}

.bg-light {
    background-color: var(--bg-light);
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

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

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: #1585bd;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(26, 156, 218, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border-color: var(--light);
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-img {
    height: 60px; /* Ajustable selon les dimensions de votre logo */
    width: auto;
    display: block;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 50px; /* Réduire légèrement au scroll */
}

.logo-blue {
    color: var(--primary);
    font-size: 2.5rem;
}

.logo-tagline {
    font-family: 'Nothing You Could Do', cursive; /* Optionnel si on veut l'effet manuscrit */
    font-size: 1rem;
    font-weight: 400;
    color: var(--secondary);
    margin-top: 0.5rem;
    font-style: italic;
}
.header:not(.scrolled) .logo-tagline {
    color: #ddd;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.header:not(.scrolled) .nav-link {
    color: var(--light);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::before, .nav-link.active::before {
    width: 100%;
}

.header:not(.scrolled) .btn-primary {
    background: var(--light);
    color: var(--primary);
    box-shadow: none;
}
.header:not(.scrolled) .btn-primary:hover {
    background: var(--primary);
    color: var(--light);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

.header:not(.scrolled) .hamburger .bar {
    background: var(--light);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #121212, #2a2b2e);
    overflow: hidden;
}

/* Abstract shapes background */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,156,218,0.2) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(97,98,101,0.3) 0%, rgba(0,0,0,0) 70%);
    filter: blur(50px);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
    z-index: 2;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--light);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--light);
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #cccccc;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--light);
    font-size: 1.5rem;
    opacity: 0.7;
}

.scroll-down a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* =========================================
   À Propos Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text em {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 1rem;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: var(--primary-light);
    border-radius: 20px;
    z-index: -1;
    transform: translate(20px, -20px);
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--secondary), #3a3b3d);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.1);
    font-size: 8rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    20%, 100% { transform: translateX(100%) rotate(30deg); }
}

/* =========================================
   Pôles Section
   ========================================= */
.poles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* Spécifique pour 5 éléments (centrer les 2 derniers si sur 3 colonnes) */
@media (min-width: 992px) {
    .poles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .poles-grid > :nth-child(4) {
        grid-column: 1 / 3;
        justify-self: end;
        width: calc(100% - 1rem); /* Compenser le gap */
    }
    .poles-grid > :nth-child(5) {
        grid-column: 2 / 4;
        justify-self: start;
        width: calc(100% - 1rem);
        transform: translateX(1rem); /* Alignement parfait */
    }
}
@media (min-width: 992px) {
    /* Meilleur layout pour 5 éléments (2 en haut, 3 en bas ou l'inverse) */
    .poles-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .pole-card {
        flex: 0 0 calc(33.333% - 1.34rem);
    }
}

.pole-card {
    background: var(--light);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.03);
}

.pole-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
    transition: var(--transition);
    z-index: -1;
}

.pole-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 156, 218, 0.2);
}

.pole-card:hover::before {
    height: 100%;
}

.pole-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.pole-card:hover .pole-icon {
    background: var(--primary);
    color: var(--light);
    transform: scale(1.1);
}

.pole-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pole-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   Chiffres Clés Section
   ========================================= */
.chiffres {
    background: linear-gradient(135deg, var(--primary), #1178a8);
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.chiffres::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1" stroke-dasharray="10 10"/></svg>');
    background-size: 30px 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-list {
    margin-top: 2rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.info-list i {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form-wrapper {
    background: var(--light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #fcfcfc;
    color: var(--text-main);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--light);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

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

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--dark);
    color: #a0a0a0;
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--light);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   Animations & Utilities
   ========================================= */
/* Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-image {
        grid-row: 1;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--dark);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--dark);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background: var(--light);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .nav-link {
        color: var(--dark) !important;
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        padding: 0 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}
