/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Empêche le scroll horizontal accidentel */
}

/* Rendre toutes les images fluides par défaut */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- HEADER & NAVIGATION --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    background: #fff;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    cursor: pointer;
    z-index: 1001; /* Pour rester au-dessus du menu mobile */
}

.logo-top {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #666;
}

.logo-bottom {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #666;
}

/* Styles du Menu (Desktop par défaut) */
.menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #000;
}

/* Éléments pour le Menu Burger (Cachés sur Desktop) */
.menu-btn {
    display: none;
}
.menu-icon {
    display: none;
    cursor: pointer;
    padding: 28px 20px;
    position: relative;
    user-select: none;
}
.navicon {
    background: #333;
    display: block;
    height: 2px;
    position: relative;
    transition: background .2s ease-out;
    width: 18px;
}
.navicon:before,
.navicon:after {
    background: #333;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.navicon:before { top: 5px; }
.navicon:after { top: -5px; }


/* --- PAGE D'ACCUEIL (INDEX) --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 56px); /* Taille fluide responsive */
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.hero-image {
    /* Suppression de background gris si image présente, sinon garder pour placeholder */
    /* background: #d0d0d0; */ 
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.services {
    padding: 80px 60px;
}

.services-label {
    font-size: 12px;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

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

.service-item {
    display: flex;
    gap: 20px;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: #f0f0f0;
    border-radius: 50%;
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.service-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* --- PAGES DE CONTENU (INTERNES) --- */
.content-container {
    max-width: 900px; /* Utiliser des pixels max plutôt que % pour grands écrans */
    width: 90%; /* Responsive par défaut */
    margin: 0 auto;
    padding: 80px 0;
}

.content-header {
    margin-bottom: 60px;
}

.content-header h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.content-intro {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    font-weight: 300;
    margin-bottom: 50px;
    text-align: left; /* Justify est difficile à lire sur mobile */
}

.content-body h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.content-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #333;
}

.content-body p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
    text-align: left;
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 60px 30px;
    margin-top: 80px;
}

.footer-content {
    margin-bottom: 50px;
    max-width: 600px;
}

.footer-about h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permet le retour à la ligne si nécessaire */
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}


/* =========================================
   --- MEDIA QUERIES (RESPONSIVE) ---
   ========================================= */

@media (max-width: 768px) {
    /* 1. Header & Menu Burger */
    header {
        padding: 15px 20px;
    }

    .menu {
        display: none; /* Cache le menu classique */
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 0;
        border-bottom: 1px solid #e0e0e0;
        gap: 0;
    }

    .menu a {
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        display: block;
    }

    /* Logique du Burger Menu */
    .menu-icon {
        display: block;
        z-index: 1002;
    }

    /* Quand la checkbox est cochée, on affiche le menu */
    #menu-btn:checked ~ .menu {
        display: flex;
    }

    /* Animation de l'icône burger */
    #menu-btn:checked ~ .menu-icon .navicon {
        background: transparent;
    }
    #menu-btn:checked ~ .menu-icon .navicon:before {
        transform: rotate(-45deg);
        top: 0;
    }
    #menu-btn:checked ~ .menu-icon .navicon:after {
        transform: rotate(45deg);
        top: 0;
    }

    /* 2. Page d'accueil (Hero & Services) */
    .hero {
        grid-template-columns: 1fr; /* Une seule colonne */
        padding: 40px 20px;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    /* Pour inverser l'ordre si on veut l'image au-dessus sur mobile : */
    /* .hero-image { order: -1; } 
    */

    .services {
        padding: 40px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 40px;
    }

    .service-item {
        flex-direction: column; /* Icône au dessus du texte */
        align-items: center;
        text-align: center;
    }

    /* 3. Pages de contenu */
    .content-container {
        width: 100%;
        padding: 40px 20px;
    }

    .content-header h1 {
        font-size: 32px;
    }

    .content-intro {
        font-size: 18px;
        text-align: left;
    }

    /* 4. Footer */
    footer {
        padding: 40px 20px;
        margin-top: 40px;
    }

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