body {
    background-color: skyblue;
}

/* Admin — édition configuration */
.hermes-admin-config-page .card {
    border-radius: 0.5rem;
}

.hermes-admin-config-page .breadcrumb {
    --bs-breadcrumb-divider: '›';
}

.hermes-admin-config-page .form-control-color {
    width: 100%;
    max-width: 16rem;
    height: 2.75rem;
}

/* Admin liste des pages — sélecteur couleur de fond (cadre blanc + contour sombre) */
.hermes-admin-section-list .hermes-section-appearance .hermes-section-bgcolor-wrap {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem;
    border: 3px solid #212529;
    border-radius: 0.375rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hermes-admin-section-list .hermes-section-appearance .hermes-section-bgcolor-input {
    width: 3.5rem;
    min-width: 3.5rem;
    height: 1.5rem;
    padding: 0;
    margin: 0;
    border: 3px solid #212529;
    border-radius: 0.25rem;
    background-color: #fff;
    cursor: pointer;
}

.hermes-admin-section-list .hermes-section-appearance .hermes-section-bgcolor-input:focus {
    border-color: #000;
    outline: 3px solid #fff;
    outline-offset: 0;
    box-shadow: 0 0 0 2px #212529;
}

.hermes-admin-section-list .hermes-section-appearance .hermes-section-bgcolor-wrap:has(.hermes-section-bgcolor-input:disabled) {
    opacity: 0.6;
    background-color: #f8f9fa;
    border-color: #6c757d;
    box-shadow: none;
}

.hermes-admin-section-list .hermes-section-appearance .hermes-section-bgcolor-input:disabled {
    cursor: not-allowed;
    border-color: #6c757d;
}

/* Bande blanche entre le contour et la pastille (Chrome, Safari, Edge) */
.hermes-admin-section-list .hermes-section-appearance .hermes-section-bgcolor-input::-webkit-color-swatch-wrapper {
    padding: 3px;
    background-color: #fff;
    border-radius: 0.125rem;
}

.hermes-admin-section-list .hermes-section-appearance .hermes-section-bgcolor-input::-webkit-color-swatch {
    border: 2px solid #212529;
    border-radius: 0.125rem;
}

.hermes-admin-section-list .hermes-section-appearance .hermes-section-bgcolor-input::-moz-color-swatch {
    border: 2px solid #212529;
    border-radius: 0.125rem;
}

/* Chevrons navigation page (Hermes 2.2.7) */
.hermes-chevron {
    margin: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    line-height: 1;
}

.hermes-chevron--slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 3.25rem;
    pointer-events: auto;
    z-index: 9998;
}

.hermes-chevron--slot .hermes-chevron__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hermes-chevron--slot .hermes-chevron__link[hidden],
.hermes-chevron--slot .hermes-chevron__icon[hidden],
.hermes-chevron--slot .hermes-chevron__icon.d-none {
    display: none !important;
}

.hermes-chevron__link {
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}

.hermes-chevron__icon {
    font-size: 2rem;
    vertical-align: middle;
}

.hermes-chevron__icon--accueil {
    font-size: 5rem;
}

.hermes-chevron--accueil {
    position: fixed;
    z-index: 9999;
}

.hermes-section-bottom-anchor {
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Sections front : pas d’espace vertical entre blocs (gouttière .row, utilitaires my-sm-* du contenu). */
.hermes-front-sections > .row {
    --bs-gutter-y: 0;
}

.hermes-front-sections > .row > [class*='col-'] {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.hermes-front-sections > .row > [class*='col-'] > section {
    margin-top: 0;
    margin-bottom: 0;
}

@media (min-width: 576px) {
  /* Contenu libre : annule my-sm-* en bordure entre deux sections (ex. my-sm-5 = 3rem). */
  .hermes-front-sections > .row:not(:last-child) .post-content > *:last-child[class*='my-sm-'] {
    margin-bottom: 0 !important;
  }

  .hermes-front-sections > .row:not(:first-child) .post-content > *:first-child[class*='my-sm-'] {
    margin-top: 0 !important;
  }
}

/* Menu base : sticky-top sur <header> (hauteur = flux document, config nav_height sur <nav>) */
.hermes-layout-nav-base-fixed {
    align-items: stretch;
}

.hermes-nav-base-header {
    align-self: flex-start;
    flex-shrink: 0;
}

.hermes-locale-switcher--below {
    flex-shrink: 0;
}

.hermes-locale-switcher--below .nav-link {
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.hermes-locale-switcher--inline .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

@media (max-width: 991.98px) {
    .hermes-locale-switcher--inline {
        width: 100%;
        justify-content: center;
        padding-top: 0.25rem;
    }
}

/* Séparateur animé (AOS) sous l’entrée active du menu base (Hermes 2.2.7) */
.aos-nav-hr {
    opacity: 1;
}

/* Sous-menus imbriqués (niveau 3+) dans la navbar Bootstrap */
.navbar-nav .dropdown-menu {
    overflow: visible;
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu .dropend > .dropdown-menu {
        position: static;
        float: none;
        margin: 0;
        padding-left: 1rem;
        border: 0;
        box-shadow: none;
    }
}

/* Navbar base : barre mobile (logo + hamburger sur une ligne) */
.hermes-nav-mobile-bar {
    min-height: 2.75rem;
}

.hermes-nav-mobile-logo-link {
    min-width: 0;
}

.hermes-nav-mobile-logo {
    max-height: 2.75rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
}

.hermes-nav-left-toggler-mobile {
    z-index: 1045;
    margin-top: 0 !important;
}

/* Navbar menu gauche (offcanvas persistant desktop, Hermes 2.2.7 left / left_nav) */
@media (min-width: 992px) {
    body:has(#offcanvasDarkNavbar.show) .hermes-nav-menu-left-main {
        margin-left: var(--hermes-nav-left-width, 15%);
        transition: margin-left 0.2s ease;
    }
}

.hermes-nav-left-offcanvas--desktop {
    visibility: visible;
}

.hermes-nav-left-offcanvas .hermes-nav-left-btn-close {
    opacity: 1;
}

.hermes-nav-left-offcanvas .hermes-nav-left-submenu {
    border: 0;
    box-shadow: none;
}

.hermes-nav-left-offcanvas .hermes-nav-left-submenu-toggle .hermes-nav-left-chevron {
    transition: transform 0.2s ease;
}

.hermes-nav-left-offcanvas .hermes-nav-left-submenu-toggle[aria-expanded="true"] .hermes-nav-left-chevron {
    transform: rotate(180deg);
}

.post-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Folio liste : vignettes sur toute la largeur de la colonne */
#portfolio #folio .folio-thumb-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}



/* Carrousels gabarits section plein écran (carousel1/2) — slide active uniquement */
section[id] .carousel:not(.carousel-multi-item) .carousel-inner > .carousel-item.active {
    height: 100vh;
    min-height: 300px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Carrousel multi-item (carousel3 + contenu libre) : cartes, hauteur auto.
   Ne pas forcer display — Bootstrap masque les .carousel-item inactifs (display:none). */
.post-content .carousel-multi-item .carousel-item,
section[id] .carousel-multi-item .carousel-item {
    height: auto;
    min-height: 0;
    background: none;
}

.post-content .carousel-multi-item .carousel-inner,
section[id] .carousel-multi-item .carousel-inner {
    overflow: hidden;
}

.post-content .carousel-multi-item .controls-top,
section[id] .carousel-multi-item .controls-top {
    text-align: center;
}

.post-content .carousel-multi-item .controls-top .btn-floating,
section[id] .carousel-multi-item .controls-top .btn-floating {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

.post-content .carousel-multi-item .card-img-top,
section[id] .carousel-multi-item .card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-content img[data-img-src] {
    cursor: pointer;
}

.post-content #imageModal .modal-body {
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.post-content #imageModal #modalImage {
    max-height: min(85vh, 100%);
    max-width: 100%;
    object-fit: contain;
}

.post-content #imageModal .carousel-control-prev,
.post-content #imageModal .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    opacity: 1;
    z-index: 6;
    border: 0;
    background: transparent;
}

.post-content #imageModal .carousel-control-prev {
    left: 0.25rem;
}

.post-content #imageModal .carousel-control-next {
    right: 0.25rem;
}

.post-content .h-oswald {
    font-family: 'Oswald', Helvetica, Arial, Lucida, sans-serif;
}

.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}
.carousel-caption.left {
    left: 10%;
    right: auto;
    top: 15%;
    text-align: left;
}
.carousel-caption.right {
    right: 15%;
    left: auto;
    bottom: 15%;
    text-align: right;
}
.carousel-caption.center {
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    text-align: center;
}

/* Rectangle idéal dans chaque slide */
.img-box {
    width: 100%;
    height: 530px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* aligne l’image en haut */
    overflow: hidden;
}
/* Images entièrement visibles */
.img-box img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
