/* ==========================================================================
   CHARTE GRAPHIQUE PREMIUM - NOLLA NAILS
   ========================================================================== */

/* 1. DÉCLARATION DES POLICES LOCALES (CHEMINS SÉCURISÉS) */
@font-face {
    font-family: 'Poppins-Light';
    /* On donne le chemin direct et le chemin relatif universel */
    src: url('fonts/Poppins-Light.ttf') format('truetype'),
         url('../fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins-Medium';
    src: url('fonts/Poppins-Medium.ttf') format('truetype'),
         url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

:root {
    --color-yellow-bg: #fff8d8; /* Couleur officielle arrière-plan */
    --color-blue-main: #98acd9; /* Couleur officielle logo & accents */
    --color-blue-dark: #7a8eb8; /* Pour les états survolés (hover) */
    --color-text-dark: #2c3e50; /* Texte principal pour une bonne lisibilité */
    --color-white: #ffffff;
    --font-premium: 'Poppins-Medium', sans-serif; 
    --font-sans: 'Poppins-Light', sans-serif;
    --shadow-premium: 0 4px 15px rgba(152, 172, 217, 0.2);
}

/* Reset & Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans) !important;
    font-weight: 300;
    background-color: var(--color-yellow-bg);
    color: var(--color-text-dark);
    line-height: 1.6;
}

/* On applique Poppins-Medium aux titres et on écrase Playfair pour de bon */
h1, h2, h3, .brand-font {
    font-family: var(--font-premium) !important;
    font-weight: 500 !important; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Layout Global */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Navigation */
.main-header {
    background-color: rgba(255, 248, 216, 0.95);
    border-bottom: 1px solid rgba(152, 172, 217, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-wrapper img {
    height: 60px; /* Ajusté pour votre logo Nolla Nails */
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-item a:hover {
    color: var(--color-blue-main);
}

/* Bouton Connexion */
.btn-login {
    background-color: transparent;
    border: 1px solid var(--color-blue-main);
    padding: 8px 18px;
    border-radius: 50px;
    color: var(--color-blue-main);
    font-weight: 600;
}

.btn-login:hover {
    background-color: var(--color-blue-main);
    color: var(--color-yellow-bg);
}

/* ==========================================================================
   BOUTON FLOTTANT PRISE DE RENDEZ-VOUS
   ========================================================================== */
/* ==========================================================================
   BOUTON FLOTTANT PRISE DE RENDEZ-VOUS (DESKTOP)
   ========================================================================== */
.floating-rdv-btn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: var(--color-blue-main);
    color: var(--color-white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(152, 172, 217, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-rdv-btn:hover {
    background-color: var(--color-blue-dark);
    transform: translateY(-5px);
    color: var(--color-white);
    box-shadow: 0 8px 25px rgba(152, 172, 217, 0.7);
}

/* Footer */
.main-footer {
    background-color: #2c3e50; /* Couleur sombre contrastée pour le rendu premium */
    color: #f8f9fa;
    padding: 50px 0 20px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--color-blue-main);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--color-blue-main);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: #a0aec0;
}

.calendar-day-btn:hover {
    transform: scale(1.08);
}
.calendar-day-btn.selected-day {
    border: 3px solid #2c3e50 !important;
    box-shadow: 0 0 10px rgba(44, 62, 80, 0.3);
    transform: scale(1.05);
}

/* ==========================================================================
   11. STYLE DE LA GALERIE DE RÉALISATIONS
   ========================================================================== */
.section-galerie {
    background-color: var(--color-bg-dark);
}

/* Grille CSS Grid ultra-flexible */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Conteneur d'image */
.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--color-bg-card);
    aspect-ratio: 4 / 3; /* Force toutes les images à avoir la même proportion */
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre proprement sans déformer */
    transition: transform 0.4s ease;
}

/* Voile sombre et texte au survol de la souris */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 39, 42, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: var(--color-blue-main);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--color-blue-main);
    padding: 8px 16px;
    border-radius: 4px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

/* Comportement au survol (Desktop) */
.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .floating-rdv-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* Optimisation de l'affichage de la galerie d'images sur écran tactile (Évite le double clic) */
    .gallery-overlay {
        opacity: 1 !important;
        background: linear-gradient(transparent, rgba(35, 39, 42, 0.95)) !important;
        align-items: flex-end !important;
        padding-bottom: 15px;
    }
    .gallery-overlay span {
        transform: translateY(0) !important;
        font-size: 13px !important;
        padding: 4px 10px !important;
    }
}

/* --- RESPONSIVE DESIGN POUR L'ESPACE CLIENT --- */

@media (max-width: 868px) {
    /* 1. Force la grille à passer sur une seule colonne sur mobile */
    .account-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* 2. Ajuste les titres et paddings de la section pour économiser de l'espace */
    section {
        padding: 20px 0 !important;
    }
    
    h1 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* 3. Style les cellules du tableau pour un défilement horizontal fluide */
    table th, table td {
        padding: 10px 6px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* 4. Sur très petits écrans, on réduit encore la taille des textes pour éviter les débordements */
    table th, table td {
        font-size: 0.8rem;
        padding: 8px 4px !important;
    }
    
    /* On réduit légèrement la taille des boutons pour qu'ils restent compacts */
    table button {
        padding: 5px 8px !important;
        font-size: 0.8rem !important;
    }
}