:root {
    --void: #050208;
    --nebula: #1a0b2e;
    --gold: #D4AF37;
    --gold-bright: #fff5c3;
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--void);
    color: #E0E0E0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Défilement fluide vers le contact */
}

/* --- HEADER CAPSULE --- */
header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(8, 5, 10, 0.7);
    backdrop-filter: blur(25px);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    animation: slideDown 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }

    to {
        top: 30px;
        opacity: 1;
    }
}

.brand-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.brand-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.brand-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

/* --- MENU --- */
nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    transition: 0.4s;
    padding: 5px 0;
    font-weight: 500;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--gold);
    transition: 0.4s;
    box-shadow: 0 0 10px var(--gold);
}

nav a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

nav a:hover::before {
    width: 100%;
}

.menu-btn {
    padding: 12px 30px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    transition: 0.3s;
    background: rgba(212, 175, 55, 0.05);
}

.menu-btn:hover {
    background: var(--gold);
    color: #050208 !important;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 12%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(5, 2, 8, 0.3), rgba(5, 2, 8, 0.3)), url('img/hero-background.png');
    background-position: center top;
    background-size: cover;
    z-index: 0;
    animation: breathe 20s infinite alternate ease-in-out;
}

@keyframes breathe {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, var(--void) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 700px;
    margin-top: -5vh;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    line-height: 0.95;
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: -1px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-bottom: 60px;
    padding-left: 5px;
    border-left: 1px solid var(--gold);
}

.btn-jewel {
    display: inline-block;
    padding: 22px 55px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
    background: rgba(10, 5, 0, 0.4);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    cursor: pointer;
    border-radius: 0;
    /* Design angulaire */
}

.btn-jewel:hover {
    background: var(--gold);
    color: #050208;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.6);
}

/* --- STRUCTURE & WRAPPERS --- */
.section-wrapper {
    position: relative;
    padding-top: 60px;
    padding-bottom: 80px;
}

.content-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--nebula) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.bridge {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.bridge h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: #fff;
    font-weight: 300;
}

.bridge span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    padding-bottom: 5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.text-centered-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #ccc;
    line-height: 2;
    font-size: 1.1rem;
    font-weight: 300;
}

.text-centered-box p {
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.light-card {
    position: relative;
    background: rgba(10, 8, 15, 0.6);
    backdrop-filter: blur(12px);
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s;
}

.light-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 55%, transparent 70%);
    transform: skewX(-20deg);
    transition: 0.7s;
}

.light-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.light-card:hover::before {
    left: 150%;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 30px;
    display: inline-block;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: 0.5s;
    line-height: 1;
}

.light-card:hover .icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

.light-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 20px;
}

.light-card p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #e6e6e6;
    font-weight: 300;
}

.light-card .price {
    display: block;
    margin-top: 20px;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 2px;
}

/* --- FORMULAIRE CONTACT --- */
.contact-form-box {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(10, 8, 15, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    padding: 15px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

button.btn-submit {
    background: transparent;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

footer {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    padding: 60px;
    color: #dedbdb;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    background-color: #020103;
}

/* --- RESPONSIVE MOBILE FIX --- */
@media(max-width: 1024px) {
    header {
        width: 95%;
        padding: 10px 30px;
    }

    .hero {
        padding-left: 5%;
    }

    h1 {
        font-size: 4rem;
    }

    .grid {
        gap: 20px;
    }
}

@media(max-width: 768px) {
    header {
        padding: 10px 20px;
        top: 20px;
        width: 95%;
    }

    .brand-logo img {
        height: 35px;
    }

    nav ul {
        gap: 15px;
    }

    nav a {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .menu-btn {
        padding: 8px 15px;
        border-radius: 20px;
    }

    .hero {
        padding-left: 0;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        margin-top: 0;
        padding: 0 20px;
        text-align: center;
    }

    h1 {
        font-size: 3rem;
        line-height: 1.1;
        font-weight: bold;
    }

    .subtitle {
        font-size: 0.7rem;
        padding-left: 0;
        border-left: none;
        padding-bottom: 10px;
        display: inline-block;
        font-weight: bold;
    }

    .btn-jewel {
        padding: 18px 40px;
        font-size: 0.7rem;
    }

    .section-wrapper {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .light-card {
        padding: 40px 20px;
    }

    .bridge h2 {
        font-size: 2.2rem;
    }

    .contact-form-box {
        padding: 30px 20px;
        width: 100%;
    }

    footer {
        padding: 40px 20px;
    }
}

/* --- LEGAL LINKS (FOOTER) --- */
.footer-legal {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    letter-spacing: 2px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.65rem;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: 0.3s;
}

.footer-legal a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: 0.35s;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal a:hover::after {
    width: 100%;
}

/* --- Small consent line under contact form --- */
.form-legal-note {
    margin-top: 18px;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.form-legal-note a {
    color: rgba(212, 175, 55, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    transition: 0.3s;
}

.form-legal-note a:hover {
    color: #fff5c3;
    border-bottom-color: rgba(255, 245, 195, 0.8);
}



/* --- LEGAL PAGES ADD-ON --- */

.legal-hero {
    height: 70vh;
    min-height: 520px;
    padding-left: 12%;
}

.legal-hero-bg {
    background: linear-gradient(rgba(5, 2, 8, 0.45), rgba(5, 2, 8, 0.55)), url('img/hero-background.png');
    background-position: center top;
    background-size: cover;
    filter: saturate(0.9) contrast(1.05);
}

.legal-meta {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.legal-card {
    position: relative;
    background: rgba(10, 8, 15, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.legal-intro {
    max-width: 860px;
}

.legal-sections {
    margin-top: 40px;
}

.legal-section {
    padding: 26px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.legal-section:first-child {
    border-top: 0;
}

.legal-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 12px;
}

.legal-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.95);
    margin-bottom: 10px;
}

.legal-section p {
    color: rgba(230, 230, 230, 0.9);
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 10px;
}

.legal-note {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

.legal-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: rgba(230, 230, 230, 0.9);
    line-height: 1.9;
}

.legal-list li {
    margin: 6px 0;
}

.legal-link {
    color: rgba(212, 175, 55, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    transition: 0.3s;
}

.legal-link:hover {
    color: #fff5c3;
    border-bottom-color: rgba(255, 245, 195, 0.8);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 12px;
}

.legal-grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    padding: 18px;
}

.legal-bottom {
    margin-top: 35px;
    display: flex;
    justify-content: center;
}

.legal-back {
    padding: 18px 40px;
}

/* Footer legal links (si pas déjà ajoutés dans index) */
.footer-legal {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    letter-spacing: 2px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.65rem;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: 0.3s;
}

.footer-legal a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: 0.35s;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal a:hover::after {
    width: 100%;
}

/* Responsive */
@media(max-width: 1024px) {
    .legal-hero {
        padding-left: 5%;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-card {
        padding: 45px 30px;
    }
}

@media(max-width: 768px) {
    .legal-hero {
        padding-left: 0;
        align-items: center;
        text-align: center;
    }

    .legal-card {
        padding: 35px 20px;
    }
}

.hero {
    overflow: hidden;
    /* 1) le bg animé ne “déborde” pas */
    background-color: var(--void);
    /* sécurité : fond identique au site */
}

.hero-bg {
    will-change: transform;
    /* perf + calque stable */
    transform-origin: center;
    /* 2) on “dépasse” d’1px pour éviter la couture */
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
}

.hero::after {
    transform: translateZ(0);
    /* 3) évite une couture entre calques */
}

.hero::after {
    height: 220px;
}

/* --- FIX LEGAL HERO: plein écran + pas caché par le header --- */

/* le hero légal prend tout l'écran */
.legal-hero {
    height: 100vh;
    min-height: 100vh;
    min-height: 100svh;
    /* mieux sur mobile (barres navigateur) */
    box-sizing: border-box;

    /* espace réservé pour le header fixed */
    padding-top: 140px;
    /* ajuste si besoin */
    padding-bottom: 60px;

    /* on garde ton alignement à gauche */
    justify-content: center;
}

/* on annule le décalage qui remonte le titre sous le header */
.legal-hero .hero-content {
    margin-top: 0;
}

/* Mobile : header plus compact */
@media(max-width: 768px) {
    .legal-hero {
        padding-top: 110px;
        padding-left: 0;
        /* tu centres déjà en mobile via .hero */
    }
}

:root {
    --header-offset: 140px;
    /* desktop */
}

@media(max-width: 768px) {
    :root {
        --header-offset: 110px;
    }
}

/* HERO: centrage propre (index + legal) */
.hero {
    min-height: 100svh;
    /* mieux sur mobile */
    padding-top: var(--header-offset);
    /* laisse la place au header fixed */
    padding-bottom: 60px;
    justify-content: center;
    /* centrage vertical réel */
}

/* enlève le hack qui remonte le bloc sous le header */
.hero-content {
    margin-top: 0;
}