@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

/* Animations and Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounceBall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #4CAF50, 0 0 10px #4CAF50; }
    50% { box-shadow: 0 0 20px #66BB6A, 0 0 30px #66BB6A; }
    100% { box-shadow: 0 0 5px #4CAF50, 0 0 10px #4CAF50; }
}

/* Styles pour le site Football */
:root {
    --primary-color: #1B5E20;
    --secondary-color: #388E3C;
    --accent-color: #66BB6A;
    --bg-dark: #000000;
    --bg-light: #ffffff;
    --text-dark: #333333;
    --text-light: #f5f5f5;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Header */
header {
    background: rgba(27, 94, 32, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '⚽';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    top: -20px;
    left: -20px;
    animation: pulse 4s infinite;
}

header::after {
    content: '🏆';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    bottom: -20px;
    right: -20px;
    animation: pulse 4s infinite 2s;
}

header h1 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #a8ff78, #78ffd6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-out;
}

.site-logo {
    width: 90px;
    height: auto;
    margin-right: 25px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    -webkit-text-fill-color: initial;
}

/* Sticky Nav with hover fx */
nav {
    background: rgba(56, 142, 60, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border-bottom: 2px solid var(--accent-color);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

nav ul li {
    margin: 0;
    animation: fadeIn 0.5s ease-out backwards;
}

nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }
nav ul li:nth-child(4) { animation-delay: 0.4s; }
nav ul li:nth-child(5) { animation-delay: 0.5s; }
nav ul li:nth-child(6) { animation-delay: 0.6s; }

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 100%; 
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: #fff;
    animation: glow 1.5s infinite alternate;
}

/* Main Content Styling */
main {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    color: var(--text-dark);
    animation: fadeIn 1.2s ease-out;
    position: relative;
    z-index: 5;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

main:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 800;
    border-bottom: 4px dashed var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '⚽';
    position: absolute;
    right: -50px;
    top: 5px;
    animation: bounceBall 2s infinite ease-in-out;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

main:hover h3::after {
    width: 100%;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Fancy List Elements */
main ul {
    padding-left: 0;
    margin-top: 1.5rem;
}

main ul li {
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.2rem 1.2rem 3rem;
    position: relative;
    list-style-type: none;
    background: #f8fcf8;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

main ul li::before {
    content: '⚡';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

main ul li:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-left-color: var(--accent-color);
    background: #ffffff;
}

main ul li:hover::before {
    transform: translateY(-50%) rotate(15deg) scale(1.2);
    filter: drop-shadow(0 0 5px gold);
}

main ul li strong {
    color: var(--primary-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.3rem;
}

footer {
    background: rgba(10, 36, 12, 0.95);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
    position: relative;
    border-top: 3px solid var(--accent-color);
}

footer p {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer:hover p {
    color: white;
    text-shadow: 0 0 10px var(--accent-color);
    transition: all 0.3s ease;
}

/* Canvas et Jeux - Responsive */
canvas, iframe {
    max-width: 100%;
    height: auto;
    touch-action: none; /* Désactiver le scroll au moment de glisser sur le jeu */
    user-select: none;
    -webkit-user-select: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    nav a {
        border-radius: 10px;
    }
    main {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}