@charset "utf-8";

html,
body {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* ── Fond vidéo : conteneur fixe, jamais scrollable ── */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.bg-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Logo : fixe, centré horizontalement, JS contrôle top ── */
#main-logo {
    position: fixed;
    left: 50%;
    top: 50vh;
    transform: translate(-50%, -50%) scale(1);
    width: 80%;
    max-width: 600px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(1px 4.5px 11px rgba(0, 0, 0, 0.7));
}

/* ── Zone scrollable ── */
.scroll-zone {
    position: relative;
    z-index: 5;
}

/* Espace vide = 100vh pour que le scroll démarre */
.hero-space {
    height: 100vh;
}

/* Contenu topslide */
#main-content {
    position: relative;
    width: 100%;
    padding-top: 70px;
    box-sizing: border-box;
    /* opacity gérée par JS */
}

/* ── Responsive : smartphone portrait → grande police ── */

/* Mobile en mode PORTRAIT : police agrandie pour la lisibilité */
@media screen and (max-width: 768px) and (orientation: portrait) {
    body {
        font-size: 18px;
    }

    /* Texte du contenu principal */
    #main-content p,
    #main-content td,
    #main-content li {
        font-size: 1.15rem;
        line-height: 1.7;
    }

    /* Cellule de description avec plus d'espace */
    #main-content td {
        padding: 24px 18px !important;
    }
}

/* Mobile en mode PAYSAGE : retour à la taille standard */
@media screen and (max-width: 900px) and (orientation: landscape) {
    body {
        font-size: 16px;
    }

    #main-content p,
    #main-content td,
    #main-content li {
        font-size: 1rem;
        line-height: 1.5;
    }

    #main-content td {
        padding: 20px !important;
    }
}

/* ── Widget Météo : wrapper positionné fixe haut-droite ── */
#weather-wrapper {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    transform-origin: top right;
    width: 230px;
    overflow: hidden;
    /* Ombre subtile pour distinguer le widget des fonds blancs */
    filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.45));
    border-radius: 6px;
}

/* Filtre ombre sur le widget lui-même */
#ww_98903756ee104 {
    display: block;
    width: 100%;
}

/* ── Widget Météo sur mobile : scale fixe, identique portrait et paysage ──
   Logo 1000×500px à 80%vw (390px) → 312px, à MIN_SCALE 0.3 → ~94px wide
   Widget ≈ 340px → scale ≈ 0.28  |  Ajuster ici si besoin : 0.25 – 0.55 ── */
@media screen and (max-width: 900px) {
    #weather-wrapper {
        top: 0;
        right: 0;
        transform: scale(0.50);
    }
}