:root { --fond:#f6f5f2; --texte:#1d1d1f; --accent:#d01012; --carte:#fff; --bord:#e2e0da; }
@media (prefers-color-scheme: dark) { :root { --fond:#18181a; --texte:#eee; --carte:#232326; --bord:#333; } }
* { box-sizing: border-box; }
body { margin:0; font: 16px/1.45 system-ui, sans-serif; background:var(--fond); color:var(--texte); }
header { display:flex; gap:1rem; align-items:center; padding:.6rem 1rem; border-bottom:1px solid var(--bord); }
header #moi { margin-left:auto; opacity:.7; font-size:.9rem; }
header a { color:inherit; }
.lien { border:0; background:none; padding:0; text-decoration:underline; font-size:.9rem; opacity:.8; }
#liste-profils { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-bottom:.5rem; }
section { max-width:1100px; margin:0 auto; padding:1rem; }
h1, h2 { text-align:center; font-weight:650; }
#inscription { max-width:560px; }
form { display:flex; gap:.5rem; }
input { flex:1; padding:.7rem; font-size:1rem; border:1px solid var(--bord); border-radius:8px; background:var(--carte); color:inherit; }
button { font:inherit; cursor:pointer; border-radius:10px; border:1px solid var(--bord); background:var(--carte); color:inherit; padding:.7rem 1.1rem; }
form button, .bouton { background:var(--accent); color:#fff; border:0; }
.bouton { display:inline-block; padding:.8rem 1.4rem; border-radius:10px; text-decoration:none; font-weight:600; }
#paire { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.carte { padding:.5rem; display:flex; flex-direction:column; align-items:center; gap:.3rem; transition: transform .08s, border-color .08s; }
.carte:hover, .carte:focus-visible { border-color:var(--accent); transform:translateY(-2px); }
.carte.choisi { border-color:var(--accent); outline:3px solid var(--accent); }
.carte img { width:100%; max-height:62vh; object-fit:contain; background:#fff; border-radius:6px; }
.touche { font-size:.8rem; opacity:.55; }
.actions { display:flex; justify-content:center; margin-top:1rem; }
.petit { font-size:.85rem; opacity:.7; text-align:center; }
#erreur { color:var(--accent); text-align:center; }
@media (max-width:640px) { #paire { grid-template-columns:1fr; } .carte img { max-height:34vh; } .touche { display:none; } }
table { border-collapse:collapse; width:100%; font-size:.9rem; }
td, th { padding:.35rem .5rem; border-bottom:1px solid var(--bord); text-align:left; vertical-align:middle; }
td img { height:64px; background:#fff; border-radius:4px; }
.tag { font-size:.75rem; padding:.1rem .45rem; border-radius:99px; border:1px solid var(--bord); }
.tag.officielle { background:#e8f4ea; color:#145a24; } .tag.notre { background:#e8eef9; color:#1b3c78; } .tag.abime { background:#fbe9e9; color:#7a1414; }
.grille { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap:1.5rem; }
