/*
Theme Name: Opera Palace
Theme URI: https://opera-palace.com
Description: Thème premium pour L'Opera Palace - Votre destination idéale pour tous vos événements.
Version: 1.1.0
Author: Opera Palace
Text Domain: opera-palace
*/

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

/* ===========================
   CSS RESET
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #C4A35A;
    --gold-light: #D4B86A;
    --gold-dark: #A8893E;
    --dark: #0a0a0a;
    --dark-light: #141414;
    --dark-card: #1a1a1a;
    --overlay: rgba(0,0,0,0.6);
    --text-muted: rgba(255,255,255,0.6);
    --text-light: rgba(255,255,255,0.85);
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    color: white;
    line-height: 1.6;
}

/* ===========================
   SECTION COMMON STYLES
   =========================== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 0.5rem;
    color: white;
}

.section-title span {
    color: var(--gold);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 3.5rem;
}

.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 1.5rem;
}

/* ===========================
   TOP CONTACT BAR
   =========================== */
.top-bar {
    background: linear-gradient(90deg, #111, #1a1a1a);
    border-bottom: 1px solid rgba(196,163,90,0.2);
    padding: 8px 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.admin-bar .top-bar {
    top: 32px;
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 1.5rem;
}

.top-bar-left a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left a i {
    color: var(--gold);
    font-size: 0.7rem;
}

.top-bar-left a:hover {
    color: var(--gold);
}

.top-bar-right {
    display: flex;
    gap: 1rem;
}

.top-bar-right a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
}

.top-bar-right a:hover {
    color: var(--gold);
    transform: scale(1.15);
}

/* ===========================
   FLOATING PHONE BUTTON
   =========================== */
.floating-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9000;
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(196,163,90,0.4);
    transition: all 0.3s var(--transition);
    animation: phonePulse 2s infinite;
}

.floating-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(196,163,90,0.6);
}

@keyframes phonePulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(196,163,90,0.4); }
    50% { box-shadow: 0 4px 30px rgba(196,163,90,0.7), 0 0 0 10px rgba(196,163,90,0.1); }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.admin-bar .hero-section {
    height: calc(100vh - 32px);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    max-width: 200px;
    margin-bottom: 2rem;
    animation: fadeInDown 1.2s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: white;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
    display: inline-block;
    padding: 18px 60px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.hero-cta:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196,163,90,0.3);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-social {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 1.5rem;
}

.hero-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
}

.hero-social a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196,163,90,0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    border-right: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery-section {
    padding: 100px 5%;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 3 / 2;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item-overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 3;
    color: var(--gold);
    font-size: 2rem;
    transition: transform 0.4s var(--transition);
}

.gallery-item:hover .gallery-zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s;
    background: none;
}

.lightbox-close:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 15px;
    transition: all 0.3s;
    background: none;
    border: none;
}

.lightbox-nav:hover {
    color: var(--gold);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===========================
   MAP / LOCALISATION SECTION
   =========================== */
.map-section {
    padding: 100px 5%;
    background: var(--dark-light);
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.map-info {
    padding: 2rem;
}

.map-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.map-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.map-info-item i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 3px;
    min-width: 20px;
}

.map-info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.map-info-item a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.map-info-item a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.map-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.map-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.map-social-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196,163,90,0.2);
}

.map-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.4s ease;
}

.map-embed:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* ===========================
   RESERVATION FORM MODAL
   =========================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--dark-card);
    border: 1px solid rgba(196,163,90,0.2);
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 550px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.4s var(--transition);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--gold);
}

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

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(196,163,90,0.05);
    box-shadow: 0 0 0 3px rgba(196,163,90,0.1);
}

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

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4A35A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

.form-group select option {
    background: var(--dark-card);
    color: white;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    margin-top: 0.5rem;
}

.form-submit:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196,163,90,0.3);
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--dark);
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    max-width: 100px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ===========================
   KEYFRAME ANIMATIONS
   =========================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-15px); }
    60% { transform: rotate(45deg) translateY(-7px); }
}

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .map-embed iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-logo { max-width: 150px; }
    .hero-cta { padding: 14px 40px; }
    .hero-social { bottom: 20px; }
    .scroll-indicator { bottom: 60px; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-section,
    .map-section {
        padding: 70px 5%;
    }
    
    .modal-content {
        padding: 35px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .lightbox-nav {
        font-size: 1.5rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-logo { max-width: 120px; }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-social a {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}
