/* Atlas : intégration au thème Bootscore */

.wp-atlas-layout,
.wp-atlas-layout .row > * {
    min-width: 0;
}

.wp-atlas-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #fff;
    border: 1px solid #e9e9e7;
    border-radius: 16px;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.wp-atlas-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #242424;
    font-weight: 650;
    text-decoration: none;
}

.wp-atlas-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.wp-atlas-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-atlas-menu a {
    text-decoration: none;
}

.wp-atlas-layout .page-card,
.wp-atlas-layout .wp-atlas-card {
    background: #fff;
    border: 1px solid #e9e9e7;
    border-radius: 18px;
    padding: clamp(16px, 2.5vw, 35px);
    min-width: 0;
}

.wp-atlas-layout .entry-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    line-height: 1.13;
    font-size: clamp(1.9rem, 3vw, 3.3rem);
    margin: 0 0 22px;
}

.wp-atlas-layout .entry-content,
.wp-atlas-layout .entry {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wp-atlas-layout img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 575.98px) {
    .wp-atlas-layout .page-card,
    .wp-atlas-layout .wp-atlas-card {
        border-radius: 13px;
        padding: 15px;
    }
}



/* Atlas : structure Bootscore */

.wp-atlas-layout,
.wp-atlas-layout .row > * {
    min-width: 0;
}

.wp-atlas-main,
.wp-atlas-sidebar {
    min-width: 0;
}

/* Fond blanc de la page Atlas */
.wp-atlas-layout .wp-atlas-card {
    background: #fff;
    border: 1px solid #e9e9e7;
    border-radius: 18px;
    padding: clamp(16px, 2.5vw, 35px);
    min-width: 0;
}

/* Éviter les doubles conteneurs */
.wp-atlas-layout .page-card,
.wp-atlas-layout .stickywrap,
.wp-atlas-layout .stickywrap-inner {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

/* Titre principal */
.wp-atlas-layout .entry-header .entry-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3vw, 3.3rem);
    font-weight: 500;
    line-height: 1.13;
    margin: 0 0 22px;
}

/* Protection contre les débordements */
.wp-atlas-layout .als-public-localities-list,
.wp-atlas-layout .entry,
.wp-atlas-layout .als-locality-entry {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Sidebar */
.wp-atlas-sidebar .widget {
    margin-bottom: 16px;
}

/* Mobile */
@media (max-width: 991.98px) {
    .wp-atlas-layout .wp-atlas-card {
        padding: 18px;
    }
}

@media (max-width: 575.98px) {
    .wp-atlas-layout .wp-atlas-card {
        padding: 15px;
        border-radius: 13px;
    }
}


/* =========================================
   ATLAS - Fiches individuelles
   ========================================= */

/* Carte principale */
.wp-atlas-layout .wp-atlas-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    min-width: 0;
    overflow-wrap: break-word;
}

/* Sidebar : widgets sur fond blanc */
.wp-atlas-layout .wp-atlas-sidebar .widget {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Éviter les débordements */
.wp-atlas-layout .wp-atlas-main,
.wp-atlas-layout .wp-atlas-sidebar {
    min-width: 0;
}

.wp-atlas-layout img,
.wp-atlas-layout iframe {
    max-width: 100%;
}

/* Mobile */
@media (max-width: 767.98px) {
    .wp-atlas-layout .wp-atlas-card {
        padding: 15px;
        border-radius: 12px;
    }

    .wp-atlas-layout .wp-atlas-sidebar .widget {
        padding: 15px;
        border-radius: 12px;
    }
}

/* Grande carte Atlas : largeur maximale de l'écran */
#content.site-content.wp-atlas-fullwidth {
    max-width: none;
    width: 100%;
}

/* Éviter les débordements horizontaux */
.wp-atlas-fullwidth .wp-atlas-main,
.wp-atlas-fullwidth .wp-atlas-card {
    min-width: 0;
}