body,
html {
    height: 100%;
    margin: 0;
}
#flashContainer {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    min-width: 300px;
}

/* Empêche tout scroll sur la page */
.rc-body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* La navbar garde sa hauteur naturelle */
.rc-navbar {
    flex-shrink: 0;

}

.site-name {
    color: #7ecfff;
    margin: 0;
    position: relative;
}

.site-by {
    font-size: 0.5rem;
    position: absolute;
    right: 0;
    top:1.5rem;
}

.site-version {
    font-size: 0.8rem;
    color : red;
}

/* Le bloc principal prend tout l'espace restant */
.rc-main {
    flex: 1 1 auto;
    min-height: 0; /* indispensable pour que flex respecte la hauteur dispo */
    position: relative;
    overflow: hidden;
}

/* --- Logo --- */
.rc-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .rc-logo {
        width: 40px;
        height: 30px;
    }
}

/* Sur mobile, le menu déplié s'aligne à droite */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* aligne tout le contenu à droite */
    }

    .navbar-nav {
        align-items: flex-end; /* aligne chaque item de la liste à droite */
        width: auto;
    }

    .navbar-nav .nav-item {
        text-align: right;
    }

    /* Le formulaire de recherche mobile (dans le collapse) garde une largeur raisonnable */
    .navbar-nav .rc-search-input {
        width: 200px;
    }
}



.rc-search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

#map {
    position: relative;
    height: 100%;
    width: 100%;  /* This means "100% of the width of its container", the .col-md-8 */
}

svg {
    width: 60px;
    height: 60px;
}

.wind-legend {
    width: 100%;
    margin-left: auto;
    height: 40px;
}

.gauge-container {
    position: relative;
    height: 20px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gauge-segment {
    flex: 1;
    height: 100%;
}

.labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: black;
    font-weight: 500;
    height: 16px;
    line-height: 16px;
}

.slope-forecast {
    font-size: 0.5rem;
}

.slope-forecast svg {
    width: 20px;
    height: 20px;
}

.rc-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
}

.rc-search-dropdown .dropdown-item {
    cursor: pointer;
    white-space: normal;
}

.rc-search-dropdown .dropdown-item.active,
.rc-search-dropdown .dropdown-item:hover {
    background-color: var(--bs-dropdown-link-hover-bg, #f8f9fa);
}

.rc-search-dropdown .rc-search-empty,
.rc-search-dropdown .rc-search-loading {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}


.leaflet-popup-content-wrapper , .leaflet-popup-tip{
    background-color: rgb(0 0 0 / 80%) !important;
    color: white;
}
.leaflet-popup-content-wrapper p {
    padding: 0;
    margin: 0;
    margin-bottom: 0.4rem;
}

.leaflet-popup-content h2 {
    color: #7ecfff;
    font-size: 1.2rem;
}

.leaflet-popup-close-button {
    color: white!important;
}

p.leaflet-popup-meanwind {
    color: lawngreen;
}

p.leaflet-popup-minmaxwind {
    color: coral;
    text-align: center;
    width: 100%;
}

p.leaflet-popup-date {

}

/* Honeypot : invisible pour un humain, mais accessible aux bots qui remplissent tout */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0;
    width: 0;
    overflow: hidden;
}



/***  Choix direction du vent ***/

.addOrient{
    width:100%;
    border:none;
    font-size:10px;
    color:#aaa;
    text-align:center;
    background:none;
}

.sector {
    position: relative;
}

.sec_child {
    position: absolute;
    top: 0;
}

.sec_dir {
    left: 0;
    width:300px;
    z-index:10;
}

.sec_cntr {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    z-index:11;
}


