/* ==========================================
   VARIABLES DE COULEURS ET POLICES
   ========================================== */
:root {
    --primary-navy: #0F2C59;       /* Bleu marine (Confiance) */
    --accent-aqua: #00B4D8;        /* Bleu aqua (Fraîcheur) */
    --accent-aqua-hover: #0096B4;  /* Survol bouton */
    --neutral-black: #111111;      /* Fond en-tête et texte sombre */
    --neutral-white: #FFFFFF;      /* Fond de page */
    --bg-ice-blue: #F0F4F8;        /* Fond de section alternatif */
    --text-muted: #4B5563;         /* Texte secondaire (gris) */
    --border-color: #E5E7EB;       /* Bordures discrètes */
    --font-family: 'Inter', sans-serif;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--neutral-black);
    background-color: var(--neutral-white);
    line-height: 1.6;
}

/* ==========================================
   STRUCTURE ET CONTENEURS
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Boutons */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.btn-aqua {
    background-color: var(--accent-aqua);
    color: var(--neutral-white);
}

.btn-aqua:hover {
    background-color: var(--accent-aqua-hover);
}

.btn-navy {
    background-color: var(--primary-navy);
    color: var(--neutral-white);
}

.btn-navy:hover {
    background-color: #0b2040;
}

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

.btn-outline:hover {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

/* ==========================================
   EN-TÊTE (HEADER)
   ========================================== */
.site-header {
    background-color: var(--neutral-black);
    color: var(--neutral-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ==========================================
   STYLE DU LOGO (Ajusté pour format carré)
   ========================================== */
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

/* Léger effet interactif au survol */
.logo-link:hover {
    transform: scale(1.05);
}

/* Taille du logo dans l'en-tête (Header) */
.logo-img {
    height: 42px;         /* Hauteur équilibrée pour un format carré */
    width: 42px;          /* Largeur identique pour conserver le carré parfait */
    object-fit: cover;    /* Assure que l'image ne se déforme pas */
    display: block;
}

/* Taille du logo adaptée pour le pied de page (Footer) */
.footer-col .logo-img {
    height: 55px;         /* Légèrement plus grand dans le footer */
    width: 55px;
    margin-bottom: 12px;  /* Espace avec le texte situé en dessous */
}

.main-nav {
    display: none; /* Masqué sur mobile, géré ci-dessous pour les grands écrans */
}

.main-nav a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-left: 32px;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent-aqua);
}

/* ==========================================
   ACCUEIL (HERO)
   ========================================== */
.hero {
    padding: 64px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-aqua);
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.2;
}

.hero-description {
    color: var(--text-muted);
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   SERVICES
   ========================================== */
.services-section {
    background-color: var(--bg-ice-blue);
    padding: 80px 0;
}

.services-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.services-header h2 {
    font-size: 30px;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.services-header .divider {
    height: 4px;
    width: 64px;
    background-color: var(--accent-aqua);
    margin: 0 auto 16px auto;
}

.services-header p {
    color: var(--text-muted);
}

/* Grille par défaut (Mobile : 1 colonne) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Écrans Moyens (Tablettes : 2 colonnes) */
@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Grands Écrans (Ordinateurs : 4 colonnes alignées) */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: var(--neutral-white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-ice-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-aqua);
}

.service-card h3 {
    font-size: 20px;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================
   PIED DE PAGE (FOOTER)
   ========================================== */
.site-footer {
    background-color: var(--neutral-black);
    color: #9CA3AF;
    padding: 48px 0 24px 0;
    border-top: 1px solid #1F2937;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: var(--neutral-white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-copyright {
    border-top: 1px solid #1F2937;
    padding-top: 32px;
    text-align: center;
    font-size: 12px;
}

/* ==========================================
   RESPONSIVE (ÉCRANS PLUS GRANDS)
   ========================================== */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }

    .hero {
        padding: 96px 0;
    }

    .hero-grid {
        grid-template-columns: 5fr 7fr;
        gap: 48px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-image {
        height: 500px;
    }

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

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   SECTION CONTACT & FORMULAIRE
   ========================================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-ice-blue); /* Couleur de fond neutre claire */
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 {
    font-size: 30px;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.contact-info .divider {
    height: 4px;
    width: 64px;
    background-color: var(--accent-aqua);
    margin-bottom: 24px;
}

.contact-intro {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background-color: var(--neutral-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.info-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-aqua);
}

.info-item h4 {
    font-size: 14px;
    color: var(--primary-navy);
    font-weight: 600;
}

.info-item p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Conteneur du Formulaire */
.contact-form-container {
    background-color: var(--neutral-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--neutral-black);
    background-color: var(--bg-ice-blue);
    transition: border-color 0.2s, background-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-aqua);
    background-color: var(--neutral-white);
}

.btn-full {
    width: 100%;
    padding: 14px;
    border: none;
    cursor: pointer;
}

/* Responsivité (Ordinateur) */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
    }
}

/* ==========================================
   SECTION À PROPOS (PRÉSENTATION DE LA SOCIÉTÉ)
   ========================================== */
.about-section {
    padding: 80px 0;
    background-color: var(--neutral-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.about-image {
    width: 100%;
    max-width: 550px; /* Augmenté pour valoriser la haute résolution */
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-aqua);
}

.about-content h2 {
    font-size: 30px;
    color: var(--primary-navy);
    line-height: 1.3;
    margin-bottom: 4px;
}

.about-content .divider {
    height: 4px;
    width: 64px;
    background-color: var(--accent-aqua);
    margin-bottom: 8px;
}

.about-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.feature-item {
    flex: 1 1 140px;
    background-color: var(--bg-ice-blue);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.feature-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

/* Version Écrans Moyens et Grands (Tablettes / Ordinateurs) */
@media (min-width: 850px) {
    .about-grid {
        grid-template-columns: 1fr 1.1fr; /* Structure équilibrée à deux colonnes */
        gap: 56px;
    }
    
    .about-content h2 {
        font-size: 36px;
    }
}

/* ==========================================
   STYLE DE LA POP-UP DE CONFIRMATION (MODAL)
   ========================================== */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 9999; /* Toujours au-dessus du reste */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 44, 89, 0.6); /* Fond sombre bleu marine transparent */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px); /* Léger effet flouté en arrière-plan */
    transition: all 0.3s ease-in-out;
}

/* Classe activée en JS */
.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--neutral-white);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--accent-aqua);
    font-size: 30px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.modal-content h3 {
    color: var(--primary-navy);
    font-size: 22px;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.5;
}

#close-modal-btn {
    width: 100%;
    max-width: 150px;
}