/* ==========================================================================
   1. CORE CONFIGURATION & VARIABLES
   ========================================================================== */
:root {
    --primary-blue: #0A3663;
    --primary-dark: #031020;
    --accent-red: #E30013;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-color: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    color: var(--white);
    /* Réduction du padding horizontal de 20px à 10px ou 0px */
    padding: 60px 20px; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 3;
    /* Force le conteneur à être aligné à gauche sans marge automatique */
    margin-left: 0; 
    width: 100%;
    max-width: 1200px;
    padding-left: 20px; /* Réduisez cette valeur à 10px ou 5px pour rapprocher du bord gauche */
}

.hero-layout-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px; /* Réduit un peu l'espace vertical */
    width: 100%;
    max-width: 800px;
    margin: 0;
}




/* Barre rouge alignée à gauche */
.hero-section .accent-bar {
    margin: 15px 0; /* Centrage supprimé */
}

/* Description alignée à gauche */
.hero-section .hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: #CBD5E1;
    max-width: 600px;
    text-align: left;
}

/* Séparateur aligné à gauche */
.hero-internal-separator {
    width: 200px;
    margin: 20px 0; /* Centrage supprimé */
}

/* Statistiques alignées à gauche */
.hero-section .stats-row {
    display: flex;
    flex-direction: row;        /* Force l'alignement horizontal */
    justify-content: flex-start; /* Alignement à gauche */
    gap: 40px;
    flex-wrap: nowrap;
}
/* Image de fond isolée pour un calcul de transformation fluide à 60 FPS */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    /* Zoom initial de 1.2 (120%) pour donner de la réserve à la montée */
    transform: scale(1.2) translateY(0px); 
    z-index: 1;
    will-change: transform;
}

/* Dégradé sombre recouvrant l'image */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(3, 16, 32, 0.96) 40%, rgba(3, 16, 32, 0.078) 100%);
    z-index: 2;
}

/* Conteneur de contenu forcé au-dessus du fond */
.hero-container {
    position: relative;
    z-index: 3;
}

/* Grille principale asymétrique */

.hero-left-column,
.hero-right-column {
    display: flex;
    flex-direction: column;
}

/* Fil d'Ariane (Breadcrumbs) */
.hero-section .breadcrumbs {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-section .breadcrumbs .separator {
    margin: 0 6px;
    opacity: 0.6;
}

.hero-section .breadcrumbs .current-page {
    color: var(--accent-red);
}

/* Barre décorative rouge */
.hero-section .accent-bar {
    width: 45px;
    height: 4px;
    background-color: var(--accent-red);
    margin-bottom: 15px;
}



/* Titre principal (taille réduite) */
.hero-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0;
    text-align: left;
}

/* Paragraphe descriptif */
.hero-section .hero-description {
    font-size: 15px;
    line-height: 1.6;
    color: #CBD5E1;
}

/* Ligne fine de séparation sous la description */
.hero-internal-separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 12px 0;
    width: 100%;
}

/* Rangée des statistiques */
.hero-section .stats-row {
    display: flex;
    gap: 35px;
    align-items: center;
}

.hero-section .stat-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink:0;
    position: relative;
}

/* Séparateurs verticaux entre chaque statistique */
.hero-section .stat-block:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -18px;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0);
}

.hero-section .stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.03);
}

.hero-section .stat-text {
    display: flex;
    flex-direction: column;
}

.hero-section .stat-number {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
}

.hero-section .stat-label {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .hero-section .stats-row {
        flex-wrap: wrap; /* Allows wrapping on smaller screens */
        gap: 20px;
    }
}
/* ==========================================================================
   3. SECTORS LAYOUT & DYNAMIC LIST
   ========================================================================== */
.sectors-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title-area {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.section-title-area .sub-tag {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 12px;
}

.section-title-area h2 {
    color: var(--primary-blue);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.section-title-area p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.sectors-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sector-card {
    display: grid;
    grid-template-columns: 240px 1.3fr 1fr 1fr;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(3, 43, 83, 0.06);
    border-color: #CBD5E1;
}

.sector-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: #1E293B;
    overflow: hidden;
}

.sector-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sector-card:hover .sector-img-wrapper img {
    transform: scale(1.06);
}

/* Colonne textuelle centrale */
.sector-info-main {
    padding: 30px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.sector-header-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Effet halo rouge sur le cercle d'icône */
.icon-circle-glow {
    min-width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--accent-red);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 20px;
    box-shadow: 0 0 15px rgba(226, 26, 34, 0.15);
    transition: all 0.3s ease;
}

.sector-card:hover .icon-circle-glow {
    background-color: var(--accent-red);
    color: var(--white);
    box-shadow: 0 0 25px rgba(226, 26, 34, 0.45);
}

.sector-meta-text h3 {
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.sector-meta-text p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

/* Colonnes des risques et applications */
.sector-details-col {
    padding: 30px;
    border-right: 1px solid var(--border-color);
}

.sector-details-col:last-child {
    border-right: none;
}

.sector-details-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-blue); /* Libellé bleu moyen premium */
    letter-spacing: 1px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.sector-details-col.apps h4 {
    color: var(--primary-blue);
}

.sector-details-col ul {
    list-style: none;
}

.sector-details-col ul li {
    font-size: 12.5px;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
    padding-left: 12px;
}

.sector-details-col ul li::before {
    content: "•";
    color: var(--accent-red);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* ==========================================================================
   4. RECOMMENDED PRODUCTS SECTION (5-COLUMN GRID)
   ========================================================================== */
.products-section {
    background-color: #F8FAFC;
    padding: 50px 40px;
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.products-header {
    margin-bottom: 30px;
}

.products-header .sub-tag-left {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.products-header h2 {
    color: var(--primary-blue);
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #CBD5E1;
    box-shadow: 0 8px 20px rgba(3, 43, 83, 0.05);
}

.prod-img-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.prod-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .prod-img-container img {
    transform: scale(1.04);
}

.product-card h4 {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   5. BOTTOM CTA BANNER
   ========================================================================== */
.cta-banner {
    background-color: #0A3663;
    border-radius: 8px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
}

.cta-icon {
    font-size: 28px;
    color: var(--white);
    opacity: 0.9;
}

.cta-left h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.cta-left p {
    font-size: 13.5px;
    color: #CBD5E1;
}

.btn-contact-white {
    background-color: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-contact-white:hover {
    background-color: #F1F5F9;
    transform: translateY(-1px);
}



@media (max-width: 768px) {
    /* 1. Transformer la grille de la carte en colonne */
    .sector-card {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr; /* Désactive la grille complexe */
        margin-bottom: 20px;
    }

    /* 2. Image : Hauteur fixe plus adaptée au mobile */
    .sector-img-wrapper {
        height: 200px;
    }

    /* 3. Colonnes d'info, risques et apps : Empilement */
    .sector-info-main, 
    .sector-details-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }

    /* 4. Ajuster l'alignement du titre et icône */
    .sector-header-flex {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }

    .icon-circle-glow {
        min-width: 50px;
        height: 50px;
    }

    /* 5. CTA Banner : Adapter le bouton et le texte */
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }

    .cta-left {
        flex-direction: column;
        gap: 10px;
    }
}
