/* ============================
   SENELEC - Site Institutionnel
   Fidèle à la maquette PSD
   ============================ */

:root {
    --blue-dark: #003366;
    --blue: #004d99;
    --blue-mid: #0066b3;
    --blue-light: #0080cc;
    --orange: #e87a1e;
    --orange-hover: #d06a12;
    --green: #2ecc71;
    --teal: #1abc9c;
    --red: #e74c3c;
    --dark: #222222;
    --gray-dark: #555;
    --gray: #999;
    --gray-light: #f4f6f8;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 6px;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-30 { margin-top: 30px; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-sm { padding: 8px 18px; font-size: 0.75rem; }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); border-radius: 25px; }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); transform: translateY(-1px); }
.btn-teal { background: #018a9c; color: var(--white); border-color: #018a9c; border-radius: 25px; }
.btn-teal:hover { background: #017080; border-color: #017080; transform: translateY(-1px); }
.btn-secondary { background: var(--blue); color: var(--white); }
.btn-secondary:hover { background: var(--blue-dark); }
.btn-outline { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-outline-dark { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-light:hover { background: var(--gray-light); }

.link-more {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.link-more:hover { color: var(--orange); }
.link-more i { margin-left: 5px; font-size: 0.75rem; }

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.9);
    font-size: 0.78rem;
    padding: 7px 0;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left, .top-bar-right {
    display: flex;
    gap: 22px;
    align-items: center;
}
.top-bar span i {
    margin-right: 6px;
    color: var(--orange);
    font-size: 0.7rem;
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
}
.logo img { height: 45px; }
.logo-text strong { font-size: 1.5rem; color: var(--blue); }
.nav-menu { display: flex; gap: 2px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
    display: block;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.nav-link:hover { color: var(--blue); }
.nav-link i { font-size: 0.6rem; margin-left: 3px; }

/* Ancien dropdown remplacé par mega-bar */

/* ========== MEGA DROPDOWNS (un par nav-item) ========== */
.nav-item.has-mega {
    position: relative;
}
.mega-drop {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: transparent;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    min-width: 220px;
}
.nav-item.has-mega:hover .mega-drop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-drop-inner {
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Pill teal arrondi */
.mega-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #018a9c;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 22px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-align: center;
    transition: background 0.2s;
}
.mega-pill:hover {
    background: #017080;
    color: #fff;
}
.mega-pill i {
    font-size: 0.6rem;
}

/* Pill parent avec sous-menus cachés */
.mega-pill-parent {
    position: relative;
}
.mega-sub-list {
    position: absolute;
    right: 100%;
    top: 0;
    padding-right: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 220px;
}
.mega-pill-parent:hover .mega-sub-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mega-sub-list a {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 5px 10px;
    white-space: nowrap;
    background: rgba(3, 13, 40, 0.85);
    border-radius: 4px;
    transition: all 0.2s;
}
.mega-sub-list a:hover {
    color: #fff;
    background: #018a9c;
}

.btn-woyofal {
    background: var(--orange);
    color: var(--white);
    padding: 9px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.btn-woyofal:hover { background: var(--orange-hover); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-toggle span { display: block; width: 26px; height: 3px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ========== HERO SLIDER ========== */
.hero-slider {
    position: relative;
    z-index: 1;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 520px;
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3,13,40,0.62) 0%, rgba(3,13,40,0.42) 100%);
}
.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    padding-bottom: 60px;
}
.slide-content h1 {
    font-size: 2.8rem;
    font-weight: 600;
    font-style: normal;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}
.slide-content p {
    font-size: 0.72rem;
    max-width: 1100px;
    margin-bottom: 24px;
    opacity: 0.9;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.slider-btn:hover { background: rgba(255,255,255,0.3); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.slider-dots .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dots .dot.active { background: var(--orange); transform: scale(1.3); }

/* ========== BREAKING NEWS STRIP ========== */
.breaking-news-strip {
    background: rgba(7, 42, 93, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.breaking-news-in-slider {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 8;
    background: rgba(7, 42, 93, 0.35);
    backdrop-filter: blur(2px);
}
.breaking-news-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    padding: 12px 0;
}
.breaking-news-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
    letter-spacing: 0.5px;
}
.breaking-news-arrow {
    opacity: 0.9;
}
.breaking-news-title-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}
.breaking-news-item {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-block;
}
.breaking-news-current {
    transform: translateX(100%);
}
.breaking-news-current.is-animating {
    animation: breakingTickerSingle 18s linear forwards;
}
.breaking-news-item:hover {
    color: #ffd28f;
}
.breaking-news-source {
    display: none;
}

@keyframes breakingTickerSingle {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ========== SECTION BLEUE (remonte sur le slider) ========== */
.section-blue-band {
    position: relative;
    z-index: 5;
    background: #030d28;
    margin-top: -80px;
    padding-top: 90px;
    padding-bottom: 40px;
    height: 475px;
}

/* 4 compteurs - débordent de 50px au-dessus du card blanc */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    top: -50px;
    margin-bottom: 28px;
    z-index: 2;
}
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 14px 18px;
    border-radius: 16px;
    color: var(--white);
    box-shadow: 0 6px 25px rgba(0,0,0,0.22);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.28);
}
.stat-card-icon { margin-bottom: 8px; }
.stat-card-icon i { font-size: 2rem; opacity: 0.9; }
.stat-card-label {
    display: block;
    font-size: 0.76rem;
    opacity: 0.9;
    margin-bottom: 4px;
    font-weight: 400;
}
.stat-card-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.stat-color-1 { background: #00388d; }
.stat-color-2 { background: #018a9c; }
.stat-color-3 { background: #00388d; }
.stat-color-4 { background: #018a9c; }

/* Card blanc - contient compteurs + métiers */
.metiers-card {
    background: var(--white);
    border-radius: 14px;
    padding: 0 45px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: visible;
    position: relative;
    top: -120px;
}

/* ========== SECTIONS COMMON ========== */
.section { padding: 60px 0; }
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 18px;
    line-height: 1.35;
}
.section-title-light {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 28px;
}

/* ========== MÉTIERS (inside card blanc) ========== */
.metiers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 80px;
    align-items: start;
    justify-content: space-between;
    padding-top: 15px;
}
.metiers-left {
    max-width: 560px;
    justify-self: start;
}
.metiers-title {
    white-space: nowrap;
}
.metiers-right {
    justify-self: end;
}
.metiers-left p {
    color: var(--gray-dark);
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.7;
}
.metiers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
}
.metier-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.metier-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.metier-icon i {
    font-size: 1.7rem;
    color: var(--blue-dark);
}
.metier-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
}

/* ========== GUICHET UNIQUE ========== */
.section-guichet {
    background: #018a9c;
}
.guichet-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.section-guichet .section-title {
    color: var(--white);
}
.guichet-image-block {
    border-radius: var(--radius);
    overflow: hidden;
    height: 340px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.guichet-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.guichet-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.guichet-right p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.7;
}
.guichet-list li {
    padding: 7px 0;
    font-size: 0.9rem;
    color: var(--white);
}
.guichet-list li i {
    color: #d9f7fb;
    margin-right: 10px;
    font-size: 0.85rem;
}
.guichet-list {
    margin-bottom: 22px;
}

/* ========== PROJETS ========== */
.section-projets {
    background: var(--white);
}
.projets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}
.projet-card {
    display: flex;
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.projet-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.projet-img {
    width: 180px;
    min-height: 160px;
    flex-shrink: 0;
}
.projet-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.projet-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
}
.projet-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.projet-body h3 {
    font-size: 1rem;
    color: var(--blue-dark);
    font-weight: 700;
    margin-bottom: 6px;
}
.projet-body p {
    font-size: 0.82rem;
    color: var(--gray-dark);
    line-height: 1.55;
    margin-bottom: 12px;
}

/* ========== PASSATION DES MARCHÉS ========== */
.section-marches {
    background: #030d28;
    color: var(--white);
    padding: 50px 0;
}
.marches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.marche-col {
    background: #018a9c;
    padding: 28px 22px;
    border-radius: var(--radius);
    text-align: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
}
.marche-col:nth-child(2) { background: #024e65; }
.marche-col:hover { filter: brightness(1.05); transform: translateY(-2px); }
.marche-icon {
    width: 52px; height: 52px;
    margin: 0 auto 12px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marche-icon i { font-size: 1.2rem; }
.marche-col h3 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.marche-col p { font-size: 0.82rem; opacity: 0.85; margin-bottom: 16px; line-height: 1.55; }

/* ========== ESPACE CARRIÈRES ========== */
.section-carrieres {
    background: #efefef;
    padding: 55px 0;
}
.carrieres-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.carrieres-content .section-title {
    color: #018a9c;
    margin-bottom: 12px;
}
.carrieres-intro {
    color: #303030;
    font-size: 0.95rem;
    line-height: 1.35;
    max-width: 540px;
    margin-bottom: 14px;
}
.carrieres-checklist {
    text-align: left;
    max-width: 520px;
    margin: 0 0 20px;
}
.carrieres-checklist li {
    padding: 2px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #018a9c;
    line-height: 1.2;
}
.carrieres-checklist li i {
    color: #00388d;
    margin-right: 10px;
    font-size: 0.55rem;
    vertical-align: middle;
}
.carrieres-image-block {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    border-radius: 0;
    overflow: hidden;
    background: #d9d9d9;
}
.carrieres-image-block img {
    width: 100%;
    height: 255px;
    object-fit: cover;
}
.section-carrieres .btn-teal {
    min-width: 200px;
    text-align: center;
    font-weight: 700;
}

/* ========== RAPPORT ANNUEL - 3 colonnes ========== */
.section-rapport {
    background: #030d28;
    color: var(--white);
}
.rapport-layout {
    display: grid;
    grid-template-columns: 260px 1fr 1fr;
    gap: 35px;
    align-items: center;
}
.rapport-title-block h2 {
    line-height: 1.2;
}
.rapport-label {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
}
.rapport-sub {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
}
.rapport-visual {
    text-align: center;
}
.rapport-visual img {
    max-height: 300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}
.rapport-year-visual {
    background: linear-gradient(135deg, var(--orange), #c7600f);
    border-radius: var(--radius);
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}
.rapport-year-visual span {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
}
.rapport-text p {
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 14px;
    max-width: 560px;
}
.section-rapport .link-more {
    color: var(--white);
}
.section-rapport .link-more:hover {
    color: #018a9c;
}
.rapport-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: var(--orange);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}
.rapport-more::after {
    content: none;
}
.rapport-more i {
    font-size: 0.95rem;
}
.rapport-more:hover {
    color: var(--orange-hover);
}
.rapport-more:hover::after {
    background: #018a9c;
}

/* ========== ACTUALITÉS ========== */
.section-actualites {
    background: #018a9c;
    padding: 60px 0;
}
.actu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.actu-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.actu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.actu-image { height: 180px; overflow: hidden; }
.actu-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.actu-card:hover .actu-image img { transform: scale(1.05); }
.actu-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
}
.actu-content { padding: 18px; }
.actu-content h3 {
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.4;
}
.actu-content p {
    font-size: 0.82rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
    line-height: 1.55;
}
.actu-link { font-size: 0.82rem; color: var(--orange); font-weight: 600; }
.actu-link:hover { color: var(--orange-hover); }
.actu-link i { margin-left: 4px; font-size: 0.7rem; transition: var(--transition); }
.actu-link:hover i { margin-left: 8px; }

/* ========== CFPP ========== */
.section-cfpp { background: var(--gray-light); }
.cfpp-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
}
.cfpp-image img {
    border-radius: var(--radius);
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.cfpp-img-placeholder {
    border-radius: var(--radius);
    height: 280px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.cfpp-content p {
    color: var(--gray-dark);
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.footer {
    background: #030d28;
    color: rgba(255,255,255,0.92);
    padding-top: 34px;
}
.footer-main {
    padding-bottom: 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 34px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 16px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 9px;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--orange);
}
.footer-col ul li { padding: 2px 0; }
.footer-col ul li a { font-size: 0.95rem; opacity: 0.92; }
.footer-col ul li a:hover { opacity: 1; color: #23b9d0; }

.footer-about .footer-brand {
    margin-bottom: 14px;
}
.footer-about .footer-brand img {
    width: 110px;
    height: auto;
}
.footer-brand-fallback {
    width: 110px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.footer-about p {
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 280px;
}

.contact-list li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.94);
    line-height: 1.5;
}
.contact-list li strong {
    color: var(--white);
    font-weight: 700;
}
.footer-contact {
    position: relative;
    padding-bottom: 90px;
    min-height: 100%;
}
.footer-certif {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-top: 0;
    text-align: right;
}
.footer-certif img {
    width: 78px;
    height: auto;
}
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
}
.social-links a:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.footer-bottom {
    background: #e8e8e8;
    text-align: center;
    padding: 10px 0;
    font-size: 0.95rem;
    color: #2b2b2b;
    font-weight: 500;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .section-blue-band { margin-top: -60px; padding-bottom: 30px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .metiers-card { padding: 25px 20px; }
    .metiers-layout,
    .guichet-layout,
    .cfpp-layout,
    .carrieres-layout { grid-template-columns: 1fr; gap: 25px; }
    .rapport-layout { grid-template-columns: 1fr; gap: 25px; text-align: center; }
    .rapport-title-block h2 { text-align: center; }
    .projets-grid { grid-template-columns: 1fr; }
    .marches-grid { grid-template-columns: 1fr; }
    .actu-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-about p { max-width: none; }
    .footer-certif {
        position: static;
        text-align: left;
        margin-top: 14px;
    }
    .footer-contact {
        padding-bottom: 0;
    }
    .social-links { justify-content: flex-start; }
    .metiers-list { padding-left: 0; }
    .metiers-card { padding: 22px 18px; border-radius: 10px; }
    .carrieres-image-block { margin: 0; max-width: 100%; }
}

@media (max-width: 768px) {
    .top-bar-content { flex-direction: column; gap: 5px; text-align: center; }
    .top-bar-left, .top-bar-right { flex-direction: column; gap: 3px; }
    .mobile-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        padding: 10px 0;
    }
    .nav-menu.active { display: flex; }
    .mega-drop {
        position: static;
        transform: none !important;
        display: none;
        pointer-events: auto;
        min-width: 0 !important;
    }
    .nav-item.has-mega:hover .mega-drop { display: none; }
    .nav-item.has-mega.open .mega-drop { display: block; opacity: 1; visibility: visible; }
    .mega-drop-inner { padding: 8px 12px !important; }
    .mega-sub-list {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 4px 0 4px 20px;
        min-width: 0;
    }
    .btn-woyofal { display: none; }
    .slide-content h1 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.88rem; }
    .section-blue-band { margin-top: -50px; }
    .slider { height: 380px; }
    .section { padding: 40px 0; }
    .section-title, .section-title-light { font-size: 1.3rem; }
    .metiers-title { white-space: normal; }
    .projet-card { flex-direction: column; }
    .projet-img { width: 100%; height: 160px; min-height: auto; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .slider { height: 280px; }
    .slide-content h1 { font-size: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ========== PAGE TEMPLATES ========== */
.page-header {
    background-color: #00388d;
    background-image: var(--site-page-header-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 55px 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(3, 13, 40, 0.74);
}

.page-header > .container {
    position: relative;
    z-index: 1;
}
.page-header h1 { font-size: 1.8rem; font-weight: 700; }

/* ========== GUICHET UNIQUE LANDING ========== */
.guichet-landing {
    padding: 56px 0 70px;
    background: #f5f7fb;
}

.guichet-hero-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e7edf4;
    padding: 26px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 22px;
}

.guichet-hero-text h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
    color: #0d3f8a;
}

.guichet-hero-text p {
    color: #374151;
    margin-bottom: 12px;
}

.guichet-hero-text ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guichet-hero-text li {
    margin-bottom: 8px;
    color: #1f2937;
}

.guichet-hero-text li i {
    color: #0b9fb4;
    margin-right: 6px;
}

.guichet-hero-media img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

.guichet-image-placeholder {
    min-height: 280px;
    border-radius: 10px;
    border: 1px dashed #b8c4d4;
    color: #5f6b7a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    background: #f8fafc;
}

.guichet-panel {
    background: #ffffff;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    padding: 22px 22px 18px;
    margin-bottom: 22px;
}

.guichet-panel h4 {
    color: #0d3f8a;
    margin-bottom: 10px;
}

.guichet-panel h5 {
    color: #0b9fb4;
    margin: 14px 0 8px;
    font-size: 0.98rem;
}

.guichet-panel ul {
    margin: 0;
    padding-left: 18px;
}

.guichet-panel li {
    margin-bottom: 7px;
    color: #334155;
}

.guichet-table-wrap {
    overflow-x: auto;
    margin: 10px 0 12px;
}

.guichet-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.guichet-table th,
.guichet-table td {
    border: 1px solid #d9e1eb;
    padding: 9px 10px;
    text-align: left;
    font-size: 0.92rem;
}

.guichet-table thead th {
    background: #0d3f8a;
    color: #fff;
    font-weight: 700;
}

.guichet-richtext p {
    margin-bottom: 12px;
}

.guichet-section-title {
    margin: 0 0 18px;
}

.guichet-section-title h3 {
    color: #0d3f8a;
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.guichet-section-title p {
    color: #4b5563;
}

.guichet-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.guichet-step-card {
    background: #ffffff;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    padding: 20px;
}

.guichet-step-card h4 {
    color: #0d3f8a;
    font-size: 1.04rem;
    margin-bottom: 8px;
}

.guichet-step-card h5 {
    color: #0b9fb4;
    margin: 12px 0 6px;
    font-size: 0.92rem;
}

.guichet-step-card ul {
    margin: 0;
    padding-left: 18px;
}

.guichet-step-card li {
    margin-bottom: 6px;
    color: #334155;
}

.guichet-step-card p {
    margin-top: 10px;
    color: #374151;
}

.guichet-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 2px;
}

.guichet-visual-panel img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 520px;
}
.page-content { padding: 45px 0; }
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { height: 190px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--dark); }
.card-body p { font-size: 0.88rem; color: var(--gray-dark); margin-bottom: 12px; }

.doc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.doc-actions i {
    margin-right: 6px;
}
.offre-badge {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
}
.badge-stage { background: var(--orange); }
.article-header { margin-bottom: 25px; }
.article-header h1 { font-size: 1.8rem; color: var(--dark); margin-bottom: 8px; }
.article-meta { font-size: 0.82rem; color: var(--gray); }
.article-image { margin-bottom: 22px; border-radius: var(--radius); overflow: hidden; }
.article-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
}

@media (max-width: 992px) {
    .article-image img {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .article-image img {
        height: 280px;
    }
}
.article-body { font-size: 0.95rem; line-height: 1.8; color: var(--gray-dark); }
.article-body p { margin-bottom: 14px; }

.nav-link-no-click {
    cursor: default;
}

/* ========== PAGE MOT DU DG ========== */
.mot-dg-page {
    background: #f1f1f1;
    padding: 40px 0 50px;
}
.mot-dg-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 70px;
    align-items: start;
}
.mot-dg-left {
    position: relative;
    min-height: 520px;
}
.mot-dg-accent {
    position: absolute;
    left: -26px;
    top: -16px;
    bottom: -16px;
    width: 255px;
    background: linear-gradient(180deg, rgba(1, 138, 156, 0.8), rgba(0, 77, 101, 0.95));
}
.mot-dg-photo-frame {
    position: absolute;
    left: 58px;
    top: 0;
    width: 355px;
    height: 470px;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.mot-dg-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d9e4f5, #8eaad4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b2b4f;
    font-weight: 700;
    letter-spacing: 0.8px;
}
.mot-dg-right .mot-dg-kicker {
    color: #018a9c;
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.mot-dg-right h1 {
    color: #f28a00;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 22px;
}
.mot-dg-right p {
    color: #222;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 18px;
    max-width: 740px;
}
.mot-dg-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    text-transform: none;
    font-weight: 700;
}
.mot-dg-btn span {
    background: #018a9c;
    color: #fff;
    padding: 11px 26px;
}
.mot-dg-btn i {
    background: #282828;
    color: #fff;
    padding: 13px 18px;
}

@media (max-width: 991px) {
    .mot-dg-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .mot-dg-left {
        min-height: 430px;
    }
    .mot-dg-photo-frame {
        left: 32px;
        width: calc(100% - 45px);
        max-width: 360px;
        height: 390px;
    }
    .mot-dg-right h1 {
        font-size: 2.2rem;
    }
}

/* ========== PAGE HISTORIQUE ========== */
.historique-page {
    background: #f3f3f3;
    padding: 30px 0 60px;
}
.historique-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}
.historique-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: #0b9fb4;
}
.historique-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: start;
    margin-bottom: 22px;
}
.historique-item:last-child {
    margin-bottom: 0;
}
.historique-year {
    align-self: start;
    color: #0b9fb4;
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1;
    margin-top: 8px;
}
.historique-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #0b9fb4;
}
.historique-card {
    padding: 16px 18px;
    font-size: 0.95rem;
    line-height: 1.45;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}
.historique-card ul {
    margin: 0;
    padding-left: 18px;
}
.historique-card li + li {
    margin-top: 8px;
}
.historique-item.left .historique-card {
    grid-column: 1;
    margin-right: 10px;
}
.historique-item.right .historique-card {
    grid-column: 3;
    margin-left: 10px;
}
.historique-item.left .historique-year {
    grid-column: 3;
    justify-self: start;
    margin-left: 10px;
}
.historique-item.right .historique-year {
    grid-column: 1;
    justify-self: end;
    margin-right: 10px;
}
.tone-sand { background: #efddbe; }
.tone-blue { background: #c4d0e2; }
.tone-lightblue { background: #d3e8ed; }
.tone-pink { background: #e7c4d9; }

@media (max-width: 991px) {
    .historique-line {
        left: 22px;
        transform: none;
    }
    .historique-item {
        grid-template-columns: 44px 1fr;
        gap: 0;
    }
    .historique-year {
        grid-column: 2;
        justify-self: start;
        margin-bottom: 8px;
        margin-left: 14px;
    }
    .historique-dot {
        left: 22px;
    }
    .historique-item.left .historique-card,
    .historique-item.right .historique-card {
        grid-column: 2;
        margin: 0 0 0 0;
    }
}

/* ========== PAGE VISIONS ========== */
.visions-page {
    background: #f3f3f3;
    padding: 36px 0 56px;
}
.visions-content {
    color: #111;
    font-size: 1.03rem;
    line-height: 1.8;
}
.visions-content p {
    margin-bottom: 24px;
}
.visions-content h3 {
    margin: 10px 0 14px;
    font-size: 1.45rem;
    text-decoration: underline;
}
.visions-axes {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}
.visions-axes li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}
.visions-axes li::before {
    content: "";
}

.visions-strips {
    height: 290px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.visions-strips .strip {
    background-size: cover;
    background-position: center;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.visions-strips-image {
    display: block;
    height: auto;
}
.visions-uploaded-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}
.strip-1 {
    background-image:
        linear-gradient(rgba(210, 170, 40, 0.15), rgba(210, 170, 40, 0.15)),
        linear-gradient(135deg, #f5ebcb 0%, #d1ad2f 100%);
}
.strip-2 {
    background-image:
        linear-gradient(rgba(120, 185, 210, 0.12), rgba(120, 185, 210, 0.12)),
        linear-gradient(135deg, #c8e0ef 0%, #5f9ac0 100%);
}
.strip-3 {
    background-image:
        linear-gradient(rgba(80, 120, 150, 0.14), rgba(80, 120, 150, 0.14)),
        linear-gradient(135deg, #b8d2df 0%, #4b7ea0 100%);
}
.strip-4 {
    background-image:
        linear-gradient(rgba(170, 190, 210, 0.15), rgba(170, 190, 210, 0.15)),
        linear-gradient(135deg, #d7e4ef 0%, #9cb3c8 100%);
}

@media (max-width: 991px) {
    .visions-content {
        font-size: 0.96rem;
        line-height: 1.75;
    }
    .visions-content h3 {
        font-size: 1.2rem;
    }
    .visions-axes li {
        font-size: 0.98rem;
    }
    .visions-strips {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    .visions-strips .strip {
        min-height: 180px;
    }
}

/* ========== PAGE VALEURS ========== */
.valeurs-page {
    background: #efefef;
    padding: 26px 0 40px;
}
.valeurs-container {
    max-width: 980px;
}
.valeur-card {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 205px;
    margin-bottom: 16px;
    overflow: hidden;
}
.valeur-left {
    position: relative;
    overflow: hidden;
}
.valeur-number {
    position: absolute;
    top: 8px;
    left: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
}
.valeur-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.valeur-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 0 20px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.valeur-right {
    position: relative;
    padding: 24px 24px 18px;
    color: #fff;
}
.valeur-right::before {
    content: "";
    position: absolute;
    left: -64px;
    top: 0;
    width: 140px;
    height: 100%;
    border-radius: 70px 0 0 70px;
    background: inherit;
}
.valeur-right h2 {
    position: relative;
    z-index: 1;
    font-size: 2.05rem;
    margin-bottom: 8px;
}
.valeur-underline {
    position: relative;
    z-index: 1;
    display: block;
    width: 120px;
    height: 4px;
    background: #8ff15b;
    margin-bottom: 12px;
}
.valeur-right p {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    line-height: 1.35;
    max-width: 95%;
}
.valeur-mark {
    position: absolute;
    right: 16px;
    bottom: 12px;
    opacity: 0.95;
}
.valeur-mark img {
    height: 34px;
    width: auto;
    display: block;
}
.valeur-mark span {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.theme-orange .valeur-right { background: linear-gradient(90deg, #ea5d50 0%, #f5a53a 100%); }
.theme-orange .valeur-photo { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.1)), linear-gradient(135deg, #d8b497 0%, #f5efe9 100%); }
.theme-orange .valeur-number { background: #0b9fb4; }
.theme-orange .valeur-badge { background: #0b9fb4; }

.theme-blue .valeur-right { background: #0a3d93; }
.theme-blue .valeur-photo { background-image: linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.12)), linear-gradient(135deg, #2c3e66 0%, #090f22 100%); }
.theme-blue .valeur-number { background: #41ff28; color: #004b13; }
.theme-blue .valeur-badge { background: #062f84; }

.theme-teal .valeur-right { background: #0f95a8; }
.theme-teal .valeur-photo { background-image: linear-gradient(rgba(0,0,0,0.22), rgba(0,0,0,0.08)), linear-gradient(135deg, #b3d9d9 0%, #2a8f9c 100%); }
.theme-teal .valeur-number { background: #0e4e97; }
.theme-teal .valeur-badge { background: #0e4e97; }

.theme-purple .valeur-right { background: #2d1d6d; }
.theme-purple .valeur-photo { background-image: linear-gradient(rgba(0,0,0,0.26), rgba(0,0,0,0.12)), linear-gradient(135deg, #8c8bb3 0%, #41367f 100%); }
.theme-purple .valeur-number { background: #1f4ca8; }
.theme-purple .valeur-badge { background: #d4007f; }

.theme-magenta .valeur-right { background: #d10084; }
.theme-magenta .valeur-photo { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.1)), linear-gradient(135deg, #8b6278 0%, #3d1d3b 100%); }
.theme-magenta .valeur-number { background: #144da9; }
.theme-magenta .valeur-badge { background: #144da9; }

.theme-gold .valeur-right { background: #f39a00; }
.theme-gold .valeur-photo { background-image: linear-gradient(rgba(0,0,0,0.24), rgba(0,0,0,0.1)), linear-gradient(135deg, #665629 0%, #f0c064 100%); }
.theme-gold .valeur-number { background: #fff; color: #0b9fb4; }
.theme-gold .valeur-badge { background: #fff; color: #0b9fb4; }

@media (max-width: 991px) {
    .valeur-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .valeur-left {
        min-height: 220px;
    }
    .valeur-right::before {
        display: none;
    }
    .valeur-right h2 {
        font-size: 1.7rem;
    }
    .valeur-right p {
        font-size: 1rem;
        max-width: 100%;
    }
}

/* ========== PAGE CADRE INSTITUTIONNEL ========== */
.cadre-page {
    background: #f2f2f2;
    padding: 16px 0 40px;
}
.cadre-container {
    max-width: 1140px;
}
.cadre-section {
    margin-bottom: 18px;
}
.cadre-section h2 {
    background: #007d84;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 8px 10px;
    margin-bottom: 12px;
}
.cadre-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4e6168;
    margin-bottom: 10px;
}
.cadre-section ul {
    margin: 0 0 12px 26px;
    color: #4e6168;
}
.cadre-section li {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 6px;
}
.cadre-link-row {
    font-weight: 600;
}
.cadre-link-row a {
    color: #e27d19;
}
.cadre-link-row a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .cadre-section h2 {
        font-size: 0.92rem;
    }
    .cadre-section p,
    .cadre-section li {
        font-size: 0.9rem;
    }
}

/* ========== PAGE CHIFFRES CLES ========== */
.chiffres-page {
    background: #eef7f9;
    padding: 22px 0 44px;
}
.chiffres-top {
    display: grid;
    grid-template-columns: 1fr 50%;
    gap: 10px;
    margin-bottom: 16px;
}
.chiffres-left {
    display: grid;
    gap: 8px;
}
.stat-block {
    background: #d7ecf1;
    border: 1px solid #a4d3dc;
}
.stat-block h3 {
    margin: 0;
    background: #226b95;
    color: #fff;
    padding: 8px 10px;
    font-size: 0.92rem;
}
.stat-block table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.stat-block th,
.stat-block td {
    border: 1px solid #b7d5de;
    padding: 6px 8px;
}
.stat-block thead th {
    background: #2b87bc;
    color: #fff;
    font-weight: 700;
}
.stat-block-red h3,
.stat-block-red thead th {
    background: #e94b57;
}

.chiffres-cover {
    min-height: 640px;
    position: relative;
    border: 1px solid #265a8a;
    overflow: hidden;
    background: #07152b;
}
.chiffres-cover img {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
    display: block;
}

.chiffres-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.stat-purple h3,
.stat-purple thead th {
    background: #7f1f7d;
}
.stat-cyan h3,
.stat-cyan thead th {
    background: #0ca7dd;
}

@media (max-width: 991px) {
    .chiffres-top,
    .chiffres-bottom {
        grid-template-columns: 1fr;
    }
    .chiffres-cover {
        min-height: 360px;
    }
    .chiffres-cover img {
        min-height: 360px;
    }
}

/* ========== PAGE ORGANIGRAMME ========== */
.organigramme-page {
    background: #f1f1f1;
    padding: 26px 0 40px;
}
.organigramme-card {
    background: #fff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 14px;
}
.organigramme-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== PAGE NOS DIRECTIONS ========== */
.directions-page {
    background: #efefef;
    padding: 34px 0 48px;
}
.directions-title {
    text-align: center;
    color: #232b39;
    font-size: 3rem;
    margin-bottom: 26px;
}
.directions-carousel {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
}
.directions-nav {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #0b9fb4;
    color: #fff;
    cursor: pointer;
}
.directions-track-wrap {
    overflow: hidden;
}
.directions-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 2px 10px;
}
.directions-track::-webkit-scrollbar {
    display: none;
}
.direction-card {
    flex: 0 0 calc(25% - 14px);
    text-align: center;
}
.direction-photo-wrap {
    background: #fff;
    height: 320px;
    overflow: hidden;
}
.direction-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.direction-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d8e4ef, #90a6bd);
    color: #1e3a5a;
    font-size: 4.4rem;
    font-weight: 700;
}
.direction-card h3 {
    font-size: 1.45rem;
    color: #f28a00;
    margin: 12px 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.direction-card p {
    font-size: 1rem;
    color: #3d4451;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.direction-clickable {
    cursor: pointer;
}
.direction-clickable:hover .direction-photo {
    transform: scale(1.02);
}
.direction-photo {
    transition: transform 0.2s ease;
}

.direction-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
}
.direction-modal.open {
    display: block;
}
.direction-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.direction-modal-content {
    position: relative;
    max-width: 680px;
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 8px;
    padding: 22px 22px 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    max-height: 84vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.direction-modal-close {
    position: sticky;
    right: 10px;
    top: 0;
    float: right;
    border: 0;
    background: #fff;
    font-size: 1.9rem;
    color: #33425a;
    cursor: pointer;
    z-index: 2;
}
.direction-modal-poste {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ef8a00;
}
.direction-modal-description {
    color: #28364b;
    line-height: 1.6;
    white-space: pre-line;
}

@media (max-width: 1300px) {
    .directions-title { font-size: 2.4rem; }
    .direction-card { flex: 0 0 calc(50% - 10px); }
    .direction-photo-wrap { height: 290px; }
    .direction-card h3 { font-size: 1.4rem; }
    .direction-card p { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .directions-carousel {
        grid-template-columns: 1fr;
    }
    .directions-nav {
        display: none;
    }
    .direction-card {
        flex: 0 0 86%;
    }
    .directions-title {
        font-size: 1.9rem;
    }
}

/* ========== PAGE DELEGATIONS REGIONALES ========== */
.delegations-intro {
    background: #fff;
    padding: 18px 22px;
    border: 1px solid #e3e3e3;
    margin-bottom: 24px;
}
.delegations-intro p {
    font-size: 0.95rem;
    color: #1d1d1d;
    line-height: 1.6;
    margin-bottom: 10px;
}
.delegations-intro ul {
    margin: 0 0 10px 28px;
    padding-left: 16px;
    color: #1d1d1d;
    list-style: disc;
}
.delegations-intro li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 6px;
    list-style: disc;
}

/* ========== PAGE PRESENTATION ========== */
.presentation-page {
    background: #efefef;
    padding: 28px 0 40px;
}
.presentation-content {
    background: #efefef;
}
.presentation-content h2 {
    color: #007f88;
    font-size: 2.05rem;
    margin-bottom: 14px;
}
.presentation-content p {
    color: #4f5f70;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 12px;
}
.presentation-content ul {
    margin: 0 0 12px 18px;
    list-style: disc;
}
.presentation-content li {
    color: #4f5f70;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 4px;
}
.presentation-content strong {
    color: #007f88;
}

/* ========== PAGE ORGANISATION ========== */
.organisation-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.organisation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.organisation-card {
    background: #fff;
    border: 1px solid #dfdfdf;
    padding: 10px;
    text-align: center;
}
.organisation-photo-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f4f7fb;
}
.organisation-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.organisation-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d8e4ef, #90a6bd);
    color: #1e3a5a;
    font-size: 3.8rem;
    font-weight: 700;
}
.organisation-card h3 {
    margin: 10px 0 4px;
    color: #f28a00;
    font-size: 1.15rem;
}
.organisation-card p {
    margin: 0;
    color: #3f4756;
    font-size: 0.95rem;
}
.organisation-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.organisation-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid #0b9fb4;
    color: #0b9fb4;
    background: #fff;
    border-radius: 4px;
    min-width: 36px;
}
.organisation-pagination .page-link.active {
    background: #0b9fb4;
    color: #fff;
}

@media (max-width: 991px) {
    .organisation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .organisation-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== PAGE NOTATION FINANCIERE ========== */
.notation-page {
    background: #efefef;
    padding: 24px 0 40px;
}
.notation-container {
    max-width: 980px;
}
.notation-sheet {
    margin: 0 0 18px;
    background: #fff;
    border: 1px solid #dddddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.notation-sheet img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== PAGE RSE ========== */
.rse-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.rse-container {
    max-width: 980px;
}
.rse-video-card {
    background: #fff;
    border: 1px solid #dddddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 14px;
}
.rse-video-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.rse-video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rse-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    font-size: 1.35rem;
    background: rgba(11, 159, 180, 0.92);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}
.rse-play-overlay:hover {
    background: rgba(8, 135, 154, 0.96);
}
.rse-video-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.video-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0b9fb4;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.video-play-btn:hover {
    background: #08879a;
    color: #fff;
}

/* ========== PAGE PRODUCTION ========== */
.production-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.production-content {
    max-width: 1180px;
    color: #1f2c3b;
}
.production-content p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.production-content h3 {
    margin: 12px 0 8px;
    font-size: 1.02rem;
    color: #0a2d57;
    font-weight: 700;
}
.production-content ul {
    margin: 0 0 10px 18px;
    padding-left: 12px;
    list-style: disc;
}
.production-content li {
    margin-bottom: 6px;
    font-size: 0.94rem;
    line-height: 1.55;
}
.production-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}
.production-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}
.production-table th,
.production-table td {
    border: 1px solid #9ec2cb;
    padding: 8px 10px;
    font-size: 0.93rem;
}
.production-table thead th {
    background: #ef4d59;
    color: #fff;
    text-align: center;
    font-weight: 700;
}
.production-table thead th:first-child {
    text-align: left;
}
.production-table tbody td {
    background: #c8e7ed;
    color: #344255;
}
.production-table tbody td:first-child {
    width: 40%;
}
.production-table tbody tr:last-child td {
    font-weight: 700;
}
.production-table tbody td:nth-child(n+2) {
    text-align: right;
}

@media (max-width: 768px) {
    .production-content p,
    .production-content li,
    .production-table th,
    .production-table td {
        font-size: 0.88rem;
    }
}

/* ========== PAGE TRANSPORT ========== */
.transport-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.transport-content {
    max-width: 1180px;
}
.transport-hero {
    position: relative;
    min-height: 520px;
    border: 1px solid #d7d7d7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.transport-overlay {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 16px 20px;
}
.transport-overlay p {
    margin: 0 0 8px;
    color: #1f2c3b;
    font-size: 0.96rem;
    line-height: 1.42;
}
.transport-list {
    margin: 0 0 8px 14px;
    list-style: none;
    padding: 0;
}
.transport-list li {
    position: relative;
    margin-bottom: 4px;
    padding-left: 15px;
    color: #1f2c3b;
    font-size: 0.95rem;
    line-height: 1.35;
}
.transport-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #08a6b5;
    position: absolute;
    left: 0;
    top: 0.46em;
}
.transport-table-title {
    margin: 34px 0 14px;
    text-align: center;
    color: #121a27;
    font-size: 2rem;
    font-weight: 700;
}
.transport-table-wrap {
    display: flex;
    justify-content: center;
}
.transport-table {
    width: 100%;
    max-width: 620px;
    border-collapse: collapse;
}
.transport-table th,
.transport-table td {
    border: 1px solid #7f8b99;
    padding: 10px 12px;
    font-size: 1.05rem;
}
.transport-table thead th {
    background: #2b2c2f;
    color: #fff;
    font-weight: 700;
}
.transport-table tbody td {
    background: #c2e3e7;
    color: #404c5f;
}
.transport-table tbody tr:last-child td {
    font-weight: 700;
}
.transport-table td:last-child,
.transport-table th:last-child {
    text-align: right;
}

@media (max-width: 768px) {
    .transport-hero {
        min-height: auto;
    }
    .transport-overlay {
        padding: 14px;
    }
    .transport-overlay p,
    .transport-list li {
        font-size: 0.88rem;
    }
    .transport-table-title {
        font-size: 1.4rem;
    }
    .transport-table th,
    .transport-table td {
        font-size: 0.9rem;
        padding: 8px;
    }
}

/* ========== PAGE DISTRIBUTION ========== */
.distribution-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.distribution-content {
    max-width: 1180px;
}
.distribution-content p {
    margin: 0 0 10px;
    color: #1f2c3b;
    font-size: 0.95rem;
    line-height: 1.55;
}
.distribution-list {
    margin: 4px 0 20px 18px;
    list-style: disc;
}
.distribution-list li {
    margin-bottom: 8px;
    color: #1f2c3b;
    font-size: 0.95rem;
    line-height: 1.5;
}
.distribution-image-wrap {
    border: 1px solid #d9d9d9;
    background: #fff;
    overflow: hidden;
}
.distribution-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
.distribution-table-title {
    margin: 34px 0 18px;
    text-align: center;
    color: #121a27;
    font-size: 2.1rem;
    font-weight: 700;
}
.distribution-tables-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.distribution-table-wrap {
    overflow-x: auto;
}
.distribution-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}
.distribution-table th,
.distribution-table td {
    border: 1px solid #7f8b99;
    padding: 10px 10px;
    font-size: 0.92rem;
}
.distribution-table thead th {
    background: #2b2c2f;
    color: #fff;
    font-weight: 700;
}
.distribution-table tbody td {
    background: #c2e3e7;
    color: #3e4a5d;
}
.distribution-table tbody tr:last-child td {
    font-weight: 700;
}
.distribution-table td:last-child,
.distribution-table th:last-child {
    text-align: right;
}

@media (max-width: 900px) {
    .distribution-tables-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .distribution-content p,
    .distribution-list li,
    .distribution-table th,
    .distribution-table td {
        font-size: 0.88rem;
    }
    .distribution-table-title {
        font-size: 1.45rem;
    }
}

/* ========== PAGE COMMERCIAL ========== */
.commercial-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.commercial-content {
    max-width: 1180px;
}
.commercial-image-wrap {
    border: 1px solid #d9d9d9;
    background: #fff;
    overflow: hidden;
    margin-bottom: 16px;
}
.commercial-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
.commercial-table-wrap {
    overflow-x: auto;
    margin-top: 10px;
}
.commercial-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}
.commercial-table th,
.commercial-table td {
    border: 1px solid #9ca8ba;
    padding: 8px 10px;
    font-size: 0.93rem;
}
.commercial-table thead th {
    background: #1f4b8f;
    color: #fff;
    font-weight: 700;
    text-align: center;
}
.commercial-table thead th:first-child {
    text-align: left;
}
.commercial-table tbody td {
    color: #2f3b4e;
}
.commercial-table tbody td:nth-child(1),
.commercial-table tbody td:nth-child(2),
.commercial-table tbody td:nth-child(4),
.commercial-table tbody td:nth-child(5) {
    background: #e6e6e7;
}
.commercial-table tbody td:nth-child(3) {
    background: #b5bad0;
}
.commercial-table tbody tr:last-child td {
    font-weight: 700;
}
.commercial-table td:nth-child(n+2),
.commercial-table th:nth-child(n+2) {
    text-align: right;
}

@media (max-width: 768px) {
    .commercial-table th,
    .commercial-table td {
        font-size: 0.88rem;
    }
}

/* ========== PAGE ESPACE PRESSE ========== */
.presse-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.presse-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
}
.presse-hero {
    background: #00388d;
    color: #fff;
    padding: 22px;
    border-radius: 6px;
    margin-bottom: 14px;
}
.presse-hero h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}
.presse-hero p {
    margin: 0;
    line-height: 1.55;
    font-size: 0.96rem;
}
.presse-list {
    display: grid;
    gap: 10px;
}
.presse-item {
    background: #fff;
    border: 1px solid #dfe3ea;
    padding: 14px;
}
.presse-item-selected {
    border-color: #0b9fb4;
    box-shadow: 0 0 0 2px rgba(11, 159, 180, 0.18);
}
.presse-tag {
    display: inline-block;
    background: #d8ecff;
    color: #184a86;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.presse-item h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    color: #18263d;
}
.presse-item h3 a {
    color: inherit;
}
.presse-item h3 a:hover {
    color: #0b9fb4;
}
.presse-item p {
    margin: 0;
    color: #5c6677;
    font-size: 0.9rem;
}
.presse-item-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.presse-item-link {
    display: inline-block;
    background: #0b9fb4;
    color: #fff;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 600;
}
.presse-item-link:hover {
    color: #fff;
    background: #098ea1;
}
.presse-pagination {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.presse-pagination .page-link {
    min-width: 36px;
    padding: 7px 10px;
    border-radius: 4px;
    border: 1px solid #ccd5e2;
    background: #fff;
    color: #1a2e4b;
    text-align: center;
    font-size: 0.9rem;
}
.presse-pagination .page-link.active {
    background: #0b9fb4;
    border-color: #0b9fb4;
    color: #fff;
}
.presse-side {
    display: grid;
    gap: 12px;
    align-content: start;
}
.presse-card {
    background: #fff;
    border: 1px solid #dfe3ea;
    padding: 14px;
}
.presse-search-form {
    display: grid;
    gap: 8px;
}
.presse-search-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.presse-search-input {
    width: 100%;
    border: 1px solid #cfd7e4;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 0.92rem;
    color: #1a2e4b;
}
.presse-search-btn {
    border: 0;
    border-radius: 4px;
    background: #1f67b8;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}
.presse-search-btn:hover {
    background: #17539a;
}
.presse-reset-btn {
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #cfd7e4;
    background: #fff;
    color: #1a2e4b;
    padding: 8px 12px;
    font-size: 0.9rem;
}
.presse-reset-btn:hover {
    background: #f3f6fb;
    color: #1a2e4b;
}
.presse-card h3 {
    margin: 0 0 10px;
    color: #1a2e4b;
    font-size: 1.06rem;
}
.presse-card ul {
    margin: 0;
    padding-left: 18px;
}
.presse-card li {
    margin-bottom: 7px;
    font-size: 0.92rem;
    color: #39465b;
}
.presse-card p {
    margin: 0 0 12px;
    color: #39465b;
    font-size: 0.92rem;
    line-height: 1.5;
}
.presse-btn {
    display: inline-block;
    background: #0b9fb4;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
}
.presse-btn:hover {
    color: #fff;
    background: #098ea1;
}

@media (max-width: 900px) {
    .presse-layout {
        grid-template-columns: 1fr;
    }
}

/* ========== PAGE PHOTOTHEQUE ========== */
.phototheque-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.photo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.photo-filter-btn {
    border: 0;
    background: transparent;
    color: #d97a00;
    font-size: 1.02rem;
    cursor: pointer;
    padding: 4px 8px;
}
.photo-filter-btn.active {
    color: #1a2e4b;
    font-weight: 700;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.photo-card-hidden {
    display: none !important;
}
.photo-open-btn {
    border: 0;
    background: #fff;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.photo-open-btn img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
}
.photo-hover-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 185px;
    background: rgba(0, 56, 141, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.photo-open-btn:hover .photo-hover-overlay {
    opacity: 1;
}
.photo-card-title {
    display: block;
    padding: 8px 10px;
    font-size: 0.9rem;
    color: #273347;
    background: #fff;
    border: 1px solid #e3e6eb;
    border-top: 0;
}
.photo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    padding: 20px;
}
.photo-lightbox.open {
    display: flex;
}
.photo-lightbox img {
    max-width: min(96vw, 1200px);
    max-height: 82vh;
    width: auto;
    height: auto;
}
.photo-lightbox p {
    color: #fff;
    font-size: 1rem;
    text-align: center;
}
.photo-lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}
.photo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.photo-lightbox-nav.prev { left: 22px; }
.photo-lightbox-nav.next { right: 22px; }
.photo-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 992px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    .photo-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    .photo-lightbox-nav.prev { left: 10px; }
    .photo-lightbox-nav.next { right: 10px; }
}

/* ========== PAGE VIDEOTHEQUE ========== */
.videotheque-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.video-frame-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #d9d9d9;
    overflow: hidden;
}
.video-frame-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6d7178;
    gap: 8px;
}
.video-placeholder i {
    font-size: 1.6rem;
}
.video-placeholder span {
    font-size: 0.84rem;
}
.video-title {
    margin-top: 10px;
    color: #ea8300;
    font-size: 1.05rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== PAGE SAIFI/SAIDI ========== */
.saifi-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.saifi-card {
    background: #efefef;
    max-width: 980px;
    margin: 0 auto;
}
.saifi-card h2 {
    text-align: center;
    font-size: 1.15rem;
    color: #1e2532;
    margin-bottom: 18px;
    font-weight: 700;
    text-decoration: underline;
}
.saifi-table-wrap {
    overflow-x: auto;
}
.saifi-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 740px;
    background: #efefef;
}
.saifi-table th,
.saifi-table td {
    border: 2px solid #2c2c2c;
    padding: 8px 10px;
    font-size: 1.02rem;
    color: #303030;
}
.saifi-table th {
    text-align: left;
    font-weight: 700;
}
.saifi-table td:first-child {
    text-align: center;
    width: 24%;
}
.saifi-table td:nth-child(3),
.saifi-table td:nth-child(4) {
    width: 25%;
}

@media (max-width: 768px) {
    .saifi-card h2 {
        font-size: 1rem;
    }
    .saifi-table th,
    .saifi-table td {
        font-size: 0.92rem;
    }
}

/* ========== PAGE RMA ========== */
.rma-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.rma-card {
    max-width: 980px;
    margin: 0 auto;
    background: #efefef;
    border: 1px solid #e2e2e2;
    padding: 0;
}
.rma-card img {
    display: block;
    width: 100%;
    height: auto;
}
.rma-page img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ========== PAGE ERC ========== */
.erc-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.erc-card {
    max-width: 980px;
    margin: 0 auto;
    background: #efefef;
    border: 1px solid #e2e2e2;
    padding: 22px 24px;
}
.erc-card h2 {
    margin: 0 0 16px;
    font-size: 1.15rem;
    color: #1d2433;
    font-weight: 700;
    text-transform: uppercase;
}
.erc-card p {
    margin: 0 0 12px;
    font-size: 0.96rem;
    color: #1f2b3b;
    line-height: 1.55;
}
.erc-card ul {
    margin: 0 0 10px 22px;
    list-style: disc;
}
.erc-card li {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #1f2b3b;
    line-height: 1.45;
}
.erc-sub-list {
    margin-left: 34px;
    list-style: circle;
}
.erc-sub-list-deep {
    margin-left: 46px;
}
.erc-highlight {
    font-weight: 700;
}

@media (max-width: 768px) {
    .erc-card {
        padding: 15px;
    }
    .erc-card p,
    .erc-card li {
        font-size: 0.9rem;
    }
}

/* ========== PAGE IDE ========== */
.ide-page {
    background: #efefef;
    padding: 28px 0 44px;
}
.ide-card {
    max-width: 1180px;
    margin: 0 auto;
}
.ide-card h2 {
    margin: 0 0 18px;
    text-align: center;
    color: #335e9f;
    font-size: 2.2rem;
    font-weight: 600;
    white-space: nowrap;
}
.ide-table-wrap {
    overflow-x: visible;
}
.ide-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    table-layout: fixed;
    background: #efefef;
}
.ide-table th,
.ide-table td {
    border: 1.5px solid #666;
    padding: 10px 8px;
    font-size: 0.95rem;
    color: #2b2f36;
    vertical-align: top;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.ide-table th {
    font-weight: 700;
    text-align: left;
}

@media (max-width: 768px) {
    .ide-card h2 {
        font-size: 1.05rem;
    }
    .ide-table th,
    .ide-table td {
        font-size: 0.88rem;
    }
}

/* ========== PROJET DETAIL ========== */
.projet-detail-page {
    background: #efefef;
    padding: 28px 0 44px;
}

.projet-detail-grid {
    display: block;
}

.projet-detail-main {
    background: #fff;
    border: 1px solid #e2e2e2;
    padding: 20px;
}

.projet-detail-image-wrap {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.projet-detail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.projet-detail-description {
    margin-top: 8px;
    color: #2b2f36;
    line-height: 1.75;
}

.projet-divider {
    height: 1px;
    background: #e8edf3;
    margin: 22px 0;
}

.projet-pdf-section h2,
.related-projects h2 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    color: #1d2433;
}

.projet-pdf-embed iframe {
    width: 100%;
    height: 460px;
    border: 0;
}

.projet-pdf-list {
    margin-top: 14px;
}

.projet-pdf-item {
    margin-bottom: 10px;
}

.projet-pdf-item a {
    color: #e27d19;
    font-weight: 700;
    text-decoration: underline;
}

.related-projects-carousel {
    position: relative;
    padding: 10px 0;
}

.related-projects-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 52px;
}

.related-projects-track::-webkit-scrollbar {
    height: 8px;
}

.related-projects-track::-webkit-scrollbar-thumb {
    background: rgba(0, 56, 141, 0.25);
    border-radius: 8px;
}

.related-projects-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 14px;
    /* 3 cartes visibles en même temps (en tenant compte du gap de 16px entre cartes) */
    flex: 0 0 calc((100% - 32px) / 3);
}

.related-projects-card-img {
    border-radius: 6px;
    overflow: hidden;
    height: 92px;
    margin-bottom: 10px;
    background: #f3f6fb;
}

.related-projects-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-projects-card-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #1d2433;
}

.related-projects-card-desc {
    margin: 0 0 12px;
    color: #4a5668;
    line-height: 1.55;
}

.related-projects-card-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d37a19;
    color: #e27d19;
    font-weight: 800;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 56, 141, 0.22);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: #00388d;
}

.carousel-arrow.left {
    left: 6px;
}

.carousel-arrow.right {
    right: 6px;
}

.projet-detail-container {
    gap: 18px;
}

.projet-detail-sidebar {
    align-self: start;
}

.projet-detail-sidebar-card {
    position: sticky;
    top: 90px;
}

.projet-side-desc {
    margin: 0 0 10px;
    font-weight: 700;
    color: #1d2433;
}

.projet-side-pdf-list {
    display: grid;
    gap: 8px;
}

.pdf-side-btn {
    text-align: left;
    border: 1px solid #dfe3ea;
    background: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    color: #1a2e4b;
}

.pdf-side-btn.active,
.pdf-thumb-btn.active {
    border-color: rgba(11, 159, 180, 0.65);
    background: rgba(11, 159, 180, 0.12);
    color: #0b6f80;
}

.projet-pdf-slider-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.projet-pdf-slider-title {
    flex: 1;
    text-align: center;
    font-weight: 800;
    color: #1d2433;
}

.projet-pdf-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.pdf-thumb-btn {
    border: 1px solid #dfe3ea;
    background: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    color: #1a2e4b;
    white-space: nowrap;
    flex: 0 0 auto;
}

.pdf-thumb-btn.active {
    background: rgba(11, 159, 180, 0.12);
}

.projet-pdf-download {
    margin-top: 10px;
}

.projet-pdf-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.projet-related-back-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.projet-pdf-download-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #d37a19;
    color: #e27d19;
    font-weight: 800;
    background: #fff;
}

/* Override pour que les fleches du slider PDF ne soient pas absolues */
.projet-pdf-slider-controls .carousel-arrow {
    position: static;
    transform: none;
    width: 34px;
    height: 34px;
    margin: 0;
}

@media (max-width: 900px) {
    .projet-detail-sidebar-card {
        position: static;
    }
    .projet-detail-container {
        grid-template-columns: 1fr;
    }
    .projet-pdf-thumbs {
        gap: 8px;
    }

    .related-projects-card-img {
        height: 78px;
    }

    .related-projects-card {
        /* 2 cartes en même temps sur tablette */
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (max-width: 640px) {
    .related-projects-card {
        /* 1 carte en même temps sur mobile */
        flex: 0 0 100%;
    }
}

/* ========== PAGE PASSATION DES MARCHES ========== */
.marches-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(5, 20, 61, 0.5), rgba(5, 20, 61, 0.5)),
        url("/static/images/95772.f11ccac82963.jpg") center center / cover no-repeat;
}
.marches-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.36);
}
.marches-hero .container {
    position: relative;
    z-index: 1;
}
.marches-hero h1 {
    color: #1f2f67;
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 700;
}

.marches-tabs-section {
    background: #14215b;
    padding: 0 0 40px;
}
.marches-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.marches-tab {
    border: 0;
    padding: 16px 18px;
    text-align: left;
    background: #23316d;
    color: #8fa3cb;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 600;
    cursor: pointer;
}
.marches-tab span {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
}
.marches-tab.active {
    background: #f2f2f4;
    color: #1f2f67;
}

.marches-tab-content {
    display: none;
    background: #14215b;
    padding-top: 16px;
}
.marches-tab-content.active {
    display: block;
}

.marches-table-wrap {
    overflow-x: auto;
}
.marches-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}
.marches-table th,
.marches-table td {
    border: 1px solid #a4adbf;
    padding: 8px 10px;
    font-size: 0.95rem;
    color: #0f1627;
    background: #e4e4e6;
}
.marches-table thead th {
    background: #0f315b;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
}
.marches-row-link {
    color: #0f315b;
    font-weight: 700;
}

.attributions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 34px;
    padding: 10px 0 12px;
}
.attribution-card {
    background: #0fa6ba;
    color: #fff;
    padding: 20px;
}
.attribution-card p {
    margin: 0 0 2px;
    line-height: 1.2;
    font-size: 1.04rem;
}

.ressources-panel {
    background: #0f5f87;
    color: #fff;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}
.ressources-panel h2 {
    font-size: 3rem;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .marches-hero h1 {
        font-size: 3rem;
    }
    .marches-tab {
        font-size: 1.45rem;
    }
}

@media (max-width: 768px) {
    .marches-hero {
        min-height: 260px;
    }
    .marches-hero h1 {
        font-size: 2rem;
    }
    .marches-tabs {
        grid-template-columns: 1fr;
    }
    .marches-tab {
        font-size: 1.15rem;
        padding: 12px 14px;
    }
    .attributions-grid {
        grid-template-columns: 1fr;
    }
    .attribution-card p {
        font-size: 0.98rem;
    }
    .ressources-panel h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .guichet-hero-card,
    .guichet-two-cols,
    .guichet-steps-grid {
        grid-template-columns: 1fr;
    }
}
