/**
 * Page: La vie à l'école
 *
 * Styles extracted from static vie-ecole.html.
 * Enqueued conditionally on the vie-ecole page only.
 *
 * @package ecole-du-bonheur
 */

/* Introduction Block */
.intro-block {
    margin-bottom: 2rem;
}

.intro-block p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* ==================== EVENTS SHOWCASE ==================== */
.events-showcase {
    position: relative;
    min-height: 600px;
}

/* Events Overview - Circle Grid */
.events-overview {
    padding: 2rem 0;
}

.circles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    max-width: 1100px;
    margin: 0 auto;
    justify-items: center;
    padding: 1rem;
}

/* Event Circle */
.event-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 30px -10px var(--event-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: circleEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

/* Staggered entrance animation delays */
.event-circle:nth-child(1) { animation-delay: 0.08s; }
.event-circle:nth-child(2) { animation-delay: 0.16s; }
.event-circle:nth-child(3) { animation-delay: 0.24s; }
.event-circle:nth-child(4) { animation-delay: 0.32s; }
.event-circle:nth-child(5) { animation-delay: 0.40s; }
.event-circle:nth-child(6) { animation-delay: 0.48s; }
.event-circle:nth-child(7) { animation-delay: 0.56s; }
.event-circle:nth-child(8) { animation-delay: 0.64s; }
.event-circle:nth-child(9) { animation-delay: 0.72s; }
.event-circle:nth-child(10) { animation-delay: 0.80s; }
.event-circle:nth-child(11) { animation-delay: 0.88s; }

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

.event-circle:hover {
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 0 0 3px var(--event-color);
}

.event-circle:focus {
    outline: none;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2),
        0 0 0 4px var(--event-color),
        0 0 0 8px rgba(var(--event-color), 0.3);
}

/* Circle Image Wrapper */
.circle-image-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
}

.circle-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-circle:hover .circle-image-wrapper img {
    transform: scale(1.1);
}

.circle-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.15) 35%,
        rgba(0, 0, 0, 0.05) 60%,
        transparent 100%
    );
    border-radius: 50%;
}

/* Gradient background for events without photos */
.circle-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--event-color) 0%, color-mix(in srgb, var(--event-color) 70%, black) 100%);
    border-radius: 50%;
}

.event-circle.has-no-photo .circle-gradient-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 100%
    );
}

/* Large icon for events without photos */
.circle-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    transition: all 0.3s ease;
}

.event-circle.has-no-photo:hover .circle-icon-large {
    transform: translate(-50%, -60%) scale(1.1);
}

/* Circle Content */
.circle-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    z-index: 2;
}

.circle-month {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--event-color);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.circle-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    word-wrap: break-word;
}

/* Icon Badge on hover */
.circle-icon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--event-color);
    opacity: 0;
    transform: scale(0.8) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.circle-icon-badge i {
    color: inherit;
    font-size: inherit;
}

.event-circle:hover .circle-icon-badge {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ==================== EVENT DETAIL VIEW ==================== */
.event-detail {
    display: none;
    position: relative;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: detailFadeIn 0.4s ease;
}

.event-detail.active {
    display: block;
}

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

/* Back Button */
.back-to-overview {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin: 1.5rem;
    background: var(--light-bg);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.back-to-overview:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

.back-to-overview i {
    transition: transform 0.3s ease;
}

.back-to-overview:hover i {
    transform: translateX(-3px);
}

/* Event Content Wrapper */
.event-content-wrapper {
    padding: 0 2rem 2rem;
    position: relative;
}

/* Bottom Navigation Bar */
.event-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    border-top: 1px solid var(--border-light);
    gap: 1rem;
}

.nav-prev,
.nav-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    transition: all 0.3s ease;
    min-width: 140px;
}

.nav-prev {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
}

.nav-prev:hover,
.nav-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.nav-prev i,
.nav-next i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-prev:hover i {
    transform: translateX(-3px);
}

.nav-next:hover i {
    transform: translateX(3px);
}

.nav-label {
    white-space: nowrap;
}

/* Event Dots Navigation */
.event-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.event-dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

.event-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Circle expand animation (clone element) */
.circle-clone {
    position: fixed;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
}

.circle-clone.expanding {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .circles-grid {
        gap: 2rem;
        max-width: 800px;
    }

    .event-circle {
        width: 220px;
        height: 220px;
    }

    .circle-icon-large {
        font-size: 3rem;
    }

    .circle-title {
        font-size: 1rem;
    }

    .circle-content {
        padding: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .events-overview {
        padding: 1rem 0;
    }

    .circles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 280px;
        padding: 0 1rem;
    }

    .event-circle {
        width: 240px;
        height: 240px;
        animation-delay: 0s !important;
        animation-duration: 0.4s;
    }

    .event-circle:hover {
        transform: scale(1.03) !important;
    }

    .circle-icon-large {
        font-size: 3.5rem;
        transform: translate(-50%, -55%);
    }

    .circle-content {
        padding: 1.25rem;
    }

    .circle-month {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .circle-title {
        font-size: 1rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .circle-icon-badge {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    /* Detail view mobile */
    .event-detail {
        position: relative;
    }

    .back-to-overview {
        margin: 1rem;
        font-size: 0.9rem;
    }

    .event-content-wrapper {
        padding: 0 1rem 1.5rem;
    }

    /* Bottom nav mobile */
    .event-bottom-nav {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.75rem;
    }

    .nav-prev,
    .nav-next {
        min-width: 0;
        flex: 1;
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

    .nav-label {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .event-dots {
        order: -1;
        width: 100%;
        justify-content: center;
        padding-bottom: 0.5rem;
    }

    .event-dot {
        width: 10px;
        height: 10px;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .circles-grid {
        max-width: 220px;
        gap: 1.25rem;
    }

    .event-circle {
        width: 200px;
        height: 200px;
    }

    .circle-icon-large {
        font-size: 3rem;
    }

    .circle-content {
        padding: 1rem;
    }

    .circle-title {
        font-size: 0.95rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .event-circle {
        animation: none;
    }

    .event-circle,
    .event-circle:hover,
    .circle-image-wrapper img,
    .circle-icon-badge,
    .back-to-overview,
    .event-nav-btn {
        transition: none;
    }
}

/* Event content wrapper inherits tab styles */
.event-content-wrapper .tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-content-wrapper .tab-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.event-content-wrapper .tab-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .event-content-wrapper .tab-header {
        flex-direction: column;
    }

    .event-content-wrapper .tab-header h2 {
        font-size: 1.4rem;
    }
}

/* Tabs Container (kept for data source) */
.tabs-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    background: var(--light-bg);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
    -webkit-overflow-scrolling: touch;
}

.tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.tabs-nav::-webkit-scrollbar-track {
    background: transparent;
}

.tabs-nav::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 2px;
}

.tab-btn {
    flex: 1 0 auto;
    min-width: 160px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.tab-btn i {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.tab-btn span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.tab-btn small {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.5);
}

.tab-btn:hover i,
.tab-btn:hover span {
    color: var(--primary);
}

.tab-btn.active {
    background: white;
}

.tab-btn.active::after {
    background: var(--primary);
}

.tab-btn.active i {
    color: var(--primary);
}

.tab-btn.active span {
    color: var(--dark);
}

/* Tab-specific colors */
.tab-btn[data-tab="marche"].active i {
    color: #10B981;
}

.tab-btn[data-tab="marche"].active::after {
    background: #10B981;
}

.tab-btn[data-tab="halloween"].active i {
    color: #F97316;
}

.tab-btn[data-tab="halloween"].active::after {
    background: #F97316;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tab Header */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.tab-location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-location i {
    color: var(--primary);
}

#marche .tab-location i {
    color: #10B981;
}

#halloween .tab-location i {
    color: #F97316;
}

.tab-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
}

/* Badge background color comes from event_color ACF field via inline style */

/* Tab Body */
.tab-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.description-block p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle i {
    color: #10B981;
}

.section-subtitle.halloween-accent i {
    color: #F97316;
}

/* Age Groups Grid */
.age-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.age-group-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.age-group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.age-group-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.age-group-card.maternelle .age-group-icon {
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    color: #7C3AED;
}

.age-group-card.primaire .age-group-icon {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
}

.age-group-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.age-group-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.age-group-card li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.age-group-card.maternelle li i {
    color: #8B5CF6;
    width: 18px;
}

.age-group-card.primaire li i {
    color: #10B981;
    width: 18px;
}

/* Video Section */
.video-section {
    margin-top: 0.5rem;
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
}

.video-container .video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-container .video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-link {
    display: block;
    text-decoration: none;
}

.video-placeholder {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.video-placeholder.marche-video {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-placeholder i {
    font-size: 4rem;
    color: white;
}

.video-placeholder span {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.native-video {
    width: 100%;
    max-height: 450px;
    border-radius: 12px;
    background: #000;
}

/* Photo Gallery */
.photo-gallery-section {
    margin-top: 0.5rem;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 1.75rem;
}

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

/* Gallery theme colors */
.halloween-gallery .gallery-item:hover {
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

.saintnicolas-gallery .gallery-item:hover {
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
}

.marchenoel-gallery .gallery-item:hover {
    box-shadow: 0 12px 30px rgba(22, 101, 52, 0.25);
}

/* Halloween Specific Styles */
.halloween-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FED7AA 0%, #FDBA74 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #EA580C;
}

.highlight-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    text-align: center;
}

/* Marche parrainée Specific Styles */
.marche-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.marche-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.marche-icon {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
}

.section-subtitle.marche-accent i {
    color: #10B981;
}

.halloween-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.halloween-message i {
    color: #F97316;
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.halloween-message p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.halloween-video {
    width: 100%;
    max-height: 450px;
    border-radius: 12px;
    background: #000;
}

.halloween-dots .album-dot.active {
    background: #F97316;
}

#halloween .album-thumbnail.active {
    box-shadow: 0 0 0 2px #F97316;
}

/* Saint-Nicolas Specific Styles */
.tab-btn[data-tab="saintnicolas"].active i {
    color: #DC2626;
}

.tab-btn[data-tab="saintnicolas"].active::after {
    background: #DC2626;
}

#saintnicolas .tab-location i {
    color: #DC2626;
}

/* saintnicolas badge — now uses inline style from event_color */

.section-subtitle.saintnicolas-accent i {
    color: #DC2626;
}

.saintnicolas-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.saintnicolas-item:hover {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

.saintnicolas-icon {
    background: linear-gradient(135deg, #FECACA 0%, #FCA5A5 100%) !important;
    color: #DC2626 !important;
}

.saintnicolas-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.saintnicolas-message i {
    color: #DC2626;
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.saintnicolas-message p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.saintnicolas-dots .album-dot.active {
    background: #DC2626;
}

#saintnicolas .album-thumbnail.active {
    box-shadow: 0 0 0 2px #DC2626;
}

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

@media (max-width: 480px) {
    .saintnicolas-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Marché de Noël Specific Styles */
.tab-btn[data-tab="marchenoel"].active i {
    color: #166534;
}

.tab-btn[data-tab="marchenoel"].active::after {
    background: #166534;
}

#marchenoel .tab-location i {
    color: #166534;
}

/* marchenoel badge — now uses inline style */

.section-subtitle.marchenoel-accent i {
    color: #166534;
}

.marchenoel-highlights {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.marchenoel-item:hover {
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.15);
}

.marchenoel-icon {
    background: linear-gradient(135deg, #BBF7D0 0%, #86EFAC 100%) !important;
    color: #166534 !important;
}

.marchenoel-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.marchenoel-message i {
    color: #166534;
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.marchenoel-message p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.marchenoel-dots .album-dot.active {
    background: #166534;
}

#marchenoel .album-thumbnail.active {
    box-shadow: 0 0 0 2px #166534;
}

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

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

@media (max-width: 480px) {
    .marchenoel-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Journée artistique Specific Styles */
.tab-btn[data-tab="journeeartistique"].active i {
    color: #7C3AED;
}

.tab-btn[data-tab="journeeartistique"].active::after {
    background: #7C3AED;
}

#journeeartistique .tab-location i {
    color: #7C3AED;
}

/* journeeartistique badge — now uses inline style */

.journeeartistique-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.journeeartistique-item:hover {
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

.journeeartistique-icon {
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%) !important;
    color: #7C3AED !important;
}

.journeeartistique-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.journeeartistique-message i {
    color: #7C3AED;
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.journeeartistique-message p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Photos coming soon placeholder */
.photos-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
    border-radius: 16px;
    border: 2px dashed #C4B5FD;
    text-align: center;
}

.coming-soon-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #7C3AED;
    margin-bottom: 1rem;
}

.photos-coming-soon h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.photos-coming-soon p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0;
}

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

@media (max-width: 480px) {
    .journeeartistique-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Journée verticalité Specific Styles */
.tab-btn[data-tab="verticalite"].active i {
    color: #0891B2;
}

.tab-btn[data-tab="verticalite"].active::after {
    background: #0891B2;
}

#verticalite .tab-location i {
    color: #0891B2;
}

/* verticalite badge — now uses inline style */

.verticalite-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.verticalite-item:hover {
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.15);
}

.verticalite-icon {
    background: linear-gradient(135deg, #CFFAFE 0%, #A5F3FC 100%) !important;
    color: #0891B2 !important;
}

.verticalite-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #ECFEFF 0%, #CFFAFE 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.verticalite-message p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.verticalite-coming-soon {
    background: linear-gradient(135deg, #ECFEFF 0%, #CFFAFE 100%);
    border-color: #67E8F9;
}

.verticalite-coming-soon .coming-soon-icon {
    background: linear-gradient(135deg, #CFFAFE 0%, #A5F3FC 100%);
    color: #0891B2;
}

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

@media (max-width: 480px) {
    .verticalite-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Fancy fair Specific Styles */
.tab-btn[data-tab="fancyfair"].active i {
    color: #DB2777;
}

.tab-btn[data-tab="fancyfair"].active::after {
    background: #DB2777;
}

#fancyfair .tab-location i {
    color: #DB2777;
}

/* fancyfair badge — now uses inline style */

.fancyfair-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.fancyfair-item:hover {
    box-shadow: 0 8px 25px rgba(219, 39, 119, 0.15);
}

.fancyfair-icon {
    background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%) !important;
    color: #DB2777 !important;
}

.fancyfair-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.fancyfair-message p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.fancyfair-coming-soon {
    background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
    border-color: #F9A8D4;
}

.fancyfair-coming-soon .coming-soon-icon {
    background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%);
    color: #DB2777;
}

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

@media (max-width: 480px) {
    .fancyfair-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Cérémonies Specific Styles */
.tab-btn[data-tab="ceremonies"].active i {
    color: #7C2D12;
}

.tab-btn[data-tab="ceremonies"].active::after {
    background: #7C2D12;
}

#ceremonies .tab-location i {
    color: #7C2D12;
}

/* ceremonies badge — now uses inline style */

.ceremonies-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ceremonies-item:hover {
    box-shadow: 0 8px 25px rgba(124, 45, 18, 0.15);
}

.ceremonies-icon {
    background: linear-gradient(135deg, #FED7AA 0%, #FDBA74 100%) !important;
    color: #7C2D12 !important;
}

.ceremonies-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.ceremonies-message p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.ceremonies-coming-soon {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-color: #FDBA74;
}

.ceremonies-coming-soon .coming-soon-icon {
    background: linear-gradient(135deg, #FED7AA 0%, #FDBA74 100%);
    color: #7C2D12;
}

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

@media (max-width: 480px) {
    .ceremonies-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Cycle 5-8 Specific Styles */
.tab-btn[data-tab="cycle58"].active i {
    color: #4338CA;
}

.tab-btn[data-tab="cycle58"].active::after {
    background: #4338CA;
}

#cycle58 .tab-location i {
    color: #4338CA;
}

/* cycle58 badge — now uses inline style */

.cycle58-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cycle58-item:hover {
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.15);
}

.cycle58-icon {
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%) !important;
    color: #4338CA !important;
}

.cycle58-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.cycle58-message p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.cycle58-coming-soon {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-color: #A5B4FC;
}

.cycle58-coming-soon .coming-soon-icon {
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
    color: #4338CA;
}

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

@media (max-width: 480px) {
    .cycle58-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Mini-cross & Journées sportives Specific Styles */
.tab-btn[data-tab="minicross"].active i {
    color: #059669;
}

.tab-btn[data-tab="minicross"].active::after {
    background: #059669;
}

#minicross .tab-location i {
    color: #059669;
}

/* minicross badge — now uses inline style */

.minicross-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.minicross-item:hover {
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15);
}

.minicross-icon {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%) !important;
    color: #059669 !important;
}

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

@media (max-width: 480px) {
    .minicross-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Journées sportives Specific Styles */
.tab-btn[data-tab="sportive"].active i {
    color: #0891B2;
}

.tab-btn[data-tab="sportive"].active::after {
    background: #0891B2;
}

#sportive .tab-location i {
    color: #0891B2;
}

/* sportive badge — now uses inline style */

.sportive-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.sportive-item:hover {
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.15);
}

.sportive-icon {
    background: linear-gradient(135deg, #CFFAFE 0%, #A5F3FC 100%) !important;
    color: #0891B2 !important;
}

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

@media (max-width: 480px) {
    .sportive-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        overflow-x: visible;
    }

    .tab-btn {
        flex: none;
        min-width: auto;
        max-width: none;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem;
        white-space: normal;
    }

    .tab-btn::after {
        width: 3px;
        height: 100%;
        top: 0;
        left: 0;
        right: auto;
        bottom: auto;
    }

    .tab-btn i {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .tab-btn small {
        display: none;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .tab-header {
        flex-direction: column;
    }

    .tab-header h2 {
        font-size: 1.4rem;
    }

    .age-groups-grid {
        grid-template-columns: 1fr;
    }

    .marche-highlights,
    .halloween-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .album-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .video-placeholder {
        padding: 2rem;
    }

    .video-placeholder i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .marche-highlights,
    .halloween-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .highlight-item {
        padding: 1rem;
    }

    .highlight-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .highlight-item span {
        font-size: 0.8rem;
    }

    .album-thumbnails {
        display: none;
    }

    .slide-caption {
        font-size: 0.85rem;
        padding: 1rem;
    }
}

/* Gallery responsive */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }
}

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

    .gallery-item {
        border-radius: 8px;
    }
}

/* 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;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    padding: 0.75rem 1.5rem;
    background: rgba(0,0,0,0.6);
    border-radius: 8px;
}
