/* ============================================
   MAGICIEN FOU - STYLES COMMUNS
   ============================================ */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gold: #A7933D;
    --text: #2d3748;
    --white: #ffffff;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');

/* Base */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes float {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1.5);
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

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

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

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO SECTION - BASE
   ============================================ */
.hero {
    min-height: 100vh;
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-color: #0a0a0a;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    top: 0;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    padding: 2rem;
    animation: fadeInUp 1s ease;
    position: relative;
    margin-bottom: 20vh;
    contain: layout style paint;
}

.hero-image-mobile {
    display: none;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    white-space: nowrap;
    display: table;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: auto;
}

.hero h1 span {
    color: var(--primary);
    display: block;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin-top: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    position: relative;
    padding: 0 2rem;
}

.hero-quote .quote-text {
    position: relative;
    display: inline;
}

.hero-quote .quote-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    position: absolute;
    top: -5px;
    left: -32px;
    opacity: 0.5;
    line-height: 1;
}

.quote-end::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
    margin-left: -4px;
    line-height: 1;
    vertical-align: -14px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.6);
    background: var(--primary-dark);
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: white;
    opacity: 0.7;
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section {
    padding: 5rem 2rem;
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* ============================================
   PAGE ACCUEIL - GRILLE PRESTATIONS
   ============================================ */
.prestations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.prestation-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.prestation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.prestation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.prestation-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prestation-card:hover .prestation-image {
    transform: scale(1.05);
}

.prestation-content {
    padding: 1.5rem;
}

.prestation-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.prestation-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.prestation-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.prestation-card:hover .prestation-arrow {
    gap: 1rem;
}

/* ============================================
   SPECTACLES CARDS (Pages spécifiques)
   ============================================ */
.spectacles-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.spectacle-showcase-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.spectacle-showcase-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.15);
}

.spectacle-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.spectacle-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spectacle-showcase-card:hover .spectacle-image {
    transform: scale(1.05);
}

.spectacle-content {
    padding: 2rem;
}

.spectacle-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spectacle-number-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.5rem;
    box-shadow: 0 2px 8px rgba(255,107,53,0.4);
    flex-shrink: 0;
    line-height: 1;
}

.spectacle-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.spectacle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: var(--light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   KIDS SECTION
   ============================================ */
.kids-section {
    background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
    position: relative;
}

.kids-header {
    text-align: center;
    margin-bottom: 4rem;
}

.kids-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.kids-header h2::before,
.kids-header h2::after {
    content: '✨';
    font-size: 2rem;
}

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

.kids-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.duration-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

/* ============================================
   CLOSE UP SECTION
   ============================================ */
.closeup-section {
    background: white;
}

.closeup-image-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    aspect-ratio: 1 / 1;
}

.closeup-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.closeup-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.closeup-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* ============================================
   ANIMATION SECTION
   ============================================ */
.animation-section {
    position: relative;
}

.animation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.animation-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.animation-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.animation-image img {
    width: 100%;
    height: auto;
    display: block;
}

.animation-text h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.animation-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events-section {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
}

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

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.event-card.birthday::before {
    background: var(--primary);
}

.event-card.wedding::before {
    background: var(--gold);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.event-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center 30%;
}

.event-card-content {
    padding: 2rem;
}

.event-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text {
    font-size: 1.1rem;
}

.contact-text strong {
    display: block;
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.map-container {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 20px;
}

/* Formulaire de contact */
.contact-form {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 20px;
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,53,0.4);
}

/* ============================================
   REFERENCES SECTION
   ============================================ */
.references {
    background: white;
    padding: 4rem 2rem;
}

.references-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 3rem;
    opacity: 0.8;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ref-item {
    padding: 1.5rem;
    text-align: center;
    background: var(--light);
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--text);
}

.ref-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #0f0f1e;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ============================================
   MAGIC PARTICLES
   ============================================ */
.magic-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: float 10s infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .closeup-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .closeup-image-container {
        margin: 0 auto 2rem;
    }
    
    .animation-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 1.3rem;
        gap: 0.3rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .nav-links a::after {
        bottom: 0;
    }

    /* Hero mobile */
    .hero {
        background-image: none !important;
        align-items: center;
        padding-bottom: 2rem;
        min-height: auto;
        overflow: visible;
    }

    .hero-content {
        margin-bottom: 0;
        padding-top: 100px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image-mobile {
        display: block;
        width: 55vw;
        max-width: 420px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 50%;
        margin: 0 auto 1rem;
        border: 4px solid var(--primary);
        box-shadow: 0 15px 40px rgba(255,107,53,0.35);
        transform: translateY(-50px);
    }

    .hero h1 {
        font-size: 1.7rem;
        white-space: normal;
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero h1 span {
        font-size: 1rem;
        letter-spacing: 1px;
        display: block;
        text-align: center;
        margin-top: 0.5rem;
    }

    .hero-quote {
        font-size: 1rem;
        padding: 0 1rem;
        text-align: center;
        width: 100%;
    }

    .hero-quote .quote-text::before {
        font-size: 2rem;
        top: -15px;
        left: -20px;
    }

    .quote-end::after {
        font-size: 2rem;
        margin-left: 0px;
        vertical-align: 0px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Grids mobile */
    .events-grid,
    .spectacles-showcase,
    .spectacles-grid,
    .prestations-grid {
        grid-template-columns: 1fr;
    }

    .animation-content {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .animation-content .animation-image {
        order: -1;
        transform: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .animation-content .animation-image:hover {
        transform: none;
    }

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

    .closeup-image-container {
        max-width: 280px;
        aspect-ratio: 1 / 1;
    }

    .event-card-image {
        height: 200px;
    }

    .kids-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .kids-header h2::before,
    .kids-header h2::after {
        font-size: 1.5rem;
    }

    /* Contact mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        min-height: 300px;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .spectacle-showcase-card,
    .event-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .spectacle-image {
        height: 220px;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ref-item {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
        gap: 0.2rem;
    }

    .hero-content {
        padding-top: 90px;
    }

    .hero h1 {
        font-size: 1.4rem;
        white-space: normal;
        display: block;
        text-align: center;
        width: 100%;
    }

    .hero h1 span {
        font-size: 0.9rem;
        letter-spacing: 1px;
        display: block;
        text-align: center;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .spectacle-content,
    .event-card-content {
        padding: 1.5rem;
    }

    .spectacle-number-inline {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .animation-content .animation-image {
        margin-bottom: 1.5rem;
    }
    
    .animation-content .animation-image {
        max-width: 100%;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .contact-text {
        font-size: 0.95rem;
    }
}

/* Safari hacks */
@supports (-webkit-touch-callout: none) and (not (translate: none)) {
    .hero h1 {
        display: table;
        white-space: nowrap;
        width: auto;
        max-width: 100%;
    }
    
    .hero-content {
        width: 100%;
        flex: none;
    }
}

@supports (contain: layout) {
    .hero-content {
        contain: layout style paint;
    }
}