/* 
* a2z English School - Main Stylesheet
* Kid-friendly and bilingual playful design (red / white / blue palette)
*/

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

/* Subtle background elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(64, 224, 208, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 40%, rgba(255, 235, 59, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Base Styles *//* Base Styles */
:root {
    --primary-color: #c70039; /* Deep red */
    --secondary-color: #1d4ed8; /* Strong blue */
    --accent-color: #ffffff; /* White */
    --text-color: #333333;
    --background-light: #f0f8ff; /* Alice blue - very light blue */
    --section-young: #fff0f5; /* Lavender blush - light pink */
    --section-cambridge: #f0fff0; /* Honeydew - light green */
    --section-adult: #f0f6ff; /* Light blue instead of orange */
    --section-contact: #f0f0ff; /* Light lavender */
    --section-about: #f5f5ff; /* Very light bluish */
    --section-school: #f0ffff; /* Light cyan */
    --section-high: #f8f0ff; /* Light purple */
    
    /* New playful colors */
    --turquoise: #40e0d0;
    --sunshine-yellow: #ffd700; /* Subtle gold (limited use) */
    --coral-pink: #c70039; /* Align to primary red for consistency */
    --fun-purple: #a29bfe;
    --mint-green: #00b894;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    /* Add photographic background behind existing gradient */
    /* Reduced overlay opacity to let background image show through more */
    background: 
        linear-gradient(135deg, rgba(240,248,255,0.85) 0%, rgba(245,240,255,0.8) 50%, rgba(255,240,245,0.85) 100%),
        url("images/union_jack.jpg") center/cover fixed no-repeat;
    background-attachment: fixed, fixed;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 0.8em;
}

h1 {
    font-family: 'Baloo 2', 'Poppins', sans-serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    font-weight: 600;
}

h2 {
    font-family: 'Baloo 2', 'Poppins', sans-serif;
    color: var(--secondary-color);
    font-size: 2rem;
    border-bottom: none;
    padding-bottom: 10px;
    margin-top: 1.5em;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

h2:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    position: relative;
}

p {
    margin-bottom: 1em;
}

ul {
    margin-bottom: 1.5em;
    padding-left: 1em;
    list-style: none;
}

ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}

ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Header Styles */
header {
    text-align: center;
    padding: 20px 0 30px 0;
    margin-bottom: 2em;
    position: relative;
}

header:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Address Styling */
.address {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
    font-weight: 400;
}

/* Inscription Button Styles */
.inscription-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin: 15px 0;
    max-width: 300px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(199, 0, 57, 0.25);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}


.inscription-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
}

.inscription-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}


.header-inscription {
    display: inline-block;
    margin: 15px auto 5px;
    font-size: 1.1em;
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.lang-btn {
    background: white;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.lang-btn::before {
    content: '🇫🇷';
    margin-right: 8px;
}

.lang-btn[data-lang="en"]::before {
    content: '🇬🇧';
}

.lang-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.lang-btn:focus {
    outline: 2px solid var(--turquoise);
    outline-offset: 2px;
}

.lang-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* Section Styles */
section {
    padding: 40px 35px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

section > h2 {
    color: var(--secondary-color);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

section > h2:after {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    height: 3px;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 16px 16px 0 0;
}

/* Add floating icons */
section::after {
    content: '';
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Section-specific colors with gradients */
.young-learners {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(3px);
}

.young-learners::after { content: ''; }

.cambridge {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(3px);
}

.cambridge::after { content: ''; }

.adult-classes {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(3px);
}

.adult-classes::after { content: ''; }

.contact {
    background: linear-gradient(135deg, rgba(162, 155, 254, 0.1) 0%, rgba(77, 121, 255, 0.1) 100%);
}

.contact::after { content: ''; }

.about-us {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(3px);
}

.about-us::after { content: ''; }

.school-students {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(3px);
}

.school-students::after { content: ''; }

.high-school {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(3px);
}

.high-school::after { content: ''; }

.english-test {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(3px);
}

.english-test::after { content: ''; }

.reviews-section {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(3px);
}

.reviews-section::after { content: ''; }

.about-us {
    background-color: var(--section-about);
    border-top-color: #a0a0ff;
}

.school-students {
    background-color: var(--section-school);
    border-top-color: #80e0e0;
}

.high-school {
    background-color: var(--section-high);
    border-top-color: #d0a0ff;
}

/* Highlight and Caption Styles */
.highlight {
    background-color: rgba(255, 107, 107, 0.1); /* Transparent version of primary color */
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 5px solid var(--primary-color);
    font-size: 1.1em;
}

/* Result lists (concise outcome bullets) */
.results-list {
    list-style: none;
    margin: 10px 0 20px 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.results-list li {
    position: relative;
    padding-left: 26px;
    font-weight: 500;
}

.results-list li:before {
    content: '\2713'; /* check mark */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.caption {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: bold;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(77, 121, 255, 0.08);
    display: inline-block;
}

.success {
    background-color: rgba(77, 121, 255, 0.1); /* Transparent version of secondary color */
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 5px solid var(--secondary-color);
    font-size: 1.1em;
}

/* Image Styles */
.images-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
}

.banner-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    background-color: white;
    padding: 10px 20px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 20px;
}

.banner-img {
    width: auto;
    max-width: 95%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    margin: 10px;
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.responsive-img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Button Styles */
.learn-more-btn {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.learn-more-btn: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: 0.5s;
}

.learn-more-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(77, 121, 255, 0.4);
}

.learn-more-btn:hover:before {
    left: 100%;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 25px;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--accent-color);
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact Section Styles */
.contact-info {
    background-color: rgba(255,255,255,0.8);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.contact-info:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background-image: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* Inscription Container in Contact Section */
.inscription-container {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.inscription-container h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Google Reviews Section Styles */
.reviews-section {
    background-color: rgba(248, 250, 252, 0.9);
    overflow: hidden;
}

.reviews-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 15px;
}

.review-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(300px * 10); /* Width for all cards including duplicates */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move by 50% to account for duplicated cards */
}

.review-track:hover {
    animation-play-state: paused;
}

.review-card {
    flex: 0 0 300px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
    margin-right: 25px;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(64, 224, 208, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    opacity: 0.3;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.review-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: var(--turquoise);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info h4 {
    margin: 0 0 5px 0;
    color: var(--secondary-color);
    font-size: 1.1em;
}

.stars {
    color: #ffa500;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.google-logo {
    width: 50px;
    height: auto;
    opacity: 0.7;
}

.review-card p {
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #444;
    font-size: 0.95em;
}

.review-date {
    font-size: 0.85em;
    color: #666;
    display: block;
}

/* Google Rating Summary */
.google-rating-summary {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
}

.stars-large {
    font-size: 1.8em;
    color: #ffa500;
}

.total-reviews {
    font-size: 1.1em;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Mobile responsiveness for Reviews */
@media (max-width: 768px) {
    .review-card {
        flex: 0 0 260px;
        padding: 15px;
        margin-right: 15px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .google-logo {
        width: 40px;
        align-self: flex-end;
    }
    
    .rating-number {
        font-size: 2.5em;
    }
    
    .stars-large {
        font-size: 1.5em;
    }
    
    .google-rating-summary {
        margin: 20px 10px;
        padding: 20px;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.cookie-consent p {
    margin: 0 15px 0 0;
}

.cookie-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background-color: var(--secondary-color);
}

/* Hide cookie consent when accepted */
.cookie-consent.hidden {
    display: none;
}

/* Mascot badge styles */
.mascot-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: float-slow 6s ease-in-out infinite;
}

.mascot-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

.speech-bubble {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--secondary-color);
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 650px) {
    .mascot-badge { width: 70px; bottom: 5px; right: 5px; }
    .speech-bubble { font-size: 0.75rem; }
}

.fun-word:hover {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

/* Floating elements animation */
.floating-words {
    position: fixed;
    font-size: 1.2em;
    opacity: 0.1;
    animation: floatAround 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatAround {
    0% { transform: translateX(-100px) translateY(100vh) rotate(0deg); }
    100% { transform: translateX(100vw) translateY(-100px) rotate(360deg); }
}

/* English Test Section Styles */
.english-test {
    background-color: rgba(240, 248, 255, 0.7);
}

.test-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.95) 100%);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 3px solid var(--turquoise);
    position: relative;
}

.test-container::before {
    content: '🧠✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2em;
    animation: float 3s ease-in-out infinite;
}

.question-card {
    padding: 25px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
    border-radius: 20px;
    border-left: 5px solid var(--sunshine-yellow);
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.question-card h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.question-card h3::before {
    content: '❓';
    font-size: 1.2em;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.option-btn {
    background: linear-gradient(45deg, rgba(255,255,255,0.9), rgba(240,248,255,0.9));
    border: 2px solid var(--turquoise);
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
    transform: translateY(-50%);
}

.option-btn:hover {
    background: linear-gradient(45deg, var(--turquoise), var(--mint-green));
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.4);
}

.option-btn:hover::before {
    left: 100%;
}

.option-btn.selected {
    background: linear-gradient(45deg, var(--secondary-color), var(--fun-purple));
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(77, 121, 255, 0.5);
    animation: selectedPulse 0.6s ease-in-out;
}

@keyframes selectedPulse {
    0% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

.result-card {
    text-align: center;
    padding: 20px;
}

.result-display {
    margin: 20px auto;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2em;
}

.level-a1, .level-a2 {
    background-color: rgba(255, 235, 59, 0.2);
    border: 2px solid #FFC107;
}

.level-b1, .level-b2 {
    background-color: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
}

.level-c1, .level-c2 {
    background-color: rgba(33, 150, 243, 0.2);
    border: 2px solid #2196F3;
}

.restart-test-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.restart-test-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Mobile responsiveness for English Test */
@media (max-width: 768px) {
    .options {
        grid-template-columns: 1fr;
    }
    
    .test-container {
        margin: 20px 10px;
        padding: 15px;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 20px 15px;
    }
    
    .images-container {
        flex-direction: column;
        align-items: center;
    }
    
    .highlight, .success {
        padding: 12px 15px;
    }
    
    .banner-img {
        max-height: 100px;
    }
    
    .banner-container {
        margin-bottom: 10px;
        padding: 5px 10px;
    }
    
    .header-inscription {
        font-size: 0.95em;
        padding: 8px 16px;
    }
    
    .inscription-container {
        padding: 15px;
    }
}
