body {
    font-family: "Be Vietnam Pro", system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(30, 64, 175, 0.10), transparent 26%),
        radial-gradient(circle at top right, rgba(5, 150, 105, 0.10), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #eef7f3 100%);
    overflow-x: hidden;
}

.page-shell {
    min-height: 100vh;
}

.page-shell main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}

.page-shell main > section {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: grid;
    grid-template-columns: minmax(1rem, 1fr) minmax(0, 80rem) minmax(1rem, 1fr);
    border-radius: 0 !important;
}

.page-shell main > section > * {
    grid-column: 2;
}

.page-shell main > section.hero-offset {
    margin-top: 10vh !important;
}

@media (min-width: 640px) {
    .page-shell main > section {
        grid-template-columns: minmax(1.5rem, 1fr) minmax(0, 88rem) minmax(1.5rem, 1fr);
    }
}

@media (min-width: 1280px) {
    .page-shell main > section {
        grid-template-columns: minmax(2rem, 1fr) minmax(0, 92rem) minmax(2rem, 1fr);
    }
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(30, 64, 175, 0.94), rgba(5, 150, 105, 0.90)),
        linear-gradient(135deg, rgba(234, 88, 12, 0.18), rgba(255, 255, 255, 0.08));
}

.hero-rotating-title {
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-rotating-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.08em;
}

.hero-rotating-word {
    display: inline-flex;
    margin-right: 0.28em;
}

.hero-rotating-word:last-child {
    margin-right: 0;
}

.hero-rotating-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    will-change: transform, opacity;
}

.hero-phrase-gold {
    color: #fde68a;
}

.hero-phrase-blue {
    color: #bfdbfe;
}

.hero-phrase-green {
    color: #bbf7d0;
}

@media (min-width: 1024px) {
    .hero-rotating-title {
        justify-content: flex-start;
    }

    .hero-rotating-line {
        justify-content: flex-start;
    }
}

.hero-secondary {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.92)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(5, 150, 105, 0.16));
}

.btn-primary-shared {
    background: linear-gradient(135deg, #0f3d91 0%, #0b2455 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary-shared:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #123f97 0%, #091c44 100%);
    box-shadow: 0 18px 30px rgba(11, 36, 85, 0.30);
}

.btn-outline-shared {
    background: rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-outline-shared:hover {
    background: rgba(15, 23, 42, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #334155;
    font-weight: 500;
    padding-bottom: 0.45rem;
    transition: color 0.2s ease;
}

.site-logo-header {
    height: 2.5rem;
    width: auto;
    max-width: 9.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .site-logo-header {
        height: 3rem;
        max-width: 11rem;
    }
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #1e40af, #059669);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.nav-link:hover {
    color: #1e40af;
}

.nav-link-active {
    color: #1e40af;
    font-weight: 700;
}

.nav-link-active::after {
    transform: scaleX(1);
}

.mobile-nav-link-active {
    color: #1e40af;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.45rem;
}

.card-surface {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.formation-poster {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
    background: #e2e8f0;
}

.formation-type-chip {
    border-radius: 9999px;
    background: rgba(30, 64, 175, 0.08);
    color: #1e40af;
    padding: 0.42rem 0.82rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.formation-type-chip-special {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.google-form-shell {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.google-form-accent {
    height: 10px;
    background: linear-gradient(90deg, #1e40af, #059669, #f59e0b);
}

.google-form-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-top: 0;
    padding: 1.5rem;
}

.google-form-question {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 1.25rem;
}

.google-form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.google-form-input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #dbe3ef;
    background: transparent;
    padding: 0.85rem 0 0.6rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.google-form-input:focus {
    border-bottom-color: #1e40af;
}

.google-form-textarea {
    resize: vertical;
    min-height: 7rem;
    border: 1px solid #dbe3ef;
    padding: 0.9rem 1rem;
}

.google-form-textarea:focus {
    border-color: #1e40af;
}

.gallery-pair {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 1rem !important;
}

.gallery-pair-image {
    display: block;
    flex: 0 0 calc(50% - 0.5rem) !important;
    width: calc(50% - 0.5rem) !important;
    min-width: 0;
    height: 50vh;
    border-top-left-radius: 34px;
    border-bottom-right-radius: 34px;
    object-fit: cover;
}

@media (min-width: 640px) {
    .gallery-pair {
        gap: 1.25rem !important;
    }

    .gallery-pair-image {
        flex-basis: calc(50% - 0.625rem) !important;
        width: calc(50% - 0.625rem) !important;
    }
}

@media (min-width: 1024px) {
    .gallery-pair {
        gap: 1.5rem !important;
    }

    .gallery-pair-image {
        flex-basis: calc(50% - 0.75rem) !important;
        width: calc(50% - 0.75rem) !important;
        height: 70vh;
    }
}

.page-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.12);
    border-color: rgba(30, 64, 175, 0.25);
}

@media (max-width: 639px) {
    #formations .card-hover h3 {
        font-size: 1rem;
        line-height: 1.35;
    }

    #formations .card-hover .p-6 {
        padding: 1rem;
    }
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-blue {
    background: rgba(30, 64, 175, 0.10);
    color: #1e40af;
}

.badge-green {
    background: rgba(5, 150, 105, 0.10);
    color: #047857;
}

.badge-gold {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.metric-box {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.10);
}

.section-heading {
    font-family: "Newsreader", serif;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #1e40af, #059669);
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 0.38rem;
    top: 1.35rem;
    bottom: -1.4rem;
    width: 2px;
    background: rgba(148, 163, 184, 0.35);
}

.timeline-item:last-child::after {
    display: none;
}

.footer-link {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.mobile-menu {
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    width: 50vw;
    height: 100vh;
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
    border-left: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: -24px 0 50px rgba(15, 23, 42, 0.18);
}

#site-header {
    will-change: transform;
}

.site-header-hidden {
    transform: translateY(calc(-100% - 10px));
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #1e40af, #059669, #f59e0b);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.12s linear;
    pointer-events: none;
    z-index: 80;
}

.contact-chip {
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(255, 255, 255, 0.85);
}
