/*
 * The Most Beautiful Days — global theme
 * Direction: black / white / #ac9c7b, editorial, minimal, high-end.
 */

:root {
    --tmbd-black: var(--sy-background, #050505);
    --tmbd-black-soft: var(--sy-surface, #0b0b0b);
    --tmbd-black-elevated: var(--sy-surface-soft, #111111);
    --tmbd-white: var(--sy-text, #f7f4ee);
    --tmbd-muted: var(--sy-text-light, #a6a098);
    --tmbd-gold: var(--sy-primary, #ac9c7b);
    --tmbd-gold-light: var(--sy-link-hover, #d1bc91);
    --tmbd-line: rgba(176, 156, 119, .26);
    --tmbd-line-soft: rgba(247, 244, 238, .13);
    --tmbd-container: min(1480px, calc(100vw - 64px));
    --tmbd-header-h: 98px;
    --tmbd-ease: cubic-bezier(.2,.7,.2,1);
}

html {
    color-scheme: dark;
    background: var(--tmbd-black);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--tmbd-black);
    color: var(--tmbd-white);
    font-family: var(--sy-font-body, "Montserrat", Arial, sans-serif);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.tmbd-menu-open {
    overflow: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

::selection {
    background: var(--tmbd-gold);
    color: #050505;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.tmbd-container {
    width: var(--tmbd-container);
    margin-inline: auto;
}

.tmbd-kicker {
    margin: 0 0 24px;
    color: var(--tmbd-gold);
    font-family: "Syne", var(--sy-font-menu, sans-serif);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.tmbd-display {
    margin: 0;
    font-family: var(--sy-font-heading, "League Spartan", Arial, sans-serif);
    font-size: clamp(46px, 7vw, 118px);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.045em;
}

.tmbd-display em {
    color: var(--tmbd-gold);
    font-family: Montserrat;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -.035em;
}

.tmbd-copy {
    max-width: 720px;
    margin: 0;
    color: var(--tmbd-muted);
    font-size: clamp(16px, 1.35vw, 21px);
    line-height: 1.8;
}

.tmbd-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    color: var(--tmbd-white);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tmbd-link::after {
    content: '';
    width: 42px;
    height: 1px;
    background: currentColor;
    transition: width .3s var(--tmbd-ease), background-color .3s ease;
}

.tmbd-link:hover,
.tmbd-link:focus-visible { color: var(--tmbd-gold-light); }
.tmbd-link:hover::after,
.tmbd-link:focus-visible::after { width: 68px; }

/* Header */
.tmbd-header {
    position: fixed;
    z-index: 9990;
    inset: 0 0 auto;
    height: var(--tmbd-header-h);
    color: #fff;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        height .45s var(--tmbd-ease),
        background-color .35s ease,
        border-color .35s ease,
        backdrop-filter .35s ease;
}

.admin-bar .tmbd-header { top: 32px; }

.tmbd-header.is-scrolled,
.tmbd-header.is-open {
    height: 78px;
    background: rgba(5, 5, 5, .96);
    border-color: var(--tmbd-line-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tmbd-header__inner {
    width: var(--tmbd-container);
    height: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 34px;
}

.tmbd-header__brand {
    display: inline-flex;
    align-items: center;
    width: min(430px, 34vw);
    min-width: 220px;
}

.tmbd-header__brand img {
    width: 100%;
    height: auto;
    transition: width .45s var(--tmbd-ease), opacity .25s ease;
}

.tmbd-header.is-scrolled .tmbd-header__brand { width: min(330px, 28vw); }

.tmbd-header__nav { min-width: 0; }

.tmbd-header__menu,
.tmbd-header__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tmbd-header__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2vw, 34px);
}

.tmbd-header__menu > li { position: relative; }

.tmbd-header__menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    font-family: var(--sy-font-menu, "Syne", sans-serif);
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.tmbd-header__menu > li > a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 1px;
    background: var(--tmbd-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--tmbd-ease);
}

.tmbd-header__menu > li > a:hover,
.tmbd-header__menu > li > a:focus-visible,
.tmbd-header__menu > .current-menu-item > a,
.tmbd-header__menu > .current-menu-ancestor > a { color: var(--tmbd-gold-light); }

.tmbd-header__menu > li > a:hover::after,
.tmbd-header__menu > li > a:focus-visible::after,
.tmbd-header__menu > .current-menu-item > a::after,
.tmbd-header__menu > .current-menu-ancestor > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tmbd-header__menu .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: -20px;
    width: 240px;
    padding: 12px 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    background: #090909;
    border: 1px solid var(--tmbd-line-soft);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.tmbd-header__menu li:hover > .sub-menu,
.tmbd-header__menu li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tmbd-header__menu .sub-menu a {
    width: 100%;
    min-height: 38px;
    color: var(--tmbd-muted);
    letter-spacing: .1em;
}

.tmbd-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.tmbd-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #fff;
    font: 500 10px/1.2 var(--sy-font-menu, "Syne", sans-serif);
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.tmbd-header__cta:hover,
.tmbd-header__cta:focus-visible {
    background: var(--tmbd-gold);
    border-color: var(--tmbd-gold);
    color: #050505;
}

.tmbd-header__burger {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.tmbd-header__burger span,
.tmbd-header__burger span::before,
.tmbd-header__burger span::after {
    display: block;
    width: 28px;
    height: 1px;
    background: currentColor;
    transition: transform .28s var(--tmbd-ease), opacity .2s ease;
}

.tmbd-header__burger span { position: relative; }
.tmbd-header__burger span::before,
.tmbd-header__burger span::after {
    content: '';
    position: absolute;
    left: 0;
}
.tmbd-header__burger span::before { top: -8px; }
.tmbd-header__burger span::after { top: 8px; }
.tmbd-header.is-open .tmbd-header__burger span { background: transparent; }
.tmbd-header.is-open .tmbd-header__burger span::before { top: 0; transform: rotate(45deg); }
.tmbd-header.is-open .tmbd-header__burger span::after { top: 0; transform: rotate(-45deg); }

/* Generic content pages */
.tmbd-main {
    min-height: 100vh;
    background: var(--tmbd-black);
}

.tmbd-page-hero {
    padding: calc(var(--tmbd-header-h) + 110px) 0 90px;
    border-bottom: 1px solid var(--tmbd-line-soft);
}

.tmbd-page-hero h1 {
    max-width: 1000px;
    margin: 0;
    font-family: var(--sy-font-heading, "League Spartan", sans-serif);
    font-size: clamp(48px, 7vw, 112px);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.045em;
}

/* Footer */
.tmbd-footer {
    position: relative;
    overflow: hidden;
    background: #030303;
    color: var(--tmbd-white);
    border-top: 1px solid var(--tmbd-line-soft);
}

.tmbd-footer__main {
    width: var(--tmbd-container);
    margin-inline: auto;
    padding: clamp(78px, 10vw, 150px) 0 58px;
}

.tmbd-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    gap: 80px;
    align-items: end;
}

.tmbd-footer__logo {
    display: block;
    width: min(760px, 100%);
}

.tmbd-footer__logo img { width: 100%; height: auto; }

.tmbd-footer__contact {
    display: grid;
    gap: 12px;
    justify-items: end;
    text-align: right;
}

.tmbd-footer__contact a {
    font-size: clamp(17px, 1.5vw, 23px);
    font-weight: 300;
    line-height: 1.35;
    transition: color .2s ease;
}

.tmbd-footer__contact a:hover,
.tmbd-footer__contact a:focus-visible { color: var(--tmbd-gold); }

.tmbd-footer__mid {
    margin-top: clamp(60px, 7vw, 95px);
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid var(--tmbd-line-soft);
    border-bottom: 1px solid var(--tmbd-line-soft);
}

.tmbd-footer__menu,
.tmbd-footer__socials,
.tmbd-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tmbd-footer__menu a,
.tmbd-footer__socials a,
.tmbd-footer__legal a,
.tmbd-footer__legal button {
    color: var(--tmbd-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.tmbd-footer__legal button {
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.tmbd-footer__menu a:hover,
.tmbd-footer__socials a:hover,
.tmbd-footer__legal a:hover,
.tmbd-footer__legal button:hover { color: var(--tmbd-gold-light); }

.tmbd-footer__bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #77736d;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Reveal motion */
.js .tmbd-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--tmbd-ease), transform .8s var(--tmbd-ease);
}

.js .tmbd-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1180px) {
    .tmbd-header__inner {
        grid-template-columns: minmax(220px, 1fr) auto;
    }

    .tmbd-header__actions {
        gap: 12px;
    }

    .tmbd-header__cta {
        display: none;
    }
}

@media (max-width: 1050px) {
    :root {
        --tmbd-container: min(calc(100% - 40px), 1480px);
        --tmbd-header-h: 82px;
    }

    .tmbd-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 20px;
    }

    .tmbd-header__brand,
    .tmbd-header.is-scrolled .tmbd-header__brand {
        width: min(420px, calc(100vw - 110px));
        min-width: 0;
    }

    .tmbd-header__burger { display: inline-flex; }

    .tmbd-header__nav {
        position: fixed;
        inset: var(--tmbd-header-h) 0 0;
        z-index: -1;
        display: grid;
        place-items: center;
        visibility: hidden;
        opacity: 0;
        background:
            linear-gradient(180deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.98) 100%),
            radial-gradient(circle at top, rgba(176,156,119,.08) 0, rgba(176,156,119,0) 55%),
            #050505;
        transition: opacity .28s ease, visibility .28s ease;
    }

    .tmbd-header.is-scrolled .tmbd-header__nav,
    .tmbd-header.is-open .tmbd-header__nav { top: 78px; }

    .tmbd-header.is-open .tmbd-header__nav {
        z-index: 1;
        visibility: visible;
        opacity: 1;
    }

    .tmbd-header__menu {
        width: min(100% - 40px, 760px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .tmbd-header__menu > li {
        border-bottom: 1px solid var(--tmbd-line-soft);
    }

    .tmbd-header__menu > li > a {
        min-height: 62px;
        justify-content: space-between;
        font-size: clamp(22px, 5vw, 42px);
        font-weight: 400;
        letter-spacing: -.02em;
        text-transform: none;
    }

    .tmbd-header__menu > li > a::after { display: none; }
    .tmbd-header__menu .sub-menu { display: none; }

    .tmbd-footer__top { grid-template-columns: 1fr; gap: 50px; }
    .tmbd-footer__contact { justify-items: start; text-align: left; }
    .tmbd-footer__mid,
    .tmbd-footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 782px) {
    .admin-bar .tmbd-header { top: 46px; }
}

@media (max-width: 600px) {
    #wpadminbar { position: fixed; }
    :root { --tmbd-container: calc(100% - 32px); }
    .tmbd-footer__main { padding-top: 74px; }
    .tmbd-footer__menu,
    .tmbd-footer__socials,
    .tmbd-footer__legal { gap: 12px 18px; }
}

/* TMBD — Sélecteur linguistique manuel Sycow, discret et sans CDN. */
.tmbd-header__language {
    position: relative;
    flex: 0 0 auto;
    z-index: 5;
    color: #fff;
}

.tmbd-header__language-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 54px;
    min-height: 44px;
    padding: 0 9px;
    color: #f7f4ee;
    border: 0;
    border-bottom: 1px solid transparent;
    font: 600 11px/1 var(--sy-font-menu, "Syne", sans-serif);
    letter-spacing: .13em;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: color .2s ease, border-color .2s ease;
}

.tmbd-header__language-trigger::-webkit-details-marker { display: none; }
.tmbd-header__language-trigger::marker { content: ''; }
.tmbd-header__language-trigger svg { color: var(--tmbd-gold, #ac9c7b); transition: transform .2s ease; }
.tmbd-header__language[open] .tmbd-header__language-trigger svg { transform: rotate(180deg); }
.tmbd-header__language[open] .tmbd-header__language-trigger,
.tmbd-header__language-trigger:hover { color: var(--tmbd-gold-light, #d1bc91); border-bottom-color: var(--tmbd-gold, #ac9c7b); }
.tmbd-header__language-trigger:focus-visible { outline: 1px solid var(--tmbd-gold, #ac9c7b); outline-offset: 3px; }

.tmbd-header__language-menu {
    position: absolute;
    top: calc(100% + 11px);
    right: -10px;
    width: 218px;
    padding: 12px;
    border: 1px solid rgba(176,156,119,.30);
    background: rgba(9,9,9,.97);
    box-shadow: 0 22px 65px rgba(0,0,0,.40);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.tmbd-header__language-option {
    display: grid;
    grid-template-columns: 35px minmax(0,1fr) 14px;
    align-items: center;
    gap: 13px;
    min-height: 43px;
    padding: 0 11px;
    border: 1px solid transparent;
    color: rgba(247,244,238,.82);
    font: 500 11px/1.3 var(--sy-font-menu, "Syne", sans-serif);
    letter-spacing: .015em;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.tmbd-header__language-option > span:first-child {
    color: var(--tmbd-gold-light, #d1bc91);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}

.tmbd-header__language-option.is-current {
    color: #f7f4ee;
    background: rgba(176,156,119,.11);
}
.tmbd-header__language-option.is-current svg { color: var(--tmbd-gold, #ac9c7b); }
.tmbd-header__language-option.is-unavailable { opacity: .48; cursor: not-allowed; }
.tmbd-header__language-option.is-unavailable small {
    color: var(--tmbd-gold, #ac9c7b);
    font: 600 8px/1 var(--sy-font-menu, 'Syne', sans-serif);
    letter-spacing: .08em;
}
.tmbd-header__language-option[href]:hover,
.tmbd-header__language-option[href]:focus-visible {
    color: #fff;
    border-color: rgba(176,156,119,.28);
    background: rgba(176,156,119,.09);
}

@media (max-width: 1050px) {
    .tmbd-header__language-trigger { min-height: 42px; min-width: 50px; }
    .tmbd-header__language-menu { right: -18px; top: calc(100% + 12px); }
    .tmbd-header__brand,
    .tmbd-header.is-scrolled .tmbd-header__brand { max-width: calc(100vw - 170px); }
}

@media (max-width: 600px) {
    .tmbd-header__actions { gap: 4px; }
    .tmbd-header__language-menu { width: min(210px, calc(100vw - 32px)); right: -50px; }
    .tmbd-header__brand,
    .tmbd-header.is-scrolled .tmbd-header__brand { max-width: calc(100vw - 146px); }
}

/* Le logo s'adapte à l'espace restant lorsqu'il partage le header avec EN/FR et le burger. */
@media (max-width: 1050px) {
    .tmbd-header__brand,
    .tmbd-header.is-scrolled .tmbd-header__brand {
        width: min(420px, 100%);
        max-width: 100%;
    }
}
