:root {
    --primary: #000000;
    --accent: #ffffff;
    --gray-dark: #1e1e1e;
    --gray-light: #f9f9f9;
    --gray-border: #cccccc;
    --text-main: #111111;
    --text-muted: #555555;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body { color: var(--text-main); background-color: var(--accent); line-height: 1.6; }
.container { width: 85%; max-width: 1100px; margin: 0 auto; padding: 60px 0; }
.text-center { text-align: center; }
.subtitle { color: var(--text-muted); margin-bottom: 50px; font-size: 1.05rem; }

/* Navigation */
header { background: var(--accent); position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--primary); }
.navbar { display: flex; justify-content: space-between; align-items: center; width: 85%; max-width: 1100px; margin: 0 auto; padding: 15px 0; }

.logo-img {
    height: 55px; /* Ajustement automatique pour l'image du logo fourni */
    width: auto;
    display: block;
}

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li a { color: var(--primary); text-decoration: none; margin-left: 30px; transition: 0.2s; font-size: 0.9rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.nav-links li a:hover { opacity: 0.6; }
.btn-nav { border: 2px solid var(--primary); padding: 8px 18px; background: var(--primary); color: var(--accent) !important; }
.btn-nav:hover { background: transparent; color: var(--primary) !important; }

/* Hero Section */
.hero-section {
    height: 55vh;
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    filter: grayscale(100%);
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--primary);
    border-bottom: 1px solid var(--gray-border);
}
.hero-content h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); }
.hero-content p { max-width: 750px; margin: 0 auto 35px auto; color: var(--text-muted); font-size: 1.1rem; }
.hero-buttons a { padding: 12px 25px; text-decoration: none; margin: 5px; display: inline-block; font-weight: bold; text-transform: uppercase; font-size: 0.85rem; transition: 0.3s; }
.btn-primary { background: var(--primary); color: var(--accent); border: 2px solid var(--primary); }
.btn-primary:hover { background: transparent; color: var(--primary); }
.btn-secondary { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-secondary:hover { background: var(--primary); color: var(--accent); }

/* Titres */
h2 { font-size: 2rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; color: var(--primary); font-weight: 700; }
h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }

/* Structures structurelles */
.features-grid { display: flex; gap: 30px; }
.feature-item { flex: 1; padding: 40px; border: 1px solid var(--primary); background: var(--accent); }
.feature-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

.services-list { display: flex; flex-direction: column; gap: 20px; }
.service-box { display: flex; gap: 35px; background: var(--gray-light); padding: 35px; border: 1px solid var(--gray-border); border-left: 6px solid var(--primary); }
.service-box i { font-size: 2rem; color: var(--primary); margin-top: 5px; }

.about-layout { display: flex; gap: 60px; align-items: flex-start; }
.about-info { flex: 1.8; }
.about-info p { margin-bottom: 15px; text-align: justify; }
.bullet-list { list-style: square; margin-left: 20px; margin-top: 15px; }
.bullet-list li { margin-bottom: 8px; font-weight: 500; }
.about-metrics { flex: 1; display: flex; flex-direction: column; gap: 25px; }
.metric { background: var(--primary); color: var(--accent); padding: 35px; text-align: center; }
.metric span { font-size: 1.8rem; font-weight: bold; display: block; margin-bottom: 5px; text-transform: uppercase; }
.metric p { text-transform: uppercase; font-size: 0.8rem; opacity: 0.7; letter-spacing: 0.5px; }

/* Boîte Contact */
.contact-box { max-width: 600px; margin: 0 auto; background: var(--gray-light); border: 1px solid var(--primary); }
.btn-submit, .btn-submit-wa { background: #000000; color: #ffffff; padding: 15px; border: none; width: 100%; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; transition: 0.2s; display: inline-block; }
.btn-submit:hover, .btn-submit-wa:hover { background: #333333; }

/* Footer */
footer { background: var(--primary); color: var(--accent); padding: 50px 0 25px 0; font-size: 0.9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.footer-grid h4 { text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; font-size: 0.95rem; }
.footer-grid p { opacity: 0.8; font-weight: 300; line-height: 1.8; }
.footer-divider { border: 0; border-top: 1px solid #222222; margin-bottom: 20px; }
.copyright { text-align: center; opacity: 0.6; font-size: 0.8rem; }

/* Burger */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 2px; background: var(--primary); margin: 6px; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .features-grid, .about-layout, .footer-grid { flex-direction: column; gap: 30px; }
    .hero-content h1 { font-size: 1.6rem; }
}
/* ==========================================================================
   Grille des Services & Ajustement des Images Réelles
   ========================================================================== */

.services-grid-gallery {
    display: grid;
    /* Ajustement de la taille minimale des carreaux pour s'adapter aux images larges */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-gallery-card {
    background: var(--accent);
    border: 1px solid var(--primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Conteneur adapté à la taille de vos illustrations */
.card-image-wrapper {
    width: 100%;
    height: 200px; /* Hauteur optimisée pour garder un bel équilibre visuel */
    padding: 15px; /* Espace intérieur pour que les illustrations ne collent pas aux bords */
    background-color: #ffffff; /* Fond blanc uniforme pour intégrer parfaitement les images à fond blanc */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--gray-border);
}

/* Modification majeure pour respecter la taille et l'intégrité de vos visuels */
.card-img {
    width: 100%;
    height: 100%;
    /* 'contain' garantit que l'image entière est visible sans être rognée ni déformée */
    object-fit: contain; 
    transition: transform 0.3s ease;
}

/* Effet zoom très léger et propre au survol */
.service-gallery-card:hover .card-img {
    transform: scale(1.04);
}

/* Structure du contenu textuel de la carte */
.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.card-body .question {
    font-size: 0.95rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Bloc réponse/action mis en valeur */
.card-body .answer-action {
    font-size: 0.9rem;
    background: var(--gray-light);
    padding: 12px;
    border-left: 4px solid var(--primary);
    color: var(--text-main);
    margin-top: auto;
}
/* ==========================================================================
   STYLE COMPLET : PAGE À PROPOS & TECHNIQUE (ELITECH ENGINEERING)
   ========================================================================== */

/* --- 1. Structure de la Biographie & Profil Circulaire --- */
.biography-section {
    padding-top: 30px;
    padding-bottom: 50px;
}

.bio-grid {
    display: grid;
    /* La première colonne prend la taille exacte du cercle (220px + marge), la 2e prend le reste */
    grid-template-columns: 260px 1fr; 
    gap: 20px;
    align-items: center; /* Centre verticalement la photo ronde face au texte */
}

/* Conteneur optimisé en cercle parfait pour la photo de profil */
.bio-image-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    flex-shrink: 0; /* Empêche le cercle de s'écraser sur les écrans intermédiaires */
}

/* Recadrage précis centré sur le visage */
.bio-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cercle sans déformer les proportions */
    object-position: center 15%; /* Ajuste l'axe vertical pour encadrer parfaitement le visage */
    display: block;
}

.bio-text p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-main);
    margin-bottom: 15px;
    text-align: justify;
}

.bio-text .lead-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.6;
}

/* Responsiveness pour le profil sur petits écrans */
@media (max-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .bio-image-wrapper {
        margin: 0 auto; /* Centre le cercle horizontalement sur mobile */
    }
    
    .bio-text p {
        text-align: left;
    }
}

/* --- 2. Bannière de Conviction --- */
.conviction-banner {
    background: var(--gray-light);
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    padding: 50px 0;
    margin: 40px 0;
}

.conviction-quote {
    max-width: 850px;
    margin: 0 auto 25px auto;
    border-left: none;
    padding: 0;
}

.conviction-quote p {
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 15px;
}

.conviction-signature {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 1px;
}

/* --- 3. Section Fondements Professionnels --- */
.fondements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.fondement-item {
    background: #ffffff;
    border: 1px solid var(--gray-border);
    border-left: 4px solid var(--primary);
    padding: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* --- 4. Bloc d'Introduction BET --- */
.intro-bet-box {
    max-width: 850px;
    margin: 30px auto 40px auto;
    text-align: center;
}

.intro-bet-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* --- 5. Grille des Prestations BET --- */
.prestations-bet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.prestation-bet-card {
    background: #ffffff;
    border: 1px solid var(--gray-border);
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.prestation-bet-card h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prestation-bet-card p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 12px;
    font-weight: 600;
}

.prestation-bet-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prestation-bet-card ul li {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
}

/* Puces personnalisées carrées et minimalistes */
.prestation-bet-card ul li::before {
    content: "▪";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 0.8rem;
}

/* Structure interne de la carte large (SI & PMR) */
.sub-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}

@media (max-width: 576px) {
    .sub-list-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 6. Bloc Technique Coordination SSI --- */
.ssi-section-wrapper {
    background: var(--accent);
    border: 1px solid var(--primary);
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.ssi-header h3 {
    font-size: 1.25rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.ssi-header p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 30px;
}

.ssi-phases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .ssi-phases-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.ssi-phase-card h5 {
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 700;
}

.ssi-phase-card p {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.ssi-phase-card ul {
    list-style: none;
    padding: 0;
}

.ssi-phase-card ul li {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    color: var(--text-main);
}

.ssi-phase-card ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    top: -2px;
}

/* Encadré de validation finale SSI */
.ssi-reception-box {
    margin-top: 35px;
    background: #ffffff;
    border: 1px solid var(--gray-border);
    padding: 20px 25px;
    border-left: 4px solid var(--primary);
}

.ssi-reception-box h5 {
    font-size: 0.95rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 700;
}

.ssi-reception-box p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    color: var(--text-main);
}

/* --- 7. Encadré d'Engagement (Pied de page) --- */
.engagement-box {
    max-width: 750px;
    margin: 0 auto;
    background: var(--gray-light);
    border: 1px dashed var(--primary);
    padding: 30px;
}

.engagement-box h4 {
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.engagement-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.section-divider {
    border: 0;
    height: 1px;
    background: var(--gray-border);
    margin: 50px 0;
}
/* ==========================================================================
   INTEGRATION MOBILE DIRECTE DANS LE HEADER EXISTANT
   ========================================================================== */

/* Masqué par défaut sur ordinateur */
.mobile-menu-wrapper {
    display: none;
}

@media (max-width: 768px) {
    /* On force l'alignement du burger à côté du logo dans votre barre actuelle */
    .mobile-menu-wrapper {
        display: block !important;
    }

    /* Annulation des marges globales des anciennes versions de barres superposées */
    body {
        padding-top: 0 !important; 
    }

    /* Case à cocher invisible */
    .mobile-toggle-input {
        display: none !important;
    }

    /* Icône Burger épurée intégrée à la ligne du logo */
    .mobile-burger-icon {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        cursor: pointer;
        position: absolute;
        top: 50%;
        right: 20px; /* Aligné à l'extrême droite de votre header existant */
        transform: translateY(-50%);
        z-index: 10000001 !important;
    }

    .burger-stripe {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #333333 !important; /* S'adapte à la couleur de votre texte actuel */
        border-radius: 1px !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }

    /* Le Volet Vertical Coulissant (commence en haut à 0 pour s'aligner parfaitement) */
    .mobile-vertical-drawer {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        right: -280px !important; /* Masqué à droite */
        width: 280px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1) !important;
        z-index: 10000000 !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: 70px 20px 20px 20px !important; /* Espace haut pour pas que la croix/burger chevauche le 1er lien */
        box-sizing: border-box !important;
        border-left: 1px solid #dddddd !important;
    }

    /* Liens verticaux internes */
    .drawer-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .drawer-links .drawer-item {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 14px 18px !important;
        color: #333333 !important;
        text-decoration: none !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }

    .drawer-links .drawer-item:hover {
        background-color: #f8f9fa !important;
    }

    .drawer-label {
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* Style de la page PHP active */
    .drawer-links .drawer-item.active {
        background-color: var(--accent, #e6f0fa) !important;
        color: var(--primary, #0056b3) !important;
        border-left: 4px solid var(--primary, #0056b3) !important;
    }

    /* Fond opaque en arrière-plan */
    .mobile-menu-backdrop {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.3) !important;
        z-index: 9999998 !important;
    }

    /* ==========================================================================
       LOGIQUE D'OUVERTURE REGLÉE
       ========================================================================== */

    /* Déploiement du volet */
    .mobile-toggle-input:checked ~ .mobile-vertical-drawer {
        right: 0 !important;
    }

    /* Activation du fond opaque */
    .mobile-toggle-input:checked ~ .mobile-menu-backdrop {
        display: block !important;
    }

    /* Transformation des trois barres en Croix (X) sans bouger de place */
    .mobile-toggle-input:checked ~ .mobile-burger-icon .burger-stripe:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }
    .mobile-toggle-input:checked ~ .mobile-burger-icon .burger-stripe:nth-child(2) {
        opacity: 0 !important;
    }
    .mobile-toggle-input:checked ~ .mobile-burger-icon .burger-stripe:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }
}
/* ==========================================================================
   BOUTON FIXE WHATSAPP - MASQUÉ SUR ORDINATEUR & TABLETTE
   ========================================================================== */
.mobile-whatsapp-fixed-btn {
    display: none !important; /* Invisible par défaut sur écran large */
}

/* ==========================================================================
   AFFICHAGE UNIQUEMENT SUR TÉLÉPHONE (MAX 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-whatsapp-fixed-btn {
        display: flex !important; /* Devient visible uniquement sur mobile */
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        background-color: #25D366 !important; /* Vert WhatsApp */
        color: #ffffff !important;
        text-decoration: none !important;
        padding: 12px 20px !important;
        border-radius: 30px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        z-index: 999999 !important;
        font-family: Arial, sans-serif !important;
        font-size: 0.9rem !important;
        font-weight: bold !important;
        letter-spacing: 0.5px !important;
        animation: whatsapp-pulse 2s infinite ease-in-out;
    }

    .mobile-whatsapp-fixed-btn .whatsapp-icon-svg {
        display: flex;
        align-items: center;
    }

    @keyframes whatsapp-pulse {
        0% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        }
        50% {
            transform: scale(1.04);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
        }
        100% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
        }
    }
}
/* ==========================================================================
   ENCADREMENT HARMONISÉ DES PHASES SSI (A-PROPOS.PHP)
   ========================================================================== */

/* Grille alignant les 3 phases côte à côte sur ordinateur et l'une sous l'autre sur mobile */
.ssi-phases-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

/* L'encadrement identique appliqué uniformément aux 3 phases */
.ssi-phase-card {
    flex: 1 1 calc(33.333% - 25px); /* 3 colonnes égales */
    min-width: 280px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* Bordure grise fine et épurée */
    border-radius: 8px; /* Coins légèrement arrondis */
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* Ombre légère de relief */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Effet esthétique au survol de n'importe quel encadré */
.ssi-phase-card:hover {
    border-color: var(--primary, #0056b3); /* La bordure s'illumine avec votre bleu */
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.08);
    transform: translateY(-3px);
}

/* En-tête interne des encadrés */
.phase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.phase-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary, #0056b3);
    background-color: #e6f0fa;
    padding: 4px 10px;
    border-radius: 4px;
}

.phase-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #1e293b;
}

/* Style de la liste des tâches à l'intérieur */
.phase-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.phase-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

/* Petite puce bleue sur-mesure devant chaque tâche */
.phase-list li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: var(--primary, #0056b3);
    font-weight: bold;
}
/* ==========================================================================
   BOITES D'ENCADREMENT ÉGALES POUR LES PHASES SSI
   ========================================================================== */

.ssi-phases-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

/* L'encadrement identique appliqué uniformément aux 3 blocs */
.ssi-phase-card {
    flex: 1 1 calc(33.333% - 24px);
    min-width: 290px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* Même bordure fine pour les trois phases */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Effet au survol sur n'importe laquelle des trois boîtes */
.ssi-phase-card:hover {
    border-color: #0056b3; /* Coloration bleu Elitech au survol */
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.08);
    transform: translateY(-2px);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.phase-number {
    font-size: 1rem;
    font-weight: bold;
    color: #0056b3;
    background-color: #e6f0fa;
    padding: 3px 8px;
    border-radius: 4px;
}

.phase-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #1e293b;
}

.phase-sub-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.phase-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.phase-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
}

.phase-list li::before {
    content: "•";
    position: absolute;
    left: 2px;
    color: #0056b3;
    font-weight: bold;
}
/* ==========================================================================
   CODE COULEUR DES BORDURES PAR SERVICE (SERVICES.PHP)
   ========================================================================== */

/* Sécurité Incendie : Rouge */
.border-fire {
    border-color: #d32f2f !important; /* Rouge vif réglementaire */
}

/* Accessibilité PMR : Bleu */
.border-pmr {
    border-color: #0056b3 !important; /* Bleu Elitech */
}

/* Stabilité & Structure : Vert */
.border-structure {
    border-color: #2e7d32 !important; /* Vert foncé structurel */
}

/* Étanchéité : Bleu Ciel */
.border-waterproof {
    border-color: #00a8e8 !important; /* Bleu ciel / cyan */
}

/* Installations Techniques : Rouge */
.border-tech {
    border-color: #d32f2f !important; /* Rouge technique */
}

/* Aires de Jeux & Équipements : Vert */
.border-playground {
    border-color: #2e7d32 !important; /* Vert pelouse/loisirs */
}
/* Style dédié à la page Références */
.ref-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f5;
}

.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.ref-img-wrapper {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background-color: #f4f6f8;
}

.ref-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ref-badge-year {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #0056b3;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ref-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ref-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.ref-client {
    color: #0056b3;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.ref-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.ref-details-item span {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
}

.ref-details-item strong {
    color: #2b2b2b;
}

.ref-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444444;
}

.ref-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.ref-tag {
    background-color: #eef4ff;
    color: #0056b3;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ref-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.ref-header-section {
    padding-top: 40px;
    padding-bottom: 20px;
}

.ref-header-subtitle {
    font-size: 1.2rem;
    color: #666666;
    max-width: 800px;
    margin: 0 auto;
}

.ref-main-container {
    padding-bottom: 60px;
}