/* --- VARIABLES --- */
:root {
    --primary: #2c3e50;       /* Bleu Nuit */
    --accent: #3498db;        /* Bleu Éclatant */
    --text-dark: #2d3436;     /* Gris Anthracite */
    --text-light: #636e72;    /* Gris Doux */
    --bg-light: #f4f7f6;      /* Fond très clair */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    line-height: 1.7; 
    color: var(--text-dark); 
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER --- */
.main-header {
    background: var(--white);
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between; /* Logo à gauche, slogan à droite */
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.slogan {
    font-weight: 500;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-left: 2px solid #ddd;
    padding-left: 15px;
}

/* --- HERO SECTION --- */
.hero {
    padding: 10rem 10%; /* Un peu plus d'espace pour laisser respirer l'image */
    
    /* 1. L'IMAGE DE FOND */
    /* Remplace 'votre-image.jpg' par ton fichier ou une URL */
    background-image: 
        linear-gradient(rgba(26, 42, 58, 0.85), rgba(44, 62, 80, 0.85)), 
        url('background.jpg'); 
    
    /* 2. RÉGLAGES DE L'IMAGE */
    background-size: cover;       /* L'image occupe tout l'espace */
    background-position: center;   /* Centrer l'image */
    background-attachment: fixed; /* Optionnel : effet Parallaxe (l'image reste fixe au scroll) */
    
    color: white;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1.5rem; 
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Ombre portée pour détacher le texte */
}

.hero p { 
    max-width: 750px; 
    font-size: 1.3rem; 
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Petit effet décoratif en fond */
.hero::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 1.5rem; 
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero p { 
    max-width: 700px; 
    margin: 0 auto; 
    font-size: 1.25rem; 
    color: #bdc3c7;
    position: relative;
    z-index: 1;
}

/* --- SERVICES CARDS --- */
.services {
    padding: 5rem 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card::before {
    content: "";
    width: 40px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.card h3 { 
    font-size: 1.3rem; 
    margin-bottom: 1rem; 
    color: var(--primary);
}

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

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary);
    color: #dfe6e9;
    padding: 5rem 10% 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h4 { 
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section strong {
    color: var(--white);
}

.legal-bar {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: #95a5a6;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .main-header { 
        flex-direction: column; 
        text-align: center; 
        gap: 1rem; 
    }
    .slogan {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #ddd;
        padding-top: 10px;
    }
    .hero h1 { font-size: 2.2rem; }
}