/* Composants réutilisables */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color) !important; /* Force le noir sur l'or pour le contraste */
}

.btn-primary:hover {
    background: var(--secondary-dark);
    color: #fff !important;
}

.btn-outline {
    border: 1px solid var(--secondary-dark) !important;
    color: var(--secondary-dark) !important;
}

.btn-outline:hover {
    background: var(--secondary-dark);
    color: #fff !important;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 20px auto 0;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/placeholder-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 100px 20px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 20px;
}

.card .btn {
    margin-top: auto;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #ddd;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PRICING TABLES & PREMIUM PRICING CARDS --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    margin: 40px 0;
    align-items: stretch;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        gap: 20px;
    }
}

.pricing-card {
    background: #ffffff;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.12);
    border-color: var(--secondary-color);
}

.pricing-card.featured {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.15);
    background: #ffffff;
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .pricing-card.featured {
        transform: scale(1);
    }
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 45px rgba(197, 160, 89, 0.22);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

.pricing-card-header {
    margin-bottom: 25px;
}

.pricing-card-header h3 {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.pricing-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card-price {
    margin-bottom: 30px;
    color: var(--secondary-dark);
}

.pricing-card-price .price {
    font-family: var(--font-titles);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.pricing-card-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
    margin-left: 2px;
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-card-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pricing-card-features li:last-child {
    border-bottom: none;
}

.pricing-card-features li i {
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.btn-card {
    background: var(--primary-color);
    color: var(--text-light) !important;
    width: 100%;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    text-align: center;
}

.pricing-card:hover .btn-card {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    border-color: var(--secondary-color);
}

.pricing-card.featured .btn-card {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    border-color: var(--secondary-color);
}

.pricing-card.featured:hover .btn-card {
    background: var(--secondary-dark);
    color: #ffffff !important;
    border-color: var(--secondary-dark);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.pricing-table th {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 20px 24px;
    text-align: left;
    font-family: var(--font-titles);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pricing-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background-color: rgba(197, 160, 89, 0.03);
}

/* ==========================================================================
   GALERIE PREMIUM & LIGHTBOX SYSTEM (Upgrade 2026)
   ========================================================================== */

/* 1. Menu de filtrage des catégories (Grossesse / Naissance) */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px auto 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 168, 128, 0.2);
    color: var(--text-dark);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-dark);
    background: rgba(197, 168, 128, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.1);
}

.filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color) !important;
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.25);
}

/* 2. Style Premium des éléments de la galerie */
.gallery-item {
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
    aspect-ratio: 3/4;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.6s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(197, 168, 128, 0.22);
    border-color: rgba(197, 168, 128, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Masque de survol doré ultra-élégant */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(197, 168, 128, 0.4) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 8px;
}

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

.gallery-overlay i {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 12px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.gallery-overlay span {
    color: #ffffff;
    font-family: var(--font-titles);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: capitalize;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
}

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

/* 3. Transition pour le filtrage JS */
.gallery-item.fade-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.gallery-item.fade-in {
    opacity: 1;
    transform: scale(1);
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 4. Système Lightbox (Visionneuse d'Art) */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 6, 6, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-caption {
    color: #ffffff;
    font-family: var(--font-titles);
    font-size: 1.15rem;
    margin-top: 20px;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding-bottom: 8px;
    min-height: 35px;
    width: 100%;
    max-width: 600px;
}

/* Boutons de navigation et fermeture */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
}

.lightbox-nav:hover {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(3px);
}

/* Version mobile responsive de la Lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 1.7rem;
    }
    
    .lightbox-nav {
        width: 48px;
        height: 48px;
        font-size: 1.8rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-caption {
        font-size: 0.95rem;
        margin-top: 15px;
        padding: 0 15px;
    }
}

/* ==========================================================================
   5. Protection Anti-Vol & Blocage de Téléchargement (Premium 2026)
   ========================================================================== */
img, 
.gallery-item, 
.lightbox-content img,
.hero {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
}

/* Force les événements pointeur à traverser les images dans les galeries pour empêcher le glisser/enregistrer */
.gallery-item img,
.lightbox-img {
    pointer-events: none !important;
}

/* Rétablir les événements pointeur sur les conteneurs et overlays de galeries pour l'interactivité */
.gallery-item,
.gallery-overlay,
.gallery-overlay * {
    pointer-events: auto !important;
}

