/* --- RESET & BASE --- */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
    background-color: #1a1a1a;
}

/* --- CONTENEUR D'IMAGE --- */
#interactive-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow-y: hidden;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

#image-wrapper {
    height: 100vh;
    display: inline-block;
    position: relative;
    vertical-align: top;
}

#background-image {
    height: 100vh;
    width: auto;
    display: block;
    max-width: none;
}

#markers-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* --- MARKERS (POINTS) --- */
.marker-group {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

.marker-pin {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marker-label {
    color: white; font-weight: bold; font-size: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 10px; border-radius: 12px;
    white-space: nowrap; margin-top: 5px;
}

/* --- HEADER LABEL (COMMUN) --- */
#main-header {
    position: fixed;
    top: 20px; left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.header-label {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: none;
    pointer-events: auto;
}

.label-title {
    text-transform: uppercase;
    color: black;
    font-weight: bold;
}

/* --- INTERFACE BAS --- */
#container-logo {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1001;
}

#logo, #info {
    background: white;
    padding: 5px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex; align-items: center;
}

#logo img, #info img { height: 35px; }

/* --- 🟩 PAYSAGE (Landscape) --- */
@media (orientation: landscape) {

    #container-logo {
        bottom: 10px;
    }

    #background-image, #image-wrapper {
        width: 100vw;
        height: auto;
    }
    #interactive-container { overflow: hidden; }
    .label-title { font-size: 1.2rem; }
    #scroll-hint { display: none; }
}

/* --- 🟦 PORTRAIT (Mobile) --- */
@media (orientation: portrait) {

    #scroll-hint {
        font-size: 1.1rem; /* Réduit (était à 2.3rem) */
        padding: 10px 15px;
        bottom: 20%; /* Replacé plus bas pour ne pas gêner la vue */
        gap: 8px;
    }

    .arrow {
        font-size: 1rem;
        font-weight: normal;
    }

    /* Ajustement Titre Header */
    .label-title {
        font-size: 1.4rem;
    }

    /* Markers */
    .marker-pin {
        width: 35px;
        height: 35px;
    }

    .marker-label {
        font-size: 13px;
    }

    /* Pied de page */
    #logo img, #info img {
        height: 35px;
    }

        /* Scroll hint plus discret */
    #scroll-hint {
        font-size: 0.8rem; /* Réduit (était à 2.3rem) */
        padding: 5px 10px;
        bottom: 15%; /* Replacé plus bas pour ne pas gêner la vue */
        gap: 8px;
        display: flex;
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        color: white;
        border-radius: 50px;
        z-index: 9999;
        font-weight: bold;
        align-items: center;
        white-space: nowrap;
        pointer-events: none;
        animation: fadeInOutHint 5s forwards;}


    .header-label {
        padding: 0 30px;
        border-radius: 40px;
    }


    .arrow {
        font-size: 1.5rem;
        animation: pulseArrow 1s infinite alternate;
    }
}

/* --- ANIMATIONS --- */
@keyframes fadeInOutHint {
    0% { opacity: 0; visibility: hidden; }
    10% { opacity: 1; visibility: visible; }
    90% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes pulseArrow {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.3); opacity: 0.7; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255,255,255,0.5); }
    50% { box-shadow: 0 0 25px rgba(255,255,255,0.9); }
}
.marker-glow { animation: glow 2s ease-in-out infinite; }