.tm-site-shell-header,
.tm-site-shell-footer {
    --tm-night-950: #020617;
    --tm-night-900: #03091f;
    --tm-night-800: #07133d;
    --tm-pink: #ff4fb8;
    --tm-pink-soft: #ff9ed8;
    --tm-blue: #3a72ff;
    --tm-blue-soft: #8bb6ff;
    --tm-pearl: #fff8ff;
    --tm-muted: rgba(244, 239, 255, 0.76);
    --tm-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    width: 100%;
    position: relative;
    z-index: 999;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--tm-pearl);
    background-color: var(--tm-night-950);
}

.tm-site-shell-header *,
.tm-site-shell-footer * {
    box-sizing: border-box;
}

.tm-site-shell-header::before,
.tm-site-shell-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-repeat: no-repeat;
    pointer-events: none;
}

.tm-site-shell-header::before {
    background-image: url("./tm-header-enchanted.webp");
    background-position: center 49%;
    background-size: 100% auto;
}

.tm-site-shell-footer::before {
    background-image: url("./tm-footer-enchanted.webp");
    background-position: center;
    background-size: cover;
}

.tm-site-shell-header::after,
.tm-site-shell-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.tm-site-shell-header::after {
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--tm-pink), #b44dff 48%, var(--tm-blue));
    box-shadow:
        0 0 7px rgba(255, 79, 184, 0.92),
        0 0 15px rgba(58, 114, 255, 0.7);
}

.tm-site-shell-footer::after {
    inset: 0;
    border-top: 1px solid rgba(255, 79, 184, 0.5);
    box-shadow: inset 0 1px 16px rgba(58, 114, 255, 0.16);
}

.tm-site-shell-header {
    min-height: 112px;
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
    box-shadow: 0 8px 30px rgba(1, 5, 24, 0.46);
}

.tm-site-shell-footer {
    min-height: 390px;
    margin-top: 0 !important;
    border-top: 0 !important;
    box-shadow: 0 -8px 34px rgba(1, 5, 24, 0.46);
}

/* Le plugin remplace les zones natives du thème Hello Elementor. */
body.tm-site-shell-has-header > #site-header,
body.tm-site-shell-has-header > header.site-header:not(#tm-site-shell-header),
body.tm-site-shell-has-footer > #site-footer,
body.tm-site-shell-has-footer > footer.site-footer:not(#tm-site-shell-footer) {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.tm-site-shell-header-inner,
.tm-site-shell-footer-inner {
    width: min(100%, 1380px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tm-site-shell-header-inner {
    min-height: 112px;
    padding: 13px 28px;
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 66px);
}

.tm-site-shell-footer-inner {
    min-height: 390px;
    padding: 58px 28px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
}

.tm-site-shell-brand {
    flex: 0 0 auto;
    min-width: 0;
}

.tm-site-shell-brand a {
    color: inherit;
    text-decoration: none;
}

.tm-site-shell-brand-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 21px;
    outline: none;
    transition:
        transform 280ms ease,
        filter 280ms ease;
}

.tm-site-shell-brand-link--header {
    width: min(100%, 270px);
}

.tm-site-shell-brand-link--header picture {
    display: block;
    width: 100%;
}

.tm-site-shell-brand-link--footer {
    width: clamp(280px, 31vw, 430px);
}

.tm-site-shell-enchanted-logo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
    object-fit: contain;
    filter:
        saturate(1.08)
        drop-shadow(0 0 8px rgba(255, 79, 184, 0.26))
        drop-shadow(0 0 15px rgba(58, 114, 255, 0.2));
}

.tm-site-shell-brand-link--header .tm-site-shell-enchanted-logo {
    max-height: 84px;
}

.tm-site-shell-brand-link--footer .tm-site-shell-enchanted-logo {
    max-height: 143px;
}

.tm-site-shell-brand-link:hover,
.tm-site-shell-brand-link:focus-visible {
    transform: translateY(-2px) scale(1.012);
    filter: brightness(1.08);
}

.tm-site-shell-brand-link:focus-visible {
    outline: 2px solid var(--tm-pearl);
    outline-offset: 5px;
}

.tm-site-shell-brand-glint {
    position: absolute;
    top: 8%;
    left: 10%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0;
    background: var(--tm-pearl);
    box-shadow:
        0 0 8px 2px rgba(255, 255, 255, 0.9),
        0 0 18px 4px rgba(255, 79, 184, 0.72);
    pointer-events: none;
    transform: scale(0.2);
}

.tm-site-shell-brand-link:hover .tm-site-shell-brand-glint,
.tm-site-shell-brand-link:focus-visible .tm-site-shell-brand-glint {
    animation: tm-site-shell-glint 900ms ease-out;
}

.tm-site-shell-brand img:not(.tm-site-shell-enchanted-logo) {
    display: block;
    width: auto;
    max-height: 76px;
}

.tm-site-shell-brand-text {
    display: inline-block;
    font-family: var(--tm-display);
    font-size: clamp(28px, 2.6vw, 38px);
    font-weight: 600;
    letter-spacing: 0.025em;
    color: var(--tm-pearl);
    text-shadow:
        0 0 10px rgba(255, 79, 184, 0.52),
        0 0 22px rgba(58, 114, 255, 0.42);
    transition: transform 280ms ease, text-shadow 280ms ease;
}

.tm-site-shell-brand-text:hover,
.tm-site-shell-brand-text:focus-visible {
    transform: translateY(-2px);
    text-shadow:
        0 0 12px rgba(255, 79, 184, 0.75),
        0 0 26px rgba(58, 114, 255, 0.62);
}

.tm-site-shell-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-site-shell-footer .tm-site-shell-nav {
    width: 100%;
}

.tm-site-shell-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 16px clamp(18px, 2vw, 32px);
}

.tm-site-shell-nav-list li {
    margin: 0;
    padding: 0;
}

.tm-site-shell-nav-list a {
    position: relative;
    display: inline-block;
    padding: 8px 0 10px;
    color: rgba(255, 250, 255, 0.94);
    text-decoration: none;
    font-family: var(--tm-display);
    font-size: clamp(15px, 1.12vw, 17px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.025em;
    text-shadow: 0 2px 12px rgba(0, 0, 20, 0.94);
    outline: none;
    transition:
        color 220ms ease,
        text-shadow 220ms ease,
        transform 220ms ease;
}

.tm-site-shell-nav-list a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 3px;
    left: 50%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tm-pink), #d65cff 48%, var(--tm-blue));
    box-shadow:
        0 0 7px rgba(255, 79, 184, 0.84),
        0 0 12px rgba(58, 114, 255, 0.64);
    opacity: 0;
    transition:
        right 240ms ease,
        left 240ms ease,
        opacity 180ms ease;
}

.tm-site-shell-nav-list a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tm-pearl);
    box-shadow:
        0 0 5px 1px var(--tm-pearl),
        0 0 11px 3px rgba(255, 79, 184, 0.62);
    opacity: 0;
    transform: translate(-50%, 4px) scale(0);
    transition: opacity 180ms ease, transform 220ms ease;
}

.tm-site-shell-nav-list a:hover,
.tm-site-shell-nav-list a:focus-visible,
.tm-site-shell-nav-list .current-menu-item > a,
.tm-site-shell-nav-list .current_page_item > a {
    color: #ffffff;
    text-shadow:
        0 0 9px rgba(255, 158, 216, 0.62),
        0 0 18px rgba(139, 182, 255, 0.5);
    transform: translateY(-1px);
}

.tm-site-shell-nav-list a:hover::after,
.tm-site-shell-nav-list a:focus-visible::after,
.tm-site-shell-nav-list .current-menu-item > a::after,
.tm-site-shell-nav-list .current_page_item > a::after {
    right: 0;
    left: 0;
    opacity: 1;
}

.tm-site-shell-nav-list a:hover::before,
.tm-site-shell-nav-list a:focus-visible::before,
.tm-site-shell-nav-list .current-menu-item > a::before,
.tm-site-shell-nav-list .current_page_item > a::before {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.tm-site-shell-nav-list a:focus-visible {
    border-radius: 4px;
    outline: 2px solid rgba(139, 182, 255, 0.95);
    outline-offset: 5px;
}

.tm-site-shell-footer .tm-site-shell-nav-list {
    gap: 14px clamp(20px, 2.25vw, 38px);
}

.tm-site-shell-footer .tm-site-shell-nav-list a {
    font-size: clamp(15px, 1.2vw, 18px);
}

.tm-site-shell-copy {
    width: min(100%, 680px);
    margin: 1px 0 0;
    display: grid;
    grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
    align-items: center;
    gap: 14px;
    color: var(--tm-muted);
    font-family: var(--tm-display);
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.055em;
    text-shadow: 0 2px 12px rgba(0, 0, 20, 0.88);
}

.tm-site-shell-copy > span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 79, 184, 0.72), rgba(58, 114, 255, 0.68), transparent);
    box-shadow: 0 0 8px rgba(172, 82, 255, 0.36);
}

.tm-site-shell-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.tm-site-shell-atmosphere i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--tm-pearl);
    box-shadow:
        0 0 5px 1px rgba(255, 255, 255, 0.84),
        0 0 12px 3px rgba(255, 79, 184, 0.46);
    opacity: 0.18;
    animation: tm-site-shell-twinkle 4.8s ease-in-out infinite;
}

.tm-site-shell-atmosphere i:nth-child(1) {
    top: 28%;
    left: 18%;
}

.tm-site-shell-atmosphere i:nth-child(2) {
    top: 18%;
    right: 23%;
    animation-delay: -1.7s;
}

.tm-site-shell-atmosphere i:nth-child(3) {
    right: 10%;
    bottom: 22%;
    animation-delay: -3.1s;
}

.tm-site-shell-footer .tm-site-shell-atmosphere i:nth-child(1) {
    top: 34%;
    left: 29%;
}

.tm-site-shell-footer .tm-site-shell-atmosphere i:nth-child(2) {
    top: 23%;
    right: 31%;
}

.tm-site-shell-footer .tm-site-shell-atmosphere i:nth-child(3) {
    right: 18%;
    bottom: 21%;
}

/* 1.1.22 : aucune section Elementor n'est masquee automatiquement.
   Une section sans widget peut contenir une image ou un fond configure dans Elementor. */

@keyframes tm-site-shell-twinkle {
    0%,
    100% {
        opacity: 0.14;
        transform: scale(0.55);
    }

    45% {
        opacity: 0.9;
        transform: scale(1.35);
    }

    60% {
        opacity: 0.32;
        transform: scale(0.82);
    }
}

@keyframes tm-site-shell-glint {
    0% {
        opacity: 0;
        transform: scale(0.15) rotate(0deg);
    }

    38% {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }

    100% {
        opacity: 0;
        transform: translate(38px, 14px) scale(0.2) rotate(90deg);
    }
}

@media (max-width: 1080px) {
    .tm-site-shell-header-inner {
        grid-template-columns: minmax(190px, 235px) minmax(0, 1fr);
        gap: 25px;
        padding-right: 22px;
        padding-left: 22px;
    }

    .tm-site-shell-nav-list {
        gap: 10px 20px;
    }
}

@media (max-width: 860px) {
    .tm-site-shell-header {
        min-height: 172px;
    }

    .tm-site-shell-header::before {
        background-size: auto 720px;
    }

    .tm-site-shell-header-inner {
        min-height: 172px;
        padding: 15px 20px 19px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 8px;
    }

    .tm-site-shell-brand-link--header {
        width: 224px;
    }

    .tm-site-shell-header .tm-site-shell-nav {
        width: 100%;
    }

    .tm-site-shell-nav-list {
        gap: 8px 20px;
    }

    .tm-site-shell-nav-list a {
        font-size: 15px;
    }

    .tm-site-shell-footer {
        min-height: 380px;
    }

    .tm-site-shell-footer-inner {
        min-height: 380px;
        padding: 54px 24px 30px;
        gap: 21px;
    }
}

@media (max-width: 560px) {
    .tm-site-shell-header {
        min-height: 276px;
    }

    .tm-site-shell-header-inner {
        min-height: 276px;
        padding: 12px 14px 18px;
        gap: 9px;
    }

    .tm-site-shell-brand-link--header {
        width: 74px;
        border-radius: 14px;
    }

    .tm-site-shell-brand-link--header .tm-site-shell-enchanted-logo {
        width: 74px;
        height: 74px;
        object-fit: cover;
    }

    .tm-site-shell-header .tm-site-shell-nav-list {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 7px 16px;
        justify-content: center;
    }

    .tm-site-shell-nav-list a,
    .tm-site-shell-footer .tm-site-shell-nav-list a {
        padding: 7px 0 9px;
        font-size: 14px;
    }

    .tm-site-shell-footer {
        min-height: 500px;
    }

    .tm-site-shell-footer::before {
        background-position: center;
        background-size: auto 100%;
    }

    .tm-site-shell-footer-inner {
        min-height: 500px;
        padding: 64px 16px 31px;
        gap: 20px;
    }

    .tm-site-shell-brand-link--footer {
        width: min(82vw, 310px);
    }

    .tm-site-shell-footer .tm-site-shell-nav-list {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 6px 22px;
        justify-content: center;
    }

    .tm-site-shell-copy {
        grid-template-columns: 24px minmax(0, auto) 24px;
        gap: 9px;
        font-size: 11px;
        letter-spacing: 0.025em;
    }

    .tm-site-shell-atmosphere i:nth-child(3) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-site-shell-header *,
    .tm-site-shell-footer * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================================================== 
   VERSION 1.1.24 - HEADER SANS CADRE, FOND PLEINE LARGEUR ET MENU RAPPROCHE
   Les images finales ne contiennent ni navigation ni copyright.
   ========================================================================== */

#tm-site-shell-header.tm-site-shell-header,
#tm-site-shell-footer.tm-site-shell-footer {
    box-sizing: border-box;
    isolation: isolate;
    z-index: 30 !important;
    overflow: hidden;
    background-color: #020521 !important;
    background-repeat: no-repeat !important;
}

/* L'ancien fichier de logo reste le lien d'accueil, mais n'est plus dessine :
   l'enseigne est fusionnee proprement dans chacun des nouveaux fonds. */
#tm-site-shell-header .tm-site-shell-brand,
#tm-site-shell-footer .tm-site-shell-brand {
    z-index: 5;
    display: block !important;
    font-size: 0 !important;
    color: transparent !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

#tm-site-shell-header .tm-site-shell-brand-link,
#tm-site-shell-footer .tm-site-shell-brand-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

#tm-site-shell-header .tm-site-shell-brand img,
#tm-site-shell-footer .tm-site-shell-brand img,
#tm-site-shell-header .tm-site-shell-brand picture,
#tm-site-shell-footer .tm-site-shell-brand picture,
#tm-site-shell-header .tm-site-shell-brand svg,
#tm-site-shell-footer .tm-site-shell-brand svg {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* HEADER : recadrage proportionnel du fond, enseigne a gauche, menu vivant a droite. */
#tm-site-shell-header.tm-site-shell-header {
    position: relative;
    min-height: clamp(132px, 7.8vw, 154px) !important;
    background-image: none !important;
    background-size: 100% auto !important;
    background-position: center 50% !important;
}

#tm-site-shell-header.tm-site-shell-header::before {
    background-image: url("tm-header-composite.webp") !important;
    background-size: 100% auto !important;
    background-position: center 50% !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}

#tm-site-shell-header.tm-site-shell-header::after {
    content: "";
    position: absolute;
    z-index: 6;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff38ba 0%, #ff5bd0 30%, #b43cff 53%, #426eff 76%, #16a5ff 100%);
    box-shadow: 0 0 7px #ff35bd, 0 0 13px rgba(48, 111, 255, .9);
    pointer-events: none;
}

#tm-site-shell-header.tm-site-shell-header .tm-site-shell-header-inner {
    position: relative !important;
    z-index: 3;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

#tm-site-shell-header.tm-site-shell-header .tm-site-shell-brand {
    position: absolute !important;
    top: 50% !important;
    left: clamp(90px, 10.5vw, 200px) !important;
    width: clamp(220px, 15vw, 300px) !important;
    height: clamp(70px, 5.6vw, 108px) !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

#tm-site-shell-header.tm-site-shell-header .tm-site-shell-brand:hover,
#tm-site-shell-header.tm-site-shell-header .tm-site-shell-brand:focus-visible {
    transform: translateY(-50%) !important;
}

#tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav {
    position: absolute !important;
    z-index: 5;
    top: 50% !important;
    right: auto !important;
    left: clamp(330px, 22vw, 430px) !important;
    width: min(68vw, 980px) !important;
    max-width: none !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
}

#tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(16px, 1.35vw, 26px) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav a {
    white-space: nowrap;
    font-size: clamp(15px, 1vw, 19px) !important;
    letter-spacing: .015em;
    color: #fff8f2 !important;
    text-shadow: 0 0 6px rgba(255,255,255,.28), 0 0 13px rgba(255,82,198,.2);
}

/* FOOTER : le fond garde ses lampadaires et ses vagues sans deformation. */
#tm-site-shell-footer.tm-site-shell-footer {
    position: relative;
    min-height: clamp(520px, 33.4vw, 684px) !important;
    background-image: none !important;
    background-size: cover !important;
    background-position: center center !important;
}

#tm-site-shell-footer.tm-site-shell-footer::before {
    background-image: url("tm-footer-composite.webp") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-footer-inner {
    position: relative !important;
    z-index: 3;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-brand {
    position: absolute !important;
    top: 21.5% !important;
    left: 50% !important;
    width: clamp(480px, 34vw, 700px) !important;
    height: clamp(170px, 13vw, 266px) !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-brand:hover,
#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-brand:focus-visible {
    transform: translateX(-50%) !important;
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav {
    position: absolute !important;
    z-index: 5;
    top: 63.5% !important;
    left: 50% !important;
    width: min(84vw, 1320px) !important;
    max-width: none !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(20px, 2.15vw, 44px) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav a {
    white-space: nowrap;
    font-size: clamp(16px, 1.12vw, 22px) !important;
    letter-spacing: .018em;
    color: #fff8f2 !important;
    text-shadow: 0 0 6px rgba(255,255,255,.24), 0 0 13px rgba(55,112,255,.16);
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-copy {
    position: absolute !important;
    z-index: 5;
    top: 78.5% !important;
    left: 50% !important;
    width: min(680px, 72vw) !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    color: #fff8f2 !important;
    text-shadow: 0 0 7px rgba(255,255,255,.2);
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-copy::before {
    content: "" !important;
    position: absolute;
    top: -19px;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,58,190,.65) 34%, transparent 47%, transparent 53%, rgba(70,105,255,.62) 66%, transparent);
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-copy::after {
    content: "♡" !important;
    position: absolute;
    top: -36px;
    left: 50%;
    padding: 0 8px;
    transform: translateX(-50%);
    color: #ff45c0;
    font-size: 24px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255,51,184,.75), 0 0 12px rgba(80,96,255,.45);
}

/* Tablettes et telephones : fond non deforme, menu reel reorganise. */
@media (max-width: 980px) {
    #tm-site-shell-header.tm-site-shell-header {
        min-height: 320px !important;
        background-size: auto 100% !important;
        background-position: left center !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-brand {
        top: 106px !important;
        left: 20px !important;
        width: min(430px, 72vw) !important;
        height: 105px !important;
        transform: translateY(-50%) !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav {
        top: auto !important;
        right: 18px !important;
        bottom: 18px !important;
        left: 18px !important;
        transform: none !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 18px !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav a {
        display: block;
        text-align: center;
        font-size: 16px !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer {
        min-height: 690px !important;
        background-size: auto 100% !important;
        background-position: center center !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-brand {
        top: 18% !important;
        width: min(650px, 88vw) !important;
        height: 220px !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav {
        top: 55% !important;
        width: min(92vw, 680px) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 18px !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav a {
        display: block;
        text-align: center;
        font-size: 16px !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-copy {
        top: 87% !important;
        width: min(84vw, 620px) !important;
        font-size: 13px !important;
    }
}

@media (max-width: 560px) {
    #tm-site-shell-header.tm-site-shell-header {
        min-height: 360px !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-brand {
        top: 96px !important;
        width: calc(100vw - 40px) !important;
        height: 100px !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer {
        min-height: 780px !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-brand {
        top: 15% !important;
        width: 94vw !important;
        height: 210px !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav {
        top: 52% !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-copy {
        top: 92% !important;
        width: 88vw !important;
    }
}


/* ==========================================================================
   VERSION 1.2.0 - PANNEAU DE CONFIGURATION IMAGES ET TYPOGRAPHIE
   ========================================================================== */

#tm-site-shell-header.tm-site-shell-header::before {
    background-image: var(--tm-shell-header-image) !important;
    background-position: var(--tm-shell-header-bg-x) var(--tm-shell-header-bg-y) !important;
}

#tm-site-shell-footer.tm-site-shell-footer::before {
    background-image: var(--tm-shell-footer-image) !important;
    background-position: var(--tm-shell-footer-bg-x) var(--tm-shell-footer-bg-y) !important;
}

#tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav a {
    font-family: var(--tm-shell-header-font) !important;
    color: var(--tm-shell-header-color) !important;
}

#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav a,
#tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-copy {
    font-family: var(--tm-shell-footer-font) !important;
    color: var(--tm-shell-footer-color) !important;
}

@media (min-width: 981px) {
    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav {
        top: calc(50% + var(--tm-shell-header-menu-y)) !important;
        margin-left: var(--tm-shell-header-menu-x) !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav a {
        font-size: var(--tm-shell-header-size) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav {
        top: calc(63.5% + var(--tm-shell-footer-menu-y)) !important;
        margin-left: var(--tm-shell-footer-menu-x) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav a {
        font-size: var(--tm-shell-footer-size) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-copy {
        top: calc(78.5% + var(--tm-shell-footer-copy-y)) !important;
        font-size: var(--tm-shell-footer-copy-size) !important;
    }
}


/* ==========================================================================
   VERSION 1.3.0 - PERSONNALISATION ET ZONE DE SECURITE DU LOGO
   Les controles ci-dessous s'appliquent uniquement a l'affichage ordinateur.
   Les regles tablette et mobile des versions precedentes restent protegees.
   ========================================================================== */

@media (min-width: 981px) {
    #tm-site-shell-header.tm-site-shell-header {
        min-height: var(--tm-shell-header-height) !important;
    }

    #tm-site-shell-header.tm-site-shell-header::before {
        background-size: var(--tm-shell-header-bg-size) !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav {
        left: max(var(--tm-shell-header-safe), 360px) !important;
        width: min(
            var(--tm-shell-header-menu-width),
            calc(100vw - max(var(--tm-shell-header-safe), 360px) - 28px)
        ) !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav ul {
        justify-content: var(--tm-shell-header-align) !important;
        gap: var(--tm-shell-header-menu-gap) !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav a {
        font-weight: var(--tm-shell-header-weight) !important;
        letter-spacing: var(--tm-shell-header-letter) !important;
        text-shadow:
            0 0 6px rgba(255, 255, 255, var(--tm-shell-header-shadow)),
            0 0 13px rgba(255, 82, 198, var(--tm-shell-header-shadow)) !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav a:hover,
    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav a:focus-visible,
    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav .current-menu-item > a,
    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav .current_page_item > a {
        color: var(--tm-shell-header-hover) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer {
        min-height: var(--tm-shell-footer-height) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer::before {
        background-size: var(--tm-shell-footer-bg-size) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav {
        width: var(--tm-shell-footer-menu-width) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav ul {
        justify-content: var(--tm-shell-footer-align) !important;
        gap: var(--tm-shell-footer-menu-gap) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav a {
        font-weight: var(--tm-shell-footer-weight) !important;
        letter-spacing: var(--tm-shell-footer-letter) !important;
        text-shadow:
            0 0 6px rgba(255, 255, 255, var(--tm-shell-footer-shadow)),
            0 0 13px rgba(55, 112, 255, var(--tm-shell-footer-shadow)) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav a:hover,
    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav a:focus-visible,
    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav .current-menu-item > a,
    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-nav .current_page_item > a {
        color: var(--tm-shell-footer-hover) !important;
    }

    #tm-site-shell-footer.tm-site-shell-footer .tm-site-shell-copy {
        width: min(var(--tm-shell-footer-copy-width), 88vw) !important;
        text-align: var(--tm-shell-footer-copy-align) !important;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav ul {
        gap: min(var(--tm-shell-header-menu-gap), 12px) !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav a {
        font-size: min(var(--tm-shell-header-size), 14px) !important;
    }
}

/* ==========================================================================
   VERSION 1.3.1 - CENTRAGE DU MENU HEADER SUR LE VIEWPORT
   ========================================================================== */

@media (min-width: 1280px) {
    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav {
        left: calc(50vw + var(--tm-shell-header-menu-x)) !important;
        width: min(
            var(--tm-shell-header-menu-width),
            calc(
                100vw
                - max(var(--tm-shell-header-safe), 360px)
                - max(var(--tm-shell-header-safe), 360px)
            )
        ) !important;
        margin-left: 0 !important;
        transform: translate(-50%, -50%) !important;
    }
}

@media (min-width: 1280px) and (max-width: 1440px) {
    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav ul {
        gap: min(var(--tm-shell-header-menu-gap), 12px) !important;
    }

    #tm-site-shell-header.tm-site-shell-header .tm-site-shell-nav a {
        font-size: min(var(--tm-shell-header-size), 14px) !important;
    }
}

/* ==========================================================================
   VERSION 1.5.1 - COMPORTEMENT DES ZONES LOGO
   ========================================================================== */

#tm-site-shell-header .tm-site-shell-brand-link > .tm-site-shell-brand-text,
#tm-site-shell-footer .tm-site-shell-brand-link > .tm-site-shell-brand-text {
    display: grid !important;
    place-items: center;
    width: 100% !important;
    height: 100% !important;
    padding: 8px;
    text-align: center;
}

#tm-site-shell-header .tm-site-shell-brand-link--static,
#tm-site-shell-footer .tm-site-shell-brand-link--static {
    pointer-events: none !important;
    cursor: default !important;
    transform: none !important;
    filter: none !important;
}

#tm-site-shell-header .tm-site-shell-brand-link--static .tm-site-shell-brand-glint,
#tm-site-shell-footer .tm-site-shell-brand-link--static .tm-site-shell-brand-glint {
    opacity: 0 !important;
    animation: none !important;
}
