/* =========================
   HOME - HERO
========================= */

.hero-full {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    display: flex;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text-box {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 2;

    max-width: 500px;
    padding: 35px;

    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}

.hero-text-box h1 {
    color: var(--bleu-fonce);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 35px;
}

.hero-text-box p {
    color: #333;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 35px;
}

.hero-btn {
    display: inline-block;
    background: var(--bleu-fonce);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    transition: 0.3s ease;
}

.hero-btn:hover {
    background: var(--turquoise);
}


/* =========================
   HOME - QUICK ACCESS
========================= */

.quick-access {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 80px;
    padding: 60px 80px;
    background:
        linear-gradient(
            90deg,
            rgba(19,35,61,1) 0%,
            rgba(33,58,92,0.96) 45%,
            rgba(40,71,109,0.92) 100%
        );
}

.quick-card {
    display: block;
    color: var(--gris);
    text-decoration: none;
    transition: 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-8px);
}

.quick-card img {
    width: 300px;
    height: 250px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.quick-card h3 {
    text-align: center;
    margin-top: 15px;
    color: var(--gris-titre);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
}


/* =========================
   HOME - EVENTS
========================= */

.home-events-section {
    padding: 90px 20px;
    background:
        linear-gradient(
            90deg,
            rgba(19,35,61,1) 0%,
            rgba(33,58,92,0.96) 45%,
            rgba(40,71,109,0.92) 100%
        );
}

.home-events-title h2 {
    color: #fff;
}

.home-events-grid {
    max-width: 1300px;
    margin: 45px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    align-items: stretch;
}

.home-event-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.home-event-card-link:hover {
    text-decoration: none;
}

.home-event-card {
    height: 100%;
    min-height: 520px;

    display: flex;
    flex-direction: column;

    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    transition: 0.3s ease;
}

.home-event-card:hover {
    transform: translateY(-8px);
}

.home-event-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    flex-shrink: 0;
}

.home-event-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    color: var(--bleu);
    font-weight: 800;
    font-size: .85rem;
    text-transform: uppercase;
}

.home-event-content h3 {
    color: var(--bleu-fonce);
    font-size: 1.45rem;
    margin: 12px 0;
    font-weight: 900;
}

.home-event-content p {
    color: #5f6b7a;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.event-link {
    color: var(--bleu);
    font-weight: 800;
    text-decoration: none;
    margin-top: auto;
}

.no-home-events {
    grid-column: 1 / -1;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
}

.home-events-more {
    text-align: center;
    margin-top: 35px;
}


/* =========================
   HOME - PARTNERS
========================= */

.partners-section {
    position: relative;

    padding: 70px 20px;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(19, 35, 61, 1) 0%,
            rgba(33, 58, 92, 0.96) 45%,
            rgba(40, 71, 109, 0.92) 100%
        );
}


/* =========================
   TITRE
========================= */

.partners-section h2 {
    position: relative;

    color: #ffffff;

    font-size: 45px;
    font-weight: 800;

    margin-bottom: 50px;

    text-transform: uppercase;
}


/* LIGNE SOUS LE TITRE */

.partners-section h2::after {
    content: "";

    display: block;

    width: 75px;
    height: 4px;

    margin: 15px auto 0;

    background: var(--bleu);

    border-radius: 10px;
}


/* =========================
   SLIDER
========================= */

.partners-slider {
    position: relative;

    width: 100%;
    max-width: 1700px;

    margin: auto;

    display: flex;

    align-items: center;

    padding: 0 80px;

    box-sizing: border-box;
}


/* =========================
   CONTENEUR
========================= */

.partners-container {
    width: 100%;

    overflow: hidden;
}


/* =========================
   TRACK
========================= */

.partners-track {
    display: flex;

    align-items: stretch;

    transition: transform 0.5s ease;
}


/* =========================
   PARTENAIRE
========================= */

.partner-item {
    min-width: 260px;

    height: 180px;

    padding: 10px;

    display: flex;

    justify-content: center;

    align-items: center;

    box-sizing: border-box;
}


/* =========================
   CARTE
========================= */

.partner-item a {
    width: 100%;
    height: 100%;

    padding: 20px;

    display: flex;

    justify-content: center;

    align-items: center;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* EFFET AU SURVOL */

.partner-item a:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.35);
}


/* =========================
   LOGO
========================= */

.partner-item img {
    display: block;

    width: 100%;
    max-width: 220px;

    height: 120px;

    object-fit: contain;

    transition: transform 0.3s ease;
}


.partner-item a:hover img {
    transform: scale(1.07);
}


/* =========================
   FLÈCHES
========================= */

.partner-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 20;

    width: 55px;
    height: 55px;

    display: flex;

    justify-content: center;

    align-items: center;

    background: var(--bleu);

    color: #ffffff;

    border: none;

    border-radius: 50%;

    font-size: 28px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.3);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


.partner-arrow.left {
    left: 15px;
}


.partner-arrow.right {
    right: 15px;
}


.partner-arrow:hover {
    background: #ffffff;

    color: var(--bleu-fonce);

    transform: translateY(-50%) scale(1.1);
}


.partner-arrow:active {
    transform: translateY(-50%) scale(0.95);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .home-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .partner-item {
        min-width: 240px;
    }


    .partners-slider {
        padding: 0 65px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .hero-full {
        height: 75vh;
    }


    .hero-text-box {
        left: 20px;
        right: 20px;

        bottom: 30px;

        padding: 25px;
    }


    .hero-text-box h1 {
        font-size: 34px;
    }


    .hero-text-box p {
        font-size: 17px;
    }


    .quick-access {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 40px 30px;
    }


    .quick-card img {
        width: 100%;

        max-width: 360px;

        height: 220px;
    }


    .home-events-grid {
        grid-template-columns: 1fr;
    }


    .home-event-card {
        min-height: auto;
    }


    /* PARTENAIRES */

    .partners-section {
        padding: 55px 10px;
    }


    .partners-section h2 {
        font-size: 34px;

        margin-bottom: 35px;
    }


    .partners-slider {
        padding: 0 45px;
    }


    .partner-item {
        min-width: 50%;

        height: 150px;

        padding: 7px;
    }


    .partner-item a {
        padding: 15px;

        border-radius: 14px;
    }


    .partner-item img {
        max-width: 170px;

        height: 90px;
    }


    .partner-arrow {
        width: 42px;
        height: 42px;

        font-size: 22px;
    }


    .partner-arrow.left {
        left: 0;
    }


    .partner-arrow.right {
        right: 0;
    }

}


/* =========================
   PETITS TÉLÉPHONES
========================= */

@media (max-width: 480px) {

    .partners-section h2 {
        font-size: 28px;
    }


    .partners-slider {
        padding: 0 35px;
    }


    .partner-item {
        min-width: 50%;

        height: 120px;

        padding: 5px;
    }


    .partner-item a {
        padding: 10px;
    }


    .partner-item img {
        max-width: 130px;

        height: 70px;
    }


    .partner-arrow {
        width: 35px;
        height: 35px;

        font-size: 18px;
    }

}

/* =========================================
   POP-UP ANNONCE
========================================= */

.announcement-popup-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 30, 55, 0.75);

    z-index: 99999;

    box-sizing: border-box;

    animation: popupFadeIn 0.3s ease;

    /*
       Permet de scroller si le popup
       est plus grand que l'écran.
    */
    overflow-y: auto;
}


/* =========================================
   POPUP
========================================= */

.announcement-popup {
    position: relative;

    width: 100%;
    max-width: 850px;

    /*
       Le popup ne dépasse pas l'écran.
    */
    max-height: 90vh;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);

    animation: popupSlideIn 0.35s ease;

    /*
       IMPORTANT :
       Le popup entier devient scrollable
       si son contenu est trop grand.
    */
    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;
}


/* =========================================
   IMAGE
========================================= */

.announcement-image {
    width: 100%;

    /*
       PAS de height fixe.

       La hauteur va automatiquement
       s'adapter à l'image.
    */
    height: auto;

    background: #ffffff;

    overflow: hidden;

    /*
       Empêche l'image de se compresser.
    */
    flex-shrink: 0;
}


/* =========================================
   IMAGE
========================================= */

.announcement-image img {

    /*
       Prend toute la largeur du popup.
    */
    width: 100%;

    /*
       IMPORTANT :
       La hauteur s'adapte automatiquement
       au ratio original de l'image.
    */
    height: auto;

    display: block;

    /*
       Aucune partie de l'image n'est coupée.
    */
    object-fit: contain;

    object-position: center;
}


/* =========================================
   CONTENU
========================================= */

.announcement-content {

    padding: 35px 45px 40px;

    text-align: center;

    background: #ffffff;

    box-sizing: border-box;
}


.announcement-content h2 {

    margin: 0 0 20px;

    color: var(--bleu-fonce);

    font-size: 2rem;

    font-weight: 800;

    line-height: 1.2;
}


.announcement-content p {

    margin: 0;

    color: #4a5568;

    font-size: 1.1rem;

    line-height: 1.7;
}


/* =========================================
   BOUTON
========================================= */

.announcement-button {

    display: inline-block;

    margin-top: 25px;

    padding: 14px 28px;

    background: var(--bleu);

    color: white;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 700;

    transition: 0.25s ease;
}


.announcement-button:hover {

    transform: translateY(-2px);

    background: var(--bleu-fonce);
}


/* =========================================
   BOUTON FERMER
========================================= */

.announcement-close {

    position: absolute;

    top: 15px;
    right: 18px;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: rgba(15, 30, 55, 0.9);

    color: white;

    font-size: 2rem;

    line-height: 1;

    cursor: pointer;

    z-index: 10;

    transition: 0.2s ease;

    display: flex;

    align-items: center;
    justify-content: center;
}


.announcement-close:hover {

    transform: scale(1.1);

    background: #e53935;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes popupFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes popupSlideIn {

    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================
   TABLETTE
========================================= */

@media (max-width: 768px) {

    .announcement-popup-overlay {

        padding: 12px;
    }


    .announcement-popup {

        width: 94vw;

        max-height: 90vh;

        border-radius: 15px;
    }


    /*
       IMPORTANT :
       Aucune hauteur fixe ici non plus.
    */
    .announcement-image {

        width: 100%;

        height: auto;
    }


    .announcement-image img {

        width: 100%;

        height: auto;

        object-fit: contain;
    }


    .announcement-content {

        padding: 25px 25px 30px;
    }


    .announcement-content h2 {

        font-size: 1.6rem;

        margin-bottom: 15px;
    }


    .announcement-content p {

        font-size: 1rem;

        line-height: 1.6;
    }

}


/* =========================================
   CELLULAIRE
========================================= */

@media (max-width: 600px) {

    .announcement-popup-overlay {

        padding: 8px;
    }


    .announcement-popup {

        width: 96vw;

        max-height: 92vh;

        border-radius: 15px;
    }


    /*
       Toujours aucune hauteur fixe.
    */
    .announcement-image {

        width: 100%;

        height: auto;
    }


    .announcement-image img {

        width: 100%;

        height: auto;

        object-fit: contain;
    }


    .announcement-content {

        padding: 22px 18px 28px;
    }


    .announcement-content h2 {

        font-size: 1.45rem;
    }


    .announcement-content p {

        font-size: 0.95rem;
    }


    .announcement-button {

        margin-top: 20px;

        padding: 12px 22px;
    }


    .announcement-close {

        top: 10px;
        right: 10px;

        width: 38px;
        height: 38px;

        font-size: 1.7rem;
    }

}