/**
 * Site public - Complexe Sportif Kaira
 * Landing page & Réservation en ligne
 */

/* Variables CSS */
:root {
    --primary: #01305E;
    --primary-dark: #012347;
    --accent: #E8631A;
    --accent-light: #ff7a2f;
    --success: #28A745;
    --danger: #DC3545;
    --white: #ffffff;
    --light: #F4F6FA;
    --gray: #6c757d;
    --dark: #212529;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 99, 26, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 99, 26, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

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

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.navbar.scrolled .nav-link {
    color: var(--dark);
}

.navbar.scrolled .nav-link:hover {
    color: var(--accent);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-brand .brand-text {
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
}

.navbar.scrolled .brand-text {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 12px 24px !important;
    border-radius: 50px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.navbar.scrolled .mobile-toggle {
    color: var(--dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Football Field Background Animation */
.football-field-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.field-svg {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.center-circle {
    animation: pulse-circle 4s ease-in-out infinite;
}

@keyframes pulse-circle {
    0%, 100% { opacity: 0.1; transform-origin: center; }
    50% { opacity: 0.2; }
}

.center-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.15; r: 8; }
    50% { opacity: 0.3; r: 12; }
}

.football-anim {
    filter: drop-shadow(0 0 15px rgba(232,99,26,0.5));
}

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

.particle.p1 { animation-delay: 0s; }
.particle.p2 { animation-delay: 1s; }
.particle.p3 { animation-delay: 2s; }
.particle.p4 { animation-delay: 3s; }
.particle.p5 { animation-delay: 4s; }
.particle.p6 { animation-delay: 5s; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.8; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100px 100px;
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 99, 26, 0.2);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--accent);
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: -100px;
    bottom: 0;
    width: 55%;
    max-width: 700px;
    z-index: 1;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section styles */
section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(232, 99, 26, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--gray);
}

/* Terrains Section */
.terrains-section {
    background: var(--light);
}

.terrains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.terrain-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.terrain-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.terrain-image i {
    font-size: 80px;
    color: rgba(255,255,255,0.3);
}

.terrain-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.terrain-badge.occupied {
    background: var(--danger);
}

.terrain-video-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.terrain-video-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
}

.terrain-video-btn i {
    margin-left: 3px;
}

.terrain-content {
    padding: 25px;
}

.terrain-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.terrain-type {
    display: inline-block;
    background: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 15px;
}

.terrain-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 14px;
}

.terrain-features i {
    color: var(--accent);
    margin-right: 5px;
}

.terrain-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--light);
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.price-label {
    font-size: 14px;
    color: var(--gray);
}

.terrain-btn {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.terrain-btn:hover {
    background: var(--accent);
}

/* Features Section */
.features-section .container {
    max-width: 1400px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon i {
    font-size: 32px;
    color: var(--white);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-text {
    color: var(--gray);
    font-size: 15px;
}

/* Reviews Section */
.reviews-section {
    background: var(--white);
    padding: 80px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff8c42);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.review-terrain {
    font-size: 13px;
    color: var(--gray);
}

.review-terrain i {
    color: var(--primary);
    margin-right: 5px;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.review-rating i {
    font-size: 14px;
}

.review-text {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-recommend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 13px;
    font-weight: 500;
}

.review-recommend i {
    font-size: 14px;
}

.reviews-cta {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Academy Section */
.academy-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.academy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    min-height: 450px;
}

.academy-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.academy-text p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.academy-features {
    list-style: none;
    margin-bottom: 30px;
}

.academy-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
}

.academy-features i {
    color: var(--accent);
    font-size: 20px;
}

.academy-video {
    width: 650px !important;
    height: 400px !important;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.academy-video iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    border: none;
    border-radius: var(--radius);
}

/* Contact Section */
.contact-section {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .academy-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: var(--transition);
    }

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

    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: var(--white) !important;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Booking Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 25px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

/* Booking Steps */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 8px;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--accent);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
}

/* Time slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.time-slot {
    padding: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary);
}

.time-slot.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.time-slot.disabled {
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Booking summary */
.booking-summary {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    border-top: 2px solid var(--primary);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.summary-row.total .value {
    color: var(--accent);
}

/* Confirmation */
.confirmation-box {
    text-align: center;
    padding: 40px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirmation-icon i {
    font-size: 40px;
    color: var(--white);
}

.confirmation-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.confirmation-text {
    color: var(--gray);
    margin-bottom: 20px;
}

.ticket-number {
    background: var(--light);
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    letter-spacing: 2px;
}
