/* ============================================
   FSE - Fonds special de Soutien au secteur de l'Energie
   Charte graphique basee sur le logo
   ============================================ */

:root {
    --fse-blue: #1f407c;
    --fse-blue-dark: #142d56;
    --fse-blue-light: #2a5ba0;
    --fse-red: #f74a58;
    --fse-yellow: #eecb23;
    --fse-orange: #E8852E;
    --fse-green: #24c660;
    --fse-green-light: #4dd880;
    --fse-cyan: #0098D8;
    --fse-white: #FFFFFF;
    --fse-gray-light: #F4F6F9;
    --fse-gray: #6B7B8D;
    --fse-gray-dark: #2C3E50;
    --fse-text: #1A1A2E;
    --fse-shadow: 0 4px 20px rgba(31, 64, 124, 0.1);
    --fse-shadow-hover: 0 8px 30px rgba(31, 64, 124, 0.18);
    --fse-transition: all 0.3s ease;
    --fse-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--fse-text);
    line-height: 1.7;
    background: var(--fse-white);
}

/* ---- Pipeline decorative element ---- */
.pipeline-line {
    position: relative;
}
.pipeline-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--fse-green), var(--fse-green-light));
    border-radius: 3px;
}

/* ============ HEADER / NAV ============ */
.topbar {
    background: var(--fse-blue-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 6px 0;
}
.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--fse-transition);
}
.topbar a:hover { color: var(--fse-yellow); }

.topbar-social {
    display: flex;
    gap: 10px;
    align-items: center;
}
.topbar-social a {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    transition: var(--fse-transition);
}
.topbar-social a:hover {
    color: var(--fse-yellow);
    transform: scale(1.15);
}

.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lang-switch button {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    padding: 2px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--fse-transition);
}
.lang-switch button.active,
.lang-switch button:hover {
    background: var(--fse-yellow);
    color: var(--fse-blue-dark);
    border-color: var(--fse-yellow);
}

header {
    background: var(--fse-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-area img {
    height: 80px;
    width: auto;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-text .name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fse-blue);
    letter-spacing: -0.5px;
}
.logo-text .sub {
    font-size: 0.65rem;
    color: var(--fse-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
}
nav ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--fse-gray-dark);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--fse-transition);
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--fse-green);
    transition: var(--fse-transition);
}
nav ul li a:hover {
    color: var(--fse-blue);
}
nav ul li a:hover::after {
    width: 70%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fse-blue);
    margin: 6px 0;
    transition: var(--fse-transition);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--fse-blue-dark) 0%, var(--fse-blue) 60%, var(--fse-cyan) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0 350 Q300 280 600 320 T1200 300" fill="none" stroke="rgba(36,198,96,0.3)" stroke-width="3"/><path d="M0 380 Q300 310 600 350 T1200 330" fill="none" stroke="rgba(36,198,96,0.15)" stroke-width="2"/><circle cx="200" cy="200" r="150" fill="rgba(238,203,35,0.05)"/><circle cx="900" cy="150" r="200" fill="rgba(0,152,216,0.05)"/></svg>') center/cover no-repeat;
}
/* Pipeline decorative lines across hero */
.hero::after {
    content: '';
    position: absolute;
    top: 60%;
    left: -5%;
    width: 110%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fse-green), var(--fse-green-light), var(--fse-green), transparent);
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--fse-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero-text h1 span {
    color: var(--fse-yellow);
}
.hero-text p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 520px;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--fse-transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--fse-yellow);
    color: var(--fse-blue-dark);
}
.btn-primary:hover {
    background: #d4b41e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238,203,35,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--fse-white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    border-color: var(--fse-white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.btn-green {
    background: var(--fse-green);
    color: white;
}
.btn-green:hover {
    background: #1da04e;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--fse-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--fse-transition);
}
.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}
.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--fse-yellow);
    display: block;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ SECTIONS COMMON ============ */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--fse-gray-light);
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--fse-blue);
    margin-bottom: 0.8rem;
}
.section-header .pipeline-accent {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--fse-green), var(--fse-green-light));
    border-radius: 3px;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--fse-gray);
    max-width: 650px;
    margin: 0 auto;
}

/* ============ MISSIONS ============ */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.mission-card {
    background: var(--fse-white);
    border-radius: var(--fse-radius);
    padding: 2rem;
    box-shadow: var(--fse-shadow);
    transition: var(--fse-transition);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.mission-card:nth-child(1)::before { background: var(--fse-yellow); }
.mission-card:nth-child(2)::before { background: var(--fse-green); }
.mission-card:nth-child(3)::before { background: var(--fse-cyan); }
.mission-card:nth-child(4)::before { background: var(--fse-red); }
.mission-card:nth-child(5)::before { background: var(--fse-orange); }
.mission-card:nth-child(6)::before { background: var(--fse-blue); }

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fse-shadow-hover);
}
.mission-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.mission-card:nth-child(1) .mission-icon { background: rgba(238,203,35,0.12); }
.mission-card:nth-child(2) .mission-icon { background: rgba(36,198,96,0.12); }
.mission-card:nth-child(3) .mission-icon { background: rgba(0,152,216,0.12); }
.mission-card:nth-child(4) .mission-icon { background: rgba(247,74,88,0.12); }
.mission-card:nth-child(5) .mission-icon { background: rgba(232,133,46,0.12); }
.mission-card:nth-child(6) .mission-icon { background: rgba(31,64,124,0.12); }

.mission-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fse-blue);
    margin-bottom: 0.6rem;
}
.mission-card p {
    font-size: 0.9rem;
    color: var(--fse-gray);
    line-height: 1.6;
}

/* ============ DIRECTOR MESSAGE ============ */
.director-section {
    background: linear-gradient(135deg, var(--fse-blue-dark) 0%, var(--fse-blue) 100%);
    position: relative;
    overflow: hidden;
}
.director-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fse-green), transparent);
    opacity: 0.2;
}
.director-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.director-photo {
    text-align: center;
}
.director-photo img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    object-fit: cover;
}
.director-photo .director-name {
    color: var(--fse-white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 1.2rem;
}
.director-photo .director-title {
    color: var(--fse-yellow);
    font-size: 0.85rem;
    font-weight: 500;
}
.director-message {
    color: rgba(255,255,255,0.9);
}
.director-message .quote-mark {
    font-size: 4rem;
    color: var(--fse-yellow);
    line-height: 1;
    font-family: Georgia, serif;
    opacity: 0.6;
}
.director-message blockquote {
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    margin: 1rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--fse-green);
}
.director-message .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fse-yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: var(--fse-transition);
}
.director-message .read-more:hover {
    gap: 12px;
}
.admin-quote-full {
    display: none;
}
.admin-quote-full.visible {
    display: inline;
}
.director-message .read-more {
    cursor: pointer;
}

/* ============ NEWS / ACTUALITES ============ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.news-card {
    background: var(--fse-white);
    border-radius: var(--fse-radius);
    overflow: hidden;
    box-shadow: var(--fse-shadow);
    transition: var(--fse-transition);
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fse-shadow-hover);
}
.news-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--fse-blue), var(--fse-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}
.news-img .placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}
.news-img .news-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--fse-yellow);
    color: var(--fse-blue-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.news-body {
    padding: 1.5rem;
}
.news-date {
    font-size: 0.78rem;
    color: var(--fse-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fse-blue);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.news-body p {
    font-size: 0.88rem;
    color: var(--fse-gray);
    line-height: 1.6;
}
.news-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--fse-green);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 0.8rem;
    transition: var(--fse-transition);
}
.news-link:hover { gap: 10px; }

.news-more {
    text-align: center;
    margin-top: 3rem;
}

/* ============ VIDEOS / MEDIA ============ */
.media-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
.video-main {
    border-radius: var(--fse-radius);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background: linear-gradient(135deg, var(--fse-blue-dark), var(--fse-blue));
}
.video-main .play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--fse-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--fse-blue-dark);
    transition: var(--fse-transition);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}
.video-main:hover .play-btn {
    transform: scale(1.1);
}
.video-main .video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-size: 0.9rem;
}
.video-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.video-thumb {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--fse-white);
    border-radius: 10px;
    box-shadow: var(--fse-shadow);
    cursor: pointer;
    transition: var(--fse-transition);
}
.video-thumb:hover {
    transform: translateX(4px);
    box-shadow: var(--fse-shadow-hover);
}
.video-thumb-img {
    width: 100px;
    min-width: 100px;
    height: 65px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--fse-blue), var(--fse-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
}
.video-thumb-info h4 {
    font-size: 0.82rem;
    color: var(--fse-blue);
    font-weight: 600;
    line-height: 1.4;
}
.video-thumb-info span {
    font-size: 0.72rem;
    color: var(--fse-gray);
}

/* ============ GOVERNANCE ============ */
.governance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.governance-card {
    background: var(--fse-white);
    border-radius: var(--fse-radius);
    padding: 2.5rem;
    box-shadow: var(--fse-shadow);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--fse-transition);
}
.governance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fse-shadow-hover);
}
.governance-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 12px;
    background: rgba(31,64,124,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.governance-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fse-blue);
    margin-bottom: 0.5rem;
}
.governance-card p {
    font-size: 0.88rem;
    color: var(--fse-gray);
    line-height: 1.6;
}

/* ============ KEY FIGURES ============ */
.figures-banner {
    background: linear-gradient(135deg, var(--fse-green) 0%, #1da04e 100%);
    position: relative;
    overflow: hidden;
}
.figures-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}
.figures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.figure-item {
    text-align: center;
    padding: 2rem 1rem;
}
.figure-item .fig-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--fse-white);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.figure-item .fig-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* ============ LEGAL FRAMEWORK ============ */
.legal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.legal-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fse-blue);
    margin-bottom: 1rem;
}
.legal-text p {
    color: var(--fse-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.legal-list {
    list-style: none;
    margin-top: 1.5rem;
}
.legal-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--fse-gray-dark);
}
.legal-list li .legal-icon {
    color: var(--fse-green);
    font-size: 1.1rem;
}
.legal-doc-preview {
    background: var(--fse-white);
    border-radius: var(--fse-radius);
    box-shadow: var(--fse-shadow);
    padding: 2rem;
    text-align: center;
}
.legal-doc-preview .doc-icon {
    font-size: 4rem;
    color: var(--fse-red);
    margin-bottom: 1rem;
}
.legal-doc-preview h4 {
    font-size: 1rem;
    color: var(--fse-blue);
    margin-bottom: 0.5rem;
}
.legal-doc-preview p {
    font-size: 0.82rem;
    color: var(--fse-gray);
    margin-bottom: 1.2rem;
}

/* ============ PARTNERS ============ */
.partners-category {
    margin-bottom: 2rem;
}
.partners-category h3 {
    text-align: center;
    color: var(--fse-blue);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.partner-placeholder {
    opacity: 0.5;
    font-style: italic;
    border: 2px dashed #d0d5dd !important;
    background: transparent !important;
}
.partners-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem 0;
}
.partner-logo {
    height: 50px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--fse-transition);
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fse-gray);
}
.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--fse-blue);
}

/* ============ CONTACT ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-card {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--fse-white);
    border-radius: var(--fse-radius);
    box-shadow: var(--fse-shadow);
}
.contact-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: rgba(31,64,124,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--fse-blue);
}
.contact-card h4 {
    font-size: 0.95rem;
    color: var(--fse-blue);
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.contact-card p {
    font-size: 0.85rem;
    color: var(--fse-gray);
    line-height: 1.5;
}
.contact-form {
    background: var(--fse-white);
    padding: 2.5rem;
    border-radius: var(--fse-radius);
    box-shadow: var(--fse-shadow);
}
.contact-form h3 {
    font-size: 1.3rem;
    color: var(--fse-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fse-gray-dark);
    margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e5ec;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--fse-transition);
    background: var(--fse-gray-light);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--fse-blue);
    background: var(--fse-white);
    box-shadow: 0 0 0 3px rgba(31,64,124,0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============ FOOTER ============ */
footer {
    background: var(--fse-blue-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-brand img {
    height: 55px;
    margin-bottom: 1rem;
}
.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--fse-transition);
    font-size: 0.9rem;
}
.footer-social a:hover {
    background: var(--fse-yellow);
    color: var(--fse-blue-dark);
}

footer h4 {
    color: var(--fse-white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}
footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--fse-green);
}
footer ul {
    list-style: none;
}
footer ul li {
    margin-bottom: 0.6rem;
}
footer ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--fse-transition);
}
footer ul li a:hover {
    color: var(--fse-yellow);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}
.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}
.footer-bottom a:hover { color: var(--fse-yellow); }

/* ============ RESPONSIVE ============ */

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
    .missions-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .figures-grid { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: 1fr; }
    .director-grid { grid-template-columns: 1fr; text-align: center; }
    .director-message blockquote { border-left: none; padding-left: 0; border-top: 3px solid var(--fse-green); padding-top: 1rem; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
    .topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
    .topbar-social { justify-content: center; }
    .header-inner { height: 85px; padding: 0 1rem; }
    .logo-area img { height: 65px; }
    .logo-text .name { font-size: 0.95rem; }
    .logo-text .sub { font-size: 0.6rem; }
    .logo-area { gap: 8px; }

    nav ul {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        right: 0;
        background: var(--fse-white);
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 1000;
    }
    nav ul.open { display: flex; }
    nav ul li a { padding: 0.8rem 2rem; display: block; }
    .nav-toggle { display: block; }

    .container { padding: 0 1rem; }
    .hero { min-height: 400px; padding: 3rem 0; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text p { font-size: 1rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .stat-card { padding: 1rem; }
    .stat-card .stat-number { font-size: 1.5rem; }

    .section { padding: 3rem 0; }
    .section-header h2 { font-size: 1.6rem; }
    .section-header p { font-size: 0.9rem; }

    .sectors-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .sector-card { padding: 1.5rem 1rem; }
    .missions-grid, .missions-grid.four-col { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .figures-grid { grid-template-columns: 1fr 1fr; }
    .governance-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .legal-content { grid-template-columns: 1fr; }
    .legal-doc-preview { margin-top: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .partners-track { gap: 2rem; }

    .director-photo { width: 140px; height: 140px; }
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .topbar { font-size: 0.7rem; padding: 4px 0; }
    .topbar-inner > div { flex-wrap: wrap; justify-content: center; gap: 0.5rem !important; }
    .topbar-inner > div > a[data-i18n="topbar_mfb"] { display: none; }
    .header-inner { height: 70px; }
    .logo-area img { height: 50px; }
    .logo-text .name { font-size: 0.85rem; }
    .logo-text .sub { font-size: 0.55rem; max-width: 140px; }

    nav ul { top: 70px; }

    .hero { min-height: 350px; padding: 2rem 0; }
    .hero-text h1 { font-size: 1.4rem; line-height: 1.3; }
    .hero-text p { font-size: 0.9rem; }
    .hero-buttons { flex-direction: column; gap: 0.5rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .stat-card .stat-number { font-size: 1.2rem; }
    .stat-card .stat-label { font-size: 0.65rem; }

    .section { padding: 2rem 0; }
    .section-header h2 { font-size: 1.3rem; }

    .sectors-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .sector-card { padding: 1.2rem 1rem; }
    .missions-grid, .missions-grid.four-col { grid-template-columns: 1fr; }
    .mission-card { padding: 1.2rem; }

    .news-card { border-radius: 8px; }
    .news-img { height: 140px; }

    .figures-grid { grid-template-columns: 1fr; }
    .figure-card { padding: 1.5rem; }

    .governance-card { padding: 1rem; }
    .governance-icon svg { width: 32px; height: 32px; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    .contact-card { padding: 0.8rem; }
    .partners-track { gap: 1.5rem; }
    .partner-logo { font-size: 1rem; height: 40px; }

    .scroll-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ SCROLL TO TOP ============ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--fse-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(31,64,124,0.3);
    transition: var(--fse-transition);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}
.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}
.scroll-top:hover {
    background: var(--fse-yellow);
    color: var(--fse-blue-dark);
    transform: translateY(-3px);
}

/* ============ BIOGRAPHY / ADMIN SECTION ============ */
.bio-details {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.bio-details h3 {
    color: var(--fse-yellow);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.bio-timeline {
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}
.bio-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--fse-green), var(--fse-green-light));
}
.bio-timeline li {
    position: relative;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
}
.bio-timeline li::before {
    content: '';
    position: absolute;
    left: -1.65rem;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fse-green);
}

/* ============ SECTORS TABS ============ */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.sector-card {
    background: var(--fse-white);
    border-radius: var(--fse-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--fse-shadow);
    transition: var(--fse-transition);
    border-bottom: 4px solid transparent;
}
.sector-card:nth-child(1) { border-bottom-color: var(--fse-blue); }
.sector-card:nth-child(2) { border-bottom-color: var(--fse-green); }
.sector-card:nth-child(3) { border-bottom-color: var(--fse-red, #f74a58); }
.sector-card:nth-child(4) { border-bottom-color: var(--fse-yellow); }
.sector-card:nth-child(5) { border-bottom-color: var(--fse-cyan); }
.sector-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fse-shadow-hover);
}
.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.sector-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fse-blue);
    margin-bottom: 0.5rem;
}
.sector-card p {
    font-size: 0.82rem;
    color: var(--fse-gray);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sectors-grid { grid-template-columns: 1fr; }
}

.mission-card:nth-child(7)::before { background: var(--fse-green-light); }
.mission-card:nth-child(8)::before { background: var(--fse-cyan); }
.mission-card:nth-child(7) .mission-icon { background: rgba(77,216,128,0.12); }
.mission-card:nth-child(8) .mission-icon { background: rgba(0,152,216,0.12); }

.missions-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}
.missions-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
    .missions-grid.four-col { grid-template-columns: repeat(2, 1fr); }
    .missions-grid.three-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .missions-grid.four-col { grid-template-columns: 1fr; }
    .missions-grid.three-col { grid-template-columns: 1fr; }
}

/* ---- Composition CA ---- */
.ca-composition {
    margin-top: 3rem;
    background: white;
    border-radius: var(--fse-radius);
    padding: 2rem;
    box-shadow: var(--fse-shadow);
}
.ca-composition h3 {
    text-align: center;
    color: var(--fse-blue);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.ca-members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.ca-member-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--fse-gray-light);
    border-radius: 10px;
    border-left: 3px solid var(--fse-blue);
    transition: var(--fse-transition);
}
.ca-member-card:hover {
    background: white;
    box-shadow: var(--fse-shadow);
}
.ca-member-photo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--fse-gray-light);
    border: 2px solid var(--fse-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ca-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.ca-member-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ca-member-info h4 {
    font-size: 0.85rem;
    color: var(--fse-blue);
    font-weight: 600;
}
.ca-member-role {
    font-size: 0.8rem;
    color: var(--fse-gray);
    margin: 0;
}
.ca-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fse-blue);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .ca-members-grid { grid-template-columns: 1fr; }
}

/* ---- Organigramme ---- */
.orgchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2rem 0;
}
.org-level {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.org-connector {
    width: 2px;
    height: 24px;
    background: var(--fse-green);
    margin: 0 auto;
}
.org-node {
    background: white;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    box-shadow: var(--fse-shadow);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--fse-transition);
}
.org-node:hover {
    box-shadow: var(--fse-shadow-hover);
    transform: translateY(-2px);
}
.org-ca {
    background: var(--fse-blue);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
}
.org-admin {
    background: var(--fse-blue);
    color: white;
    font-weight: 600;
    border: 3px solid var(--fse-yellow);
}
.org-staff {
    border-left: 3px solid var(--fse-cyan);
    font-size: 0.85rem;
}
.org-direction {
    background: var(--fse-blue);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}
.org-division {
    font-size: 0.8rem;
    color: var(--fse-gray-dark);
    border-left: 3px solid var(--fse-green);
    padding: 0.5rem 1rem;
}
.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.org-sub-nodes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.org-level-4 {
    gap: 3rem;
}
@media (max-width: 768px) {
    .org-level { flex-direction: column; align-items: center; }
    .org-level-4 { gap: 2rem; }
    .org-node { font-size: 0.8rem; padding: 0.6rem 1rem; }
}

/* ---- Donnees & Graphes ---- */
/* Dashboard layout */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.dashboard-card {
    background: white;
    border-radius: var(--fse-radius);
    padding: 1.5rem;
    box-shadow: var(--fse-shadow);
    overflow: hidden;
    min-width: 0;
}
.dashboard-card h4 {
    color: var(--fse-blue);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: center;
}
.dashboard-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dashboard-mini-card {
    background: white;
    border-radius: var(--fse-radius);
    padding: 1rem;
    box-shadow: var(--fse-shadow);
    border-top: 4px solid var(--fse-blue);
    overflow: hidden;
    min-width: 0;
}
.dashboard-mini-card h5 {
    color: var(--fse-blue);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    text-align: center;
}
@media (max-width: 1024px) {
    .dashboard-row { grid-template-columns: 1fr; }
    .dashboard-row-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .dashboard-row-4 { grid-template-columns: 1fr; }
}
.data-table-container {
    margin-bottom: 1.5rem;
    position: relative;
}
.data-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: var(--fse-radius) var(--fse-radius) 0 0;
    box-shadow: var(--fse-shadow);
}
.data-table-header h4 {
    color: var(--fse-blue);
    font-size: 0.95rem;
    margin: 0;
}
.card-menu-btn-table {
    position: static;
    opacity: 0.6;
}
.card-menu-btn-table:hover {
    opacity: 1;
}
.data-table-scroll {
    overflow-x: auto;
    border-radius: var(--fse-radius);
    box-shadow: var(--fse-shadow);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.85rem;
}
.data-table thead th {
    background: var(--fse-blue);
    color: white;
    padding: 0.7rem 1rem;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}
.data-table thead th:first-child {
    text-align: left;
}
.data-table tbody td {
    padding: 0.6rem 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}
.data-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--fse-blue);
}
.data-table tbody tr:hover {
    background: var(--fse-gray-light);
}
.data-table tbody tr:nth-child(even) {
    background: #fafbfc;
}
.data-table tbody tr:nth-child(even):hover {
    background: var(--fse-gray-light);
}
.data-export-panel {
    background: white;
    border-radius: var(--fse-radius);
    padding: 1.5rem;
    box-shadow: var(--fse-shadow);
    border-top: 4px solid var(--fse-blue);
}
.data-export-panel h4 {
    color: var(--fse-blue);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}
.export-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.export-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fse-gray-dark);
}
.export-check {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--fse-gray-dark);
    cursor: pointer;
}
.export-check input[type="checkbox"] {
    accent-color: var(--fse-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.export-select-all {
    background: none;
    border: none;
    color: var(--fse-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.export-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.btn-export {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--fse-blue);
    border-radius: 6px;
    background: white;
    color: var(--fse-blue);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fse-transition);
}
.btn-export:hover:not(:disabled) {
    background: var(--fse-blue);
    color: white;
}
.btn-export:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #ccc;
    color: #aaa;
}
@media (max-width: 768px) {
    .data-tabs { gap: 0.3rem; }
    .data-tab { font-size: 0.75rem; padding: 0.5rem 0.8rem; }
}

/* ---- Card menu & context menu ---- */
.exportable {
    position: relative;
}
.card-menu-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--fse-gray);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--fse-transition);
    z-index: 2;
    opacity: 0.4;
}
.exportable:hover .card-menu-btn {
    opacity: 1;
}
.card-menu-btn:hover {
    background: var(--fse-gray-light);
    color: var(--fse-blue);
    opacity: 1;
}
.ctx-menu {
    display: none;
    position: fixed;
    z-index: 1000;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    padding: 0.4rem;
    min-width: 200px;
    border: 1px solid #e0e4ea;
}
.ctx-menu.visible {
    display: block;
}
.ctx-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.8rem;
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--fse-gray-dark);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--fse-transition);
    text-align: left;
}
.ctx-item:hover {
    background: var(--fse-gray-light);
    color: var(--fse-blue);
}
.ctx-item svg {
    flex-shrink: 0;
}

/* ---- Domaines d'intervention ---- */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.domain-card {
    background: white;
    border-radius: var(--fse-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--fse-shadow);
    text-align: center;
    transition: var(--fse-transition);
    border-top: 4px solid var(--fse-blue);
    position: relative;
}
.domain-card:hover {
    box-shadow: var(--fse-shadow-hover);
    transform: translateY(-4px);
}
.domain-compensation { border-top-color: var(--fse-yellow); }
.domain-pertes { border-top-color: var(--fse-orange); }
.domain-perequation { border-top-color: var(--fse-green); }
.domain-invest { border-top-color: var(--fse-cyan); }
.domain-icon {
    margin-bottom: 1rem;
}
.domain-card h3 {
    color: var(--fse-blue);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.domain-card p {
    color: var(--fse-gray-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.domain-stat {
    background: var(--fse-gray-light);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.domain-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--fse-blue);
}
.domain-stat-label {
    font-size: 0.75rem;
    color: var(--fse-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 1024px) {
    .domains-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .domains-grid { grid-template-columns: 1fr; }
}

/* ---- Carrieres / Rejoignez-nous ---- */
.careers-intro-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}
.careers-intro-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--fse-gray-dark);
    margin-bottom: 1.5rem;
}
.careers-values {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.career-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--fse-blue);
    font-size: 1rem;
}

/* Tabs */
.careers-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e4ea;
}
.careers-tab {
    padding: 0.8rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fse-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--fse-transition);
}
.careers-tab:hover {
    color: var(--fse-blue);
}
.careers-tab.active {
    color: var(--fse-blue);
    border-bottom-color: var(--fse-green);
}
.careers-tab-content {
    display: none;
}
.careers-tab-content.active {
    display: block;
}

/* Job listings */
.job-listings {
    max-width: 800px;
    margin: 0 auto;
}
.job-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--fse-gray);
    background: white;
    border-radius: var(--fse-radius);
    box-shadow: var(--fse-shadow);
}
.job-empty-state svg {
    margin-bottom: 1rem;
}
.job-empty-state p {
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}
.job-card {
    background: white;
    border-radius: var(--fse-radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--fse-shadow);
    margin-bottom: 1rem;
    border-left: 4px solid var(--fse-blue);
    transition: var(--fse-transition);
}
.job-card:hover {
    box-shadow: var(--fse-shadow-hover);
    transform: translateY(-2px);
}
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.job-title {
    font-size: 1.1rem;
    color: var(--fse-blue);
}
.job-badge {
    background: var(--fse-green);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.job-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.job-detail {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--fse-gray);
}
.job-desc {
    font-size: 0.9rem;
    color: var(--fse-gray-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.job-apply-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
}

/* Job apply form overlay */
.job-apply-form {
    max-width: 700px;
    margin: 1.5rem auto 0;
}
.job-apply-ref {
    color: var(--fse-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Form card (shared by job apply and spontaneous) */
.form-card {
    background: white;
    border-radius: var(--fse-radius);
    padding: 2rem;
    box-shadow: var(--fse-shadow);
    max-width: 700px;
    margin: 0 auto;
    border-top: 4px solid var(--fse-green);
}
.form-card h3 {
    color: var(--fse-blue);
    margin-bottom: 0.5rem;
}
.form-card p {
    color: var(--fse-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.form-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--fse-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}
.form-close-btn:hover {
    color: var(--fse-red);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fse-gray-dark);
    margin-bottom: 0.4rem;
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--fse-transition);
    background: var(--fse-gray-light);
}
.form-card input:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--fse-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(31, 64, 124, 0.1);
}
.form-card input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.85rem;
    border: 1.5px dashed #d0d5dd;
    border-radius: 8px;
    background: var(--fse-gray-light);
    cursor: pointer;
}
.form-card input[type="file"]:hover {
    border-color: var(--fse-blue);
}
.form-card button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
}
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .careers-tabs { flex-direction: column; align-items: stretch; }
    .careers-tab { text-align: center; }
}
