:root {
    --color-bg: #faf6f1;
    --color-surface: #ffffff;
    --color-text: #2b2320;
    --color-muted: #6b5f58;
    --color-primary: #7a1f2b;
    --color-primary-dark: #5c1620;
    --color-accent: #c99a3f;
    --color-border: #e7ddd2;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(43, 35, 32, 0.08);
    --font-display: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}
/* Pied de page toujours collé en bas, même sur une page courte. */
.site-body { min-height: 100vh; display: flex; flex-direction: column; }
.site-body > main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.wrap--wide {
    max-width: 1600px;
}

/* Header / nav */
.site-header {
    background: var(--color-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: bold;
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.main-nav {
    display: flex;
    gap: 24px;
}
.main-nav a {
    color: #fff;
    opacity: 0.85;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
    text-decoration: none;
    border-bottom-color: var(--color-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

@media (max-width: 780px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .main-nav.open { max-height: 300px; }
    .main-nav a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav a.active { border-bottom-color: var(--color-accent); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn--accent { background: var(--color-accent); color: #2b2320; }
.btn--accent:hover { background: #b7872f; }
.btn--ghost { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn--small { padding: 6px 14px; font-size: 0.9rem; }
.btn--danger { background: #a3312f; }
.btn--danger:hover { background: #822523; }

/* Sections */
.section { padding: 56px 0; }
.section--alt { background: var(--color-surface); }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title__eyebrow {
    display: block;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Hero / next date */
.hero {
    background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: 64px 0;
}
.hero__inner { text-align: center; }
.hero h1 { font-size: 2.2rem; color: #fff; }
.hero__date { color: var(--color-accent); font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.hero p { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .btn { margin-top: 12px; }

.hero__poster {
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.hero__poster--centre {
    display: block;
    margin: 0 auto 24px;
    max-width: 260px;
    width: 100%;
    height: auto;
}
.hero__flex {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}
.hero__flex-text { flex: 1; min-width: 0; }
.hero__flex-text p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.hero__flex .hero__poster {
    flex-shrink: 0;
    width: 220px;
    height: auto;
}
@media (max-width: 700px) {
    .hero__flex {
        flex-direction: column;
        text-align: center;
    }
    .hero__flex .hero__poster { width: 200px; margin: 0 auto; }
}

.hero-layout--split {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 32px;
}
.hero-layout--split .hero-layout__event {
    justify-self: center;
}
.hero-layout--split .hero-layout__dates {
    max-width: 280px;
    justify-self: end;
}
.hero-layout__event {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 16px;
}
.hero-layout__dates h2 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.date-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.date-list__item {
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.date-list__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}
.date-list__date {
    font-weight: 700;
    font-size: 1.05rem;
}
.date-list__venue { opacity: 0.9; }
.date-list__show a { color: var(--color-accent); }
.date-list__soldout {
    text-transform: uppercase;
    font-style: italic;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 4px;
}

@media (max-width: 800px) {
    .hero-layout--split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-layout--split .hero-layout__event {
        max-width: none;
        justify-self: stretch;
    }
    .hero-layout--split .hero-layout__dates {
        max-width: none;
        justify-self: stretch;
    }
    .hero-layout__dates { text-align: center; }
}

.card-grid--single {
    max-width: 420px;
    margin: 0 auto;
}

/* Encart */
.encart {
    max-width: 900px;
    margin: -36px auto 0;
    background: var(--color-surface);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    text-align: center;
    position: relative;
}
.encart h2 { margin-bottom: 8px; }

/* Cards grid (dernières prestations) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.card img { width: 100%; height: 180px; object-fit: cover; }
.card__body { padding: 16px; }
.card__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card__date { color: var(--color-muted); font-size: 0.85rem; }

/* About page */
.about-logo {
    display: block;
    width: 240px;
    height: 240px;
    margin: 0 auto 24px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}
.about-block { margin-bottom: 40px; }
.about-block h2 {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 4px;
}
.chiffres {
    background: var(--color-primary);
    color: #fff;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 1.1rem;
}

/* Gallery */
.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.show-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    color: #fff;
}
.show-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.show-card:hover img { transform: scale(1.05); }
.show-card__label {
    position: absolute; inset: auto 0 0 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.show-card__label h3 { color: #fff; margin: 0; }
.show-card__link { position: absolute; inset: 0; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.photo-grid a { border-radius: 8px; overflow: hidden; }
.photo-grid img { width: 100%; height: 160px; object-fit: cover; }

.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center; justify-content: center;
    z-index: 200;
    padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; cursor: pointer; }
.lightbox__close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 2rem; background: none; border: none; cursor: pointer;
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
@media (max-width: 600px) {
    .lightbox__nav { width: 44px; height: 44px; font-size: 2.2rem; }
    .lightbox__prev { left: 4px; }
    .lightbox__next { right: 4px; }
}

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    max-width: 640px;
    margin: 0 auto;
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.contact-layout .form-card {
    width: 600px;
    max-width: 90%;
    /* 33% on wide screens, but never enough to push past the column
       (would overlap the logo) - shrinks gracefully on narrower desktops. */
    margin-left: max(0px, min(33%, calc(100% - 600px)));
}
.contact-layout__logo {
    display: flex;
    justify-content: center;
}
.contact-layout__logo .about-logo {
    width: 320px;
    height: 320px;
}
@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }
    .contact-layout .form-card {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }
    .contact-layout__logo .about-logo {
        width: 140px;
        height: 140px;
        margin-bottom: 0;
    }
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert--success { background: #e4f3e8; color: #1e5b31; }
.alert--error { background: #fbe6e5; color: #7a2622; }

/* Footer */
.site-footer {
    background: #241a17;
    color: #cfc3bc;
    padding: 32px 0;
    margin-top: 40px;
}
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}
.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-footer__logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}
.site-footer__brand span { display: block; font-size: 0.85rem; opacity: 0.8; }
.site-footer__social a,
.site-footer__links a {
    color: #f1e9e3;
    margin-right: 16px;
}

/* Admin */
.admin-body { background: #f2f0ee; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: var(--color-primary-dark);
    color: #fff;
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-sidebar a {
    display: block;
    color: #f1e9e3;
    padding: 10px 24px;
    opacity: 0.85;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,0.08);
    opacity: 1;
    text-decoration: none;
}
.admin-sidebar h2 { color: #fff; font-size: 1.1rem; padding: 0 24px 16px; }
.admin-main { flex: 1; padding: 32px; max-width: 900px; }
.admin-main h1 { margin-bottom: 24px; }
.admin-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.admin-table img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.inline-form { display: inline; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}
.color-swatch {
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    outline: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}
.color-swatch:hover { outline-color: var(--color-muted); transform: scale(1.08); }
.form-field .color-wheel {
    width: 46px;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: none;
    cursor: pointer;
    margin-left: 6px;
}
.theme-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    transition: background 0.15s ease;
}
.backup-codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.backup-codes code {
    display: block;
    text-align: center;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    letter-spacing: 0.05em;
}
.theme-preview__btn {
    padding: 10px 22px;
    border-radius: 999px;
    color: #2b2320;
    font-weight: 600;
    transition: background 0.15s ease;
}

@media (max-width: 780px) {
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 12px 0; }
    .admin-sidebar h2 { display: none; }
    .admin-sidebar a { padding: 8px 16px; white-space: nowrap; }
    .admin-main { padding: 20px; }
}
