/*
Theme Name: RPE-LasPeyras_themeenfant
Theme URI: https://example.com/
Description: Thème enfant de Twenty Twenty-Four
Author: Diginautes
Author URI: https://diginautes.com
Template: twentytwentyfour
Version: 1.0
*/

/* Tes styles personnalisés ici */

/* Dot texture background */
body {
    background-image: radial-gradient(#D6CCC2 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Navigation link underline animation */
.site-nav a {
    position: relative;
    transition: color 0.3s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--wp--preset--color--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

/* Blob shape behind hero image */
.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 90%;
    background-color: var(--wp--preset--color--accent);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    z-index: 0;
    opacity: 0.6;
}

.hero-visual-wrapper img {
    position: relative;
    z-index: 1;
    border-radius: 300px 300px 20px 20px;
    box-shadow: 20px 20px 0px rgba(214, 140, 112, 0.15);
    aspect-ratio: 9/12;
    object-fit: cover;
    max-height: 600px;
    width: 100%;
}

/* Pill-shaped tagline badge */
.tagline-badge {
    background-color: #FFFFFF;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    display: inline-block;
}

/* Primary CTA button style */
.btn-cta-primary .wp-block-button__link {
    background-color: var(--wp--preset--color--primary) !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(214, 140, 112, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-primary .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(214, 140, 112, 0.4);
    background-color: #C57A5F !important;
}

/* Secondary CTA button style */
.btn-cta-secondary .wp-block-button__link {
    background-color: #FFFFFF !important;
    color: var(--wp--preset--color--dark) !important;
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    font-weight: 600;
    border: 2px solid #EBEBEB !important;
    transition: all 0.3s ease;
}

.btn-cta-secondary .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--secondary) !important;
    color: var(--wp--preset--color--secondary) !important;
    background-color: transparent !important;
}

/* Card hover effect */
.montessori-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.montessori-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(93, 78, 70, 0.08);
}

/* Equal card layout */
.equal-cards > .wp-block-column {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.equal-cards .cta-bottom {
    margin-top: auto;
    justify-content: center;
}

/* Value icon circles */
.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 2rem;
}

/* Testimonial card styling */
.testimonial-card {
    border-left: 4px solid var(--wp--preset--color--primary);
    border-radius: 0 12px 12px 0;
}

/* Wavy section divider */
.wavy-divider {
    position: relative;
    overflow: hidden;
}

.wavy-divider::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--wp--preset--color--background);
    border-radius: 0 0 50% 50%;
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    animation: fadeInUp 0.8s ease forwards;
}

/* Footer credit links */
.footer-credit a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-credit a:hover {
    color: var(--wp--preset--color--primary);
}

/* Facility images rounded */
.facility-img img {
    border-radius: 16px;
    object-fit: cover;
    height: 280px;
    width: 100%;
}

/* Header CTA small button */
.header-cta .wp-block-button__link {
    background-color: var(--wp--preset--color--secondary) !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.header-cta .wp-block-button__link:hover {
    transform: translateY(-2px);
    background-color: #7A9682 !important;
}

/* Remove top margin on sections */
.wp-site-blocks > * + * {
    margin-block-start: 0;
}

.wp-site-blocks > footer {
    margin-block-start: 0;
}

/* Leaf decoration for headings */
.leaf-heading {
    position: relative;
    display: inline-block;
}

/* Programs grid icon circles */
.program-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive hero adjustments */
@media (max-width: 1024px) {
    .hero-visual-wrapper img {
        max-height: 450px;
    }
}