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

:root {
    --primary-color: #1a4d7a;
    --secondary-color: #2e7d9e;
    --accent-color: #d4af37;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video,
iframe,
canvas {
    max-width: 100%;
}

img {
    height: auto;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.btn,
button,
input,
select,
textarea {
    max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
label {
    overflow-wrap: anywhere;
}

/* Barre d'information supÃ©rieure */
.top-info-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d3a5c 100%);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 0.875rem;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-info-left,
.top-info-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.info-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    overflow-wrap: break-word;
    word-break: normal;
}

.info-link:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.info-link .icon {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .info-link {
        white-space: nowrap;
    }
}

/* Liens sociaux */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-info-faq {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    transition: var(--transition);
}

.top-info-faq:hover {
    color: var(--accent-color, #d4af37);
    background: rgba(255, 255, 255, 0.1);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.faq-item {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.faq-item > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color, #0b3d5c);
}

.faq-item > p {
    margin: 0.75rem 0 0;
    color: #334155;
    line-height: 1.55;
}

.faq-ask {
    background: #f7fafc;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
}

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

.social-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    padding: 0;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Responsive pour la barre d'information */
@media (max-width: 768px) {
    .top-info-bar {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .top-info-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .top-info-left,
    .top-info-right {
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .top-info-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-links {
        border: none;
        padding: 0;
        margin: 0;
        width: 100%;
        justify-content: center;
    }
    
    .info-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }
}

/* Header & Navigation â€” menu fixe sur toute l'application (vitrine incluse) */
.site-chrome {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    width: 100%;
    background: #fff;
}

/* Fallback HTML vitrine sans #siteChrome */
body.page-home > .top-info-bar,
body.page-public > .top-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1201;
    width: 100%;
}

body.page-home > .site-header,
body.page-public > .site-header {
    position: fixed;
    top: var(--top-info-bar-height, 42px);
    left: 0;
    right: 0;
    z-index: 1200;
    width: 100%;
}

.site-chrome .site-header,
header.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    top: auto;
    z-index: 1;
}

body.page-home > .site-header,
body.page-public > .site-header {
    background: var(--white);
    box-shadow: var(--shadow);
}

/* Espace sous le menu fixe (vitrine + plateforme) */
body.page-home,
body.page-platform,
body.page-public,
body.page-connexion,
body.page-learner-udemy {
    padding-top: var(--site-chrome-offset, 120px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    max-width: min(1400px, 100%);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.15rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

@media (min-width: 1201px) and (max-width: 1500px) {
    .nav-menu {
        gap: 0.65rem;
    }

    .nav-menu a {
        font-size: 0.82rem;
    }
}

.navbar {
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent-color);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.logo {
    position: relative;
}

.logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
    padding: 8px;
    z-index: 1002;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 45px;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    margin-top: 1rem;
}

.feature-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Vision Section */
.vision-section {
    padding: 100px 20px;
    background: var(--white);
}

.vision-content {
    max-width: 1000px;
    margin: 0 auto;
}

.vision-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #555;
    text-align: center;
    margin-bottom: 3rem;
}

.vision-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mission-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.mission-item p {
    color: #666;
    line-height: 1.8;
}

/* Recruitment Banner */
.recruitment-banner {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f4c430 100%);
    color: var(--white);
    text-align: center;
}

.banner-content {
    max-width: 900px;
    margin: 0 auto;
}

.banner-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.recruitment-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.recruitment-banner p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.banner-zones {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0d3a5c 0%, #1a4d7a 100%);
    color: var(--white);
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) minmax(240px, 1.1fr) minmax(240px, 1.1fr);
    gap: 2rem 2.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-tagline {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

.footer-site-title {
    margin: 0 0 0.35rem;
    min-height: 1.4em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.footer-site-title .icon {
    display: none;
}

.footer-phones {
    align-items: flex-start;
}

.footer-phones > span:last-child {
    line-height: 1.55;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-info-item {
    display: grid;
    grid-template-columns: 1.4rem 1fr;
    column-gap: 0.75rem;
    align-items: start;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.footer-info-item.footer-site-title {
    display: block;
    grid-template-columns: none;
}

.footer-info-item .icon {
    font-size: 1.05rem;
    color: var(--accent-color);
    width: 1.4rem;
    text-align: center;
    line-height: 1.55;
    margin-top: 0;
}

.footer-info-item a {
    color: #e0e0e0;
    text-decoration: none;
    transition: var(--transition);
    overflow-wrap: break-word;
    word-break: break-word;
}

.footer-info-item a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: #ccc;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    padding: 0.5rem 0;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo-section {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .footer-logo,
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo-section {
        grid-column: auto;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        align-items: stretch;
        text-align: left;
        max-width: 28rem;
        margin-inline: auto;
        width: 100%;
    }

    footer {
        padding: 30px 20px 20px;
    }
}

/* Page Content Styles — bandeau compact centré */
.page-header {
    background: #134066;
    color: var(--white);
    padding: 0.4rem 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--accent-color);
}

.page-header--inscription {
    padding: 1.75rem 20px 1.9rem;
    background: linear-gradient(135deg, #0d3a5c 0%, #134066 55%, #1a4d7a 100%);
    border-bottom: 3px solid var(--accent-color, #d4af37);
}

.page-header--inscription .page-header-brand {
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
}

.page-header--inscription h1 {
    font-size: clamp(1.45rem, 3.2vw, 1.9rem) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.page-header--inscription p:not(.page-header-brand) {
    margin-top: 0.55rem !important;
    font-size: 0.98rem !important;
    opacity: 0.9 !important;
    max-width: 36rem;
}

/* Titre intégré (sans bandeau) — page inscription */
.page-content--inscription {
    padding-top: 2.25rem;
}

.inscription-page-intro {
    margin: 0 0 2rem;
    max-width: 40rem;
}

.inscription-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color, #d4af37);
}

.inscription-page-title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-color, #1a4d7a);
    line-height: 1.2;
}

/* Formations : pas de bandeau navy CMS */
.page-formations .page-header {
    display: none !important;
}

.formations-page-intro {
    margin-bottom: 1.5rem;
}

.page-header::after {
    display: none;
}

.page-header-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    display: block;
    text-align: center;
}

.page-header-brand {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin: 0;
}

.page-header h1 {
    font-size: clamp(0.98rem, 1.8vw, 1.15rem);
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.page-header p {
    font-size: 0.78rem;
    opacity: 0.85;
    margin: 0.15rem auto 0;
    max-width: 52ch;
    line-height: 1.3;
    text-align: center;
}

.page-content {
    padding: 4rem 20px 5rem;
    background: linear-gradient(180deg, #fff 0%, #f4f7fa 100%);
}

.page-content h2 {
    color: var(--primary-color);
    margin: 2.5rem 0 1.25rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.page-content h3 {
    color: var(--primary-color);
    margin: 1.75rem 0 0.85rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #556;
    font-size: 1.02rem;
}

.page-content ul {
    margin-left: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-content ul li {
    margin-bottom: 0.55rem;
    color: #556;
}

/* Formation Sections */
.formation-section {
    margin-bottom: 2.5rem;
    background: transparent;
    border-radius: 0;
    padding: 2rem 0 2.5rem;
    box-shadow: none;
    border-bottom: 1px solid rgba(26, 77, 122, 0.12);
}

.formation-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.35);
}

.formation-icon {
    font-size: 4rem;
}

.formation-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
}

.formation-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.formation-body {
    line-height: 1.9;
}

.formation-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.highlight-item {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    color: #555;
}

.highlight-item strong {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.info-box {
    background: #fff;
    padding: 1.75rem;
    border-radius: 0;
    margin: 1.5rem 0;
    border: 1px solid rgba(26, 77, 122, 0.1);
    border-left: 3px solid var(--accent-color);
    box-shadow: none;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box ul {
    margin-top: 1rem;
}

.langues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.langue-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.langue-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.langue-card ul {
    list-style: none;
    margin: 0;
}

.langue-card li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.formation-list {
    list-style: none;
    margin: 1.5rem 0;
}

.formation-list li {
    padding: 1rem;
    background: var(--light-bg);
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.mission-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--secondary-color);
}

.mission-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.duration {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.module-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--light-bg);
    transition: var(--transition);
}

.module-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.module-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 4rem 0;
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

/* Recrutement Styles */
.alert-box {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.alert-info {
    background: #e3f2fd;
    border-color: var(--secondary-color);
    color: #1565c0;
}

.recruitment-section {
    margin-bottom: 4rem;
}

.postes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.poste-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.poste-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.poste-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.poste-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.poste-card ul {
    margin-top: 1rem;
    list-style: none;
}

.poste-card ul li {
    padding: 0.5rem 0;
    color: #666;
}

.poste-card ul li::before {
    content: 'âœ“ ';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.zone-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.zone-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.condition-card {
    display: flex;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.condition-number {
    background: var(--secondary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.condition-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.condition-note {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

.modules-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}

.module-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.avantage-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.avantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.avantage-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.candidature-box {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(26, 77, 122, 0.12);
    border-top: 3px solid var(--accent-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Ã€ Propos Styles */
.intro-box {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.intro-list {
    margin-top: 1.5rem;
    list-style: none;
}

.intro-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.intro-list li::before {
    content: 'âœ“';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.vision-mission-section {
    margin: 3rem 0;
}

.vm-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.vision-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vision-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vision-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.mission-items {
    margin-top: 2rem;
}

.mission-item-detailed {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.mission-number {
    background: var(--secondary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.organization-section {
    margin: 3rem 0;
}

.org-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.org-level {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.org-level:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.org-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.org-icon {
    font-size: 2.5rem;
}

.org-header h3 {
    color: var(--white);
    margin: 0;
}

.org-body {
    padding: 2rem;
}

.org-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stat-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.conventionnement-section {
    margin: 3rem 0;
}

.convention-box {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.convention-benefits {
    margin-top: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.values-section {
    margin: 3rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 2rem 1.75rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(26, 77, 122, 0.12);
    border-top: 3px solid var(--accent-color);
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 158, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.news-article,
.actualites-card {
    border: 1px solid rgba(26, 77, 122, 0.1);
    box-shadow: none;
    background: #fff;
}

.gallery-filters {
    gap: 0.65rem;
}

.filter-btn {
    border-radius: 999px;
    border: 1px solid rgba(26, 77, 122, 0.2);
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Header site (toutes pages publiques) */
body:not(.page-home) .site-header,
.site-header {
    backdrop-filter: saturate(1.2) blur(8px);
    background: rgba(255, 255, 255, 0.94);
}

.page-public .page-content > .container > *:first-child {
    margin-top: 0;
}

.page-public .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-public .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Boutons secondaires hors hero (fond clair) */
.page-content .btn-secondary,
.page-public .btn-secondary,
.formation-actions .btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.page-content .btn-secondary:hover,
.page-public .btn-secondary:hover,
.formation-actions .btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.page-content .btn-primary,
.formation-actions .btn-primary,
.contact-form .btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.page-content .btn-primary:hover,
.formation-actions .btn-primary:hover,
.contact-form .btn-primary:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Statistics Section */
.stats-section {
    padding: 100px 20px;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.stat-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* News/ActualitÃ©s Styles */
.news-article {
    display: flex;
    gap: 2rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.news-article:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    min-width: 100px;
    text-align: center;
}

.news-day {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.news-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.news-year {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}

.news-content {
    flex: 1;
}

.news-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.news-excerpt {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.news-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.news-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
}

.pagination-info {
    color: #666;
    font-weight: 500;
}

/* Partners Section */
.partners-section {
    margin: 3rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.partner-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.partner-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.partner-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.partner-card p {
    color: #666;
    line-height: 1.8;
}

/* Gallery Styles */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--light-bg);
    border: 2px solid #ddd;
    border-radius: 25px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.gallery-empty {
    text-align: center;
    padding: 3rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    color: #666;
}

.gallery-item.hidden {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design â€” liens dans hamburger ; CTAs restent visibles */
@media (max-width: 1200px) {
    body.menu-open {
        overflow: hidden;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        position: relative;
    }

    .navbar .container {
        position: relative;
        flex-wrap: nowrap;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--site-chrome-offset, 120px);
        flex: none;
        flex-direction: column;
        justify-content: flex-start;
        background: var(--white);
        width: 100vw;
        max-width: 100vw;
        margin-left: 0;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        border-radius: 0 0 10px 10px;
        padding: 1.25rem;
        gap: 1rem;
        z-index: 1199;
        max-height: calc(100dvh - var(--site-chrome-offset, 120px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-menu.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .features-grid,
    .mission-grid,
    .postes-grid,
    .zones-grid,
    .avantages-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn,
    .form-actions-row .btn,
    .contact-download-actions .btn,
    .index-cta-actions .btn,
    .filieres-header-actions .btn,
    .filieres-info-actions .btn,
    .formations-cta-actions .btn,
    .apropos-cta-actions .btn,
    .inscription-success-actions .btn {
        width: 100%;
        max-width: 340px;
    }

    .formation-header {
        flex-direction: column;
        text-align: center;
    }

    .condition-card {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mission-item-detailed {
        flex-direction: column;
        text-align: center;
    }

    .org-header {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 1.1rem;
    }

    .page-content > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .news-article {
        flex-direction: column;
    }

    .news-date {
        flex-direction: row;
        gap: 1rem;
        min-width: auto;
    }

    .news-day {
        font-size: 2rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .news-pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        justify-content: flex-start;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 20px;
    }
}

@media (max-width: 992px) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .hero {
        padding: 90px 16px;
    }

    .hero h1 {
        font-size: 3rem;
    }
    .page-header {
        padding: 0.35rem 16px;
    }

    .page-content {
        padding: 44px 16px;
    }

    .formation-section,
    .cta-box,
    .candidature-box,
    .vm-card,
    .actualite-detail-article {
        padding: 2rem;
    }

    .inscription-layout-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-actions-row,
    .actualite-detail-footer,
    .formation-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .actualite-detail-footer .btn,
    .formation-actions .btn,
    .form-actions-row .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.3rem;
        gap: 8px;
    }

    .logo img {
        width: 46px;
        height: 46px;
    }

    .hero {
        padding: 70px 12px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 1.05rem;
    }

    .contact-form,
    .formation-section,
    .info-box,
    .feature-card,
    .poste-card,
    .zone-card,
    .actualite-detail-article {
        padding: 1.25rem;
    }

    .inscription-payment-grid,
    .inscription-options-grid,
    .gallery-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.95rem;
    }

    .btn,
    button,
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 44px;
    }

    .recruitment-banner h2 {
        font-size: 1.5rem;
    }

    .recruitment-banner p {
        font-size: 1rem;
    }

    .banner-zones {
        font-size: 0.95rem;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 420px) {
    .container {
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
    }

    .top-info-left {
        gap: 0.3rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .hero {
        padding: 56px 10px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .page-header {
        padding: 0.35rem 14px;
        text-align: center;
    }

    .page-header-inner {
        text-align: center;
    }

    .page-header p {
        margin-left: auto;
        margin-right: auto;
    }

    .page-header h1 {
        font-size: 1rem;
        text-align: center;
    }

    .page-content {
        padding: 34px 10px;
    }

    .page-content h2 {
        font-size: 1.4rem;
    }

    .page-content h3 {
        font-size: 1.2rem;
    }

    .page-content ul {
        margin-left: 1.2rem;
    }

    .contact-form,
    .formation-section,
    .info-box,
    .feature-card,
    .poste-card,
    .zone-card,
    .actualite-detail-article,
    .candidature-box,
    .cta-box,
    .vm-card {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .formation-header h2 {
        font-size: 1.35rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1.1rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-box h2 {
        font-size: 1.35rem;
    }

    .inscription-formations-panel {
        padding: 0.75rem;
        max-height: 320px;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .top-info-bar {
        font-size: 0.7rem;
        padding: 0.4rem 0;
    }

    .info-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
    }

    .top-info-left {
        gap: 0.25rem;
    }

    .hero-buttons .btn,
    .index-cta-actions .btn,
    .filieres-header-actions .btn,
    .filieres-info-actions .btn,
    .formations-cta-actions .btn,
    .contact-download-actions .btn {
        max-width: 100%;
    }
}

/* filieres.html: moved inline styles */
.filieres-header-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filieres-features {
    margin-top: 2rem;
}

.filieres-info-box {
    margin-top: 3rem;
}

.filieres-info-list {
    margin-left: 2rem;
    margin-top: 1rem;
    line-height: 2;
}

.filieres-info-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* contact.html / apropos.html: moved inline styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info-stack {
    margin-top: 2rem;
}

.info-box-spaced {
    margin-top: 1.5rem;
}

.contact-link-clean {
    color: var(--primary-color);
    text-decoration: none;
}

.info-box-zones {
    background: #e3f2fd;
    border-left-color: var(--secondary-color);
}

.info-box-context {
    background: #fff3cd;
    border-left-color: var(--accent-color);
}

.paragraph-top-sm {
    margin-top: 0.5rem;
}

.contact-link-emphasis {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.form-message-box {
    display: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}

.btn-full-width {
    width: 100%;
}

.paragraph-y-md {
    margin: 1rem 0;
}

.contact-download-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.apropos-link-emphasis {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
}

.apropos-partner-box {
    margin-top: 2rem;
}

.apropos-contact-btn {
    margin-top: 1rem;
}

.apropos-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* formations.html / recrutement.html / galerie*.html / *_form.html */
.formation-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.formations-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.recrutement-apply-actions {
    text-align: center;
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.recrutement-apply-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
}

.recrutement-apply-btn-alt {
    background: var(--accent-color);
}

.gallery-empty-hidden {
    display: none;
}

.galerie-share-box {
    margin-top: 3rem;
    text-align: center;
}

.galerie-share-btn {
    margin-top: 1rem;
}

.gallery-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.form-page-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.form-section-title {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.form-section-title-first {
    margin-top: 0;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.form-hint-top {
    margin-top: 0.75rem;
}

.form-actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions-primary {
    flex: 1;
}

.form-actions-secondary-link {
    padding: 1rem 2rem;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
}

/* inscription.php / actualites.php / actualite_detail.php / index.html */
.inscription-success-alert {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.inscription-success-title {
    margin-top: 0;
    color: #155724;
}

.inscription-success-list {
    margin: 1rem 0;
    padding-left: 2rem;
}

.inscription-success-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.inscription-inline-btn {
    display: inline-block;
}

.inscription-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.inscription-info-stack {
    margin-top: 2rem;
}

.inscription-info-card {
    margin-bottom: 1.5rem;
}

.inscription-card-title {
    margin-top: 0;
}

.inscription-error-alert {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.inscription-optional-details {
    margin: 1.25rem 0 1.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f7fafc;
}

.inscription-optional-details > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color, #0b3d5c);
    list-style: none;
}

.inscription-optional-details > summary::-webkit-details-marker {
    display: none;
}

.inscription-optional-details > summary::before {
    content: '+ ';
    font-weight: 700;
}

.inscription-optional-details[open] > summary::before {
    content: '− ';
}

.inscription-optional-details[open] > summary {
    margin-bottom: 1rem;
}

.form-hint-inline {
    font-weight: 400;
    color: #64748b;
    font-size: 0.9em;
}

.inscription-formations-panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    background: #f9f9f9;
}

.inscription-category-block {
    margin-bottom: 1.5rem;
}

.inscription-category-title {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.inscription-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 0.5rem;
}

.inscription-option-label {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.inscription-option-label:hover {
    background: #e8f4f8;
}

.inscription-option-checkbox {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.inscription-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.inscription-payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.inscription-payment-option:hover {
    border-color: var(--primary-color);
    background: #f0f8ff;
}

.inscription-payment-radio {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.inscription-payment-title {
    display: block;
    margin-bottom: 0.25rem;
}

.inscription-payment-desc {
    color: #666;
    font-size: 0.85rem;
}

.inscription-file-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.actualites-empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.actualites-empty-title {
    font-size: 1.2rem;
    color: #666;
}

.actualites-empty-subtitle {
    margin-top: 1rem;
    color: #999;
}

.actualites-card-image-wrap {
    margin: 0.75rem 0 1rem;
}

.actualites-card-image {
    max-width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

.actualites-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.actualites-link-wrap {
    margin-top: 1rem;
}

.actualite-detail-article {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.actualite-detail-image-wrap {
    margin-bottom: 2rem;
    text-align: center;
}

.actualite-detail-image {
    max-width: 100%;
    border-radius: 10px;
}

.actualite-detail-category-wrap {
    margin-bottom: 1.5rem;
}

.actualite-detail-category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.actualite-detail-content {
    line-height: 1.9;
    font-size: 1.1rem;
    color: #555;
    white-space: pre-wrap;
}

.actualite-detail-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.actualite-detail-meta {
    color: #666;
    font-size: 0.9rem;
}

.index-mission-title {
    margin-top: 4rem;
}

.index-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.paiement-step-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.paiement-summary-box {
    margin-bottom: 1.5rem;
}

/* ========== Accueil â€” Design raffinÃ© ========== */
:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
}

.page-home {
    --home-ink: #102a43;
    --home-panel: #ffffff;
    --home-soft: #f3f6f9;
}

.page-home .site-header {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.08);
}

.hero-home {
    min-height: calc(100vh - var(--site-chrome-offset, 110px));
    min-height: calc(100dvh - var(--site-chrome-offset, 110px));
    display: flex;
    align-items: center;
    padding: 0;
    text-align: left;
    background: none;
    position: relative;
    overflow: hidden;
    /* Coller le hero sous le menu fixe sans trou */
    margin-top: calc(-1 * var(--site-chrome-offset, 120px));
    padding-top: var(--site-chrome-offset, 120px);
    box-sizing: border-box;
}

.hero-home::before { display: none; }

.hero-home-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 85% 40%, rgba(212, 175, 55, 0.22), transparent 55%),
        linear-gradient(135deg, #0d3a5c 0%, var(--primary-color) 42%, var(--secondary-color) 100%);
    z-index: 0;
}

.hero-home-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0H0V60' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 1;
    animation: homeGridDrift 28s linear infinite;
}

@keyframes homeGridDrift {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

.hero-home-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.hero-home-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mark {
    width: min(280px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: homeMarkIn 1s ease 0.2s both, homeMarkFloat 6s ease-in-out 1.2s infinite;
}

.hero-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.hero-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem) !important;
    font-weight: 600 !important;
    margin: 0 0 0.75rem !important;
    line-height: 1.25 !important;
    color: #fff !important;
    max-width: 22ch;
    animation: fadeInUp 0.85s ease 0.08s both;
}

.hero-brand {
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 0.95;
    color: var(--accent-color);
    margin: 0 0 1.15rem;
    animation: fadeInUp 0.7s ease both;
}

.hero-lede {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 36ch;
    margin: 0 0 2rem;
    animation: fadeInUp 1s ease 0.16s both;
}

.hero-home .hero-buttons {
    justify-content: flex-start;
    gap: 0.85rem;
    animation: fadeInUp 1.1s ease 0.24s both;
}

.hero-home .btn-primary {
    background: #fff;
    color: var(--primary-color);
    border-radius: 999px;
    padding: 0.9rem 1.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-home .btn-primary:hover {
    background: var(--accent-color);
    color: #102a43;
    transform: translateY(-2px);
}

.hero-home .btn-secondary {
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    padding: 0.9rem 1.6rem;
}

.hero-home .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    text-decoration: none;
}

.hero-scroll span {
    width: 4px;
    height: 10px;
    border-radius: 4px;
    background: var(--accent-color);
    animation: homeScrollPulse 1.6s ease-in-out infinite;
}

@keyframes homeMarkIn {
    from { opacity: 0; transform: scale(0.88) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes homeMarkFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes homeScrollPulse {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

.section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9a7b2f;
    margin-bottom: 0.65rem;
}

.section-kicker--light { color: #d4af37; }

.page-home .section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 600;
    margin-bottom: 0.85rem;
    color: var(--home-ink);
}

.page-home .section-intro {
    max-width: 560px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.page-home .section-lead {
    margin: 0;
    color: #5b6b7c;
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-lead--left {
    text-align: left;
    max-width: 36ch;
}

.home-section { padding: 5rem 20px; }

.home-domains-section {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 60%),
        linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
    position: relative;
}

.home-domains-section .section-intro {
    margin-bottom: 3rem;
}

.home-domains {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.home-domain {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    min-height: 200px;
    padding: 1.9rem 1.7rem 1.7rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(16, 42, 67, 0.06);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(16, 42, 67, 0.05);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-domain::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f2d27a, #d4af37);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-domain:hover,
.home-domain:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 22px 48px rgba(16, 42, 67, 0.12);
    outline: none;
}

.home-domain:hover::before,
.home-domain:focus-visible::before {
    opacity: 1;
}

.home-domain-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #143f63;
    background: linear-gradient(145deg, #f7e7a8, #d4af37);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.28);
    margin-bottom: 0;
    flex-shrink: 0;
}

.home-domain-copy {
    flex: 1;
}

.home-domain h3 {
    font-family: var(--font-display);
    color: var(--home-ink);
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.home-domain p {
    color: #617284;
    font-size: 0.93rem;
    margin: 0;
    line-height: 1.6;
}

.home-domain-go {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9a7b2f;
}

.home-domain-go::after {
    content: 'â†’';
    transition: transform 0.25s ease;
}

.home-domain:hover .home-domain-go::after,
.home-domain:focus-visible .home-domain-go::after {
    transform: translateX(4px);
}

.home-domain-go::before {
    content: 'DÃ©couvrir';
}

.home-vision { background: #fff; padding-top: 4.5rem; padding-bottom: 4.5rem; }

.home-vision-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.home-mission-row {
    display: grid;
    gap: 1rem;
}

.home-mission {
    padding: 1.25rem 1.35rem;
    border-left: 3px solid #d4af37;
    background: var(--home-soft);
    border-radius: 0 14px 14px 0;
}

.home-mission h3 {
    color: var(--home-ink);
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
}

.home-mission p {
    color: #5b6b7c;
    margin: 0;
    line-height: 1.55;
    font-size: 0.95rem;
}

.home-stats {
    background: var(--home-ink);
    color: #fff;
    padding: 3.25rem 20px;
}

.home-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.home-stat-num {
    display: block;
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--accent-color);
    line-height: 1;
}

.home-stat-label {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.home-recruit {
    background: var(--home-soft);
    padding: 4rem 20px;
}

.home-recruit-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: #143f63;
    color: #fff;
    border-radius: 24px;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 24px 50px rgba(16, 42, 67, 0.18);
}

.home-recruit-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 600;
    margin: 0 0 0.55rem;
    color: #fff;
}

.home-recruit-panel p {
    margin: 0;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.home-recruit-panel .btn-primary {
    background: #f2d27a;
    color: #102a43;
    border-radius: 999px;
    white-space: nowrap;
}

.home-recruit-panel .btn-primary:hover {
    background: #fff;
    color: #102a43;
}

.home-cta {
    text-align: center;
    padding: 4.5rem 20px 5rem;
    background: #fff;
}

.home-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    color: var(--home-ink);
    margin-bottom: 0.65rem;
}

.home-cta p {
    color: #5b6b7c;
    margin-bottom: 0;
}

.index-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.home-cta .btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-radius: 999px;
}

.home-cta .btn-secondary {
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 999px;
    background: transparent;
}

.home-cta .btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.page-home .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.page-home .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 960px) {
    .hero-home-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 3rem;
        padding-bottom: 4.5rem;
    }

    .hero-headline { max-width: none; margin-left: auto !important; margin-right: auto !important; }
    .hero-lede { margin-left: auto; margin-right: auto; }
    .hero-home .hero-buttons { justify-content: center; }
    .hero-mark { width: min(200px, 55vw); order: -1; }
    .hero-home-visual { order: -1; }

    .home-domains { grid-template-columns: 1fr 1fr; }
    .home-vision-grid { grid-template-columns: 1fr; }
    .section-lead--left { text-align: center; max-width: none; margin: 0 auto; }
    .home-vision-copy { text-align: center; }
    .home-stats-strip { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .home-recruit-panel { flex-direction: column; text-align: center; padding: 2rem; }
    .home-recruit-panel p { max-width: none; }
}

@media (max-width: 600px) {
    .hero-home {
        min-height: calc(100vh - 140px);
        min-height: calc(100dvh - 140px);
    }

    .home-domains,
    .home-stats-strip { grid-template-columns: 1fr; }
    .hero-scroll { display: none; }
}

/* Pages publiques â€” en-tÃªte compact (Ã©vite le double override) */
.page-header-brand {
    font-family: var(--font-display);
    letter-spacing: 0.22em;
    color: #f2d27a;
}

.page-header h1 {
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    letter-spacing: 0.01em;
}

.page-header {
    padding: 1.35rem 20px 1.5rem;
}

.page-header p {
    font-size: 0.95rem;
    margin-top: 0.45rem;
    max-width: 42rem;
    line-height: 1.45;
    opacity: 0.92;
}

.formation-icon {
    display: none;
}

.formation-header {
    align-items: flex-start;
}

.page-content {
    background: #f7f9fb;
}

.contact-form,
.candidature-box {
    border-radius: 16px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-top: 3px solid #d4af37;
    box-shadow: 0 12px 30px rgba(16, 42, 67, 0.05);
}

/* ========== Page Formations ========== */
.page-formations {
    --form-ink: #102a43;
    --form-soft: #f3f6f9;
    --form-muted: #5b6b7c;
    --form-gold: #d4af37;
    --form-gold-soft: #f2d27a;
}

.page-formations .form-hero {
    padding: 0.4rem 20px;
    text-align: center;
}

.page-formations .form-hero h1 {
    font-family: inherit;
    font-weight: 600;
    font-size: clamp(0.98rem, 1.8vw, 1.15rem);
    letter-spacing: normal;
    text-align: center;
}

.page-formations .form-hero p {
    display: none;
}

.form-hero-line {
    display: none;
}

.form-jump {
    position: sticky;
    top: var(--site-chrome-offset, 120px);
    z-index: 90;
    background: rgba(247, 249, 251, 0.92);
    border-bottom: 1px solid rgba(16, 42, 67, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.04);
}

.form-jump-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.9rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.form-jump-inner::-webkit-scrollbar {
    display: none;
}

.form-jump a {
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--form-ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 42, 67, 0.1);
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.04);
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    white-space: nowrap;
}

.form-jump a:hover,
.form-jump a:focus-visible {
    background: #fff;
    border-color: rgba(212, 175, 55, 0.65);
    color: var(--form-ink);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 42, 67, 0.08);
    outline: none;
}

.form-jump a.is-active {
    background: linear-gradient(135deg, #0a2740 0%, #143f63 100%);
    border-color: transparent;
    color: var(--form-gold-soft);
    box-shadow: 0 8px 20px rgba(16, 42, 67, 0.22);
    transform: translateY(-1px);
}

.page-formations .form-page {
    padding: 2rem 20px 4.5rem;
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(212, 175, 55, 0.07), transparent 55%),
        linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
}

.page-formations .form-page > .container {
    max-width: 860px;
}

.page-formations .form-block {
    display: none;
    padding: 0;
    border-bottom: none;
    scroll-margin-top: 140px;
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(16, 42, 67, 0.07);
    box-shadow: 0 18px 50px rgba(16, 42, 67, 0.07);
    overflow: hidden;
}

.page-formations .form-block.is-active {
    display: block;
    animation: formPanelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-formations .form-block::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #c9a227, #f2d27a 45%, #143f63);
}

@keyframes formPanelIn {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

.form-block-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    margin: 0;
    padding: 1.85rem 2rem 1.25rem;
    background: linear-gradient(180deg, rgba(243, 246, 249, 0.85) 0%, #fff 100%);
    border-bottom: 1px solid rgba(16, 42, 67, 0.06);
}

.form-index {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #143f63;
    line-height: 1;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #f2d27a, #d4af37);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.form-block-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 600;
    color: var(--form-ink);
    margin: 0 0 0.3rem !important;
    line-height: 1.15;
}

.form-kicker {
    margin: 0 !important;
    font-size: 0.88rem !important;
    font-weight: 500;
    color: var(--form-muted) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-block-body {
    padding: 1.5rem 2rem 2rem;
}

.form-lead {
    font-size: 1.08rem !important;
    color: var(--form-muted) !important;
    line-height: 1.75 !important;
    max-width: 58ch;
    margin-bottom: 1.6rem !important;
}

.form-points {
    list-style: none;
    margin: 0 0 1.75rem !important;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-points li {
    position: relative;
    margin: 0 !important;
    padding: 0.85rem 1rem 0.85rem 2.35rem;
    color: var(--form-ink) !important;
    font-size: 0.93rem;
    font-weight: 500;
    background: var(--form-soft);
    border-radius: 12px;
    border: 1px solid rgba(16, 42, 67, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-points li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16, 42, 67, 0.06);
}

.form-points li::before {
    content: '';
    position: absolute;
    left: 0.9rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: -0.275rem;
    border-radius: 50%;
    background: var(--form-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-aside {
    background: linear-gradient(135deg, #0f2f4a 0%, #143f63 55%, #1a5678 100%);
    color: #fff;
    border-left: none;
    border-radius: 16px;
    padding: 1.5rem 1.65rem;
    margin: 0 0 1.85rem;
    box-shadow: 0 14px 32px rgba(16, 42, 67, 0.18);
    position: relative;
    overflow: hidden;
}

.form-aside::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(242, 210, 122, 0.12);
    pointer-events: none;
}

.form-aside h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--form-gold-soft);
    margin: 0 0 0.6rem !important;
    position: relative;
}

.form-aside p {
    margin-bottom: 0.65rem !important;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.88) !important;
    position: relative;
}

.form-aside p:last-child {
    margin-bottom: 0 !important;
}

.form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.form-split > div {
    padding: 1.25rem 1.35rem;
    background: var(--form-soft);
    border-radius: 16px;
    border: 1px solid rgba(16, 42, 67, 0.05);
}

.form-split h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 0.85rem !important;
    color: var(--form-ink);
    padding-bottom: 0.55rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.45);
}

.form-list-clean {
    list-style: none;
    margin: 0 0 1.5rem !important;
    padding: 0;
}

.form-list-clean li {
    margin: 0 !important;
    padding: 0.75rem 0 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
    color: var(--form-ink) !important;
    font-size: 0.98rem;
    position: relative;
}

.form-list-clean li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--form-gold);
}

.form-list-clean li:last-child {
    border-bottom: none;
}

.form-list-clean--wide {
    max-width: none;
    background: var(--form-soft);
    border-radius: 16px;
    padding: 0.35rem 1.25rem !important;
    border: 1px solid rgba(16, 42, 67, 0.05);
}

.form-tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.form-track {
    padding: 1.2rem 1.25rem;
    border-top: none;
    background: var(--form-soft);
    border-radius: 16px;
    border: 1px solid rgba(16, 42, 67, 0.05);
    border-left: 3px solid var(--form-gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-track:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
    background: #fff;
}

.form-track-meta {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a6d24;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.55rem;
    background: rgba(212, 175, 55, 0.18);
    border-radius: 999px;
}

.form-track h3 {
    font-family: var(--font-display);
    font-size: 1.22rem;
    margin: 0 0 0.4rem !important;
    color: var(--form-ink);
}

.form-track p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: var(--form-muted) !important;
    line-height: 1.55;
}

.form-modules {
    list-style: none;
    margin: 0 0 1.75rem !important;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.form-modules li {
    margin: 0 !important;
    padding: 1rem 1.1rem;
    border-left: none;
    background: var(--form-soft);
    border-radius: 14px;
    border: 1px solid rgba(16, 42, 67, 0.05);
    border-top: 3px solid rgba(212, 175, 55, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-modules li:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(16, 42, 67, 0.07);
    background: #fff;
}

.form-modules strong {
    display: block;
    font-size: 0.98rem;
    color: var(--form-ink);
    margin-bottom: 0.25rem;
}

.form-modules span {
    font-size: 0.86rem;
    color: var(--form-muted);
}

.page-formations .formation-actions {
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.page-formations .formation-actions .btn {
    border-radius: 999px;
    padding: 0.9rem 1.65rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(16, 42, 67, 0.1);
}

.page-formations .formation-actions .btn-primary {
    background: linear-gradient(135deg, #143f63, #1a5678);
    color: #fff;
}

.page-formations .formation-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0a2740, #143f63);
    transform: translateY(-2px);
}

.page-formations .formation-actions .btn-secondary {
    box-shadow: none;
}

.form-cta {
    margin-top: 1.75rem;
    padding-top: 0.25rem;
}

.form-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(242, 210, 122, 0.18), transparent 50%),
        linear-gradient(125deg, #0a2740 0%, #143f63 55%, #1f6f8f 100%);
    color: #fff;
    border-radius: 24px;
    padding: 2.35rem 2.6rem;
    box-shadow: 0 22px 48px rgba(16, 42, 67, 0.2);
}

.form-cta-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 600;
    color: #fff !important;
    margin: 0 0 0.45rem !important;
}

.form-cta-panel p {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    max-width: 40ch;
}

.form-cta-panel .btn-primary {
    background: var(--form-gold-soft);
    color: #102a43;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.form-cta-panel .btn-primary:hover {
    background: #fff;
    color: #102a43;
}

.form-cta-panel .btn-secondary {
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    background: transparent;
}

.form-cta-panel .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.form-cta-panel .formations-cta-actions {
    margin-top: 0;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .form-jump {
        top: 64px;
    }

    .form-block-head,
    .form-block-body {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    .form-points,
    .form-split,
    .form-tracks,
    .form-modules {
        grid-template-columns: 1fr;
    }

    .form-cta-panel {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .form-cta-panel p {
        max-width: none;
    }

    .form-cta-panel .formations-cta-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .page-formations .form-block.is-active {
        border-radius: 18px;
    }

    .form-block-head {
        gap: 0.9rem;
        padding-top: 1.4rem;
        padding-bottom: 1rem;
    }

    .form-index {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1.15rem;
    }

    .form-block-body {
        padding-top: 1.2rem;
        padding-bottom: 1.5rem;
    }
}

/* ========== FiliÃ¨res & Formations (menu gauche + panneau dÃ©tail) ========== */
.page-filieres,
.page-formations {
    --fil-ink: #102a43;
    --fil-muted: #5b6b7c;
    --fil-soft: #f3f6f9;
}

/* Formations / FiliÃ¨res : mÃªme bandeau que Recrutement et les autres pages */
.page-filieres .page-header,
.page-formations .page-header {
    text-align: center;
}

.page-filieres .page-header h1,
.page-formations .page-header h1 {
    font-family: inherit;
    font-weight: 600;
    font-size: clamp(0.98rem, 1.8vw, 1.15rem);
    text-align: center;
    margin: 0;
}

.page-filieres .page-header p,
.page-formations .page-header p {
    display: none;
}

.page-filieres .fil-hero,
.page-formations .fil-hero {
    /* alias Ã©ventuel ancien markup */
    text-align: center;
}

.fil-page {
    padding: 1rem 0 3rem !important;
    background: #f7f9fb !important;
}

.fil-split {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 1rem;
    align-items: start;
    max-width: 1120px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.fil-menu {
    position: sticky;
    top: calc(var(--site-chrome-offset, 120px) + 0.75rem);
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    box-shadow: none;
    padding: 0.75rem 0.55rem;
}

.fil-menu-title {
    margin: 0 0.65rem 0.75rem !important;
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9a7b2f !important;
}

.fil-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fil-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    color: var(--fil-ink);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fil-menu-btn:hover,
.fil-menu-btn:focus-visible {
    background: var(--fil-soft);
    outline: none;
}

.fil-menu-btn.is-active {
    background: linear-gradient(135deg, #0a2740, #143f63);
    color: #f2d27a;
    box-shadow: 0 8px 20px rgba(16, 42, 67, 0.18);
}

.fil-menu-num {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.85;
}

.fil-menu-btn.is-active .fil-menu-num {
    color: #f2d27a;
}

.fil-menu-text {
    line-height: 1.3;
}

.fil-detail {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(16, 42, 67, 0.07);
    box-shadow: 0 16px 40px rgba(16, 42, 67, 0.06);
    min-height: 320px;
    overflow: hidden;
    position: relative;
}

.fil-detail::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #c9a227, #f2d27a 50%, #143f63);
}

.fil-panel {
    display: none;
    padding: 0;
    animation: filPanelIn 0.35s ease;
}

.fil-panel.is-active {
    display: block;
}

.fil-panel-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    min-height: 280px;
    align-items: stretch;
}

.fil-panel-copy {
    padding: 1.15rem 1.2rem 1.25rem 1.35rem;
}

.fil-panel-media {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: #0a2740;
    min-height: 100%;
    min-width: 0;
}

.fil-slider-track {
    position: absolute;
    inset: 0;
}

.fil-panel-media img,
.fil-slider-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

.fil-slider-track img.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.fil-panel-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 42, 67, 0.12), transparent 40%);
    pointer-events: none;
    z-index: 2;
}

.fil-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 3;
}

.fil-slider-dots button {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
}

.fil-slider-dots button.is-active {
    background: #f2d27a;
    transform: scale(1.2);
}

@keyframes filMediaIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes filPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.fil-item-label {
    margin: 0 0 0.35rem !important;
    font-size: 0.78rem !important;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a7b2f !important;
}

.fil-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600;
    color: var(--fil-ink);
    margin: 0 0 0.85rem !important;
    line-height: 1.2;
}

.fil-lead {
    color: var(--fil-muted) !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    max-width: 48ch;
    margin-bottom: 1.35rem !important;
}

.fil-subhead {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fil-ink);
    margin: 1.1rem 0 0.65rem !important;
}

.fil-details {
    margin: 0 0 0.75rem;
    border: 1px solid rgba(16, 42, 67, 0.1);
    border-radius: 12px;
    background: var(--fil-soft);
    padding: 0.15rem 0.95rem 0.85rem;
}

.fil-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--fil-ink);
    padding: 0.75rem 0 0.35rem;
    list-style: none;
}

.fil-details summary::-webkit-details-marker {
    display: none;
}

.fil-details summary::before {
    content: '+';
    display: inline-block;
    width: 1.1em;
    color: #9a7b2f;
    font-weight: 700;
}

.fil-details[open] summary::before {
    content: '–';
}

.fil-details p {
    margin: 0.25rem 0 0 !important;
    color: var(--fil-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.fil-tags {
    list-style: none;
    margin: 0 0 1.6rem !important;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.fil-tags li {
    margin: 0 !important;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--fil-ink) !important;
    background: var(--fil-soft);
    border-radius: 999px;
    border: 1px solid rgba(16, 42, 67, 0.06);
}

.fil-note {
    background: linear-gradient(135deg, #0f2f4a 0%, #143f63 55%, #1a5678 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin: 0 0 1.5rem;
}

.fil-note h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #f2d27a;
    margin: 0 0 0.45rem !important;
}

.fil-note p {
    margin: 0 !important;
    font-size: 0.92rem !important;
    color: rgba(255, 255, 255, 0.88) !important;
    line-height: 1.6;
}

.fil-note-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.35rem;
}

.fil-note-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f2f4a, #143f63);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    line-height: 1.3;
    border: 1px solid rgba(242, 210, 122, 0.28);
}

.fil-note-chip strong {
    color: #f2d27a;
    font-weight: 600;
}

.fil-tracks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 0 0 1.5rem;
}

.fil-track-card {
    padding: 0.85rem 0.95rem;
    background: var(--fil-soft);
    border-radius: 12px;
    border: 1px solid rgba(16, 42, 67, 0.06);
    border-left: 3px solid #d4af37;
}

.fil-track-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fil-ink);
    margin: 0 0 0.25rem !important;
    line-height: 1.25;
}

.fil-track-card p {
    margin: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9a7b2f !important;
}

@media (max-width: 520px) {
    .fil-tracks-grid {
        grid-template-columns: 1fr;
    }
}

.fil-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-filieres .fil-item-actions .btn,
.page-formations .fil-item-actions .btn {
    border-radius: 999px;
    padding: 0.8rem 1.45rem;
}

.page-filieres .fil-item-actions .btn-primary,
.page-formations .fil-item-actions .btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.page-filieres .fil-item-actions .btn-primary:hover,
.page-formations .fil-item-actions .btn-primary:hover {
    background: var(--secondary-color);
}

.page-filieres .fil-item-actions .btn-secondary,
.page-formations .fil-item-actions .btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.page-filieres .fil-item-actions .btn-secondary:hover,
.page-formations .fil-item-actions .btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.fil-page > .container:not(.fil-split) {
    max-width: 1120px;
}

.fil-footer-cta {
    margin-top: 0.5rem;
    padding: 2.25rem 2rem;
    background: linear-gradient(125deg, #0a2740 0%, #143f63 60%, #1f6f8f 100%);
    border-radius: 20px;
    color: #fff;
}

.fil-footer-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff !important;
    margin: 0 0 0.45rem !important;
}

.fil-footer-cta > p {
    color: rgba(255, 255, 255, 0.82) !important;
    margin-bottom: 1.35rem !important;
}

.fil-footer-cta .btn-primary {
    background: #f2d27a;
    color: #102a43;
}

.fil-footer-cta .btn-primary:hover {
    background: #fff;
    color: #102a43;
}

.fil-footer-cta .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
}

.fil-footer-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (max-width: 860px) {
    .fil-split {
        grid-template-columns: 1fr;
    }

    .fil-menu {
        position: static;
        padding: 1rem;
    }

    .fil-menu-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .fil-menu-btn {
        padding: 0.65rem 0.7rem;
        font-size: 0.82rem;
    }

    .fil-panel-grid {
        grid-template-columns: 1fr;
    }

    .fil-panel-media {
        min-height: 220px;
        order: -1;
    }

    .fil-panel-media img {
        position: absolute;
    }
}

@media (max-width: 700px) {
    .page-filieres .fil-hero,
    .page-formations .fil-hero {
        text-align: center;
    }

    .page-filieres .fil-hero .page-header-inner,
    .page-formations .fil-hero .page-header-inner {
        text-align: center;
    }

    .page-filieres .fil-hero h1,
    .page-formations .fil-hero h1 {
        text-align: center;
    }

    .fil-menu-list {
        grid-template-columns: 1fr;
    }

    .fil-panel-copy {
        padding: 1.4rem 1.25rem 1.5rem;
    }

    .fil-panel {
        padding: 0;
    }

    .fil-footer-cta {
        text-align: center;
    }

    .fil-footer-cta .fil-item-actions {
        justify-content: center;
    }
}

/* =========================================================
   Adaptation tous Ã©crans (tÃ©lÃ©phone, tablette, laptop, TV)
   ========================================================= */

html {
    overflow-x: hidden;
}

[class*="-grid"] > *,
.footer-content > *,
.hero-home-inner > *,
.fil-split > *,
.inscription-layout-grid > *,
.contact-grid > *,
.home-vision-grid > *,
.home-domain,
.stat-card,
.feature-card {
    min-width: 0;
    max-width: 100%;
}

.page-content table,
.formation-section table,
.actualite-detail-article table,
table.data-table,
.kpi-mini-table {
    width: 100%;
    border-collapse: collapse;
}

.table-scroll,
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1800px) {
    .container {
        max-width: 1480px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 3vw, 3.6rem);
    }
}

@media (max-width: 992px) {
    .home-domains,
    .home-stats-strip {
        grid-template-columns: 1fr 1fr;
    }

    .home-vision-grid,
    .inscription-layout-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .features-grid,
    .mission-grid,
    .postes-grid,
    .zones-grid,
    .avantages-grid,
    .stats-grid,
    .partners-grid,
    .gallery-grid,
    .news-grid,
    .inscription-options-grid,
    .inscription-payment-grid,
    .home-domains,
    .home-stats-strip,
    .home-vision-grid,
    .fil-split,
    .fil-menu-list,
    .fil-panel-grid,
    .contact-grid,
    .inscription-layout-grid,
    .form-row,
    .footer-content {
        grid-template-columns: 1fr !important;
    }

    .hero-home .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-home .hero-buttons .btn,
    .hero-buttons .btn {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .hero-headline {
        max-width: none;
    }

    .gallery-filters,
    .filieres-header-actions,
    .filieres-info-actions,
    .formations-cta-actions,
    .apropos-cta-actions,
    .contact-download-actions,
    .index-cta-actions {
        justify-content: stretch;
    }

    input,
    select,
    textarea,
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .logo span {
        font-size: 1.15rem;
    }

    .hero-brand {
        font-size: clamp(2.1rem, 16vw, 3rem);
    }

    .btn {
        padding: 12px 14px;
    }

    .top-info-bar {
        font-size: 0.68rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero,
    .hero-home {
        min-height: auto;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .hero-home-inner {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
        gap: 1rem;
    }

    .hero-mark {
        width: min(120px, 28vw);
    }

    .page-header,
    .fil-hero {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .hero-scroll {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .nav-menu a,
    .btn,
    .filter-btn,
    .info-link,
    .hamburger,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .social-link {
        min-height: 44px;
    }

    .feature-card:hover,
    .mission-item:hover,
    .btn:hover {
        transform: none;
    }
}

/* Espace apprenant (mon-compte.php) */
.learner-dossier-card {
    max-width: 52rem;
    margin: 0 auto;
}

.learner-dossier-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.learner-dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.learner-dossier-details {
    margin-bottom: 1rem;
}

.learner-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.learner-detail-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.learner-detail-list li:last-child {
    border-bottom: none;
}

.learner-status {
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0.25rem 0 0.75rem;
}

.learner-status--acceptee,
.learner-status--pay-paid {
    color: #1a7f37;
}

.learner-status--en_attente,
.learner-status--pending {
    color: #b45309;
}

.learner-status--refusee,
.learner-status--annulee,
.learner-status--pay-failed,
.learner-status--pay-cancelled {
    color: #b91c1c;
}

.learner-readonly-note {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    margin-top: 1rem;
}

.learner-login-box {
    max-width: 28rem;
    margin: 0 auto;
}

.learner-login-form {
    margin-top: 1rem;
}

.learner-auth-panel {
    max-width: 34rem;
    margin: 0 auto 2rem;
}

.learner-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
    background: rgba(15, 76, 129, 0.06);
    border-radius: 14px;
}

.learner-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: transparent;
    color: #0f4c81;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.learner-tab:hover {
    background: rgba(15, 76, 129, 0.08);
    color: #0f4c81;
}

.learner-tab.is-active {
    background: #fff;
    color: #0f4c81;
    box-shadow: 0 4px 14px rgba(12, 45, 74, 0.1);
}

.learner-auth-page-header {
    padding: 1.35rem 20px 1.5rem;
}

.learner-auth-page-header .page-header-inner {
    text-align: center;
}

.learner-auth-page-header h1 {
    font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
}

.learner-auth-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f2d27a;
}

.learner-auth-page-lede {
    margin: 0.55rem auto 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem !important;
    line-height: 1.5;
    opacity: 1 !important;
}

.learner-auth-card {
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 18px;
    padding: 1.5rem 1.45rem 1.35rem;
    box-shadow: 0 16px 40px rgba(12, 45, 74, 0.08);
}

.learner-auth-card-head {
    margin-bottom: 1.15rem;
}

.learner-auth-badge {
    display: inline-block;
    margin: 0 0 0.65rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #f7f0dc;
    color: #7c5a08;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.learner-auth-badge--warn {
    background: #fff4e5;
    color: #9a5b00;
}

.learner-auth-card-head h2 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    color: #0f4c81;
    line-height: 1.25;
}

.learner-auth-card-head p {
    margin: 0;
    color: #5b6b7c;
    font-size: 0.95rem;
    line-height: 1.5;
}

.learner-auth-points {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f4f8fb;
    border: 1px solid #e4ecf3;
}

.learner-auth-points li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.35rem;
    color: #33485c;
    font-size: 0.9rem;
    line-height: 1.4;
}

.learner-auth-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a4d7a, #d4af37);
}

.learner-auth-note {
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff8eb;
    border: 1px solid #f0dfb8;
    color: #6b5320;
    font-size: 0.88rem;
    line-height: 1.45;
}

.learner-auth-form .form-group {
    margin-bottom: 1rem;
}

.learner-auth-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #123552;
}

.learner-optional {
    font-weight: 500;
    color: #8a9aab;
}

.learner-auth-form input[type="text"],
.learner-auth-form input[type="email"],
.learner-auth-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d5e0ea;
    border-radius: 12px;
    padding: 0.78rem 0.95rem;
    font: inherit;
    background: #fff;
    color: #123552;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.learner-auth-form input:focus {
    outline: none;
    border-color: #1a4d7a;
    box-shadow: 0 0 0 3px rgba(26, 77, 122, 0.12);
}

.learner-field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #6b7c8c;
}

.learner-auth-form .btn-full-width {
    width: 100%;
    border-radius: 999px !important;
    padding: 0.85rem 1.2rem !important;
    margin-top: 0.25rem;
}

.learner-dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.learner-welcome {
    margin: 0;
}

.learner-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.learner-dossiers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.learner-dossiers-list .learner-dossier-card {
    margin: 0;
}

.learner-form-footer {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eef4;
    font-size: 0.9rem;
    text-align: center;
    color: #5b6b7c;
}

.learner-form-footer a {
    color: #0f4c81;
    font-weight: 600;
    text-decoration: none;
}

.learner-form-footer a:hover {
    text-decoration: underline;
}

.learner-password-box {
    margin-bottom: 1.5rem;
}

.learner-forgot-link {
    margin: -0.25rem 0 1rem;
    text-align: right;
    font-size: 0.9rem;
}

.learner-forgot-link a {
    color: #0f4c81;
    font-weight: 600;
    text-decoration: none;
}

.learner-forgot-link a:hover {
    text-decoration: underline;
}

body.page-learner-auth .inscription-error-alert,
body.page-learner-auth .inscription-success-alert,
body.page-learner-auth .alert-box {
    max-width: 34rem;
    margin: 0 auto 1rem;
}

@media (max-width: 560px) {
    .learner-tabs {
        flex-direction: column;
    }

    .learner-auth-card {
        padding: 1.25rem 1.1rem 1.15rem;
    }
}

/* Phase 14 — catalogue public LMS */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.public-catalog {
    padding: 3rem 0 3.5rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
}

.public-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.25rem;
}

.public-catalog-card {
    background: #fff;
    border: 1px solid rgba(12, 45, 74, 0.12);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(12, 45, 74, 0.04);
}

a.public-catalog-card--link:hover,
a.public-catalog-card--link:focus-visible {
    border-color: #0c2d4a;
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

.public-catalog-card h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0c2d4a;
}

.public-catalog-code {
    margin: 0;
    font-size: 0.8rem;
    color: #667;
    letter-spacing: 0.02em;
}

.public-catalog-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #445;
}

.public-catalog-courses {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
    color: #2c3e50;
    font-size: 0.95rem;
}

.public-catalog-empty {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

.public-catalog-cta {
    align-self: flex-start;
    margin-top: auto;
}

.public-catalog-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0c2d4a;
}

@media (max-width: 560px) {
    .public-catalog {
        padding: 2rem 0;
    }

    .public-catalog-card {
        padding: 1.1rem 1rem;
    }
}

