/* =========================================================
   🎨 directory.css — Styles globaux pour l'accès
   ========================================================= */

/* =========================================================
   🎨 VARIABLES GLOBALES (Design Tokens)
   ========================================================= */
:root {
    /* Couleurs principales */
    --color-primary: #278FE2;          /* Bleu principal utilisé pour titres/links */
    --color-primary-dark: #1e3d7b;     /* Bleu foncé au survol */
    --color-dark-blue: #092851;        /* Bleu foncé pour boutons non-actifs */
    --color-orange: #f28c00;           /* Orange accent / département */
    --color-accent: #f57c00;           /* autre orange (breadcrumbs) */

    /* Textes et fonds */
    --color-text-dark: #333;
    --color-text-medium: #444;
    --color-text-light: #999;
    --color-background-light: #e0e0e0;
    --color-background-off-white: #f1f1f1;
    --color-row-even: #ffffff;
    --color-row-odd: #eeeeee;
    --color-row-hover: #d7dff2;

    /* Espacement */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;

    /* Rayons */
    --radius-sm: 10px;
    --radius-lg: 25px;

    /* Typographie */
    --font-family: 'Raleway', sans-serif;
    --font-size-sm: 12px;
    --font-size-md: 14px;
    --font-size-lg: 1.8rem;
}

/* =========================================================
   🧱 STRUCTURE GLOBALE
   ========================================================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding-top: 0 !important;
    font-family: var(--font-family);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.acces-layout {
    display: flex;
    flex-direction: column;
    width: min(90%, 1600px);
    margin: var(--spacing-lg) auto;
    padding: 0 var(--spacing-lg);
    box-sizing: border-box;
    background-color: #fff;
}

.content-align-logo {
    margin-top: var(--spacing-xl);
}

.bandeau-sites {
    background-color: rgba(40, 143, 226, 1);
    color: white;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bandeau-sites p {
    margin: 0;
}

#map {
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(40, 143, 226, 0.6);
}

.acces-container {
    display: flex;
    flex-direction: row;  /* <- assure les 2 colonnes côte à côte */
    gap: 40px;
    align-items: stretch;
    margin-top: 40px;
    margin-bottom: 60px;
}

.left-column {
    flex: 0 0 60%;
}

.right-column {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
}

.right-column #site-info {
    padding: 15px 0;
}

.site-photo-container {
    width: 94%;
    height: 400px; /* hauteur fixe, adapte à ton design */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

#site-list li {
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 5px;
    /*margin-bottom: 5px;*/
    transition: background-color 0.2s, color 0.2s;
    font-weight: 600;
    font-size: 14px;
}

#site-list li.hovered-site { color: orange; }
#site-list li.active-site { background-color: var(--color-primary); color: white; font-weight: 700; }
#site-list li.active-site:hover { background-color: var(--color-primary-dark); }

.right-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    flex-grow: 1;
    width: 94%
}

#site-list {
    margin: 0;
    padding: 0;
    font-weight: 900;
}

#site-list li {
    list-style: none;
}

/* Box d'infos */
.site-details-box {
    background: #288FE2;
    text-align: center;
    color: white;
    border-bottom-right-radius: 35px;
    padding: 20px;
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
    font-size: 0.9rem;
    min-height: 150px;
}
/* Le nom du site */
.vignette-name {
    display: block;          /* Obligatoire pour que les marges fonctionnent */
    font-weight: 600;        /* 600 c'est du "Semi-Bold" : moins gras que strong (700+) */
    font-family: 'Raleway', sans-serif;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;     /* Voilà ton espace ! C'est ton "super <br>" */
    text-transform: uppercase; /* Optionnel : un petit style pro */
}

/* L'adresse */
#detail-address {
    display: block;
    color: white;
    line-height: 1.6;        /* Aère les lignes de l'adresse elle-même */
    font-size: 0.95rem;
}

/* On ne touche plus au transform/scale ici ! */
.marker-highlight {
    filter: hue-rotate(160deg) brightness(1.4) !important;
    drop-shadow: 0 0 10px orange !important;
    z-index: 1000 !important;
}

@media (max-width: 768px) {
    .acces-layout {
        max-width: 100%;
    }

    .acces-container {
        display: flex !important;
        flex-direction: column; /* Empilement vertical */
    }

    .left-column, .right-column {
        order: 1 !important; /* La MAP */
        width: 100%;
    }

    /* On réduit la hauteur de la carte sur mobile pour ne pas "manger" tout l'écran */
    #map {
        height: 400px !important;
        margin-bottom: 20px;
    }

    .right-column {
        display: contents; /* MAGIE : la boîte disparaît mais garde ses enfants */
    }

    /* On s'assure que la photo est bien visible en haut des infos */
    .site-photo-container {
        order: 2;
        width: 100%;
        max-height: 250px !important;
    }

    /* La liste des sites et les détails s'empilent aussi */
    .right-wrapper {
        display: contents;
    }

    #site-list {
        order: 3; /* On peut mettre la liste après la photo */
        margin-top: 0px;
    }

    .site-details-box {
        order: 4; /* Les détails en dernier */
        margin-top: 0px;
        padding: 15px;
        border-radius: 10px;
    }



}