/* style.css */
:root {
    --couleur-primaire: #003366; /* Bleu nuit/Gris foncé pour la sobriété */
    --couleur-secondaire: #f8f9fa; /* Gris très clair pour les fonds */
    --couleur-accent: #FF7900; /* Orange inspiré du logo pour les accents */
    --couleur-texte-primaire: #333;
    --couleur-texte-blanc: #ffffff;
    --couleur-navbar-fond: #003366; /* Fond de la navbar */
    --couleur-navbar-texte: #ffffff; /* Texte de la navbar */
    --couleur-footer-fond: #003366; /* Fond du footer */
    --couleur-footer-texte: #ffffff; /* Texte du footer */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--couleur-texte-primaire);
    line-height: 1.6;
}

/* Styles pour le conteneur du logo texte */
#textLogoContainer {
    display: flex; /* Permet de centrer le div interne si besoin */
    align-items: center; /* Aligne verticalement le bloc de texte au centre de la hauteur du navbar-brand */
    padding-top: 5px; /* Ajustez le padding pour un bon alignement vertical */
    padding-bottom: 5px;
    text-decoration: none; /* Assurez-vous qu'il n'y a pas de soulignement */
}

#textLogo {
    font-family: 'Good Times Rg', sans-serif; /* Appliquer la police Good Times */
    color: var(--couleur-navbar-texte);       /* Couleur du texte principale */
    text-align: center;                       /* Centrer le texte */
    line-height: 1.2;                         /* Ajuster l'interligne pour la lisibilité */
}

.logo-main-text {
    display: block; /* Fait en sorte que ce span prenne toute la largeur et force un retour à la ligne après */
    font-size: 18px;
    font-weight: bold; /* Optionnel, si vous voulez le texte principal en gras */
    margin-bottom: 4px; /* Petit espace en dessous du texte principal */
}

.logo-sub-text {
    display: block; /* Fait en sorte que ce span prenne toute la largeur */
    font-size: 8px; /* Réduit un peu par rapport aux 18px pour un meilleur équilibre visuel sous 28px */
                     /* Si vous préférez strictement 18px, changez-le ici. */
    /* font-weight: normal; /* Assurez-vous qu'il n'est pas en gras si le style parent l'est */
}

/* Optionnel : Comportement au survol pour le conteneur */
#textLogoContainer:hover #textLogo {
    color: var(--couleur-accent); /* Change la couleur de tout le bloc texte au survol */
}

.navbar-custom {
    background-color: var(--couleur-navbar-fond);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--couleur-navbar-texte);
    transition: color 0.3s ease;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--couleur-accent);
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.hero-section {
    background-color: var(--couleur-secondaire);
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    color: var(--couleur-primaire);
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.section-padding {
    padding: 60px 0;
}

.section-padding h3 {
            margin-top: 2rem;
            margin-bottom: 1rem;
            color: var(--couleur-primaire);
}
  .section-padding ul {
                padding-left: 20px;
}
.section-padding ul li {
                margin-bottom: 0.5rem;
}           



.bg-light-custom {
    background-color: var(--couleur-secondaire) !important;
}

.section-title {
    color: var(--couleur-primaire);
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 150px;
    height: 4px;
    background-color: var(--couleur-accent);
    margin: 10px auto 0;
}

.card-custom {
    border: none;
    background-color: var(--couleur-texte-blanc);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden; /* Pour que le border-radius s'applique à l'image aussi */
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.card-custom .card-body {
    padding: 25px;
}

.card-custom .card-title {
    color: var(--couleur-primaire);
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-custom-primary {
    background-color: var(--couleur-primaire);
    border-color: var(--couleur-primaire);
    color: var(--couleur-texte-blanc);
    padding: 10px 25px;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-custom-primary:hover {
    background-color: #1a2531; /* Un peu plus foncé que le primaire */
    border-color: #1a2531;
    color: var(--couleur-texte-blanc);
}

.btn-custom-accent {
    background-color: var(--couleur-accent);
    border-color: var(--couleur-accent);
    color: var(--couleur-texte-blanc);
    padding: 10px 25px;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-custom-accent:hover {
    background-color: #e66a00; /* Un peu plus foncé que l'accent */
    border-color: #e66a00;
    color: var(--couleur-texte-blanc);
}

.btn-outline-primary-custom {
    color: var(--couleur-primaire);
    border-color: var(--couleur-primaire);
    padding: 8px 20px;
}
.btn-outline-primary-custom:hover {
    background-color: var(--couleur-primaire);
    color: var(--couleur-texte-blanc);
}


footer {
    background-color: var(--couleur-footer-fond);
    color: var(--couleur-footer-texte);
    padding: 40px 0 20px 0;
    text-align: center;
}

footer a {
    color: var(--couleur-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--couleur-texte-blanc);
    text-decoration: underline;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Styles pour les listes de métiers/avantages */
.list-icon {
    list-style: none;
    padding-left: 0;
}
.list-icon li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}
.list-icon li::before {
    content: '✓'; /* ou une icône SVG/FontAwesome */
    color: var(--couleur-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--couleur-accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 121, 0, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section .lead {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

.img-fluid-max-height {
    max-height: 400px; /* Ajustez selon vos besoins */
    width: auto;
    display: block;
    margin: 0 auto; /* Pour centrer si width est auto */
}

.img-realisation {
    width: 100%;
    height: 250px; /* Hauteur fixe pour les cartes de réalisations */
    object-fit: cover; /* Assure que l'image couvre la zone sans se déformer */
    border-bottom: 1px solid #eee;
}

/* Styles pour limiter la taille des images dans le carrousel */
        .carousel-item img {
            max-width: 900px; /* Limite de largeur pour l'image */
            max-height: 800px; /* Limite de hauteur pour l'image */
            width: auto; /* Maintien des proportions */
            height: auto; /* Maintien des proportions */
            margin: 0 auto; /* Centrage de l'image si elle est plus petite que le conteneur */
            display: block;
        }

        /* Styles pour la légende dynamique sous le carrousel */
        .carousel-dynamic-caption {
            font-size: 0.9rem;
            color: var(--couleur-navbar-fond); /* Couleur de texte Bootstrap par défaut pour une bonne lisibilité */
            /* Fond légèrement différent pour distinguer la légende */
            padding: 8px 12px;
            border-radius: 0.25rem;
            margin-top: 10px; /* Espace entre le carrousel et la légende */
            min-height: 1.5em; /* Empêche les sauts de layout si la légende est momentanément vide */
         
            
        }