:root {
    /* ─── COULEURS DE BASE ───────────────────────── */
    --couleur-principale:      #000000;
    --couleur-principale-dk:   #111111;
    --couleur-secondaire:      #000000;
    --couleur-noir:            #000000;
    --couleur-blanc:           #ffffff;

    /* ─── PALETTE GRIS NEUTRES ───────────────────── */
    --couleur-gris-lt:         #d6d6d6;
    --couleur-gris-sl:         #f0f0f0;
    --couleur-gris-md:         #888888;
    --couleur-gris-dk:         #333333;

    /* ─── RÔLES TYPO ─────────────────────────────── */
    --typo-titre:              var(--couleur-secondaire);
    --typo-sous-titre:         var(--couleur-principale);
    --typo-corps:              var(--couleur-noir);
    --typo-gras:               var(--couleur-noir);
    --typo-legende:            var(--couleur-gris-dk);
    --typo-menu:               var(--couleur-secondaire);
    --typo-lien:               var(--couleur-secondaire);
    --typo-sur-fond-sombre:    var(--couleur-blanc);

    /* ─── POLICES ────────────────────────────────── */
    --family-titre:            "RethinkSans-ExtraBold", sans-serif;
    --family-sous-titre:       "RethinkSans-Bold", sans-serif;
    --family-corps:            "Geist-Regular", sans-serif;
    --family-action:           "RethinkSans-Bold", sans-serif;

    /* ─── FORMES ───────────────────── */
    --radius-default:          0px;
    --img-ratio:               16 / 9;

    /* ─── ÉCHELLE DE TAILLES ─────────────────────── */
    --font-base:               clamp(1rem, 0.8vw, 1.5rem);
    --taille-font-xs:          calc(var(--font-base) * 0.75);
    --taille-font-sm:          calc(var(--font-base) * 0.875);
    --taille-font-base:        calc(var(--font-base) * 1);
    --taille-font-lg:          calc(var(--font-base) * 1.25);
    --taille-font-xl:          calc(var(--font-base) * 1.5);
    --taille-font-2xl:         calc(var(--font-base) * 2);
    --taille-font-3xl:         calc(var(--font-base) * 2.5);
    --taille-font-4xl:         calc(var(--font-base) * 3);

    /* ─── SURFACES & TEMPLATE ────────────────────── */
    --fond-page:               var(--couleur-blanc);
    --fond-page-alt:           var(--couleur-gris-sl);
    --fond-bandeau:            var(--couleur-secondaire);
    --fond-bouton:             #7498d6;
    --fond-bouton-hover:       #6080B6;
    --couleur-puces:           var(--fond-bouton);

    /* ─── BORDURES ───────────────────────────────── */
    --border-strong:           var(--couleur-gris-dk);
    --border-subtle:           rgb(from var(--couleur-secondaire) r g b / 0.08);
    --border-accent:           rgb(from var(--fond-bouton) r g b / 0.15);
    --border-card:             1px solid var(--border-subtle);
    --border-card-hover:       var(--border-accent);

    /* ─── TRANSITIONS BOUTONS ────────────────────── */
    --btn-ease:                cubic-bezier(0.4, 0, 0.2, 1);
    --btn-duration:            0.32s;

    /* ─── OVERLAYS ───────────────────────────────── */
    --overlay-faint:           rgb(0 0 0 / 0.1);
    --overlay-lt:              rgb(0 0 0 / 0.25);
    --overlay-md:              rgb(0 0 0 / 0.5);
    --overlay-dk:              rgb(0 0 0 / 0.75);
    --overlay-deep:            rgb(0 0 0 / 0.9);

    /* ─── OMBRES ─────────────────────────────────── */
    --shadow-lt:               0 1px 3px var(--overlay-faint), 0 1px 2px var(--overlay-faint);
    --shadow-md:               0 4px 6px var(--overlay-faint), 0 2px 4px var(--overlay-faint);
    --shadow-dk:               0 25px 50px var(--overlay-lt);
    --shadow-card-hover:       var(--shadow-dk);
    --shadow-popup:            0 8px 25px var(--overlay-lt);
    --shadow-modal:            0 8px 30px var(--overlay-md);

    /* ─── DÉGRADÉS & LAYOUT ──────────────────────── */
    --gradient-banniere:       linear-gradient(180deg, var(--overlay-dk), var(--overlay-md));
    --image-mask:              linear-gradient(135deg, rgb(from var(--couleur-principale) r g b / 0.3) 0%, rgb(from var(--fond-bandeau) r g b / 0.6) 100%);
}

/* ===============================================
   0.2 - Reset & Base
   =============================================== */
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--family-corps);
    font-size: var(--font-base);
    line-height: 1.4;
    color: var(--typo-corps);
}

a { 
    transition: color 0.3s ease-out;
    color: var(--typo-lien);
    text-decoration: underline;
}

:is(a:hover, a:focus) { text-decoration: none; }

img { 
    max-width: 100%; 
    height: auto; 
    object-fit: cover; 
    display: block; 
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
}

ul li::before {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 0.5em;
    content: "\f054";
    font-family: 'Font Awesome 6 Free';
    font-weight: 700;
    font-size: var(--font-base);
    color: var(--couleur-puces);
}

ol li {
    position: relative;
    list-style-position: inside;
}

ol li::marker {
    font-size: var(--font-base);
    color: var(--couleur-puces);
}

:is(article, aside, footer, header, main, nav, section) { display: block; }

/* ===============================================
   0.3 - Utilitaires & Layout
   =============================================== */
.main-page { position: relative; display: flow-root; overflow: clip; }
.hide { display: none; }
[data-anim] { opacity: 0; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

hr.trait {
    height: 1px;
    border: 0;
    background-color: var(--couleur-noir);
    opacity: 0.4;
    margin: 1rem 0;
}

/* ===============================================
   0.4 - Typographie
   =============================================== */
:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3) {
    font-family: var(--family-titre);
    color: var(--typo-sous-titre);
    margin-top: 0;
    margin-bottom: 1rem;
}

:is(h1, .h1) {
    position: relative;
    margin-bottom: 2rem;
    font-size: var(--taille-font-2xl);
    font-weight: 700;
    color: var(--typo-titre);
    text-align: center;
}

:is(h1, .h1)::before,
.pied .title_footer::before {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    width: 5rem;
    height: 0.1rem;
    background: linear-gradient(to right, var(--fond-bouton), transparent);
    transform: translateX(-50%);
}

:is(h2, .h2) { font-size: var(--taille-font-2xl); }

.titre-accent {
    color: var(--fond-bouton);
}

.titre-secondaire {
    position: relative;
    display: block;
    margin: 0;
    padding: 0.75rem 0 0;
    font-family: var(--family-sous-titre);
    font-size: var(--taille-font-xl);
    font-weight: 200;
    line-height: 1.1;
    color: var(--typo-sous-titre);
}
:is(h3, h4, .h3) { font-family: var(--family-sous-titre); font-size: var(--taille-font-xl); }
h5 { font-family: var(--family-sous-titre); font-size: var(--taille-font-lg); }
h6 { font-family: var(--family-sous-titre); font-size: var(--font-base); }

/* ===============================================
   0.5 - Boutons — Architectural
   =============================================== */
.bouton,
.main-page input[type="submit"],
.main-page button[type="submit"],
.formulaire .btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin: 0;
    padding: 0.85rem 2.2rem;
    font-family: var(--family-action);
    font-size: var(--font-base);
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 0;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transform: translateY(0);
    will-change: transform;
    transition:
        color            var(--btn-duration) var(--btn-ease),
        background-color var(--btn-duration) var(--btn-ease),
        border-color     var(--btn-duration) var(--btn-ease),
        transform        var(--btn-duration) var(--btn-ease),
        box-shadow       var(--btn-duration) var(--btn-ease);
}

.modal-body .bouton,
.modal-body input[type="submit"],
.modal-body button[type="submit"],
.modal-body .btn-primary {
    float: none;
}

.bouton:active,
.main-page input[type="submit"]:active,
.main-page button[type="submit"]:active,
.formulaire .btn-primary:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.15) !important;
}

.bouton-primary,
.main-page input[type="submit"],
.main-page button[type="submit"],
.formulaire .btn-primary {
    color: var(--typo-sur-fond-sombre);
    background: var(--fond-bouton);
    border-color: var(--fond-bouton);
    box-shadow:
        0 2px 6px  rgb(45 55 72 / 0.25),
        0 1px 3px  rgb(0  0  0  / 0.12);
}

.bouton-primary:hover,
.main-page input[type="submit"]:hover,
.main-page button[type="submit"]:hover,
.formulaire .btn-primary:hover {
    color: var(--typo-sur-fond-sombre);
    background: var(--fond-bouton-hover);
    border-color: var(--fond-bouton-hover);
    transform: translateY(-3px);
    box-shadow:
        0 10px 28px rgb(45 55 72 / 0.35),
        0  4px 10px rgb(0  0  0  / 0.15);
}

.bouton-secondary {
    color: var(--fond-bouton);
    background: transparent;
    border-color: var(--fond-bouton);
    box-shadow: none;
}

.bouton-secondary:hover {
    color: var(--typo-sur-fond-sombre);
    background: var(--fond-bouton-hover);
    border-color: var(--fond-bouton-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgb(74 85 104 / 0.3);
}

:is(.header, .banner) .bouton-secondary {
    color: var(--typo-sur-fond-sombre);
    border-color: rgb(from var(--couleur-blanc) r g b / 0.6);
    background: rgb(from var(--couleur-blanc) r g b / 0.07);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none;
}

:is(.header, .banner) .bouton-secondary:hover {
    color: var(--fond-bouton-hover);
    background: var(--couleur-blanc);
    border-color: var(--couleur-blanc);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(0 0 0 / 0.2);
}

.callTracker {
    display: grid;
    place-items: center;
}

.callTracker :is(.t_phone, .t_affiche) {
    grid-area: 1 / 1;
    transition: opacity 0.3s ease;
}

.callTracker .t_phone { opacity: 0; visibility: hidden; pointer-events: none; }
.callTracker.active .t_phone { opacity: 1; visibility: visible; pointer-events: auto; }
.callTracker.active .t_affiche { opacity: 0; visibility: hidden; pointer-events: none; }

.cta, .banner-cta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 0;
}
.cta.center {
    justify-content: center;
}

@media (max-width: 991px) {
    :is(h1, .h1) {
        font-size: var(--taille-font-xl);
        line-height: 1.2;
    }
}

@media (max-width: 767px) {
    .cta { flex-direction: column; }
}

/* =============================================================================
   1. COMPOSANTS GLOBAUX
   ============================================================================= */

/* --- 1.1 Bouton remonter & navigation --- */
.remonter {
    display: none;
    position: fixed;
    right: 0.625rem;
    bottom: 0.625rem;
    width: 2.75rem;
    z-index: 9999;
}

.remonter button {
    display: block;
    padding: 0.5rem;
    text-align: center;
    background: var(--fond-page);
    border: none;
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-popup);
}

.remonter button:hover {
    opacity: 0.8;
}

:is(.services-swiper, .certifs-swiper, .atouts-swiper, .avis-swiper) {
    display: block;
    overflow: visible;
}

:is(.services-swiper, .certifs-swiper, .atouts-swiper, .avis-swiper) .swiper-wrapper {
    display: flex;
    padding: 1rem 0;
}

:is(.services-swiper, .certifs-swiper, .atouts-swiper, .avis-swiper) .swiper-slide {
    display: flex;
    align-items: stretch;
    opacity: 0;
    transition: opacity 1s ease, visibility 1s ease;
    visibility: hidden;
}

:is(.services-swiper, .certifs-swiper, .atouts-swiper, .avis-swiper) .swiper-slide.swiper-slide-visible {
    opacity: 1;
    visibility: visible;
}

:is(.certifs-swiper, .atouts-swiper, .avis-swiper) .swiper-slide {
    height: auto;
}

.btns-swipper {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    margin-top: 2vh;
    color: var(--typo-sous-titre);
}

.btns-swipper .swiper-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 2.4rem;
    aspect-ratio: 1 / 1;
    color: var(--fond-bouton);
    background: transparent;
    border: 1.5px solid var(--fond-bouton);
    border-radius: 0;
    box-shadow: none;
    transition:
        color            var(--btn-duration) var(--btn-ease),
        background-color var(--btn-duration) var(--btn-ease),
        border-color     var(--btn-duration) var(--btn-ease),
        transform        var(--btn-duration) var(--btn-ease),
        box-shadow       var(--btn-duration) var(--btn-ease);
}

.btns-swipper .swiper-button:hover {
    color: #ffffff;
    background: var(--fond-bouton);
    border-color: var(--fond-bouton);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(74 85 104 / 0.3);
}

.btns-swipper .swiper-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.btns-swipper .swiper-button:focus-visible {
    outline: 2px solid var(--fond-bouton);
    outline-offset: 3px;
}

.btns-swipper .swiper-button.swiper-button-disabled {
    color: var(--couleur-gris-md);
    border-color: var(--couleur-gris-lt);
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btns-swipper .swiper-button i {
    font-size: var(--taille-font-base);
}

:is(.services, .avis-clients) .btns-swipper .swiper-button {
    color: var(--typo-sur-fond-sombre);
    border-color: rgb(from var(--typo-sur-fond-sombre) r g b / 0.25);
}
:is(.services, .avis-clients) .btns-swipper .swiper-button:hover {
    background: var(--typo-sur-fond-sombre);
    color: var(--couleur-noir);
}

:is(.certifs, .services, .atouts-mobile, .avis-clients) .swiper-pagination {
    display: none;
}

/* --- 1.2 Icônes SVG --- */
.icones {
    width: 2rem;
    height: 2rem;
    fill: var(--typo-sur-fond-sombre);
}

.deploy-right-sidebar .icones {
    width: 1.8125rem;
}

.menu-mobile-dynamique li a:before {
    position: absolute;
    left: 0.3125rem;
    font-family: 'Font Awesome 5 Free';
    font-size: var(--taille-font-base);
    font-weight: 700;
    color: var(--typo-sous-titre);
    content: "\f105";
}

.remonter .icones {
    margin: 0 0 -0.25rem;
    fill: var(--couleur-puces);
}


:is(.tete .tel, .tel-header) .icones {
    width: 1.1875rem;
    height: 1.0625rem;
    margin: -0.1rem 0.5rem -0.25rem 0;
    fill: var(--typo-sur-fond-sombre);
}

/* --- 1.3 Sections & Overlays --- */
.section {
    position: relative;
    padding: 7rem 10%;
    box-sizing: border-box;
    background: var(--fond-page);
    z-index: 999;
}

.section:nth-child(even) {
    background: var(--fond-page-alt);
}

.section.atouts-desktop {
    background-image: url('../images/bg-wave.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

.section:is(.avis-clients, .services){
    background: var(--couleur-noir);
    color: var(--couleur-blanc);
    text-align: center;
}

:is(.intervention, .actualites) .frame {
    overflow: hidden;
    background: var(--fond-page);
    border: var(--border-card);
    border-radius: var(--radius-default);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

:is(.intervention, .actualites) .frame:hover {
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-card-hover);
}

.media-frame-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    background: var(--image-mask);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.media-frame-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.media-frame-icon svg {
    width: 100%;
    height: 100%;
    fill: rgb(from var(--typo-sur-fond-sombre) r g b / 0.2);
}

/*.media-frame-icon i {
    font-size: 10rem;
    color: rgb(from var(--typo-sur-fond-sombre) r g b / 0.1);
}
*/

.media-frame img {
    display: block;
    width: 100%;
    aspect-ratio: var(--img-ratio);
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-frame:hover img {
    transform: scale(1.1);
}

.media-frame:hover .media-frame-overlay {
    opacity: 1;
}

.media-frame:hover .media-frame-icon {
    transform: scale(1);
}

/* --- 1.4 Scrollbars & Plugins --- */
.scrollbars {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--fond-bouton) transparent;
}

.scrollbars::-webkit-scrollbar {
    width: 0.375rem;
}

.scrollbars::-webkit-scrollbar-thumb {
    background-color: var(--fond-bouton);
    border-radius: 0.1875rem;
}

.infinite-scroll .chargement {
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin-left: -1rem;
    background: transparent url(../images/chargement.gif) no-repeat center top;
}

.form-actions { clear: both; }

#g-recaptcha-response {
    display: block !important;
    position: relative;
    top: -2.8125rem;
    left: 0.75rem;
    height: 0.625rem !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* ---- Lightbox (plugin lb2) ---- */
@media (max-width: 991px) {
    .lb-prev,
    .lb-next {
        opacity: 1 !important;
        min-width: 44px;
        min-height: 44px;
    }

    .lb-prev { background: url(../images/lightbox-g.png) left 48% no-repeat; }
    .lb-next { background: url(../images/lightbox-d.png) right 48% no-repeat; }
}

/* --- 1.5 Composants CMS --- */
.modal-dialog {
    position: relative;
    width: auto;
    max-width: 37.5rem;
    margin: 1.875rem auto;
    padding: 0 0.9375rem;
}

.modal-content {
    overflow: hidden;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.375rem;
    box-shadow: var(--shadow-modal);
}

.modal-body .form-group {
    max-width: 100%;
}

.modal-body .form-group .col-md-8,
.modal-body .form-group .col-md-10 {
    float: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.modal-body .form-control {
    width: 100% !important;
    box-sizing: border-box;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-header :is(h2, .h2) { pointer-events: none; }

.modal-body {
    position: relative;
    padding: 15px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 99996;
}

.modal-backdrop.in {
    opacity: 0.5;
}

.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.fade.in {
    opacity: 1;
}

.pagination {
    display: inline-flex;
    padding-left: 0;
    margin: 1.25rem 0;
    list-style: none;
}

.pagination > li {
    display: inline;
}

.pagination > li > a,
.pagination > li > span {
    position: relative;
    padding: 0.375rem 0.75rem;
    margin-left: -1px;
    line-height: 1.42857;
    color: var(--typo-sous-titre);
    background-color: var(--fond-page);
    border: 1px solid #ddd;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination > .active > a,
.pagination > .active > span {
    color: var(--typo-sur-fond-sombre);
    cursor: default;
    background-color: var(--fond-bouton);
    border-color: var(--couleur-principale);
    z-index: 2;
}

.alert {
    padding: 0.9375rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-dismissable {
    padding-right: 35px;
}

.close {
    float: right;
    padding: 0;
    font-size: var(--taille-font-base);
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    background-color: transparent;
    border: 0;
    opacity: 0.5;
    cursor: pointer;
}

.close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}

.clearfix:after {
    display: table;
    content: "";
    clear: both;
}

.text-center {
    text-align: center;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.hidden {
    display: none !important;
}

/* --- 1.6 Formulaires --- */
fieldset {
    padding: 0;
    border: none;
}

:is(.form-control, .main-page input:not([type="submit"], [type="button"], [type="checkbox"], [type="radio"]), .main-page textarea, .main-page select) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.9rem;
    font-family: var(--family-corps);
    line-height: 1.5;
    color: var(--typo-titre);
    background-color: var(--fond-page);
    border: var(--border-card);
    border-radius: var(--radius-default);
    transition: all 0.3s ease;
}

:is(.form-control, .main-page input:not([type="submit"], [type="button"], [type="checkbox"], [type="radio"]), .main-page textarea, .main-page select):focus {
    border-color: var(--border-card-hover);
    outline: none;
}

:is(select, input).form-control {
    height: 3rem;
    padding: 0 0.75rem;
}

.form-group input[name="captcha"] {
    display: inline-block;
    vertical-align: top;
    width: 31% !important;
    height: 3rem !important;
    margin-right: 2% !important;
}

.form-group input[name="captcha"] + a {
    display: inline-block;
    vertical-align: top;
    width: 35%;
}

/* --- 1.7 Floating labels --- */
form[id^="contact_"] .col-md-8:has(.g-recaptcha) {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
form[id^="contact_"] .col-md-8:has(.g-recaptcha) input[type="submit"] { float: none; }

@media (max-width: 767px) {
    form[id^="contact_"] .col-md-8:has(.g-recaptcha) { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

:is(#add-review, form[id^="contact_"]) :is(input, textarea)::placeholder {
    color: transparent;
    opacity: 0;
}

label span.required {
    color: var(--typo-legende);
}

:is(#add-review, form[id^="contact_"]) .form-group {
    position: relative;
    margin-bottom: 1rem;
    color: var(--typo-legende);
}

:is(#add-review, form[id^="contact_"]) .control-label:not(.label-note, .label-photo, .label-rgpd) {
    display: flex;
    flex-direction: row-reverse;
    position: absolute;
    top: 50%;
    left: 0.2rem;
    padding-left: 0.75rem;
    color: var(--typo-legende);
    transform: translateY(-50%);
    transition: top 0.2s ease, left 0.2s ease, font-size 0.2s ease, padding 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    pointer-events: none;
}

:is(#add-review, form[id^="contact_"]) .form-group:has(textarea) .control-label:not(.label-note, .label-photo, .label-rgpd) {
    top: 0.7rem;
    transform: none;
}

:is(#add-review, form[id^="contact_"]) .form-group:has(.help-block) .control-label:not(.label-note, .label-photo, .label-rgpd) {
    top: 1.5rem;
}

:is(#add-review, form[id^="contact_"]) .form-group:focus-within .control-label:not(.label-note, .label-photo, .label-rgpd),
:is(#add-review, form[id^="contact_"]) .form-group.has-value .control-label:not(.label-note, .label-photo, .label-rgpd),
:is(#add-review, form[id^="contact_"]) .form-group:has(select) .control-label:not(.label-note, .label-photo, .label-rgpd),
:is(#add-review, form[id^="contact_"]) .form-group:has(input:not(:placeholder-shown)) .control-label:not(.label-note, .label-photo, .label-rgpd),
:is(#add-review, form[id^="contact_"]) .form-group:has(input:focus) .control-label:not(.label-note, .label-photo, .label-rgpd),
:is(#add-review, form[id^="contact_"]) .form-group:has(textarea:focus) .control-label:not(.label-note, .label-photo, .label-rgpd) {
    top: 0;
    left: 0;
    padding: 0 1rem;
    font-size: var(--taille-font-xs);
    background-color: var(--fond-page);
    background-image: linear-gradient(to bottom, var(--fond-page-alt) 50%, transparent 50%);
    background-position: right;
    background-size: 1px 100%;
    background-repeat: no-repeat;
    border-top: 1px solid var(--border-subtle);
    border-left: 1px solid var(--border-subtle);
    border-radius: var(--radius-default) var(--radius-default) 0 0;
    transform: translateY(-50%);
}

:is(#add-review, form[id^="contact_"]) .form-group:focus-within .control-label:not(.label-note, .label-photo, .label-rgpd) {
    border-color: var(--border-card-hover);
}

:is(#add-review, form[id^="contact_"]) .form-group:has(.label-rgpd) .control-label:not(.label-rgpd) {
    display: none;
}

/* --- Media Queries --- */
@media (max-width: 991px) {
    .section {
        padding: 5rem 5%;
    }
    main.section {
        padding-top: 2rem;
    }

    .corps:first-child h2.h1,
    .corps > div:first-child h2.h1 {
        display: none;
    }

    .btns-swipper .swiper-button {
        display: none;
    }

    :is(.certifs, .services, .atouts-mobile, .avis-clients) .swiper-pagination {
        display: flex;
        justify-content: center;
        gap: 0.375rem;
        position: relative;
        margin-top: 1.5rem;
    }

    :is(.certifs, .services, .atouts-mobile, .avis-clients) .swiper-pagination-bullet {
        width: 1.25rem;
        height: 0.625rem;
        background: var(--fond-bandeau);
        border-radius: 1rem;
        opacity: 0.3;
        transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    :is(.certifs, .services, .atouts-mobile, .avis-clients) .swiper-pagination-bullet-active {
        width: 1.5625rem;
        transform: scale(1.2);
        opacity: 1;
    }

    :is(.services-swiper, .certifs-swiper, .atouts-swiper, .avis-swiper) {
        width: 90%;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    :is(.services-swiper, .certifs-swiper, .atouts-swiper, .avis-swiper) .swiper-slide {
        opacity: 0.5;
        visibility: visible;
    }

    .main-page input[type="submit"],
    .main-page button[type="submit"] {
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.9rem 1rem;
    }
}

@media print {
    @page {
        margin: 2cm;
        size: portrait;
    }

    body {
        font-family: Serif;
        font-size: var(--taille-font-base);
        background-color: var(--fond-page);
    }

    .hide-print,
    .hide {
        display: none;
    }

    a:after {
        content: " [" attr(href) "] ";
    }

    h1,
    h2,
    h3 {
        font-family: verdana, serif;
    }

    div[class^="col-"] {
        width: 100%;
    }
}


/* ===============================================
   2.1 - Header & Nav Mobile
   =============================================== */

.mob-header,
.sidebar-left,
.mob-nav,
.mob-nav-scroll,
.mob-nav-header,
.mob-nav-menu li {
    background-color: var(--fond-bandeau);
    color: var(--typo-sur-fond-sombre);
}

.contactButton,
.nav-item-active,
.sidebar-bottom-controls a,
.mob-nav-label,
.sidebar-form label,
.sidebar-left a,
.mob-nav a,
.sidebar-send-button,
.mob-header-toggle,
.mob-header-action {
    color: var(--typo-sur-fond-sombre);
}

.mob-header {
    display: grid;
    grid-template-columns: 1fr repeat(3, 65px);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 65px;
    box-shadow: var(--shadow-lt);
    z-index: 9000;
}

.mob-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mob-header-logo img {
    max-width: 90%;
    max-height: 80%;
}

.mob-header-toggle,
.mob-header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: var(--taille-font-xl);
    text-decoration: none;
    background-color: var(--fond-bouton);
    border: none;
    border-left: 0.06rem solid var(--fond-page);
    cursor: pointer;
}

.mob-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 3rem;
}

.mob-header-spacer {
    height: 65px;
}

/* --- Menu Latéral (Sidebar) --- */
.sidebar-left {
    transition: left 0.3s ease;
}

.mob-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 17rem;
    font-family: var(--family-corps);
    box-shadow: -0.1rem 0 0.1rem var(--overlay-faint);
    transform: translateX(105%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9900;
}

.mob-nav.is-open {
    transform: translateX(0);
}

.mob-nav a {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
}

.mob-nav-scroll {
    width: 100%;
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
    background-color: var(--fond-bandeau);
}

.mob-nav-header {
    display: flex;
    align-items: center;
    position: relative;
    height: 65px;
    background-color: var(--fond-bandeau);
    color: var(--typo-sur-fond-sombre);
}

.mob-nav-label {
    padding: 1rem 1.25rem;
    font-size: var(--taille-font-lg);
    opacity: 0.3;
}

.mob-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin-left: 0.5rem;
    color: var(--typo-sur-fond-sombre);
    background-color: var(--fond-bouton);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.mob-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
}

.mob-nav-menu li {
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    background: var(--fond-bandeau);
}

.mob-nav-menu li a {
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 3rem;
    padding: 0 1rem 0 0.5rem;
}

.mob-nav-menu li.active {
    background: var(--overlay-lt);
}

.mob-nav-menu li.parent {
    background-image: url(../images/gopage.svg);
    background-position: 241px 26.2px;
    background-repeat: no-repeat;
    background-size: 9px auto;
}

.mob-nav-menu .sub-menu {
    display: none;
    padding: 0.5rem 0;
    background-color: var(--fond-bouton);
}

.mob-nav-menu .sub-menu a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0 1rem 0 1.5rem;
}
#contactButtonsMobile :is(.call-to-action-mobile, a) {
    border-radius: var(--radius-default) !important;
    background: var(--fond-bouton) !important;
    color: var(--typo-sur-fond-sombre) !important;
    font-family: var(--family-action) !important;
}

#contactButtonsMobile svg path {
    fill: var(--typo-sur-fond-sombre) !important;
}
#mob-nav #menu_mobile .menu-item {
    margin-bottom: 4px;
}

#mob-nav #menu_mobile .menu-item a {
    display: flex;
    align-items: center;
    min-height: 3rem;
}

@media (min-width: 991px) {
    .mob-header,
    .mob-nav,
    .mob-header-spacer {
        display: none;
    }
}


/* =============================================================================
   3. HEADER DESKTOP
   ============================================================================= */

.header {
    display: grid;
    grid-template-columns: 1fr 5fr auto;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 11vh;
    padding: 0 3%;
    box-sizing: border-box;
    transition: background-color 0.5s ease;
    z-index: 1000;
}

.fixed.header {
    background-color: var(--fond-bandeau);
}

.header-logo,
.header-logo a {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.header-logo img {
    width: auto;
    height: 80%;
    object-fit: contain;
}

.menu_principal {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.menu_principal li::before {
    content: none;
}

.menu_principal a {
    position: relative;
    display: block;
    padding: 1rem;
    font-family: var(--family-action);
    font-size: var(--taille-font-base);
    font-weight: 400;
    text-decoration: none;
    color: var(--typo-sur-fond-sombre);
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu_principal a::before,
.menu_principal a::after {
    position: absolute;
    content: '';
    width: 2em;
    height: 1em;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu_principal a::before {
    bottom: 0;
    left: 0;
    background-image:
        linear-gradient(to top,   var(--couleur-blanc), transparent),
        linear-gradient(to right, var(--couleur-blanc), transparent);
    background-size: 1px 100%, 100% 1px;
    background-position: left top, left bottom;
    background-repeat: no-repeat;
}

.menu_principal a::after {
    top: 0;
    right: 0;
    background-image:
        linear-gradient(to bottom, var(--couleur-blanc), transparent),
        linear-gradient(to left,   var(--couleur-blanc), transparent);
    background-size: 1px 100%, 100% 1px;
    background-position: right top, right top;
    background-repeat: no-repeat;
}

.menu_principal :is(a:hover, li.active > a)::before,
.menu_principal :is(a:hover, li.active > a)::after {
    opacity: 1;
    transform: scale(1);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 1376px) {
    .header-infos,
    .btn-liens-rs {
        display: none;
    }
    .menu_principal {
        gap: 0.8rem;
    }
    .fluid-infos {
        position: fixed;
        top: 20vh;
        right: 0;
        z-index: 9999;
    }
    .fluid-infos :is(.header-phone, .btn-partage) {
        display: flex;
        align-items: center;
        position: relative;
        left: 9.7rem;
        padding: 0.5rem 1rem;
        background: var(--fond-bouton);
        transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .fluid-infos :is(.header-phone, .btn-partage):hover {
        left: 0;
    }
}

@media (max-width: 991px) {
    .header {
        display: none;
    }

    #menu_principal .menu-item a {
        display: flex;
        align-items: center;
        min-height: 3rem;
    }
}


/* =============================================================================
   4. BANNIÈRE
   ============================================================================ */

/* 4.1 - Slogan */
.banner-slogan {
    display: block;
    position: absolute;
    top: 60%;
    left: 50%;
    width: 80%;
    text-align: left;
    text-wrap: balance;
    color: var(--typo-sur-fond-sombre);
    transform: translate(-50%, -50%);
    z-index: 3;
}

.body-page-1 .banner-slogan {
    top: 50%;
}

.banner-slogan h1 {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    text-align: center;
    color: inherit;
}

.banner-slogan h1:before {
    display: none;
}

.banner-slogan .banner-title {
    display: block;
    font-family: var(--family-titre);
    font-size: var(--taille-font-4xl);
    line-height: var(--taille-font-3xl);
    text-transform: initial;
}

.banner-slogan .banner-title span {
    font-size: inherit;
}

.banner-slogan .banner-subtitle {
    display: block;
    font-family: var(--family-titre);
    font-size: var(--taille-font-2xl);
    font-weight: 200;
    line-height: 1.3;
    text-transform: initial;
}

/* 4.2 - Bannière container */
.banner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--banniere-height, 100vh);
    background-position: center;
    overflow: hidden;
}

.banner:after {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: '';
    background-color: var(--overlay-lt);
    pointer-events: none;
    z-index: 1;
}

.banner:before {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    background-color: var(--overlay-lt);
    backdrop-filter: blur(7px);
    pointer-events: none;
    z-index: 2;
}

.banner :is(img, video) {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.body-page-1 .banner {
    position: relative;
}

.body-page-1 .banner:after {
    background: var(--gradient-banniere);
    opacity: 1;
}

.body-page-1 .banner:before {
    content: none;
}

/* 4.3 - Swiper & pagination */
.banner .swiper.banner-slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.banner .banner-slider img {
    will-change: scale;
    transform: scale(1);
    animation: 30s zoomAB infinite ease-in-out;
}

.banner .swiper-pagination {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0px;
    position: absolute;
    top: 50%;
    right: 2rem;
    left: auto;
    bottom: auto;
    height: auto;
    padding: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.banner span.swiper-pagination-bullet {
    width: 2rem;
    height: 3px;
    margin: 0;
    padding: 0.6rem 1rem;
    background: var(--fond-page);
    background-clip: content-box;
    box-sizing: content-box;
    border-radius: 0;
    opacity: 1;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.banner span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 3.5rem;
    background: var(--fond-bouton);
    background-clip: content-box;
    opacity: 1;
}

.banner-slider .swiper-button:is(.prev, .next) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    margin: 0 5rem;
    color: var(--typo-sur-fond-sombre);
    background: var(--fond-bouton);
    backdrop-filter: blur(5px);
    transition: opacity 0.4s ease, background-color 0.4s ease;
    z-index: 10;
}

.banner-slider .swiper-button:is(.prev, .next).swiper-button-disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* 4.4 - Bouton descendre */
.banner-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    text-decoration: none;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 0.7s ease-out 2s forwards;
    z-index: 2;
}

.banner-scroll:before {
    content: "découvrir";
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--family-titre);
    font-size: var(--taille-font-xs);
    color: var(--typo-sur-fond-sombre);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.banner-scroll:hover:before {
    opacity: 1;
}

.banner-scroll i {
    display: block;
    font-size: 0;
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, rgb(from var(--fond-page) r g b / 0.55), transparent);
    position: relative;
    overflow: hidden;
}

.banner-scroll i:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--fond-page);
    animation: scrollDown 1.2s ease-in-out infinite;
}

/* Animations */
@keyframes zoomAB {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scrollDown {
    0%   { top: 0;    opacity: 1; }
    100% { top: 100%; opacity: 0; }
}


/* Responsive */
@media (max-width: 1199px) {
    .banner-slogan .banner-subtitle {
        font-size: var(--taille-font-lg);
        line-height: 1.2;
    }
}

@media (max-width: 991px) {
    .banner {
        position: relative;
        height: 25vh;
    }

    .banner-slogan {
        top: 50%;
        left: 50%;
        width: 90%;
        text-align: center;
        transform: translate(-50%, -50%);
    }
    .banner-slogan .banner-title {
        font-size: var(--taille-font-3xl);
        line-height: 1.1;
    }
    .banner .cta {
        display: none;
    }
    .banner-scroll {
        display: none;
    }
    .banner .swiper-pagination {
        display: none;
    }
}

@media (max-width: 767px) {
    .banner-slogan .banner-title {
        font-size: var(--taille-font-2xl);
    }
    .banner-slogan .banner-subtitle {
        font-size: var(--taille-font-base);
    }
}


/* =============================================================================
   5. CONTENU PRINCIPAL - ACCUEIL
   ============================================================================= */

.corps :is(.page-text, .gallery-description, .pageseo-body, .newsItem) h2:first-of-type {
    position: relative;
    padding: 1em;
    font-size: var(--taille-font-lg);
    line-height: var(--taille-font-xl);
    font-weight: 400;
    text-shadow: 
            0 0 10px rgb(from var(--couleur-blanc) r g b / 0.6),
            0 0 20px rgb(from var(--couleur-blanc) r g b / 0.4),
            0 0 40px rgb(from var(--couleur-noir) r g b / 0.05);
    border: none;
    z-index: 1;
}

.corps :is(.page-text, .gallery-description, .pageseo-body, .newsItem) h2:first-of-type:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--fond-bouton);
    border-radius: var(--radius-default);
    opacity: .1;
    z-index: -1;
}

.corps :is(.page-text, .pageseo-body, .newsItem) h2 {
    margin-bottom: 2vh;
}

.corps blockquote {
    margin: 3vh 0;
    padding: 3vh 2vw;
    font-size: inherit;
    background: var(--fond-page-alt);
    border: 0;
    border-radius: var(--radius-default);
}

/* ===============================================
   5.1 - Article accueil (article.node-1)
   =============================================== */
.page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6%;
}

.page-media,
.page-body {
    position: relative;
    margin: 0;
}

article.page.node-1 .scrollbars {
    height: 32vh;
    padding: 0 1rem 0 0;
}

.page-media:before {
    content: "";
    position: absolute;
    bottom: -4vh;
    left: -4vh;
    width: 80%;
    height: 90%;
    border: 2px solid rgb(from var(--couleur-principale) r g b / 0.2);
    border-radius: var(--radius-default);
    z-index: -1;
}

.page-media img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-default);
}

.page-body h1 {
    margin-top: 0;
    text-align: left;
}

.page-body h1:before {
    left: 0;
    transform: translateX(0);
}

.fluid-contenu {
    position: relative;
    margin-top: var(--banniere-height, 100vh) !important;
    background: var(--fond-page);
    z-index: 10;
}

.body-page-1 .fluid-contenu {
    margin-top: 0 !important;
}

.page-text-home {
    display: block;
    position: relative;
    margin: 0 0 1rem;
}

.page-read-more {
    display: none;
}

/* --- 5. Contenu principal Responsive --- */
@media (max-width: 991px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .page-body {
        order: -1;
    }

    .page-media:before {
        display: none;
    }

    article.page.node-1 .scrollbars {
        height: auto;
    }

    .fluid-contenu {
        margin: 0 !important;
    }

    .page-text-home {
        max-height: 12em;
        padding: 0;
        overflow: hidden;
        transition: max-height .4s ease;
    }

    .page-text-home::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4em;
        background: linear-gradient(to bottom, transparent, var(--fond-page));
        pointer-events: none;
        transition: opacity .3s ease;
    }

    .page-text-home.is-expanded {
        max-height: 999px;
    }

    .page-text-home.is-expanded::after {
        opacity: 0;
    }

    .page-read-more {
        display: flex;
        align-items: center;
        gap: 0.5em;
        margin: 0.5rem 0 1rem;
        padding: 0;
        font-family: var(--family-titre);
        font-size: var(--font-base);
        font-weight: 700;
        color: var(--typo-sous-titre);
        background: none;
        border: none;
        cursor: pointer;
    }

    .page-read-more i {
        transition: transform .3s ease;
    }

    .page-read-more[aria-expanded="true"] i {
        transform: rotate(180deg);
    }
}

@media (max-width: 767px) {
    .fluid-contenu .corps {
        padding: 1.25rem 1rem 2.5rem;
    }
}


/* =============================================================================
   6. CERTIFICATIONS
   ============================================================================= */

.certifs {
    display: block;
    width: 100%;
}

.certifs-body {
    display: block;
}

.certifs-body .certifs-text {
    padding: 2rem 0;
}

.certifs-media {
    position: relative;
}

.certif-card {
    box-sizing: border-box;
    text-align: center;
    background-color: var(--fond-page);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 80% auto;
    box-shadow: var(--shadow-md);
}

.certif-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.certif-card-media {
    position: relative;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .certifs-body .certifs-text {
        padding: 2rem 1rem 2.5rem;
    }
    .certifs-media {
        width: 100%;
        padding: 0 1rem 2rem;
    }
}


/* =============================================================================
   7. SERVICES
   ============================================================================= */

.body-page-1 .services .h1 {
    color: var(--typo-sur-fond-sombre);
}

.body-page-1 .services .titre-secondaire {
    color: rgb(from var(--typo-sur-fond-sombre) r g b / 0.65);
}
/* ===============================================
   7.1 - Swiper liste services (.liste-services)
   =============================================== */
.liste-services {
    margin-top: 2.5rem;
}
.service-card {
    position: relative;
    height: clamp(40vh, 50vh, 60vh);
    padding: 0;
    border-radius: var(--radius-default);
    overflow: hidden;
    isolation: isolate;
    background: rgb(from var(--couleur-blanc) r g b / 0.07);
    border: 1px solid rgb(from var(--couleur-blanc) r g b / 0.15);
    box-shadow:
        0 6px 40px rgb(from var(--couleur-blanc) r g b / 0.15),
        0 1px 10px rgb(from var(--couleur-blanc) r g b / 0.1);
    transition:
        background-color 0.4s ease,
        border-color     0.4s ease,
        box-shadow       0.4s ease,
        transform        0.4s ease;
}
.service-card:hover {
    background: rgb(from var(--couleur-blanc) r g b / 0.12);
    border-color: rgb(from var(--couleur-blanc) r g b / 0.25);
    box-shadow:
        0 10px 20px rgb(from var(--couleur-noir) r g b / 0.9),
        0  5px 15px rgb(from var(--couleur-noir) r g b / 0.55);
    transform: translateY(-5px);
}
.service-card-link {
    display: grid;
    grid-template-rows: 4fr 1fr;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--typo-sur-fond-sombre);
}
.service-card-media {
    position: relative;
    overflow: hidden;
}
.service-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--overlay-dk) 100%);
    pointer-events: none;
    z-index: 1;
}
.service-card-image {
    position: absolute;
    inset: 0;
    margin: 0;
}
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-card-image img {
    transform: scale(1.02);
}
.service-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    padding: 1.5em;
    box-sizing: border-box;
    background: transparent;
}
.service-card-title {
    margin: 0;
    font-size: var(--taille-font-lg);
    font-weight: 600;
    color: var(--typo-sur-fond-sombre);
    text-align: left;
}
.service-card-cta {
    display: inline-flex;
    position: relative;
    padding-bottom: 0.55em;
    font-size: var(--taille-font-sm);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgb(from var(--typo-sur-fond-sombre) r g b / 0.55);
    transition: color 0.35s ease;
}
.service-card-cta::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 0.1rem;
    background: linear-gradient(to right, var(--fond-bouton), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover .service-card-cta {
    color: var(--typo-sur-fond-sombre);
}
.service-card:hover .service-card-cta::after {
    transform: scaleX(1);
}
/* ===============================================
   7.4 - Prestations (.prestation)
   =============================================== */
.prestation {
    display: grid;
    grid-template-columns: 2fr 3fr;
    align-items: stretch;
    margin-bottom: 4rem;
    background: var(--fond-page);
    border: var(--border-card);
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-lt);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.prestation:hover {
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-card-hover);
}
.prestation-photo {
    margin: 0.3rem;
    border-radius: var(--radius-default);
    overflow: hidden;
}
.prestation-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prestation-texte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1em 2em;
}
.prestation-texte .h1 {
    margin-bottom: 1em;
    text-align: left;
}
.prestation-texte .h1::before {
    left: 0;
    transform: translateX(0);
}
.prestation-texte p {
    padding: 0 0 1.25rem;
}
.prestation-texte ul {
    margin: 0;
    padding: 0;
}
/* ===============================================
   7.5 - Responsive
   =============================================== */
@media (max-width: 991px) {
    .prestation {
        grid-template-columns: 1fr;
    }
    .prestation-photo img {
        height: auto;
        aspect-ratio: var(--img-ratio);
    }
    .prestation-texte {
        padding: 1.5rem 1.25rem;
    }
}


/* =============================================================================
   8. ATOUTS - Architecture factorisée & Tokens conformes
   ============================================================================= */

.atouts-desktop .description {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto 0.75rem;
    font-family: var(--family-corps);
    font-size: var(--taille-font-lg);
    font-weight: normal;
    text-align: center;
    color: var(--typo-titre);
    opacity: 0.8;
    transform: none;
}

.atouts-desktop .content {
    position: relative;
    top: auto;
    left: auto;
    width: 55%;
    max-width: 700px;
    margin: 2rem auto 0.5rem;
    font-family: var(--family-titre);
    font-size: var(--taille-font-base);
    line-height: 1.7;
    text-align: center;
    color: var(--typo-titre);
    opacity: 0.75;
    transform: none;
}

.atouts-desktop .atouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
    gap: 1.2em;
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

.atouts-mobile:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(7px);
    pointer-events: none;
    z-index: 0;
}

.atouts-swiper {
    position: relative;
    width: 90%;
    margin: auto;
}

.atouts-mobile .atouts-cont {
    display: block;
    position: relative;
    padding: 2rem 5%;
}

.atouts-mobile .swiper-wrapper {
    align-items: stretch;
    min-height: 32vh;
}

/* 8.2 - Composant Carte (Base partagée) */
.atout-card {
    display: flex;
    position: relative;
    box-sizing: border-box;
    border: var(--border-card);
    border-radius: var(--radius-default);
    overflow: hidden;
    z-index: 2;
}

.atout-card-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    border-radius: 50%;
}

.atouts-mobile .atout-card-icon {
    width: 5em;
    height: 5em;
    margin-bottom: 1.5rem;
}

.atouts-desktop .atout-card-icon {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 0 1rem 0;
    flex-shrink: 0;
    border-radius: var(--radius-default);
    background: var(--fond-page-alt);
    border: 1px solid var(--border-subtle);
    transition:
        background-color 0.3s ease,
        border-color     0.3s ease;
}

.atout-card-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
}

.atouts-mobile .atout-card-icon:before {
    background: radial-gradient(circle, rgb(from var(--fond-bouton) r g b / 0.08) 0%, transparent 70%);
}

.atouts-desktop .atout-card-icon::before {
    background: none;
}

.atout-card-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    height: auto;
    object-fit: contain;
    color: rgb(from var(--typo-titre) r g b / 0.6);
    fill: rgb(from var(--typo-titre) r g b / 0.6);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.atouts-mobile .atout-card-icon svg {
    width: 100%;
    z-index: 2;
}

.atouts-desktop .atout-card-icon svg {
    width: 70%;
    aspect-ratio: 1 / 1;
    color: rgb(from var(--typo-titre) r g b / 0.5);
    fill: rgb(from var(--typo-titre) r g b / 0.5);
    z-index: 7;
}

.atout-card-content {
    display: flex;
    flex-direction: column;
}

.atouts-mobile .atout-card-content {
    align-items: center;
}

.atout-card-title {
    margin: 0 0 0.5rem 0;
    font-family: var(--family-sous-titre);
    line-height: 1.3;
    color: var(--typo-titre);
    transition: color 0.3s ease;
}

.atouts-mobile .atout-card-title {
    font-size: var(--taille-font-xl);
    text-align: center;
}

.atouts-desktop .atout-card-title {
    font-size: var(--taille-font-lg);
    text-align: left;
}

.atout-card-body {
    margin: 0;
    font-family: var(--family-corps);
    font-size: var(--taille-font-base);
    line-height: 1.7;
    font-weight: normal;
    text-wrap: balance;
    color: var(--typo-titre);
    opacity: 0.85;
}

.atouts-mobile .atout-card-body {
    text-align: center;
    transition: opacity 0.3s ease;
}

.atouts-desktop .atout-card-body {
    text-align: left;
}

/* 8.3 - Variations Contextuelles & Effets */
.atouts-mobile .atout-card {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 2rem 1.5rem;
    background: rgb(from var(--fond-page) r g b / 0.95);
    border-color: rgb(from var(--fond-bandeau) r g b / 0.1);
    box-shadow: 0 4px 12px rgb(from var(--fond-bandeau) r g b / 0.08);
}

.atouts-desktop .atouts-grid .atout-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem;
    background: var(--fond-page);
    box-shadow: var(--shadow-lt);
    cursor: default;
    --anim-delay: 0ms;
    transition-property:        background-color, border-color, box-shadow, opacity, transform;
    transition-duration:        0.3s, 0.3s, 0.3s, 600ms, 600ms;
    transition-timing-function: ease, ease, ease,
                                cubic-bezier(0.25, 0.46, 0.45, 0.94),
                                cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay:           0s, 0s, 0s, var(--anim-delay), var(--anim-delay);
}
.atouts-desktop .atouts-grid .atout-card.anime-delay-100  { --anim-delay: 100ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-200  { --anim-delay: 200ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-300  { --anim-delay: 300ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-400  { --anim-delay: 400ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-500  { --anim-delay: 500ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-600  { --anim-delay: 600ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-700  { --anim-delay: 700ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-800  { --anim-delay: 800ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-900  { --anim-delay: 900ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-1000 { --anim-delay: 1000ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-1100 { --anim-delay: 1100ms; }
.atouts-desktop .atouts-grid .atout-card.anime-delay-1200 { --anim-delay: 1200ms; }


.atouts-mobile .swiper-slide-active .atout-card {
    border-color: var(--border-card-hover);
    box-shadow: 0 6px 20px rgb(from var(--fond-bandeau) r g b / 0.12);
}

.atouts-desktop .atouts-grid .atout-card:hover {
    background: var(--fond-bouton);
    border-color: var(--fond-bouton);
    box-shadow: 0 8px 24px rgb(from var(--fond-bouton) r g b / 0.35);
    z-index: 10;
}

:is(.atouts-mobile, .atouts-desktop .atouts-grid) .atout-card::before,
:is(.atouts-mobile, .atouts-desktop .atouts-grid) .atout-card::after {
    content: '';
    position: absolute;
    width: 4em;
    height: 2em;
    background: transparent;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Coin haut-gauche — suit le radius de la card via border + mask en intersection */
:is(.atouts-mobile, .atouts-desktop .atouts-grid) .atout-card::before {
    top: 0;
    left: 0;
    border-top:  1px solid var(--couleur-principale);
    border-left: 1px solid var(--couleur-principale);
    border-top-left-radius: var(--radius-default);
    mask-image:
        linear-gradient(to right,  black, transparent),
        linear-gradient(to bottom, black, transparent);
    mask-composite: intersect;
    -webkit-mask-image:
        linear-gradient(to right,  black, transparent),
        linear-gradient(to bottom, black, transparent);
    -webkit-mask-composite: source-in;
}

/* Coin bas-droit — idem */
:is(.atouts-mobile, .atouts-desktop .atouts-grid) .atout-card::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--couleur-principale);
    border-right:  1px solid var(--couleur-principale);
    border-bottom-right-radius: var(--radius-default);
    mask-image:
        linear-gradient(to left, black, transparent),
        linear-gradient(to top,  black, transparent);
    mask-composite: intersect;
    -webkit-mask-image:
        linear-gradient(to left, black, transparent),
        linear-gradient(to top,  black, transparent);
    -webkit-mask-composite: source-in;
}

.atouts-mobile .swiper-slide-active .atout-card::before,
.atouts-mobile .swiper-slide-active .atout-card::after,
.atouts-desktop .atouts-grid .atout-card:hover::before,
.atouts-desktop .atouts-grid .atout-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Cadre icône sur fond ardoise */
.atouts-desktop .atouts-grid .atout-card:hover .atout-card-icon {
    background: rgb(from var(--couleur-blanc) r g b / 0.12);
    border-color: rgb(from var(--couleur-blanc) r g b / 0.25);
}

/* Coins blancs sur fond ardoise */
.atouts-desktop .atouts-grid .atout-card:hover::before {
    border-top-color:  var(--couleur-blanc);
    border-left-color: var(--couleur-blanc);
}
.atouts-desktop .atouts-grid .atout-card:hover::after {
    border-bottom-color: var(--couleur-blanc);
    border-right-color:  var(--couleur-blanc);
}

.atouts-mobile .swiper-slide-active .atout-card-icon svg {
    color: var(--typo-sous-titre);
    fill: var(--typo-sous-titre);
}
.atouts-desktop .atouts-grid .atout-card:hover .atout-card-icon svg {
    color: var(--typo-sur-fond-sombre);
    fill: var(--typo-sur-fond-sombre);
}

.atouts-mobile .swiper-slide-active .atout-card-title {
    color: var(--typo-sous-titre);
}
.atouts-desktop .atouts-grid .atout-card:hover .atout-card-title {
    color: var(--typo-sur-fond-sombre);
}

.atouts-mobile .swiper-slide-active .atout-card-body {
    opacity: 1;
}
.atouts-desktop .atouts-grid .atout-card:hover .atout-card-body {
    opacity: 1;
    color: rgb(from var(--typo-sur-fond-sombre) r g b / 0.85);
}

/* 8.4 - Media Queries (Consolidées) */
@media (max-width: 1199px) {
    .atouts-desktop .atouts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5em;
    }
    .atouts-desktop .content {
        width: 80%;
    }
}

@media (max-width: 767px) {
    .atouts-desktop {
        padding: 3rem 0;
    }
    .atouts-desktop .h1 {
        font-size: var(--taille-font-xl);
    }
    .atouts-desktop .titre-secondaire {
        font-size: var(--taille-font-lg);
    }
    .atouts-desktop .content {
        width: 90%;
        font-size: var(--taille-font-base);
    }
    .atouts-desktop .atouts-grid {
        grid-template-columns: 1fr;
        width: 95%;
        gap: 1.2em;
    }
    .atouts-desktop .atouts-grid .atout-card {
        padding: 1.25rem 1rem;
    }
    .atouts-desktop .atout-card-title,
    .atouts-mobile .h1 {
        font-size: var(--taille-font-xl);
    }
    .atouts-mobile .titre-secondaire,
    .atouts-mobile .atout-card-title {
        font-size: var(--taille-font-lg);
    }
    .atouts-mobile .atout-card {
        padding: 1.5rem 1.25rem;
    }
    .atouts-mobile .atout-card-icon {
        width: 4em;
        height: 4em;
        margin: 0 auto;
    }
}



/* =============================================================================
   9. REALISATIONS & GALERIE
   ============================================================================= */

/* 9.1 - Réalisations */
.realisations {
    text-align: center;
}
.realisation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
    padding: 2em 0;
}
.realisation-item {
    position: relative;
    overflow: hidden;
    background: var(--fond-bandeau);
    border-radius: var(--radius-default);
}
.realisation-item.realisation-large {
    grid-column: span 2;
    grid-row: span 2;
}
.realisation-item.realisation-wide {
    grid-column: span 2;
}
.realisation-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.realisation-grid .media-frame img {
    height: 100%;
}

/* 9.2 - Galerie */
.gallery {
    padding: 2em 0;
}
.gallery-description {
    padding: 2em 0;
    line-height: var(--taille-font-lg);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 1.5vw, 20px);
    margin-bottom: 2em;
}
.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--fond-bandeau);
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-lt);
    transition: box-shadow 0.3s ease;
}
.gallery-item:hover {
    box-shadow: 0 12px 30px rgb(from var(--fond-bandeau) r g b / 0.15);
}
.gallery-link {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}
.gallery-caption {
    display: none;
    padding: 1em;
    font-size: var(--taille-font-sm);
    text-align: center;
    color: var(--typo-titre);
    background: var(--fond-page);
}

/* --- Onglets galerie --- */
.gallery-multiple {
    margin-top: 2em;
}
.gallery-nav-bar {
    display: flex;
    justify-content: start;
    padding: 0 0 2em;
    overflow-x: auto;
    scrollbar-width: none;
}
.gallery-nav-bar::-webkit-scrollbar {
    display: none;
}
.gallery-nav {
    display: inline-flex;
    position: relative;
    min-width: max-content;
    padding: 0.1em;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-default);
}
.gallery-nav-indicator {
    position: absolute;
    top: 4px;
    height: calc(100% - 8px);
    background: var(--fond-bandeau);
    border-radius: var(--radius-default);
    box-shadow: var(--shadow-md);
    transition: left   0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width  0.35s cubic-bezier(0.4, 0, 0.2, 1),
                top    0.35s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.gallery-nav-btn {
    position: relative;
    padding: 0.8em 1.2em;
    font-family: var(--family-titre);
    font-size: var(--taille-font-sm);
    font-weight: 400;
    color: var(--typo-legende);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: var(--radius-default);
    transition: color 0.25s ease;
    z-index: 1;
}
.gallery-nav-btn.active {
    font-weight: 600;
    color: var(--typo-sur-fond-sombre);
}

.gallery-tabs-content {
    position: relative;
}

.gallery-tab-content {
    display: none;
    animation: galleryFadeIn 0.4s ease;
}

.gallery-tab-content.active {
    display: block;
}

@keyframes galleryFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gallery .infinite-scroll {
    position: relative;
}

@media (min-width: 2560px) {
    .realisation-grid {
        gap: 35px;
    }
    .gallery-grid {
        gap: 30px;
    }
}

@media (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 991px) {
    .realisation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .realisation-item.realisation-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .realisation-item.realisation-wide {
        grid-column: span 2;
    }
}
@media (max-width: 767px) {
    .realisation-grid {
        gap: 8px;
    }
    .realisations {
        display: block;
        margin-left: -0.25rem !important;
        margin-right: -0.25rem !important;
    }
    .realisations .titre-secondaire {
        display: inline-block;
        width: 100%;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-nav {
        flex-direction: column;
        width: 100%;
    }
    .gallery-nav-btn {
        text-align: left;
    }
}


/* =============================================================================
   10. ZONE D'INTERVENTION & CONTACT
   ============================================================================= */

/* 10.1 - Grilles et Structures (Shared patterns) */
.intervention-grid,
.contact-grid {
    display: grid;
    align-items: center;
    gap: 2rem;
}
.intervention-grid {
    grid-template-columns: 1fr 1fr;
}
.contact-grid {
    grid-template-columns: 1fr 2fr;
}

.contact-grid > :nth-child(n+3) {
    grid-column: 1 / -1;
}

/* 10.2 - Corps de contenu */
.intervention-body,
.contact-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8em;
    margin: 0 auto;
    padding: 2em 1.5em;
    font-size: var(--font-base);
}
.intervention-body h2,
.contact-body h2 {
    margin-top: 0;
}

.body-contact .intervention-body h2:not(:first-of-type) {
    margin-top: 2rem;
}
.contact-body address p span.intitule {
    font-weight: 700;
}

/* 10.3 - Cartes & Médias */
.intervention-media,
.contact-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.intervention-media iframe,
.contact-media iframe {
    width: 100%;
    height: 100%;
}

/* 10.4 - Carte épurée — Intervention Homepage */

/* Grille sans gouttière : les deux panneaux se touchent */
.intervention .intervention-grid {
    align-items: stretch;
    gap: 0;
}

/* Override frame : ombre statique, pas de hover sur le container (non-cliquable) */
/* overflow:visible pendant l'animation (les panneaux anime-left/right débordent) */
.intervention .intervention-grid.frame {
    background: transparent;
    border: none;
    overflow: visible;
    box-shadow:
        0 2px 40px rgb(0 0 0 / 0.07),
        0 1px  6px rgb(0 0 0 / 0.04);
    transition: none;
}

/* Neutraliser le hover frame hérité */
.intervention .intervention-grid.frame:hover {
    border-color: transparent;
    box-shadow:
        0 2px 40px rgb(0 0 0 / 0.07),
        0 1px  6px rgb(0 0 0 / 0.04);
}

/* Panneau texte — fond légèrement cassé */
.intervention .intervention-body {
    background: #f9f9f9;
    padding: 3.5rem;
    justify-content: center;
    position: relative;
}

/* Séparateur vertical en dégradé entre texte et carte */
.intervention .intervention-body::after {
    content: "";
    position: absolute;
    top: 8%;
    right: 0;
    width: 1px;
    height: 84%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border-subtle) 25%,
        var(--border-subtle) 75%,
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

/* Espacement paragraphes dans le panneau texte */
.intervention-body p {
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* Titre aligné à gauche dans le panneau */
.intervention .h1 {
    text-align: left;
}

.intervention .h1::before {
    left: 0;
    transform: translateX(0);
}

/* Une fois les panneaux animés, le container peut clipper normalement */
.intervention .intervention-body.anime-active,
.intervention .intervention-media.anime-active {
    overflow: hidden;
}

/* Carte Google Maps — niveaux de gris silver */
.intervention .intervention-media {
    min-height: 380px;
}

.intervention .intervention-media iframe {
    transition: filter 0.6s ease;
}

.intervention .intervention-media:hover iframe {
    filter: grayscale(0.3) contrast(1) brightness(1);
}

/* Liste colonnes */
.intervention ul {
    column-count: 2;
    width: 100%;
    margin: 2rem 0 0;
}

/* 10.5 - Spécificités Contact */
.contact-body h2 {
    margin: 3rem 0 1rem;
    font-size: var(--taille-font-xl);
    text-transform: uppercase;
}

.contact-body h2:before {
    bottom: -0.4em;
    left: 0;
    transform: translateX(0);
}
.contact-description {
    padding: 0 0 0.5rem;
}

.contact-body p.horaires {
    display: none !important;
}

.contact-form,
.contact-footer {
    position: relative;
    padding: 5rem 28%;
    background: var(--fond-page-alt);
    border-radius: var(--radius-default);
}

/* 10.6 - Overrides (Maintenabilité) */
.pageseo .formulaire .form-group input[name=captcha] {
    width: 100% !important;
    margin-right: 0 !important;
    text-align: left !important;
}
.pageseo .formulaire .form-group input[name=captcha] + a {
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    margin-right: 0 !important;
}

/* 10.7 - Media Queries (Consolidées) */
@media (max-width: 1199px) {
    .contact-body {
        padding: 0;
    }
    .intervention .intervention-body {
        padding: 2.5rem;
    }
}

@media (max-width: 991px) {
    .intervention-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .intervention .intervention-body {
        padding: 2.5rem 7% 2rem;
    }
    .intervention .intervention-body::after {
        display: none;
    }
    .contact-body {
        padding: 3rem 7% 2rem;
    }
    .intervention ul {
        column-count: 1;
        width: 100%;
    }
    .intervention-media,
    .contact-media {
        height: 250px;
    }
    .intervention-media iframe,
    .contact-media iframe {
        position: relative;
    }
    .contact .plan .block #googlemapapi,
    .contact .plan iframe {
        height: 250px !important;
    }
    .contact-form,
    .contact-footer {
        padding: 5rem 8%;
    }
    .body-contact .fluid-contenu .corps,
    .body-gallery-4 .fluid-contenu .corps {
        padding: 2rem 0 0;
    }
}


/* =============================================================================
   11. AVIS CLIENTS & TEMOIGNAGES — Luxe Minimaliste Noir
   ============================================================================= */

/* ─── 11.1 - Carte de base (contexte clair — page avis complète) ─── */
.avis-card {
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    background: var(--fond-page);
    border: var(--border-card);
    border-radius: var(--radius-default);
    overflow: hidden;
    transition:
        background-color 0.4s ease,
        border-color     0.4s ease,
        box-shadow       0.4s ease,
        transform        0.4s ease;
}

.avis-card:hover {
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-card-hover);
}

.avis-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1em;
    padding: 2em 1.5em;
    text-align: left;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.avis-card-link:is(:hover, :active) { text-decoration: none; }

.avis-card-title {
    font-family: var(--family-corps);
    font-size: var(--taille-font-xl);
    font-weight: 600;
    color: var(--typo-titre);
    transition: color 0.3s ease;
}

.avis-card-meta {
    margin: 0;
    font-family: var(--family-corps);
    font-size: var(--taille-font-sm);
    color: rgb(from var(--typo-titre) r g b / 0.7);
}

.avis-card-meta i { color: var(--typo-titre); }

.avis-card-rating {
    display: flex;
    gap: 0.25em;
    margin: 0.1em 0;
}

.avis-card-rating .fa {
    font-size: var(--font-base);
    color: var(--couleur-puces);
    transition: color 0.35s ease, transform 0.35s ease;
}

.avis-card:hover .avis-card-rating .fa {
    color: var(--typo-sous-titre);
    transform: scale(1.1);
}

.avis-card-body {
    position: relative;
    font-family: var(--family-corps);
    font-size: var(--font-base);
    line-height: 1.8;
    text-align: left;
    color: var(--typo-titre);
}

.avis-card-body p { margin-bottom: 0; }

.avis-card-body p::before {
    content: '\00AB\00A0';
    display: inline;
}

.avis-card-body p::after {
    content: '\00A0\00BB';
    display: inline;
}

/* Titre sur fond sombre */
.avis-clients .h1 {
    color: var(--couleur-blanc);
}

/* Reset du frame swiper */
.avis-swiper.frame {
    background: transparent;
    border: none;
    box-shadow: none;
    padding-bottom: 2rem;
}

.avis-swiper.frame:hover {
    border-color: transparent;
    box-shadow: none;
}

/* ─── 11.3 - Carte avis (contexte noir) ─────────────────────────────────────── */

.avis-clients .avis-card {
	background: rgb(from var(--couleur-blanc) r g b / 0.07);
	border: 1px solid rgb(from var(--couleur-blanc) r g b / 0.15);
	box-shadow: 0 6px 40px rgb(from var(--couleur-blanc) r g b / 0.15), 0 1px 10px rgb(from var(--couleur-blanc) r g b / 0.1);
}

/* Guillemet décoratif de fond */
.avis-clients .avis-card::before {
	content: '\201C';
	position: absolute;
	top: 0em;
	right: 0.1em;
	font-family: var(--family-corps);
	font-size: 9rem;
	line-height: 1;
	color: rgb(from var(--couleur-blanc) r g b / 0.1);
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.avis-clients .avis-card:hover {
    background: rgb(from var(--couleur-blanc) r g b / 0.12);
    border-color: rgb(from var(--couleur-blanc) r g b / 0.25);
    box-shadow:
        0 10px 20px rgb(from var(--couleur-noir) r g b / 0.9),
        0 5px 15px  rgb(from var(--couleur-noir) r g b / 0.55);
    transform: translateY(-5px);
}

/* ─── 11.4 - Hiérarchie typographique (contexte noir) ───────────────────────── */

/* Nom — majuscules espacées, blanc pur */
.avis-clients .avis-card-title {
    font-family: var(--family-sous-titre);
    font-size: var(--taille-font-base);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--couleur-blanc);
}

/* Filet séparateur sous le nom */
.avis-clients .avis-card-title span {
    display: inline-block;
    padding-bottom: 0.85em;
    border-bottom: 1px solid rgb(from var(--couleur-blanc) r g b / 0.1);
    width: 100%;
}

/* Date — ultra-atténuée */
.avis-clients .avis-card-meta {
    font-size: var(--taille-font-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(from var(--couleur-blanc) r g b / 0.5);
}

.avis-clients .avis-card-meta i {
    color: rgb(from var(--couleur-blanc) r g b / 0.35);
}

/* Étoiles — ardoise au repos, blanc au survol */
.avis-clients .avis-card-rating .fa {
    color: var(--fond-bouton);
}

.avis-clients .avis-card:hover .avis-card-rating .fa {
    color: rgb(from var(--couleur-blanc) r g b / 0.8);
    transform: none;
}

/* Corps du texte — italic, voix atténuée */
.avis-clients .avis-card-body {
    font-style: italic;
    color: rgb(from var(--couleur-blanc) r g b / 0.78);
    line-height: 1.85;
}

.avis-clients .avis-card-body p::before,
.avis-clients .avis-card-body p::after {
    color: rgb(from var(--couleur-blanc) r g b / 0.4);
}

/* ─── 11.6 - CTA ─────────────────────────────────────────────────────────────── */

.avis-clients .cta {
    margin-top: 3.5rem;
}


/* ─── 11.7 - Grille page avis complète (.avis-grid) ─────────────────────────── */

.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    padding: 2em 0 0;
}

.avis-grid .avis-card {
    gap: 0.8em;
    padding: 2em;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.avis-grid .avis-card:target {
    opacity: 1;
    scroll-margin-top: 6em;
    animation: none;
}

.avis-grid .avis-card-body::after {
    content: '\f10d';
    position: absolute;
    top: -2em;
    right: 1em;
    z-index: -1;
    font-family: 'Font Awesome 6 Free';
    font-size: var(--taille-font-4xl);
    font-weight: 900;
    color: rgb(from var(--typo-titre) r g b / 0.07);
    pointer-events: none;
    transition: all 0.3s ease;
}


/* ─── 11.8 - Modales & Formulaires ──────────────────────────────────────────── */

.modal {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    overflow: auto;
    overflow-y: scroll;
    padding: 1rem;
    font-size: var(--font-base);
    color: var(--typo-sur-fond-sombre);
    outline: 0;
    z-index: 9999;
}

.modal-open .modal {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--typo-titre);
    background: var(--overlay-lt);
    text-shadow: none;
    z-index: 9997;
}

.modal-content .btn-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: var(--taille-font-lg);
    color: var(--typo-titre);
    background: transparent;
    border: none;
    opacity: 0.2;
}

.modal-content .btn-close:is(:hover, :focus) { opacity: 0.5; }

.add-review-container { text-align: center; }

.modal-content #add-review .submit-review { margin: 2rem auto 1rem; }

.add-review-container .conditions {
    display: block;
    clear: both;
    font-size: var(--font-base);
    font-weight: 400;
    font-style: italic;
    text-align: justify;
    color: var(--typo-titre);
    opacity: 0.6;
}


/* ─── 11.9 - Animations & Responsive ────────────────────────────────────────── */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .avis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }
    .avis-swiper.frame {
        padding: 2rem 1rem 2.5rem;
    }
}

@media (max-width: 767px) {
    .avis-grid { grid-template-columns: 1fr; }
    .avis-grid .avis-card { padding: 1.2em; }
    .avis-grid .avis-card-body::after { right: 0; }
}


/* =============================================================================
   12. BLOG / ACTUALITES
   ============================================================================= */

/* -----------------------------------------------
   Composants partagés (.news-card)
   ----------------------------------------------- */
.news-card {
    position: relative;
    display: flex; 
    flex-direction: column;
    background: var(--fond-page);
    border-radius: var(--radius-default);
    border: var(--border-card);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-card-hover);
}

.news-card:hover .media-frame img {
    transform: scale(1.05);
}

.news-card-media {
    position: relative;
    overflow: hidden;
    margin: 0.3rem;
    border-radius: var(--radius-default);
    background-color: var(--couleur-gris-sl);
}

.news-card-date {
    position: absolute;
    inset-block-start: 0.25rem;
    inset-inline-start: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.5rem;
    background-color: var(--fond-page);
    color: var(--typo-corps);
    font-weight: 600;
    font-size: var(--taille-font-sm);
    border-end-end-radius: var(--radius-default);
    z-index: 2;
}

.news-card-date i {
    display: none;
    color: var(--typo-titre);
    margin-inline-end: 0.5em;
}

/* -----------------------------------------------
   Date article style (desktop)
   ----------------------------------------------- */
.date-article {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 3.5em;
    padding: 0.55em 0.9em;
    background: var(--fond-page);
    border-radius: 0 0 var(--radius-default) 0;
    box-shadow: var(--shadow-md);
    z-index: 2;
    line-height: 1.2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.news-card-media:hover .date-article {
    background: var(--couleur-principale);
}

.date-article .time_day {
    font-size: var(--taille-font-xl);
    font-weight: 600;
    color: var(--typo-titre);
    line-height: 1;
    transition: color 0.3s ease;
}

.date-article .time_month {
    font-size: var(--taille-font-xs);
    text-transform: capitalize;
    color: var(--typo-corps);
    transition: color 0.3s ease;
}

.date-article .time_year {
    font-size: var(--taille-font-xs);
    color: var(--typo-legende);
    transition: color 0.3s ease;
}

.news-card-media:hover .date-article .time_day,
.news-card-media:hover .date-article .time_month,
.news-card-media:hover .date-article .time_year {
    color: var(--couleur-blanc);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
}

.news-card-title a {
    text-decoration: none;
}

/* -----------------------------------------------
   12.1 - Actualites homepage (.actualites)
   ----------------------------------------------- */
.actualites .news-card {
    inline-size: 100%;
}

.actualites .news-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.actualites:nth-child(even) .news-card-body {
    order: -1;
}

.actualites .news-card-media {
    border-radius: var(--radius-default) 0 0 var(--radius-default);
    margin: 0.3rem;
}

.actualites .news-card-media img {
    block-size: 100%;
    object-fit: cover;
}

.actualites .news-card-body {
    justify-content: center;
    padding: 2rem 1.5rem;
}

.actualites .news-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.actualites .news-card-body li {
    padding: 0.25rem 0 0.25rem 1.25rem;
    background: url(../images/puce.svg) no-repeat 0 50%;
}

.actualites .news-card-date {
    color: rgb(from var(--typo-titre) r g b / 0.7);
}

/* -----------------------------------------------
   12.2 - Liste news (.news-list)
   ----------------------------------------------- */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.625rem, 1.5vw, 1.25rem);
    inline-size: 100%;
}

.news-list .news-card-title {
    margin: 0;
    font-size: var(--taille-font-base);
}

.news-list .news-card-title a {
    color: var(--typo-sous-titre);
    transition: color 0.2s ease;
}

.news-list .news-card-title a:hover {
    color: var(--typo-titre);
}

/* -----------------------------------------------
   12.3 - Article news (.news-item)
   ----------------------------------------------- */
.news-item {
    max-width: 800px;
    margin-inline: auto;
}

.news-item .news-content {
    padding-block-start: 1rem;
    min-block-size: 200px;
}

/* -----------------------------------------------
   12.4 - Navigation & Pagination
   ----------------------------------------------- */
.news-navigation {
    display: flex;
    gap: 0.5rem;
    margin-block: 2rem;
}

.news-navigation > div {
    flex: 1;
}

.news-navigation a {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    color: var(--typo-sous-titre);
    text-decoration: none;
    border: 1px solid var(--fond-page-alt);
    border-radius: var(--radius-default);
    font-family: var(--family-titre);
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.news-navigation a:is(:hover, :focus) {
    border-color: var(--typo-sous-titre);
    background-color: var(--fond-page-alt);
}

.news-navigation b {
    text-transform: none;
    font-size: var(--taille-font-sm);
    margin-block-start: 0.25em;
    color: var(--typo-corps);
}

.pagination > li > :is(a, span) {
    color: var(--typo-sous-titre);
    border: 1px solid var(--couleur-gris-md);
    transition: all 0.2s ease;
}

.pagination > .active > :is(a, span) {
    background-color: var(--fond-bouton) !important;
    border-color: var(--typo-sous-titre) !important;
    color: var(--typo-sur-fond-sombre) !important;
}

/* -----------------------------------------------
   Focus visible — navigation clavier (WCAG 2.4.7)
   ----------------------------------------------- */
.news-card-link:focus-visible,
.news-card-title a:focus-visible,
.news-navigation a:focus-visible,
.pagination a:focus-visible,
.bouton:focus-visible {
    outline: 2px solid var(--couleur-principale);
    outline-offset: 3px;
    border-radius: var(--radius-default);
}

@media (max-width: 991px) {
    .actualites .news-card-grid {
        grid-template-columns: 1fr;
    }

    .actualites .news-card-media {
        block-size: 180px;
        border-radius: var(--radius-default) var(--radius-default) 0 0;
    }

    .actualites:nth-child(even) .news-card-body {
        order: 0;
    }
}

@media (max-width: 767px) {
    .news-list {
        grid-template-columns: 1fr;
    }

    :is(.news-list, .actualites) .news-card-date {
        position: static;
        background: transparent;
        padding: 0;
        justify-content: flex-start;
    }

    :is(.news-list, .actualites) .news-card-date i {
        display: inline-block;
    }

    .news-navigation {
        flex-direction: column;
    }
}

/* =============================================================================
   13. BLOC GMB (Google My Business) - Refactored
   ============================================================================= */

/* ===============================================
   13.1 - Note avis (.note-avis, .nbr-note)
   =============================================== */

.note-avis {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block-end: 2rem; 
}

.nbr-note {
    font-size: var(--taille-font-3xl); 
    color: var(--typo-titre);
    font-family: var(--family-titre);
    margin-inline-end: 4rem; 
    line-height: 1;
}

.bloc-GMB .badge-optionnel {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    display: block;
    
    --badge-size: 139px;
    width: var(--badge-size);
    height: var(--badge-size);
    
    background: url(../images/badge-optionnel.png) no-repeat top right;
    pointer-events: none;
}

/* ===============================================
   13.2 - Responsive Adjustment
   =============================================== */
@media (max-width: 767px) {
    .note-avis {
        flex-direction: column;
        gap: 1rem;
    }

    .nbr-note {
        margin-inline-end: 0;
        font-size: var(--taille-font-2xl);
    }

    .bloc-GMB .badge-optionnel {
        --badge-size: 80px;
        background-size: contain;
    }
}

/* =============================================================================
   14. FOOTER
   ============================================================================= */

/* -----------------------------------------------
   14.1 - Container & Grid
   ----------------------------------------------- */
.pied {
    position: relative;
    background: var(--fond-page);
    z-index: 9;
}

.pied .bande1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    padding-block: 5rem;
    padding-inline: 10%;
}

.pied .bande1.sans-horaires {
    grid-template-columns: 1fr 1fr 2fr;
}

@media (min-width: 992px) {
    .pied .bande1 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .pied .bande1 .footer-item:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1200px) {
    .pied .bande1 {
        grid-template-columns: 1fr 1fr 1fr 1.5fr;
    }
}

/* -----------------------------------------------
   14.2 - Liens footer
   ----------------------------------------------- */
.pied a {
    text-decoration: none;
}

.pied a:is(:hover, :active) {
    text-decoration: underline;
}

/* -----------------------------------------------
   14.3 - Contact & Address
   ----------------------------------------------- */
.pied address {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-style: normal;
}

address {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.flex-address,
.liste-coordonnees li {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    align-items: start;
    gap: 0.75rem;
}

.liste-coordonnees {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

:is(.liste-coordonnees, .menu_referencement) li:before {
    content: none;
}

:is(.contact, .pied) address i {
    font-size: 1.1rem;
    color: var(--typo-sous-titre);
    margin-top: 0.2rem;
}

address .callTracker {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 1rem;
    padding: 0;
}

address .callTracker :is(.t_phone, .t_affiche) {
    grid-column: 2;
    grid-row: 1;
}

address p {
    margin: 0;
    padding: 0 0 0.5rem;
}

address .tel a {
    text-decoration: none;
    color: inherit;
}

address p a {
    text-decoration: none;
    color: inherit;
}

address p a:hover {
    text-decoration: underline;
}

.liste-coordonnees li {
    margin-bottom: 4px;
}

.liste-coordonnees li a {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
}

/* -----------------------------------------------
   14.4 - Titres colonnes footer
   ----------------------------------------------- */
.pied .title_footer {
    position: relative;
    padding: 0 0 1.25rem;
    font-family: var(--family-titre);
    font-size: var(--taille-font-xl);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--typo-sous-titre);
    margin-bottom: 1.25rem;
}

.pied .title_footer::before {
    left: 0;
    bottom: 0;
    transform: translateX(0);
}

/* -----------------------------------------------
   14.5 - Horaires
   ----------------------------------------------- */
.horaire-table {
    width: 100%;
    font-size: var(--taille-font-sm);
    border-collapse: collapse;
}

.horaire-table td {
    padding-block: 0.25rem;
}

/* Capsule statut horaires */
.horaire-mention b {
    font-weight: normal;
}

.horaire-mention span[class*="horaires-label-"],
.horaire-mention b span[class*="horaires-label-"] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.7rem 0.25rem 0.5rem;
    font-family: var(--family-action);
    font-size: var(--taille-font-sm);
    color: var(--typo-sous-titre) !important;
    background: var(--fond-page-alt);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-default);
}

.horaire-mention span[class*="horaires-label-"]::before,
.horaire-mention b span[class*="horaires-label-"]::before {
    content: '';
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Ouvert — vert */
.horaires-label-open::before,
.horaires-label-opened::before {
    background: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.25);
}

/* Fermé — rouge */
.horaires-label-closed {
    font-weight: normal;
    text-transform: none;
    color: var(--typo-titre) !important;
}

.horaires-label-closed::before {
    background: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25);
}

/* Ferme prochainement / Ouvre prochainement — orange */
.horaires-label-closing::before,
.horaires-label-opening::before {
    background: #EA8524;
    box-shadow: 0 0 0 2px rgba(234, 133, 36, 0.25);
}


/* -----------------------------------------------
   14.6 - Menu référencement
   ----------------------------------------------- */
.pied .menu_referencement {
    list-style: none;
    margin: 0;
    padding: 0 1rem 0 0;
    text-align: justify;
    color: var(--typo-corps);
}

.pied .menu_referencement li {
    display: inline;
    padding: 0;
}

.pied .menu_referencement li:after {
    content: " - ";
}

.pied .menu_referencement li:last-child:after {
    content: "";
}

.pied .menu_referencement li a,
.pied .menu_referencement li a:visited {
    font-size: var(--taille-font-base);
    text-decoration: none;
    color: inherit;
}

.pied .menu_referencement li a:hover {
    color: var(--typo-sous-titre);
}

/* -----------------------------------------------
   14.7 - SEO Toggle & Scrollbars
   ----------------------------------------------- */
.footer-item-ref .scrollbars {
    max-height: 260px;
    scrollbar-width: thin;
    scrollbar-color: var(--couleur-gris-md) transparent;
}

.footer-ref-toggle {
    display: none;
}

/* -----------------------------------------------
   14.8 - Bande 2 & Socials
   ----------------------------------------------- */
.pied .bande2 {
    padding-block: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

#logo_FD {
    max-inline-size: 200px;
    height: auto;
}

#logo_FD path,
#logo_FD polygon,
#logo_FD rect {
    fill: var(--typo-titre);
}

/* -----------------------------------------------
   14.9 - Copyright
   ----------------------------------------------- */
.copyright {
    text-align: justify;
}

.pied .copyright-footer {
    margin: 0;
    text-align: center;
}

/* -----------------------------------------------
   14.10 - Responsive
   ----------------------------------------------- */
@media (max-width: 1199px) {
    .pied .bande1 {
        padding-inline: 5%;
    }
}

@media (max-width: 991px) {
    .pied .bande1 {
        grid-template-columns: repeat(2, 1fr);
        padding: 3rem 5%;
    }
    .pied .bande1.sans-horaires {
        grid-template-columns: repeat(2, 1fr);
    }
    .pied .bande2 {
        padding-inline: 5%;
    }
    .bande_contact_footer {
        padding: 0;
    }
    #menu_footer .menu-item {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
    }
    #menu_footer .menu-item a {
        display: flex;
        align-items: center;
        min-height: 3rem;
        padding-block: 4px;
    }
}

@media (max-width: 767px) {
    .pied .bande1 {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    .pied .bande2 {
        flex-direction: column;
    }
    .footer-item-ref .title_footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        cursor: pointer;
    }
    .footer-ref-toggle {
        display: flex;
        min-height: 3rem;
        min-width: 3rem;
        padding: 0.8em 1.5em;
        font-size: var(--taille-font-sm, 0.75rem);
        border-radius: var(--radius-default);
        flex-shrink: 0;
    }
    .footer-ref-toggle i {
        transition: transform 0.2s ease;
    }
    .footer-item-ref .scrollbars {
        max-height: 7em;
        overflow: hidden;
        margin: 1rem 0 0;
        transition: max-height 0.4s ease;
    }
    .footer-item-ref.is-open .scrollbars {
        max-height: 999px;
    }
    #menu_referencement .menu-item {
        position: relative;
    }
    #menu_referencement .menu-item a::after {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        min-height: 48px;
        content: '';
        transform: translateY(-50%);
    }
}

/* =============================================================================
   15. PAGES INTERNES
   ============================================================================= */

/* -----------------------------------------------
   15.1 - Pages SEO (.pageseo-grid)
   ----------------------------------------------- */

.pageseo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    gap: clamp(1.5rem, 3vw, 2.5rem); 
    align-items: start;
}

.pageseo-body {
    padding-top: 1rem;
    min-width: 0; 
}

.pageseo-image {margin: auto 0;}

.pageseo-body img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-default);
    margin-bottom: 1.5rem;
}

/* -----------------------------------------------
   15.2 - Sidebar SEO (.pageseo-aside)
   ----------------------------------------------- */

.pageseo-aside {
    position: sticky;
    top: 11vh; 
    padding: clamp(1.5rem, 2vw, 2.5rem);
    background: var(--fond-page-alt);
    border-radius: var(--radius-default);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lt);
}

.pageseo-aside h2.h1 {
    text-align: left;
    margin-top: 0;
}

.pageseo-aside h2.h1::before {
    left: 0;
    transform: translateX(0);
}

/* -----------------------------------------------
   15.3 - Media & Images (.pageseo-image)
   ----------------------------------------------- */

.pageseo-image img {
    display: block;
    width: 100%;
    aspect-ratio: var(--img-ratio);
    object-fit: cover;
    border-radius: var(--radius-default);
    transition: transform 0.3s ease;
}


a .pageseo-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .pageseo-grid {
       
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pageseo-aside {
        position: static;
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .pageseo-body {
        padding-top: 0;
    }
}

/* -----------------------------------------------
   15.5 - Plan du site (.sitemap)
   ----------------------------------------------- */

.sitemap {
    margin: 0 auto;
}

.sitemap ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0 0 1rem;
    padding: 0;
}

.sitemap hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid var(--border-subtle);
}

.sitemap li.niveau1 {
    align-items: center;
}

.sitemap li.niveau1::before {
    content: none;
}

.sitemap li.niveau1 a {
    display: flex;
    align-items: center;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sitemap li.niveau1 a:hover {
    color: var(--couleur-principale);
}

.sitemap li.niveau2 {
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
}

.sitemap li.niveau2::before {
    content: "\f105";
    font-size: var(--taille-font-sm);
}

.sitemap li.niveau2 a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sitemap li.niveau2 a:hover {
    color: var(--couleur-principale);
}

@media (max-width: 767px) {
    .sitemap {
        padding: 1.5rem 1rem;
    }

    .sitemap li.niveau2 {
        padding-left: 1rem;
    }
}
