/* --- Variables et Style Général --- */
:root {
    --primary-color: #003366;  /* Bleu marine (sécurité, confiance) */
    --secondary-color: #d4a017; /* Or/Jaune (qualité, premium) */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
/* --- Boutons de la section HERO SLIDER (.btn-primary) --- */
.btn-primary {
    background: #ffffff; /* Fond BLANC */
    color: #003366; /* Texte OR/JAUNE */
    border: 2px solid #003366; /* Bordure OR/JAUNE */
    padding: 12px 24px; /* Augmenté légèrement pour un meilleur effet */
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #003366; /* Fond BLEU MARINE au survol */
    color: #ffffff; /* Texte BLANC (Ceci est correct) */
    border-color: #003366; /* <-- CORRIGÉ : La bordure devient BLEU MARINE */
}

/* --- Bouton "Découvrir nos services" (.btn-secondary) --- */
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white); /* Bordure BLANCHE */
    color: var(--white); /* Texte BLANC */
}

/* Ajout de l'effet HOVER pour le bouton 'Découvrir nos services' */
.btn-secondary:hover {
    background-color: var(--white); /* Fond BLANC */
    color: #003366; /* Texte BLEU MARINE */
    border-color: var(--white); /* Bordure BLANCHE */
}

/* --- Header & Navigation --- */
/* --- Header & Navigation --- */
.header {
    /* Le header global ne fait que contenir les deux barres */
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* NOUVELLE BARRE DU HAUT */
.header-top-bar {
    background-color: var(--primary-color); /* Bleu marine */
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left, .top-bar-contact {
    flex: 1; /* Occupent 1 part */
}

.top-bar-slogan {
    flex: 2; /* Le slogan prend 2 parts (plus grand) */
    text-align: center;
    font-weight: bold;
    font-style: italic;
    padding-right: 50px; /* <-- AJOUTEZ CECI */
}

.top-bar-contact {
    text-align: right;
    display: flex; /* Met les éléments côte à côte */
    justify-content: flex-end; /* Aligne le groupe à droite */
    align-items: center; /* Aligne verticalement au centre */
    gap: 20px; /* Espace entre le téléphone et l'email */
}

/* C'est tout ! N'ajoutez rien pour .contact-phone ou .contact-email */

/* Les règles .contact-phone et .contact-email ne sont plus nécessaires */

/* SUPPRIMEZ l'ancienne règle ".contact-phone, .contact-email" 
   car elle n'est plus nécessaire.
*/
.top-bar-contact a {
    color: var(--white);
    text-decoration: none;
}
.top-bar-contact a:hover {
    color: var(--secondary-color); /* Couleur Or au survol */
}

/* BARRE DE NAVIGATION PRINCIPALE (MENU) */
.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0; /* Padding qui était avant sur .header */
   
 
    background: var(--white); /* Fond blanc pour la barre de menu */
    border-top: 1px solid #eee;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}
.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.nav-links li {
    margin-left: 20px;
}
.nav-links a {
    text-decoration: none;
    color: #000000; /* <-- Écriture en NOIR par défaut */
    font-weight: bold;
    transition: color 0.2s ease-in-out; /* Ajoute une transition douce */
}
.nav-links a.active, .nav-links a:hover {
    /* Utilise la variable de couleur bleue (--primary-color) 
      que nous avons déjà définie. 
    */
    color: var(--primary-color); /* <-- Écriture en BLEU au clic / survol */
}
.cta-button {
    background: var(--primary-color); /* Fond BLEU par défaut */
    color: var(--white) !important;  /* <-- AJOUTEZ !important (Force le blanc) */
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--white);             /* Fond BLANC au survol */
    color: var(--primary-color) !important; /* <-- AJOUTEZ !important (Force le bleu) */
    border-color: var(--primary-color);
}
.hamburger-menu {
    display: none; /* Caché sur ordinateur */
    cursor: pointer;
}
/* --- Animation du Hamburger en 'X' --- */
.hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease; /* Ajoute la transition pour l'animation */
}

.hamburger-menu.active div:nth-child(1) {
    /* Fait tourner la barre du haut */
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active div:nth-child(2) {
    /* Fait disparaître la barre du milieu */
    opacity: 0;
}
.hamburger-menu.active div:nth-child(3) {
    /* Fait tourner la barre du bas */
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Section Hero (Maintenant un Slider) --- */
.hero-slider {
    position: relative; /* Ancre pour les éléments superposés */
    height: 60vh; /* Garde la même hauteur */
    color: var(--white);
    background-color: var(--primary-color); /* Fond de secours */
    overflow: hidden; /* Cache ce qui dépasse */
}

.slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    
    /* Animation de fondu (fade) */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Durée de la transition */
    z-index: 1; /* Couche des images */
}

.slide.active {
    opacity: 1; /* La slide active est visible */
}

/* Le contenu superposé */
.hero-content {
    /* Il doit être par-dessus les slides */
    position: relative; 
    z-index: 2; /* Couche du texte (au-dessus de z-index: 1) */
    
    /* On garde le centrage */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    
    /* Ajoute le filtre sombre pour la lisibilité */
    background: transparent;
}

/* On s'assure que le h1, le p et les boutons sont corrects */
.hero-content h1 {
    color: var(--white);
    font-size: 2.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: flex-end; /* Aligne les boutons à droite */
    width: 100%; /* S'assure que le conteneur prend toute la largeur */
    gap: 20px; /* Crée un espace entre les boutons */
}
/* --- Sections Communes --- */
section {
    padding: 4rem 0;
}
section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

/* --- Services Overview --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}
.service-card h3 {
    color: var(--secondary-color);
}
.service-card a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

/* --- Engagements Overview --- */
.engagements-overview {
    background: var(--light-gray);
}
.engagements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.engagement-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
}

/* --- Final CTA --- */
.final-cta {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}
.final-cta h2 {
    color: var(--white);
}

/* --- Footer --- */
.footer {
    background: #222;
    color: #ccc;
    padding: 3rem 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: var(--white);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}
.footer a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--white);
}
.footer-bottom {
    text-align: center;
    margin-top: 5px; /* Réduit la marge du haut */
    margin-bottom: 5px; /* Réduit la marge du bas */
    padding: 0;
    line-height: 0.5;
}
.cnaps-mention {
    font-size: 0.8rem;
    font-style: italic;
    color: #918f8f;
}

/* AJOUTEZ CE NOUVEAU CODE :
   Il cible l'image à l'intérieur de votre lien logo.
*/
.logo img {
    max-height: 50px;  /* Ajustez 50px selon la taille voulue */
    width: auto;       /* Garde les proportions */
    display: block;    /* Assure un bon alignement */
}



/* --- Nouvelle Section : About Overview --- */
.about-overview {
    padding: 4rem 0;
    background: #fcfcfc; 
}

.about-grid {
    display: flex;
    gap: 40px; /* Espace entre l'image et le texte */
    align-items: center; /* Centre verticalement le contenu */
}

.about-text {
    flex: 1;
    padding-left: 40px; /* Un peu plus d'espace entre l'image et le texte */
    padding-right: 0;
}

.about-text h2 {
    text-align: left; /* Le titre revient à gauche */
    margin-bottom: 20px;
}

.about-image {
    flex: 1; /* Prend la moitié de l'espace sur ordinateur */
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* --- NOUVEAU STYLE : Grille de Cartes Riches (Mélange des deux styles) --- */

.solutions-grid-rich {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    margin-top: 2rem;
}

.solution-card-rich {
    position: relative;
    overflow: hidden; 
    border-radius: 8px; /* Un peu plus arrondis */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    text-decoration: none; 
    display: flex; /* Utilise flex pour positionner le contenu */
    flex-direction: column; /* Contenu en colonne */
    justify-content: flex-end; /* Alignement du contenu en bas */
    height: 300px; /* Hauteur plus généreuse pour le texte */
    color: var(--white); /* Texte blanc par défaut */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.solution-card-rich img {
    position: absolute; /* L'image est en fond */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.5); /* Assombrit fortement l'image */
    transition: filter 0.4s ease-in-out, transform 0.4s ease-in-out;
    z-index: 1; /* S'assure que l'image est derrière le contenu */
}

.card-content-rich {
    position: relative; /* Positionné par-dessus l'image */
    z-index: 2; /* S'assure qu'il est au-dessus de l'image */
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7) 70%); /* Dégradé sombre en bas */
    text-align: left;
    height: 100%; /* Permet au dégradé de bien s'étendre */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pousse le contenu vers le bas */
}

.card-content-rich h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.card-content-rich p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.card-content-rich span { /* Style pour le "En savoir plus" */
    display: inline-block;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--secondary-color); /* Couleur Or/Jaune */
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Effets au survol */
.solution-card-rich:hover {
    transform: translateY(-5px); /* Légèrement soulevé */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.solution-card-rich:hover img {
    filter: brightness(0.65); /* L'image s'éclaircit un peu plus */
    transform: scale(1.03); /* Petit zoom */
}

.solution-card-rich:hover span {
    color: var(--white); /* Le "En savoir plus" devient blanc au survol */
    text-decoration: underline;
}


/* --- Style de la Section FAQ --- */
.faq-section {
    padding: 4rem 0;
    background: var(--white); /* Fond blanc */
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden; /* Cache la réponse par défaut */
}

.faq-question {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 18px 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ajout d'un signe Plus/Moins */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-question:hover {
    background-color: #e9e9e9;
}

.faq-answer {
    padding: 0 20px;
    background-color: var(--white);
    max-height: 0; /* Caché par défaut */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 10px 0;
    margin: 0;
    line-height: 1.6;
}

/* Style de la réponse ouverte */
.faq-question.active + .faq-answer {
    max-height: 200px; /* Hauteur maximale arbitraire, ajustez si besoin */
    padding: 15px 20px;
}












/* --- Footer --- */
.footer {
    background: #222; /* Fond Gris très foncé/Noir */
    color: #ccc; /* Couleur de texte par défaut */
    padding: 3rem 0;
}

.footer-content {
    /* Mise en page de la grille à 4 colonnes pour le bureau */
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr; /* Donne plus de place au Logo et à la Newsletter */
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Styles pour les titres H4 */
.footer-col h4 {
    color: var(--white);
    border-bottom: 2px solid var(--primary-color); /* <-- CHANGÉ EN BLEU */
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
}

/* Styles pour les liens et textes généraux du footer */
.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color); /* Couleur Or au survol */
}
.footer-logo-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 10px;
}

.footer-logo img {
    max-width: 150px; 
    height: auto;
    /* Un filtre pour que le logo ressorte bien sur le fond sombre (enlevez si votre logo est déjà clair) */
    filter: brightness(1.2); 
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #aaa; /* Gris clair */
}
/* Styles pour la colonne de liens */
.footer-links {
    list-style: none; /* Supprime les puces */
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

/* Style pour le numéro de téléphone principal */
.footer-phone {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--white); /* Rendre le numéro BLANC */
    margin: 5px 0 0;
}

.footer-dispo {
    font-size: 0.9rem;
    color: #aaa; /* Gris clair */
    margin-top: 5px;
    line-height: 1.4;
}
/* Styles pour la Colonne Newsletter & Sociaux */
.newsletter-form {
    display: flex;
    margin-bottom: 15px;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px; /* Coins arrondis seulement à gauche */
    flex-grow: 1;
    min-width: 0;
    font-size: 0.9rem;
}

.btn-subscribe {
    background-color: var(--primary-color); /* <-- CHANGÉ EN BLEU */
    color: var(--white); /* <-- CHANGÉ EN BLANC (pour la lisibilité) */
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #004a80; /* Un bleu légèrement plus clair */
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
}

.social-links img {
    width: 28px; /* Taille des icônes */
    height: 28px;
}

@media (max-width: 768px) {
    .footer-content {
        /* Les colonnes s'empilent verticalement sur mobile */
        grid-template-columns: 1fr; 
        gap: 30px;
        text-align: center; /* Centre le contenu */
    }
    
    .footer-col {
        /* Ajoute une séparation visuelle entre les colonnes empilées */
        border-bottom: 1px solid #444; 
        padding-bottom: 20px;
    }
    
    .footer-col:last-child {
        border-bottom: none; /* Pas de ligne sous la dernière colonne */
    }

    .footer-col h4 {
        /* Centre le titre sur mobile */
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links-col {
        /* Force les liens à s'aligner à gauche dans la colonne */
        text-align: center;
    }
   
    
    .newsletter-form {
        /* Le formulaire reste centré */
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
}
























/* --- Responsive pour les cartes riches --- */
@media (max-width: 992px) {
    .solutions-grid-rich {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    }
    .solution-card-rich {
        height: 280px;
    }
    .card-content-rich h3 {
        font-size: 1.3rem;
    }
    .card-content-rich p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .solutions-grid-rich {
        grid-template-columns: 1fr; 
    }
    .solution-card-rich {
        height: 250px;
    }
}


/* --- Responsive pour l'empilement (Tablette et Mobile) --- */
@media (max-width: 992px) {
    .about-grid {
        flex-direction: column; /* Empile l'image et le texte */
        gap: 30px;
    }
    .about-text {
        order: 2; /* Met le texte en bas sur mobile */
        padding-left: 0;
    }
    .about-image {
        order: 1; /* Met l'image en haut sur mobile */
    }
    .about-text h2 {
        text-align: center; /* Centre le titre sur mobile */
    }
}
/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {

    /* --- Menu Navigation --- */
    .nav-links {
    max-height: 0;
    overflow: hidden; 
    transition: max-height 0.4s ease-out;
    display: block;
    width: 100%;

    /* MODIFICATION 1 : On utilise la position 'fixed' pour qu'il couvre toute la fenêtre */
    position: fixed; 
    top: 0; /* Commence tout en haut de l'écran */

    /* MODIFICATION 2 : On force la hauteur de la fenêtre entière */
    height: 100vh; 

    background: var(--white); 
    z-index: 999;
    }

    .nav-links.active {
    /* On utilise transform pour pousser le menu juste sous le header visible (top: 82px) */
    transform: translateY(82px); /* Pousse le contenu vers le bas */
    max-height: none; /* Annule la limite d'animation par hauteur pour s'assurer que le contenu s'affiche */
    }
    .main-nav-container {
    position: fixed; /* Le header doit aussi être fixe et au-dessus */
    width: 100%;
    background: var(--white);
    z-index: 1001; /* Doit être au-dessus du menu (999) */
    top: 0;
    }
    .nav-links ul {
        display: none; /* Caché par défaut */
    }
    .nav-links.active ul {
        display: block; /* Affiché quand le menu est actif */
        padding: 0;
        width: 100%;
    }
    .nav-links li {
        margin: 0;
        padding: 1rem 20px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    .nav-links li .cta-button {
        background: none;
        color: #000000;
        padding: 0;
        border-radius: 0;
    }
    .nav-links li .cta-button:hover {
        background: none;
        color: var(--primary-color);
    }
    .hamburger-menu {
        display: block; /* Affiche le bouton hamburger */
        z-index: 1000;
    }

    /* --- Top Bar --- */
    .top-bar-container {
        flex-direction: column;
        gap: 5px;
    }
    .top-bar-left {
        display: none;
    }
    .top-bar-slogan, .top-bar-contact {
        flex: 1;
        text-align: center;
    }
    .email-contact {
        display: none;
    }
    .main-nav-container {
        top: 0;
    }

    /* --- Hero Slider --- */
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column !important; 
        align-items: center; 
        gap: 15px; 
        width: 100%;
        padding: 0 10px; 
        box-sizing: border-box; 
    }
    .hero-buttons .btn {
        width: 90% !important; 
        max-width: 350px; 
        text-align: center;
        margin: 0; 
        box-sizing: border-box; 
    }

} /* <-- Fin de la règle @media */










/* --- ============================ --- */
/* --- STYLES COMPLETS "À PROPOS"     --- */
/* --- ============================ --- */

/* --- En-tête de la page (Bandeau Hero) --- */
.page-hero-about {
    position: relative;
    height: 300px; 
    
    /* !! IMPORTANT: Mettez votre image de fond ici !! */
    /* Remplacez par une image de fond pro (ex: surveillance, agent) */
    background-image: url("{{ url_for('static', filename='images/img1.png') }}");
    
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
    
    /* Annule le padding du <main> pour coller le hero en haut */
    margin-top: -4rem; 
}

/* Le bandeau sombre en bas */
.breadcrumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    padding: 1.5rem 0;
}

/* Le fil d'Ariane (Accueil > À Propos) */
.breadcrumb-nav {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--white);
}
.breadcrumb-nav a {
    color: var(--white) !important; /* Force le blanc */
    text-decoration: none;
    transition: color 0.3s ease;
}
.breadcrumb-nav a:hover {
    color: var(--secondary-color) !important; /* Force l'or */
}
.breadcrumb-separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
}
.breadcrumb-nav strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

/* Contenu principal de la page (ajoute de l'espace) */
.page-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* --- Section 1: Grille Texte/Image (CORRIGÉ) --- */
.about-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* <-- ALIGNE EN HAUT */
}
.about-text {
    flex: 1;
    text-align: left;
}
.about-image {
    flex: 1;
    text-align: center;
}
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.text-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-style: italic;
}

/* --- Section 2: Nos Valeurs (Icônes) --- */
.engagement-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}
.engagement-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- Section 3: Boîte d'Infos Légales --- */
.legal-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: #fdfdfd; /* Fond blanc cassé */
    border: 1px solid #eee;
    padding: 2rem 2.5rem;
    border-radius: 8px;
}
.legal-info ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1.5rem;
}
.legal-info li {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}
.legal-info li::before {
    content: '✓'; 
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}
.legal-info li strong {
    color: #333;
}
.cnaps-mention-small {
    font-size: 0.9rem;
    font-style: italic;
    color: #777;
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

/* --- Responsive (pour les grilles) --- */
@media (max-width: 992px) {
    .about-grid {
        flex-direction: column; /* Empile sur tablette */
    }
}



/* --- Section 4: Boîte d'Infos Légales (Nouveau Design 2 Colonnes) --- */
.legal-info-box {
    max-width: 900px; /* On peut l'élargir un peu */
    margin: 0 auto;
    text-align: left;
    background: var(--white);
    border: 1px solid #eee;
    padding: 2.5rem; /* Plus de padding */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.legal-info-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 2rem;
}

/* La nouvelle grille à 2 colonnes */
.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
    gap: 2rem;
}

.legal-grid ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.legal-grid li {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.5;
}
/* Utilise la coche 'check' */
.legal-grid li::before {
    content: '✓'; 
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}
.legal-grid li strong {
    color: #333;
}

.cnaps-mention-small {
    font-size: 0.9rem;
    font-style: italic;
    color: #777;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    text-align: left; /* Ré-aligne la mention CNAPS */
}

/* Responsive pour les colonnes légales */
@media (max-width: 768px) {
    .legal-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
        gap: 0;
    }
    .legal-info-box {
        padding: 2rem;
    }
}
















/* --- ============================ --- */
/* --- STYLES "NOS SERVICES"          --- */
/* --- ============================ --- */

/* --- En-tête de la page (Bandeau Hero) --- */
.page-hero-services {
    position: relative;
    height: 300px; 
    
    /* !! IMPORTANT: Mettez une image de fond pertinente !! */
    /* (ex: un centre de contrôle, un agent pro) */
    background-image: linear-gradient(rgba(0,33,66,0.6), rgba(0,33,66,0.6)), url("{{ url_for('static', filename='images/votre_image_fond_services.jpg') }}"); 
    
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
    margin-top: -4rem; 
}

/* (Le style .breadcrumb-overlay et .breadcrumb-nav est réutilisé de la page "À Propos") */


/* --- NOUVEAU : Menu Interne des Services (Style "Pilule") --- */
.service-nav-menu {
    padding: 2rem 0;
    background-color: var(--light-gray);
    border-bottom: 1px solid #ddd;
    text-align: center;
}
.service-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permet de passer à la ligne sur mobile */
    gap: 10px; /* Espace entre les boutons */
}
.service-nav-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
    background: var(--white);
    border: 2px solid #ddd;
    border-radius: 30px; /* Effet "pilule" */
    font-weight: bold;
    transition: all 0.3s ease;
}
.service-nav-menu a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
/* Style pour quand on clique (nécessite JS, mais :hover est suffisant) */
.service-nav-menu a:active { 
    transform: scale(0.95);
}


/* --- Bloc de détail d'un service --- */
.service-intro {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 4rem auto;
}
.service-intro .section-title {
    margin-bottom: 1rem;
}

.service-detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
    gap: 40px;
    align-items: flex-start; /* Aligné en haut */
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}
.service-detail-block:last-of-type {
    border-bottom: none;
}

/* Inversion de la grille */
.service-detail-block.reverse-grid {
    direction: rtl; /* Inverse l'ordre des colonnes */
}
.service-detail-block.reverse-grid .service-text {
    direction: ltr; /* Rétablit la direction du texte */
}

.service-text {
    text-align: left;
}
.service-text h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.service-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color); /* Couleur Or/Jaune */
    margin-bottom: 1.5rem;
}
.service-text p {
    line-height: 1.7;
}

/* (Réutilise .professional-list de la page "À Propos") */
.service-text .professional-list {
    margin: 1.5rem 0;
}
.service-text .btn-primary {
    margin-top: 1rem;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- Responsive pour les Services --- */
@media (max-width: 992px) {
    .service-detail-block {
        grid-template-columns: 1fr; /* 1 colonne sur tablette */
        gap: 30px;
    }
    .service-detail-block.reverse-grid {
        direction: ltr; /* Annule l'inversion */
    }
    .service-text {
        text-align: center;
    }
    .service-text .professional-list {
        text-align: left; /* Garde les listes à puces alignées à gauche */
    }
    .service-image {
        order: -1; /* Met l'image en haut sur mobile */
    }
}

@media (max-width: 768px) {
    .service-nav-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}




/* --- Styles pour la page Détail Service --- */
.service-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}
.service-lead {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.service-image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.service-benefits-box {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.service-benefits-box h4 {
    color: var(--secondary-color);
    margin-top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.service-benefits-box ul {
    list-style: none;
    padding: 0;
}
.service-benefits-box li {
    margin-bottom: 10px;
}

.service-sectors-box {
    background: #f9f9f9;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
}
.sector-tag {
    display: inline-block;
    background: var(--white);
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 3px;
    color: #555;
}



/* --- STYLES POUR LA PAGE DÉTAIL SERVICE (NOUVEAU) --- */

.service-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}
.service-lead {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
}

/* Grille principale : 2/3 contenu, 1/3 sidebar */
.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Boîtes de contenu */
.detail-box {
    background: var(--white);
    padding: 0 0 2rem 0;
    margin-bottom: 2rem;
}
.detail-box h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.detail-box h3 .icon {
    margin-right: 10px;
}
.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* Liste des missions */
.missions-list {
    list-style: none;
    padding: 0;
}
.missions-list li {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
}

/* Sidebar */
.sidebar-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.sidebar-benefits {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.sidebar-benefits h4 {
    color: var(--secondary-color);
    margin-top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.sidebar-benefits ul {
    list-style: none;
    padding: 0;
}
.sidebar-benefits li {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}
.sidebar-benefits .check-icon {
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Correction pour la carte de contact dans la sidebar */
.sidebar-contact {
    background: var(--primary-color);
    color: #fff;
    border-top: none;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    /* Assurez-vous que le contenu ne déborde pas */
    overflow: hidden; 
    /* Supprimez toute hauteur fixe si vous en aviez une */
    height: auto; 
    
    

}

.sidebar-contact h4 {
    color: var(--secondary-color);
    justify-content: center;
    margin-top: 0;
}

.sidebar-contact .btn-full {
    display: block;
    width: 100%; /* Prend toute la largeur disponible */
    background: var(--secondary-color); /* Bouton Jaune/Or */
    color: var(--primary-color); /* Texte Bleu */
    border: none;
    padding: 12px;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 15px;
    box-sizing: border-box; /* Important pour que le padding ne casse pas la largeur */
}

.sidebar-contact .btn-full:hover {
    background: #fff; /* Devient blanc au survol */
    color: var(--primary-color);
}
.sidebar-contact .btn-block {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}
.phone-link {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* Tags secteurs */
.sector-tag {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile/tablette */
    }
    .service-sidebar {
        order: -1; /* Met l'image et les avantages en premier sur mobile */
        margin-bottom: 2rem;
    }
}












/* --- STYLES AVANCÉS POUR LA PAGE DÉTAIL SERVICE --- */

/* Hero spécifique avec titre centré */
.page-hero-services {
    position: relative;
    height: 400px; /* Plus haut pour l'impact */
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
    margin-top: -4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Contenu vers le bas */
}

.hero-service-title {
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.hero-service-title h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Mise en page principale */
.service-detail-page {
    padding-top: 4rem;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 contenu, 1/3 sidebar */
    gap: 50px;
}

/* Blocs de contenu (Gauche) */
.detail-block {
    margin-bottom: 3rem;
}

.block-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.block-icon {
    font-size: 1.8rem;
    margin-right: 15px;
}

.block-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* Liste des missions stylisée */
.missions-list-pro {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne pour la lisibilité */
    gap: 15px;
}

.missions-list-pro li {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: flex-start;
    transition: transform 0.2s;
}

.missions-list-pro li:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.missions-list-pro .check-icon {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
}

.mission-text {
    font-weight: 500;
    color: #333;
}

/* SSIAP Grid */
.ssiap-grid-pro {
    display: grid;
    gap: 20px;
}

.ssiap-card-pro {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ssiap-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 2rem;
}
.ssiap-icon img {
    width: 100%;
    height: auto;
}

.ssiap-content h4 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.ssiap-content p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
}

/* Sidebar (Droite) */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid var(--secondary-color);
}

.sidebar-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-card li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.benefits-card .bullet {
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    text-indent: -9999px; /* Cache le texte "Start" */
}

/* Nuage de tags pour les secteurs */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f4f8;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Carte Contact */
.contact-card {
    background: var(--primary-color);
    color: #fff;
    border-top: none;
    text-align: center;
}

.contact-card h4 {
    color: var(--secondary-color);
    justify-content: center;
}

.contact-card p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.btn-full {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}

.btn-full:hover {
    background: #fff;
}

.contact-direct {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}

.contact-direct span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.phone-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

/* Navigation autres services */
.other-services-nav {
    background: #f9f9f9;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.other-services-nav h3 {
    color: #888;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.services-nav-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mini-service-link {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.mini-service-link:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
    .service-sidebar {
        order: -1; /* Sidebar en premier sur mobile (souvent mieux pour le contact) ou après */
        order: 2; /* Mettons-la après le contenu pour le référencement */
    }
    .page-hero-services {
        height: 300px;
    }
    .hero-service-title h1 {
        font-size: 2.2rem;
    }
}



/* Style des cartes SSIAP */
.ssiap-grid-pro {
    display: grid;
    gap: 20px;
}

.ssiap-card-pro {
    display: flex;
    align-items: center; /* Centre l'image verticalement avec le texte */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.ssiap-card-pro:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.ssiap-icon {
    flex-shrink: 0;
    width: 80px;  /* Largeur de la zone image */
    height: 80px; /* Hauteur de la zone image */
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa; /* Petit fond gris clair derrière le logo */
    border-radius: 50%; /* Rond */
    overflow: hidden;
}

.ssiap-icon img {
    width: 80%; /* Le logo prend 80% du rond */
    height: auto;
    object-fit: contain;
}

.ssiap-content h4 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.ssiap-content p {
    font-size: 0.9rem;
    margin: 0;
    color: #666;
    line-height: 1.4;
}





/* =========================================
   NOUVEAU DESIGN PAGE DEVIS (THEME BLEU)
   ========================================= */

/* --- 1. En-tête Hero Bleu --- */
.page-hero-devis {
    background-color: var(--primary-color); /* Bleu Marine */
    padding: 4rem 0 6rem; /* Grand espace en bas pour l'effet de chevauchement */
    text-align: center;
    color: var(--white);
    /* Optionnel : Ajout d'un motif ou dégradé subtil */
    background-image: linear-gradient(135deg, #003366 0%, #001f3f 100%);
}

.hero-content-center h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero-content-center p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- 2. Conteneur Principal --- */
.page-content-devis {
    margin-top: -4rem; /* Fait remonter le contenu sur le bandeau bleu */
    padding-bottom: 4rem;
}

.devis-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Sidebar (1/3) - Formulaire (2/3) */
    gap: 0; /* Pas d'espace, ils sont collés pour un effet "carte unifiée" ou séparés par le design */
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); /* Grande ombre douce */
    overflow: hidden; /* Pour les coins arrondis */
}

/* --- 3. Sidebar Info (Gauche) --- */
.devis-sidebar-info {
    background-color: #f0f4f8; /* Gris/Bleu très clair */
    padding: 3rem 2rem;
    border-right: 1px solid #eee;
}

.devis-sidebar-info h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.benefits-list-blue {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}
.benefits-list-blue li {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}
.benefits-list-blue .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-direct-box {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}
.contact-direct-box p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}
.phone-link-white {
    color: var(--white);
    font-weight: bold;
    font-size: 1.3rem;
    text-decoration: none;
}

/* --- 4. Formulaire (Droite) --- */
.devis-form-container {
    padding: 3rem;
}

.form-title {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.form-section-blue {
    margin-bottom: 2rem;
}

.form-section-blue h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* Champs */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dde2e5;
    border-radius: 6px;
    background-color: #f9fbfc;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    outline: none;
}

/* Bouton de soumission */
.btn-submit-blue {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.btn-submit-blue:hover {
    background-color: #004a80; /* Bleu un peu plus clair */
    transform: translateY(-2px);
}

.privacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .devis-wrapper {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
    .devis-sidebar-info {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr; /* Champs l'un sous l'autre */
        gap: 0;
    }
    .devis-form-container {
        padding: 1.5rem;
    }
}









/* =========================================
   DESIGN FORMULAIRE DEVIS (THEME BLEU)
   ========================================= */

/* --- 1. Hero Bleu --- */
.page-hero-devis {
    background-color: var(--primary-color);
    padding: 4rem 0 6rem;
    text-align: center;
    color: var(--white);
    background-image: linear-gradient(135deg, #003366 0%, #001f3f 100%);
}

.hero-content-center h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-content-center p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- 2. Conteneur Principal --- */
.page-content-devis {
    margin-top: -4rem;
    padding-bottom: 4rem;
}

.devis-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* --- Sidebar --- */
.devis-sidebar-info {
    background-color: #f0f4f8;
    padding: 3rem 2rem;
    border-right: 1px solid #eee;
}

.devis-sidebar-info h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.benefits-list-blue {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.benefits-list-blue li {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

.benefits-list-blue .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-direct-box {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.contact-direct-box p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.phone-link-white {
    color: var(--white);
    font-weight: bold;
    font-size: 1.3rem;
    text-decoration: none;
}

/* --- Formulaire --- */
.devis-form-container {
    padding: 3rem;
}

.form-title {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.form-section-blue {
    margin-bottom: 2rem;
}

.form-section-blue h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.9rem;
    margin-right: 10px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dde2e5;
    border-radius: 6px;
    background-color: #f9fbfc;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    outline: none;
}

.btn-submit-blue {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.btn-submit-blue:hover {
    background-color: #004a80;
    transform: translateY(-2px);
}

.privacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
}

/* --- Champ multiple fichiers / images --- */
.file-upload-multiple input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #dde2e5;
    border-radius: 6px;
    background-color: #f9fbfc;
    margin-bottom: 10px;
}

.files-list .file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #f0f4f8;
    border: 1px solid #dde2e5;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.files-list .remove-file {
    color: #c00;
    cursor: pointer;
    font-weight: bold;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .devis-wrapper {
        grid-template-columns: 1fr;
    }
    .devis-sidebar-info {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .devis-form-container {
        padding: 1.5rem;
    }
}




/* =========================================
   STYLES PAGE CONTACT (DESIGN PRO)
   ========================================= */

.contact-card-wrapper {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Sidebar Contact (Gauche) --- */
.contact-sidebar {
    width: 40%;
    background-color: #003366; /* Fond Bleu Marine */
    color: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.contact-sidebar h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.contact-info-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* --- Contenu Formulaire (Droite) --- */
.contact-form-content {
    width: 60%;
    padding: 3.5rem;
    background-color: #fff;
}

.btn-submit-full {
    display: block !important;
    width: 100% !important;
    padding: 15px !important;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    margin-top: 20px !important;
}

/* ============================================================
   L'ULTIME CORRECTIF MOBILE (À METTRE TOUT EN BAS DU FICHIER)
   ============================================================ */
/* --- Responsive Contact (CORRIGÉ) --- */
/* --- ADAPTATION PAGE CONTACT MOBILE --- */
/* --- FORCE L'ADAPTATION MOBILE CONTACT --- */
/* --- CORRECTIF FINAL HAUTE PRIORITÉ --- */
@media screen and (max-width: 992px) {
    /* On force le conteneur principal à passer en colonne */
    html body .contact-card-wrapper {
        display: block !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* On force la partie bleue ET la partie blanche à prendre 100% de largeur */
    html body .contact-sidebar, 
    html body .contact-form-content {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        padding: 40px 20px !important;
        border: none !important;
        box-sizing: border-box !important;
    }

    /* On centre les icônes de contact pour le mobile */
    html body .contact-info-block {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    html body .icon-circle {
        margin-right: 0 !important;
        margin-bottom: 15px !important;
    }
}

@media screen and (max-width: 768px) {
    /* 5. Correction du chevauchement des textes légaux dans le footer */
    .footer-bottom p, 
    .cnaps-mention,
    footer div {
        line-height: 1.8 !important; 
        font-size: 11px !important;
        margin-bottom: 15px !important;
        display: block !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
}