/* --- DECLARATION DES POLICES LOCALES --- */

/* 1. Lavishly Yours Titres */
@font-face {
    font-family: 'Lavishly Yours';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/LavishlyYours-Regular.ttf') format('truetype');
}

/* 2. Space Mono - Régulier (Texte classique) */
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/SpaceMono-Regular.ttf') format('truetype');
}

/* 3. Space Mono - Gras (Pour les textes importants) */
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/SpaceMono-Bold.ttf') format('truetype');
}

/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent: #ffa522; /* Couleur Orange */
    --accent-hover: #ffa522;
}

html {
    scroll-behavior: smooth;
    font-family: 'Space Mono', monospace; /* <-- Applique Space Mono partout */
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Tous les titres secondaires (Présentation, Services, etc.) restent en Space Mono */
h2, h3, h4, h5, h6, .logo a {
    font-family: 'Space Mono', monospace;
    font-weight: 700; /* Force le style en gras */
}

/* Le très grand titre de l'accueil (Hero) passe en Lavishly Yours */
h1 {
    font-family: 'Lavishly Yours', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0; /* On retire l'espacement pour que les lettres cursives s'attachent bien */
}

body {
    overflow-x: hidden; /* Coupe tout ce qui dépasse à droite ou à gauche de l'écran */
    width: 100%;
}

/* --- LE HEADER EN PETIT RECTANGLE ALIGNÉ À DROITE --- */
.main-header {
    position: fixed;
    top: 20px;
    right: 4%;
    width: auto;               /* S'adapte uniquement à la largeur du bouton */
    height: 55px;
    z-index: 100;              /* Le menu (101) passera par-dessus au déploiement */
    background-color: rgba(10, 10, 10, 0.90); 
    backdrop-filter: blur(5px);
    border: 1px solid #1a1a1a; 
    border-radius: 4px;        
    display: flex;
    align-items: center;
    padding: 0 15px;
}

/* On ajuste la top-bar interne puisqu'elle est dans un petit rectangle */
.header-top-bar {
    display: flex;
    justify-content: center;   /* Centre le hamburger à l'intérieur */
    align-items: center;
    width: 100%;
}

/* --- TRÈS IMPORTANT : MASQUER LE LOGO TEXTE DU HEADER --- */
/* Comme le rectangle est petit et à droite, le texte "MON_LOGO" n'a plus la place d'y être.
   On le cache ici (votre logo principal est sûrement déjà visible sur votre bannière image juste en dessous) */
.main-header .logo {
    display: none;
}

.logo a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* --- BANNIÈRE DU SITE : DÉFILE AVEC LA PAGE (ZÉRO CROP) --- */
.global-site-banner {
    width: 100%;
    max-width: 100vw;
    margin-top: 0 !important; /* <--- PASSE À 0 : L'image commence pile en haut de l'écran */
    background-color: var(--bg-dark);
    overflow: hidden;
    line-height: 0;
}

.banner-fluid-img {
    width: 100% !important;      /* Force l'image à s'étirer/réduire pour faire pile 100% de l'écran */
    max-width: 100% !important;  /* Sécurité anti-débordement */
    height: auto !important;     /* RECALCUL PROPORTIONNEL STRICT : La hauteur suit la largeur sans déformer */
    display: block;
}

/* --- BOUTON HAMBURGER --- */
/* Style du bouton conteneur pour maximiser la zone de clic */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;  /* Largeur confortable pour le clic mobile (recommandation UX) */
    height: 44px; /* Hauteur confortable pour le clic mobile */
    padding: 12px; /* Donne de l'espace cliquable tout autour des barres */
    background: transparent;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Évite que le padding déforme les dimensions */
}

/* Style des 3 barres de manière à ce qu'elles s'adaptent au bouton */
.hamburger-btn span {
    display: block;
    width: 100%;       /* Prend toute la largeur disponible définie par le parent */
    height: 2px;       /* Épaisseur de tes lignes */
    background-color: #ffffff; /* Couleur de tes barres, change selon tes besoins */
    transition: all 0.3s ease;
}

/* Animation Hamburger actif */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- MENU COULISSANT (DROITE) --- */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;                  /* Aligné mathématiquement sur le vrai bord droit de l'écran */
    width: 380px;
    height: 100vh;
    background-color: #0A0A0A;
    z-index: 101;              /* Passe au-dessus de tout le site */
    padding: 100px 40px 40px 40px;
    /* ÉTAPE CLÉ : On le pousse de 100% de sa propre taille vers la droite. 
       Étant hors du header, 100% signifie qu'il est intégralement invisible en dehors de l'écran. */
    transform: translateX(100%); 
    
    transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}

/* Quand le JS applique la classe .open au clic */
.side-menu.open {
    transform: translateX(0) !important;
}
/* Quand le JavaScript ajoute la classe .open au clic */
.side-menu.open {
    /* On annule la traduction : il revient à sa position d'origine (0), donc visible à l'écran */
    transform: translateX(0) !important;
}

.side-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    
    /* 1. Force la liste à occuper toute la hauteur du menu parent */
    height: 100%; 
    box-sizing: border-box;
    padding: 40px 0; /* Optionnel : ajoute une marge en haut/bas pour éviter que le premier et dernier lien collent aux bords */

    /* 2. Répartit les liens verticalement sur la hauteur disponible */
    justify-content: space-between; 
    
    /* 3. Centre les éléments horizontalement */
    align-items: center; 

    /* Note : On retire ou remplace le "gap: 25px;" fixe puisque "space-between" calcule un espace dynamique */
}

.side-menu ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.15rem;
    transition: color 0.3s;
    display: inline-block; /* Assure un comportement propre pour l'alignement et le survol tactile */
}

.side-menu ul li a:hover {
    color: var(--accent);
}
.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2.5rem; /* Crée une belle grande croix */
    cursor: pointer;
    transition: color 0.3s;
}

.close-menu-btn:hover {
    color: var(--accent);
}

.menu-separator {
    border: 0;
    height: 1px;
    background: #ffa522;
    margin: 10px 0;
}

.btn-auth {
    color: var(--accent) !important;
    font-weight: 600;
}

/* --- OVERLAY --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.menu-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* --- UTILITIES & STRUCTURES --- */
.section-container {
    padding: 60px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-alt {
    background-color: #181818;
}

.section-header {
    margin-bottom: 50px;
    text-align: right;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 400;
}

.bar-gold {
width: 25px;          /* Réduit la largeur pour en faire un petit rectangle */
    height: 6px;          /* Augmente légèrement l'épaisseur pour affirmer la forme du rectangle */
    background-color: var(--accent);
    margin-top: 10px;
    margin-left: auto;    /* Pousse automatiquement le rectangle vers la droite */
    margin-right: 0;      /* Aligne le rectangle pile sur le bord droit */
}

.text-gold {
    color: var(--accent);
}

/* --- HERO SECTION --- */
.hero-section {
    height: auto !important; /* L'accueil s'adapte dynamiquement sous l'image */
    display: flex;
    align-items: center;
    padding: 80px 8% !important;
    background: radial-gradient(circle at 80% 20%, #1a1a1a 0%, #0a0a0a 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent);
    color: #000;
}



/* --- SECTION PRÉSENTATION --- */
.grid-presentation {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.bio-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.bio-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.bio-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-box {
    background: var(--bg-card);
    padding: 30px;
    border-left: 3px solid var(--accent);
}

.stat-number {
    display: block;
    font-size: 2rem;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- SECTION SERVICES --- */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    transition: transform 0.3s, border-color 0.3s;
    border: 1px solid #252525;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- SECTION EXPOS & PROJETS (GALERIE) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid #222;
}

.gallery-img-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #151515, #252525);
    color: #444;
    font-weight: bold;
    letter-spacing: 1px;
}

.gallery-info {
    padding: 20px;
    background: #000000;
}

.gallery-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.gallery-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- PAGES D'AUTHENTIFICATION --- */
.auth-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-box {
    background-color: var(--bg-card);
    border: 1px solid #222;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #222;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input {
    background-color: #121212;
    border: 1px solid #333;
    padding: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    background-color: var(--accent);
    color: #000;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}
.alert-error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff3333;
    color: #ff6666;
}
.alert-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #33ff33;
    color: #66ff66;
}

/* --- SECTION TARIFS --- */
.grid-tarifs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.tarif-card {
    background-color: var(--bg-card);
    border: 1px solid #222;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.tarif-card:hover {
    border-color: #444;
    transform: translateY(-5px);
}

.tarif-card.featured {
    border: 2px solid var(--accent);
    padding: 60px 40px;
}

.tarif-card h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 2.5rem;
    color: var(--text-main);
    font-weight: bold;
    margin-bottom: 30px;
}

.price .duration {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

.features {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.btn-tarif {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tarif-card.featured .btn-tarif {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #000;
}

.btn-tarif:hover {
    background-color: var(--text-main);
    color: #000;
}

.tarif-card.featured .btn-tarif:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PAGES COMPTE CLIENT & SUCCÈS STRIPE --- */
.account-container {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.account-box {
    background-color: var(--bg-card);
    border: 1px solid #222;
    width: 100%;
    max-width: 700px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.account-header h2 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.btn-logout {
    color: #ff4d4d;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 8px 16px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: #ff4d4d;
    color: #000;
    border-color: #ff4d4d;
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #161616;
    padding: 20px;
    border-left: 2px solid var(--accent);
    margin-bottom: 40px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-weight: 500;
}

.user-badge {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.account-services-section h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.empty-services {
    border: 1px dashed #333;
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-browse {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.btn-browse:hover {
    text-decoration: underline;
}

.stripe-success-alert {
    background-color: rgba(214, 175, 55, 0.05);
    border: 1px solid var(--accent);
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.success-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.stripe-success-alert h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.stripe-success-alert p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.service-tag {
    display: inline-block;
    background-color: #222;
    padding: 6px 15px;
    font-size: 0.85rem;
    margin: 15px 0;
    border: 1px solid #444;
}

.next-steps {
    margin-top: 15px !important;
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
}

/* --- PIED DE PAGE --- */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #1a1a1a;
    background: #0a0a0a;
}

/* --- DISPOSITIFS DE RESPIRATION DU CONTENU (Bannière fluide désormais) --- */
.auth-container, 
.account-container,
.section-container {
    padding-top: 60px !important; /* Léger espace standard pour décoller le texte */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.3rem; }
    .grid-presentation { grid-template-columns: 1fr; gap: 40px; }
    
    .global-site-banner {
        margin-top: 60px; /* S'adapte à la barre de navigation légèrement plus fine en mobile */
    }