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

:root {
    --primary-color: #3d5a6b;
    --secondary-color: #e27563;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --max-width: 900px;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-anchor: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    overflow: visible;
    overflow-anchor: none;
    background: #fff;
    box-shadow: var(--shadow);
}

.header-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background: #fff;
    padding: 0.35rem 1.5rem 0.25rem;
    border-bottom: 1px solid #eee;
    min-height: 110px;
    transition: all 0.25s ease;
    position: relative;
}

body.scrolled .header-bar,
.force-compact .header-bar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 75px; /* ~30% plus bas que 110px */
    padding: 0.2rem 1rem;
    gap: 0.35rem;
}

body.scrolled .header-bar::after,
.force-compact .header-bar::after {
    content: "";
    display: block;
    flex: 0 0 120px; /* espace miroir du logo pour centrer le menu */
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    background: #fff;
    transition: all 0.25s ease;
}

.header-logo a {
    display: inline-block;
}

.logo-img {
    max-width: 170px;
    height: auto;
    transition: max-width 0.25s ease;
}

body.scrolled .header-logo,
.force-compact .header-logo {
    justify-content: flex-start;
}

body.scrolled .logo-img,
.force-compact .logo-img {
    max-width: 120px;
}

/* Header Carousel */
.header-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    max-height: 400px; /* Add for transition */
    overflow: hidden;
    overflow-anchor: none;
    background-color: #000;
    opacity: 1;
    transition: height 0.25s ease-in-out, max-height 0.25s ease-in-out, opacity 0.2s ease;
}

/* Quand on scroll, le carrousel disparaît */
body.scrolled .header-carousel {
    height: 0;
    min-height: 0;
    max-height: 0; /* Collapse it */
    opacity: 0;
    pointer-events: none;
}

.force-compact .header-carousel {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    --carousel-pos-y-offset: 0%;
    object-position: center calc(var(--carousel-pos-y, 50%) + var(--carousel-pos-y-offset, 0%));
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* Navigation */
.navbar {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 0.35rem 0;
    margin: 0;
}

.nav-menu > li {
    display: flex;
    align-items: center;
}

.nav-menu a,
.dropdown-toggle {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    transition: color 0.3s;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.dropdown-toggle {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.nav-menu a:hover,
.nav-menu a.active,
.dropdown:hover .dropdown-toggle,
.dropdown:focus-within .dropdown-toggle,
.dropdown-toggle.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.dropdown {
    position: relative;
    padding-bottom: 0.65rem;
    margin-bottom: -0.65rem;
}

.dropdown-menu {
    position: absolute;
    left: 50%;
    top: 100%;
    display: flex;
    min-width: 270px;
    flex-direction: column;
    gap: 0;
    padding: 0.45rem 0;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: 0;
    color: #333;
    font-size: 0.88rem;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: #f7f3f0;
    border-bottom: 0;
    color: var(--secondary-color);
}

body.scrolled .navbar {
    justify-content: center;
    align-items: center;
    transform: translateY(-4px);
}

body.scrolled .nav-menu,
.force-compact .nav-menu {
    width: 100%;
    justify-content: center;
}

.admin-link {
    display: none;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
}

.hero h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Catalog Layout with Filter */
.catalog-layout {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
    align-items: start;
    justify-content: center;
}

.catalog-filter {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 135px;
    flex-shrink: 0;
    width: 220px;
}

.catalog-filter h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-option:hover {
    background-color: var(--bg-color);
}

.filter-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--secondary-color);
}

.filter-option span {
    font-size: 1rem;
    color: var(--text-color);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    gap: 2rem;
    margin: 0;
    justify-content: center;
}

.poster-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.poster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.poster-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poster-card:hover .poster-image {
    transform: scale(1.1);
}

.poster-info {
    padding: 1.5rem;
}

.poster-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.poster-info p {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Piece Detail */
.piece-detail {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.piece-header {
    margin-bottom: 2rem;
    text-align: center;
}

.piece-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Layout: Affiche à gauche, contenu à droite */
.piece-content-wrapper.layout-sidebar-left {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Layout: Affiche à droite, contenu à gauche */
.piece-content-wrapper.layout-sidebar-right {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.piece-content-wrapper.layout-sidebar-right .piece-poster-column {
    order: 2;
}

.piece-content-wrapper.layout-sidebar-right .piece-info-column {
    order: 1;
}

/* Layout: Affiche en haut */
.piece-content-wrapper.layout-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.piece-content-wrapper.layout-top .piece-poster-column {
    max-width: 400px;
}

.piece-poster-column {
    position: sticky;
    top: 135px; /* garde l'affiche visible sous le bandeau (75px header + 40px marge) */
    padding-top: 0.5rem;
    align-self: flex-start; /* Empêche l'affiche de se décaler en bas de page */
}

.piece-poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.piece-info-column {
    flex: 1;
}

.guichet-widget-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.guichet-widget-head {
    margin-bottom: 1.25rem;
    text-align: center;
}

.guichet-widget-head h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.guichet-widget-head p {
    color: var(--text-color);
    opacity: 0.75;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-section p {
    line-height: 1.8;
    margin-bottom: 0;
    white-space: pre-line;
}

/* Old styles for compatibility */
.piece-content {
    display: grid;
    gap: 2rem;
}

.piece-info {
    margin-bottom: 2rem;
}

.piece-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.piece-info p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.piece-video {
    margin: 2rem 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

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

.video-container video {
    background: #000;
    object-fit: contain;
}

/* Contact Page */
.contact-section {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 8px;
    min-width: 0;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.info-card p {
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-value {
    display: block;
    white-space: nowrap;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Admin Page */
.admin-container {
    max-width: 1200px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h2 {
    color: var(--primary-color);
    font-weight: normal;
}

.admin-list {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.piece-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    cursor: move;
}

.piece-item.dragging {
    opacity: 0.5;
}

.drag-handle {
    cursor: grab;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.piece-item img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.piece-item-info {
    flex: 1;
}

.piece-item-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: normal;
}

.piece-item-actions {
    display: flex;
    gap: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.preview-image {
    max-width: 100%;
    margin-top: 1rem;
    border-radius: 4px;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    font-family: inherit;
}

.btn:hover {
    background-color: #6d3410;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background-color: #c44;
}

.btn-danger:hover {
    background-color: #a33;
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #555;
}

/* Footer */
footer {
    background-color: var(--white);
    color: var(--text-color);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    font-weight: 700;
}

.legal-page {
    max-width: 980px;
    padding-top: 3rem;
}

.legal-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    line-height: 1.7;
}

.legal-card h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text-color);
}

.legal-card h2 {
    margin: 2rem 0 0.7rem;
    color: var(--text-color);
}

.legal-card p,
.legal-card li {
    color: #444;
}

.legal-card ul {
    padding-left: 1.4rem;
}

.legal-card a {
    color: var(--primary-color);
    font-weight: 700;
}

.legal-kicker {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legal-updated {
    margin-bottom: 2rem;
    color: #777;
}

.legal-note {
    margin-top: 2rem;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    background: #fff5f6;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Hamburger menu (mobile only) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

body.scrolled .hamburger span,
.force-compact .hamburger span {
    background: #333;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .header-bar {
        padding: 0.35rem 0.75rem 0.2rem;
        position: relative;
    }

    .logo-img {
        max-width: 130px;
    }

    body.scrolled .header-bar,
    .force-compact .header-bar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 0.75rem;
        min-height: 50px;
    }

    body.scrolled .header-bar::after,
    .force-compact .header-bar::after {
        display: none;
    }

    body.scrolled .logo-img,
    .force-compact .logo-img {
        max-width: 82px;
    }

    /* Show hamburger on mobile */
    .hamburger {
        display: flex;
        width: 27px;
        height: 21px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hide menu by default on mobile */
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 62px;
    }

    .navbar.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 0;
    }

    .nav-menu li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .nav-menu li a,
    .dropdown-toggle {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        color: #333;
        text-align: left;
    }

    .nav-menu li a.active,
    .dropdown-toggle.active {
        background: #f5f5f5;
        color: var(--primary-color);
    }

    .nav-menu li a:hover,
    .dropdown-toggle:hover {
        background: #f9f9f9;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        padding: 0 0 0.4rem;
        border: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .dropdown-menu a {
        padding: 0.75rem 2rem;
        font-size: 0.92rem;
        white-space: normal;
    }

    .header-carousel {
        height: 50vh;
        height: clamp(300px, 50svh, 420px);
        max-height: 420px;
    }

    .carousel-slide img {
        --carousel-pos-y-offset: -8%;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .catalog-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .catalog-filter {
        position: relative;
        top: 0;
        width: 100%;
    }

    .gallery {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .container {
        padding: 1rem;
    }

    /* Piece detail layouts on mobile */
    .piece-content-wrapper.layout-sidebar-left,
    .piece-content-wrapper.layout-sidebar-right {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .piece-content-wrapper.layout-sidebar-right .piece-poster-column {
        order: 1;
    }

    .piece-content-wrapper.layout-sidebar-right .piece-info-column {
        order: 2;
    }

    .piece-poster-column {
        position: relative;
        top: 0;
    }

    .piece-poster {
        max-width: 100%;
    }
}


/* ==================== */
/* DATES DE TOURNEE     */
/* ==================== */

.dates-tournee {
    margin: 2rem 0 4rem;
}

.affiche-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e6e6e6;
}

.affiche-kicker {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 0.4rem;
    text-transform: uppercase;
}

.affiche-summary h1 {
    color: var(--primary-color);
    font-size: 2.4rem;
    line-height: 1.05;
    margin: 0;
}

.affiche-count {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    white-space: nowrap;
}

.affiche-count strong {
    color: var(--primary-color);
    font-size: 2.1rem;
    line-height: 1;
}

.agenda-shell {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.agenda-month {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.agenda-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8f8f8;
    border-bottom: 1px solid #e8e8e8;
}

.agenda-month-header h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0;
    text-transform: capitalize;
}

.agenda-month-header span {
    color: #777;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.agenda-list {
    display: flex;
    flex-direction: column;
}

.agenda-row {
    display: grid;
    grid-template-columns: 82px 56px minmax(0, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.agenda-row:last-child {
    border-bottom: 0;
}

.date-card--inactive {
    opacity: 0.7;
    filter: grayscale(0.4);
}

.agenda-row:hover {
    background: #fafafa;
}

.agenda-date {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f2ef;
    color: var(--secondary-color);
    border-radius: 8px;
    padding: 0.55rem 0.45rem;
    text-align: center;
}

.agenda-weekday {
    color: #777;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.agenda-day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    margin-top: 0.1rem;
}

.agenda-month-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.agenda-thumb-wrap {
    width: 56px;
}

.agenda-thumb {
    width: 56px;
    height: 78px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.agenda-thumb-empty {
    border: 1px dashed #ccc;
    box-shadow: none;
}

.agenda-main {
    min-width: 0;
}

.agenda-title-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.agenda-title-line h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 600;
}

.agenda-location {
    margin-top: 0.35rem;
}

.agenda-location strong {
    color: var(--text-color);
    font-size: 0.98rem;
}

.date-salle {
    margin: 0.15rem 0 0 0;
    font-size: 0.95rem;
    color: #666;
}

.date-full {
    margin: 0.2rem 0 0;
    color: #888;
    font-size: 0.9rem;
}

.date-status {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: #efefef;
    border: 1px solid #ddd;
    color: #666;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.agenda-action {
    display: flex;
    justify-content: flex-end;
}

.date-times {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.date-time {
    background: #f4f4f4;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
}

.btn-billetterie {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 0.75rem;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-billetterie:hover {
    background: #d4654e;
    transform: translateY(-1px);
}

.btn-billetterie-disabled {
    display: inline-flex;
    min-width: 112px;
    justify-content: center;
    padding: 0.75rem;
    background: #ccc;
    color: #666;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .affiche-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .affiche-summary h1 {
        font-size: 2rem;
    }

    .agenda-row {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 0.85rem 1rem;
        padding: 1rem;
    }

    .agenda-date {
        grid-column: 1;
        grid-row: 1;
        align-self: auto;
    }

    .agenda-thumb-wrap {
        display: block;
        grid-column: 1;
        grid-row: 2;
        width: 82px;
    }

    .agenda-thumb {
        width: 82px;
        height: 116px;
    }

    .agenda-main {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .agenda-title-line {
        flex-direction: column;
        gap: 0.45rem;
    }

    .date-times {
        justify-content: flex-start;
    }

    .agenda-action {
        grid-column: 2;
        justify-content: flex-start;
    }

    .btn-billetterie,
    .btn-billetterie-disabled {
        min-width: 104px;
    }
}

@media (max-width: 520px) {
    .contact-value {
        white-space: normal;
    }
}
