:root {
    --primary-color: #0d1b2a;
    /* Bleu foncé profond */
    --secondary-color: #ffd700;
    /* Jaune/Doré */
    --accent-color: #1b263b;
    /* Bleu un peu plus clair */
    --text-color: #333;
    --light-bg: #f0f8ff;
    /* AliceBlue pour un fond plus doux/enfantin */
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
    --font-hand: 'Comic Neue', cursive;
    /* Police manuscrite pour le côté enfant */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
}

h2.section-title {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Buttons with more rounded/bouncy feel */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(13, 27, 42, 0.2);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary-custom:hover {
    background-color: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
}

/* Navbar */
.navbar-custom {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    border-bottom: 5px solid var(--secondary-color);
    /* Ligne colorée */
}

.navbar-brand img {
    height: 60px;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 700;
    margin: 0 10px;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    transform: rotate(-2deg);
    /* Petit effet ludique */
    display: inline-block;
}

/* Hero Section */
.hero-section {
    background-image: url('../../contenu /image-3dec/Smart Kid Counting on Soroban Abacus. Education, School Arithmetic, Calculating Thinking.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 150px 0;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    min-height: 500px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(13 27 42 / 4%) 0%, rgb(27 58 59 / 17%) 1%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--secondary-color);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: var(--font-hand);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* Cards */
.card-custom {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    overflow: hidden;
    background: #fff;
    border-bottom: 5px solid transparent;
}

.card-custom:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '✨';
    display: block;
    font-size: 2rem;
    margin-top: 10px;
}

/* Footer */
footer {

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1e3a8a;
    /* Bleu foncé comme fallback */
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    /* Bordures arrondies en haut pour harmonie avec le site */
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: 40px;
}

/* Overlay pour améliorer la lisibilité du texte */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.7);
    /* Overlay bleu semi-transparent */
    z-index: 0;
    /* Bordures arrondies pour suivre la forme du footer */
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer h5 {
    color: #60a5fa;
    /* Bleu clair au lieu de jaune */
    margin-bottom: 20px;
    font-family: var(--font-hand);
    font-size: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #60a5fa;
    /* Bleu clair au lieu de jaune */
}

/* Gallery Slider Styles (Preserved) */
.gallery-container {
    max-width: 800px;
    margin: 0 auto;
}

.main-image-container,
.main-video-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.main-image-container img,
.main-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.main-image-container img.active,
.main-video-container video.active {
    display: block;
    animation: fadeIn 0.5s;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.8);
    /* Yellow buttons */
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.thumbnails-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    justify-content: center;
}

.thumbnail {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.thumbnail-video-wrapper {
    position: relative;
    width: 90px;
    height: 70px;
    cursor: pointer;
}

.thumbnail-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.6;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.thumbnail-video-wrapper:hover video,
.thumbnail-video-wrapper.active video,
.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Fun Elements */
.fun-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

/* Google Reviews Section */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.google-reviews-badge {
    animation: slideInUp 0.6s ease-out;
}

.google-logo {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card .stars {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.testimonial-card .avatar {
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.google-reviews-widget {
    animation: fadeIn 1s ease-out;
}

.google-reviews-widget iframe {
    transition: transform 0.3s ease;
}

.google-reviews-widget:hover iframe {
    transform: scale(1.01);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .google-reviews-badge {
        padding: 2rem 1rem !important;
    }

    .google-reviews-badge h3 {
        font-size: 1.3rem;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }
}

/* Testimonials Carousel Navigation */
.testimonials-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.9);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-testimonial {
    left: 0;
}

.next-testimonial {
    right: 0;
}

/* Pagination Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.testimonial-dots .dot.active {
    background: var(--secondary-color);
    border-color: #fff;
    transform: scale(1.3);
}

/* Smooth transitions for testimonial items */
.testimonial-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-item.d-none {
    opacity: 0;
    transform: scale(0.95);
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }

    @media (max-width: 576px) {
        .testimonials-carousel-wrapper {
            padding: 0 40px;
        }

        .testimonial-nav-btn {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }

        .prev-testimonial {
            left: -5px;
        }

        .next-testimonial {
            right: -5px;
        }
    }

    .testimonial-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Incroyable Talent Section */
.section-talent {
    background: linear-gradient(135deg, #d62828 0%, #9a031e 100%);
    /* Red gradient for Incroyable Talent vibe */
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-talent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.section-talent h2 {
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}