@charset "utf-8";
/* =============================== */
/* POLICES INTER                   */
/* =============================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Thin.woff2') format('woff2');
  font-weight: 100;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-ExtraLight.woff2') format('woff2');
  font-weight: 200;
}

/* =============================== */
/* FONDU PAGE                      */
/* =============================== */

html, body {
    background: #999;
}

body {
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.visible {
    opacity: 1;
}

body.fadeout {
    opacity: 0;
}

/* =============================== */
/* BASE                            */
/* =============================== */

html, body {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    line-height: 1.8;
}

body::before {
    display: none !important;
}

/* =============================== */
/* SECTIONS S2 & S3                */
/* (une section par actualité)     */
/* =============================== */

#s2,
#s3 {
    background: #999;
    color: #fff;
    overflow: visible;
    position: relative;
    font-size: 19px;
    line-height: 1.8;
    padding: 0;
    box-sizing: border-box;
}

#s2 .inner,
#s3 .inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

/* =============================== */
/* RYTHME VERTICAL ENTRE BLOCS      */
/* =============================== */
/* Chaque bloc (actu ou carte) est un <section> direct de <main>.
   L'espacement ne dépend donc que de la position, pas du contenu :
   il reste identique quelle que soit la combinaison affichée. */

main > section:first-child {
    margin-top: 170px;
}

main > section + section {
    margin-top: 110px;
}

/* =============================== */
/* CARTES GOOGLE MAPS               */
/* =============================== */

#carte-actu1,
#carte-actu2 {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
}

#carte-actu1 iframe,
#carte-actu2 iframe {
    display: block;
    width: 100%;
    height: 450px;
}

/* =============================== */
/* LAYOUT DESKTOP (COMMUN)         */
/* =============================== */

.s2-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4vw;
    width: 100%;
    max-width: 1400px;
}

/* IMAGE — gauche (COMMUN) */
.s2-leftimg-wrapper {
    flex: 0 0 400px;
    padding: 0 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.s2-leftimg {
    max-width: 400px;
    max-height: 70vh;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* TEXTE (COMMUN) */
.s2-right {
    flex: 1 1 0;
    max-width: 900px;
    padding-left: 60px;
    box-sizing: border-box;
}

.s2-right h2 {
    font-size: 56px;
    font-weight: 200;
    letter-spacing: 0.08em;
    margin: 0 0 20px 0;
    color: #fff;
}

.s2-right h3 {
    font-size: 26px;
    font-weight: 200;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: #fff;
}

.text-desktop {
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* =============================== */
/* BOUTON EN SAVOIR +              */
/* =============================== */

.s2-linkbox {
    padding-top: 15px;
    text-align: left;
    display: block;
}

.s2-linknav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #fff;
    background: #777;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.s2-linknav:hover {
    background: #888;
    color: #ffffff;
}

/* =============================== */
/* TABLETTE 601–1400px             */
/* Même zone dédiée que sur les    */
/* autres pages du site.           */
/* =============================== */

@media (max-width: 1400px) and (min-width: 601px) {

    .s2-container {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 40px;
        box-sizing: border-box;
    }

    main > section:first-child {
        margin-top: 140px;
    }

    main > section + section {
        margin-top: 90px;
    }

    .s2-leftimg-wrapper {
        flex: 0 0 auto;
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .s2-leftimg {
        width: 60%;
        max-width: 480px;
        height: auto;
    }

    .s2-right {
        flex: 1 1 auto;
        max-width: 700px;
        margin: 0 auto;
        padding: 0;
        text-align: justify;
    }

    .s2-right h2 {
        font-size: 42px;
        text-align: center;
    }

    .s2-right h3 {
        text-align: center;
    }

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

/* =============================== */
/* MOBILE ≤600px                   */
/* Même seuil que sur les autres   */
/* pages du site.                  */
/* =============================== */

@media (max-width: 600px) {

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    main > section:first-child {
        margin-top: 90px;
    }

    main > section + section {
        margin-top: 70px;
    }

    .s2-container {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .s2-leftimg-wrapper {
        flex: 0 0 auto;
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .s2-leftimg {
        width: 90% !important;
        max-width: 400px !important;
    }

    .s2-right {
        flex: 1 1 auto;
        width: 100%;
        padding: 0 !important;
        text-align: justify;
    }

    .s2-right h2 {
        font-size: 32px;
        margin-bottom: 20px;
        text-align: center;
    }

    .s2-right h3 {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
    }

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

/* =============================== */
/* BOUTON RETOUR EN HAUT           */
/* =============================== */

#backToTopBtn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#backToTopBtn.show {
    opacity: 1;
}

#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#backToTopBtn:hover {
    background: rgba(0,0,0,0.8);
}

.arrow-up {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid white;
}

/* =============================== */
/* FOOTER COLLÉ SI AUCUNE ACTU     */
/* =============================== */

body:not(:has(#s2)):not(:has(#s3)) {
    padding-bottom: 0 !important;
}
