/* --- RESET & GLOBAL --- */
:root {
    --sage-red: #D61A26; /* Rouge charte graphique */
    --sage-dark-red: #a3121b;
    --text-color: #333;
    --bg-gray: #f4f5f7; /* Fond grisé */
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-gray);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- HEADER --- */
header {
    background-color: var(--white);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.logo-container .logo { max-width: 250px; height: auto; }

/* --- NAVIGATION --- */
.main-nav {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-list { display: flex; justify-content: center; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a {
    display: block;
    padding: 20px 40px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
    cursor: pointer;
}
.nav-list a:hover { color: var(--sage-red); }

/* Classe active (gérée par layout.js) */
.nav-list a.active { color: var(--sage-red); }
.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 3px;
    background-color: var(--sage-red);
}

/* Bouton Extranet */
.extranet-link:hover { background-color: var(--sage-red); color: white !important; }

/* --- MAIN CONTENT --- */
main { padding: 40px 0; flex: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Bannière Travaux */
.construction-banner {
    background-color: #f39c12;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 30px;
}

/* Styles Généraux Sections */
.hero-section { text-align: center; margin-bottom: 50px; }
.hero-section h1 { font-size: 2.5rem; margin-bottom: 20px; color: var(--sage-red); }
.intro-text { font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px auto; }

.highlight-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--sage-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.highlight-box h2, .highlight-box h3 { color: var(--sage-dark-red); margin-bottom: 15px; }
.rse-box { margin-top: 40px; }

/* Grille Valeurs */
.section-title { text-align: center; font-size: 2rem; margin-bottom: 30px; }
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 3px solid transparent;
}
.card:hover { transform: translateY(-5px); border-top: 3px solid var(--sage-red); }
.card h3 { color: var(--sage-red); margin-bottom: 10px; font-size: 1.3rem; }

/* Liste à puces Expertise */
.custom-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.custom-list li::before {
    content: "¦"; color: var(--sage-red);
    position: absolute; left: 0; top: 5px; font-size: 0.7rem;
}

/* Grille Certifications */
.certif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.certif-item {
    background: #fff; padding: 15px;
    border-left: 4px solid var(--sage-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.9rem; text-align: center;
}
.certif-item strong { display: block; font-size: 1.2rem; color: var(--sage-red); margin-bottom: 5px; }

/* --- FOOTER --- */
footer { background-color: #222; color: #fff; padding: 40px 0 20px 0; margin-top: auto; }
.footer-content { text-align: center; }
.footer-info h3 { color: var(--sage-red); margin-bottom: 15px; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid #444; font-size: 0.9rem; color: #aaa; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-list { flex-direction: column; }
    .nav-list a { padding: 15px; border-bottom: 1px solid #f0f0f0; }
    .nav-list a.active::after { height: 0; border-left: 5px solid var(--sage-red); }
}