/* ================================================================
   raHma-TV — Header / Burger / Mobile panel / Footer (responsive)
   ================================================================ */

/* ----------------------------------------------------------------
   HEADER — grille 3 colonnes : [logo gauche] | [nav centrée] | [actions droite].
   Sur desktop : nav strictement centrée, peu importe la largeur de logo/actions.
   Sous 1024px : nav cachée, burger visible.
   ---------------------------------------------------------------- */
.rt-header {
    background: #000;
    height: var(--header-height, 68px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 clamp(16px, 4vw, 40px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform .3s ease-in-out;
    gap: clamp(16px, 3vw, 32px);
}
.rt-header.header-hidden { transform: translateY(-100%); }

/* Colonne 1 — logo aligné à gauche */
.rt-header .header-left {
    display: flex; align-items: center;
    justify-self: start;
    min-width: 0;
}
.rt-header .logo img {
    height: clamp(36px, 4.2vw, 46px);
    width: auto; display: block;
}

/* Colonne 2 — nav strictement centrée. Cachée sous 1024px. */
.rt-header .nav-links { display: none; }
@media (min-width: 1024px) {
    .rt-header .nav-links {
        display: flex; align-items: center; justify-self: center;
    }
}

.rt-header .main-menu {
    list-style: none; display: flex; align-items: center;
    gap: clamp(20px, 2.4vw, 38px);
    margin: 0; padding: 0;
}
.rt-header .nav-item {
    color: rgba(255,255,255,.92);
    font-family: 'Fira Sans Condensed', sans-serif;
    font-weight: 600;
    font-size: 10px;                /* premium : plus discret */
    letter-spacing: .28em;          /* premium : lettres aérées */
    text-transform: uppercase;
    padding: 8px 0;
    transition: color .25s cubic-bezier(.2,.7,.2,1);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    position: relative;
}
.rt-header .nav-item::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
    height: 1px; background: var(--primary-color);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.rt-header .nav-item:hover { color: var(--primary-color); }
.rt-header .nav-item:hover::after { transform: scaleX(1); }

/* Colonne 3 — actions à droite : Contactez-nous + Log in + burger */
.rt-header .header-right {
    display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px);
    justify-self: end;
}

/* "Contactez-nous" : style nav-item discret, plus une barre verticale séparatrice
   par rapport au Log in. Caché en dessous de 1024px (passe dans le mobile panel). */
.rt-header .nav-contact {
    display: none;
    font-family: 'Fira Sans Condensed', sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    padding: 8px 0 8px 22px;
    border-left: 1px solid rgba(255,255,255,.15);
    transition: color .25s cubic-bezier(.2,.7,.2,1);
    white-space: nowrap;
}
.rt-header .nav-contact:hover { color: #fff; }
@media (min-width: 1024px) { .rt-header .nav-contact { display: inline-block; } }

.rt-header .login-btn {
    border: 1px solid rgba(255,255,255,.7);
    padding: 7px 20px; border-radius: 999px;
    font-family: 'Fira Sans Condensed', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #fff; text-decoration: none;
    transition: all .3s cubic-bezier(.2,.7,.2,1);
    white-space: nowrap;
}
.rt-header .login-btn:hover {
    background: #fff; color: #000; border-color: #fff;
    box-shadow: 0 0 22px rgba(255,255,255,.15);
}
@media (max-width: 480px) {
    .rt-header .login-btn { padding: 6px 14px; font-size: 9px; letter-spacing: .25em; }
}

/* ----------------------------------------------------------------
   HEADER MOBILE (<1024px) — passe en flex space-between simple :
   logo gauche, actions droite (login + burger). Plus de grid avec
   colonne centrale vide qui crée de l'espace mort.
   ---------------------------------------------------------------- */
@media (max-width: 1023px) {
    .rt-header {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 0 16px;
    }
    .rt-header .header-left,
    .rt-header .header-right {
        justify-self: auto;
    }
    .rt-header .logo img { height: 34px; }
    .rt-header .header-right { gap: 10px; }
    .rt-header .login-btn {
        padding: 7px 16px;
        font-size: 9px;
        letter-spacing: .25em;
    }
    .rt-burger { width: 36px; height: 36px; }
    .rt-burger-bar { width: 20px; }
}
@media (max-width: 380px) {
    .rt-header .login-btn { display: none; }  /* écran très étroit : on retire login (reste dans le panel mobile) */
}

/* ----------------------------------------------------------------
   BURGER — 3 traits qui s'animent en croix élégante.
   Visible <1024px, caché desktop.
   ---------------------------------------------------------------- */
.rt-burger {
    display: inline-flex; flex-direction: column;
    justify-content: center; align-items: center;
    width: 40px; height: 40px;
    background: transparent; border: 0; cursor: pointer;
    padding: 0; position: relative;
    z-index: 2100;
}
@media (min-width: 1024px) { .rt-burger { display: none; } }

.rt-burger-bar {
    display: block; width: 22px; height: 2px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition:
        transform .35s cubic-bezier(.2,.7,.2,1),
        opacity   .25s cubic-bezier(.2,.7,.2,1),
        background .25s,
        width .35s cubic-bezier(.2,.7,.2,1);
    transform-origin: center;
}
/* Hover : la barre du milieu rétrécit (signal interactif subtil) */
.rt-burger:hover .rt-burger-bar:nth-child(2) { width: 16px; background: var(--primary-color); }

/* État ouvert : croix rose */
.rt-burger.is-open .rt-burger-bar { background: var(--primary-color); width: 22px; }
.rt-burger.is-open .rt-burger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.rt-burger.is-open .rt-burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rt-burger.is-open .rt-burger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----------------------------------------------------------------
   MOBILE PANEL — slide-in depuis la droite, items en stagger
   ---------------------------------------------------------------- */
.rt-mobile-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1900;
    opacity: 0; pointer-events: none;
    transition: opacity .35s cubic-bezier(.2,.7,.2,1);
}
.rt-mobile-backdrop.is-open { opacity: 1; pointer-events: auto; }

.rt-mobile-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(380px, 86vw);
    background: linear-gradient(180deg, #14000a 0%, #0c0006 50%, #050003 100%);
    border-left: 1px solid rgba(184, 52, 160, .25);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.7);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
    display: flex; flex-direction: column;
    padding: clamp(70px, 12vh, 100px) clamp(28px, 6vw, 44px) 28px;
    overflow-y: auto;
}
.rt-mobile-panel.is-open { transform: translateX(0); }

/* Halo rose discret en haut-droite du panel pour signature de marque */
.rt-mobile-panel::before {
    content: ""; position: absolute; top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(184,52,160,.22), transparent 70%);
    pointer-events: none;
}

.rt-mobile-head {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 28px;
    position: relative; z-index: 1;
}
.rt-mobile-logo {
    height: 56px; width: auto; opacity: .9;
    filter: drop-shadow(0 0 14px rgba(184,52,160,.45));
    margin-bottom: 10px;
}
.rt-mobile-tagline {
    font-family: 'Fira Sans Condensed', sans-serif;
    font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
    color: rgba(255,255,255,.4); font-weight: 700;
}

.rt-mobile-nav {
    display: flex; flex-direction: column; gap: 4px;
    position: relative; z-index: 1;
}
.rt-mobile-link {
    display: flex; align-items: baseline; gap: 16px;
    padding: 14px 0;
    font-family: 'Fira Sans Condensed', sans-serif;
    font-size: clamp(18px, 4.5vw, 22px); font-weight: 700;
    letter-spacing: -.005em;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.04);
    opacity: 0; transform: translateX(20px);
    transition:
        color .25s, padding-left .35s cubic-bezier(.2,.7,.2,1),
        background .25s;
}
.rt-mobile-link > span {
    font-size: 10px; font-weight: 700;
    letter-spacing: .25em;
    color: var(--primary-color);
    min-width: 26px; opacity: .7;
}
.rt-mobile-link:hover, .rt-mobile-link:focus-visible {
    color: var(--primary-color);
    padding-left: 8px;
    outline: none;
}
.rt-mobile-link-feature {
    color: var(--primary-color);
}
.rt-mobile-link-login {
    margin-top: 18px;
    padding: 14px 22px;
    background: var(--primary-color);
    border-radius: 999px;
    color: #fff !important;
    justify-content: center;
    border: 0;
    box-shadow: 0 20px 40px -12px rgba(184,52,160,.55);
}
.rt-mobile-link-login > span { color: rgba(255,255,255,.9); }
.rt-mobile-link-login:hover {
    background: #fff;
    color: var(--primary-color) !important;
    padding-left: 22px;
}
.rt-mobile-link-login:hover > span { color: var(--primary-color); }

/* Stagger d'apparition des items quand panel.is-open */
.rt-mobile-panel.is-open .rt-mobile-link {
    opacity: 1; transform: translateX(0);
    transition:
        opacity .5s cubic-bezier(.2,.7,.2,1) var(--rt-stagger, 0ms),
        transform .5s cubic-bezier(.2,.7,.2,1) var(--rt-stagger, 0ms),
        color .25s, padding-left .35s cubic-bezier(.2,.7,.2,1), background .25s;
}
.rt-mobile-panel.is-open .rt-mobile-link:nth-child(1) { --rt-stagger: 80ms; }
.rt-mobile-panel.is-open .rt-mobile-link:nth-child(2) { --rt-stagger: 140ms; }
.rt-mobile-panel.is-open .rt-mobile-link:nth-child(3) { --rt-stagger: 200ms; }
.rt-mobile-panel.is-open .rt-mobile-link:nth-child(4) { --rt-stagger: 260ms; }
.rt-mobile-panel.is-open .rt-mobile-link:nth-child(5) { --rt-stagger: 340ms; }

.rt-mobile-foot {
    margin-top: auto; padding-top: 22px;
    font-family: 'Fira Sans Condensed', sans-serif;
    font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
    color: rgba(255,255,255,.3); font-weight: 700;
    position: relative; z-index: 1;
}

/* ----------------------------------------------------------------
   FOOTER — responsive : desktop horizontal, mobile colonne sobre
   ---------------------------------------------------------------- */
.rt-footer {
    background: #000;
    padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 60px);
    display: flex; justify-content: space-between; align-items: center;
    gap: clamp(20px, 4vw, 40px);
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}
.rt-footer-brand {
    display: flex; align-items: center; gap: 18px;
    min-width: 0;
}
.rt-footer-logo {
    height: 38px; width: auto;
    opacity: .85;
}
.rt-footer-copy {
    font-family: 'Fira Sans Condensed', sans-serif;
    font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
    color: rgba(255,255,255,.55); font-weight: 700;
    line-height: 1.7;
}
.rt-footer-copy-sub {
    color: rgba(255,255,255,.3); font-weight: 400; letter-spacing: .2em;
    font-size: 10px;
}
.rt-footer-links {
    display: flex; gap: clamp(16px, 2.4vw, 28px); flex-wrap: wrap;
    align-items: center;
}
.rt-footer-link {
    font-family: 'Fira Sans Condensed', sans-serif;
    font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
    color: rgba(255,255,255,.55); font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color .25s, border-color .25s;
}
.rt-footer-link:hover {
    color: #fff; border-bottom-color: var(--primary-color);
}

@media (max-width: 640px) {
    .rt-footer {
        flex-direction: column; align-items: flex-start; text-align: left;
        gap: 28px;
    }
    .rt-footer-brand { width: 100%; }
    .rt-footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
        width: 100%;
    }
    .rt-footer-link { font-size: 10px; }
}
