/************************************************* VARIABLES *************************************************/
:root {
    --blanc: #ffffff;
    --noir: #000000;
    --bleu-fonce: #041423;
    --bleu-clair: #0091FF;
    --gris-fonce: #A6A9AC;
    --gris-clair: #D1D3D4;
	--jaune-dore: #9F8552;
    --header-logo-height: 60px; /* Taille spécifique pour le haut */
}

/************************************************* LAYOUT GLOBAL *********************************************/
html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    display: block;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: var(--gris-clair);
    background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.88)), url('logo.jpg') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.6;
    min-height: 100vh;
}

/************************************************* HEADER & NAVIGATION ***************************************/
header {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1.5rem 5% 0 5%;
    border-bottom: 4px solid var(--jaune-dore);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-title-container { display: flex; align-items: center; gap: 20px; }

/* Taille du logo en haut */
.header-logo { height: var(--header-logo-height); width: auto; display: block; }

header h1 { margin: 0; font-size: 1.2rem; text-transform: uppercase; color: var(--blanc); letter-spacing: 1px; }

.btn-devis {
    background: var(--bleu-fonce);
    color: var(--blanc);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 0.8rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-devis:hover { background: var(--jaune-dore); color: var(--bleu-fonce); }

.menu-principal ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-principal li { flex: 1; }

.menu-principal li a {
    display: block;
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    color: var(--blanc);
    font-weight: bold;
    font-size: 0.85rem;
    background: rgba(0, 74, 143, 0.15);
    border: 1px solid var(--jaune-dore);
    border-bottom: none;
    transition: 0.3s;
}

.menu-principal li a:hover, .menu-principal a.active-nav {
    background: var(--jaune-dore);
    color: var(--bleu-fonce);
}

/************************************************* CONTENU PRINCIPAL *****************************************/
main {
    padding: 60px 10%;
    min-height: 600px;
    box-sizing: border-box;
}

.content-section {
    display: none;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.content-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text { text-align: center; margin-bottom: 40px; }
.hero-text h2 { font-size: 2.5rem; color: var(--blanc); margin-bottom: 10px; }
.separator { width: 80px; height: 4px; background: var(--jaune-dore); border: none; margin: 20px auto; }
.lead { color: var(--jaune-dore); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }

.presentation-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 10px;
    text-align: justify;
    border: 1px solid rgba(255,255,255,0.05);
}

h3 { color: var(--blanc); font-size: 1.6rem; margin-bottom: 20px; text-align: center; }

/* Grilles */
.feature-grid, .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-item, .why-item {
    background: rgba(0, 74, 143, 0.1);
    padding: 25px;
    border: 1px solid rgba(0, 145, 255, 0.2);
    border-radius: 8px;
    text-align: center;
}

.feature-item h4, .why-item strong {
    color: var(--jaune-dore);
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Prestations */
.presta-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.presta-card {
    flex: 1;
    min-width: 300px;
    background: rgba(0,0,0,0.6);
    border-left: 5px solid var(--jaune-dore);
    padding: 25px;
    border-radius: 0 8px 8px 0;
}
.presta-card.full-width { flex-basis: 100%; }
.list-styled { list-style: none; padding-left: 0; }
.list-styled li { margin-bottom: 12px; padding-left: 20px; position: relative; }
.list-styled li::before { content: "▪"; color: var(--jaune-dore); position: absolute; left: 0; }

.sub-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/************************************************* FOOTER ****************************************************/
footer {
    background-color: rgba(0, 0, 0, 0.95);
    border-top: 4px solid var(--jaune-dore);
    padding: 30px 5%; /* Légère réduction du padding vertical */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centre verticalement le texte et le grand logo */
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px; /* Espace minimum entre le texte et le logo */
}

.footer-info {
    text-align: left;
    flex: 1; /* Prend tout l'espace disponible à gauche */
}

.footer-info h3 { text-align: left; margin: 0 0 10px 0; font-size: 1rem; }
.legal-small { font-size: 0.75rem; font-style: italic; margin-top: 15px; opacity: 0.8; }

/* --- OPTIMISATION LOGO FOOTER --- */
.footer-logo-box {
    flex: 0 0 auto; /* Ne rétrécit pas, ne grandit pas au-delà de sa taille intrinsèque */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* On limite la largeur pour ne pas écraser le texte sur écran moyen, 
       tout en permettant une grande hauteur */
    max-width: 30%; 
}

.footer-logo {
    /* Largeur maximale du conteneur, hauteur automatique pour conserver les proportions.
       Cela rendra le logo aussi grand que le conteneur le permet. */
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
    /* On définit une hauteur maximale généreuse pour qu'il soit "le plus grand possible"
       sans déformer le footer sur de très grands écrans. */
    max-height: 150px; 
}

/************************************************* COOKIES ***************************************************/
#cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--bleu-fonce);
    color: var(--blanc);
    padding: 15px;
    text-align: center;
    z-index: 9999;
    box-sizing: border-box;
}

#cookie-banner button {
    background: var(--blanc);
    border: none;
    padding: 5px 15px;
    margin-left: 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

/************************************************* RESPONSIVE ************************************************/
@media (max-width: 768px) {
    .header-top { flex-direction: column; text-align: center; gap: 20px; }
    header h1 { font-size: 1rem; }
    .menu-principal ul { flex-direction: column; }
    .menu-principal li a { border-right: 1px solid var(--jaune-dore); border-bottom: 1px solid var(--jaune-dore); }
    
    /* Adaptation du footer sur mobile */
    .footer-container { flex-direction: column; text-align: center; gap: 30px; }
    .footer-info { text-align: center; }
    .footer-info h3 { text-align: center; }
    
    .footer-logo-box {
        max-width: 60%; /* Plus large sur mobile car centré */
        margin: 0 auto;
        justify-content: center;
    }
    .footer-logo {
        max-height: 100px; /* Un peu plus petit sur mobile */
    }

    .hero-text h2 { font-size: 1.8rem; }
    main { padding: 40px 5%; }
}