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 plein écran (Hermes 2.2.7 : .carousel-item height + background-size).
 * Ne pas utiliser le raccourci « background: » ici : il remet background-image à none
 * et masque les url() définies en inline sur le slide (contenu libre migré).
 */
section[id] .carousel:not(.carousel-multi-item) .carousel-inner > .carousel-item,
.post-content .carousel:not(.carousel-multi-item) .carousel-inner > .carousel-item,
.carousel-item[style*="background-image"] {
    height: 100vh;
    min-height: 300px;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

section[id] .carousel:not(.carousel-multi-item) .carousel-inner > .carousel-item.active,
.post-content .carousel:not(.carousel-multi-item) .carousel-inner > .carousel-item.active,
.carousel-item.active[style*="background-image"] {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Carrousel multi-item (cartes) : hauteur auto — sauf slides avec fond image inline */
.post-content .carousel-multi-item .carousel-item:not([style*="background-image"]),
section[id] .carousel-multi-item .carousel-item:not([style*="background-image"]) {
    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;
}

.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;
}

/* Page vitrine Hermes CMS (contenu libre .hermes-cms-home — ex. hermes-cms.org) */
.hermes-cms-home {
    --hermes-grad-hero: linear-gradient(135deg, #0d6efd 0%, #6610f2 55%, #20c997 100%);
    --hermes-grad-soft: linear-gradient(160deg, #e8f1ff 0%, #ede9fe 42%, #d1fae5 100%);
    --hermes-grad-card-1: linear-gradient(145deg, #2563eb 0%, #7c3aed 100%);
    --hermes-grad-card-2: linear-gradient(145deg, #7c3aed 0%, #db2777 100%);
    --hermes-grad-card-3: linear-gradient(145deg, #0891b2 0%, #059669 100%);
    --hermes-grad-api: linear-gradient(135deg, #1e40af 0%, #6d28d9 48%, #0d9488 100%);
    --hermes-grad-why: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #14b8a6 100%);
    --hermes-grad-roadmap: linear-gradient(135deg, rgba(13, 110, 253, 0.12) 0%, rgba(102, 16, 242, 0.14) 50%, rgba(32, 201, 151, 0.12) 100%);
    padding: 0.25rem 0 1rem;
    background: var(--hermes-grad-soft);
    border-radius: 0.75rem;
}

.hermes-cms-home .hermes-home-hero {
    background: var(--hermes-grad-hero);
}

.hermes-cms-home .hermes-home-pillar {
    color: #fff;
    border: 0;
    box-shadow: 0 0.5rem 1.5rem rgba(30, 64, 175, 0.25);
}

.hermes-cms-home .hermes-home-pillar .card-text,
.hermes-cms-home .hermes-home-pillar .card-title {
    color: #fff;
}

.hermes-cms-home .hermes-home-pillar code {
    color: #e0e7ff;
    background: rgba(255, 255, 255, 0.15);
}

.hermes-cms-home .hermes-home-pillar-1 {
    background: var(--hermes-grad-card-1);
}

.hermes-cms-home .hermes-home-pillar-2 {
    background: var(--hermes-grad-card-2);
}

.hermes-cms-home .hermes-home-pillar-3 {
    background: var(--hermes-grad-card-3);
}

.hermes-cms-home .hermes-home-features-wrap {
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.1) 50%, rgba(5, 150, 105, 0.08) 100%);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
}

.hermes-cms-home .hermes-home-features-wrap h2 {
    color: #1e3a8a;
}

.hermes-cms-home .hermes-home-feature-list {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(6px);
}

.hermes-cms-home .hermes-home-feature-list .list-group-item {
    background: transparent;
    border-color: rgba(99, 102, 241, 0.12);
}

.hermes-cms-home .hermes-home-api {
    background: var(--hermes-grad-api);
    color: #f8fafc;
}

.hermes-cms-home .hermes-home-api .text-muted,
.hermes-cms-home .hermes-home-api p {
    color: rgba(248, 250, 252, 0.92) !important;
}

.hermes-cms-home .hermes-home-api code {
    color: #e0e7ff;
    background: rgba(255, 255, 255, 0.12);
}

.hermes-cms-home .hermes-home-api-box {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #fff;
}

.hermes-cms-home .hermes-home-why-title {
    color: #312e81;
}

.hermes-cms-home .hermes-home-why-card {
    background: var(--hermes-grad-why);
    color: #fff;
    border: 0;
    box-shadow: 0 0.35rem 1rem rgba(79, 70, 229, 0.2);
}

.hermes-cms-home .hermes-home-why-card strong {
    color: #fff;
}

.hermes-cms-home .hermes-home-roadmap {
    background: var(--hermes-grad-roadmap);
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
}

.hermes-cms-home .hermes-home-roadmap h2 {
    color: #3730a3;
}

/* Ateliers du Web (contenu libre .ateliers-du-web — les-ateliers-du-web.fr) */
.ateliers-du-web {
    --ateliers-grad-soft: linear-gradient(160deg, #ffe4ff 0%, #fae8ff 38%, #ede9fe 68%, #cffafe 100%);
    --ateliers-grad-1: linear-gradient(145deg, #ff00ff 0%, #c026d3 48%, #7c3aed 100%);
    --ateliers-grad-2: linear-gradient(145deg, #ec4899 0%, #ff00ff 55%, #a855f7 100%);
    --ateliers-grad-3: linear-gradient(145deg, #7c3aed 0%, #6366f1 50%, #06b6d4 100%);
    --ateliers-grad-4: linear-gradient(145deg, #0891b2 0%, #d946ef 52%, #ff00ff 100%);
    padding: 0.35rem 0.25rem 0.75rem;
    background: var(--ateliers-grad-soft);
    border-radius: 0.75rem;
}

.ateliers-du-web .ateliers-du-web-card {
    color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(192, 38, 211, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ateliers-du-web .ateliers-du-web-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2rem rgba(192, 38, 211, 0.38);
}

.ateliers-du-web .ateliers-du-web-card-1 {
    background: var(--ateliers-grad-1);
}

.ateliers-du-web .ateliers-du-web-card-2 {
    background: var(--ateliers-grad-2);
}

.ateliers-du-web .ateliers-du-web-card-3 {
    background: var(--ateliers-grad-3);
}

.ateliers-du-web .ateliers-du-web-card-4 {
    background: var(--ateliers-grad-4);
}

.ateliers-du-web .ateliers-du-web-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    margin: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.ateliers-du-web .ateliers-du-web-title {
    margin: 0 0 0.85rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.35;
}

.ateliers-du-web .ateliers-highlight {
    color: #fff;
    font-weight: 700;
}

.ateliers-du-web .card-text,
.ateliers-du-web .ateliers-du-web-list {
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.55;
}

.ateliers-du-web .ateliers-du-web-list {
    padding-left: 1.15rem;
    margin-bottom: 0;
}

.ateliers-du-web .ateliers-du-web-list li + li {
    margin-top: 0.65rem;
}

.ateliers-du-web .ateliers-du-web-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ateliers-du-web .ateliers-du-web-link:hover {
    color: #fde68a;
}

.ateliers-du-web .ateliers-du-web-note {
    opacity: 0.88;
    font-size: 0.9rem;
}

.ateliers-du-web .ateliers-du-web-apres {
    background: linear-gradient(135deg, #ff00ff 0%, #9333ea 38%, #4f46e5 62%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 0.65rem 2rem rgba(192, 38, 211, 0.35);
}

.ateliers-du-web .ateliers-du-web-apres .ateliers-du-web-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    letter-spacing: 0.04em;
}

.ateliers-du-web .ateliers-du-web-apres-item {
    padding: 1rem 1.1rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
}
