/**
 * LAYOUT CSS
 * Structure générale, grilles, et positionnement
 */

/* === HEADER === */
.header {
    background: var(--couleur-blanc);
    padding: 6px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--z-header);
    /* Rendu net (évite le flou sur éléments fixés) */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Collé sous la barre Flash Infos : pas d’espace entre les deux */

/* Quand la bande Flash Infos est affichée, le header se décale juste en dessous,
   le padding-top du body s’occupe de décaler le contenu. */
body.has-flash-infos .header {
    top: var(--flash-infos-height, 44px);
}

.header-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 var(--espacement-lg) 0 var(--espacement-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
    margin-left: 0;
}

.logo img {
    height: 40px;
    width: auto;
    /* Netteté du logo (Chrome/Safari) */
    image-rendering: -webkit-optimize-contrast;
}

/* === NAVIGATION PRINCIPALE === */
.main-nav {
    flex-shrink: 0;
    margin-right: 0;
    margin-left: calc(var(--espacement-xxl) * 1.4);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--espacement-lg);
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 680px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--texte-inverse);
    overflow: hidden;
    background: var(--couleur-secondaire, #0a1628);
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 0 var(--espacement-lg) var(--espacement-xxl);
    pointer-events: none;
}

.hero-content .hero-logos,
.hero-content .hero-logos * {
    pointer-events: auto;
}

/* === SECTIONS === */
.search-section {
    background: url('../images/Group-278-_1_.webp') center/cover no-repeat;
    padding: var(--espacement-section) var(--espacement-lg);
    text-align: center;
    position: relative;
}

.actualites-section {
    padding: var(--espacement-section) var(--espacement-lg);
    /* Fond dégradé blanc → orange très doux derrière le bloc Actualités */
    background:
        radial-gradient(circle at top left, rgba(255, 158, 70, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255, 118, 20, 0.15), transparent 55%),
        #ffffff;
    /* Boutons « Voir plus » : carte à la une + liste (même taille à largeur d’écran donnée) */
    --voir-plus-min-height: 42px;
    --voir-plus-padding-y: 10px;
    --voir-plus-padding-x: var(--espacement-md);
    --voir-plus-font-size: var(--taille-petit);
}

.services-section {
    padding: var(--espacement-section) var(--espacement-lg);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(247, 249, 252, 0.5)),
        url("/media/images/network-background.png") center/cover no-repeat;
}

.stats-section {
    background: var(--couleur-noir);
    padding: var(--espacement-section) var(--espacement-lg);
    position: relative;
    overflow: visible;
    margin-top: 260px;
}

/* === CONTENEURS === */
.section-container {
    width: 100%;
    max-width: var(--largeur-container);
    margin: 0 auto;
}

.stats-container {
    position: relative;
    z-index: 1;
    max-width: var(--largeur-medium);
    margin: 0 auto;
    padding-top: 190px;
}

/* === GRILLES === */
/* Deux colonnes : « à la une » un peu plus étroite, liste actualités plus lisible */
.actualites-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
    gap: var(--espacement-xl);
    align-items: stretch;
    min-width: 0;
}

.actualites-layout > * {
    min-width: 0;
}

/* Même hauteur pour les deux colonnes (grille stretch sur la ligne) */
.actualites-layout > .featured-card {
    align-self: stretch;
    min-height: 0;
}

.actualites-layout > .actualites-wrapper {
    align-self: stretch;
    min-height: 0;
}

.actualites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 300px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--espacement-md);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: var(--espacement-xxl);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* === FOOTER === */
.footer {
    background: var(--couleur-noir);
    color: var(--texte-inverse);
    padding: 60px var(--espacement-xxl) var(--espacement-xl);
}

.footer-container {
    max-width: var(--largeur-container);
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--espacement-xxl);
    align-items: flex-start;
    gap: 0;
}

/* Colonne gauche : logo + contacts */
.footer-column-left {
    flex: 0 0 270px;
    width: 270px;
    max-width: 100%;
    min-width: 0;
    padding-right: var(--espacement-xxl);
    border-right: none;
}

.footer-columns-right {
    flex: 1;
    display: flex;
    gap: 60px;
    justify-content: flex-end;
    align-items: flex-start;
    padding-left: var(--espacement-xxl);
}

.footer-column {
    flex: 0 0 auto;
}

/* === NAV BAR === */
.nav-bar {
    background: #1E1E1E;
    padding: var(--espacement-lg) 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1004;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    width: 100%;
    isolation: isolate;
}

.nav-bar-container {
    max-width: var(--largeur-container);
    margin: 0 auto;
    padding: 0 var(--espacement-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--espacement-lg);
    width: 100%;
}

.nav-bar-logo {
    flex-shrink: 0;
}

.nav-bar-logo img {
    display: block;
    height: 48px;
    width: auto;
}

.nav-bar-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--espacement-lg);
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* === PRE-FOOTER === */
.pre-footer-image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.pre-footer-image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    display: block;
}
