/*
Theme Name: Dou Events
Theme URI: https://douevents.fr
Description: Thème WordPress sur mesure pour Dou Events - Animation événementielle en Île-de-France
Author: Leïla - Développeuse WordPress
Version: 1.0
*/

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

:root {
    --pink:       #E8768A;
    --pink-light: #F5B8C4;
    --pink-pale:  #FDE8ED;
    --blue:       #7BA7D4;
    --blue-light: #B8D4EE;
    --blue-pale:  #EAF3FB;
    --yellow:     #F5C842;
    --yellow-pale:#FDF6D3;
    --bg:         #FFF9F7;
    --white:      #ffffff;
    --dark:       #2D2D2D;
    --gray:       #6B7280;
    --gray-light: #F3F4F6;
    --radius:     16px;
    --radius-sm:  8px;
    --shadow:     0 4px 24px rgba(232, 118, 138, 0.12);
    --shadow-lg:  0 12px 40px rgba(232, 118, 138, 0.2);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   SKIP LINK (ACCESSIBILITÉ)
============================================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--pink);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER & NAVIGATION
============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 249, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 118, 138, 0.15);
    padding: 0 2rem;
}

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

.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink) 0%, var(--blue) 60%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.site-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
    transition: color var(--transition);
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink);
    border-radius: 2px;
    transition: width var(--transition);
}

.site-nav a:hover { color: var(--pink); }
.site-nav a:hover::after { width: 100%; }

.nav-cta {
    background: linear-gradient(135deg, var(--pink), #D4618A);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.9; color: white !important; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
    position: relative;
    text-align: center;
    padding: 5rem 2rem 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232, 118, 138, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(123, 167, 212, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 80%, rgba(245, 200, 66, 0.14) 0%, transparent 50%);
    z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.hero-badge {
    display: inline-block;
    background: var(--pink-pale);
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--dark);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--pink), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--pink), #D4618A);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(232, 118, 138, 0.35);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 118, 138, 0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--dark);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--gray-light);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--pink-light);
    color: var(--pink);
    transform: translateY(-2px);
}

/* Floating bubbles */
.hero-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.bubble-1 { width: 80px; height: 80px; background: var(--pink-pale); top: 15%; left: 8%; animation-delay: 0s; }
.bubble-2 { width: 50px; height: 50px; background: var(--blue-pale); top: 30%; right: 10%; animation-delay: 1.5s; }
.bubble-3 { width: 65px; height: 65px; background: var(--yellow-pale); bottom: 20%; left: 15%; animation-delay: 3s; }
.bubble-4 { width: 40px; height: 40px; background: var(--pink-pale); bottom: 35%; right: 8%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(5deg); }
    66% { transform: translateY(8px) rotate(-3deg); }
}

/* ============================================================
   SECTION GÉNÉRIQUE
============================================================ */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ============================================================
   PRESTATIONS GRID
============================================================ */
#prestations { background: transparent; }

.prestations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.prestation-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.prestation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.prestation-card .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.card-body label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body select {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    color: var(--dark);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color var(--transition);
}

.card-body select:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(232, 118, 138, 0.12);
}

.btn-add {
    margin-top: auto;
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(135deg, var(--pink), #D4618A);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 118, 138, 0.4);
}

/* ============================================================
   PANIER (RÉCAPITULATIF)
============================================================ */
.panier-section {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 3rem auto;
    max-width: 700px;
}

.panier-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#liste-prestations {
    min-height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gray-light);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

#liste-prestations li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #E5E7EB;
}

#liste-prestations li:last-child { border-bottom: none; }

.panier-total {
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--pink);
    padding-top: 0.5rem;
}

#prix-total { font-size: 1.3rem; }

/* ============================================================
   SECTION RÉSERVATION (BOOKLY)
============================================================ */
#reservation {
    background: linear-gradient(135deg, var(--pink-pale) 0%, var(--blue-pale) 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin: 0 2rem 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#reservation .section-header { margin-bottom: 2.5rem; }

/* Style du formulaire Bookly */
.bookly-form-container {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

/* Override Bookly styles */
.bookly-form .bookly-btn,
.bookly-form button[type="submit"] {
    background: linear-gradient(135deg, var(--pink), #D4618A) !important;
    border-radius: 50px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 0.875rem 2rem !important;
    transition: var(--transition) !important;
}

/* ============================================================
   GALERIE / CAROUSEL
============================================================ */
#galerie {
    background: var(--gray-light);
    padding: 5rem 2rem;
}

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

.carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.carousel-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(232, 118, 138, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    cursor: default;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink-light), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    max-width: 220px;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink-light);
    margin-bottom: 1rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-contact a:hover { color: var(--pink-light); }

.social-links { display: flex; flex-direction: column; gap: 0.75rem; }

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.social-link:hover { color: var(--pink-light); }

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.social-icon.snap { background: rgba(255, 252, 0, 0.15); color: #FFFC00; }
.social-icon.insta { background: rgba(232, 118, 138, 0.2); color: var(--pink-light); }
.social-icon.fb { background: rgba(123, 167, 212, 0.2); color: var(--blue-light); }

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.elyaweb-credit {
    color: rgba(255,255,255,0.6);
    text-decoration: underline;
    cursor: pointer;
    pointer-events: auto;
    transition: color var(--transition);
}
.elyaweb-credit:hover {
    color: var(--pink-light);
}

/* ============================================================
   BOUTON SUPPRIMER (PANIER)
============================================================ */
.btn-remove {
    background: transparent;
    border: 1.5px solid #FCA5A5;
    color: #EF4444;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-remove:hover {
    background: #FEE2E2;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .prestations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .carousel {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 1.5rem 2rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-radius: 0 0 var(--radius) var(--radius); }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 1.25rem; }
    .nav-toggle { display: flex; }

    .hero { padding: 3rem 1.5rem 4rem; }

    .prestations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand { grid-column: span 1; }

    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
    .prestations-grid { grid-template-columns: 1fr; }
    .carousel { grid-template-columns: 1fr 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    #reservation { margin: 0 0 3rem; border-radius: 0; }
}

/* ============================================================
   FORMULAIRE DE CONTACT (fallback Bookly)
============================================================ */
.dou-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dou-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dou-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dou-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.3px;
}

.dou-form-group input,
.dou-form-group textarea {
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--dark);
    background: #FAFAFA;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.dou-form-group input:focus,
.dou-form-group textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(232, 118, 138, 0.12);
    background: white;
}

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

.dou-form-success {
    background: #D1FAE5;
    color: #065F46;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    text-align: center;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .dou-form-row { grid-template-columns: 1fr; }
}
