/* Import d’une typo ludique */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');

:root {
    --jaune: #ffcf5c;
    --orange: #ff9f1c;
    --bleu: #70c1b3;
    --rose: #f25f5c;
    --violet: #b388eb;
    --fond: #fff8e1;
    --texte: #333;
    --blanc: #ffffff;
}

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

body {
    font-family: 'Fredoka', sans-serif;
    background: var(--fond);
    color: var(--texte);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

header.main-header {
    background: var(--jaune);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-bottom: 4px dashed var(--orange);
}

header.main-header h1 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.main-nav a {
    background: var(--bleu);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    transition: background 0.2s ease;
}

.main-nav a:hover {
    background: var(--orange);
}

main.content {
    flex: 1;
    padding: 2rem clamp(1rem, 5vw, 4rem); /* adaptatif selon largeur écran */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


.card {
    background: var(--blanc);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 3px dashed var(--violet);
    width: 100%;
    max-width: 100%;
}


.card h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--rose);
}

label {
    font-weight: bold;
    margin-top: 1rem;
    display: inline-block;
    color: var(--orange);
}

select, input[type="text"], input[type="number"], input[type="date"] {
    padding: 0.5rem;
    border: 2px solid var(--bleu);
    border-radius: 8px;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 1rem;
    background: #fefefe;
}

input[type="checkbox"], input[type="radio"] {
    transform: scale(1.2);
    margin-right: 0.5rem;
}

.joueur-box {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    background: #f3f3f3;
    padding: 0.5rem;
    border-radius: 10px;
    gap: 10px;
}

.input-score input {
    width: 80px;
}

button {
    background: var(--rose);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s ease;
}

button:hover {
    background: var(--orange);
}

footer.main-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9em;
    background: var(--jaune);
    color: #444;
    border-top: 3px dashed var(--orange);
}

