:root {
    --navy: #0f2d52;
    --navy-dark: #0a1f3a;
    --red: #c62828;
    --red-hover: #b71c1c;
    --green: #2e7d32;
    --text: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-muted: #f1f5f9;
    --shadow: 0 4px 24px rgba(15, 45, 82, 0.08);
    --radius: 8px;
    --radius-lg: 12px;
    --container: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

/* Header — matches template.png */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
}

.lang-switch button.lang-btn {
    padding: 0.35rem 0.75rem;
    border: none;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    background: var(--bg);
    line-height: 1.2;
    transition: background 0.15s, color 0.15s;
}

.lang-btn.active {
    background: var(--red);
    color: #fff;
}

.lang-switch button.lang-btn:not(.active):hover {
    background: var(--bg-light);
    color: var(--navy);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--red-hover);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

/* Page hero — about page */
.page-hero {
    padding: 3rem 0 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 0 2rem;
    line-height: 1.7;
}

.hero-image {
    margin-top: 2rem;
}

.hero-image-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a4a7a 50%, var(--green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    font-weight: 500;
}

/* Shared hero with background image */
.hero-banner {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero-banner--compact {
    min-height: 260px;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
}

.hero-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 58, 0.88) 0%,
        rgba(15, 45, 82, 0.75) 50%,
        rgba(15, 45, 82, 0.55) 100%
    );
}

.hero-banner-content {
    position: relative;
    z-index: 1;
    padding: 3rem 1rem;
}

.hero-banner--compact .hero-banner-content {
    padding: 2rem 1rem;
}

.hero-banner h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 0.85rem;
    line-height: 1.2;
    max-width: 720px;
}

.hero-banner .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.65;
    font-size: 1rem;
}

.hero-banner--compact h1 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 0.5rem;
}

.hero-banner--compact .hero-subtitle {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-banner .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-banner .btn-outline:hover {
    background: #fff;
    color: var(--navy);
}

/* Home hero */
.home-hero {
    min-height: 520px;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-stats {
    background: var(--navy);
    color: #fff;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 1.5rem;
}

.section-stats .section-title,
.section-stats .section-subtitle {
    color: #fff;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: -0.75rem 0 2.5rem;
}

.prose {
    max-width: 800px;
}

.prose p {
    margin: 0 0 1.25rem;
    color: var(--text);
    line-height: 1.8;
}

.prose-center {
    margin-inline: auto;
    text-align: center;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

/* Cards */
.cards-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.cards-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.75rem;
}

.info-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.values-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.value-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--bg-muted);
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--border);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-value {
    display: block;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    opacity: 0.85;
}

/* Team */
.team-card {
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(15, 45, 82, 0.12);
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--bg-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.team-avatar svg {
    width: 40px;
    height: 40px;
}

.team-avatar--photo {
    width: 120px;
    height: 120px;
    padding: 0;
    overflow: hidden;
    background: var(--bg-muted);
}

.team-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* News / Actualités */
.container-narrow {
    max-width: 820px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 45, 82, 0.1);
}

.news-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-muted);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
}

.news-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.news-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-card h2 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.35;
}

.news-card h2 a {
    color: var(--navy);
    text-decoration: none;
}

.news-card h2 a:hover {
    text-decoration: underline;
}

.news-card-body > p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
}

.news-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    margin-top: 0.25rem;
}

.news-breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.news-breadcrumb a {
    color: var(--navy);
}

.news-article-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-article-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--navy);
    margin: 0 0 0.75rem;
}

.news-article-summary {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.news-figure {
    margin: 0 0 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.news-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.news-article-body {
    margin-bottom: 2rem;
}

.news-gallery-title {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    color: var(--navy);
}

.news-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.news-gallery-item {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.news-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.news-gallery-item figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-article-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.team-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.35rem;
}

.team-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Partners */
.partner-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: border-color 0.2s;
}

.partner-card:hover {
    border-color: var(--navy);
}

.partner-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    margin-bottom: 1rem;
}

.partner-icon svg {
    width: 24px;
    height: 24px;
}

.partner-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.35rem;
}

.partner-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding: 3.5rem 0;
}

.brand-footer .brand-name {
    color: #fff;
}

.footer-brand p {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-contact p {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8125rem;
    opacity: 0.6;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-image-placeholder {
        height: 220px;
    }

    .stat-value {
        font-size: 2.25rem;
    }
}

/* Filières page */
.filieres-hero {
    min-height: 440px;
}

.filieres-hero .hero-subtitle {
    max-width: 760px;
}

.filieres-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filieres-stat {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    min-width: 120px;
    backdrop-filter: blur(4px);
}

.filieres-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.filieres-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.35rem;
}

.filieres-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
    align-items: start;
}

.filieres-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.filieres-sidebar-inner {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.domain-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.domain-nav-link {
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.4;
}

.domain-nav-link:hover,
.domain-nav-link.active {
    background: var(--bg-muted);
    color: var(--navy);
    border-left-color: var(--red);
}

.domain-pills {
    display: none;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.domain-pill {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.domain-pill:hover,
.domain-pill.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.filieres-content {
    min-width: 0;
}

.domain-section {
    scroll-margin-top: calc(var(--header-height) + 1rem);
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.domain-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.domain-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.domain-header-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    box-shadow: var(--shadow);
}

.domain-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.domain-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.domain-header-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.domain-header-text p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.field-section {
    margin-bottom: 2.5rem;
}

.field-section:last-child {
    margin-bottom: 0;
}

.field-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-muted);
}

.field-title-icon {
    width: 4px;
    height: 1.25rem;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}

.field-count {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-left: auto;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.program-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 45, 82, 0.12);
    border-color: rgba(15, 45, 82, 0.15);
}

.program-card--option {
    border-style: dashed;
    border-color: var(--text-muted);
}

.program-card-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--bg-muted);
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.program-card:hover .program-card-image img {
    transform: scale(1.05);
}

.program-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--navy);
    color: #fff;
    border-radius: 999px;
}

.program-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.program-card-body p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.filieres-cta {
    border-top: 1px solid var(--border);
}

@media (max-width: 992px) {
    .filieres-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 1.5rem;
    }

    .filieres-sidebar {
        display: none;
    }

    .domain-pills {
        display: flex;
    }

    .domain-header {
        grid-template-columns: 1fr;
    }

    .domain-header-image {
        max-height: 220px;
    }

    .field-count {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .filieres-stats {
        gap: 0.75rem;
    }

    .filieres-stat {
        flex: 1;
        min-width: calc(50% - 0.5rem);
        padding: 0.875rem 1rem;
    }

    .filieres-stat-value {
        font-size: 1.5rem;
    }

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

    .domain-section {
        margin-bottom: 3rem;
    }
}

/* Contact page */
.contact-hero {
    min-height: 400px;
}

.contact-section {
    padding: 4rem 0;
}

.contact-alerts {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.75rem;
}

.contact-info-intro,
.contact-form-intro {
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.contact-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

a.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 45, 82, 0.12);
    border-color: rgba(15, 45, 82, 0.2);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card--whatsapp .contact-card-icon {
    background: #dcfce7;
    color: #16a34a;
}

a.contact-card--whatsapp:hover {
    border-color: #16a34a;
}

.contact-card--phone .contact-card-icon {
    background: #eff6ff;
    color: var(--navy);
}

.contact-card--email .contact-card-icon {
    background: #fef2f2;
    color: var(--red);
}

a.contact-card--email:hover {
    border-color: var(--red);
}

.contact-card--location .contact-card-icon {
    background: var(--bg-muted);
    color: var(--navy);
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.contact-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.contact-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    word-break: break-word;
}

a.contact-card .contact-card-value {
    color: var(--navy);
}

.contact-link {
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--red);
}

.contact-card-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.contact-form-wrap {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:hover {
    border-color: #cbd5e1;
}

.form-control:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(15, 45, 82, 0.12);
}

.form-group--error .form-control {
    border-color: var(--red);
}

.form-group--error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.form-error {
    font-size: 0.8125rem;
    color: var(--red);
    font-weight: 500;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    align-self: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.btn-submit svg {
    flex-shrink: 0;
}

.contact-map-section {
    padding: 0 0 4rem;
    background: var(--bg-light);
}

.contact-map-section .section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.map-subtitle {
    text-align: center;
    margin: 0 0 1.5rem;
}

.contact-map {
    position: relative;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-map iframe {
    width: 100%;
    height: 420px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: block;
}

.contact-map-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-map-link:hover {
    color: var(--red);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form-wrap {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-banner-content {
        padding: 3rem 1rem;
    }

    .home-hero {
        min-height: 440px;
    }

    .contact-card {
        padding: 1rem 1.15rem;
    }

    .contact-map iframe {
        height: 300px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Institut (about) page */
.institut-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}

.institut-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.institut-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.institut-btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.institut-btn-outline:hover {
    background: #fff;
    color: var(--navy);
}

.institut-auth-section {
    padding: 3rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.auth-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(15, 45, 82, 0.12);
    transition: box-shadow 0.2s;
}

.auth-card:hover {
    box-shadow: 0 12px 40px rgba(15, 45, 82, 0.16);
}

.auth-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #ecfdf5;
    color: var(--green);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card-icon svg {
    width: 28px;
    height: 28px;
}

.auth-card-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.75rem;
}

.auth-intro {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.7;
}

.auth-details {
    margin: 0;
    display: grid;
    gap: 1rem;
}

.auth-detail-row {
    display: grid;
    gap: 0.25rem;
}

.auth-detail-row dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.auth-detail-row dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    word-break: break-word;
}

.section-header-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-lead {
    color: var(--text-muted);
    margin: -0.5rem 0 0;
    line-height: 1.7;
    font-size: 1.0625rem;
}

.campus-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.campus-gallery-item {
    margin: 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    grid-column: span 6;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}

.campus-gallery-item--wide {
    grid-column: span 12;
    aspect-ratio: 21 / 9;
}

.campus-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.campus-gallery-item:hover img {
    transform: scale(1.05);
}

.campus-gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    background: linear-gradient(transparent, rgba(10, 31, 58, 0.85));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
}

.institut-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.institut-mission-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card--accent {
    border-left: 3px solid var(--red);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card--accent:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(15, 45, 82, 0.1);
}

.info-card-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-muted);
    color: var(--navy);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.info-card-icon svg {
    width: 22px;
    height: 22px;
}

.team-card--enhanced {
    border-top: 3px solid var(--navy);
}

.partner-card--enhanced:hover .partner-icon {
    background: var(--navy);
    color: #fff;
}

.institut-cta {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: #fff;
    padding: 3.5rem 0;
}

.institut-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.institut-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.institut-cta p {
    margin: 0;
    opacity: 0.85;
    max-width: 480px;
    line-height: 1.6;
}

.institut-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.institut-btn-outline-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.institut-btn-outline-dark:hover {
    background: #fff;
    color: var(--navy);
}

@media (max-width: 992px) {
    .institut-history-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .campus-gallery-item,
    .campus-gallery-item--wide {
        grid-column: span 12;
        aspect-ratio: 16 / 10;
    }

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

@media (max-width: 576px) {
    .institut-hero {
        min-height: 420px;
    }

    .hero-banner-content {
        padding: 3rem 1rem;
    }

    .institut-auth-section {
        margin-top: 0;
        padding-top: 2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .institut-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .institut-cta-actions {
        width: 100%;
    }

    .institut-cta-actions .btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 0.5rem);
    }
}
