/* Design System Soccer Interculturel Bellechasse - Design 3 (Minimaliste Premium) */

:root {
    --bg-color: #FFFFFF;
    --text-color: #2D2D2D;
    --accent-color: #4A90E2;
    /* Bleu acier */
    --accent-secondary: #C5A059;
    /* Or brossé */
    --sep-color: #F9F9F9;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-accent: 'Dancing Script', cursive;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-premium: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
    font-family: var(--font-serif);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    padding: 1rem 10%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-accent {
    font-family: var(--font-accent);
    text-transform: none;
    color: var(--accent-secondary);
    font-size: 1.8rem;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.mobile-socials {
    display: none;
    /* Hidden by default, shown in mobile drawer */
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.7;
}

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

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Open Burger Animation */
.burger.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.burger.toggle span:nth-child(2) {
    opacity: 0;
}

.burger.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Hero Split Section */
.hero-split {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 0;
    overflow: hidden;
}

.hero-left {
    flex: 0.8;
    /* Réduit pour laisser plus de place à l'image */
    padding: 0 5% 0 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-subtitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-left h1 {
    font-size: 4rem;
    /* Légèrement réduit pour l'équilibre */
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-color);
    animation: fadeInUp 1s ease forwards;
}

.hero-left p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 450px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-right {
    flex: 1.5;
    /* Élargi pour montrer tout le groupe */
    width: 100%;
    position: relative;
    /* Suppression du clip-path pour ne plus couper les personnes à gauche */
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Centrage pour garder le groupe au milieu */
}

/* Button Styles */
.btn-dark {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--text-color);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

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

.btn-outline {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: 1px solid #ddd;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--text-color);
    background: var(--sep-color);
}

/* Sections Common */
section {
    padding: 120px 10%;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent-secondary);
}

/* Story Section */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.story-img-wrapper {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.story-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 30px 30px 0 var(--sep-color);
    transition: var(--transition);
}

.story-img-wrapper:hover img {
    transform: translate(10px, 10px);
    box-shadow: 15px 15px 0 var(--accent-secondary);
}

.since-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--text-color);
    color: white;
    padding: 1.5rem 2rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 2;
}

.section-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.story-right h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.story-text p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-item .number {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.highlight-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #999;
}

/* Events Section */
.events-section {
    background-color: var(--bg-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.event-card {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: var(--sep-color);
}

.event-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.event-card:hover img {
    transform: scale(1.1);
}

.event-card:hover .event-overlay {
    transform: translateY(0);
    opacity: 1;
}

.event-meta {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.event-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent-secondary);
    color: white;
    padding: 0.2rem 0.8rem;
    font-weight: 600;
}

.event-date {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.event-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.event-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
    max-width: 400px;
}

/* Program Section */
.program-section {
    background-color: var(--sep-color);
}

.program-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 1rem 2rem;
    cursor: pointer;
    position: relative;
    opacity: 0.5;
    transition: var(--transition);
}

.tab-btn.active {
    opacity: 1;
    color: var(--accent-color);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.tab-btn.active::after {
    width: 40px;
}

.season-content {
    display: none;
    animation: fadeIn 0.8s ease forwards;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.badge.extreme {
    background: #fff0f0;
    color: #e24a4a;
}

/* Calendar Section (Keep existing row layout) */
.calendar-list {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 0 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.calendar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.calendar-row:hover {
    padding-left: 1rem;
    padding-right: 1rem;
    background: var(--sep-color);
}

.match-date {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    width: 150px;
}

.match-location {
    flex: 1;
    color: #666;
    font-size: 0.95rem;
}

.match-type {
    font-family: var(--font-serif);
    font-style: italic;
    margin: 0 2rem;
}

.badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.badge.upcoming {
    background: #eef6ff;
    color: var(--accent-color);
}

.badge.victory {
    background: #f0f7ed;
    color: #67b045;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.8;
}

input,
textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1.5px solid #eee;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    border-color: var(--accent-secondary);
}

input::placeholder,
textarea::placeholder {
    color: #bbb;
    font-size: 0.9rem;
}

.btn-submit-premium {
    align-self: flex-start;
    background: var(--text-color);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-submit-premium:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-submit-premium .arrow-icon {
    font-style: normal;
    transition: var(--transition);
}

.btn-submit-premium:hover .arrow-icon {
    transform: translateX(8px);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.detail-item h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 0.5rem;
}

.detail-item p {
    font-family: var(--font-serif);
    font-size: 1.4rem;
}

.map-container {
    margin-top: 2rem;
    width: 100%;
    transition: var(--transition);
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Footer Premium */
.main-footer {
    background-color: var(--text-color);
    color: white;
    padding: 6rem 10% 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.footer-brand p {
    max-width: 350px;
    opacity: 0.6;
    line-height: 1.6;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.footer-links h4,
.footer-social h4 {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-secondary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    /* Arrondi pour un look plus moderne */
    font-size: 1.1rem;
    /* Agrandit l'icône */
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-secondary);
    /* Utilise la couleur d'accent au hover */
    color: white;
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: white;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column-reverse;
        height: auto;
    }

    .hero-left {
        padding: 120px 10% 60px;
    }

    .hero-right {
        width: 100%;
        /* height: 500px; */
        clip-path: none;
    }

    .hero-left h1 {
        font-size: 3.5rem;
    }

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

    .event-card {
        height: 300px;
        /* Reduced for mobile */
    }

    .hero-left {
        padding: 100px 5% 50px;
        text-align: center;
        /* Center text on mobile */
    }

    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-right {
        height: 400px;
    }

    .hero-left h1 {
        font-size: 3rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

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

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

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

    .btn-submit-premium {
        width: 100%;
        justify-content: center;
    }

    .event-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .logo {
        font-size: 0.9rem;
        /* Smaller font for long club name */
        letter-spacing: 1px;
    }

    .logo-accent {
        font-size: 1.4rem;
    }

    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Left align for a cleaner look */
        justify-content: center;
        padding-left: 15%;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.8rem;
        font-family: var(--font-serif);
        font-weight: 700;
        letter-spacing: 1px;
    }

    .mobile-socials {
        display: flex;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #eee;
        width: 80%;
    }

    .mobile-socials a {
        font-size: 1.2rem;
        color: var(--accent-secondary);
    }

    section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-actions .btn-dark,
    .hero-actions .btn-outline {
        width: 100%;
        text-align: center;
    }

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

    .calendar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1.5rem;
    }

    .match-date {
        width: 100%;
        font-size: 1.2rem;
    }

    .program-tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }

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


    .footer-brand p {
        margin: 0 auto 1.5rem;
    }

    .footer-links ul {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .highlight-item {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 2.2rem;
    }

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

    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        line-height: 1;
    }

    .logo-accent {
        font-size: 1.2rem;
    }
}