/* ================================================
   IMPRO COMEDY CLUB - Site Front
   Style clair inspiré du site actuel
   ================================================ */

:root {
    --icc-magenta: #E91E8C;
    --icc-magenta-dark: #C4177A;
    --icc-noir: #333333;
    --icc-gris: #666666;
    --icc-gris-clair: #f8f8f8;
    --icc-blanc: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    background-color: var(--icc-blanc);
    color: var(--icc-noir);
    line-height: 1.7;
    font-size: 0.85rem;
}

a {
    color: var(--icc-magenta);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--icc-magenta-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    color: var(--icc-noir);
    line-height: 1.3;
    text-transform: uppercase;
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */

header {
    background: var(--icc-blanc);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    color: var(--icc-noir);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
}

nav a:hover,
nav a.active {
    color: var(--icc-magenta);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--icc-noir);
}

/* ================================================
   MAIN CONTENT
   ================================================ */

main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px 30px;
}

.intro-text {
    max-width: 800px;
    margin-bottom: 50px;
}

.intro-text h1 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.intro-text p {
    font-size: 0.85rem;
    color: var(--icc-gris);
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 30px;
    /*text-transform: uppercase;*/
}

/* ================================================
   SPECTACLES GRID - Format Portrait
   ================================================ */

.spectacles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.spectacle-card {
    background: var(--icc-blanc);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.spectacle-card .affiche {
    width: 100%;
    height: auto;
    display: block;
    background: var(--icc-gris-clair);
}

.spectacle-card .affiche-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--icc-magenta);
}

.spectacle-card .card-body {
    padding: 15px 0 0 0;
}

.spectacle-card .date-heure {
    color: var(--icc-noir);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.spectacle-card .troupe {
    color: var(--icc-noir);
    font-size: 0.7rem;
    margin-bottom: 5px;
}

.spectacle-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: none;
}

.spectacle-card h3 a {
    color: var(--icc-magenta);
}

.spectacle-card h3 a:hover {
    color: var(--icc-magenta-dark);
}


/* ================================================
   PAGE DETAIL SPECTACLE
   ================================================ */

.spectacle-detail {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.spectacle-detail .affiche-container {
    position: sticky;
    top: 30px;
}

.spectacle-detail .affiche {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}

.spectacle-detail .affiche-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--icc-gris-clair);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--icc-magenta);
}

.spectacle-detail .info h1 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.spectacle-detail .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.spectacle-detail .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--icc-gris);
    font-size: 0.95rem;
}

.spectacle-detail .meta-item i {
    color: var(--icc-magenta);
    font-size: 1.1rem;
}

.spectacle-detail .troupe-name {
    color: var(--icc-magenta);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.spectacle-detail .description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--icc-gris);
    white-space: pre-line;
}

.spectacle-detail h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.spectacle-detail p {
    margin-bottom: 10px;
    color: var(--icc-gris);
}

/* ================================================
   ARCHIVES
   ================================================ */

.archives-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.archives-filters select {
    padding: 10px 20px;
    background: var(--icc-blanc);
    border: 1px solid #ddd;
    color: var(--icc-noir);
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
}

.archives-filters select:focus {
    outline: none;
    border-color: var(--icc-magenta);
}

/* ================================================
   PAGE CONTACT
   ================================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--icc-gris);
}

.contact-info a {
    color: var(--icc-magenta);
}

.transport-item {
    margin-bottom: 20px;
}

.transport-item .transport-title {
    font-weight: 500;
    color: var(--icc-noir);
    margin-bottom: 5px;
}

.transport-item .transport-title i {
    margin-right: 8px;
}

.transport-item p {
    margin-bottom: 0;
}

.contact-map iframe {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}


/* ================================================
   PAGE A PROPOS
   ================================================ */

.about-content {
    max-width: 800px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--icc-gris);
}

.about-text h3 {
    font-size: 1.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* ================================================
   GALERIE PHOTO
   ================================================ */

.gallery-grid {
    columns: 4;
    column-gap: 5px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 5px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

@media (max-width: 1024px) {
    .gallery-grid {
        columns: 3;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 2;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--icc-magenta);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    padding: 20px 15px;
    z-index: 10001;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--icc-magenta);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 3px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 15px 10px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}


/* ================================================
   FOOTER MAGENTA
   ================================================ */

footer {
    background: var(--icc-magenta);
    padding: 50px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    color: var(--icc-blanc);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-section p,
.footer-section a {
    color: var(--icc-blanc);
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.footer-section a:hover {
    color: var(--icc-blanc);
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1080px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    color: var(--icc-blanc);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--icc-blanc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icc-magenta);
    transition: all 0.3s ease;
    border: none;
}

.social-links a:hover {
    background: var(--icc-blanc);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .footer-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .social-links { 
        justify-content: center; 
    }
}

/* ================================================
   RESPONSIVE - MENU MOBILE
   ================================================ */

@media (max-width: 768px) {
    .menu-toggle { 
        display: flex; 
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--icc-blanc);
        flex-direction: column;
        padding: 100px 30px 30px 30px;
        gap: 0;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav ul.active { 
        display: flex; 
    }
    
    nav li { 
        border-bottom: 1px solid #eee; 
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a { 
        display: block; 
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .spectacle-detail { 
        grid-template-columns: 1fr; 
    }
    
    .spectacle-detail .affiche-container { 
        position: static; 
    }
    
    .contact-grid { 
        grid-template-columns: 1fr; 
    }
}

/* ================================================
   UTILITIES
   ================================================ */

.text-center { text-align: center; }
.text-magenta { color: var(--icc-magenta); }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--icc-magenta);
    color: var(--icc-blanc);
    border: none;
}

.btn-primary:hover {
    background: var(--icc-magenta-dark);
    color: var(--icc-blanc);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--icc-magenta);
    color: var(--icc-magenta);
}

.btn-outline:hover {
    background: var(--icc-magenta);
    color: var(--icc-blanc);
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--icc-gris);
}

.empty-message i {
    font-size: 3rem;
    color: var(--icc-magenta);
    margin-bottom: 20px;
    display: block;
}

.empty-message h3 {
    font-weight: 500;
    margin-bottom: 10px;
}

/* ================================================
   NAVIGATION SPECTACLE (précédent / suivant)
   ================================================ */

.spectacle-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.spectacle-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--icc-gris);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    max-width: 45%;
}

.spectacle-nav-link:hover {
    color: var(--icc-magenta);
}

.spectacle-nav-link i {
    font-size: 1.5rem;
}

.spectacle-nav-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spectacle-nav-link.next {
    text-align: right;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .spectacle-nav-link span {
        display: none;
    }
    
    .spectacle-nav-link i {
        font-size: 2rem;
    }
}
