/* Annuaire des serveurs moddes (pages/annuaire.php, pages/annuaire-fiche.php). Jetons : site.css.
   Direction : editoriale. Filets fins plutot que cartes, etiquettes en mono, et la couleur du
   serveur en aplat (--an-accent / --an-encre) : c'est le serveur qui habille sa page. */
.an { --an-accent: #3F3F46; --an-encre: #FFFFFF; padding-bottom: clamp(56px, 8vw, 112px); }
.an-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.an-interne { margin: 20px 0 0; padding: 10px 14px; border: 1px dashed var(--line-3); border-radius: var(--r); color: var(--t2); font-size: 14px; }
.an-label { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.an a:focus-visible, .an button:focus-visible, .an input:focus-visible, .an select:focus-visible, .an summary:focus-visible { outline: 2px solid var(--t1); outline-offset: 3px; }

/* ------------------------------------------------------------ tete */
.an-tete { padding: clamp(22px, 3vw, 36px) 0 clamp(18px, 2.5vw, 26px); display: grid; gap: 10px; max-width: 820px; }
.an-tete h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 650; line-height: 1.05; letter-spacing: -.03em; }
.an-tete p { font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.5; color: var(--t2); max-width: 620px; }

/* ------------------------------------------------------------ tuile du logo
   Fond choisi d'apres la clarte du logo (mesuree cote serveur) ; inconnu : couleur du serveur. */
.an-tuile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--an-accent); color: var(--an-encre); overflow: hidden; font-weight: 700; font-size: 24px; box-shadow: 0 0 0 1px rgba(9, 9, 11, .08); }
.an-tuile img { width: 100%; height: 100%; object-fit: contain; }
.an-tuile-sombre { background: #18181B; }
.an-tuile-claire { background: #FFFFFF; }
/* Logo detoure, sans tuile ni cadre (reglage « Logo sans fond » de la fiche) */
.an-tuile-nue, .an2-sans-banniere .an-tuile-nue { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }

/* ------------------------------------------------------------ a la une */
.an-une { margin: 4px 0 22px; }
.an-une .an-label { margin-bottom: 10px; }
.an-une-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.an-une-carte { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--an-accent); color: var(--an-encre); }
.an-une-img { width: 100%; height: 118px; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.an-une-vide { display: block; background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .12)); }
.an-sponso { position: absolute; top: 8px; right: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(9, 9, 11, .72); color: #fff; font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.an-une-carte:hover .an-une-img { transform: scale(1.025); }
.an-une-bande { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--an-accent); }
.an-une-bande .an-tuile { width: 38px; height: 38px; border-radius: 9px; font-size: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.an-une-bande > div { min-width: 0; }
.an-une-bande h4 { margin: 0; font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-une-bande h4 a { color: inherit; text-decoration: none; }
.an-une-bande h4 a::after { content: ''; position: absolute; inset: 0; }
.an-une-bande p { margin: 2px 0 0; font-size: 12.5px; opacity: .82; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------------------------------------ classement */
.an-cl-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--t1); }
.an-compte { margin: 0; font-size: 14px; color: var(--t3); }
.an-compte a { color: var(--t1); }
.an-onglets { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 16px 0 6px; }
.an-onglets a { display: inline-flex; align-items: center; min-height: 36px; color: var(--t3); font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.an-onglets a:hover { color: var(--t1); }
.an-onglets a[aria-current] { color: var(--t1); border-bottom-color: var(--t1); font-weight: 600; }
.an-filtres { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 18px; }
.an-recherche { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.an-recherche svg { position: absolute; left: 12px; width: 17px; height: 17px; fill: none; stroke: var(--t3); stroke-width: 2; stroke-linecap: round; }
.an-recherche input, .an-champ select { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--s1); color: var(--t1); font: inherit; font-size: 14.5px; }
.an-recherche input { padding: 0 12px 0 36px; }
.an-champ { flex: 0 1 190px; }
.an-champ select { padding: 0 10px; }
.an-filtres .btn { height: 44px; }

.an-lignes-cl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.an-ligne { position: relative; display: grid; grid-template-columns: 52px 156px minmax(0, 1fr) auto 96px; align-items: center; gap: 20px; padding: 18px 8px; border-bottom: 1px solid var(--line-2); transition: background .2s var(--ease); }
.an-ligne:hover { background: var(--s1); }
.an-rang { font: 500 22px/1 var(--mono); color: var(--t4); font-variant-numeric: tabular-nums; }
.an-ligne:nth-child(-n+3) .an-rang { color: var(--t1); }
.an-vignette { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--an-accent); }
.an-vignette > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-vignette .an-tuile { position: absolute; left: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 9px; font-size: 15px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.an-vignette:not(:has(> img)) .an-tuile { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 52px; height: 52px; box-shadow: none; }
.an-ligne-texte { min-width: 0; }
.an-ligne h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.an-ligne h3 a { color: var(--t1); text-decoration: none; }
/* Toute la ligne mene a la fiche ; « Jouer » reste cliquable au-dessus */
.an-ligne h3 a::after { content: ''; position: absolute; inset: 0; }
.an-jouer { position: relative; z-index: 1; min-height: 44px; }
.an-pitch { margin: 4px 0 0; font-size: 14.5px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.an-meta { margin: 6px 0 0; font: 12px/1.4 var(--mono); letter-spacing: .02em; color: var(--t3); }
.an-prive { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); vertical-align: middle; }
.an-ligne-chiffres { display: grid; justify-items: end; gap: 6px; font-size: 13px; color: var(--t3); text-align: right; }
.an-votes b { color: var(--t1); font-size: 15px; font-variant-numeric: tabular-nums; }
.an-vide { padding: 56px 16px; text-align: center; color: var(--t2); border-bottom: 1px solid var(--line-2); }
.an-pages { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; color: var(--t2); font-size: 14px; }

/* Statut en direct (rempli par annuaire.js) */
.an-statut { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t3); white-space: nowrap; }
.an-statut:empty { display: none; }
.an-statut::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--t4); }
.an-statut.on { color: var(--ok); }
.an-statut.on::before { background: var(--ok); }
.an-statut.maint { color: #92400E; }
.an-statut.maint::before { background: #B45309; }

/* ------------------------------------------------------------ fiche */
.an-fiche .ariane { margin-top: 22px; }
.an-hero { margin-top: 16px; border-radius: var(--r-xl); overflow: hidden; background: var(--an-accent); color: var(--an-encre); }
.an-hero-img { aspect-ratio: 32 / 9; background: var(--an-accent); }
.an-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-hero-bande { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 0 28px 26px; }
.an-hero-bande .an-tuile { width: 104px; height: 104px; border-radius: 22px; margin-top: -40px; font-size: 40px; box-shadow: 0 0 0 4px var(--an-accent); }
.an-hero-titre { padding-top: 20px; min-width: 0; }
/* Sans banniere : pas de grand bloc vide, le bandeau commence tout de suite */
.an-hero-nu .an-hero-img { display: none; }
.an-hero-nu .an-hero-bande { padding-top: 28px; }
.an-hero-nu .an-hero-bande .an-tuile { margin-top: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.an-hero-nu .an-hero-titre, .an-hero-nu .an-hero-actions { padding-top: 0; }
.an-hero-titre h1 { margin: 0; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.03em; overflow-wrap: anywhere; }
.an-hero-titre p { margin: 8px 0 0; font-size: 16.5px; line-height: 1.45; opacity: .85; max-width: 640px; }
.an-statut-bande { margin-top: 10px; color: inherit; opacity: .9; }
.an-statut-bande.on, .an-statut-bande.maint { color: inherit; }
.an-statut-bande.on::before { background: #4ADE80; }
.an-hero-actions { display: flex; gap: 10px; padding-top: 20px; }
.an-hero-actions form { margin: 0; }
.an-bouton { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: var(--r); border: 1.5px solid currentColor; background: transparent; color: inherit; font: 600 15px var(--font); text-decoration: none; cursor: pointer; transition: opacity .2s var(--ease), transform .1s; }
.an-bouton:hover { opacity: .85; }
.an-bouton:active { transform: translateY(1px); }
.an-bouton b { padding-left: 10px; border-left: 1px solid currentColor; font-variant-numeric: tabular-nums; opacity: .9; }
.an-bouton[disabled] { opacity: .6; cursor: default; }
.an-bouton-plein { background: var(--an-encre); color: var(--an-accent); border-color: var(--an-encre); }
.an-message { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--ok); background: var(--s1); color: var(--t1); font-size: 14.5px; }
.an-message-erreur { border-left-color: #B91C1C; }

.an-specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 28px 0 0; border-top: 1px solid var(--t1); border-bottom: 1px solid var(--line-2); }
.an-specs div { padding: 14px 14px 16px; border-left: 1px solid var(--line-2); }
.an-specs div:first-child { border-left: 0; padding-left: 0; }
.an-specs dt { font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.an-specs dd { margin: 8px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--t1); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.an-diese { color: var(--t4); font-weight: 500; }
.an-spec-large { grid-column: span 2; }
.an-ip { font-family: var(--mono); font-size: 18px !important; }
.an-ajouter { margin: 2px 0 0; font-size: 15px; }
/* Referencement : FAQ, themes, maillage */
.an-faq { margin-top: 40px; max-width: 820px; }
.an-faq .an-label { margin-bottom: 10px; }
.an-faq details { border-bottom: 1px solid var(--line-2); }
.an-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--t1); }
.an-faq p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--t2); }
.an-explorer { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.an-explorer .an-label { margin-bottom: 14px; }
.an-explorer ul { list-style: none; margin: 0; padding: 0; columns: 4 180px; column-gap: 24px; }
.an-explorer li { break-inside: avoid; }
.an-explorer a { display: inline-flex; align-items: center; min-height: 36px; color: var(--t2); font-size: 14.5px; text-decoration: none; }
.an-explorer a:hover, .an-explorer a[aria-current] { color: var(--t1); text-decoration: underline; text-underline-offset: 3px; }
.an-themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.an-themes a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--t1); font-size: 14px; text-decoration: none; background: var(--s1); }
.an-themes a:hover { border-color: var(--line-3); }
.an-similaires ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.an-similaires a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); color: var(--t1); text-decoration: none; }
.an-similaires a:hover { border-color: var(--line-3); }
.an-similaires .an-tuile { width: 40px; height: 40px; border-radius: 10px; font-size: 16px; }
.an-similaires b { display: block; font-size: 15px; }
.an-similaires small { display: block; font-size: 12.5px; color: var(--t3); margin-top: 2px; }
.an-equipe { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.an-equipe li { display: flex; align-items: center; gap: 12px; }
.an-equipe img { width: 36px; height: 36px; border-radius: 7px; image-rendering: pixelated; background: var(--s3); }
.an-equipe b { display: block; font-size: 15px; }
.an-equipe small { display: block; font-size: 13px; color: var(--t3); }
/* Porte d'entree « Ajouter mon serveur » */
.an-porte-points { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; }
.an-porte-points li { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); }
.an-porte-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--ink-fg); display: inline-flex; align-items: center; justify-content: center; font: 600 13px var(--mono); }
.an-porte-points b { font-size: 15.5px; }
.an-porte-points p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--t2); }
.an-porte-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .an-porte-points { grid-template-columns: 1fr; } }
/* Ajouter un serveur */
.an-form { display: grid; gap: 18px; max-width: 820px; }
.an-f-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.an-f-champ { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--t1); }
.an-f-champ input, .an-f-champ select, .an-f-champ textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--s1); color: var(--t1); font: inherit; font-size: 15px; font-weight: 400; }
.an-f-champ small { font-weight: 400; color: var(--t3); font-size: 13px; }
.an-f-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; border: 0; }
.an-f-tags legend { width: 100%; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.an-f-tags label, .an-f-coche { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14.5px; color: var(--t2); }
.an-f-tags input, .an-f-coche input { width: 18px; height: 18px; accent-color: var(--t1); }
.an-f-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0; }
.an-encadre { max-width: 820px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--s1); }
.an-encadre h2 { margin: 0 0 12px; font: 600 20px/1.3 var(--font); letter-spacing: -.01em; text-transform: none; color: var(--t1); }
.an-code { padding: 3px 8px; border-radius: 6px; background: var(--s3); font: 600 16px var(--mono); }
.an-etapes { margin: 16px 0 20px; padding-left: 20px; display: grid; gap: 10px; color: var(--t2); line-height: 1.55; }
.an-etapes code { font-family: var(--mono); font-size: 13.5px; background: var(--s3); padding: 1px 5px; border-radius: 4px; }
.an-ip-petit { font: 400 13px var(--mono); color: var(--t3); margin-left: 8px; }
.an-mes-actions { display: inline-flex; align-items: center; gap: 14px; }
.an-mes-actions a, .an-lien-danger { color: var(--t1); font-size: 14px; }
.an-mes-actions form { margin: 0; }
.an-lien-danger { border: 0; background: none; padding: 0; font: inherit; color: #B91C1C; cursor: pointer; text-decoration: underline; }
@media (max-width: 720px) { .an-f-grille { grid-template-columns: 1fr; } .an-spec-large { grid-column: span 2; } }
.an-ajouter a { color: var(--t1); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.an-corps { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); margin-top: clamp(32px, 4vw, 48px); }
.an-section { margin-bottom: 36px; }
.an-section h2 { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.an-texte { margin: 0; font-size: 17px; line-height: 1.65; color: var(--t1); max-width: 680px; }
.an-texte-petit { margin: 0 0 24px; font-size: 13.5px; line-height: 1.55; color: var(--t3); }
.an-galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.an-galerie img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); display: block; }
.an-galerie img:first-child:nth-last-child(odd) { grid-column: span 2; }
.an-lignes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.an-lignes li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.an-lignes span { color: var(--t3); font-size: 14px; }
.an-mods { list-style: none; margin: 0; padding: 0; columns: 3 180px; column-gap: 24px; }
.an-mods li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--t2); }
.an-cartes-mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.an-cartes-mods a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); color: var(--t1); text-decoration: none; transition: border-color .2s var(--ease); }
.an-cartes-mods a:hover { border-color: var(--line-3); }
.an-mod-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--s3); overflow: hidden; font-weight: 700; color: var(--t2); }
.an-mod-ic img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.an-mod-t { display: grid; gap: 2px; min-width: 0; }
.an-mod-t b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-mod-t span { font-size: 12.5px; line-height: 1.35; color: var(--t3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-source { margin: 10px 0 0; font-size: 12px; color: var(--t4); }
.an-plus { margin-top: 14px; }
.an-plus summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--t1); }
.an-plus[open] summary { margin-bottom: 8px; }
.an-courbe { display: block; width: 100%; height: 72px; border-bottom: 1px solid var(--line-2); }
.an-courbe polyline { stroke: var(--t1); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.an-legende { margin: 0; }
.an-legende div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.an-legende dt { color: var(--t3); }
.an-legende dd { margin: 0; font-weight: 600; color: var(--t1); font-variant-numeric: tabular-nums; }
.an-courbe-vide { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.an-liens { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.an-liens a { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--line-2); color: var(--t1); text-decoration: none; font-size: 15px; }
.an-liens a svg { width: 20px; height: 20px; flex: none; color: var(--t2); }
.an-liens a span { flex: 1; }
.an-liens a::after { content: '↗'; color: var(--t3); }
.an-liens a:hover { color: var(--t2); }
.an-fin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.an-fin p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--t2); }
.an-fin b { color: var(--t1); }
.an-fin a { color: var(--t1); font-weight: 600; }
.an-retour { display: inline-flex; margin-top: 28px; color: var(--t2); font-size: 14px; }

/* ------------------------------------------------------------ petits ecrans */
@media (max-width: 960px) {
  .an-ligne { grid-template-columns: 40px 120px minmax(0, 1fr) auto; }
  .an-ligne-chiffres { display: none; }
  .an-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-specs div:nth-child(4) { border-left: 0; padding-left: 0; }
  .an-specs div:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .an-corps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .an-une-grille { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .an-une-carte { scroll-snap-align: start; }
  .an-ligne { grid-template-columns: 28px 88px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .an-ligne .an-jouer { display: none; }
  .an-rang { font-size: 15px; }
  .an-vignette .an-tuile { width: 26px; height: 26px; left: 5px; bottom: 5px; border-radius: 7px; font-size: 12px; }
  .an-vignette:not(:has(> img)) .an-tuile { width: 36px; height: 36px; }
  .an-champ { flex: 1 1 calc(50% - 4px); }
  .an-filtres .btn { flex: 1 1 calc(50% - 4px); }
  .an-pitch { display: none; }
  .an-hero-img { aspect-ratio: 16 / 9; }
  .an-hero-bande { grid-template-columns: 1fr; gap: 0; padding: 0 18px 20px; }
  .an-hero-bande .an-tuile { width: 76px; height: 76px; border-radius: 18px; margin-top: -38px; font-size: 30px; }
  .an-hero-titre { padding-top: 12px; }
  .an-hero-actions { padding-top: 18px; flex-wrap: wrap; }
  .an-hero-actions > *, .an-hero-actions form, .an-hero-actions .an-bouton { flex: 1 1 auto; justify-content: center; }
  .an-hero-actions form .an-bouton { width: 100%; }
  .an-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-specs div:nth-child(4) { border-left: 1px solid var(--line-2); padding-left: 14px; }
  .an-specs div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .an-specs div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .an-fin { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .an-une-img, .an-ligne { transition: none; } .an-une-carte:hover .an-une-img { transform: none; } }

/* ======================================================================= phase B
   Direction « accueillante » : fond clair a points, cartes blanches arrondies, colonne de
   navigation avec compteurs, boite de vote, couleurs douces par theme. La couleur du serveur
   (--an-accent) sert d'accent, jamais de fond criard. */
.an2 { padding-bottom: clamp(48px, 7vw, 96px); }
.an2-cadre { max-width: 1480px; margin: 0 auto; padding: 0 var(--gouttiere); }
/* La fiche garde des lignes de texte lisibles */
.an2-fiche .an2-cadre { max-width: 1280px; }
.an2 .an-interne { margin-top: 16px; }

/* ---------------------------------------------------------------- en-tete */
.an2-hero { background-color: var(--s1); background-image: radial-gradient(var(--canvas-dot) 1px, transparent 1.2px); background-size: 18px 18px; border-bottom: 1px solid var(--line); }
.an2-hero-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(24px, 3vw, 36px); padding-bottom: clamp(28px, 3.5vw, 44px); }
.an2-hero h1 { margin: 10px 0 0; font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.an2-chapo { margin: 12px 0 0; font-size: clamp(15.5px, 1.4vw, 17.5px); line-height: 1.55; color: var(--t2); max-width: 620px; }
.an2-recherche { position: relative; display: flex; gap: 8px; margin-top: 22px; max-width: 640px; }
.an2-recherche svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--t3); pointer-events: none; }
.an2-recherche input { flex: 1; min-width: 0; height: 52px; padding: 0 16px 0 44px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--s1); color: var(--t1); font: inherit; font-size: 15.5px; box-shadow: 0 1px 2px rgba(9, 9, 11, .05); }
.an2-recherche input:focus { outline: 2px solid var(--t1); outline-offset: 1px; }
.an2-recherche .btn { height: 52px; border-radius: 14px; }
.an2-populaires { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0 0; font-size: 13.5px; color: var(--t3); }
.an2-populaires a { color: var(--t1); text-decoration: none; border-bottom: 1px solid var(--line-3); }
.an2-populaires a:hover { border-bottom-color: var(--t1); }
.an2-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--s1); box-shadow: 0 1px 2px rgba(9, 9, 11, .04), 0 16px 40px -24px rgba(9, 9, 11, .25); }
.an2-chiffres > div { display: grid; gap: 2px; padding: 6px 8px; }
.an2-chiffres b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.an2-chiffres span { font-size: 12.5px; color: var(--t3); line-height: 1.3; }
.an2-chiffres-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 10px; border-radius: 12px; background: var(--ink); color: var(--ink-fg); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.an2-chiffres-cta:hover { background: var(--ink-hover); }
.an2-chiffres-cta svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- trois colonnes */
.an2-grille { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 36px; padding-top: 28px; align-items: start; }
.an2-gauche { position: sticky; top: 84px; }
.an2-nav { display: grid; gap: 2px; }
.an2-nav h2 { margin: 18px 0 6px; padding: 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.an2-nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 9px; color: var(--t2); font-size: 14.5px; text-decoration: none; }
.an2-nav a span:not(.an2-pastille) { flex: 1; }
.an2-nav a small { color: var(--t3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.an2-nav a:hover { background: var(--s1); color: var(--t1); }
.an2-nav a[aria-current] { background: var(--s1); color: var(--t1); font-weight: 600; box-shadow: 0 1px 2px rgba(9, 9, 11, .06); }
.an2-pastille { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.an2-titre { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.an2-titre small { font-size: 13px; font-weight: 400; color: var(--t3); }
.an2-centre .an-une { margin: 0 0 26px; }
.an2-centre .an-une .an2-titre { margin-bottom: 12px; }
.an2-barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.an2-tri { margin: 0; }
.an2-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--s3); }
.an2-seg button { height: 34px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: var(--t2); font: inherit; font-size: 13.5px; cursor: pointer; }
.an2-seg button[aria-pressed="true"] { background: var(--s1); color: var(--t1); font-weight: 600; box-shadow: 0 1px 2px rgba(9, 9, 11, .1); }
.an2-filtre { margin: -4px 0 12px; font-size: 13.5px; color: var(--t3); }
.an2-filtre a { color: var(--t1); }

/* ---------------------------------------------------------------- lignes du classement */
.an2-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.an2-liste .an-ligne { position: relative; display: grid; grid-template-columns: 30px 196px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 16px 20px 16px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--s1); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.an2-liste .an-ligne:hover { border-color: var(--line-3); box-shadow: 0 10px 28px -18px rgba(9, 9, 11, .35); transform: translateY(-1px); }
.an2-liste .an2-top { box-shadow: inset 3px 0 0 var(--an-accent); }
.an2-liste .an2-top:hover { box-shadow: inset 3px 0 0 var(--an-accent), 0 10px 28px -18px rgba(9, 9, 11, .35); }
.an2-rang { font: 600 15px/1 var(--mono); color: var(--t4); text-align: center; font-variant-numeric: tabular-nums; }
.an2-top .an2-rang { color: var(--t1); font-size: 17px; }
.an2-vignette { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--an-accent); }
.an2-vignette-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an2-media-vide { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .14)); }
.an2-vignette .an-tuile { position: absolute; left: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 10px; font-size: 15px; box-shadow: 0 0 0 2px var(--s1); }
.an2-corps { min-width: 0; display: grid; gap: 4px; }
.an2-corps h3 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.an2-corps h3 a { color: var(--t1); text-decoration: none; }
.an2-corps h3 a::after { content: ''; position: absolute; inset: 0; }
.an2-corps .an-pitch { margin: 0; -webkit-line-clamp: 2; }
.an2-infos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.an2-infos .an-meta { margin: 0; }
.an2-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }

/* Boite de vote */
.an2-vote { display: grid; place-items: center; gap: 0; width: 58px; height: 60px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--s1); color: var(--t1); text-decoration: none; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.an2-vote svg { width: 18px; height: 18px; }
.an2-vote b { font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1; }
.an2-vote:hover { border-color: var(--t1); transform: translateY(-1px); }
.an2-vote:focus-visible { outline: 2px solid var(--t1); outline-offset: 2px; }
.an2-vote-grand { width: auto; min-width: 92px; height: auto; padding: 10px 14px; gap: 2px; }
.an2-vote-grand b { font-size: 22px; }
.an2-vote-grand span { font-size: 12.5px; font-weight: 600; color: var(--t2); }
.an2-vote[disabled] { cursor: default; border-color: var(--ok); color: var(--ok); }
.an2-vote[disabled]:hover { transform: none; }

/* Badges et pastilles de theme */
.an2-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 999px; background: var(--s3); color: var(--t2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.an2-badge svg { width: 14px; height: 14px; }
.an2-badge-ok { background: #DCFCE7; color: #166534; }
.an2-badge-cl { background: var(--ink); color: var(--ink-fg); }
.an2-puce { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 500; text-decoration: none; }
.an2-ambre { background: #FEF3C7; color: #92400E; } .an2-pastille.an2-ambre { background: #F59E0B; }
.an2-rouge { background: #FEE2E2; color: #991B1B; } .an2-pastille.an2-rouge { background: #EF4444; }
.an2-jaune { background: #FEF9C3; color: #854D0E; } .an2-pastille.an2-jaune { background: #EAB308; }
.an2-bleu { background: #DBEAFE; color: #1E40AF; } .an2-pastille.an2-bleu { background: #3B82F6; }
.an2-violet { background: #EDE9FE; color: #5B21B6; } .an2-pastille.an2-violet { background: #8B5CF6; }
.an2-ardoise { background: #F1F5F9; color: #334155; } .an2-pastille.an2-ardoise { background: #64748B; }
.an2-sarcelle { background: #CCFBF1; color: #115E59; } .an2-pastille.an2-sarcelle { background: #14B8A6; }
.an2-rose { background: #FCE7F3; color: #9D174D; } .an2-pastille.an2-rose { background: #EC4899; }

/* ---------------------------------------------------------------- colonne de droite */
.an2-droite { display: grid; gap: 14px; position: sticky; top: 84px; }
.an2-carte { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--s1); }
.an2-carte h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.an2-carte h2 small { font-size: 12.5px; font-weight: 400; color: var(--t3); }
.an2-carte p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--t2); }
.an2-cta { padding: 20px; border-radius: 18px; background: var(--ink); color: var(--ink-fg); }
.an2-cta-label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.an2-cta h2 { margin: 10px 0 10px; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.an2-cta p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; opacity: .94; }
.an2-cta ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.an2-cta li { display: flex; gap: 8px; opacity: .88; }
.an2-cta li::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: #4ADE80; }
.an2-cta-btn { width: 100%; height: 44px; background: var(--ink-fg); color: var(--ink); border-color: var(--ink-fg); font-weight: 600; }
.an2-cta-btn:hover { background: #E4E4E7; }
.an2-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.an2-mini a { display: flex; align-items: center; gap: 10px; padding: 6px; margin: 0 -6px; border-radius: 10px; color: var(--t1); text-decoration: none; }
.an2-mini a:hover { background: var(--s2); }
.an2-mini .an-tuile { width: 36px; height: 36px; border-radius: 9px; font-size: 14px; }
.an2-mini b { display: block; font-size: 14px; }
.an2-mini small { display: block; font-size: 12px; color: var(--t3); }
.an2-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--t3); }

/* ---------------------------------------------------------------- fiche */
.an2-fiche .ariane { margin-top: 18px; }
.an2-fiche-haut { margin-top: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--s1); overflow: hidden; box-shadow: 0 1px 2px rgba(9, 9, 11, .04), 0 18px 48px -32px rgba(9, 9, 11, .3); }
.an2-banniere { aspect-ratio: 32 / 9; background: var(--an-accent); }
.an2-banniere img, .an2-banniere video { width: 100%; height: 100%; object-fit: cover; display: block; }
.an2-entete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; padding: 0 26px 24px; }
.an2-logo { width: 108px; height: 108px; margin-top: -48px; border-radius: 24px; font-size: 40px; box-shadow: 0 0 0 5px var(--s1), 0 8px 24px -10px rgba(9, 9, 11, .4); }
.an2-entete-texte { padding-top: 16px; min-width: 0; }
.an2-entete-texte h1 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.an2-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.an2-badges .an-statut { margin-left: 4px; }
.an2-accroche { margin: 12px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--t2); max-width: 640px; }
.an2-createur { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: var(--t3); }
.an2-createur img { width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; }
.an2-createur b { color: var(--t1); }
.an2-certif svg { width: 16px; height: 16px; color: #16A34A; display: block; }
.an2-entete-actions { display: flex; align-items: flex-start; gap: 12px; padding-top: 18px; }
.an2-entete-actions form { margin: 0; }
.an2-entete-boutons { display: grid; gap: 6px; justify-items: stretch; }
.an2-entete-boutons .btn { height: 48px; }
.an2-plateformes { font-size: 12.5px; color: var(--t3); text-align: center; }
.an2-sans-banniere .an2-banniere { display: none; }
.an2-sans-banniere .an2-entete { padding-top: 24px; }
.an2-sans-banniere .an2-logo { margin-top: 0; box-shadow: 0 0 0 1px var(--line); }
.an2-fiche .an-message { margin-top: 14px; }
.an2-fiche-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 20px; align-items: start; }
.an2-fiche-principal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.an2-fiche-principal > * { min-width: 0; }
.an2-fiche-principal .an-texte { font-size: 16px; }
.an2-fiche-principal .an-themes { margin: 16px 0 0; gap: 6px; }
.an2-fiche-principal .an-galerie img { border-radius: 12px; }
.an2-fiche-cote { display: grid; gap: 14px; position: sticky; top: 84px; }
.an2-infos-liste.an-specs { display: block; margin: 0; border: 0; grid-template-columns: none; }
.an2-infos-liste.an-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); }
.an2-infos-liste.an-specs div:last-child { border-bottom: 0; }
.an2-infos-liste.an-specs dt { font: 400 13.5px var(--font); letter-spacing: 0; text-transform: none; color: var(--t3); }
.an2-infos-liste.an-specs dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--t1); text-align: right; }
.an2-infos-liste .an-ip { font-family: var(--mono); font-size: 13.5px !important; }
.an2-fiche-cote .an-courbe { height: 56px; margin-top: 10px; border: 0; }
.an2-legende-courbe { margin: 4px 0 0; font-size: 12px; color: var(--t4); }
.an2-fiche-cote .an-liens { border-top: 0; }
.an2-fiche-cote .an-liens a { min-height: 44px; }
.an2-fiche-cote .an-liens li:last-child a { border-bottom: 0; }
.an2-fiche .an-similaires { margin-top: 6px; }
.an2-fiche .an-similaires .an2-titre { margin-bottom: 12px; }
.an2-fiche .an-similaires a { border-radius: 14px; }

/* ---------------------------------------------------------------- tailles d'ecran */
@media (max-width: 1180px) {
  .an2-grille { grid-template-columns: minmax(0, 1fr) 280px; }
  .an2-gauche { display: none; }
}
@media (max-width: 900px) {
  .an2-hero-grille, .an2-grille, .an2-fiche-grille { grid-template-columns: minmax(0, 1fr); }
  .an2-droite, .an2-fiche-cote { position: static; }
  .an2-entete { grid-template-columns: auto minmax(0, 1fr); }
  .an2-entete-actions { grid-column: 1 / -1; padding-top: 0; }
  .an2-entete-boutons { flex: 1; }
}
@media (max-width: 640px) {
  .an2-liste .an-ligne { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .an2-rang { display: none; }
  .an2-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .an2-vote { width: auto; height: 40px; grid-auto-flow: column; gap: 6px; padding: 0 12px; }
  .an2-vignette .an-tuile { width: 28px; height: 28px; left: 5px; bottom: 5px; border-radius: 8px; font-size: 12px; }
  .an2-recherche .btn { padding: 0 14px; }
  .an2-entete { grid-template-columns: 1fr; padding: 0 18px 20px; gap: 12px; }
  .an2-logo { width: 84px; height: 84px; margin-top: -42px; border-radius: 20px; font-size: 32px; }
  .an2-entete-texte { padding-top: 0; }
  .an2-entete-actions { flex-wrap: wrap; }
  .an2-chiffres b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .an2-liste .an-ligne, .an2-vote { transition: none; } .an2-liste .an-ligne:hover { transform: none; } }

/* Themes de la fiche : liens colores (l'ancienne regle .an-themes a les rendait en contour gris) */
.an-themes a.an2-puce { min-height: 30px; height: auto; padding: 0 11px; border: 0; border-radius: 8px; font-size: 13.5px; }
.an-themes a.an2-ambre { background: #FEF3C7; color: #92400E; }
.an-themes a.an2-rouge { background: #FEE2E2; color: #991B1B; }
.an-themes a.an2-jaune { background: #FEF9C3; color: #854D0E; }
.an-themes a.an2-bleu { background: #DBEAFE; color: #1E40AF; }
.an-themes a.an2-violet { background: #EDE9FE; color: #5B21B6; }
.an-themes a.an2-ardoise { background: #F1F5F9; color: #334155; }
.an-themes a.an2-sarcelle { background: #CCFBF1; color: #115E59; }
.an-themes a.an2-rose { background: #FCE7F3; color: #9D174D; }
.an-themes a.an2-puce:hover { filter: brightness(.96); }
.an2 .an-explorer { margin-top: 40px; padding-top: 0; border-top: 0; }
/* Trait aligne sur le contenu (la bordure du cadre debordait dans la gouttiere) */
.an2 .an-explorer::before { content: ''; display: block; border-top: 1px solid var(--line-2); margin-bottom: 22px; }

@media (max-width: 640px) { .an2-recherche .btn { flex: none; } .an2-hero-grille > * { min-width: 0; } }

/* ================================================================ phase C : premium, sponsors, image en coupe
   Degrade « cerisier » des pubs CraftLauncher (motion-studio, charte.ts) : teintes relevees sur de vraies
   images, mouvement lent. Reserve aux sponsors et au podium du mois, pour qu'il garde sa valeur. */
.an2 { --an-maille: linear-gradient(115deg, #496FA1 0%, #82517A 20%, #B56F9D 38%, #E3A9CF 50%, #6887B2 68%, #454364 84%, #496FA1 100%); }
@keyframes an-maille { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes an-maille-bord { from { background-position: 0 0, 0 0, 0% 50%; } to { background-position: 0 0, 0 0, 100% 50%; } }

/* Ajouter mon serveur : texte blanc franc (heritait d'une couleur de lien grise) */
.an2 a.an2-chiffres-cta, .an2 a.an2-chiffres-cta:hover { color: #FFFFFF; font-size: 15px; }

/* Encart « propre launcher » : coches dessinees, plus de pastilles */
.an2-cta li { align-items: flex-start; gap: 10px; opacity: 1; line-height: 1.45; }
.an2-cta li::before { content: none; }
.an2-coche { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #FFFFFF; }
.an2-coche svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- A la une */
.an2 .an-une-carte { aspect-ratio: 16 / 10; border-radius: 18px; background: #18181B; color: #FFFFFF; isolation: isolate; box-shadow: 0 1px 2px rgba(9, 9, 11, .06), 0 18px 40px -26px rgba(9, 9, 11, .55); }
.an2 .an-une-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.an2 .an-une-carte::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to top, rgba(16, 13, 30, .94) 0%, rgba(16, 13, 30, .6) 34%, rgba(16, 13, 30, 0) 66%); }
.an2 .an-une-bande { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px; background: none; }
.an2 .an-une-bande .an-tuile { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.an2 .an-une-bande h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an2 .an-une-bande h3 a { color: #FFFFFF; text-decoration: none; }
.an2 .an-une-bande h3 a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.an2 .an-une-bande p { color: rgba(255, 255, 255, .78); opacity: 1; }
.an2 .an-une-carte.an2-premium { border: 2px solid transparent; background: linear-gradient(#18181B, #18181B) padding-box, linear-gradient(#18181B, #18181B) padding-box, var(--an-maille) border-box; background-size: 100% 100%, 100% 100%, 300% 100%; animation: an-maille-bord 7s ease-in-out infinite alternate; box-shadow: 0 20px 44px -24px rgba(69, 67, 100, .7); }
/* Etiquette « Sponsorise » : lisible au premier coup d'oeil */
.an2 .an-sponso { top: 12px; left: 12px; right: auto; z-index: 3; padding: 6px 11px; border-radius: 999px; background: var(--an-maille); background-size: 300% 100%; animation: an-maille 6s ease-in-out infinite alternate; color: #FFFFFF; font: 700 11.5px/1 var(--font, inherit); letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 6px 16px -6px rgba(16, 13, 30, .7); }

/* ---------------------------------------------------------------- lignes : image a droite, coupe nette ou fondu */
.an2-liste .an-ligne { grid-template-columns: 44px 64px minmax(0, 1fr) 38%; min-height: 118px; overflow: hidden; isolation: isolate; padding: 16px 18px 16px 10px; }
.an2-liste .an-ligne.an2-sans-image { grid-template-columns: 44px 64px minmax(0, 1fr) auto; }
.an2-liste .an-ligne > .an-tuile { width: 64px; height: 64px; border-radius: 16px; font-size: 24px; }
.an2-actions { justify-self: end; }
.an2-fond { position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: 40%; background: #27272A; }
.an2-fond-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.an2-liste .an-ligne:hover .an2-fond-img { transform: scale(1.03); }
.an2-fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 9, 11, 0) 40%, rgba(9, 9, 11, .28)); }
.an2-coupe-coupe .an2-fond { clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%); }
/* Fondu SANS aucune coupure : pas de decoupe ; le bord gauche de l image est entierement transparent (projection max ~0,52 x hauteur < 115 px), puis long degrade dans la diagonale de la coupe nette (121deg) */
.an2-coupe-fondu .an2-fond { -webkit-mask-image: linear-gradient(121deg, transparent 0, transparent 115px, rgba(0, 0, 0, .12) 160px, rgba(0, 0, 0, .45) 230px, rgba(0, 0, 0, .8) 300px, #000 360px); mask-image: linear-gradient(121deg, transparent 0, transparent 115px, rgba(0, 0, 0, .12) 160px, rgba(0, 0, 0, .45) 230px, rgba(0, 0, 0, .8) 300px, #000 360px); }
.an2-fond ~ .an2-actions .an2-vote { background: rgba(255, 255, 255, .94); border-color: rgba(255, 255, 255, .6); box-shadow: 0 6px 18px -8px rgba(9, 9, 11, .5); }
.an2-fond ~ .an2-actions .an-jouer { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 6px 18px -8px rgba(9, 9, 11, .6); }

/* Podium du mois et sponsors : liseré anime, rang en degrade */
.an2-liste .an2-top, .an2-liste .an2-top:hover { box-shadow: none; }
.an2-liste .an-ligne.an2-premium { border: 2px solid transparent; background: linear-gradient(100deg, rgba(181, 111, 157, .1), rgba(104, 135, 178, 0) 42%) padding-box, linear-gradient(var(--s1), var(--s1)) padding-box, var(--an-maille) border-box; background-size: 100% 100%, 100% 100%, 300% 100%; animation: an-maille-bord 7s ease-in-out infinite alternate; box-shadow: 0 16px 36px -26px rgba(69, 67, 100, .7); }
.an2-liste .an-ligne.an2-premium:hover { box-shadow: 0 20px 40px -24px rgba(69, 67, 100, .8); }
.an2-premium .an2-rang { font-size: 24px; font-weight: 800; color: transparent; background: var(--an-maille); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: an-maille 7s ease-in-out infinite alternate; }
.an2-sponso .an2-rang { font-size: 0; background: none; animation: none; }
.an2-rang-sponso { display: inline-block; padding: 5px 6px; border-radius: 7px; background: var(--an-maille); background-size: 300% 100%; animation: an-maille 6s ease-in-out infinite alternate; color: #FFFFFF; font: 700 9.5px/1 var(--font, inherit); letter-spacing: .05em; text-transform: uppercase; }

.an2-badge-prive { background: #F4F4F5; color: #3F3F46; box-shadow: inset 0 0 0 1px var(--line-2); }
.an2-image-desc.an-vboucle { margin-top: 18px; }
.an2-image-desc { display: block; width: 100%; height: auto; margin-top: 18px; border-radius: 14px; }

@media (max-width: 640px) {
  .an2-liste .an-ligne, .an2-liste .an-ligne.an2-sans-image { grid-template-columns: 48px minmax(0, 1fr); min-height: 0; padding: 12px; }
  .an2-liste .an-ligne > .an-tuile { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }
  .an2-fond { display: none; }
  .an2-actions { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .an2 .an-une-carte.an2-premium, .an2 .an-sponso, .an2-liste .an-ligne.an2-premium, .an2-premium .an2-rang, .an2-rang-sponso { animation: none; }
  .an2-fond-img { transition: none; }
}
/* Le libelle du bouton heritait de la couleur grise des legendes des compteurs */
.an2-chiffres .an2-chiffres-cta span { color: inherit; font-size: inherit; line-height: 1; }
/* Apercu de l'editeur : le serveur en cours de modification, reperable */
.an2-liste .an-ligne.an2-apercu { outline: 3px solid rgba(104, 135, 178, .55); outline-offset: 3px; }
.an2 .an-une-carte.an2-apercu-une { outline: 3px solid rgba(104, 135, 178, .55); outline-offset: 3px; }

/* Fiche : « A la une » (sponsorises du jour) entre les mods et les serveurs similaires, ou encart pour y figurer */
.an2-fiche .an-fiche-une { margin-top: 6px; }
.an2-fiche .an-fiche-une .an2-titre { margin-bottom: 12px; }
.an-fiche-une ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.an-fu-carte { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--s1); isolation: isolate; }
.an-fu-carte:hover { border-color: var(--line-3); }
.an-fu-carte a { display: flex; flex-direction: column; color: var(--t1); text-decoration: none; height: 100%; }
.an-fu-img { display: block; aspect-ratio: 16 / 7; background: var(--an-accent, #27272A) center / cover no-repeat; }
.an-fu-carte .an-sponso { position: absolute; top: 10px; left: 10px; }
.an-fu-bas { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; min-width: 0; }
.an-fu-bas > span:last-child { min-width: 0; }
.an-fu-bas .an-tuile { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; flex: none; margin-top: -26px; box-shadow: 0 0 0 3px var(--s1); }
.an-fu-bas b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-fu-bas small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.4; color: var(--t3); margin-top: 2px; }
.an-fu-vide { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1px dashed var(--line-3); border-radius: 14px; background: var(--s1); }
.an-fu-vide > div { flex: 1 1 280px; }
.an-fu-vide b { display: block; font-size: 15px; }
.an-fu-vide p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--t2); }

/* Page /sortie : avertissement avant un lien exterieur (pages/sortie.php) */
.an-sortie { display: grid; place-items: center; min-height: 60vh; padding: 48px 16px; }
.an-sortie-carte { width: min(560px, 100%); display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--s1); box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .45); }
.an-sortie-carte h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.an-sortie-carte p { margin: 0; color: var(--t2); line-height: 1.55; }
.an-sortie-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--s2); color: var(--t1); }
.an-sortie-carte.bloque .an-sortie-ic { background: #FEE2E2; color: #B91C1C; }
.an-sortie-lien { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); }
.an-sortie-lien b { font-size: 16px; }
.an-sortie-lien code { font-size: 12.5px; color: var(--t3); word-break: break-all; }
.an-sortie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 480px) { .an-sortie-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* Vote par pseudo : petit formulaire sous le bouton de vote (pseudo + captcha) */
.an2-vote-pseudo-zone { position: relative; }
/* Place par le script de la fiche (position fixe sous le bouton, hors de la carte qui coupe ce qui depasse) ;
   336 px : le captcha Turnstile fait 300 px de large. Fond opaque : les themes ont des surfaces translucides. */
.an2-vote-pseudo { position: fixed; z-index: 60; top: 0; left: 0; width: 336px; max-width: calc(100vw - 24px); box-sizing: border-box; display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(var(--s1), var(--s1)), var(--bg, #fff); color: var(--t1); box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .45); }
.an2-vote-pseudo[hidden] { display: none; }
.an2-vote-pseudo .cf-turnstile { min-height: 65px; }
.an2-vote-pseudo label { font-size: 13px; font-weight: 600; color: var(--t1); }
.an2-vote-pseudo input { height: 42px; padding: 0 12px; border: 1px solid var(--t3); border-radius: 10px; background: transparent; color: var(--t1); font: inherit; }
/* Fond transparent : celui, opaque, de la fenetre (clair ou sombre selon le theme). Un fond blanc fixe
   rendait le texte clair des themes sombres presque invisible. */
.an2-vote-pseudo input::placeholder { color: var(--t3); opacity: 1; }
.an2-vote-pseudo input:focus-visible { outline: 2px solid var(--t1); outline-offset: 1px; }
.an2-vote-pseudo small { font-size: 12px; color: var(--t3); line-height: 1.4; }


/* Recherche : liste de suggestions groupees sous le champ */
.an2-recherche { position: relative; }
.an2-sugg { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--s1, #fff); box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .35); text-align: left; }
.an2-sugg-g + .an2-sugg-g { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.an2-sugg-t { display: block; padding: 6px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.an2-sugg-o { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 10px; color: var(--t1); text-decoration: none; }
.an2-sugg-o:hover, .an2-sugg-o.on { background: var(--s2, #f4f4f5); }
.an2-sugg-o img, .an2-sugg-l { width: 24px; height: 24px; flex: none; border-radius: 6px; object-fit: cover; }
.an2-sugg-l { display: grid; place-items: center; background: var(--s2, #f4f4f5); font-size: 12px; font-weight: 700; }
.an2-sugg-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.an2-sugg-o small { flex: none; font-size: 12px; color: var(--t3); }

/* Fiche : liste complete des mods en vignettes (icone Modrinth quand elle existe, sinon l'initiale) */
.an-mods-grille { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px; }
.an-mods-grille li > a, .an-mods-grille li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.an-mods-grille li { padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--s1); }
.an-mods-grille li > a { color: var(--t1); text-decoration: none; width: 100%; }
.an-mods-grille li:has(> a:hover) { border-color: var(--line-3); }
.an-mod-mini { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 7px; overflow: hidden; background: var(--s2); color: var(--t2); font-size: 12px; font-weight: 700; }
.an-mod-mini img { width: 100%; height: 100%; object-fit: cover; }
.an-mod-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }

/* Presentation en texte riche (core/TexteRiche.php, editeur TipTap du dashboard) */
.an-riche { overflow-wrap: anywhere; }
.an-riche > :first-child { margin-top: 0; }
.an-riche > :last-child { margin-bottom: 0; }
.an-riche p { margin: 0 0 .9em; min-height: 1em; }
.an-riche h2 { margin: 1.4em 0 .5em; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; color: var(--t1); }
.an-riche h3 { margin: 1.2em 0 .4em; font-size: 18px; line-height: 1.3; color: var(--t1); }
.an-riche ul, .an-riche ol { margin: 0 0 .9em; padding-left: 1.4em; }
.an-riche li { margin: .2em 0; }
.an-riche li > p { margin: 0; }
.an-riche blockquote { margin: 0 0 .9em; padding: 4px 0 4px 16px; border-left: 3px solid var(--line-3); color: var(--t2); }
.an-riche blockquote > :last-child { margin-bottom: 0; }
.an-riche hr { border: 0; border-top: 1px solid var(--line-2); margin: 1.4em 0; }
.an-riche a { color: var(--t1); text-decoration: underline; text-underline-offset: 3px; }
.an-riche code { font: 14px/1.5 var(--mono); background: var(--s2); padding: 1px 6px; border-radius: 6px; }
.an-riche pre { margin: 0 0 .9em; padding: 14px 16px; background: #18181B; color: #F4F4F5; border-radius: 12px; overflow-x: auto; max-height: 640px; }
.an-riche pre code { background: none; padding: 0; color: inherit; white-space: pre; }
/* Medias : pleine largeur par defaut ; largeur (25 a 100 %) et position choisies dans l'editeur */
.an-riche img, .an-riche video { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: .4em 0 .9em; }
.an-riche [data-largeur="25"] { width: 25%; min-width: 140px; } .an-riche [data-largeur="50"] { width: 50%; min-width: 200px; }
.an-riche [data-largeur="75"] { width: 75%; } .an-riche [data-largeur="100"] { width: 100%; }
.an-riche [data-align="center"] { margin-left: auto; margin-right: auto; }
.an-riche [data-align="right"] { margin-left: auto; margin-right: 0; }
.an-riche video[data-boucle] { pointer-events: none; }
.an-riche .an-vboucle { margin: .4em 0 .9em; }
.an-riche .an-vboucle video { margin: 0; width: 100%; }
/* Blocs depliables (3 niveaux au plus, core/TexteRiche.php) */
.an-riche details { margin: 0 0 .9em; border: 1px solid var(--line-2); border-radius: 12px; background: var(--s1); }
.an-riche summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--t1); min-height: 44px; box-sizing: border-box; }
.an-riche summary:focus-visible { outline: 2px solid var(--t1); outline-offset: 2px; border-radius: 12px; }
.an-riche details[open] > summary { border-bottom: 1px solid var(--line-2); }
.an-riche details > div { padding: 12px 16px; }
.an-riche details > div > :last-child { margin-bottom: 0; }
.an-riche details > :not(summary):not(div) { margin-left: 16px; margin-right: 16px; }
.an-riche .tr-a-centre { text-align: center; }
.an-riche .tr-a-droite { text-align: right; }
.tr-c-rouge { color: #CE2C31; } .tr-c-orange { color: #CC4E00; } .tr-c-or { color: #9E6C00; } .tr-c-vert { color: #218358; }
.tr-c-bleu { color: #3A5BC7; } .tr-c-violet { color: #8145B5; } .tr-c-rose { color: #C2298A; } .tr-c-gris { color: #60646C; }

/* Galerie et bande-annonce : grille bento (comme la boutique) ou bande qui defile */
.an-galerie2 .an-yt { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #18181B; }
.an-galerie2 .an-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.an-gal-bento, .an-gal-defile { list-style: none; margin: 12px 0 0; padding: 0; }
.an-gal-bento li, .an-gal-defile li { position: relative; overflow: hidden; border-radius: 12px; background: #18181B; }
.an-gal-bento img, .an-gal-bento video, .an-gal-defile img, .an-gal-defile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-gal-entier img, .an-gal-entier video { object-fit: contain; }
.an-gal-bento .an-yt, .an-gal-defile .an-yt { aspect-ratio: auto; height: 100%; border-radius: 0; }
.an-gal-bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 96px; grid-auto-flow: dense; gap: 10px; }
.an-gal-bento li { grid-column: span 2; grid-row: span 2; }
.an-gal-n1 li { grid-column: span 6; grid-row: span 4; }
.an-gal-n2 li { grid-column: span 3; grid-row: span 3; }
.an-gal-n3 .an-gal-c0, .an-gal-n4 .an-gal-c0, .an-gal-n5 .an-gal-c0, .an-gal-n6 .an-gal-c0 { grid-column: span 4; grid-row: span 4; }
.an-gal-n3 .an-gal-c1, .an-gal-n3 .an-gal-c2 { grid-row: span 2; }
.an-gal-n4 .an-gal-c3 { grid-column: span 6; grid-row: span 3; }
.an-gal-n5 .an-gal-c3, .an-gal-n5 .an-gal-c4 { grid-column: span 3; }
.an-gal-n6 li:nth-child(n+4) { grid-column: span 2; }
.an-gal-defile { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.an-gal-defile li { flex: 0 0 auto; height: 240px; aspect-ratio: 16 / 9; scroll-snap-align: start; }
.an-gal-defile:focus-visible { outline: 2px solid var(--t1); outline-offset: 4px; border-radius: 12px; }
.an-gal-img { display: block; height: 100%; }
.an-gal-img:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.an-gal-img img { transition: transform .25s var(--ease); }
.an-gal-img:hover img { transform: scale(1.03); }
video[data-boucle] { pointer-events: none; }
/* Video en boucle : seul le bouton du son, en bas a droite */
.an-vboucle { position: relative; display: block; max-width: 100%; border-radius: 12px; overflow: hidden; }
.an-vboucle video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.an-gal-bento .an-vboucle, .an-gal-defile .an-vboucle { height: 100%; border-radius: 0; }
.an-gal-entier .an-vboucle video { object-fit: contain; }
.an-son { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(9, 9, 11, .62); color: #fff; cursor: pointer; opacity: .85; transition: opacity .2s, background .2s; }
.an-son:hover, .an-son:focus-visible { opacity: 1; background: rgba(9, 9, 11, .82); }
.an-son:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.an-son svg { width: 18px; height: 18px; }
.an-son .an-son-on { display: none; } .an-son[aria-pressed="true"] .an-son-on { display: inline; } .an-son[aria-pressed="true"] .an-son-off { display: none; }
@media (hover: hover) { .an-vboucle .an-son { opacity: 0; } .an-vboucle:hover .an-son, .an-son:focus-visible, .an-son[aria-pressed="true"] { opacity: .9; } }
/* Image entiere : les bords restent transparents (pas de bandes grises) */
.an-gal-entier li { background: transparent; }
@media (max-width: 640px) {
    .an-gal-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
    .an-gal-bento li, .an-gal-bento li[class] { grid-column: span 1; grid-row: span 1; }
    .an-gal-bento .an-gal-c0, .an-gal-n1 li, .an-gal-n2 li { grid-column: span 2; grid-row: span 2; }
    .an-gal-defile li { height: 180px; }
}
.an-visionneuse { position: fixed; inset: 0; z-index: 1000; background: rgba(9,9,11,.92); display: grid; place-items: center; padding: 24px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; }
.an-visionneuse img { max-width: min(1400px, 100%); max-height: calc(100vh - 96px); border-radius: 10px; }
.an-visionneuse button { position: absolute; min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }
.an-visionneuse button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.an-vis-fermer { top: 16px; right: 16px; } .an-vis-prec { left: 16px; top: 50%; } .an-vis-suiv { right: 16px; top: 50%; }
@media (prefers-reduced-motion: reduce) { .an-gal-img img { transition: none; } }

/* « A la une » pleine largeur, au-dessus des colonnes : trois cartes en relief.
   Profondeur sobre : la carte s'incline vers le pointeur (4 degres au plus), l'image glisse a l'oppose du texte
   (parallaxe), un reflet doux suit le pointeur. Rien sur ecran tactile ni avec « reduire les animations ». */
.an2-une-zone { padding-top: 28px; }
.an2-une-zone + .an2-grille { padding-top: 8px; }
.an2 .an-une-large { margin: 0 0 14px; }
.an2 .an-une-large .an2-titre { margin-bottom: 14px; }
.an2 .an-une-large .an-une-grille { gap: 22px; perspective: 1200px; }
.an2 .an-une-large .an-une-carte { aspect-ratio: 16 / 9; border-radius: 20px; --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px; --mx: 50%; --my: 50%; --ryb: 0deg;
  transform: translateY(var(--lev, 0)) rotateX(var(--rx)) rotateY(calc(var(--ryb) + var(--ry))); transform-style: preserve-3d; isolation: isolate;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 1px 2px rgba(9, 9, 11, .08), 0 2px 6px -2px rgba(9, 9, 11, .12), 0 26px 50px -30px rgba(9, 9, 11, .7); }
.an2 .an-une-large .an-une-carte.an-relief { transition: transform .12s linear, box-shadow .5s cubic-bezier(.2, .8, .2, 1); }
.an2 .an-une-large .an-une-carte:hover { --lev: -4px; box-shadow: 0 1px 2px rgba(9, 9, 11, .08), 0 8px 18px -8px rgba(9, 9, 11, .25), 0 40px 70px -34px rgba(9, 9, 11, .8); }
.an2 .an-une-large .an-une-img { transform: scale(1.07) translate(var(--px), var(--py)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; backface-visibility: hidden; }
/* Au repos : les cartes de gauche et de droite a peine tournees vers le centre (profondeur discrete) */
.an2 .an-une-large .an-une-grille > :first-child:not(:only-child) { --ryb: 3.5deg; }
.an2 .an-une-large .an-une-grille > :last-child:not(:only-child):not(:nth-child(2)) { --ryb: -3.5deg; }
.an2 .an-une-large .an-une-carte:hover { --ryb: 0deg; }
.an2 .an-une-large .an-une-carte.an-relief .an-une-img { transition: transform .12s linear; }
.an2 .an-une-large .an-une-carte:hover .an-une-img { transform: scale(1.09) translate(var(--px), var(--py)); }
.an2 .an-une-large .an-une-carte::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 60%); }
.an2 .an-une-large .an-une-carte:hover::before { opacity: 1; }
.an2 .an-une-large .an-une-bande { padding: 18px 20px; gap: 14px; transform: translate(calc(var(--px) * -.5), calc(var(--py) * -.5)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.an2 .an-une-large .an-une-carte.an-relief .an-une-bande { transition: transform .12s linear; }
.an2 .an-une-large .an-une-bande .an-tuile { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 10px 22px -10px rgba(0, 0, 0, .8); }
.an2 .an-une-large .an-une-bande h3 { font-size: 19px; letter-spacing: -.015em; }
.an2 .an-une-large .an-une-bande p { font-size: 13.5px; margin-top: 4px; }
.an2 .an-une-large .an-sponso { z-index: 4; }
/* Decouverte : un serveur discret remonte dans la premiere page */
.an2-rang-decouverte { font-size: 18px; color: #B7791F; }
.an2-decouverte { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #7C4A03; background: #FEF3C7; border: 1px solid #FCD34D; vertical-align: middle; }
.an2-sponso-mobile { display: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #6A5ACD, #C0569C); vertical-align: middle; }
/* Toute la carte « A la une » est cliquable (public/site/js/annuaire.js) */
.an2 .an-une-carte { cursor: pointer; }
/* Place libre « A la une » (annuaire public sans sponsor) : invitation a mettre son serveur en avant */
.an2 .an-une-libre { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 22px; border-radius: 20px; aspect-ratio: 16 / 9;
  border: 1.5px dashed color-mix(in srgb, var(--t1) 22%, transparent); background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, #E2A336 16%, transparent), transparent 60%), var(--s1);
  color: var(--t1); text-decoration: none; transition: border-color .25s, transform .25s cubic-bezier(.2, .8, .2, 1); transform: rotateY(var(--ryb, 0deg)); }
.an2 .an-une-libre:hover, .an2 .an-une-libre:focus-visible { border-color: color-mix(in srgb, #E2A336 70%, transparent); transform: rotateY(0deg) translateY(-3px); }
.an2 .an-une-libre:focus-visible { outline: 2px solid var(--t1); outline-offset: 3px; }
.an2 .an-une-libre svg { width: 26px; height: 26px; color: #B7791F; }
.an2 .an-une-libre b { font-size: 18px; letter-spacing: -.015em; }
.an2 .an-une-libre > span:not([class]), .an2 .an-une-libre-txt > span { font-size: 13.5px; line-height: 1.45; color: var(--t2); max-width: 46ch; }
.an2 .an-une-libre b { color: var(--t1); }
.an2 .an-une-libre .an-une-libre-cta { align-self: flex-start; margin-top: 4px; padding: 9px 14px; border-radius: 10px; background: var(--t1); color: var(--s1); font: 600 13px/1 var(--font); }
.an2 .an-une-libre-txt { display: flex; flex-direction: column; gap: 8px; }
.an2 .an-une-libre-seule { grid-column: 1 / -1; aspect-ratio: auto; min-height: 168px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; transform: none; }
.an2 .an-une-libre-seule:hover { transform: translateY(-2px); }
.an2 .an-une-libre-seule .an-une-libre-cta { align-self: center; padding: 12px 18px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .an2 .an-une-libre { transition: none; } }
@media (max-width: 900px) {
  .an2-une-zone { padding-top: 20px; }
  .an2 .an-une-large .an-une-grille { perspective: none; }
  .an2 .an-une-large .an-une-grille > * { --ryb: 0deg !important; }
  .an2 .an-une-large .an-une-carte { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  .an2 .an-une-large .an-une-carte, .an2 .an-une-large .an-une-img, .an2 .an-une-large .an-une-bande { transform: none !important; transition: none; }
  .an2 .an-une-large .an-une-carte::before { display: none; }
}

/* Fondu : l'image occupe bien plus de la ligne et ne s'efface que sous le texte */
.an2-coupe-fondu .an2-fond { width: 74%; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .18) 14%, rgba(0, 0, 0, .55) 30%, rgba(0, 0, 0, .88) 44%, #000 56%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .18) 14%, rgba(0, 0, 0, .55) 30%, rgba(0, 0, 0, .88) 44%, #000 56%); }
.an2-coupe-fondu .an2-fond::after { background: linear-gradient(90deg, rgba(9, 9, 11, .2), rgba(9, 9, 11, 0) 40%, rgba(9, 9, 11, .24)); }

/* Serveur pas encore ouvert : liste d'attente, date ou decompte */
.an2-badge-bientot { background: #FEF3C7; color: #7C4A03; border-color: #FCD34D; }
.an-attente { border: 1px solid color-mix(in srgb, #F59E0B 55%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, #F59E0B 10%, var(--s1)), var(--s1) 70%); color: var(--t1); }
.an-attente h2, .an-attente .an-att-n b { color: var(--t1); }
.an-att-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.an-att-sur { margin: 0 0 4px; font: 600 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, #B45309 55%, var(--t1)); }
.an-attente h2 { margin: 0; font-size: 24px; letter-spacing: -.015em; }
.an-att-n { margin: 0; font-size: 14px; color: var(--t2); }
.an-att-n b { font-size: 22px; color: var(--t1); font-variant-numeric: tabular-nums; margin-right: 2px; }
.an-decompte { display: flex; gap: 10px; margin: 18px 0 4px; }
.an-decompte span { min-width: 72px; padding: 12px 10px 10px; border-radius: 14px; background: #18181B; color: #FFF; text-align: center; box-shadow: 0 10px 24px -14px rgba(9, 9, 11, .7); }
.an-decompte b { display: block; font: 700 30px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.an-decompte small { display: block; margin-top: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .08em; }
.an-att-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.an-att-form input[type=email] { flex: 1 1 240px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 15px; background: color-mix(in srgb, var(--t1) 5%, var(--s1)); color: var(--t1); }
.an-att-form input[type=email]::placeholder { color: var(--t3); opacity: 1; }
.an-att-form input[type=email]:focus-visible { outline: 2px solid var(--t1); outline-offset: 1px; }
.an-att-form .btn { min-height: 46px; }
.an-att-form .cf-turnstile { flex-basis: 100%; }
.an-att-aide { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--t3); }
.an-attente .an-message { margin: 14px 0 0; }
.an-att-court { color: color-mix(in srgb, #B45309 55%, var(--t1)); }
@media (max-width: 600px) { .an-decompte span { min-width: 0; flex: 1; } .an-decompte b { font-size: 24px; } }

.an2 .an-une-points { display: none; }
/* Telephone (refonte 20/11) : lignes compactes (logo | texte | vote), rang en pastille sur le logo, pas de vide ;
   « A la une » en bande qui defile, ombres et etiquettes non rognees, la carte suivante depasse pour inviter au geste. */
@media (max-width: 640px) {
  .an2-liste .an-ligne, .an2-liste .an-ligne.an2-sans-image { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "logo corps actions"; align-items: center; gap: 10px; min-height: 0; padding: 14px 12px 12px 12px; }
  .an2-liste .an-ligne > .an-tuile { grid-area: logo; width: 52px; height: 52px; }
  .an2-liste .an-ligne .an2-corps { grid-area: corps; min-width: 0; }
  .an2-liste .an-ligne .an2-actions { grid-area: actions; grid-column: auto; align-self: center; flex-direction: column; gap: 6px; }
  .an2-liste .an-ligne .an-jouer { display: none; }
  .an2-liste .an-ligne .an2-vote { height: 44px; min-width: 52px; padding: 0 10px; }
  .an2-liste .an-ligne .an2-rang { display: block; position: absolute; left: 6px; top: 6px; z-index: 2; min-width: 22px; padding: 3px 5px; border-radius: 7px; background: var(--s1) !important; -webkit-text-fill-color: var(--t1); color: var(--t1); box-shadow: 0 0 0 1px var(--line-2); font-size: 11px; animation: none; }
  .an2-liste .an-ligne .an2-rang .an2-rang-sponso { padding: 3px 5px; font-size: 8.5px; }
  .an2-liste .an-ligne .an2-rang:has(.an2-rang-sponso) { padding: 0; background: none; box-shadow: none; }
  .an2-liste .an-ligne h3 { font-size: 15.5px; }
  .an2-liste .an-ligne .an-pitch { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
  .an2-liste .an-ligne .an2-infos { gap: 6px; }
  .an2 .an-une-large .an-une-grille { grid-auto-columns: 84%; gap: 12px; padding: 12px 16px 14px; margin: -12px -16px -6px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .an2 .an-une-large .an-une-grille::-webkit-scrollbar { display: none; }
  .an2 .an-une-large .an-une-carte { scroll-snap-align: start; }
  .an2 .an-une-points { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .an2 .an-une-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-3, #A1A1AA); transition: width .2s, background .2s; }
  .an2 .an-une-points i.on { width: 18px; border-radius: 3px; background: var(--t1); }
}
/* Invitation a une fiche preparee (pages/annuaire-invitation.php) */
.an-porte-sur { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--t3); }
.an-porte-form { margin: 0; }
.an-porte-compte { align-self: center; font-size: 13px; color: var(--t3); }
.an-erreur { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, #dc2626 45%, transparent); background: color-mix(in srgb, #dc2626 8%, transparent); color: var(--t1); font-size: 14px; }

/* Encadre « Visites mensuelles » (trafic du site, mesure par Cloudflare) */
.an-trafic h2 { align-items: center; }
.an-trafic h2 svg { color: #7C3AED; flex: none; }
.an-trafic-total { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; }
.an-trafic-total b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--t1); }
.an-trafic-total small { font-size: 12.5px; color: var(--t3); }
.an-trafic-graphe { position: relative; height: 64px; margin: 0 -2px 12px; cursor: crosshair; touch-action: pan-y; border-radius: 8px; outline: none; }
.an-trafic-graphe:focus-visible { box-shadow: 0 0 0 2px var(--t1); }
.an-trafic-graphe svg { display: block; width: 100%; height: 100%; overflow: visible; }
.an-trafic-aire { fill: #7C3AED; opacity: .09; }
.an-trafic-ligne { fill: none; stroke: #7C3AED; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-trafic-repere { stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.an-trafic-point { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #7C3AED; box-shadow: 0 0 0 3px var(--s1); opacity: 0; pointer-events: none; }
.an-trafic-bulle { position: absolute; left: 0; bottom: calc(100% + 6px); display: grid; gap: 1px; padding: 6px 10px; border-radius: 8px; background: var(--ink, #18181B); color: #FAFAFA;
  font-size: 12.5px; line-height: 1.3; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.an-trafic-bulle span { color: #D4D4D8; font-size: 11.5px; }
.an-trafic-graphe.actif .an-trafic-repere, .an-trafic-graphe.actif .an-trafic-point, .an-trafic-graphe.actif .an-trafic-bulle { opacity: 1; }
.an-trafic-source { display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px !important; font-weight: 600; color: var(--t2) !important; }
.an-trafic-info { margin-top: 6px !important; font-size: 12px !important; line-height: 1.45 !important; color: var(--t3) !important; }
@media (prefers-reduced-motion: reduce) { .an-trafic-bulle { transition: none; } }

/* Partage d'une fiche (carte de la colonne, fenetre, notification) */
.an-partage h2 svg, .an-partage-ouvrir svg { width: 16px; height: 16px; flex: none; }
.an-partage h2 { align-items: center; }
.an-partage-intro { margin: -4px 0 14px !important; }
.an-partage-ouvrir { gap: 8px; }
.an-partage-reseaux { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.an-partage-r { display: grid; justify-items: center; gap: 6px; width: 100%; min-height: 72px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--s1); color: var(--t1); font: 600 12px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.an-partage-r:hover { border-color: var(--marque); box-shadow: 0 4px 14px -6px var(--marque); transform: translateY(-1px); }
.an-partage-r:focus-visible { outline: 2px solid var(--marque); outline-offset: 2px; }
.an-partage-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--marque); color: #fff; }
.an-partage-ic svg { width: 19px; height: 19px; }
.an-partage-lien { display: flex; gap: 8px; align-items: end; }
.an-partage-lien label { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--t3); }
.an-partage-lien input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--s2); color: var(--t1); font: 13px var(--mono); text-overflow: ellipsis; }
.an-partage-lien input:focus-visible { outline: 2px solid var(--t1); outline-offset: 1px; }
.an-partage-copier { height: 44px; gap: 7px; padding: 0 14px; flex: none; }
.an-partage-copier svg { width: 16px; height: 16px; }
.an-partage-copier.copie { background: #166534; border-color: #166534; }
.an-partage-message { margin-top: 12px; font-size: 13.5px; }
.an-partage-message summary { cursor: pointer; color: var(--t2); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.an-partage-message summary::-webkit-details-marker { display: none; }
.an-partage-message summary::after { content: ''; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.an-partage-message[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.an-partage-message p { margin: 6px 0 10px !important; padding: 10px 12px; border-radius: 10px; background: var(--s2); font-size: 13.5px !important; }
.an-partage-message p span { color: #6D28D9; word-break: break-all; }
.an-partage-natif { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 12px; border: 1px dashed var(--line-2);
  border-radius: 10px; background: transparent; color: var(--t1); font: 600 14px var(--font); cursor: pointer; }
.an-partage-natif svg { width: 16px; height: 16px; }
.an-partage-natif[hidden] { display: none; }
.an-partage-fenetre { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--s1); color: var(--t1);
  box-shadow: 0 30px 80px -20px rgba(9, 9, 11, .45); }
.an-partage-fenetre::backdrop { background: rgba(9, 9, 11, .45); backdrop-filter: blur(3px); }
.an-partage-fenetre[open] { animation: an-partage-entree .18s ease-out; }
@keyframes an-partage-entree { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.an-partage-fenetre-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.an-partage-fenetre-tete img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.an-partage-fenetre-tete div { flex: 1; min-width: 0; }
.an-partage-fenetre-tete h2 { margin: 0; font-size: 17px; font-weight: 700; }
.an-partage-fenetre-tete p { margin: 2px 0 0; font-size: 13.5px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-partage-fermer { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--s2); color: var(--t1); cursor: pointer; }
.an-partage-fermer svg { width: 18px; height: 18px; }
.an-partage-fermer:focus-visible { outline: 2px solid var(--t1); outline-offset: 2px; }
.an-partage-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: #18181B; color: #FAFAFA;
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transform: translate(-50%, 12px); opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.an-partage-toast.vu { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 420px) { .an-partage-reseaux { gap: 6px; } .an-partage-r { min-height: 66px; font-size: 11px; } .an-partage-lien { flex-wrap: wrap; } .an-partage-copier { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .an-partage-r, .an-partage-toast { transition: none; } .an-partage-fenetre[open] { animation: none; } }
/* Partage : carte de vote a integrer */
.an-partage-integ-t { margin: 6px 0 10px !important; padding: 0 !important; background: none !important; color: var(--t3); font-size: 13px !important; }
.an-partage-integ-ap { margin-bottom: 10px; border-radius: 14px; overflow: hidden; background: var(--s2); }
.an-partage-integ-ap iframe { display: block; width: 100%; height: 380px; border: 0; }  /* hauteur reelle de la carte : jamais ecrasee par la largeur */
.an-partage-integ-code { display: grid; gap: 4px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--t3); }
.an-partage-integ-code textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--s2); color: var(--t1); font: 12px/1.45 var(--mono); resize: vertical; }
/* Apercu du proprietaire : fiche pas encore visible des joueurs */
.an-apercu-proprio { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid color-mix(in srgb, #F59E0B 45%, transparent); border-radius: 14px;
  background: color-mix(in srgb, #F59E0B 12%, var(--s1)); color: var(--t1); }
.an-apercu-proprio svg { width: 20px; height: 20px; flex: none; color: #B45309; }
.an-apercu-proprio p { flex: 1; margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.an-apercu-proprio .btn { flex: none; }
@media (max-width: 560px) { .an-apercu-proprio { flex-wrap: wrap; } .an-apercu-proprio .btn { width: 100%; } }
