.bal-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.bal-swatches .bal-gallery {
    width: 200px;
    margin: 5px;
}

[data-carousel] {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.bal-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    min-width: 0;
}

.bal-slides img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    flex: none;
    scroll-snap-align: start;
}

[data-carousel] button {
    min-width: 44px;
    min-height: 44px;
    font-size: 28px;
}

.bal-partners details {
    padding: 12px;
    border-bottom: 1px solid #ccc;
}

.bal-accordion summary {
    background: #d65409;
    color: white;
    padding: 10px;
    cursor: pointer;
    font: 16px Arial, sans-serif;
}

.bal-accordion > div {
    padding: 15px;
    background: #ececec;
    color: #8c8a8a;
}

.bal-gallery {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    margin: 0 auto;
    cursor: pointer;
}

.bal-gallery img {
    border: 5px solid #414141;
    box-sizing: border-box;
}

.bal-lightbox {
    background: #333;
    color: white;
    border: 0;
    max-width: 95vw;
    padding: 25px;
    text-align: center;
}

.bal-lightbox::backdrop {
    background: #0009;
}

.bal-lightbox img {
    max-height: 80vh;
    max-width: 60vw;
}

.bal-lightbox button {
    font-size: 30px;
    min-width: 44px;
    min-height: 44px;
    background: #444;
    color: white;
    border: 0;
    cursor: pointer;
}

.bal-lightbox .close {
    position: absolute;
    right: 0;
    top: 0;
}

/* Reference alignment: production header has a 20px logo gap. */
.tm-headerbar > .tm-logo {
    display: block;
    padding-bottom: 20px;
}

.bal-menu a {
    font-size: 17px !important;
}

.bal-menu a[aria-current="page"] {
    background: #414141;
    color: #ddd;
}

.bal-accordion summary {
    line-height: 16px;
    border-radius: 3px;
    box-shadow: 0 2px 2px #0002;
}


.tm-footer .mod-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
}

footer {
    background-color: rgba(0, 0, 0, 0.04);
    color: #8c8a8a;
    border-radius: 3px;
    padding: 15px 10px;
    margin-bottom: 20px  !important;
}

.tm-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-bottom: 15px;
}

.tm-footer .mod-menu a {
    color: #8c8a8a;
    text-decoration: none;
}
.tm-footer .mod-menu a:hover {
    color: #636161;
}


#bal-map {
    z-index: 10;
    height: 500px;
    max-width: 100%;
}

/* Collapsed rail uses icons instead of clipped text labels. */
@font-face {
    font-family: BalIcons;
    src: url('assets/fonts/fontawesome-webfont.woff2') format('woff2');
}

.bal-sidebar {
    padding-top: 100px;
    box-sizing: border-box;
}

.bal-sidebar .bal-menu > li > a {
    color: #aaa;
    padding: 0;
    white-space: nowrap;
}

.bal-sidebar .bal-menu > li > a::before {
    font-family: BalIcons;
    display: inline-block;
    width: 50px;
    text-align: center;
    content: '\f015';
    font-size: 20px;
}

.bal-sidebar .bal-menu > li:nth-child(2) > a::before {
    content: '\f0a3';
}

.bal-sidebar .bal-menu > li:nth-child(3) > a::before {
    content: '\f06e';
}

.bal-sidebar .bal-menu > li:nth-child(4) > a::before {
    content: '\f08d';
}

.bal-sidebar .bal-menu > li:nth-child(5) > a::before {
    content: '\f19d';
}

.bal-sidebar .bal-menu > li:nth-child(6) > a::before {
    content: '\f06e';
}

.bal-sidebar .bal-menu > li:nth-child(7) > a::before {
    content: '\f219';
}

.bal-sidebar .bal-menu > li:nth-child(8) > a::before {
    content: '\f040';
}

.bal-sidebar .bal-menu > li:nth-child(9) > a::before {
    content: '\f07a';
}

.bal-sidebar a[aria-current="page"]::before {
    color: #d65409;
}

html {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
}

.tm-page {
    margin-left: 50px;
}

.bal-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 50px;
    height: 100vh;
    background: #414141;
    z-index: 40;
    overflow: hidden;
}

.bal-sidebar:hover, .bal-sidebar:focus-within {
    width: 240px;
}

.bal-sidebar .bal-menu {
    display: block;
    width: 240px;
}

.bal-sidebar a {
    color: white;
}

.bal-grid {
    display: grid;
    grid-template-columns:repeat(var(--columns), minmax(0, 1fr));
    gap: 30px;
}

.bal-grid > .uk-panel {
    min-width: 0;
}

.bal-accordion > div {
    background: #e9e9ea;
    color: #8c8a8a;
    border: 5px solid #e6e6e6;
}

.tm-content {
    margin-top: 30px;
}

.uk-panel-box, .tm-content {
    padding: 30px;
    background: #e9e9ea;
    color: #8c8a8a;
    border: 5px solid #e6e6e6;
    border-radius: 3px;
}

.bal-accordion {
    position: relative;
}

.bal-accordion:after {
    content: '\25BC';
    position: absolute;
    top: 17px;
    right: 10px;
    color: white;
    transform: translateY(-50%) rotate(-180deg);
    transition: transform 0.3s ease;
}

.bal-accordion[open]:after {
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}

.uk-panel .bal-accordion {
    interpolate-size: allow-keywords;
}

.uk-panel .bal-accordion::details-content {
    height: 0;
    overflow: clip;
    transition:
            height 0.3s ease,
            content-visibility 0.3s allow-discrete;
}

.uk-panel .bal-accordion[open]::details-content {
    height: auto;
}

.bal-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.bal-menu li {
    position: relative;
    list-style: none;
}

.bal-menu a {
    display: block;
    padding: 0 15px;
    line-height: 50px;
    color: #444;
    font-size: 14px;
}

.bal-menu li:hover > a, .bal-menu li:focus-within > a {
    background: #414141;
    color: white;
}

.bal-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ececec;
    padding: 10px;
    min-width: 220px;
    z-index: 80;
    box-shadow: 0 4px 12px #0003;
}

.bal-menu li:hover > ul, .bal-menu li:focus-within > ul {
    display: block;
}

.bal-menu ul a {
    line-height: 36px;
}

.bal-menu-toggle {
    display: none;
}

.aie-noborder {
    padding: 0;
    border: 0;
}

.tm-content:empty {
    display: none;
}

.com-content-article__body img, img {
    max-width: 100%;
    height: auto;
}

.article-info, .icons, .com-content-article__title, .com-content-featured__items {
    display: none;
}

.tm-logo .uk-panel {
    margin: 0;
}

.tm-footer .bal-menu {
    justify-content: center;
}

.tm-content {
    margin-bottom: 30px;
}

.top-link {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    right: 30px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: whitesmoke;
    background-color: #a1a2a3;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    z-index: 1000;
    transition:
            background-color 0.3s ease,
            transform 0.3s ease,
            box-shadow 0.3s ease;
}

.top-link.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.top-link svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.top-link:hover {
    color: white;
    background-color: #777;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 1199px) {
    .tm-page {
        margin-left: 0;
    }

    .bal-sidebar {
        display: none;
    }

    .bal-menu-toggle {
        display: block;
        min-height: 44px;
        margin-left: auto;
        background: #414141;
        color: #fff;
        border: 0;
        padding: 10px 20px;
    }

    #bal-navigation {
        display: none;
    }

    #bal-navigation.open {
        display: block;
    }

    .bal-menu {
        display: block;
    }

    .bal-menu ul {
        position: static;
        display: block;
        box-shadow: none;
        padding-left: 20px;
    }

    .bal-menu a {
        line-height: 44px;
    }
}

@media (max-width: 767px) {
    .bal-grid {
        grid-template-columns:1fr;
        gap: 20px;
    }

    .uk-container {
        padding: 0 25px;
    }

    .tm-block {
        margin-top: 20px;
    }

    .uk-panel-box, .tm-content {
        padding: 30px;
    }

    .bal-menu-toggle {
        width: 100%;
        height: 50px;
        text-align: right;
        font-size: 16px;
        border-radius: 3px;;
    }

    #bal-map {
        height: 360px;
    }

    .tm-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .top-link {
        display: none;
    }
}

/* ========================================
   BAL CREATIONS - FORMULAIRES
   ======================================== */

/* Champs texte */
input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"]),
select,
textarea {
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 14px;

    background: #fff;
    color: #333;

    border: 1px solid #c5c5c5;
    border-radius: 5px;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;

    transition:
            border-color .25s ease,
            box-shadow .25s ease,
            background-color .25s ease;
}

/* Focus */
input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #777;
    box-shadow: 0 0 0 3px rgba(100, 100, 100, .15);
}

/* Boutons */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn {
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 20px;

    background: #4b4b4b;
    color: #fff;

    border: 1px solid #4b4b4b;
    border-radius: 5px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    cursor: pointer;

    transition:
            background-color .25s ease,
            border-color .25s ease,
            color .25s ease,
            transform .25s ease;
}

/* Hover */
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.btn:hover {
    background: #333;
    border-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* Boutons désactivés */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Labels */
label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 600px) {
    input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"]),
    select,
    textarea {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .bal-grid table,
    .bal-grid table tbody,
    .bal-grid table tr,
    .bal-grid table td {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .bal-grid table td {
        box-sizing: border-box;
        padding: 10px 0;
        overflow-wrap: anywhere;
    }

    .bal-grid table img {
        display: block;
        max-width: 100%;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
    }
}