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

/* Folio serré (folio4) — images collées, sans gouttière */
.folio-serre {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
}

.folio-serre > [class*='col-'] {
    padding: 0;
    line-height: 0;
}

.folio-serre__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    vertical-align: bottom;
}



/*
 * 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;
}

/* Contenu libre — vitrine marketing (.content-showcase + modificateur de palette) */
.content-showcase {
    padding: 0.35rem 0.25rem 0.75rem;
    border-radius: 0.75rem;
}

.content-showcase--palette-cool {
    --showcase-bg-soft: linear-gradient(160deg, #e8f1ff 0%, #ede9fe 42%, #d1fae5 100%);
    --showcase-grad-hero: linear-gradient(135deg, #0d6efd 0%, #6610f2 55%, #20c997 100%);
    --showcase-grad-card-1: linear-gradient(145deg, #2563eb 0%, #7c3aed 100%);
    --showcase-grad-card-2: linear-gradient(145deg, #7c3aed 0%, #db2777 100%);
    --showcase-grad-card-3: linear-gradient(145deg, #0891b2 0%, #059669 100%);
    --showcase-grad-card-4: linear-gradient(145deg, #0891b2 0%, #059669 100%);
    --showcase-grad-band: linear-gradient(135deg, #1e40af 0%, #6d28d9 48%, #0d9488 100%);
    --showcase-grad-highlight: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #14b8a6 100%);
    --showcase-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%);
    --showcase-features-bg: linear-gradient(120deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.1) 50%, rgba(5, 150, 105, 0.08) 100%);
    --showcase-section-title: #312e81;
    --showcase-section-title-alt: #1e3a8a;
    --showcase-roadmap-title: #3730a3;
    --showcase-feature-list-border: rgba(99, 102, 241, 0.2);
    --showcase-feature-list-item-border: rgba(99, 102, 241, 0.12);
    --showcase-roadmap-border: rgba(99, 102, 241, 0.25);
    --showcase-card-shadow: rgba(30, 64, 175, 0.25);
    --showcase-card-shadow-hover: rgba(30, 64, 175, 0.38);
    --showcase-highlight-shadow: rgba(79, 70, 229, 0.2);
    --showcase-band-shadow: rgba(30, 64, 175, 0.35);
    background: var(--showcase-bg-soft);
}

.content-showcase--palette-vivid {
    --showcase-bg-soft: linear-gradient(160deg, #ffe4ff 0%, #fae8ff 38%, #ede9fe 68%, #cffafe 100%);
    --showcase-grad-hero: linear-gradient(135deg, #ff00ff 0%, #9333ea 38%, #4f46e5 62%, #06b6d4 100%);
    --showcase-grad-card-1: linear-gradient(145deg, #ff00ff 0%, #c026d3 48%, #7c3aed 100%);
    --showcase-grad-card-2: linear-gradient(145deg, #ec4899 0%, #ff00ff 55%, #a855f7 100%);
    --showcase-grad-card-3: linear-gradient(145deg, #7c3aed 0%, #6366f1 50%, #06b6d4 100%);
    --showcase-grad-card-4: linear-gradient(145deg, #0891b2 0%, #d946ef 52%, #ff00ff 100%);
    --showcase-grad-band: linear-gradient(135deg, #ff00ff 0%, #9333ea 38%, #4f46e5 62%, #06b6d4 100%);
    --showcase-grad-highlight: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #14b8a6 100%);
    --showcase-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%);
    --showcase-features-bg: linear-gradient(120deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.1) 50%, rgba(5, 150, 105, 0.08) 100%);
    --showcase-section-title: #312e81;
    --showcase-section-title-alt: #1e3a8a;
    --showcase-roadmap-title: #3730a3;
    --showcase-feature-list-border: rgba(99, 102, 241, 0.2);
    --showcase-feature-list-item-border: rgba(99, 102, 241, 0.12);
    --showcase-roadmap-border: rgba(99, 102, 241, 0.25);
    --showcase-card-shadow: rgba(192, 38, 211, 0.28);
    --showcase-card-shadow-hover: rgba(192, 38, 211, 0.38);
    --showcase-highlight-shadow: rgba(79, 70, 229, 0.2);
    --showcase-band-shadow: rgba(192, 38, 211, 0.35);
    background: var(--showcase-bg-soft);
}

.content-showcase--testimonials {
    --showcase-title-gradient: linear-gradient(90deg, #074591 0%, #7c3aed 45%, #ff00ff 100%);
    --showcase-title-gradient-icon: #074591;
}

.content-showcase-hero {
    background: var(--showcase-grad-hero);
}

.content-showcase-card {
    color: #fff;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem var(--showcase-card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2rem var(--showcase-card-shadow-hover);
}

.content-showcase-card .card-text,
.content-showcase-card .card-title {
    color: #fff;
}

.content-showcase-card code {
    color: #e0e7ff;
    background: rgba(255, 255, 255, 0.15);
}

.content-showcase-card-1 { background: var(--showcase-grad-card-1); }
.content-showcase-card-2 { background: var(--showcase-grad-card-2); }
.content-showcase-card-3 { background: var(--showcase-grad-card-3); }
.content-showcase-card-4 { background: var(--showcase-grad-card-4); }

.content-showcase-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);
}

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

.content-showcase-emphasis {
    color: #fff;
    font-weight: 700;
}

.content-showcase .card-text,
.content-showcase-list {
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.55;
}

.content-showcase-list {
    padding-left: 1.15rem;
    margin-bottom: 0;
}

.content-showcase-list li + li {
    margin-top: 0.65rem;
}

.content-showcase-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.content-showcase-link:hover {
    color: #fde68a;
}

.content-showcase-note {
    opacity: 0.88;
    font-size: 0.9rem;
}

.content-showcase-features {
    background: var(--showcase-features-bg);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
}

.content-showcase-features h2 {
    color: var(--showcase-section-title-alt);
}

.content-showcase-feature-list {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
    border: 1px solid var(--showcase-feature-list-border);
    backdrop-filter: blur(6px);
}

.content-showcase-feature-list .list-group-item {
    background: transparent;
    border-color: var(--showcase-feature-list-item-border);
}

.content-showcase-section-title {
    color: var(--showcase-section-title);
}

.content-showcase-band {
    background: var(--showcase-grad-band);
    color: #f8fafc;
    box-shadow: 0 0.65rem 2rem var(--showcase-band-shadow);
}

.content-showcase-band .content-showcase-card-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    letter-spacing: 0.04em;
}

.content-showcase-band .text-muted,
.content-showcase-band p {
    color: rgba(248, 250, 252, 0.92) !important;
}

.content-showcase-band code {
    color: #e0e7ff;
    background: rgba(255, 255, 255, 0.12);
}

.content-showcase-band-box,
.content-showcase-band-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);
    color: #fff;
}

.content-showcase-band-box {
    padding: 1.5rem;
}

.content-showcase-highlight-card {
    background: var(--showcase-grad-highlight);
    color: #fff;
    border: 0;
    box-shadow: 0 0.35rem 1rem var(--showcase-highlight-shadow);
}

.content-showcase-highlight-card strong {
    color: #fff;
}

.content-showcase-roadmap {
    background: var(--showcase-grad-roadmap);
    border: 1px solid var(--showcase-roadmap-border) !important;
}

.content-showcase-roadmap h2 {
    color: var(--showcase-roadmap-title);
}

.content-showcase-title-gradient {
    margin: 0;
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--showcase-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.content-showcase-title-gradient i {
    -webkit-text-fill-color: var(--showcase-title-gradient-icon);
    color: var(--showcase-title-gradient-icon);
}

.content-showcase-testimonial .card-body {
    padding: 1.35rem 1.5rem;
}

.content-showcase-avatar {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.content-showcase-author {
    color: #fff;
    font-weight: 700;
}

.content-showcase-author-role {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.content-showcase-rating {
    color: #fde047;
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.content-showcase-quote {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    line-height: 1.6;
    font-size: 1.02rem;
}

/* Contenu libre — démos GSAP (.gsap-demo, posts section « libre ») */
.gsap-demo-stat {
    text-align: center;
    padding: 1.25rem 0.75rem;
}

.gsap-demo-stat-value {
    display: block;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--showcase-accent, #0d6efd);
}

.gsap-demo-stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.gsap-demo-bar {
    height: 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--showcase-accent, #0d6efd) 18%, transparent);
    overflow: hidden;
}

.gsap-demo-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--showcase-accent, #0d6efd), color-mix(in srgb, var(--showcase-accent, #0d6efd) 65%, #fff));
}

.gsap-demo-hover-card {
    transition: box-shadow 0.2s ease;
    cursor: default;
}

.gsap-demo-hover-card.is-gsap-active {
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
}

/* Contenu libre — GSAP text reveal : classes fonctionnelles uniquement (typo / layout = Bootstrap ou vos classes) */
.gsap-text-reveal__body--lines {
    perspective: 500px;
}

.gsap-text-reveal__char,
.gsap-text-reveal__word,
.gsap-text-reveal__line {
    display: inline-block;
    will-change: transform, opacity;
}

.gsap-text-reveal__char.is-space {
    min-width: 0.3em;
}

.gsap-text-reveal__word + .gsap-text-reveal__word {
    margin-left: 0.28em;
}

.gsap-text-reveal__line {
    display: block;
}

/* Contenu libre — GSAP carousel (slide / fade + swipe) */
.gsap-carousel {
    position: relative;
}

.gsap-carousel__viewport {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.gsap-carousel__viewport.is-dragging {
    cursor: grabbing;
}

.gsap-carousel__track {
    will-change: transform;
}

.gsap-carousel--slide .gsap-carousel__track {
    display: flex;
}

.gsap-carousel--slide .gsap-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.gsap-carousel--fade .gsap-carousel__track {
    position: relative;
}

.gsap-carousel--fade .gsap-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.gsap-carousel--fade .gsap-carousel__slide.is-active {
    z-index: 2;
}

.gsap-carousel__viewport--fixed {
    min-height: min(52vw, 400px);
}

.gsap-carousel--fade .gsap-carousel__viewport--fixed .gsap-carousel__track {
    position: absolute;
    inset: 0;
}

.gsap-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    pointer-events: none;
}

.gsap-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.gsap-carousel__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.gsap-carousel__dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gsap-carousel-accent, #6c757d) 35%, transparent);
    cursor: pointer;
}

.gsap-carousel__dot.is-active {
    background: var(--gsap-carousel-accent, #0d6efd);
    transform: scale(1.15);
}

/* Contenu libre — Splide carousel (lib @splidejs/splide) */
.splide-carousel {
    --splide-carousel-arrow-size: 2.5rem;
    --splide-carousel-breakpoint: 992px;
    max-width: 100%;
}

/* Plein écran mobile : breakout symétrique du conteneur parent */
@media (max-width: 991.98px) {
    .splide-carousel--fullwidth {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .splide-carousel--ratio {
        --splide-carousel-height: min(62vw, 420px);
    }

    .splide-carousel .splide__track {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .splide-carousel .splide__slide {
        box-sizing: border-box;
        width: 100% !important;
        margin-right: 0 !important;
    }

    .splide-carousel--ratio .splide__slide img {
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        max-width: none;
    }

    .post-content .splide-carousel img {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }

    .splide-carousel--effect-focus .splide__slide:not(.is-active) img,
    .splide-carousel--effect-focus .splide__slide.is-active img {
        transform: none;
        opacity: 1;
    }
}

@media (min-width: 992px) {
    .splide-carousel .splide__slide {
        box-sizing: border-box;
    }

    .splide-carousel--effect-focus .splide__slide img {
        width: 100%;
        max-width: 100%;
        opacity: 1;
    }
}

.splide-carousel .splide__track {
    overflow: hidden;
}

.splide-carousel .splide__list {
    align-items: stretch;
}

.splide-carousel .splide__slide {
    display: flex;
    align-items: stretch;
}

/* Hauteur naturelle : image entière, sans recadrage (sections carousel1, etc.) */
.splide-carousel--natural .splide__list {
    align-items: center;
}

.splide-carousel--natural .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.splide-carousel--natural .splide__slide a {
    display: block;
    width: 100%;
}

.splide-carousel--natural .splide__slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 992px) {
    .splide-carousel--natural .splide__track,
    .splide-carousel--natural .splide__list {
        height: auto !important;
    }

    .splide-carousel--natural .splide__list {
        align-items: center;
    }
}

.splide-carousel--ratio {
    --splide-carousel-height: min(56vw, 360px);
}

@media (min-width: 992px) {
    .splide-carousel--ratio {
        --splide-carousel-height: min(20vw, 260px);
    }
}

.splide-carousel--ratio .splide__slide img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: var(--splide-carousel-height);
    object-fit: cover;
    transition: opacity var(--splide-carousel-speed, 700ms) cubic-bezier(0.33, 1, 0.68, 1);
}

@media (min-width: 992px) {
    .splide-carousel--ratio:not(.splide-carousel--effect-fade) .splide__slide img {
        border-radius: var(--bs-border-radius);
    }
}

.splide-carousel--effect-focus .splide__slide:not(.is-active) img {
    opacity: 0.72;
}

.splide-carousel--effect-focus .splide__slide.is-active img {
    opacity: 1;
}

.splide-carousel--effect-peek .splide__slide:not(.is-active) img {
    opacity: 0.78;
}

.splide-carousel--effect-peek .splide__slide.is-active img {
    opacity: 1;
}

.splide-carousel .splide__arrow {
    top: 50%;
    width: var(--splide-carousel-arrow-size);
    height: var(--splide-carousel-arrow-size);
    background: color-mix(in srgb, var(--splide-carousel-accent, #0d6efd) 90%, #fff);
    opacity: 0.94;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
    z-index: 3;
    box-shadow: 0 0.15rem 0.65rem rgb(0 0 0 / 22%);
}

.splide-carousel .splide__arrow:hover:not(:disabled),
.splide-carousel .splide__arrow:focus-visible {
    opacity: 1;
    transform: translateY(-50%);
}

.splide-carousel .splide__arrow--prev {
    left: 0.75rem;
}

.splide-carousel .splide__arrow--next {
    right: 0.75rem;
}

.splide-carousel .splide__arrow svg {
    fill: #fff;
}

.splide-carousel .splide__pagination {
    bottom: -2.25rem;
    left: 0;
    right: 0;
    padding: 0;
}

.splide-carousel .splide__pagination__page {
    background: color-mix(in srgb, var(--splide-carousel-accent, #6c757d) 35%, transparent);
    transition: background 0.25s ease;
}

.splide-carousel .splide__pagination__page.is-active {
    background: var(--splide-carousel-accent, #0d6efd);
    transform: none;
}

/* Contenu libre — GSAP letter reveal (lettres alternées haut / bas) */
.gsap-letter-reveal__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(88vh, 720px);
    padding: 2rem 1rem;
    overflow: hidden;
}

.gsap-letter-reveal__char {
    display: inline-block;
    opacity: 0;
    color: var(--gsap-letter-reveal-color, var(--legal-accent, currentColor));
    will-change: transform, opacity;
}

.gsap-letter-reveal__line {
    display: block;
    margin: 0;
    min-height: 1.1em;
    text-align: center;
    line-height: 1.08;
    letter-spacing: 0.14em;
    color: transparent;
    user-select: none;
}

/* Contenu libre — GSAP shape build (blocs + contour SVG) */
.gsap-shape-build__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72vh, 560px);
    padding: 2rem 1rem;
    overflow: hidden;
}

.gsap-shape-build__grid-wrap {
    position: relative;
    width: min(280px, 72vw);
    margin: 0 auto;
    aspect-ratio: 5 / 7;
}

.gsap-shape-build__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 5px;
    width: 100%;
    height: 100%;
}

.gsap-shape-build__block {
    opacity: 0;
    border-radius: 2px;
    background: color-mix(in srgb, var(--gsap-shape-build-color, var(--legal-accent, #e7393b)) 12%, #f3f4f6);
    border: 1px solid color-mix(in srgb, var(--gsap-shape-build-color, var(--legal-accent, #e7393b)) 22%, #e5e7eb);
    will-change: transform, opacity;
}

.gsap-shape-build__block.is-window {
    background: color-mix(in srgb, var(--gsap-shape-build-color, var(--legal-accent, #e7393b)) 35%, #fff);
}

.gsap-shape-build__block.is-structure {
    background: var(--gsap-shape-build-color, var(--legal-accent, #e7393b));
    border-color: var(--gsap-shape-build-color, var(--legal-accent, #e7393b));
}

.gsap-shape-build__svg {
    display: block;
    width: min(340px, 82vw);
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

.gsap-shape-build__path {
    fill: none;
    stroke: var(--gsap-shape-build-color, var(--legal-accent, #e7393b));
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    visibility: hidden;
}

/* Paire GSAP : forme + texte côte à côte (responsive, espacement réduit) */
.gsap-hero-split {
    margin-bottom: 0;
}

.gsap-hero-split .gsap-letter-reveal__stage,
.gsap-hero-split .gsap-shape-build__stage {
    min-height: min(26vh, 200px);
    padding: 0.4rem 0.35rem;
}

.gsap-hero-split .gsap-shape-build__svg {
    width: min(240px, 88%);
}

.gsap-hero-split .gsap-letter-reveal__line.display-2 {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
}

.gsap-hero-split .gsap-letter-reveal__line.display-6 {
    font-size: clamp(0.95rem, 3.6vw, 1.3rem);
    letter-spacing: 0.1em;
}

@media (min-width: 576px) {
    .gsap-hero-split .gsap-letter-reveal__stage,
    .gsap-hero-split .gsap-shape-build__stage {
        min-height: min(32vh, 280px);
        padding: 0.5rem 0.4rem;
    }

    .gsap-hero-split .gsap-shape-build__svg {
        width: min(220px, 95%);
    }
}

@media (min-width: 768px) {
    .gsap-hero-split .gsap-letter-reveal__stage,
    .gsap-hero-split .gsap-shape-build__stage {
        min-height: min(38vh, 320px);
        padding: 0.6rem 0.5rem;
    }
}

/* Contenu libre — pages légales (.legal-document + modificateur d’accent) */
.legal-document {
    padding: 0.35rem 0.5rem 1rem;
    border-radius: 0.75rem;
}

.legal-document--accent-red {
    --legal-accent: #e7393b;
    --legal-accent-dark: #b91c1c;
    --legal-accent-text: #7f1d1d;
    --legal-bg-soft: linear-gradient(165deg, #fff8f8 0%, #ffecec 42%, #fff5f5 100%);
    --legal-hero-bg: linear-gradient(135deg, #e7393b 0%, #c42f32 45%, #991b1b 100%);
    background: var(--legal-bg-soft);
}

.legal-document-hero {
    padding: 1.5rem 1.25rem;
    color: #fff;
    background: var(--legal-hero-bg);
}

.legal-document-hero h1 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.legal-document-lead {
    opacity: 0.95;
    font-size: 0.98rem;
    line-height: 1.5;
}

.legal-document-intro {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.legal-document-accordion .accordion-button {
    font-weight: 600;
    color: var(--legal-accent-text);
}

.legal-document-accordion .accordion-button:not(.collapsed) {
    color: var(--legal-accent-text);
    background-color: color-mix(in srgb, var(--legal-accent) 10%, transparent);
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--legal-accent) 12%, transparent);
}

.legal-document-accordion .accordion-button:focus {
    border-color: color-mix(in srgb, var(--legal-accent) 35%, transparent);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--legal-accent) 20%, transparent);
}

.legal-document-accordion .accordion-body {
    color: #374151;
    line-height: 1.6;
}

.legal-document-table th {
    width: 38%;
    color: var(--legal-accent-text);
    font-weight: 600;
    vertical-align: top;
    white-space: nowrap;
}

.legal-document-table td {
    vertical-align: top;
}

.legal-document a {
    color: var(--legal-accent);
    font-weight: 600;
}

.legal-document a:hover {
    color: var(--legal-accent-dark);
}

.legal-document-footer {
    color: #6b7280;
}
