/* =====================================================
   Thera'nera – style global
   ===================================================== */

/* ========== Variables ========== */
:root{
    --gold: #d4af37;
    --gold-dark: #b8962f;
    --gold-light: #f5e6b3;
    --text: #f8f8f8;
    --muted: rgba(255,255,255,0.08);
    --bg-dark: #0f1112;
    --transition: 0.25s ease;
    --max-width: 1000px;
}

/* ========== Polices ========== */
@font-face {
    font-family: "IMFellEnglish";
    src: url("../polices/IMFellEnglish.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "UncialAntiqua";
    src: url("../polices/UncialAntiqua.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* ========== Reset / base ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "IMFellEnglish", serif;
    color: var(--text);
    background-color: #000;
}

/* Background image pleine page (fallback + couverture) */
body {
    background-image: url("../images/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Utilitaires */
.container-centered {
    width: min(var(--max-width), 95%);
    margin: 0 auto;
}

/* ========== HEADER / NAV ========== */
.main-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2000;
    background: rgba(4,8,13,0.45);
    backdrop-filter: blur(3px);
    border-bottom: 1px solid rgba(212,175,55,0.08);
}

/* zone interne du header pour centrer le contenu */
.main-header .nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    position: relative;
}

/* logo à gauche hors flux pour laisser le menu centré */
.logo-site {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "UncialAntiqua", serif;
    color: var(--gold);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.logo-site img { width: auto; height: auto; display: block; }

/* Menu principal (desktop) */
nav.menu { width: 100%; }
.menu-root {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    font-family: "IMFellEnglish", serif;
}

/* Items */
.menu-root > li { position: relative; }
.menu-root > li > a {
    display: inline-block;
    padding: 12px 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition);
    text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}
.menu-root > li > a:hover {
    color: var(--gold-light);
}

/* CTA prévente (dans le menu) */
.cta-prevente a {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(212,175,55,0.85);
    background: transparent;
    color: var(--gold);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.cta-prevente a:hover {
    background: var(--gold);
    color: #000;
}

.menu-root .cta-prevente {
    text-align: center;     /* centre le lien dans le menu */
  margin: 16px 0;         /* espace haut/bas */
}

.menu-root .cta-prevente a {
  display: inline-block;
  padding: 8px 16px;
}

/* ========== Dropdowns (desktop) ========== */

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(8,10,12,0.92);
    border: 1px solid rgba(212,175,55,0.12);
    padding: 6px 0;
    display: none;
    z-index: 2500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.has-sub:hover > .submenu { display: block; }

.submenu li { list-style: none; }
.submenu li a {
    display: block;
    padding: 8px 14px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.95rem;
}
.submenu li a:hover {
    background: rgba(212,175,55,0.08);
    color: var(--gold);
}

/* ========== PAGE HEADER (titre principal) ========== */
.page-header {
    margin-top: 84px;
    text-align: center;
    padding: 48px 0 12px;
    position: relative;
}

/* bouton prévente FIXE (suit le scroll) - CORRECTION ICI */
.page-header .btn-prevente {
    position: fixed;
    left: 18px;
    top: 84px;
    background: var(--gold);
    color: #000;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    z-index: 1900;
    transition: background var(--transition);
}
.page-header .btn-prevente:hover { background: var(--gold-dark); }


/* Titre de page */
.page-header .titre-page h1 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
}


/* Titre principal */
.titre-page h1 {
    margin: 0;
    font-family: "UncialAntiqua", serif;
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 10px rgba(212,175,55,0.18);
    letter-spacing: 0.6px;
}

/* sous-titre */
.titre-page h2 {
    margin: 18px 0 0 0;
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    text-align: center;
}

/* ========== CONTENEUR PRINCIPAL / HERO ========== */
.conteneur {
    width: min(var(--max-width), 95%);
    max-width: var(--max-width);
    margin: 20px auto;
}

/* bloc central semi-transparent (cadre de mise en avant) */
.hero {
    text-align: center;
    padding: 70px 16px;
    position: relative;
}
.hero .feature-box {
    margin: 0 auto;
    display: block;
    width: min(760px, 90%);
    background: rgba(0,0,0,0.45);
    border: 2px solid rgba(212,175,55,0.25);
    padding: 36px 28px;
    box-shadow: 16px 16px 24px rgba(212,175,55,0.12);
    border-radius: 15px;
}
.hero h2 {
    font-family: "UncialAntiqua", serif;
    color: var(--gold);
    margin-bottom: 18px;
    font-size: 2rem;
}
.hero p {
    color: var(--gold-light);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* ========== FOOTER ========== */
.main-footer {
    margin-top: 48px;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85));
    color: var(--gold-light);
    padding: 28px 0 40px;
    text-align: center;
}
.footer-legal {
    margin-bottom: 18px;
    font-size: 0.95rem;
}
.footer-legal a {
    color: var(--gold-light);
    text-decoration: none;
}
.footer-logos {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
}
.footer-logos img { width: 64px; height: auto; display: block; }
.footer-logos.logo-editeur {
    width: 200px;
}

/* ========== BOUTON MOBILE HIDDEN / burger ========== */
.menu-toggle {
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    margin: 4px 0;
    background: var(--gold);
    transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== Accessibility helpers ========== */
a { color: var(--gold); }
a:hover { color: var(--gold-light); }