/* ================================
   GROUPE SCOLAIRE LA CLEF DE L'AVENIR
   Modern Responsive Stylesheet
   ================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    display: block;
    transition: var(--transition);
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* ===== SLIDER SECTION ===== */
.slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease;
}

.slide-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.slide-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12rem;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.3);
    color: var(--white);
    border: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10;
    border-radius: 4px;
}

.slider-btn:hover {
    background-color: rgba(255,255,255,0.5);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-btn span {
    display: block;
    font-weight: bold;
}

/* Slider Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

.dot.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-link {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--accent-color);
}

.btn-full {
    width: 100%;
}

/* ===== SECTIONS ===== */
section {
    padding: 4rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    white-space: nowrap;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cycle-header .cycle-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ===== INTRO SECTION ===== */
.intro {
    padding: 4rem 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* ===== CYCLES GRID ===== */
.cycles {
    padding: 4rem 0;
}

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

.cycle-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.cycle-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cycle-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cycle-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===== VALUES SECTION ===== */
.values {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

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

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-light);
}

/* Values Detailed */
.values-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.value-detail {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-detail:hover {
    box-shadow: var(--shadow-lg);
}

.value-detail-icon {
    font-size: 3rem;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-detail-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-detail-content p {
    color: var(--text-color);
    line-height: 1.8;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-box {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.bg-light .feature-box {
    background-color: var(--white);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-color);
    line-height: 1.7;
}

/* ===== LIST GRID ===== */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.list-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.bg-light .list-item {
    background-color: var(--white);
}

.list-item:hover {
    box-shadow: var(--shadow-lg);
}

.list-icon {
    font-size: 2rem;
    min-width: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.list-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.list-item p {
    color: var(--text-light);
}

/* ===== CONTENT SECTION ===== */
.content-section {
    padding: 4rem 0;
}

.content-box {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.content-box p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.custom-list {
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
}

.custom-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    line-height: 1.7;
}

.custom-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.info-icon {
    font-size: 2rem;
    min-width: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.info-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-color);
    line-height: 1.6;
}

.info-content a {
    color: var(--secondary-color);
}

.info-content a:hover {
    color: var(--accent-color);
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.required {
    color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

.error-message {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--accent-color);
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
}

.map-placeholder {
    background-color: var(--white);
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.map-placeholder p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.map-note {
    color: var(--text-light);
    font-size: 0.875rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-col p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    opacity: 0.9;
    transition: var(--transition);
}

.footer-col a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1.125rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-icon i {
    line-height: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .value-detail {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
        align-items: flex-start;
        border-top: 2px solid #e0e0e0;
    }

    .nav-menu.active {
        left: 0;
    }

    .dropdown-content {
        position: static;
        display: none;
        background-color: var(--bg-light);
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    /* Hero */
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Slider */
    .slider {
        height: 500px;
    }

    .slide-title {
        font-size: 1.875rem;
        letter-spacing: 0.3px;
    }

    .slide-subtitle {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .slide-buttons {
        flex-direction: column;
    }

    .slider-btn {
        padding: 0.75rem 1rem;
        font-size: 1.25rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .slider-dots {
        bottom: 15px;
    }

    /* Logo responsive */
    .nav-logo {
        height: 45px;
        max-width: 150px;
    }

    .nav-brand-text {
        font-size: 1rem;
    }

    /* Sections */
    .section-header h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Grids */
    .cycles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .values-grid,
    .features-grid,
    .list-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .slide-title {
        font-size: 1.5rem;
        letter-spacing: 0.2px;
    }

    .slide-subtitle {
        font-size: 0.9375rem;
        letter-spacing: 0.2px;
    }

    .slider {
        height: 450px;
    }

    .slider-btn {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }

    .slider-dots {
        bottom: 10px;
    }

    /* Logo very small screens */
    .nav-logo {
        height: 35px;
    }

    .nav-brand-text {
        display: none; /* Hide text on very small screens, show only logo */
    }

    /* Cycles grid on small screens */
    .cycles-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
