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

body {
    font-family: 'Oswald', Arial, sans-serif;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 50px;
    z-index: 1000;
}

.navbar ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.navbar ul li a {
    color: white;
    text-decoration: underline;
    padding: 10px 15px;
    font-weight: 600;
}

.navbar ul li a:hover {
    color: #0b083a;
}

section {
    min-height: 100vh;
    padding: 140px 20px 80px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    max-width: 800px;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

.section-transition {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-transition.active {
    opacity: 1;
    transform: translateY(0);
}

.sport {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
}

.football { background-image: url("images/football.jpg"); }
.basketball { background-image: url("images/basket.jpg"); }
.badminton { background-image: url("images/badminton.jpg"); }
.handball { background-image: url("images/handball.jpg"); }
.athletisme { background-image: url("images/athletisme.jpg"); }

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.sport .content {
    position: relative;
    z-index: 2;
}

#accueil,
#contact,
#contribuer {
    background-color: #0b1c2d;
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

label {
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}

.error {
    color: red;
    font-size: 0.9rem;
}

.hint {
    font-size: 0.9rem;
    color: #cfd8e3;
}

button {
    padding: 12px;
    font-size: 1rem;
    background: #1f8ef1;
    border: none;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #166bb8;
}

.preview {
    margin-top: 30px;
    padding: 20px;
    border: 2px dashed #1f8ef1;
    border-radius: 10px;
    animation: fadeIn 0.5s ease;
}

.preview img {
    max-width: 100%;
    margin: 15px 0;
    border-radius: 10px;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0b1c2d;
    color: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.4s ease;
}

.close-legal {
    font-size: 32px;
    cursor: pointer;
    float: right;
}

footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: white;
}

footer a {
    color: #1f8ef1;
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
/* POPUP SPORT */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: #0b1c2d;
    color: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    animation: fadeIn 0.4s ease;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: white;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #1f8ef1;
}
