/* ============================================
   BRIGITTE BARDOU - STYLE.CSS
   Design dark/doré élégant pour site de théâtre
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales - Contraste amélioré */
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-card: #111111;
    --text-primary: #f5f5f5;
    --text-secondary: #d0d0d0;
    --text-muted: #888888;

    /* Couleurs dorées théâtre - Vraie couleur or */
    --accent: #c9a35a;
    --accent-hover: #ddb566;
    --accent-dark: #9d7a3e;
    --accent-light: #f5e6c8;

    /* Bordures avec éclat doré */
    --border-color: rgba(201, 163, 90, 0.2);
    --border-hover: rgba(201, 163, 90, 0.5);

    /* Ombres avec profondeur */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.9);
    --shadow-gold: 0 0 40px rgba(201, 163, 90, 0.25);
    --shadow-gold-intense: 0 0 60px rgba(201, 163, 90, 0.4);

    /* Transitions fluides */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 5px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 4px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 3px;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--accent-hover);
}

/* === UTILITAIRES === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

/* === HEADER / NAVIGATION === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.8rem 5%;
    transition: all var(--transition-slow);
    border-bottom: 1px solid var(--border-color);
}

header.scrolled {
    padding: 1rem 5%;
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--border-hover);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(201, 163, 90, 0.3);
    transition: all var(--transition-normal);
}

.logo-photo:hover {
    box-shadow: 0 0 30px rgba(201, 163, 90, 0.5);
    transform: scale(1.05);
}

.logo-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.logo:hover {
    color: var(--accent-hover);
    letter-spacing: 5px;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Menu mobile (burger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(201, 163, 90, 0.12) 0%, transparent 65%);
    animation: pulseGlow 12s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 200;
    letter-spacing: 8px;
    margin-bottom: 1.5rem;
    opacity: 0;
    color: var(--accent);
    animation: fadeInUp 1.2s ease 0.3s forwards;
    text-shadow: 0 0 40px rgba(201, 163, 90, 0.5), 0 0 80px rgba(201, 163, 90, 0.3);
    position: relative;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    letter-spacing: 3px;
    opacity: 0;
    font-weight: 300;
    animation: fadeInUp 1.2s ease 0.6s forwards;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 45px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDown 2.5s ease infinite;
}

@keyframes scrollDown {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 25px;
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.5;
    }
}

/* === SECTIONS GÉNÉRALES === */
section {
    padding: 6rem 5%;
    position: relative;
}

.page-hero {
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 8rem 5% 2.5rem;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 300;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 200;
    letter-spacing: 5px;
    margin-bottom: 4rem;
    color: var(--accent);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* === INTRO SECTION (Page d'accueil) === */
.intro-section {
    background: var(--bg-secondary);
    text-align: center;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* === BOUTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    border: 2px solid;
    border-radius: 4px;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-intense);
}

.btn-secondary {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-link {
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

.btn-link:hover::after {
    width: 100%;
}

.btn-pdf {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    padding: 0.8rem 2rem;
}

.btn-pdf:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* === CARTES DE PIÈCES === */
.plays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.play-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
}

.play-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, transparent, rgba(201, 163, 90, 0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.play-card:hover::before {
    opacity: 1;
}

.play-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold-intense);
}

.play-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.play-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6) 100%);
    opacity: 0.6;
    transition: opacity var(--transition-normal);
}

.play-card:hover .play-image::after {
    opacity: 0.2;
}

.play-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    filter: brightness(0.85);
}

.play-card:hover .play-image img {
    transform: scale(1.08);
    filter: brightness(1);
}

.play-info {
    padding: 2rem;
}

.play-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.play-category {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.play-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* === PIÈCES DÉTAILLÉES === */
.piece-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.piece-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 163, 90, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: all var(--transition-slow);
}

.piece-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold);
}

.piece-card:hover::after {
    width: 300px;
    height: 300px;
    opacity: 1.5;
}

.piece-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.piece-thumbnail {
    position: sticky;
    top: 2rem;
}

.piece-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
}

.piece-thumbnail a:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.piece-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.piece-thumbnail-placeholder span {
    font-size: 3rem;
    opacity: 0.4;
}

.piece-info {
    flex: 1;
}

.piece-detail-link {
    margin-top: 2rem;
    text-align: center;
}

.piece-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.piece-title {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.piece-category {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.piece-image {
    margin: 2rem 0;
    text-align: center;
}

.piece-image img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
}

.piece-image a:hover img {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.piece-content {
    line-height: 1.9;
}

.piece-resume {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.piece-actions {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.piece-companies {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    margin-top: 2rem;
}

.piece-companies h3 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.companies-list {
    list-style: none;
    padding: 0;
}

.companies-list li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.companies-list li:last-child {
    border-bottom: none;
}

.companies-list li::before {
    content: '▸ ';
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* === PAGE DETAIL PIECE === */
.piece-detail {
    padding: 8rem 5% 4rem;
    background: var(--bg-primary);
}

.piece-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.piece-visual {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.piece-poster {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.piece-poster-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-color) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.piece-poster-placeholder span {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.piece-info-detail h1.piece-title-detail {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.piece-category-detail {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.piece-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin-bottom: 3rem;
}

.meta-item {
    font-size: 1rem;
    color: var(--text-secondary);
}

.meta-item strong {
    color: var(--accent);
    font-weight: 600;
}

.piece-description {
    margin-bottom: 3rem;
}

.piece-description h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.piece-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.piece-companies-detail {
    margin-bottom: 3rem;
}

.piece-companies-detail h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.companies-list-detail {
    list-style: none;
    padding: 0;
}

.companies-list-detail li {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent);
    transition: var(--transition-normal);
}

.companies-list-detail li:hover {
    transform: translateX(5px);
    background: var(--bg-primary);
}

/* Distribution detail */
.piece-distribution-detail {
    margin-bottom: 3rem;
}

.piece-distribution-detail h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.distribution-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.distribution-type {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.distribution-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.distribution-list li {
    font-size: 1.1rem;
}

.distribution-list li strong {
    color: var(--accent);
}

.piece-actions-detail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
    text-align: center;
    padding: 5rem 5%;
}

.cta-section h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1rem;
    font-size: 1.05rem;
}

.cta-section .note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* === FORMULAIRE DE CONTACT === */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.contact-item h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* === FLASH MESSAGES === */
.flash-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1.5rem 2rem;
    border-radius: 6px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.flash-message.success {
    background: #28a745;
    color: white;
    border: 1px solid #1e7e34;
}

.flash-message.error {
    background: #dc3545;
    color: white;
    border: 1px solid #bd2130;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* === PAGE POÉSIE === */
.poesie-section {
    padding: 4rem 5%;
}

.poesie-container {
    max-width: 900px;
    margin: 0 auto;
}

.poesie-introduction {
    text-align: center;
    margin-bottom: 4rem;
}

.poesie-introduction blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 2;
}

.poesie-recueil {
    background: rgba(212, 175, 55, 0.05);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 4rem;
    text-align: center;
}

.recueil-label {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.recueil-title {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.poesies-list {
    margin-bottom: 4rem;
}

.poesie-item {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    margin-bottom: 3rem;
}

.poesie-item.has-image {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.poesie-image {
    width: 100%;
}

.poesie-image img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.poesie-title {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.poesie-text {
    color: var(--text-secondary);
    line-height: 2.2;
    font-size: 1.05rem;
}

.poesie-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
}

.poesie-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive poésie */
@media (max-width: 768px) {
    .poesie-item.has-image {
        grid-template-columns: 1fr;
    }

    .poesie-image {
        max-width: 250px;
        margin: 0 auto 1.5rem;
    }

    .poesie-introduction blockquote {
        font-size: 1.1rem;
    }
}

/* === FOOTER === */
footer {
    background: var(--bg-secondary);
    padding: 3.5rem 5%;
    text-align: center;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

footer a {
    color: var(--accent);
    transition: var(--transition-normal);
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

footer a:hover {
    color: var(--accent-hover);
}

footer a:hover::after {
    width: 100%;
}

.footer-credits {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.heart {
    color: var(--accent);
    animation: heartbeat 2s ease infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* === PAGE GALERIE - MOSAIQUE === */
.galerie-section {
    padding: 4rem 5%;
}

.galerie-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.galerie-item {
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.galerie-link {
    display: block;
    position: relative;
    cursor: pointer;
}

.galerie-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.15, 0, 0.35, 1), filter 0.4s ease;
}

.galerie-item:hover .galerie-link img {
    transform: scale(1.03);
    filter: brightness(0.8);
}

.galerie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.galerie-caption {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.galerie-caption small {
    font-size: 0.75rem;
    opacity: 0.7;
    color: var(--accent);
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-info {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.lightbox-info small {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--accent);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.7;
    transition: opacity var(--transition-normal);
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
    padding: 1rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .nav-links {
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* Galerie : 2 colonnes sur tablette */
    .galerie-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Menu mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        border-left: 1px solid var(--border-color);
        transition: right var(--transition-normal);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
    }
    
    /* Sections */
    section {
        padding: 4rem 5%;
    }
    
    .page-hero {
        padding: 6rem 5% 2rem;
    }
    
    .plays-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .piece-card {
        padding: 2rem;
    }

    .piece-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .piece-thumbnail {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Detail page responsive */
    .piece-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .piece-visual {
        position: static;
    }

    .piece-poster {
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .piece-info-detail h1.piece-title-detail {
        font-size: 2rem;
    }

    .piece-actions-detail {
        flex-direction: column;
    }

    .piece-actions {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-wrapper {
        gap: 0.8rem;
    }

    .logo-photo {
        width: 50px;
        height: 50px;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .logo-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .flash-message {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    /* Galerie : 1 colonne sur mobile */
    .galerie-mosaic {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: 4px;
    }

    .logo-photo {
        width: 45px;
        height: 45px;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .logo-subtitle {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .contact-form {
        padding: 2rem;
    }

    .piece-info-detail h1.piece-title-detail {
        font-size: 1.75rem;
    }

    .piece-meta {
        flex-direction: column;
        gap: 1rem;
    }

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

/* === DIAPORAMA PAGE D'ACCUEIL === */
.home-slider {
    padding: 10rem 5% 4rem;
    background: var(--bg-primary);
    margin-top: 0;
}

.home-slider .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Layout flex : miniatures a gauche, diaporama a droite */
.slider-container {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
}

/* === COLONNE MINIATURES (gauche) === */
.slider-thumbnails {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 110px;
    min-width: 110px;
    flex-shrink: 0;
}

.thumbnail {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    opacity: 0.5;
    position: relative;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: all var(--transition-normal);
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
    border-color: var(--accent);
    opacity: 1;
    box-shadow: var(--shadow-gold);
}

.thumbnail.active::after {
    background: transparent;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === DIAPORAMA PRINCIPAL (droite) === */
.slider-main {
    position: relative;
    flex: 1;
    /* Ratio 16:9 identique aux images 800x450 = pas de crop */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: var(--shadow-lg);
}

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

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.05);
    will-change: transform;
    transform-origin: center center;
}

/* Ken Burns : transition longue et fluide, geree par JS */
.slide.kenburns img {
    transition: transform 10s cubic-bezier(0.15, 0.0, 0.35, 1.0);
}

/* === RESPONSIVE DIAPORAMA === */
@media (max-width: 768px) {
    .home-slider {
        padding: 8rem 3% 3rem;
    }
    /* Sur tablette/mobile : miniatures en ligne sous le diaporama */
    .slider-container {
        flex-direction: column;
    }
    .slider-thumbnails {
        flex-direction: row;
        width: 100%;
        min-width: unset;
        gap: 6px;
        order: 2;
    }
    .thumbnail {
        flex: 1;
        aspect-ratio: 16/9;
    }
    .slider-main {
        order: 1;
    }
}

@media (max-width: 480px) {
    .home-slider {
        padding: 7rem 2% 2rem;
    }
}

/* ============================================
   PAGE FLORILÈGES
   ============================================ */
.florilege-hero .page-subtitle {
    max-width: 850px;
    margin: 1.5rem auto 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: center;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
}

@media (max-width: 768px) {
    .florilege-hero .page-subtitle {
        font-size: 0.92rem;
        line-height: 1.55;
        text-align: left;
    }
}

.florilege-quotes {
    padding: 3rem 5%;
}

.florilege-quotes .container {
    max-width: 800px;
    margin: 0 auto;
}

.florilege-quote {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    font-weight: 300;
    padding: 1rem 0;
    border: none;
    margin: 0;
}

.florilege-quote cite {
    display: block;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: var(--accent);
    font-style: normal;
    letter-spacing: 1px;
}

.florilege-line {
    max-width: 120px;
    margin: 2rem auto;
    border: none;
    border-top: 1px solid var(--accent);
    opacity: 0.4;
}

@media (max-width: 768px) {
    .florilege-quote {
        font-size: 1.1rem;
    }
    .florilege-quotes {
        padding: 2rem 5%;
    }
}

/* ============================================
   PAGES LÉGALES (Mentions légales, RGPD, etc.)
   Wrapper : .legal-page autour du contenu éditable
   ============================================ */
.legal-page {
    padding: 6rem 5%;
}

.legal-page .legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-page .legal-box {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.legal-page .legal-box h2 {
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-page .legal-box h2:first-child {
    margin-top: 0;
}

.legal-page .legal-box p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-page .legal-box ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-page .legal-box ul li {
    margin-bottom: 0.4rem;
}

.legal-page .legal-back {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 4rem 5%;
    }
    .legal-page .legal-box {
        padding: 2rem;
    }
    .legal-page .legal-box h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }
}

/* ============================================
   PAGE THÉÂTRE - Texte d'introduction
   Affiché sous le titre dans le .page-hero
   ============================================ */
.theatre-hero .theatre-intro {
    max-width: 850px;
    margin: 1.5rem auto 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: center;
}

.theatre-hero .theatre-intro p {
    margin-bottom: 0.85rem;
}

.theatre-hero .theatre-intro p:last-child {
    margin-bottom: 0;
}

.theatre-hero .theatre-intro a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.theatre-hero .theatre-intro a:hover {
    border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
    .theatre-hero .theatre-intro {
        font-size: 0.92rem;
        line-height: 1.55;
        text-align: left;
    }
}