/* -------------------- RESET + BASE -------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background-color: #112142;
    color: white;
    text-align: center;
}

/* -------------------- HEADER + NAV -------------------- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    position: absolute;
    top: 0;
    z-index: 10;
}

.header .logo-container {
    display: flex;
    align-items: center;
    margin-left: 25px;
}

.header .logo-container img {
    height: 50px;
    margin-right: 10px;
}

.header .logo {
    font-size: 17px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 80px;
    margin-right: 25px;
}

.nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 15px;
}

.nav a:hover {
    color: #FF9411;
}

.nav a.active {
    color: #FF9411;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    z-index: 11;
    margin-right: 25px;
}


/* -------------------- FOOTER (copié index) -------------------- */

.footer {
    background-color: #112142;
    width: 100%;
    padding: 40px 0;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 auto;
    text-align: left;
}

.logo-partner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.logo-partner img {
    max-width: 150px;
    opacity: 30%;
    width: 100%;
    object-fit: contain;
}

.footer .footer-block {
    text-decoration: none;
}

.footer-block.large {
    flex: 2;
    min-width: 250px;
}

.footer-block.small {
    flex: 1;
    min-width: 180px;
}

.footer-title {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 30px;
}

.footer-content a {
    color: #AAAAAA;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.footer-content a:hover {
    color: #AAAAAA;
}

.footer-block p {
    margin-bottom: 35px;
    color: #AAAAAA;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-input {
    flex: 1;
    width: auto;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #1E3763;
    color: white;
    font-style: italic;
}

.footer .top {
    text-align: center;
    opacity: 0.3;
    font-size: 35px;
    font-weight: bold;
    letter-spacing: 3px;
}

.footer .subtitle {
    font-size: 17px;
    margin-top: 15px;
    letter-spacing: 6px;
    font-weight: 500;
    opacity: 1;
}

.subtitle-partner {
    font-size: 15px;
    font-style: italic;
    margin-top: 15px;
    letter-spacing: 6px;
    font-weight: 500;
    opacity: 0.5;
}

.footer .separator {
    width: 90%;
    height: 1px;
    background: white;
    margin: 40px auto;
}

.footer .bottom-text {
    font-size: 12px;
    color: #909090;
}

.footer .bottom-bar {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 10px auto;
    font-size: 12px;
    color: #909090;
}

.footer-block i {
    color: white;
    font-size: 15px;
    margin-right: 10px;
}

.footer .bottom-bar a {
    text-decoration: none;
    color: #909090;
}

/* Snackbar (newsletter) */

.snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: fixed;
    z-index: 999;
    left: 50%;
    bottom: 30px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease, bottom 0.5s ease;
}

.snackbar.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.snackbar.error {
    background-color: #f44336;
}
/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 1024px) {
    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: rgba(17, 33, 66, 0.98);
        flex-direction: column;
        align-items: flex-end;
        padding: 20px;
        gap: 40px;
        display: none;
        width: auto;
        border-radius: 10px;
    }

    .nav.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .header .logo {
        font-size: 13px;
        font-weight: bold;
    }

    .header .logo-container img {
        height: 35px;
        margin-right: 10px;
    }

    .solution-inner {
        padding: 40px 26px 32px;
    }

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

@media (max-width: 900px) {
    /* on cache les bulles sur mobile */
    .solutions-bubbles {
        display: none;
    }

    .solutions-hero {
        padding: 120px 18px 110px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 2.6rem);
    }

    .solution-header-row {
        flex-direction: column;

        align-items: flex-start;
    }

    .solution-title-block {
        max-width: 100%;
    }

    .brochure-cover {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .footer .top {
        font-size: 25px;
    }

    .footer .subtitle {
        font-size: 10px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        justify-content: center !important;
        gap: 30px;
        flex-wrap: wrap;
        width: 90%;
        margin: 0 auto;
        text-align: left;
    }
}

.newsletter-button {
    background-color: #1E3763;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-button i {
    font-size: 16px;
}

.newsletter-button:hover {
    background-color: #2c4a86;
}



.news-main {
    padding-top: 40px;
    background-color: #112142;
    color: white;
    min-height: 100vh;
}

.news-hero {
    text-align: center;
    margin-bottom: 40px;
}

.news-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-subtitle {
    opacity: 0.85;
    font-size: 1.1rem;
}

.news-list {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.news-card {
    background: #1E3763;
    border-radius: 12px;
    padding: 26px;
    margin: 35px auto;
    max-width: 99%;
    text-align: left; /* ← FINI le texte centré */
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.news-body {
    margin-top: 20px;
}

.news-body h2 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: left;
}

.news-body p {
    white-space: pre-line; /* ← respecte \n \n \n */
    line-height: 1.65;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 14px;
}

.news-link {
    display: inline-block;
    margin-top: 10px;
    color: #0373FF;
    font-weight: 600;
    text-decoration: underline;
    word-break: break-word; /* si le lien est long */
}

.news-media img,
.video-thumb {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    object-fit: contain;
    max-height: 450px;
    border-radius: 12px;
}

.video-thumb {
    aspect-ratio: 16/9;
    background: #00000055;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-size: 3rem;
    color: white;
}




.news-link:hover {
    opacity: 0.7;
}

/* ----------- MODAL ----------- */

.media-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.media-modal-content {
    max-width: 80%;
}

.media-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
}

#modal-image,
#modal-video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
}

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

.news-date {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 6px 0 14px;
    text-align: left;
}

.news-button {
    display: inline-block;
    background-color: #0373FF;
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
    transition: background-color .2s ease, transform .2s ease;
}

.news-button:hover {
    background-color: #005ccd;
    transform: translateY(-2px);
}

.news-body p {
    white-space: pre-line;
}