/* --- Styles Généraux : Thème Sombre --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', sans-serif, Arial, sans-serif;
    color: #e2e8f0;
    background-color: #121824;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header --- */
.site-header {
    background-color: #0b1017;
    border-bottom: 1px solid #2a3748;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-branding .logo-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.site-branding .logo-tagline {
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.main-navigation a {
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #38bdf8;
}

.btn-contact {
    background-color: #0284c7;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-contact:hover {
    background-color: #0369a1;
}

/* --- Hero Banner & Page Banners --- */
.hero-banner, .page-header-banner {
    /* background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), #0f172a; */
    background-color: #0b1017;
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
    /*border-bottom: 1px solid #2a3748;*/
}

.hero-container h1, .page-header-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom:1.5rem;
    color: #ffffff;
}

.hero-lead, .page-header-banner p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 1rem auto;
    font-weight: 300;
    color: #94a3b8;
    line-height: 1.5;
}

.btn-main {
    display: inline-block;
    background-color: #f59e0b;
    color: #121824;
    padding: 0.8rem 1rem;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-main:hover {
    background-color: #d97706;
}

/* --- Sections & Cartes --- */
.content-section, .about-intro-section {
    padding: 5rem 0;
    background-color: #0b1017;
}

.about-intro-section h2, .content-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
    font-size: 1.05rem;
    color: #94a3b8;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: #1a2332;
    padding: 2.5rem 2rem;
    border-radius: 6px;
    border-top: 4px solid #38bdf8;
    border: 1px solid #2a3748;
}

.feature-box h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-box p, .feature-box ul {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Quick Contact Band --- */
.quick-contact-band {
    background-color: #1a2332;
    color: #ffffff;
    padding: 3rem 0;
    border-top: 1px solid #2a3748;
    border-bottom: 1px solid #2a3748;
}

.band-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.quick-contact-band h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.quick-contact-band p {
    color: #94a3b8;
}

.btn-alt {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-alt:hover {
    background-color: #ffffff;
    color: #121824;
}

/* --- Footer --- */
.site-footer {
    background-color: #0b1017;
    color: #94a3b8;
    padding: 4rem 0 0 0;
    border-top: 1px solid #2a3748;
}

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

.footer-widget h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.6rem;
}

.footer-widget a:hover {
    color: #ffffff;
}

.footer-bottom {
    background-color: #0b1017;
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid #1a2332;
}

/* Formulaires et boîtes de texte */
input, textarea {
    background-color: #1a2332 !important;
    color: #ffffff !important;
    border: 1px solid #2a3748 !important;
}

/* Style et dimension du logo dans l'en-tête */
.site-logo {
    height: 60px; /* Ajustez la hauteur selon le rendu souhaité (ex: entre 40px et 60px) */
    width: auto;  /* Conserve les proportions de l'image */
    display: block;
}

/* --- Style du bouton Hamburger (masqué sur grand écran) --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animation de l'icône burger vers une croix (X) quand le menu est ouvert */
.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Adaptabilité Mobile (Media Query) --- */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; /* Affiche le bouton burger uniquement sous 768px */
    }

    .main-navigation {
        display: none; /* Masque le menu classique sur mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a2332;
        border-bottom: 1px solid #2a3748;
        padding: 1.5rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }

    .main-navigation.active {
        display: block; /* Affiche le menu déroulant quand activé */
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }

    .main-navigation a {
        font-size: 1.1rem;
    }
}

/* --- Style et adaptation des images dans les cadres --- */
.content-image-box {
    width: 213px;
    height: 160px; /* Hauteur fixe du cadre pour toutes les images */
    object-fit: fill; /* Recadre l'image proprement pour remplir le cadre sans se déformer */
    border-radius: 4px;
    border: 1px solid #2a3748;
    display: block;
}