/*
Theme Name: Mercatoland
Description: Thème néo-brutaliste façon presse people pour Mercatoland. Surcharge les gabarits de mercatoland-core (accueil, club, joueur, news).
Version: 0.1.0
Author: Agence Connecto
Requires PHP: 8.0
Text Domain: mercatoland
*/

/* ============ Réglages ============ */
:root {
  --ink: #111;
  --paper: #fff6e0;
  --white: #fff;
  --yellow: #ffe14a;
  --red: #ff3d2e;
  --pink: #ff7ac6;
  --cyan: #4fd8ff;
  --green: #4dea8a;
  --orange: #ff9f1c;
  --violet: #b48cff;
  --lime: #c6f432;
  --blue: #2f5bff;
  --peach: #ffb4a2;
  --teal: #19d3b5;

  --bw: 3px;
  --border: var(--bw) solid var(--ink);
  --sh-sm: 3px 3px 0 var(--ink);
  --sh: 6px 6px 0 var(--ink);
  --sh-lg: 10px 10px 0 var(--ink);
  --trame: radial-gradient(rgba(17, 17, 17, .2) 1.4px, transparent 1.8px);

  --f-titre: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --f-texte: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Space Mono", ui-monospace, Consolas, monospace;

  --wrap: 1240px;
}

.is-yellow { --accent: var(--yellow); }
.is-red    { --accent: var(--red); }
.is-pink   { --accent: var(--pink); }
.is-cyan   { --accent: var(--cyan); }
.is-green  { --accent: var(--green); }
.is-orange { --accent: var(--orange); }
.is-violet { --accent: var(--violet); }
.is-lime   { --accent: var(--lime); }
.is-blue   { --accent: var(--blue); --accent-txt: var(--white); }
.is-peach  { --accent: var(--peach); }
.is-ink    { --accent: var(--ink); --accent-txt: var(--white); }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(17, 17, 17, .08) 1px, transparent 1.3px);
  background-size: 14px 14px;
  color: var(--ink);
  font: 400 17px/1.6 var(--f-texte);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
mark {
  background: var(--yellow);
  color: inherit;
  padding: 0 .1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .005em;
  text-transform: uppercase;
}
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  clip: auto; clip-path: none;
  width: auto; height: auto;
  top: 8px; left: 8px; z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  border: var(--border);
}

/* ============ Briques ============ */
.card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card,
.ml-carte a,
.ml-clubs a {
  transition: transform .12s ease, box-shadow .12s ease;
}
a.card:hover,
.ml-carte a:hover,
.ml-clubs a:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}
a.card:active,
.ml-carte a:active,
.ml-clubs a:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

.tag {
  display: inline-block;
  padding: 6px 8px 5px;
  background: var(--accent, var(--yellow));
  color: var(--accent-txt, var(--ink));
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font: 700 11px/1 var(--f-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sticker {
  display: inline-block;
  padding: 8px 12px 6px;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--sh-sm);
  font: 400 17px/1 var(--f-titre);
  letter-spacing: .03em;
  text-transform: uppercase;
  transform: rotate(-5deg);
  white-space: nowrap;
}
.sticker--jaune { background: var(--yellow); color: var(--ink); transform: rotate(4deg); }

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 10px 6px;
  background: var(--ink);
  color: var(--white);
  font: 700 12px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kicker--jaune { background: var(--yellow); color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 12px;
  background: var(--ink);
  color: var(--white);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--red);
  font: 800 14px/1 var(--f-texte);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.btn::after { content: "→"; font-size: 18px; }
a.btn:hover,
.card:hover .btn { background: var(--yellow); color: var(--ink); }

.titre-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 64px 0 28px;
  font-size: clamp(26px, 3.4vw, 42px);
}
.titre-section > span:first-child {
  padding: 10px 16px 8px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 5px 5px 0 var(--red);
  transform: rotate(-1.2deg);
}
.titre-section::after {
  content: "";
  flex: 1;
  min-width: 30px;
  height: var(--bw);
  background: var(--ink);
}
.compte {
  padding: 6px 9px 5px;
  background: var(--white);
  border: 2px solid var(--ink);
  font: 700 14px/1 var(--f-mono);
}

.boite { background: var(--white); border: var(--border); box-shadow: var(--sh); }
.boite__titre {
  padding: 13px 16px 10px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 22px;
}

/* ============ Bandeau Flash ============ */
.ticker {
  display: flex;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  font: 700 13px/1 var(--f-mono);
  text-transform: uppercase;
}
.ticker__label {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 11px 16px;
  background: var(--red);
  letter-spacing: .12em;
  animation: clignote 1.2s steps(2, start) infinite;
}
.ticker__piste { display: flex; flex: 1; overflow: hidden; }
.ticker__liste {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: defile 90s linear infinite;
}
.ticker__piste:hover .ticker__liste { animation-play-state: paused; }
.ticker__liste li { padding: 11px 0; white-space: nowrap; }
.ticker__liste li::after { content: "✦"; margin: 0 20px; color: var(--yellow); }
.ticker__liste a { text-decoration: none; }
.ticker__liste a:hover { color: var(--yellow); }
@keyframes defile { to { transform: translateX(-100%); } }
@keyframes clignote { to { background: var(--ink); } }

/* ============ En-tête ============ */
.masthead { background: var(--yellow); border-bottom: var(--border); }
.masthead__haut {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 26px 22px;
}
.masthead__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font: 700 11px/1.4 var(--f-mono);
  text-transform: uppercase;
}
.masthead__info--droite { align-items: flex-end; text-align: right; }
.masthead__logo { margin: 0; font: inherit; text-transform: none; }

.logo {
  position: relative;
  display: inline-block;
  font: 400 clamp(52px, 8.5vw, 112px)/.85 var(--f-titre);
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-decoration: none;
}
.logo__land { color: var(--red); text-shadow: 5px 5px 0 var(--ink); }
.logo__annee {
  position: absolute;
  top: -16px;
  left: calc(100% - 44px);
  padding: 6px 9px 4px;
  background: var(--pink);
  border: var(--border);
  box-shadow: var(--sh-sm);
  font-size: 18px;
  letter-spacing: .02em;
  white-space: nowrap;
  transform: rotate(8deg);
}

.nav { position: relative; z-index: 20; background: var(--white); border-top: var(--border); }
.nav__barre { display: flex; align-items: stretch; justify-content: center; }
.nav__liste {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__liste::-webkit-scrollbar { display: none; }
.nav__liste li { flex: none; }
.nav__liste a {
  display: block;
  padding: 13px 18px 11px;
  border-right: var(--border);
  font: 800 14px/1 var(--f-texte);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__liste li:first-child a { border-left: var(--border); }
.nav__liste a:hover,
.nav__liste a[aria-current] { background: var(--ink); color: var(--yellow); }

/* Rubrique des animations : bouton rose + menu déroulant (survol à la souris, clic au doigt et au clavier). */
.nav__menu { position: relative; flex: none; }
.nav__bouton {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  margin: 0;
  padding: 13px 18px 11px;
  background: var(--pink);
  color: var(--ink);
  border: 0;
  border-right: var(--border);
  border-radius: 0;
  font: 800 14px/1 var(--f-texte);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__bouton svg { transition: transform .15s; }
.nav__bouton:hover,
.nav__menu.is-courant .nav__bouton,
.nav__bouton[aria-expanded="true"] { background: var(--ink); color: var(--yellow); }
.nav__bouton[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__bouton:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.nav__deroulant {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  width: 320px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
}
.nav__bouton[aria-expanded="true"] + .nav__deroulant { display: block; }
@media (hover: hover) {
  .nav__menu:hover .nav__deroulant { display: block; }
  .nav__menu:hover .nav__bouton { background: var(--ink); color: var(--yellow); }
  .nav__menu:hover .nav__bouton svg { transform: rotate(180deg); }
}
.nav__deroulant li + li { border-top: var(--border); }
.nav__deroulant a {
  display: block;
  padding: 12px 16px 11px 14px;
  border-left: 10px solid var(--accent, var(--yellow));
  text-decoration: none;
}
.nav__deroulant strong { display: block; font: 800 15px/1.2 var(--f-texte); text-transform: uppercase; letter-spacing: .03em; }
.nav__deroulant small { display: block; margin-top: 4px; font: 400 12px/1.35 var(--f-mono); }
.nav__deroulant a:hover { background: var(--accent, var(--yellow)); }
.nav__deroulant a[aria-current] { background: var(--ink); color: var(--yellow); }
.nav__deroulant a:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

/* ============ Accueil ============ */
.une {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

a.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.hero__visuel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
  overflow: hidden;
  background-color: var(--accent);
  background-image: var(--trame);
  background-size: 12px 12px;
  border-right: var(--border);
}
.hero__fond {
  position: absolute;
  inset: -40px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(17, 17, 17, .28);
  font: 400 104px/.82 var(--f-titre);
  text-transform: uppercase;
  word-break: break-all;
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero__visuel img {
  position: relative;
  width: 200px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
  transform: rotate(-4deg);
  transition: transform .2s;
}
.hero:hover .hero__visuel img { transform: rotate(0) scale(1.04); }
.hero__sticker { position: absolute; top: 20px; left: 18px; font-size: 24px; }
.hero__sticker2 { position: absolute; right: 16px; bottom: 24px; }
.hero__corps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 30px 30px 32px;
}
.hero__titre { font-size: clamp(34px, 3.5vw, 52px); line-height: 1.08; }
/* Anton a une boîte très haute : le surligneur ne couvre que les capitales pour ne pas mordre la ligne du dessus. */
h1 mark, h2 mark, h3 mark {
  padding: 0 .1em;
  background: linear-gradient(transparent 17%, var(--yellow) 17%, var(--yellow) 82%, transparent 82%);
}
.rcard__titre mark { background: var(--yellow); padding: 0 .1em; }
.hero__intro { margin: 0; font-size: 16px; }

.lus { overflow: hidden; }
.lus__titre {
  padding: 15px 18px 12px;
  background: var(--red);
  color: var(--white);
  border-bottom: var(--border);
  font-size: 32px;
}
.lus__liste { margin: 0; padding: 0; list-style: none; }
.lus__liste li + li { border-top: 2px solid var(--ink); }
.lus__liste a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
}
.lus__liste a:hover { background: var(--yellow); }
.lus__num {
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
  font: 400 44px/.9 var(--f-titre);
}
.lus__txt .tag { margin-right: 6px; padding: 4px 6px 3px; vertical-align: 2px; }
.lus__txt strong { font-weight: 800; line-height: 1.3; }
.lus__txt small { display: block; margin-top: 5px; font: 700 11px/1 var(--f-mono); text-transform: uppercase; opacity: .7; }

.rgrille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Sous les rumeurs du jour : 70 % pour le Mercato Draft, 30 % pour le Mercato Match. */
.jeux {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 40px;
  align-items: start;
}
.jeux .titre-section { font-size: clamp(26px, 2.6vw, 34px); }
.jeux__swipe .ml-swipe,
.jeux__principal .ml-draft { margin: 0 auto; }

.rcard { display: flex; flex-direction: column; height: 100%; }
a.rcard { display: flex; }
.rcard__visuel {
  display: grid;
  place-items: center;
  height: 200px;
  overflow: hidden;
  background-color: var(--accent);
  background-image: var(--trame);
  background-size: 12px 12px;
  border-bottom: var(--border);
}
.rcard__visuel img {
  width: 116px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh-sm);
  transform: rotate(-3deg);
  transition: transform .15s;
}
.rgrille li:nth-child(even) .rcard__visuel img { transform: rotate(3deg); }
.rcard:hover .rcard__visuel img { transform: rotate(0) scale(1.07); }
.rcard__corps {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 18px;
}
.rcard__titre {
  font: 900 19px/1.18 var(--f-texte);
  letter-spacing: 0;
  text-transform: none;
}
.rcard__meta {
  margin-top: auto;
  font: 700 11px/1.3 var(--f-mono);
  text-transform: uppercase;
  opacity: .7;
}

.bougies {
  margin: 72px 0 0;
  padding: 4px 0 44px;
  background-color: var(--pink);
  background-image: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 255, 255, .2) 22px 44px);
  border-block: var(--border);
}
.bougies__liste {
  display: grid;
  grid-auto-columns: minmax(170px, 1fr);
  grid-auto-flow: column;
  gap: 22px;
  margin: 0 0 30px;
  padding: 0 12px 22px 0;
  list-style: none;
  overflow-x: auto;
}
/* Anniversaires du jour, puis le testeur d'anniversaire en dessous, sur toute la largeur. */
.bougies__vide { margin: 0; padding: 18px 20px; background: var(--white); border: var(--border); box-shadow: var(--sh); font-weight: 700; }
.testeur { margin-top: 44px; }
.testeur .boite__titre { margin: 0; font-size: 26px; line-height: 1.1; }
/* Accroche à gauche, formulaire à droite ; le résultat passe en dessous sur toute la largeur. */
.testeur__corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 36px;
  align-items: end;
  padding: 20px 22px 24px;
}
.testeur__corps > .testeur__msg,
.testeur__res { grid-column: 1 / -1; }
.testeur__intro { margin: 0; font-size: 17px; line-height: 1.55; }
.testeur__form { display: flex; align-items: flex-end; gap: 12px; }
.testeur__champs { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; }
.testeur__champs label { display: grid; gap: 5px; }
.testeur__champs label > span { font: 700 11px/1 var(--f-mono); text-transform: uppercase; }
.testeur__champs select {
  width: 100%;
  padding: 10px 30px 9px 10px;
  color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23111'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: var(--border);
  border-radius: 0;
  box-shadow: var(--sh-sm);
  font: 700 15px/1.2 var(--f-texte);
  appearance: none;
  cursor: pointer;
}
.testeur__champs select:hover { background-color: var(--yellow); }
.testeur__champs select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.testeur__btn { flex: none; justify-content: center; cursor: pointer; }
.testeur__btn:hover { background: var(--yellow); color: var(--ink); }
.testeur__btn:active { box-shadow: none; transform: translate(4px, 4px); }
.testeur__msg { margin: 26px 0 14px; padding-top: 20px; border-top: 2px dashed rgba(17, 17, 17, .3); font-size: 16px; line-height: 1.45; }
/* Résultats en grille de petites cartes, du plus cher au moins cher. */
.testeur__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.testeur__liste li { background: var(--white); border: var(--border); box-shadow: var(--sh-sm); }
.testeur__liste li + li { border-top: var(--border); }
.testeur__liste a { height: 100%; }
.testeur__liste small { display: block; margin-top: 2px; line-height: 1.35; }

/* Ascenseur horizontal façon néo-brutalisme : rail blanc cerclé de noir, curseur jaune à bord noir. */
.bougies__liste::-webkit-scrollbar { height: 20px; }
.bougies__liste::-webkit-scrollbar-track { background: var(--white); border: var(--border); box-shadow: var(--sh-sm); }
.bougies__liste::-webkit-scrollbar-thumb { background: var(--yellow); border: var(--border); }
.bougies__liste::-webkit-scrollbar-thumb:hover { background: var(--ink); }
.bougies__liste::-webkit-scrollbar-thumb:active { background: var(--red); }
.bougies__liste::-webkit-scrollbar-button { display: none; }
/* Firefox ne connaît que les couleurs : curseur noir sur rail blanc. Réservé à lui, car Chrome ignore ::-webkit-scrollbar dès que scrollbar-color est défini. */
@supports not selector(::-webkit-scrollbar) {
  .bougies__liste { scrollbar-color: var(--ink) var(--white); }
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.classement { margin: 0; padding: 0; list-style: none; }
.classement li + li { border-top: 2px solid var(--ink); }
.classement a {
  display: grid;
  grid-template-columns: 40px 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
  text-decoration: none;
}
.classement a:hover { background: var(--yellow); }
.classement__rang { font: 400 34px/1 var(--f-titre); }
.classement li:first-child .classement__rang { color: var(--red); }
.classement img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--ink);
}
.classement__nom { font-weight: 800; line-height: 1.2; }
.classement__nom small { display: block; font-size: 13px; font-weight: 400; opacity: .75; }
.classement__vm {
  padding: 6px 8px 4px;
  background: var(--ink);
  color: var(--yellow);
  font: 400 21px/1 var(--f-titre);
}

.champs { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
a.champ {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 17px;
  background: var(--accent);
  font: 400 30px/1 var(--f-titre);
  text-transform: uppercase;
}
.champ::after { content: "→"; font: 900 26px/1 var(--f-texte); }

.vide { margin-top: 40px; padding: 40px; text-align: center; }
.vide h1, .vide h2 { margin-bottom: 12px; font-size: 44px; }

/* ============ Carte joueur ============ */
.pgrille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pcard { display: flex; flex-direction: column; height: 100%; }
a.pcard { display: flex; }
.pcard__visuel {
  position: relative;
  display: grid;
  place-items: end center;
  padding-top: 22px;
  overflow: hidden;
  background-color: var(--accent);
  background-image: var(--trame);
  background-size: 12px 12px;
  border-bottom: var(--border);
}
.pcard__visuel img {
  width: 72%;
  background: var(--white);
  border: var(--border);
  border-bottom: 0;
}
.pcard__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 8px 4px;
  background: var(--ink);
  color: var(--yellow);
  font: 400 18px/1 var(--f-titre);
  transform: rotate(4deg);
}
.pcard__corps { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.pcard__nom { font-size: 17px; font-weight: 900; line-height: 1.2; }
.pcard__txt { font-size: 13px; opacity: .8; }

.mini { margin: 0; padding: 0; list-style: none; }
.mini li + li { border-top: 2px solid var(--ink); }
.mini a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  text-decoration: none;
}
.mini a:hover { background: var(--yellow); }
.mini img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--ink);
}
.mini strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.mini small { font-size: 12px; opacity: .75; }
.mini__vm { font: 400 17px/1 var(--f-titre); }

/* ============ Pages du plugin ============ */
.ml-main { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.ml-ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
  font: 700 12px/1.4 var(--f-mono);
  text-transform: uppercase;
}
.ml-ariane li + li::before { content: "/"; margin-right: 6px; }
.ml-ariane a { text-decoration: none; border-bottom: 2px solid; }
.ml-ariane a:hover { background: var(--yellow); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  margin-top: 44px;
}
.layout__side { position: sticky; top: 20px; display: grid; gap: 30px; }
.layout__main > .titre-section:first-child { margin-top: 0; }

/* Bloc d'identité (joueur et club) */
.profil {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 34px 38px;
  background-color: var(--accent);
  background-image: var(--trame);
  background-size: 12px 12px;
  border: var(--border);
  box-shadow: var(--sh-lg);
}
.profil__photo { position: relative; }
.profil__photo img {
  width: 170px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
  transform: rotate(-3deg);
}
.profil__sticker { position: absolute; right: -20px; bottom: -12px; }
.profil__logo {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
  transform: rotate(-3deg);
}
.profil__logo img { width: 110px; height: 110px; object-fit: contain; }
.profil__nom { font-size: clamp(42px, 6.4vw, 92px); line-height: .9; }
.profil__nom small {
  display: block;
  margin-top: 14px;
  font: 800 18px/1.2 var(--f-texte);
  text-transform: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.chips a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.chips img { width: 20px; height: 20px; object-fit: contain; }
.prix {
  align-self: start;
  margin: 0;
  padding: 16px 22px 18px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--sh);
  text-align: center;
  transform: rotate(4deg);
}
.prix span { display: block; font: 700 11px/1.3 var(--f-mono); text-transform: uppercase; }
.prix strong { display: block; margin: 6px 0 4px; font: 400 clamp(40px, 4.4vw, 60px)/1 var(--f-titre); }

/* Fiche d'identité */
.fiche__photo {
  display: grid;
  place-items: center;
  padding: 20px;
  background-color: var(--cyan);
  background-image: var(--trame);
  background-size: 12px 12px;
  border-bottom: var(--border);
}
.fiche__photo img { width: 130px; background: var(--white); border: var(--border); box-shadow: var(--sh-sm); }
.fiche dl { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; }
.fiche dt,
.fiche dd { margin: 0; padding: 10px 14px; border-bottom: 2px dashed rgba(17, 17, 17, .3); }
.fiche dt { padding-right: 4px; font: 700 11px/1.7 var(--f-mono); text-transform: uppercase; }
.fiche dd { font-size: 15px; font-weight: 700; text-align: right; }
.fiche dd small { font-weight: 400; }
.fiche__age { white-space: nowrap; }
.fiche dt:nth-last-of-type(1),
.fiche dd:last-child { border-bottom: 0; }
.fiche__vm { color: var(--red); font: 400 24px/1 var(--f-titre) !important; }

/* Page joueur */
.article-une { overflow: hidden; }
.article-une__bande {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background-color: var(--accent);
  background-image: var(--trame);
  background-size: 12px 12px;
  border-bottom: var(--border);
}
.article-une__corps { display: grid; justify-items: start; gap: 16px; padding: 26px 28px 30px; }
.article-une__corps p { margin: 0; }
.article-une__titre { font-size: clamp(30px, 3.4vw, 46px); }

.agrille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.agrille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
a.acard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: 32px 20px 20px;
}
.acard::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: var(--accent);
  border-bottom: var(--border);
}
.acard__titre { font: 900 20px/1.2 var(--f-texte); letter-spacing: 0; text-transform: none; }
.acard__intro { margin: 0; font-size: 15px; opacity: .85; }
.acard__lire { margin-top: auto; font: 700 12px/1 var(--f-mono); text-transform: uppercase; }
.acard__lire::after { content: " →"; }
.acard:hover .acard__lire { color: var(--red); }

/* Page news */
.news__tete { max-width: 980px; }
.news__tags { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.news__titre { font-size: clamp(38px, 5.6vw, 78px); line-height: 1.05; }
.news__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  font: 700 12px/1.5 var(--f-mono);
  text-transform: uppercase;
}
.news__meta > span + span::before { content: "●"; margin-right: 22px; color: var(--red); }
.news__meta .ml-date { opacity: 1; font-size: inherit; margin: 0; }

/* Bouton « Partager sur X » (articles). */
.partage-x {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 9px;
  background: var(--ink);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--sh-sm);
  font: 700 13px/1 var(--f-mono);
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .1s ease-out, box-shadow .1s ease-out;
}
.partage-x:hover { color: var(--white); box-shadow: 5px 5px 0 var(--red); transform: translate(-2px, -2px); }
.partage-x:active { box-shadow: none; transform: translate(3px, 3px); }
.partage-x:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.partage-x svg { flex: none; }
/* En haut, dans la ligne des infos de l'article : bouton compact. */
.news__meta { align-items: center; }
.news__meta .partage-x { gap: 8px; padding: 7px 10px 6px; border-width: 2px; font-size: 12px; }
.news__meta .partage-x svg { width: 13px; height: 13px; }
.news__fin-partage { margin: 28px 0 0; }

.visuel {
  position: relative;
  display: grid;
  place-items: center;
  height: 360px;
  margin: 0 0 36px;
  overflow: hidden;
  background-color: var(--accent);
  background-image: var(--trame);
  background-size: 12px 12px;
  border: var(--border);
  box-shadow: var(--sh-lg);
}
.visuel__fond {
  position: absolute;
  inset: -30px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(17, 17, 17, .25);
  font: 400 96px/.85 var(--f-titre);
  text-transform: uppercase;
  word-break: break-all;
  transform: rotate(-6deg);
  pointer-events: none;
}
.is-ink .visuel__fond,
.is-blue .visuel__fond,
.is-ink .hero__fond,
.is-blue .hero__fond { -webkit-text-stroke-color: rgba(255, 255, 255, .25); }
.visuel img {
  position: relative;
  width: 200px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
  transform: rotate(-3deg);
}
.visuel__sticker { position: absolute; top: 22px; right: 22px; font-size: 22px; }
.visuel figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 7px 12px 6px;
  background: var(--ink);
  color: var(--white);
  font: 700 11px/1.3 var(--f-mono);
  text-transform: uppercase;
}

.news__texte p { margin: 0 0 1.2em; font-size: 18px; line-height: 1.72; }
.ml-bloc-intro p { font-size: 21px; font-weight: 800; line-height: 1.45; }
.news__inter {
  display: inline-block;
  margin: 14px 0 20px;
  padding: 9px 14px 7px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 5px 5px 0 var(--red);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
  transform: rotate(-1deg);
}
.news__texte .parodie { margin: 36px 0; }
.news__texte .parodie p { margin: 0 0 .7em; font-size: 15px; line-height: 1.6; }
.news__texte .parodie p:last-child { margin-bottom: 0; }
.ml-bloc-paragraphe p:first-child::first-letter,
.ml-bloc-corps p:first-child::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  color: var(--red);
  text-shadow: 3px 3px 0 var(--ink);
  font: 400 86px/.8 var(--f-titre);
}
.ml-bloc-chute {
  position: relative;
  margin: 44px 0 32px;
  padding: 32px 26px 8px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--sh);
}
.ml-bloc-chute::before {
  content: "Le fin mot de l’histoire";
  position: absolute;
  top: -17px;
  left: 18px;
  padding: 8px 12px 6px;
  background: var(--ink);
  color: var(--white);
  font: 400 18px/1 var(--f-titre);
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.lire-aussi {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 32px 0 !important;
  padding: 18px 20px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
}
.lire-aussi span {
  padding: 5px 8px 4px;
  background: var(--red);
  color: var(--white);
  font: 700 12px/1 var(--f-mono);
  text-transform: uppercase;
}
.lire-aussi a {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.lire-aussi a:hover { background: var(--yellow); }

/* Liens dans le texte (articles, encarts, pages, fiche d'identité, club du profil joueur) :
   trait épais + bande jaune qui remplit tout le mot au survol. */
.news__texte p:not(.lire-aussi) a,
.news__texte li a,
.parodie a,
.prose > p a,
.prose li a,
.fiche dd a,
.chips .chips__lien {
  padding: 0 3px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 100% .42em no-repeat;
  border-bottom: 3px solid var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .12s ease-out, box-shadow .12s ease-out;
}
.news__texte p:not(.lire-aussi) a:hover,
.news__texte li a:hover,
.parodie a:hover,
.prose > p a:hover,
.prose li a:hover,
.fiche dd a:hover,
.chips a:hover .chips__lien {
  background-size: 100% 100%;
  box-shadow: 3px 3px 0 var(--red);
}
/* Sur fond jaune (chapô des pages), la bande passe en blanc pour rester visible. */
.prose .chapo a { background-image: linear-gradient(var(--white), var(--white)); }
.news__texte p:not(.lire-aussi) a:focus-visible,
.news__texte li a:focus-visible,
.parodie a:focus-visible,
.prose > p a:focus-visible,
.prose li a:focus-visible,
.fiche dd a:focus-visible,
.chips a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.parodie {
  padding: 14px 18px;
  background: var(--white);
  border: 3px dashed var(--ink);
  font-size: 14px;
}

/* Page club */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 36px 0 0;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
}
.stats div { padding: 16px 20px; }
.stats div + div { border-left: var(--border); }
.stats dt { font: 700 11px/1.3 var(--f-mono); text-transform: uppercase; }
.stats dd { margin: 4px 0 0; font: 400 44px/1 var(--f-titre); }

.star {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 48px;
  padding: 34px 38px;
  background-color: var(--teal);
  background-image: var(--trame);
  background-size: 12px 12px;
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--sh-lg);
}
.star__photo { position: relative; }
.star__photo img {
  width: 150px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
  transform: rotate(3deg);
}
.star__photo .sticker { position: absolute; top: -14px; left: -18px; }
.star__nom { font-size: clamp(36px, 5vw, 68px); color: var(--ink); }
.star__nom a { text-decoration: none; }
.star__nom a:hover { text-decoration: underline; text-decoration-thickness: 4px; }
.star__infos { margin: 10px 0 18px; font: 700 13px/1.4 var(--f-mono); text-transform: uppercase; }
.star__rumeur { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.star__rumeur a { font-size: 20px; font-weight: 900; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Pages du plugin non surchargées (championnat, anniversaires, page retirée) et shortcodes */
/* Titre des pages du plugin et des animations : grand, calé à gauche sous le fil d'Ariane. */
.ml-main > article > h1,
.titre-page { margin: 8px 0 34px; font-size: clamp(36px, 5.4vw, 72px); line-height: .95; }
/* Animations : le jeu commence juste sous le titre. */
.animation .ml-horoscope,
.animation .ml-swipe { margin-top: 0; }
.ml-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.ml-carte a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
  color: inherit;
  text-decoration: none;
}
.ml-carte img {
  width: 100%;
  aspect-ratio: 139 / 181;
  object-fit: cover;
  border-bottom: var(--border);
}
.ml-carte-nom { padding: 12px 14px 0; font-weight: 900; line-height: 1.2; }
.ml-carte-txt { padding: 4px 14px 14px; font-size: 14px; }
.ml-clubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ml-clubs a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--sh);
  text-decoration: none;
}
.ml-clubs img { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; }
.ml-clubs span { font-size: 18px; font-weight: 900; line-height: 1.2; }
.ml-clubs small { font: 700 11px/1.4 var(--f-mono); text-transform: uppercase; }
.ml-gone { margin-top: 40px; padding: 40px; background: var(--white); border: var(--border); box-shadow: var(--sh-lg); }

/* ============ Pages WordPress ============ */
.prose { max-width: 780px; margin: 44px auto 0; }
.prose--extrait { padding: 24px 28px; margin-top: 26px; }
.prose__titre { margin-bottom: 24px; font-size: clamp(34px, 5vw, 64px); }
.prose--extrait .prose__titre { font-size: 32px; margin-bottom: 10px; }
.prose--extrait .prose__titre a { text-decoration: none; }
.prose > p, .prose li { font-size: 18px; line-height: 1.7; }
.prose h2 {
  display: inline-block;
  margin: 48px 0 18px;
  padding: 9px 14px 7px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 5px 5px 0 var(--red);
  font-size: clamp(24px, 3vw, 34px);
  transform: rotate(-1deg);
}
.prose .chapo {
  padding: 22px 24px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--sh);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
}
/* L'horoscope du foot sort de la colonne de texte de 780 px : il prend la largeur de l'accueil. */
.prose .ml-horoscope {
  width: min(calc(var(--wrap) - 40px), calc(100vw - 60px));
  margin-left: calc(50% - min(calc(var(--wrap) / 2 - 20px), calc(50vw - 30px)));
}
.prose ul { padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.prose ul li::before { content: "✦"; position: absolute; left: 0; color: var(--red); }

.perdu { padding: 60px 0 20px; text-align: center; }
.perdu__code {
  margin: 0;
  color: var(--yellow);
  -webkit-text-stroke: 4px var(--ink);
  text-shadow: 10px 10px 0 var(--ink);
  font: 400 clamp(120px, 22vw, 260px)/.9 var(--f-titre);
}
.perdu__titre { margin: 20px 0 16px; font-size: clamp(32px, 4.6vw, 56px); }
.perdu p:not(.perdu__code) { max-width: 600px; margin: 0 auto 30px; }

/* ============ Pied de page ============ */
.pied {
  margin-top: 90px;
  padding-top: 52px;
  background: var(--ink);
  color: var(--white);
  border-top: var(--border);
}
.pied__grille { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 48px; }
.logo--pied { margin: 0 0 24px; font-size: 64px; }
.logo--pied .logo__land { text-shadow: 4px 4px 0 var(--pink); }
.logo--pied .logo__annee { color: var(--ink); border-color: var(--white); }
.btn--clair { background: var(--yellow); color: var(--ink); border-color: var(--white); }
a.btn--clair:hover { background: var(--white); }
/* Titres de colonne : simples paragraphes (pas de H2 dans le pied de page), au style des titres. */
.pied__titre { margin: 0 0 16px; color: var(--yellow); font: 400 24px/1 var(--f-titre); letter-spacing: .005em; text-transform: uppercase; }
.pied__liens { margin: 0; padding: 0; list-style: none; }
.pied__liens li + li { margin-top: 8px; }
.pied__liens a { font-weight: 700; text-decoration: none; }
.pied__liens a:hover { color: var(--yellow); text-decoration: underline; }
.pied__bas {
  margin-top: 52px;
  padding: 18px 0;
  border-top: 2px solid #333;
  font: 700 11px/1.5 var(--f-mono);
  text-transform: uppercase;
  opacity: .8;
}
.pied__bas a,
.pied__cookies button { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pied__bas a:hover,
.pied__cookies button:hover { color: var(--yellow); }
.pied__cookies button { padding: 0; background: none; border: 0; font: inherit; text-transform: inherit; cursor: pointer; }

/* ============ Bandeau cookies (inc/consentement.php) ============ */
/* Les deux boutons ont exactement le même poids : refuser doit être aussi simple qu'accepter. */
.cookies {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  width: min(460px, calc(100vw - 40px));
  padding: 20px 22px 22px;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--sh);
}
.cookies[hidden] { display: none; }
.cookies__titre {
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 10px 5px;
  background: var(--ink);
  color: var(--yellow);
  font: 400 22px/1 var(--f-titre);
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}
.cookies__texte { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.cookies__texte a { color: inherit; font-weight: 700; text-underline-offset: 2px; }
.cookies__boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cookies__bouton {
  padding: 12px 14px 11px;
  background: var(--white);
  color: var(--ink);
  border: var(--border);
  box-shadow: var(--sh-sm);
  font: 800 14px/1 var(--f-texte);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.cookies__bouton:hover { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }
.cookies__bouton:active { box-shadow: none; transform: translate(3px, 3px); }
.cookies__bouton:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 560px) {
  .cookies { right: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 16px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookies__bouton { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .rgrille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .une { grid-template-columns: minmax(0, 1fr); }
  .agrille--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout__side { position: static; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .jeux { grid-template-columns: minmax(0, 1fr); }
  .jeux__principal:empty { display: none; }
  .testeur__corps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .testeur__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profil { grid-template-columns: auto minmax(0, 1fr); }
  .profil .prix { grid-column: 1 / -1; justify-self: start; transform: rotate(-2deg); }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .pied__grille > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* Le bouton reste calé à droite pendant que les championnats défilent : il s'ouvre vers la gauche. */
  .nav__barre { justify-content: flex-start; padding-right: 0; }
  .nav__bouton { border-left: var(--border); border-right: 0; box-shadow: -6px 0 0 rgba(17, 17, 17, .08); }
  .nav__deroulant { left: auto; right: 0; width: min(320px, calc(100vw - 20px)); }
  .masthead__haut { grid-template-columns: 1fr; justify-items: center; gap: 14px; text-align: center; }
  .masthead__info, .masthead__info--droite { align-items: center; text-align: center; }
  .masthead__info--droite { display: none; }
  .logo__annee { top: -22px; left: calc(100% - 30px); font-size: 13px; }
  a.hero { grid-template-columns: minmax(0, 1fr); }
  .hero__visuel { min-height: 280px; border-right: 0; border-bottom: var(--border); }
  .hero__corps { padding: 22px 20px 24px; }
  .rgrille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .rcard__visuel { height: 170px; }
  .rcard__titre { font-size: 17px; }
  .agrille, .agrille--3 { grid-template-columns: minmax(0, 1fr); }
  .profil { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 26px 22px; }
  .profil__photo img { width: 130px; }
  .profil__logo { width: 120px; height: 120px; }
  .profil__logo img { width: 80px; height: 80px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n + 3) { border-top: var(--border); }
  .star { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 26px 22px; }
  .visuel { height: 280px; }
  .classement a { grid-template-columns: 30px 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .classement img { width: 44px; height: 44px; }
  .pgrille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 560px) {
  .testeur__form { flex-direction: column; align-items: stretch; }
  .testeur__liste { grid-template-columns: minmax(0, 1fr); }
  .testeur .boite__titre { font-size: 22px; }
}
@media (max-width: 440px) {
  .rgrille { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__liste, .ticker__label { animation: none; }
  .ticker__piste { overflow-x: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Une adresse e-mail ne se coupe pas au tiret (contact@mercato-land.com). */
a[href^="mailto:"] { white-space: nowrap; }
