/*==================================================
    UNIVERS - STYLES COMPLETS (BIEN-ÊTRE)
    Coiffures uniquement, grille centrée
    Avec animations au scroll
==================================================*/

* {
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.univers-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*==================================================
    ANIMATIONS SCROLL
==================================================*/

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal-delay-2 { transition-delay: 0.2s; }
.scroll-reveal-delay-3 { transition-delay: 0.3s; }
.scroll-reveal-delay-4 { transition-delay: 0.4s; }
.scroll-reveal-delay-5 { transition-delay: 0.5s; }
.scroll-reveal-delay-6 { transition-delay: 0.6s; }

/*==================================================
    HERO
==================================================*/

.univers-hero {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.univers-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Styles pour la vidéo hero */
.univers-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

/* Image fallback */
.univers-hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: none;
}

.univers-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.univers-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
}

.univers-hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1;
    animation: fadeInDown 1s ease-out;
}

.univers-hero-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/*==================================================
    SECTION HEADER
==================================================*/

.univers-section-header {
    text-align: center;
    margin-bottom: 35px;
}

.univers-section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffd600;
    margin-bottom: 10px;
    position: relative;
}

.univers-section-badge::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #ffd600;
    border-radius: 1px;
}

.univers-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.univers-section-header p {
    font-size: 14px;
    color: #777;
    margin: 0;
}


/*==================================================
    ACTIVITÉS GRID (COIFFURES) - TOUJOURS CENTRÉE
==================================================*/

.univers-activities {
    padding: 60px 0;
}

/* MODIFICATION : Utilisation de flexbox pour centrer les cartes */
.univers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre les cartes horizontalement */
    gap: 18px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.activity-card {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: calc((100% - 54px) / 4); /* 4 cartes par ligne avec 3 gaps de 18px = 54px */
    max-width: 280px;
    min-width: 250px;
    flex: 0 0 auto;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-6px);
    border-color: #ffd600;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.activity-card-image {
    width: 100%;
    height: 190px;
    position: relative;
    overflow: hidden;
    background: #111;
}

.activity-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.activity-card:hover .activity-card-image img {
    transform: scale(1.08);
}

.activity-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-card-image.no-image::after {
    content: 'CONTENAIR';
    font-size: 18px;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
}

.activity-card-body {
    padding: 18px;
}

.activity-card-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    transition: color 0.3s;
}

.activity-card:hover .activity-card-body h3 {
    color: #ffd600;
}

.activity-card-body p {
    font-size: 12px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid #111;
}

.activity-card-arrow {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-card:hover .activity-card-arrow {
    color: #ffd600;
}

.activity-card-arrow i {
    font-size: 10px;
    transition: transform 0.3s;
}

.activity-card:hover .activity-card-arrow i {
    transform: translateX(3px);
}

/*==================================================
    RESPONSIVE POUR LA GRILLE CENTRÉE
==================================================*/

/* Grand écran - 4 cartes par ligne */
@media (min-width: 1201px) {
    .activity-card {
        width: calc((100% - 54px) / 4);
    }
}

/* Écran moyen-large - 4 cartes par ligne */
@media (min-width: 1001px) and (max-width: 1200px) {
    .univers-grid {
        max-width: 1000px;
    }
    
    .activity-card {
        width: calc((100% - 54px) / 4);
    }
}

/* Tablette paysage - 3 cartes par ligne */
@media (min-width: 769px) and (max-width: 1000px) {
    .activity-card {
        width: calc((100% - 36px) / 3); /* 3 cartes avec 2 gaps de 18px = 36px */
        min-width: 220px;
    }
}

/* Tablette portrait - 2 cartes par ligne */
@media (min-width: 601px) and (max-width: 768px) {
    .activity-card {
        width: calc((100% - 18px) / 2); /* 2 cartes avec 1 gap de 18px = 18px */
        min-width: 200px;
    }
}

/* Mobile - 1 carte par ligne centrée */
@media (max-width: 600px) {
    .univers-grid {
        gap: 15px;
        padding: 0 15px;
    }
    
    .activity-card {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
    
    .activity-card-image {
        height: 170px;
    }
}
/*==================================================
    MODALES - DÉSACTIVÉES (conservées pour compatibilité)
==================================================*/

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    border: 1px solid #333;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
}

.modal-gallery {
    width: 50%;
    display: flex;
    flex-direction: column;
    background: #000;
    flex-shrink: 0;
}

.gallery-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 300px;
    background: #050505;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    z-index: 5;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-counter {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
}

.gallery-thumbs {
    display: flex;
    gap: 5px;
    padding: 8px;
    overflow-x: auto;
    background: #080808;
    border-top: 1px solid #111;
}

.gallery-thumb {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s;
}

.gallery-thumb.active { border-color: #ffd600; opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal-info {
    width: 50%;
    padding: 25px;
    overflow-y: auto;
}

.modal-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.modal-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.modal-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.modal-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    font-size: 11px;
    color: #999;
}

.modal-detail-item i { color: #ffd600; font-size: 12px; }

.modal-price {
    font-size: 22px;
    font-weight: 700;
    color: #ffd600;
}

/*==================================================
    FULLSCREEN IMAGE
==================================================*/

.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.fullscreen-overlay.active { display: flex; }
.fullscreen-overlay img { max-width: 95%; max-height: 95%; object-fit: contain; }

.fullscreen-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/*==================================================
    RESPONSIVE - GRILLE TOUJOURS CENTRÉE
==================================================*/

@media (min-width: 1201px) {
    .univers-grid {
        grid-template-columns: repeat(4, 280px);
        justify-content: center;
    }
}

@media (min-width: 1001px) and (max-width: 1200px) {
    .univers-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1000px) {
    .univers-hero { height: 320px; }
    .univers-hero-content h1 { font-size: 38px; }
    .univers-grid {
        grid-template-columns: repeat(3, 280px);
        justify-content: center;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .univers-hero { height: 300px; }
    .univers-hero-content h1 { font-size: 34px; }
    .univers-grid {
        grid-template-columns: repeat(2, 280px);
        justify-content: center;
    }
    .modal-container {
        flex-direction: column;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
    .modal-gallery { width: 100%; max-height: 250px; }
    .modal-info { width: 100%; }
}

@media (max-width: 600px) {
    .univers-hero { height: 250px; }
    .univers-hero-content h1 { font-size: 28px; }
    .univers-hero-content p { font-size: 13px; }
    .univers-section-header h2 { font-size: 24px; }
    .univers-grid {
        grid-template-columns: 280px;
        justify-content: center;
    }
    .activity-card-image { height: 170px; }
}



/* Style pour l'adresse/localisation */

.activity-block{
    display: flex;
    justify-content: flex-end;
}

.activity-location {
    font-size: 11px;
    color: white;
    margin-top: 6px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-location i {
    color: #ffd600;
    font-size: 10px;
}

/* Style pour le prix */
.activity-price {
    font-size: 13px;
    color: #ffd600;
    font-weight: 700;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-price i {
    font-size: 11px;
}

/* Effets au survol */
.activity-card:hover .activity-location {
    color: #aaa;
}

.activity-card:hover .activity-price {
    color: #ffea00;
}