/* Empêche tout débordement horizontal sur l'ensemble de la page */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Force les images et logos à ne jamais dépasser de leur conteneur */
img, svg {
    max-width: 100%;
    height: auto;
}


/* Style pour l'image du logo */
.logo-img {
    max-height: 100px;
    width: auto;
    display: block;
}
:root {
    --primary-blue: #0d6efd; /* Bleu clair des boutons */
    --dark-blue: #01142e; /* Bleu marine du header/hero */
    --darker-blue: #000b1a; /* Bleu très foncé du footer */
    --bg-light: #f8f9fa; /* Fond gris clair */
    --text-main: #333333;
    --text-light: #ffffff;
    --text-muted: #6c757d;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* BOUTONS */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: 1px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-white {
    background-color: var(--text-light);
    color: var(--primary-blue);
    border: 1px solid var(--text-light);
}
.btn-devis {
    background-color: #ffffff;
    color: #0d6efd; /* Le même bleu que ton bandeau */
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-devis:hover {
    background-color: #f1f5f9;
    color: #0b5ed7;
}

/* HEADER */
header {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
}

.logo span {
    font-weight: 400;
    font-size: 1rem;
    display: block;
    margin-top: -5px;
}

nav ul {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
}

nav a:hover {
    color: #ccc;
}

/* HERO SECTION */
.hero {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 80px 0 100px;
    /* Simulation de l'image de fond des serveurs à droite */
    background-image: linear-gradient(90deg, var(--dark-blue) 50%, rgba(1, 20, 46, 0.7)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: right center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero .keywords {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero .desc {
    max-width: 500px;
    color: #d1d5db;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* TITRES DE SECTION */
.section-title {
    text-align: center;
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SERVICES */
.services {
    padding: 60px 0;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
}

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

.service-content h3 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.service-link {
    font-size: 0.85rem;
    color: var(--dark-blue);
    font-weight: 600;
}

/* STATISTIQUES */
.stats {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    opacity: 0.5;
}

.stat-info .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-info .label {
    font-size: 0.8rem;
    color: #d1d5db;
}

/* POURQUOI NOUS CHOISIR */
.why-us {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-item {
    display: flex;
    gap: 15px;
}

.why-item i {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-top: 2px;
}

.why-item h4 {
    color: var(--dark-blue);
    font-size: 1rem;
    margin-bottom: 5px;
}

.why-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CALL TO ACTION (CTA) */
.cta {
    background-color: var(--primary-blue);
    padding: 40px 0;
    color: var(--text-light);
}

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

.cta h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.cta p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* FOOTER */
footer {
    background-color: var(--darker-blue);
    color: #9ca3af;
    padding: 50px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-logo {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-top h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.contact-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.socials {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.socials a {
    background-color: var(--primary-blue);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.footer-legal a {
    margin-left: 15px;
}

/* Conteneur qui englobe le logo et le texte */
.footer-logo { /* Remplace par .footer-logo si c'est le nom de ta div HTML */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre l'image et le texte l'un par rapport à l'autre */
    text-align: center;
}

.footer-tagline {
    color: #ffffff;
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 500;
    white-space: nowrap; /* Garde toute la phrase sur une seule ligne */
    text-align: center;
}



/* RESPONSIVE */
@media (max-width: 992px) {
    .services-grid, .stats-grid, .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .services-grid, .stats-grid, .why-grid, .footer-top {
        grid-template-columns: 1fr;
    }
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
 
/* ==========================================
   OPTIMISATIONS MOBILE (Écrans < 768px)
   ========================================== */
@media (max-width: 768px) {

    /* Header plus compact */
    header .container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Menu de navigation en ligne ou plus resserré */
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 35px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Masque le bouton du header sur mobile pour éviter le doublon avec le Hero */
    header .btn-devis, 
    header .btn-primary {
        display: none;
    }

    /* Hero section */
    .hero {
        padding: 40px 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    /* Engagements (Bandeau bleu) : grille 2x2 plus compacte */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        text-align: center;
    }

    .stat-item {
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .socials {
        justify-content: center;
    }
}

    
}
