/* ============================================================
   STN - Layout global (header + footer)
   ============================================================ */
:root {
    --primary-blue: #1E5A96;
    --dark-blue: #1A3A52;
    --light-blue: #4A8BC2;
    --light-bg: #F8FAFB;
    --blue-tint: #EBF4FB;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --gold: #D4AF37;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1B2050;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 56px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 6px 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.main-nav a.active {
    color: #fff;
    font-weight: 700;
    border-bottom-color: #fff;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-lang {
    display: inline-flex;
    align-items: center;
}

.nav-lang svg {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
    display: block;
}

.nav-search {
    background: none;
    border: 0;
    cursor: pointer;
    color: #fff;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.nav-search:hover {
    opacity: 0.7;
}

.nav-search svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle svg {
    width: 30px;
    height: 30px;
    display: block;
}

/* ---------------- Hero video slider ---------------- */
.stn-hero {
    position: relative;
    height: calc(100vh - 80px);
    min-height: 500px;
    overflow: hidden;
    background: var(--dark-blue);
}

.stn-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stn-hero-video iframe,
.stn-hero-video > div {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    /* La taille de couverture exacte est fixée en JS (stnCoverVideo) */
}

/* ---------------- Bouton retour en haut ---------------- */
.stn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, #1E5A96, #4A8BC2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(30, 90, 150, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s ease;
    z-index: 999;
}

.stn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stn-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(30, 90, 150, 0.55);
}

.stn-scroll-top svg {
    width: 22px;
    height: 22px;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--dark-blue);
    color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding: 60px 20px 40px;
}

.footer-logo img {
    height: 62px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 380px;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    color: var(--light-blue);
    font-weight: 700;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--light-blue);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom strong {
    color: rgba(255, 255, 255, 0.85);
}

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

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

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

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-blue);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .main-nav.open {
        max-height: 400px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 20px 20px;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stn-hero {
        /* Vidéo pleine largeur, hauteur = format 16:9, aucune bande noire */
        height: 56.25vw;
        min-height: 0;
    }
}
