/* --- 1. PALETTE DE COULEURS & VARIABLES --- */
:root {
    /* BLEU MARINE (Dominante - Confiance, Autorité) */
    --primary: #0f2c4c;

    /* OR MAT / BEIGE DORÉ (Accent - Prestige, Élégance) */
    --gold: #c5a065;
    --gold-light: #e6dace;
    /* Pour les arrière-plans subtils */

    /* CRÈME / BLANC CASSÉ (Fond - Confort de lecture) */
    --bg-body: #f9f7f2;
    --bg-white: #ffffff;

    /* TEXTES */
    --text-main: #2c3e50;
    --text-light: #64748b;
}

/* --- 2. RESET & TYPOGRAPHIE --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    /* Police moderne pour le texte */
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
    /* Interligne augmenté pour la lisibilité */
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    /* Police classique pour les titres */
    color: var(--primary);
    margin-top: 0;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* CONTAINERS */
.container {
    max-width: 1100px;
    /* Largeur contenue pour éviter les lignes trop longues */
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 3. HEADER & NAVIGATION (Ergonomie améliorée) --- */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid rgba(197, 160, 101, 0.2);
    /* Filet doré subtil */
    position: sticky;
    /* Reste en haut au scroll */
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    max-width: 200px;
    /* L'image ne dépassera jamais la largeur de son parent */
    height: auto;
    /* Conserve les proportions (ratio) de l'image */
    display: block;
}

/* Menu Principal */
.main-nav>ul {
    display: flex;
    gap: 40px;
}

.main-nav>ul>li {
    position: relative;
}

.main-nav>ul>li>a {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    padding: 30px 0;
    /* Zone de clic verticale étendue */
    display: flex;
}

.main-nav>ul>li>a:hover {
    color: var(--gold);
}

/* Indicateur de sous-menu (petite flèche) */
.has-submenu::after {
    content: '▾';
    font-size: 0.8em;
    margin-left: 5px;
    color: var(--gold);
}

/* Sous-Menus (Dropdowns) */
.dropdown-menu {
    display: block;
    /* Toujours en block pour l'animation, on joue sur l'opacité */
    visibility: hidden;
    opacity: 0;

    /* Positionnement */
    position: absolute;
    top: 100%;
    left: -15px;
    background-color: var(--primary);
    min-width: 220px;
    border-top: 4px solid var(--gold);
    padding: 10px 0;

    /* Animation */
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
    z-index: 999;

    /* IMPORTANT : Empêche la souris d'interagir avec le menu quand il est caché */
    pointer-events: none;
}

.main-nav li:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    /* Réactive les clics quand visible */
}

.dropdown-menu li a {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: none;
    display: block;
    /* Prend toute la largeur */
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    border-left-color: var(--gold);
    padding-left: 25px;
}

.main-nav li:hover .dropdown-menu {
    display: block;
    animation: slideUp 0.3s ease-out;
}

.main-nav li:hover .dropdown-menu::after {
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 4. HERO SECTION (Impact visuel) --- */
.hero-section {
    background-color: var(--primary);
    color: var(--bg-body);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Forme décorative dorée en arrière-plan */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 101, 0.15) 0%, rgba(15, 44, 76, 0) 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--bg-body);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 450px;
}

/* Boutons ergonomiques */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 700;
    border-radius: 4px;
    /* Coins légèrement arrondis */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: #d4b87e;
    transform: translateY(-2px);
    /* Feedback tactile */
    box-shadow: 0 4px 12px rgba(197, 160, 101, 0.4);
}

.hero-img {
    background-color: #1a3a5a;
    /* Bleu plus clair pour le placeholder */
    width: 100%;
    height: 450px;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.2);
}

/* --- 5. SECTIONS CONTENU (Cartes claires) --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header .subtitle {
    color: var(--gold);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

/* Grille de services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Responsive automatique */
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* Barre dorée décorative au top de la carte */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--gold);
    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 44, 76, 0.08);
}

.card:hover::before {
    width: 100%;
    /* Animation de la barre dorée */
}

.card-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 25px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 700;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

/* --- 6. BANDEAU OFFRE (Split Layout) --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.split-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-img {
    background-color: var(--gold-light);
    /* Beige doré */
    min-height: 400px;
}

/* --- 7. FOOTER (Clarté) --- */
footer {
    background-color: var(--primary);
    color: #fff;
    padding: 80px 0 30px;
    border-top: 5px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}