/* Thème de base du site public (Bootstrap 5). Couleur et polices : réglages du site (ThemeCss). */

/* Polices : texte, titres et accroches (réglages du site), remplaçables par bloc (classes cms-font-*, /fonts.css). */
.cms-block {
    font-family: var(--cms-font-body);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand {
    font-family: var(--cms-font-heading);
}

/* Lien « Aller au contenu » (premier élément de la page) : caché jusqu'au focus du clavier, puis par-dessus l'en-tête. */
.cms-skip-link:focus {
    background: var(--bs-body-bg);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.25);
    color: var(--bs-body-color);
    left: 0.75rem;
    outline: 3px solid var(--bs-primary);
    outline-offset: 2px;
    padding: 0.75rem 1rem;
    position: absolute;
    text-decoration: underline;
    top: 0.75rem;
    z-index: 2000;
}

/* Contenu atteint par ce lien : focus posé par le navigateur, sans cadre autour de toute la page. */
#main-content:focus {
    outline: none;
}

.site-header {
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

    .site-header .navbar-brand {
        font-weight: 600;
    }

.site-logo {
    max-height: 48px;
    max-width: 220px;
}

/* Taille du logo choisie dans les options de l'en-tête ; sur téléphone, 56 px au plus (menu replié). */
.site-logo-medium {
    max-height: 64px;
    max-width: 280px;
}

.site-logo-large {
    max-height: 80px;
    max-width: 320px;
}

@media (max-width: 991.98px) {
    .site-logo-medium,
    .site-logo-large {
        max-height: 56px;
    }
}

.site-header .nav-link.active {
    color: var(--bs-primary);
}

/* Sélecteur de langue : codes courts (FR, EN, ES), langue courante en gras. Toujours visible, même sur mobile. */
.site-languages {
    display: flex;
    font-size: 0.85rem;
    gap: 0.15rem;
    list-style: none;
    margin: 0 0 0 0.75rem;
    order: 3;
    padding: 0;
}

    .site-languages a,
    .site-languages .active {
        border-radius: 0.25rem;
        display: inline-block;
        letter-spacing: 0.04em;
        padding: 0.2rem 0.4rem;
    }

    .site-languages a {
        color: var(--bs-body-color);
        text-decoration: none;
    }

        .site-languages a:hover {
            background: rgba(var(--bs-body-color-rgb), 0.08);
        }

    .site-languages .active {
        color: var(--bs-primary);
        font-weight: 600;
    }

@media (max-width: 991.98px) {
    /* Mobile : à côté du bouton du menu, avant le menu déplié. */
    .site-languages {
        margin-left: auto;
        margin-right: 0.5rem;
        order: 1;
    }

    .site-header .navbar-toggler {
        order: 2;
    }

    .site-header .navbar-collapse {
        order: 4;
    }
}
/* En-tête transparent par-dessus la bannière ou le carrousel qui ouvre la page (body.header-overlay). */
.site-header-transparent {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1020;
}

    .site-header-transparent .nav-link.active {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 0.4em;
    }

.header-overlay main > .cms-hero:first-child {
    padding-top: calc(5rem + 72px);
}

.header-overlay main > .cms-carousel:first-child .cms-carousel-slide {
    padding-top: calc(4rem + 72px);
}

@media (max-width: 991.98px) {
    /* Menu ouvert sur mobile : fond sombre pour rester lisible par-dessus l'image. */
    .site-header-transparent .navbar-collapse.show {
        background: rgba(0, 0, 0, 0.88);
        border-radius: var(--bs-border-radius);
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
    }
}

/* Titres en majuscules (réglage du site) : h1 à h6, titres « display » des bannières. */
.site-headings-uppercase :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6) {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Menu en majuscules (réglage du site) */
.site-menu-uppercase .nav-link,
.site-menu-uppercase .dropdown-item {
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Bandeau coloré avec le titre de la page (couleur : ThemeCss) */
.site-title-band {
    padding: 3rem 0;
}

    .site-title-band h1 {
        margin: 0;
    }

/* Sous-menus sans bootstrap.js : au survol ou au clavier sur grand écran, toujours dépliés sur mobile. */
@media (min-width: 992px) {
    .site-header .dropdown:hover > .dropdown-menu,
    .site-header .dropdown:focus-within > .dropdown-menu,
    .site-header .dropdown.cms-open > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

        /* Fermé par Échap (site.js) jusqu'à ce que la souris ou le focus quitte l'élément. */
        .site-header .dropdown.cms-dropdown-closed > .dropdown-menu {
            display: none;
        }
}

@media (max-width: 991.98px) {
    .site-header .dropdown-menu {
        border: 0;
        display: block;
        padding-left: 1rem;
        position: static;
    }

    .site-header .dropdown-toggle::after {
        display: none;
    }
}

/* Pied de page : blocs de la page système du pied de page, puis le copyright (SiteFooterBlock). */
.site-footer {
    background: var(--bs-tertiary-bg);
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    padding: 0.5rem 0 1.5rem;
}

    .site-footer a {
        color: inherit;
    }

    .site-footer p {
        margin-bottom: 0.5rem;
    }

.site-copyright {
    border-top: 1px solid var(--bs-border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    margin: 0.5rem 0 0;
    padding-top: 1rem;
}

/* Bloc Logo du site : le logo pour fond foncé remplace le logo sur un fond foncé (pied de page ou fond du bloc). */
.cms-site-logo {
    margin-bottom: 0.5rem;
}

.cms-site-logo-image {
    /* Attributs width et height (place réservée) : largeur et hauteur automatiques, sinon le logo est étiré par les deux limites. */
    height: auto;
    max-width: 220px;
    width: auto;
}

.cms-site-logo-small .cms-site-logo-image {
    max-height: 48px;
}

.cms-site-logo-medium .cms-site-logo-image {
    max-height: 80px;
}

.cms-site-logo-large .cms-site-logo-image {
    max-height: 120px;
}

.cms-logo-on-dark,
[data-bs-theme="dark"] .cms-logo-on-light {
    display: none;
}

[data-bs-theme="dark"] .cms-logo-on-dark {
    display: inline;
}

.cms-site-name {
    color: var(--bs-body-color);
    font-size: 1.125rem;
    font-weight: 600;
}

/* Bloc Menu du pied de page */
.cms-footer-menu li + li {
    margin-top: 0.35rem;
}

.cms-footer-menu-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}

    .cms-footer-menu-inline li + li {
        margin-top: 0;
    }

/* Icônes intégrées (SvgIcons) : taille du texte, couleur du texte */
.cms-icon {
    flex-shrink: 0;
    height: 1em;
    vertical-align: -0.125em;
    width: 1em;
}

.site-contact-line {
    align-items: baseline;
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.site-contact-icon {
    opacity: 0.7;
    transform: translateY(0.1em);
}

.site-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .site-social a {
        align-items: center;
        border: 1px solid currentColor;
        border-radius: 50%;
        display: inline-flex;
        height: 2.25rem;
        justify-content: center;
        opacity: 0.85;
        width: 2.25rem;
    }

        .site-social a:hover,
        .site-social a:focus-visible {
            opacity: 1;
        }

/* Retour en haut (site.js ajoute is-visible après un peu de défilement) */
.back-to-top {
    align-items: center;
    background: var(--bs-primary);
    border-radius: 50%;
    bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: #fff;
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.75rem;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 1.25rem;
    transition: opacity 0.2s;
    width: 2.75rem;
    z-index: 1030;
}

    .back-to-top.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .back-to-top:hover,
    .back-to-top:focus-visible {
        color: #fff;
        filter: brightness(0.9);
    }

    .back-to-top:focus-visible {
        opacity: 1;
        outline: 3px solid var(--bs-primary);
        outline-offset: 3px;
        pointer-events: auto;
    }

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Fond « couleur secondaire » d'un bloc (réglage du site) */
.cms-bg-secondary {
    background: var(--cms-secondary, var(--bs-secondary-bg));
    color: var(--cms-on-secondary, inherit);
}

    .cms-bg-secondary a:not(.btn) {
        color: inherit;
        text-decoration: underline;
    }

/* Blocs */

.cms-hero {
    background: var(--bs-tertiary-bg);
    overflow: hidden;
    padding: 5rem 0;
    position: relative;
}

    .cms-hero .cms-hero-image {
        height: 100%;
        inset: 0;
        object-fit: cover;
        position: absolute;
        width: 100%;
    }

    .cms-hero .cms-hero-content {
        position: relative;
    }

/* Hauteur de la bannière (bloc) : contenu centré verticalement. */
.cms-hero-medium,
.cms-hero-large,
.cms-hero-full {
    align-items: center;
    display: flex;
}

    .cms-hero-medium > .cms-hero-content,
    .cms-hero-large > .cms-hero-content,
    .cms-hero-full > .cms-hero-content {
        width: 100%;
    }

.cms-hero-medium {
    min-height: 400px;
}

.cms-hero-large {
    min-height: 70vh;
}

.cms-hero-full {
    min-height: 100vh;
    min-height: 100svh;
}

.cms-hero-has-image {
    color: #fff;
}

    .cms-hero-has-image::after {
        background: rgba(0, 0, 0, 0.45);
        content: "";
        inset: 0;
        position: absolute;
    }

    .cms-hero-has-image .cms-hero-content {
        z-index: 1;
    }

/* Carrousel : diapositives empilées dans la même case de grille, fondu entre elles (wwwroot/js/site.js). */

.cms-carousel {
    background: var(--bs-dark);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.cms-carousel-slides {
    display: grid;
}

/* Diapositives empilées (Carrousel, Témoignages en carrousel) : seule la diapositive active est visible. */
.cms-carousel-slide {
    grid-area: 1 / 1;
    opacity: 0;
    position: relative;
    transition: opacity 0.7s ease, visibility 0.7s;
    visibility: hidden;
}

    .cms-carousel-slide.is-active {
        opacity: 1;
        visibility: visible;
    }

.cms-carousel .cms-carousel-slide {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 4rem 0 5rem;
}

    .cms-carousel .cms-carousel-slide::after {
        background: rgba(0, 0, 0, 0.45);
        content: "";
        inset: 0;
        position: absolute;
    }

.cms-carousel-image {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

/* Photo entière : sans recadrage, sur le fond foncé du carrousel ; assombrie seulement sous un texte. */
.cms-carousel-whole .cms-carousel-image {
    object-fit: contain;
}

    .cms-carousel-whole .cms-carousel-slide:not(.cms-carousel-slide-text)::after {
        content: none;
    }

.cms-carousel-content {
    position: relative;
    z-index: 1;
}

.cms-carousel-medium .cms-carousel-slide {
    min-height: 400px;
}

.cms-carousel-large .cms-carousel-slide {
    min-height: 70vh;
}

.cms-carousel-full .cms-carousel-slide {
    min-height: 100vh;
    min-height: 100svh;
}

.cms-carousel-arrow,
.cms-carousel-pause,
.cms-carousel-dot {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    cursor: pointer;
    padding: 0;
}

    .cms-carousel-arrow:hover,
    .cms-carousel-pause:hover,
    .cms-carousel-dot:hover {
        background: rgba(0, 0, 0, 0.6);
    }

    .cms-carousel-arrow:focus-visible,
    .cms-carousel-pause:focus-visible,
    .cms-carousel-dot:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 2px;
    }

.cms-carousel-arrow {
    border-radius: 50%;
    height: 3rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    z-index: 2;
}

.cms-carousel-prev {
    left: 1rem;
}

.cms-carousel-next {
    right: 1rem;
}

.cms-carousel-arrow svg,
.cms-carousel-pause svg {
    fill: none;
    height: 1.25rem;
    stroke: currentColor;
    stroke-width: 2;
    width: 1.25rem;
}

.cms-carousel-pause svg {
    fill: currentColor;
    stroke: none;
}

.cms-carousel-controls {
    align-items: center;
    bottom: 1.25rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 2;
}

.cms-carousel-pause {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    margin-right: 0.5rem;
    width: 2rem;
}

    .cms-carousel-pause .cms-icon-play,
    .cms-carousel-pause.is-paused .cms-icon-pause {
        display: none;
    }

    .cms-carousel-pause.is-paused .cms-icon-play {
        display: inline;
    }

.cms-carousel-dot {
    border-radius: 50%;
    height: 0.875rem;
    width: 0.875rem;
}

    .cms-carousel-dot[aria-current="true"] {
        background: #fff;
    }

@media (max-width: 575.98px) {
    .cms-carousel-arrow {
        height: 2.5rem;
        width: 2.5rem;
    }

    .cms-carousel-prev {
        left: 0.5rem;
    }

    .cms-carousel-next {
        right: 0.5rem;
    }

    .cms-carousel-content {
        padding: 0 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cms-carousel-slide {
        transition: none;
    }
}

/* Titre de section : accroche, titre, séparateur */

.cms-eyebrow {
    color: var(--bs-primary);
    font-family: var(--cms-font-accent);
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.cms-section-title {
    margin-bottom: 0;
}

.cms-separator {
    background: var(--bs-primary);
    border-radius: 2px;
    height: 3px;
    margin: 1rem 0;
    width: 60px;
}

.text-end .cms-separator {
    margin-left: auto;
    margin-right: 0;
}

.text-center .cms-separator {
    margin-left: auto;
    margin-right: auto;
}

.cms-section-subtitle {
    margin-bottom: 0;
}

/* Sous-titre mis en valeur (option du bloc) : police des titres, couleur principale ; sur un fond foncé ou coloré, la
   couleur du texte du fond (la couleur principale y serait peu lisible). */
.cms-section-subtitle-highlight {
    color: var(--bs-primary);
    font-family: var(--cms-font-heading);
    font-weight: 500;
}

    :is(.text-white, [data-bs-theme=dark]) .cms-section-subtitle-highlight {
        color: inherit;
    }

.site-headings-uppercase .cms-section-subtitle-highlight {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Fond couleur principale : accroche et séparateur dans la couleur du texte. */
.cms-bg-primary .cms-eyebrow {
    color: inherit;
}

.cms-bg-primary .cms-separator {
    background: currentColor;
}

/* Boutons */

.cms-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.text-end .cms-buttons {
    justify-content: flex-end;
}

.text-center .cms-buttons {
    justify-content: center;
}

/* Cartes de services */

.cms-card .card-img-top {
    aspect-ratio: 4 / 3;
    height: auto; /* attributs width et height (place réservée) : sinon image étirée à la hauteur de l'attribut */
    object-fit: cover;
}

/* FAQ : <details> natif */

.cms-faq {
    border-top: 1px solid var(--bs-border-color);
}

.cms-faq-item {
    border-bottom: 1px solid var(--bs-border-color);
}

    .cms-faq-item summary {
        cursor: pointer;
        font-weight: 600;
        list-style: none;
        padding: 1rem 2rem 1rem 0;
        position: relative;
    }

        .cms-faq-item summary::-webkit-details-marker {
            display: none;
        }

        .cms-faq-item summary::after {
            content: "+";
            font-size: 1.5rem;
            font-weight: 400;
            line-height: 1;
            position: absolute;
            right: 0.25rem;
            top: 0.85rem;
        }

    .cms-faq-item[open] summary::after {
        content: "−";
    }

    .cms-faq-item summary:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: 2px;
    }

.cms-faq-answer {
    padding-bottom: 1rem;
}

/* Témoignages */

.cms-testimonial {
    margin: 0;
}

.cms-testimonial-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.cms-testimonial-quote {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    position: relative;
}

    .cms-testimonial-quote::before {
        color: var(--bs-primary);
        content: "\201C";
        display: block;
        font-family: Georgia, serif;
        font-size: 3rem;
        height: 2rem;
        line-height: 1;
    }

    .cms-testimonial-quote p {
        margin: 0;
    }

.cms-testimonial-author {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.cms-testimonial-photo {
    border-radius: 50%;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

.cms-stars {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.cms-star-on {
    color: #f5a623;
}

.cms-star-off {
    color: var(--bs-border-color);
}

/* Témoignages en carrousel : un témoignage centré, commandes en dessous, couleurs du texte. */
.cms-testimonials-slider {
    margin: 0 auto;
    max-width: 760px;
    text-align: center;
}

    .cms-testimonials-slider .cms-testimonial-author {
        justify-content: center;
        text-align: left;
    }

    .cms-testimonials-slider .cms-testimonial-quote {
        font-size: 1.25rem;
    }

.cms-carousel-controls-inline {
    margin-top: 1.5rem;
    position: static;
}

    .cms-carousel-controls-inline .cms-carousel-arrow {
        height: 2.25rem;
        position: static;
        transform: none;
        width: 2.25rem;
    }

    .cms-carousel-controls-inline .cms-carousel-arrow,
    .cms-carousel-controls-inline .cms-carousel-pause,
    .cms-carousel-controls-inline .cms-carousel-dot {
        background: transparent;
        border-color: var(--bs-border-color);
        color: var(--bs-body-color);
    }

        .cms-carousel-controls-inline .cms-carousel-arrow:hover,
        .cms-carousel-controls-inline .cms-carousel-pause:hover,
        .cms-carousel-controls-inline .cms-carousel-dot:hover {
            background: var(--bs-tertiary-bg);
        }

        .cms-carousel-controls-inline .cms-carousel-dot {
            border-color: var(--bs-secondary-color);
        }

        .cms-carousel-controls-inline .cms-carousel-dot[aria-current="true"] {
            background: var(--bs-primary);
            border-color: var(--bs-primary);
        }

        .cms-carousel-controls-inline :focus-visible {
            outline-color: var(--bs-primary);
        }

/* Liste avec icônes */

.cms-icon-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cms-icon-item {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
}

.cms-icon-item-icon {
    color: var(--bs-primary);
    font-size: 1.6rem;
    margin-top: 0.1rem;
}

.cms-bg-primary .cms-icon-item-icon,
.cms-bg-secondary .cms-icon-item-icon {
    color: inherit;
}

/* Logos partenaires */

.cms-logos {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.text-end .cms-logos {
    justify-content: flex-end;
}

.text-start .cms-logos {
    justify-content: flex-start;
}

.cms-logos img {
    /* Attributs width et height : largeur et hauteur automatiques, sinon le cadre garde la place des deux limites (logo plus petit au milieu d'un vide). */
    height: auto;
    max-width: 200px;
    width: auto;
}

.cms-logos-small img {
    max-height: 40px;
}

.cms-logos-medium img {
    max-height: 64px;
}

.cms-logos-large img {
    max-height: 96px;
}

.cms-logos-grayscale img {
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s, opacity 0.2s;
}

.cms-logos-grayscale a:hover img,
.cms-logos-grayscale a:focus-visible img {
    filter: none;
    opacity: 1;
}

/* Mosaïque : tuiles carrées, photos et textes (bord à bord en pleine largeur) */

.cms-block-mosaic > .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.cms-mosaic-tile {
    aspect-ratio: 1;
    overflow: hidden;
}

.cms-mosaic-img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cms-mosaic-text {
    align-items: center;
    background: var(--bs-tertiary-bg);
    display: flex;
    justify-content: center;
    padding: 2rem;
}

    .cms-mosaic-text p {
        margin-bottom: 1.25rem;
    }

/* Sur fond clair, la tuile texte prend le fond de la page pour garder l'alternance. */
.bg-body-tertiary .cms-mosaic-text {
    background: var(--bs-body-bg);
}

@media (max-width: 575.98px) {
    .cms-mosaic-text {
        aspect-ratio: auto;
    }
}

/* Horaires */

.cms-hours {
    margin: 0;
    max-width: 480px;
}

.text-end .cms-hours {
    margin-left: auto;
    margin-right: 0;
}

.text-center .cms-hours {
    margin-left: auto;
    margin-right: auto;
}

.cms-hours-row {
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.5rem 0;
}

    .cms-hours-row dt {
        font-weight: 600;
    }

    .cms-hours-row dd {
        margin: 0;
        text-align: right;
    }

.cms-hours-note {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
}

/* Citation */

.cms-quote-text {
    font-family: var(--cms-font-heading);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.4;
    margin: 0 auto 1rem;
    max-width: 820px;
}

    .cms-quote-text::before {
        color: var(--bs-primary);
        content: "\201C";
        display: block;
        font-family: Georgia, serif;
        font-size: 4rem;
        height: 2.5rem;
        line-height: 1;
    }

    .cms-quote-text p {
        margin: 0;
    }

.cms-quote-author cite {
    color: var(--bs-secondary-color);
    font-style: normal;
}

/* Bandeau d'annonce */

.cms-announcement {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.cms-block-announcement a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.cms-announcement-warning {
    background: #fff3cd;
    color: #664d03;
}

/* Tableau de forfaits */

.cms-plan {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: relative;
}

.cms-plan-highlighted {
    border: 2px solid var(--bs-primary);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.cms-plan-badge {
    background: var(--bs-primary);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    left: 50%;
    padding: 0.25rem 0.85rem;
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.cms-plan-price {
    margin-bottom: 0.75rem;
}

.cms-plan-amount {
    font-family: var(--cms-font-heading);
    font-size: 2.25rem;
    font-weight: 700;
}

.cms-plan-period,
.cms-plan-description {
    color: var(--bs-secondary-color);
}

.cms-plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .cms-plan-features li {
        display: flex;
        gap: 0.5rem;
        padding: 0.3rem 0;
    }

.cms-plan-check {
    color: var(--bs-primary);
    margin-top: 0.2em;
}

/* Documents à télécharger */

.cms-documents {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cms-document {
    align-items: center;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    color: inherit;
    display: flex;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

    .cms-document:hover,
    .cms-document:focus-visible {
        background: var(--bs-tertiary-bg);
    }

.cms-document-icon {
    color: #c0392b;
    font-size: 1.6rem;
}

.cms-document-text {
    flex: 1;
}

.cms-document-title {
    font-weight: 600;
}

.cms-document-details,
.cms-document-description {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

.cms-document-description {
    display: block;
}

.cms-document-download {
    color: var(--bs-primary);
}

/* Bannière vidéo : vidéo couvrante, voile sombre, bouton pause en bas à droite */

.cms-video-hero {
    align-items: center;
    background: var(--bs-dark);
    color: #fff;
    display: flex;
    overflow: hidden;
    position: relative;
}

.cms-video-hero-medium {
    min-height: 400px;
}

.cms-video-hero-large {
    min-height: 70vh;
}

.cms-video-hero-full {
    min-height: 100vh;
    min-height: 100svh;
}

.cms-video-hero-media {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.cms-video-hero::after {
    background: rgba(0, 0, 0, 0.45);
    content: "";
    inset: 0;
    position: absolute;
}

.cms-video-hero-content {
    padding-bottom: 4rem;
    padding-top: 4rem;
    position: relative;
    z-index: 1;
}

.cms-video-hero-pause {
    bottom: 1.25rem;
    position: absolute;
    right: 1.25rem;
    z-index: 2;
}

.header-overlay main > .cms-video-hero:first-child .cms-video-hero-content {
    padding-top: calc(4rem + 72px);
}

/* Galerie : visionneuse (dialog natif) */

.cms-gallery-link {
    cursor: zoom-in;
    display: block;
}

.cms-lightbox {
    background: transparent;
    border: 0;
    height: 100vh;
    max-height: none;
    max-width: none;
    padding: 0;
    width: 100vw;
}

    .cms-lightbox::backdrop {
        background: rgba(0, 0, 0, 0.9);
    }

.cms-lightbox-figure {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    margin: 0;
    padding: 3.5rem 4.5rem;
    pointer-events: none;
}

    .cms-lightbox-figure img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        pointer-events: auto;
    }

    .cms-lightbox-figure figcaption {
        color: #fff;
        margin-top: 0.75rem;
        text-align: center;
    }

.cms-lightbox-close,
.cms-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 1.5rem;
    height: 3rem;
    justify-content: center;
    position: fixed;
    width: 3rem;
    z-index: 1;
}

    .cms-lightbox-close:hover,
    .cms-lightbox-nav:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .cms-lightbox-close:focus-visible,
    .cms-lightbox-nav:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 2px;
    }

.cms-lightbox-close {
    right: 1rem;
    top: 1rem;
}

.cms-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.cms-lightbox-prev {
    left: 1rem;
}

.cms-lightbox-next {
    right: 1rem;
}

@media (max-width: 575.98px) {
    .cms-lightbox-figure {
        padding: 3.5rem 0.5rem;
    }

    .cms-lightbox-nav {
        bottom: 1rem;
        top: auto;
        transform: none;
    }
}

/* Onglets (site.js ajoute is-enhanced ; sans script, contenus l'un sous l'autre avec leur titre) */

.cms-tablist {
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.cms-tab {
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    color: inherit;
    font-weight: 600;
    margin-bottom: -1px;
    padding: 0.6rem 1rem;
}

    .cms-tab[aria-selected="true"] {
        border-bottom-color: var(--bs-primary);
        color: var(--bs-primary);
    }

    .cms-tab:focus-visible {
        outline: 2px solid var(--bs-primary);
        outline-offset: -2px;
    }

.cms-tabs.is-enhanced .cms-tab-heading {
    display: none;
}

.cms-tabs:not(.is-enhanced) .cms-tabpanel + .cms-tabpanel {
    margin-top: 1.5rem;
}

/* Avant / après : séparation à --ba-position (site.js), curseur range transparent par-dessus */

.cms-before-after {
    --ba-position: 50%;
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
    position: relative;
    user-select: none;
}

.cms-ba-after {
    display: block;
    height: auto; /* attributs width et height (place réservée) : proportions gardées */
    width: 100%;
}

.cms-ba-before {
    clip-path: inset(0 calc(100% - var(--ba-position)) 0 0);
    inset: 0;
    position: absolute;
}

    .cms-ba-before img {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

.cms-ba-label {
    background: rgba(0, 0, 0, 0.55);
    border-radius: var(--bs-border-radius);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    position: absolute;
    top: 1rem;
}

.cms-ba-label-before {
    left: 1rem;
}

.cms-ba-label-after {
    right: 1rem;
}

.cms-ba-handle {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.35);
    color: #212529;
    display: flex;
    height: 2.75rem;
    justify-content: center;
    left: var(--ba-position);
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2.75rem;
}

    .cms-ba-handle::before {
        background: #fff;
        bottom: -100vh;
        content: "";
        left: 50%;
        position: absolute;
        top: -100vh;
        transform: translateX(-50%);
        width: 3px;
        z-index: -1;
    }

.cms-ba-range {
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    height: 100%;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.cms-before-after:has(.cms-ba-range:focus-visible) .cms-ba-handle {
    outline: 3px solid var(--bs-primary);
    outline-offset: 3px;
}

/* Sous-pages : la carte entière est cliquable (stretched-link) */

.cms-subpage:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
}

.cms-subpage .card-title a {
    color: inherit;
    text-decoration: none;
}

.cms-subpage-more {
    color: var(--bs-primary);
    font-weight: 600;
}

/* Équipe */

.cms-team-photo {
    aspect-ratio: 1;
    border-radius: 50%;
    height: auto; /* attributs width et height (place réservée) : sinon cercle étiré en ovale */
    margin-bottom: 1rem;
    max-width: 180px;
    object-fit: cover;
    width: 70%;
}

.cms-team-initials {
    align-items: center;
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    display: inline-flex;
    font-family: var(--cms-font-heading);
    font-size: 2.5rem;
    justify-content: center;
}

.cms-team-role {
    color: var(--bs-secondary-color);
    font-style: italic;
    margin-bottom: 0.75rem;
}

/* Liste de prix : nom ..... prix */

.cms-price-category {
    border-bottom: 2px solid var(--bs-primary);
    display: inline-block;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.25rem;
}

.cms-price-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .cms-price-list li {
        padding: 0.5rem 0;
    }

.cms-price-row {
    align-items: baseline;
    display: flex;
    gap: 0.5rem;
}

.cms-price-name {
    font-weight: 600;
}

.cms-price-dots {
    border-bottom: 2px dotted var(--bs-border-color);
    flex: 1;
    min-width: 1rem;
    transform: translateY(-0.25em);
}

.cms-price-value {
    font-weight: 600;
    white-space: nowrap;
}

.cms-price-detail {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

.cms-price-note {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    margin: 1rem 0 0;
}

/* Chiffres clés : le chiffre au-dessus de son libellé */

.cms-stat {
    display: flex;
    flex-direction: column-reverse;
}

.cms-stat-value {
    color: var(--bs-primary);
    font-family: var(--cms-font-heading);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.cms-stat-label {
    font-weight: 400;
}

.cms-bg-primary .cms-stat-value,
.cms-bg-dark .cms-stat-value,
.cms-bg-image .cms-stat-value {
    color: inherit;
}

/* Étapes */

.cms-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cms-step-number {
    align-items: center;
    background: var(--bs-primary);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 700;
    height: 3rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 3rem;
}

.cms-bg-primary .cms-step-number {
    background: currentColor;
    color: var(--bs-primary);
}

/* Options de mise en page des blocs (BlockHtml.OpenSection) */

.cms-container-narrow {
    max-width: 760px;
}

/* Bloc étroit à gauche ou à droite (ou dans une colonne de section) : une seule colonne de grille, placée au début, au centre ou à la fin. */
.cms-narrow-start,
.cms-narrow-center,
.cms-narrow-end {
    display: grid;
    grid-template-columns: minmax(0, 736px);
}

.cms-narrow-start {
    justify-content: start;
}

.cms-narrow-center {
    justify-content: center;
}

.cms-narrow-end {
    justify-content: end;
}

.cms-pt-lg {
    padding-top: 5rem !important;
}

.cms-pb-lg {
    padding-bottom: 5rem !important;
}

.cms-pt-xl {
    padding-top: 8rem !important;
}

.cms-pb-xl {
    padding-bottom: 8rem !important;
}

/* Bloc en boîte : l'espacement devient une marge (voir BlockHtml.ToMargins). */
.cms-mt-lg {
    margin-top: 5rem !important;
}

.cms-mb-lg {
    margin-bottom: 5rem !important;
}

.cms-mt-xl {
    margin-top: 8rem !important;
}

.cms-mb-xl {
    margin-bottom: 8rem !important;
}

.cms-box {
    border-radius: var(--bs-border-radius-xl);
    padding: 2rem 1.5rem;
}

@media (min-width: 992px) {
    .cms-box {
        padding: 3rem;
    }
}

/* Bloc dans une colonne de section : avec un fond, il devient un encadré. */
.cms-block-nested.bg-body-tertiary,
.cms-block-nested.bg-primary,
.cms-block-nested.bg-dark,
.cms-block-nested.cms-bg-image,
.cms-block-nested.cms-bg-custom {
    border-radius: var(--bs-border-radius-lg);
    padding: 0.75rem 1.25rem;
}

/* Lien vers une ancre : le bloc ne colle pas au haut de l'écran. */
.cms-block[id] {
    scroll-margin-top: 1rem;
}

/* Fond couleur principale : liens et boutons suivent la couleur du texte (noire ou blanche selon le thème). */
.cms-bg-primary a:not(.btn) {
    color: inherit;
    text-decoration: underline;
}

.cms-bg-primary .btn-primary {
    --bs-btn-color: currentColor;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: currentColor;
    --bs-btn-hover-color: currentColor;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.15);
    --bs-btn-hover-border-color: currentColor;
    --bs-btn-active-color: currentColor;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.25);
    --bs-btn-active-border-color: currentColor;
}

.cms-bg-primary .text-body-secondary {
    color: inherit !important;
    opacity: 0.85;
}

/* Fond image : image couvrante et voile sombre, comme la bannière. */
.cms-bg-image {
    overflow: hidden;
    position: relative;
}

    .cms-bg-image .cms-section-bg-image {
        height: 100%;
        inset: 0;
        object-fit: cover;
        position: absolute;
        width: 100%;
    }

    .cms-bg-image::after {
        background: rgba(0, 0, 0, 0.55);
        content: "";
        inset: 0;
        position: absolute;
    }

    .cms-bg-image > .container,
    .cms-bg-image > .container-fluid {
        position: relative;
        z-index: 1;
    }

.cms-richtext > :last-child {
    margin-bottom: 0;
}

.cms-richtext img {
    max-width: 100%;
}

.cms-block-map iframe {
    display: block;
}

/* Bloc HTML : rien ne dépasse l'écran (audit R11). Vidéos YouTube et Vimeo : leur largeur, ramenée à l'écran, en 16/9 ;
   tableaux : défilement dans leur cadre (table-responsive ajouté au rendu). */
.cms-block-html img {
    height: auto;
    max-width: 100%;
}

.cms-block-html iframe {
    max-width: 100%;
}

    .cms-block-html iframe[src*="youtube"],
    .cms-block-html iframe[src*="vimeo"] {
        aspect-ratio: 16 / 9;
        height: auto;
    }

.cms-gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

/* Champ piège du formulaire de contact : hors de l'écran, ignoré par les lecteurs d'écran. */
/* Formulaire personnalisé : astérisque des champs obligatoires. */
.cms-required {
    color: var(--bs-danger);
}

.cms-hp {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.preview-banner {
    background: #fff3cd;
    border-bottom: 1px solid #ffe69c;
    color: #664d03;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

/* Hauteur minimale d'un bloc (onglet Apparence) : contenu centré verticalement. */
.cms-minh-md,
.cms-minh-lg,
.cms-minh-full {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cms-minh-md {
    min-height: 400px;
}

.cms-minh-lg {
    min-height: 70vh;
}

.cms-minh-full {
    min-height: 100vh;
    min-height: 100svh;
}

/* Taille du titre principal du bloc : h2 du bloc, titre (h1) des bannières. */
.cms-heading-lg :is(h2, .h2) {
    font-size: calc(1.375rem + 1.5vw);
}

.cms-heading-xl :is(h2, .h2) {
    font-size: calc(1.475rem + 2.7vw);
}

.cms-heading-lg :is(h1, .display-5) {
    font-size: calc(1.475rem + 2.7vw);
}

.cms-heading-xl :is(h1, .display-5) {
    font-size: calc(1.575rem + 3.9vw);
}

@media (min-width: 1200px) {
    .cms-heading-lg :is(h2, .h2) {
        font-size: 2.5rem;
    }

    .cms-heading-xl :is(h2, .h2),
    .cms-heading-lg :is(h1, .display-5) {
        font-size: 3.5rem;
    }

    .cms-heading-xl :is(h1, .display-5) {
        font-size: 4.5rem;
    }
}

/* Voile sur l'image (fond image, bannière, carrousel, bannière vidéo) : aucun, léger ou foncé ; sinon celui du bloc. */
.cms-overlay-none.cms-bg-image::after,
.cms-overlay-none.cms-hero-has-image::after,
.cms-overlay-none.cms-video-hero::after,
.cms-overlay-none .cms-carousel-slide::after {
    background: transparent;
}

.cms-overlay-light.cms-bg-image::after,
.cms-overlay-light.cms-hero-has-image::after,
.cms-overlay-light.cms-video-hero::after,
.cms-overlay-light .cms-carousel-slide::after {
    background: rgba(0, 0, 0, 0.25);
}

.cms-overlay-dark.cms-bg-image::after,
.cms-overlay-dark.cms-hero-has-image::after,
.cms-overlay-dark.cms-video-hero::after,
.cms-overlay-dark .cms-carousel-slide::after {
    background: rgba(0, 0, 0, 0.75);
}

/* Consentement aux témoins (Loi 25) : bannière en bas de l'écran, deux boutons de même poids. */
.cms-consent {
    background: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
    bottom: 0;
    box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.12);
    left: 0;
    padding: 1rem 0;
    position: fixed;
    right: 0;
    z-index: 1050;
}

    .cms-consent[hidden] {
        display: none;
    }

/* Carte ou vidéo d'un service externe, pas encore chargée : explication, bouton, lien vers le service. */
.cms-consent-frame {
    align-items: center;
    background: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius);
    display: flex;
    justify-content: center;
    min-height: 300px;
    padding: 1.5rem;
    text-align: center;
}

.ratio > .cms-consent-frame {
    min-height: 0;
}

/* Bas du pied de page : politique de confidentialité, choix des témoins. */
.site-legal {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
}

    .site-legal a,
    .site-legal-button {
        color: inherit;
        font-size: inherit;
    }

.site-legal-button {
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
}

/* Bandeau d'annonce (réglages) : lien du texte souligné, de la couleur du texte. */
.site-announcement {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.site-announcement a {
    color: inherit;
    text-decoration: underline;
}

/* Effets (onglet « Apparence » des blocs ; voir BlockHtml.EffectClasses et site.js).
   Joués seulement si les animations du site sont activées (body.cms-animations) et que le visiteur n'a pas demandé moins
   d'animations. Seulement opacity et transform : aucun décalage de la page. */

@media (prefers-reduced-motion: no-preference) {
    /* Apparition au défilement : un bloc n'est caché que si site.js a démarré (html.cms-js) et qu'il n'est pas encore
       à l'écran ; sans script, tout reste visible. Section « colonnes l'une après l'autre » : ce sont ses colonnes qui
       apparaissent, chacune un peu après la précédente. */
    .cms-animations .cms-entrance {
        --cms-entrance-from: none;
        --cms-own-delay: 0s;
    }

    .cms-animations .cms-entrance-up {
        --cms-entrance-from: translateY(40px);
    }

    .cms-animations .cms-entrance-left {
        --cms-entrance-from: translateX(-60px);
    }

    .cms-animations .cms-entrance-right {
        --cms-entrance-from: translateX(60px);
    }

    .cms-animations .cms-entrance-zoom {
        --cms-entrance-from: scale(0.92);
    }

    .cms-animations .cms-delay-1 {
        --cms-own-delay: 0.2s;
    }

    .cms-animations .cms-delay-2 {
        --cms-own-delay: 0.4s;
    }

    .cms-animations .cms-delay-3 {
        --cms-own-delay: 0.6s;
    }

    /* Transition à la révélation seulement : un bloc plus bas que l'écran est caché d'un coup, sans fondu inutile. */
    .cms-js .cms-animations .cms-entrance.is-in:not(.cms-entrance-seq),
    .cms-js .cms-animations .cms-entrance-seq.is-in > div > .row > * {
        transition: opacity 0.8s ease, transform 0.8s ease;
        transition-delay: calc(var(--cms-own-delay) + var(--cms-step, 0s));
    }

    /* Bloc animé dans une section animée : après elle. */
    .cms-js .cms-animations .cms-entrance .cms-entrance.is-in {
        transition-delay: calc(var(--cms-own-delay) + 0.5s);
    }

    .cms-animations .cms-entrance-seq > div > .row > :nth-child(2) {
        --cms-step: 0.2s;
    }

    .cms-animations .cms-entrance-seq > div > .row > :nth-child(3) {
        --cms-step: 0.4s;
    }

    .cms-animations .cms-entrance-seq > div > .row > :nth-child(4) {
        --cms-step: 0.6s;
    }

    .cms-js .cms-animations .cms-entrance:not(.cms-entrance-seq):not(.is-in),
    .cms-js .cms-animations .cms-entrance-seq:not(.is-in) > div > .row > * {
        opacity: 0;
        transform: var(--cms-entrance-from);
    }

    /* Un bloc qui arrive de côté ne doit pas élargir la page. */
    .cms-animations main {
        overflow-x: clip;
    }

    /* Bannières : textes l'un après l'autre (accroche, titre, texte, bouton), rejoués à chaque diapositive. CSS seul :
       la bannière est en haut de page, ses textes s'animent dès l'affichage. */
    @keyframes cms-text-fade {
        from {
            opacity: 0;
        }
    }

    @keyframes cms-text-up {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
    }

    @keyframes cms-text-down {
        from {
            opacity: 0;
            transform: translateY(-40px);
        }
    }

    @keyframes cms-text-zoom {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
    }

    .cms-animations .cms-text-in-fade {
        --cms-text-animation: cms-text-fade;
    }

    .cms-animations .cms-text-in-up {
        --cms-text-animation: cms-text-up;
    }

    .cms-animations .cms-text-in-down {
        --cms-text-animation: cms-text-down;
    }

    .cms-animations .cms-text-in-zoom {
        --cms-text-animation: cms-text-zoom;
    }

    .cms-animations .cms-text-in .cms-hero-content > *,
    .cms-animations .cms-text-in .cms-video-hero-content > *,
    .cms-animations .cms-text-in .cms-carousel-slide.is-active .cms-carousel-content > * {
        animation: var(--cms-text-animation) 1s ease both;
        animation-delay: 0.3s;
    }

    .cms-animations .cms-text-in .cms-hero-content > :nth-child(2),
    .cms-animations .cms-text-in .cms-video-hero-content > :nth-child(2),
    .cms-animations .cms-text-in .cms-carousel-slide.is-active .cms-carousel-content > :nth-child(2) {
        animation-delay: 0.6s;
    }

    .cms-animations .cms-text-in .cms-hero-content > :nth-child(3),
    .cms-animations .cms-text-in .cms-video-hero-content > :nth-child(3),
    .cms-animations .cms-text-in .cms-carousel-slide.is-active .cms-carousel-content > :nth-child(3) {
        animation-delay: 0.9s;
    }

    .cms-animations .cms-text-in .cms-hero-content > :nth-child(n + 4),
    .cms-animations .cms-text-in .cms-video-hero-content > :nth-child(n + 4),
    .cms-animations .cms-text-in .cms-carousel-slide.is-active .cms-carousel-content > :nth-child(n + 4) {
        animation-delay: 1.2s;
    }

    /* Zoom lent (Ken Burns) sur l'image de la bannière, de la diapositive affichée ou sur la vidéo. */
    @keyframes cms-kenburns {
        from {
            transform: scale(1);
        }

        to {
            transform: scale(1.12);
        }
    }

    .cms-animations .cms-kenburns .cms-hero-image,
    .cms-animations .cms-kenburns .cms-video-hero-media,
    .cms-animations .cms-kenburns .cms-carousel-slide.is-active .cms-carousel-image {
        animation: cms-kenburns 14s ease-out both;
    }

    /* Passage entre diapositives (Carrousel). Glissement : site.js pose le sens (data-direction) et « is-leaving » sur la
       diapositive qui part ; sans sens (au chargement), rien ne bouge. Fondu avec zoom : la diapositive qui arrive se pose. */
    @keyframes cms-slide-in-next {
        from {
            transform: translateX(100%);
        }
    }

    @keyframes cms-slide-out-next {
        to {
            transform: translateX(-100%);
        }
    }

    @keyframes cms-slide-in-prev {
        from {
            transform: translateX(-100%);
        }
    }

    @keyframes cms-slide-out-prev {
        to {
            transform: translateX(100%);
        }
    }

    .cms-animations .cms-transition-slide .cms-carousel-slide {
        opacity: 1;
        transition: visibility 0.8s;
    }

    .cms-animations .cms-transition-slide[data-direction="next"] .cms-carousel-slide.is-active {
        animation: cms-slide-in-next 0.8s ease-in-out both;
    }

    .cms-animations .cms-transition-slide[data-direction="next"] .cms-carousel-slide.is-leaving {
        animation: cms-slide-out-next 0.8s ease-in-out both;
    }

    .cms-animations .cms-transition-slide[data-direction="prev"] .cms-carousel-slide.is-active {
        animation: cms-slide-in-prev 0.8s ease-in-out both;
    }

    .cms-animations .cms-transition-slide[data-direction="prev"] .cms-carousel-slide.is-leaving {
        animation: cms-slide-out-prev 0.8s ease-in-out both;
    }

    .cms-animations .cms-transition-zoom .cms-carousel-slide {
        transform: scale(1.08);
        transition: opacity 1s ease, visibility 1s, transform 1.2s ease;
    }

        .cms-animations .cms-transition-zoom .cms-carousel-slide.is-active {
            transform: none;
        }

    /* Parallaxe : image agrandie (15 % de marge en haut et en bas), déplacée par site.js selon la position du bloc à
       l'écran (propriété translate : s'ajoute au zoom lent). Seulement quand le script a démarré ; pas sur une photo entière. */
    .cms-js .cms-animations .cms-parallax.cms-bg-image > .cms-section-bg-image,
    .cms-js .cms-animations .cms-parallax .cms-hero-image,
    .cms-js .cms-animations .cms-parallax .cms-video-hero-media,
    .cms-js .cms-animations .cms-parallax:not(.cms-carousel-whole) .cms-carousel-image {
        height: 130%;
        inset: -15% 0 auto;
        translate: 0 var(--cms-parallax-y, 0);
        will-change: translate;
    }
}

/* Survol des cartes, tuiles et photos (option du bloc) : seulement avec une souris ; au clavier aussi (focus). */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .cms-animations .cms-hover-zoom :is(.cms-card .card-img-top, .cms-mosaic-img, .cms-gallery-link img, .cms-team-photo),
    .cms-animations .cms-hover-lift :is(.cms-card, .cms-mosaic-tile, .cms-gallery-link, .cms-team-photo) {
        transition: transform 0.5s ease, box-shadow 0.3s ease;
    }

    /* Image agrandie dans son cadre ; carte : l'image reste dans la carte, le texte passe par-dessus. */
    .cms-animations .cms-hover-zoom :is(.cms-card, .cms-gallery-link) {
        overflow: hidden;
    }

    .cms-animations .cms-hover-zoom .cms-card .card-body {
        background: var(--bs-card-bg);
        position: relative;
    }

    .cms-animations .cms-hover-zoom :is(.cms-card:is(:hover, :focus-within) .card-img-top, .cms-mosaic-tile:hover .cms-mosaic-img,
        .cms-gallery-link:is(:hover, :focus-visible) img, .cms-team-member:hover .cms-team-photo) {
        transform: scale(1.06);
    }

    /* Soulevé, avec une ombre : la carte, la tuile, l'image de la galerie, la photo d'un membre de l'équipe. */
    .cms-animations .cms-hover-lift .cms-mosaic-tile {
        position: relative;
    }

    .cms-animations .cms-hover-lift :is(.cms-card:is(:hover, :focus-within), .cms-mosaic-tile:hover,
        .cms-gallery-link:is(:hover, :focus-visible), .cms-team-member:hover .cms-team-photo) {
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.18);
        transform: translateY(-6px);
        z-index: 1;
    }
}

/* Accroche d'une diapositive : couleur du texte posé sur l'image (blanc), comme le titre. */
.cms-carousel .cms-eyebrow {
    color: inherit;
}

/* Impression : tout le contenu, sans effet ; rien qui ne sert qu'à l'écran (menu, boutons, bandeaux) ; tous les onglets et
   toutes les réponses de la FAQ (ouvertes par site.js avant l'impression) ; bannières à la hauteur de leur texte (audit R15k). */
@media print {
    .cms-entrance,
    .cms-entrance-seq > div > .row > * {
        opacity: 1 !important;
        transform: none !important;
    }

    .cms-skip-link,
    .site-announcement,
    .site-header .navbar-toggler,
    .site-header .navbar-collapse,
    .site-languages,
    .back-to-top,
    .cms-consent,
    .cms-consent-frame button,
    .cms-carousel-controls,
    .cms-carousel-arrow,
    .cms-video-hero-media,
    .cms-tablist {
        display: none !important;
    }

    .cms-tabpanel[hidden],
    .cms-tabs.is-enhanced .cms-tab-heading {
        display: block !important;
    }

    .cms-hero,
    .cms-carousel,
    .cms-video-hero {
        min-height: 0 !important;
    }

    .site-header-transparent {
        position: static !important;
    }
}
