/*
Theme Name: Oser Parler Theme
Theme URI: https://parler-espagnol.fr
Author: Antigravity
Description: Thème sur-mesure pour Oser Parler Espagnol, migré depuis React.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oser-parler
*/

:root {
    --terracotta: 12 65% 52%;
    --terracotta-light: 12 70% 62%;
    --terracotta-dark: 12 60% 42%;
    --beige: 35 40% 97%;
    --beige-dark: 35 30% 92%;
    --warm-brown: 20 25% 15%;
    --olive: 145 25% 42%;
    --olive-light: 145 30% 85%;
    --warm-grey: 25 10% 50%;

    --shadow-soft: 0 4px 24px -6px hsl(20 25% 15% / 0.08);
    --shadow-card: 0 12px 40px -12px hsl(20 25% 15% / 0.12);
    --shadow-elevated: 0 24px 60px -16px hsl(20 25% 15% / 0.15);
    --shadow-cta: 0 8px 24px -4px hsl(12 65% 52% / 0.4);
    --shadow-glow: 0 0 60px hsl(12 65% 52% / 0.2);
}

.bg-warm-brown {
    background-color: hsl(20 25% 15%) !important;
}

.text-warm-brown {
    color: hsl(20 25% 15%) !important;
}

/* Base styles / Reset */
#mobile-menu-open {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

#mobile-menu-open span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #2b2520 !important;
    /* warm-brown */
    border-radius: 10px;
}

#mobile-menu-open span:last-child {
    width: 16px;
    align-self: flex-end;
}

@media (min-width: 768px) {
    #mobile-menu-open {
        display: none !important;
    }
}

.blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-morph 8s ease-in-out infinite;
}

.blob-2 {
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    animation: blob-morph 10s ease-in-out infinite reverse;
}

@keyframes blob-morph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 2s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 30px hsl(12 65% 52% / 0.3);
    }

    50% {
        box-shadow: 0 0 60px hsl(12 65% 52% / 0.5);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: transform 0.7s;
}

.shine-effect:hover::before {
    transform: translateX(100%);
}

/* Global button hover fix */
.bg-terracotta:hover,
.hover\:bg-terracotta-dark:hover,
.hover\:bg-terracotta:hover,
button[class*="bg-terracotta"]:hover,
a[class*="bg-terracotta"]:hover {
    color: white !important;
}

.bg-terracotta {
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.bg-terracotta:active {
    transform: scale(0.98);
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.premium-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
    overflow: visible !important;
}

/* Mobile Menu Animations */
#mobile-menu-overlay.invisible {
    pointer-events: none;
}

.mobile-nav-link {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-overlay:not(.invisible) .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu-overlay:not(.invisible) .mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

#mobile-menu-overlay:not(.invisible) .mobile-nav-link:nth-child(2) {
    transition-delay: 0.2s;
}

#mobile-menu-overlay:not(.invisible) .mobile-nav-link:nth-child(3) {
    transition-delay: 0.3s;
}

#mobile-menu-overlay:not(.invisible) .mobile-nav-link:nth-child(4) {
    transition-delay: 0.4s;
}

#mobile-menu-open:hover span:nth-child(3) {
    width: 1.5rem;
}

.premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(199, 58, 25, 0.05) 0%, transparent 50%, rgba(46, 107, 72, 0.05) 100%);
}

/* Booking Page Specific Styles */
.booking-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.booking-input:focus {
    outline: none;
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 2px rgba(214, 90, 61, 0.1);
}

.pack-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pack-card.selected {
    transform: scale(1.05);
    z-index: 10;
}

/* Gutenberg Blocks Styling */
.entry-content>* {
    margin-bottom: 2rem;
}

.entry-content h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--color-foreground);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.entry-content h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-foreground);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.entry-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.75);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-terracotta);
    padding: 1.5rem 2rem;
    background: var(--color-secondary);
    font-style: italic;
    font-size: 1.25rem;
    border-radius: 0 1rem 1rem 0;
    margin: 3rem 0;
}

.entry-content figure {
    margin: 3rem 0;
}

.entry-content figure img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-card);
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-top: 1rem;
    font-style: italic;
}

.entry-content .wp-block-columns {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.entry-content .wp-block-button__link {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-terracotta);
    color: white !important;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    box-shadow: var(--shadow-cta);
}

.entry-content .wp-block-button__link:hover {
    background-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    gap: 0.5rem;
}

.pagination-wrapper .page-numbers {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    font-weight: 600;
    transition: all 0.2s;
}

.pagination-wrapper .page-numbers.current {
    background: var(--color-terracotta);
    color: white;
    border-color: var(--color-terracotta);
}

.pagination-wrapper .page-numbers:hover:not(.current) {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}