/* Feuille de style provisoire : la charte graphique de Football Tribute viendra plus tard. Téléphone d'abord (360 px). */
:root { --fond: #f6f7f2; --texte: #1d2a1f; --accent: #1f6b3a; --discret: #5d6b60; --bon: #1f6b3a; --mauvais: #a12b2b; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fond); color: var(--texte); line-height: 1.5; }
.entete { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1.2rem; background: var(--accent); }
.entete a { color: #fff; text-decoration: none; }
.marque { display: flex; flex-direction: column; line-height: 1.2; }
.marque .nom { font-weight: 700; font-size: 1.15rem; }
.marque .accroche { font-weight: 400; font-size: 0.78rem; opacity: 0.85; margin-top: 0.1rem; }
.page { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.2rem 3rem; }
.intro { color: var(--discret); }
.jeux { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.jeu { display: flex; justify-content: space-between; padding: 0.8rem 1rem; background: #fff; border: 1px solid #dfe3da; border-radius: 8px; }
.jeu-nom { font-weight: 600; }
.etiquette { font-size: 0.85rem; color: var(--discret); }
.pied { text-align: center; font-size: 0.85rem; color: var(--discret); padding: 1rem; }
.sante { border-collapse: collapse; width: 100%; background: #fff; }
.sante th, .sante td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid #e5e8e1; }
.bon { color: var(--bon); font-weight: 600; }
.mauvais { color: var(--mauvais); font-weight: 600; }
.pied a { color: inherit; }

.outils { display: flex; gap: 1rem; align-items: center; } .outils a { white-space: nowrap; } .entete { gap: 0.8rem; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.carte { background: #fff; border: 1px solid #dfe3da; border-radius: 8px; padding: 1rem; margin: 0 0 1rem; }
.discret { color: var(--discret); font-size: 0.92rem; }
label { display: block; margin: 0.6rem 0 0.25rem; font-weight: 600; }
label.case { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
label.case input { margin-top: 0.3rem; }
input[type=text], input:not([type]), input[type=email] { width: 100%; font: inherit; padding: 0.6rem 0.7rem; border: 1px solid #b9c2b5; border-radius: 6px; }
button, .bouton { font: inherit; font-weight: 600; padding: 0.6rem 1rem; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; min-height: 44px; margin-top: 0.6rem; }
button.secondaire { background: #e6ebe2; color: var(--texte); }
button.danger { background: var(--mauvais); }
a.danger { color: var(--mauvais); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #e0a21b; outline-offset: 2px; }
.ligne-formulaire { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; }
.ligne-formulaire input:not([type=hidden]) { flex: 1 1 12rem; width: auto; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.message { padding: 0.7rem 0.9rem; border-radius: 6px; background: #fff; border-left: 4px solid var(--discret); }
.message.bon { border-left-color: var(--bon); }
.message.mauvais { border-left-color: var(--mauvais); }
.tableau { width: 100%; border-collapse: collapse; }
.tableau th, .tableau td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid #e5e8e1; }
[aria-current] { font-weight: 700; }

.regle { padding-left: 1.2rem; }
.mise-en-avant { border-color: var(--accent); border-width: 2px; }
.avancement { display: flex; justify-content: space-between; color: var(--discret); font-size: 0.92rem; }
.barre { height: 6px; background: #e6ebe2; border-radius: 3px; overflow: hidden; margin: 0 0 1rem; }
.barre span { display: block; height: 100%; width: 100%; background: #e0a21b; }
.enonce { font-size: 1.3rem; }
.propositions { display: grid; gap: 0.6rem; }
.proposition { width: 100%; text-align: left; background: #fff; color: var(--texte); border: 2px solid #b9c2b5; padding: 0.9rem 1rem; margin: 0; }
.proposition:hover { border-color: var(--accent); }
.verdict { padding: 0.9rem 1rem; border-radius: 8px; background: #fff; border-left: 6px solid; }
.verdict.bon { border-left-color: var(--bon); }
.verdict.mauvais { border-left-color: var(--mauvais); }
.verdict p { margin: 0.3rem 0; font-weight: 400; color: var(--texte); }
.verdict .verdict-titre { font-weight: 700; font-size: 1.15rem; }
.verdict.bon .verdict-titre { color: var(--bon); } .verdict.mauvais .verdict-titre { color: var(--mauvais); }
a.bouton { display: inline-block; text-decoration: none; }
.score-final { font-size: 1.1rem; } .score-final strong { font-size: 2.2rem; color: var(--accent); }
.cases { font-size: 1.6rem; letter-spacing: 0.15rem; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.detail { padding-left: 1.2rem; } .detail li { margin-bottom: 0.6rem; font-weight: 400; } .detail li p:first-child { color: var(--texte); } .detail p { margin: 0.1rem 0; }
.detail li.bon p:last-child { color: var(--bon); } .detail li.mauvais p:last-child { color: var(--mauvais); }
.rangs { padding-left: 1.2rem; }
.texte-partage { white-space: pre-wrap; background: #fff; border: 1px solid #dfe3da; border-radius: 8px; padding: 0.9rem; font: inherit; }
.onglets { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.onglets a { padding: 0.45rem 0.8rem; border-radius: 999px; background: #e6ebe2; color: var(--texte); text-decoration: none; }
.onglets a[aria-current] { background: var(--accent); color: #fff; }
.periode { display: flex; gap: 1rem; align-items: center; } .periode a { text-decoration: none; font-size: 1.3rem; padding: 0 0.4rem; }
.classement tr.moi td { background: #fdf3d8; font-weight: 600; }
.classement tr.separateur td { text-align: center; color: var(--discret); }
.etiquette.ouvert { color: var(--accent); font-weight: 600; }
.jeu a.jeu-nom { color: var(--texte); }
select { font: inherit; padding: 0.5rem; border-radius: 6px; border: 1px solid #b9c2b5; }

/* ---------- Publicité (lot 6) : hauteur réservée, jamais pendant une partie ---------- */
.pub[hidden] { display: none; }
.pub a { color: inherit; text-decoration: none; display: flex; gap: 0.7rem; align-items: center; }
.pub img { max-height: 100%; max-width: 40%; object-fit: contain; }
.pub small { color: var(--discret); }
.pub-bandeau { position: fixed; left: 0; right: 0; bottom: 0; height: 60px; padding: 0.4rem 1rem; background: #fff; border-top: 1px solid #dfe3da; z-index: 10; overflow: hidden; font-size: 0.9rem; }
.pub-bandeau a, .pub-bandeau .pub-regie { max-width: 46rem; margin: 0 auto; height: 100%; justify-content: center; position: relative; }
.pub-bandeau img { max-width: 100%; height: 100%; }
.pub-ligne { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-mention { position: absolute; right: 0; bottom: 0; font-size: 0.7rem; background: #fffc; padding: 0 0.3rem; border-radius: 3px; }
body:has(.pub-bandeau:not([hidden])) { padding-bottom: 60px; }
@media (min-width: 760px) { .pub-bandeau { height: 100px; } body:has(.pub-bandeau:not([hidden])) { padding-bottom: 100px; } }
.pub-presente { margin: -0.5rem 0 1rem; font-size: 0.88rem; color: var(--discret); }
.pub-presente img { height: 28px; }
.pub-interstitiel { min-height: 250px; background: #fff; border: 1px solid #dfe3da; border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.pub-interstitiel a { flex-direction: column; text-align: center; }
.pub-interstitiel img { max-width: 100%; max-height: 300px; }
.pause { text-align: center; }
