/* ══════════════════════════════════════════
   ITS Rugby — Calendrier de l'Avent ([its_avent])
   Un bandeau teal au titre vertical, 24 tuiles séparées de quatre tons,
   une illustration maison par jour (assets/itsrugby-avent-icones.svg).
   Chaque tuile montre son illustration dès le départ, le numéro dans le coin (Félix 18/11).
   Charte It's : angles droits, teal #1C3D34 / vanilla #F2E5D2, Noto Sans héritée
══════════════════════════════════════════ */

.its-av {
  display: grid;
  grid-template-columns: clamp(7rem, 12vw, 9rem) minmax(0, 1fr);
  margin: 2rem 0;
  background: #fff;
  color: #1C3D34;
  border-radius: 0;
}
.its-av ::selection {
  background: #1C3D34;
  color: #F2E5D2;
}

/* ── Bandeau : le titre se lit de bas en haut ── */
/* Deux lignes côte à côte (« It's Rugby · dates », puis le titre) : empilées, elles dépassaient la grille et laissaient un trou blanc dessous (01/12). */
.its-av-bande {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  background: #1C3D34;
  color: #F2E5D2;
  writing-mode: vertical-rl;
  /* sideways : sinon l'apostrophe typographique reste debout et troue le titre */
  text-orientation: sideways;
  transform: rotate(180deg);
}
.its-av .its-av-nom {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  color: #F2E5D2;
}
.its-av .its-av-dates {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #F2E5D2;
}

/* Signature du calendrier : « It's Rugby » en tête de la ligne des dates, au-dessus du titre */
.its-av .its-av-marque {
  font-weight: 900;
}

/* ── Zone des tuiles ── */
.its-av-zone {
  padding: clamp(1rem, 2.6vw, 2rem);
  /* sert d'étalon à la hauteur des rangées de tuiles (unités cqw) */
  container-type: inline-size;
}
.its-av-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin: 0 0 clamp(1rem, 2.2vw, 1.5rem);
}
.its-av .its-av-accroche {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 800;
  line-height: 1.2;
  color: #1C3D34;
}
.its-av .its-av-statut,
.its-av .its-av-rebours {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1C3D34;
}
.its-av-rebours:empty {
  display: none;
}
/* Consigne masquée à l'œil pendant le jeu, gardée pour les lecteurs d'écran */
.its-av .its-av-statut.is-discret {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.its-av-grille {
  display: grid;
  --av-gap: clamp(0.5rem, 1.2vw, 0.9rem);
  grid-template-columns: repeat(6, 1fr);
  /* hauteur de rangée calculée (une rangée qui ne porte que des grandes tuiles ne s'écrase pas) :
     les deux tiers de la largeur d'une tuile, pour un calendrier moins haut (Félix 18/11) */
  grid-auto-rows: calc((100cqw - 5 * var(--av-gap)) / 6 * 0.66);
  gap: var(--av-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}
.its-av.is-pret .its-av-grille {
  opacity: 1;
}
.its-av-grille li {
  margin: 0;
  padding: 0;
}
/* Tuiles plus grandes : un carré double et des doubles largeurs */
.its-av-grille .its-av-grand {
  grid-column: span 2;
  grid-row: span 2;
}
.its-av-grille .its-av-large {
  grid-column: span 2;
}

/* Les quatre tons : fond, ton principal, second ton des illustrations */
.its-av-t--teal  { background: #1C3D34; color: #F2E5D2; --av-2: #C9B99F; }
.its-av-t--rouge { background: #9A2A1E; color: #F2E5D2; --av-2: #1C3D34; }
.its-av-t--sable { background: #E8D8C0; color: #1C3D34; --av-2: #9A2A1E; }
.its-av-t--blanc { background: #F2E5D2; color: #1C3D34; --av-2: #9A2A1E; }

.its-av-case {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.its-av-case:disabled {
  cursor: default;
}
/* Jours à venir : en retrait, sauf avant le 1er décembre où tout le calendrier est en vitrine */
.its-av.is-pret:not(.is-avant) .its-av-case:disabled {
  opacity: 0.45;
}
.its-av-case:focus-visible {
  outline: 3px solid #1C3D34;
  outline-offset: 3px;
}
@media (hover: hover) {
  .its-av-case:not(:disabled):hover {
    transform: translateY(-4px);
  }
}

/* Numéro dans le coin, dessin au centre */
.its-av-num {
  position: absolute;
  top: 0.5rem;
  left: 0.6rem;
  font-size: clamp(0.8125rem, 1.5vw, 1.0625rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.its-av-ico {
  position: absolute;
  /* pleine largeur : le dessin se centre seul, quelle que soit la forme de la tuile */
  inset: 22% 0 12%;
  width: 100%;
  height: 66%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Au survol d'une tuile ouvrable, le dessin se redresse un peu */
@media (hover: hover) {
  .its-av-case:not(:disabled):hover .its-av-ico {
    transform: scale(1.12) rotate(-6deg);
  }
}
/* Tuile du jour : le dessin remonte pour ne pas passer sous l'étiquette */
.its-av-case.is-jour .its-av-ico {
  inset: 12% 0 auto;
  height: 52%;
}
/* Tuile du jour : cerclée, avec son étiquette */
.its-av-case.is-jour {
  outline: 3px solid #1C3D34;
  outline-offset: 3px;
}
/* la tuile du jour bat tant qu'on ne l'a pas ouverte */
.its-av-case.is-jour:not(.is-ouverte) {
  animation: its-av-battement 2.2s ease-in-out infinite;
}
@keyframes its-av-battement {
  50% { transform: scale(1.05); }
}
.its-av-auj {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.3em 0;
  background: #1C3D34;
  color: #F2E5D2;
  font-size: clamp(0.5625rem, 1.1vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Jour joué : coche dessinée en bas à droite */
.its-av-case.is-jouee::after {
  content: '';
  position: absolute;
  right: 0.6rem;
  bottom: 0.65rem;
  width: 0.4rem;
  height: 0.8rem;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ── Contenu de la case (dialog natif) ── */
.its-av-dialog {
  width: calc(100% - 2rem);
  max-width: 27rem;
  max-height: calc(100dvh - 2rem);
  /* le thème remet les marges à zéro : sans ça la carte se colle en haut à gauche */
  inset: 0;
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #F2E5D2;
  color: #1C3D34;
  box-shadow: 0 30px 70px -10px rgba(10, 26, 22, 0.7);
}
/* La fenêtre reçoit le focus à l'ouverture : pas de cadre autour d'elle, il reste visible sur ses boutons */
.its-av-dialog:focus {
  outline: 0;
}
.its-av-dialog ::selection {
  background: #1C3D34;
  color: #F2E5D2;
}
.its-av-dialog::backdrop {
  background: rgba(20, 44, 38, 0.86);
}
.its-av-dialog[open] {
  animation: its-av-entree 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.its-av-dialog[open]::backdrop {
  animation: its-av-voile 0.3s ease;
}
@keyframes its-av-entree {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
}
@keyframes its-av-voile {
  from { opacity: 0; }
}

/* En-tête : le ton et l'illustration de la tuile, la date posée dessus.
   Les tuiles claires passent en teal ici : sur le corps vanille de la fenêtre, un en-tête clair ne se détachait pas. */
.its-av-entete.its-av-t--blanc,
.its-av-entete.its-av-t--sable {
  background: #1C3D34;
  color: #F2E5D2;
  --av-2: #C9B99F;
}
.its-av-entete {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 9.5rem;
  padding: 1.25rem 1.5rem;
}
.its-av-entete-ico {
  position: absolute;
  right: 1.5rem;
  bottom: 1.1rem;
  width: 6.5rem;
  height: 6.5rem;
}
.its-av-dialog .its-av-date {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0;
  color: inherit;
  font-weight: 800;
  line-height: 0.85;
}
.its-av-date-num {
  font-size: clamp(4rem, 20vw, 5.5rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.its-av-date-mois {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
/* Fermer : croix dessinée, zone de 44 px */
.its-av-dialog .its-av-fermer {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.its-av-fermer::before,
.its-av-fermer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.its-av-fermer::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.its-av-dialog .its-av-fermer:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.its-av-corps {
  padding: 1.5rem 1.5rem 1.25rem;
}
/* Case à lot : hauteur fixe, la même avant et après le grattage ; le contenu « à découvrir » se centre,
   les liens restent en bas. Un lot plus long que la place prévue agrandit encore la case. */
.its-av-dialog.is-lot .its-av-corps {
  display: flex;
  flex-direction: column;
  min-height: 34rem;
}
/* Avant le grattage, le contenu se centre dans la carte */
.its-av-dialog.is-lot .its-av-lotzone {
  margin-top: auto;
}
.its-av-dialog.is-lot .its-av-cta {
  margin-bottom: auto;
}
.its-av-dialog.is-lot #avent .its-av-liens,
#avent .its-av-dialog.is-lot .its-av-liens {
  margin-top: auto;
}
.its-av-dialog .its-av-titre {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: #1C3D34;
}
.its-av-dialog .its-av-texte {
  margin: 0 0 1.5rem;
  color: #1C3D34;
}
.its-av-dialog .its-av-sur {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1C3D34;
}
/* Photo du lot, au-dessus de son nom une fois découvert */
.its-av-dialog .its-av-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 12rem;
  margin: 0 0 1rem;
  object-fit: cover;
}
.its-av-photo[hidden] {
  display: none;
}
/* Logo du partenaire à la place de son nom */
.its-av-logo {
  display: inline-block;
  width: auto;
  height: 1.75em;
  max-width: 9rem;
  object-fit: contain;
  vertical-align: middle;
}
/* Dans la case : « Offert par » et le logo en grand sur la même ligne, centrés en hauteur */
#avent .its-av-texte.avec-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}
#avent .its-av-texte .its-av-logo {
  display: block;
  height: 3rem;
  max-width: 13rem;
}
.its-av-dialog .its-av-detail {
  margin: -0.75rem 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1C3D34;
}
.its-av-detail[hidden] {
  display: none;
}
/* Nom du partenaire en lien vers son site (jamais souligné : gras teal) */
#avent .its-av-texte a,
.its-av-page .its-av-lots-liste a {
  color: #1C3D34;
  font-weight: 800;
  text-decoration: none;
}
#avent .its-av-texte a:focus-visible,
.its-av-page .its-av-lots-liste a:focus-visible {
  outline: 2px solid #1C3D34;
  outline-offset: 2px;
}
.its-av-sur[hidden],
.its-av-texte[hidden] {
  display: none;
}

/* « Gratte ta case » : couche à gratter (canvas posé par le script) sur le lot */
.its-av-lotzone {
  position: relative;
}
.its-av-corps {
  position: relative;
}
.its-av-grattage {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
  transition: opacity 0.45s ease;
}
.its-av-grattage.is-fini {
  opacity: 0;
}
/* « Tout découvrir » posé sur la couche, en bas de la carte */
#avent .its-av-corps .its-av-tout {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: #F2E5D2;
}
#avent .its-av-corps .its-av-tout:focus-visible {
  outline-color: #F2E5D2;
}

/* Nombre de gagnants, sous « Tu participes au tirage du jour » */
.its-av-dialog .its-av-nb {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Les actions : participer d'abord, le lien du jour ensuite */
/* #avent sur les liens : le thème impose color: inherit aux <a> par une longue chaîne de :not(), seul un id passe devant (pas de !important). */
.its-av-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.its-av-dialog .its-av-action {
  margin: 0;
  font-weight: 700;
  color: #1C3D34;
}
.its-av-action:empty {
  display: none;
}
/* Phrase d'état (« Tu participes… », « tirage clos ») : sur sa ligne */
.its-av-action:not(:has(.its-av-btn)) {
  flex-basis: 100%;
  text-align: center;
}
#avent .its-av-btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  border: 2px solid #1C3D34;
  border-radius: 0;
  background: #1C3D34;
  color: #F2E5D2;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
#avent .its-av-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
#avent .its-av-btn--contour {
  background: transparent;
  color: #1C3D34;
}
/* Case sans tirage ouvert : le lien du jour devient l'action principale */
#avent .its-av-action:empty + .its-av-btn--contour {
  background: #1C3D34;
  color: #F2E5D2;
}
#avent .its-av-btn[hidden] {
  display: none;
}
#avent .its-av-btn:focus-visible,
#avent .its-av-lien:focus-visible {
  outline: 2px solid #1C3D34;
  outline-offset: 3px;
}

/* Cadeau pour tous : encart sable, le code en gros avec son bouton de copie */
.its-av-cadeau {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: #E8D8C0;
}
.its-av-cadeau[hidden],
.its-av-code[hidden] {
  display: none;
}
.its-av-dialog .its-av-cadeau-txt {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1C3D34;
}
.its-av-cadeau-txt:empty {
  display: none;
}
.its-av-dialog .its-av-code {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0.75rem 0 0;
}
.its-av-code code {
  flex: 1 1 auto;
  padding: 0.55em 0.9em;
  border: 2px dashed #1C3D34;
  border-right: 0;
  background: #F2E5D2;
  color: #1C3D34;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  user-select: all;
}
#avent .its-av-copier {
  padding: 0.55em 1em;
  border: 2px solid #1C3D34;
  border-radius: 0;
  background: #1C3D34;
  color: #F2E5D2;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
#avent .its-av-copier:focus-visible {
  outline: 2px solid #1C3D34;
  outline-offset: 3px;
}
#avent .its-av-cadeau .its-av-lien {
  display: inline-block;
  margin-top: 0.75rem;
}
#avent .its-av-cadeau .its-av-lien[hidden] {
  display: none;
}

/* Pied : règlement et partage, discrets */
#avent .its-av-liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(28, 61, 52, 0.2);
}
#avent .its-av-liens:not(:has(.its-av-lien:not([hidden]))) {
  display: none;
}
#avent .its-av-lien {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1C3D34;
  text-decoration: none;
  cursor: pointer;
}
#avent .its-av-lien[hidden] {
  display: none;
}


/* ── Landing : le calendrier est le visuel du haut de page ── */
.its-av-visuel {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.its-av-visuel .its-av {
  margin: 0;
  box-shadow: 0 30px 70px -20px rgba(10, 26, 22, 0.65);
}
/* Lots en paquets cadeaux : paquet teal noué d'un ruban rouge (les couleurs des cases), logo du partenaire sur l'étiquette */
.its-av-paquets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.its-av-paquets li {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.its-av-paquet {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  /* ruban en croix, décalé comme sur un vrai paquet */
  background:
    linear-gradient(90deg, transparent 0 calc(62% - 9px), #9A2A1E calc(62% - 9px) calc(62% + 9px), transparent calc(62% + 9px)),
    linear-gradient(180deg, transparent 0 calc(38% - 9px), #9A2A1E calc(38% - 9px) calc(38% + 9px), transparent calc(38% + 9px)),
    #1C3D34;
}
/* L'étiquette : vanille, coins coupés côté gauche comme une étiquette de cadeau, posée de biais */
.its-av-etiquette {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64%;
  aspect-ratio: 16 / 9;
  padding: 7% 9% 7% 13%;
  box-sizing: border-box;
  background: #F2E5D2;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 12% 100%, 0 50%);
  transform: rotate(-4deg);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}
.its-av-etiquette img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.its-av-etiquette > span {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: #1C3D34;
}
/* Pastille du nombre de gagnants, en haut à gauche du paquet */
.its-av-paquet-nb {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1C3D34;
  background: #F2E5D2;
}
.its-av-paquet-txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 16px 18px 18px;
}
.its-av-paquet-txt strong {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1C3D34;
}
.its-av-paquet-txt > span {
  margin-top: auto;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(28, 61, 52, 0.84);
}
.its-av-page .its-av-paquet-txt a {
  font-weight: 800;
  color: #1C3D34;
  text-decoration: none;
}
.its-av-page .its-av-paquet-txt a:focus-visible {
  outline: 2px solid #1C3D34;
  outline-offset: 2px;
}
/* Dernier paquet : il remplit toute la carte, « Et plein d'autres surprises… » écrit sur l'étiquette */
.its-av-paquets .its-av-paquet-plus {
  background: #1C3D34;
}
.its-av-paquet-plus .its-av-paquet {
  flex: 1;
  aspect-ratio: auto;
  min-height: 220px;
}
.its-av-paquet-plus .its-av-etiquette {
  width: min(78%, 340px);
  aspect-ratio: auto;
  padding: 1.4rem 1.4rem 1.4rem 2.4rem;
}
.its-av-paquet-plus .its-av-etiquette strong {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  color: #1C3D34;
}
/* La carte « surprises » prend les places qui restent sur la dernière rangée (classes posées par le PHP) */
.its-av-plus-4-2 { grid-column: span 2; }
.its-av-plus-4-3 { grid-column: span 3; }
.its-av-plus-4-4 { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .its-av-paquets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .its-av-paquets .its-av-paquet-plus { grid-column: span 1; }
  .its-av-paquets .its-av-plus-3-2 { grid-column: span 2; }
  .its-av-paquets .its-av-plus-3-3 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .its-av-paquets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .its-av-paquets .its-av-paquet-plus { grid-column: span 1; }
  .its-av-paquets .its-av-plus-2-2 { grid-column: 1 / -1; }
  .its-av-paquet-txt { padding: 12px 12px 14px; }
  .its-av-paquet-txt strong { font-size: 0.95rem; }
  .its-av-paquet-txt > span { font-size: 0.8125rem; }
  .its-av-paquet-nb { top: 6px; left: 6px; font-size: 0.72rem; }
}
[data-av-invite][hidden],
.its-av-gagnants[hidden] {
  display: none;
}
.its-av-gagnants-liste {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(28, 61, 52, 0.2);
}
.its-av-gagnants-liste li {
  display: grid;
  grid-template-columns: 9rem 12rem 1fr;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(28, 61, 52, 0.2);
}
.its-av-gagnants-liste b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
/* Sections claires qui se suivent : un seul espace entre deux, pas la somme des deux marges */
.its-av-page .rv-sec + .rv-sec {
  padding-top: 0;
}
/* Le titre porte déjà son trait : pas de second filet juste dessous */
.its-av-page .rv-faq-liste,
.its-av-page .its-av-lots-liste,
.its-av-page .its-av-gagnants-liste {
  border-top: 0;
}
/* Étapes empilées : la première est déjà sous le trait du titre */
@media (max-width: 960px) {
  .its-av-page .rv-et li:first-child {
    padding-top: 0;
    border-top: 0;
  }
}
/* Appel final : encart teal dans la colonne, texte à gauche, bouton à droite */
#avent {
  scroll-margin-top: 110px;
}
.its-av-fin-boite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(28px, 4vw, 52px);
  background: #1C3D34;
  color: #F2E5D2;
}
.its-av-page .its-av-fin-t {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #F2E5D2;
}
.its-av-fin-texte p {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(242, 229, 210, 0.85);
}
.its-av-fin-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.its-av-page a.its-av-fin-btn {
  display: inline-block;
  padding: 16px 30px;
  background: #F2E5D2;
  color: #1C3D34;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
/* La règle générale .its-v2 a[class] du thème impose sa couleur au lien : le libellé la porte. */
.its-av-fin-btn span {
  font-weight: 800;
  color: #1C3D34;
}
.its-av-page a.its-av-fin-regl {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F2E5D2;
  text-decoration: none;
}
.its-av-page a.its-av-fin-btn:focus-visible,
.its-av-page a.its-av-fin-regl:focus-visible {
  outline: 2px solid #F2E5D2;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .its-av-fin-boite { grid-template-columns: 1fr; }
  .its-av-fin-actions { align-items: stretch; }
  .its-av-page a.its-av-fin-btn { text-align: center; }
}


@media (max-width: 640px) {
  .its-av-gagnants-liste li { grid-template-columns: 1fr; }
}
/* Tablette et téléphone : le bandeau passe au-dessus, à l'horizontale, 4 colonnes */
@media (max-width: 900px) {
  .its-av { grid-template-columns: 1fr; }
  .its-av-bande {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    writing-mode: horizontal-tb;
    transform: none;
  }
  .its-av .its-av-nom { font-size: clamp(1.5rem, 7vw, 2.25rem); white-space: normal; }
  .its-av .its-av-dates { letter-spacing: 0.16em; white-space: normal; }
  .its-av-grille { grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc((100cqw - 3 * var(--av-gap)) / 4 * 0.8); }
  /* le 24 ferme le calendrier sur toute la largeur */
  .its-av-grille li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .its-av-auj { font-size: 0.5rem; letter-spacing: 0.02em; }
  #avent .its-av-tete .its-av-btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .its-av-case,
  .its-av-ico,
  .its-av-grille { transition: none; }
  .its-av-grattage { transition: none; }
  .its-av-case.is-jour:not(.is-ouverte),
  .its-av-dialog[open],
  .its-av-dialog[open]::backdrop { animation: none; }
}

/* Participation sans compte : prénom, nom, e-mail dans la case (Félix 01/12) */
.its-av-form {
  display: grid;
  gap: 12px;
  margin: 0;
  text-align: left;
}
.its-av-form-intro {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1C3D34;
}
.its-av-form-ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.its-av-champ {
  display: grid;
  gap: 4px;
}
.its-av-champ label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1C3D34;
}
.its-av-champ input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  color: #1C3D34;
  background: #fff;
  border: 1px solid #1C3D34;
  border-radius: 0;
}
.its-av-champ input:focus-visible,
.its-av-coche input:focus-visible {
  outline: 2px solid #1C3D34;
  outline-offset: 2px;
}
.its-av-coche {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #1C3D34;
}
.its-av-coche input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #1C3D34;
}
.its-av-coche a {
  font-weight: 800;
  color: #1C3D34;
  text-decoration: none;
}
.its-av-form .its-av-btn {
  width: 100%;
  text-align: center;
}
.its-av-form-msg {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #9E2A1C;
}
.its-av-form-msg:empty {
  display: none;
}
.its-av-form-rgpd {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(28, 61, 52, 0.8);
}
/* Champ piège pour les robots : hors écran */
.its-av-pot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 480px) {
  .its-av-form-ligne { grid-template-columns: 1fr; }
}
/* Le formulaire prend toute la largeur de la carte */
.its-av-action:has(.its-av-form) {
  flex-basis: 100%;
  font-weight: 400;
}
/* Retour du lien de confirmation : bouton « Je confirme » au-dessus des cases */
.its-av-confirmer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #1C3D34;
}
.its-av-confirmer p {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  color: #F2E5D2;
}
.its-av-confirmer p + p {
  flex-basis: 100%;
  font-weight: 400;
}
#avent .its-av-confirmer .its-av-btn {
  border-color: #F2E5D2;
  background: #F2E5D2;
  color: #1C3D34;
}
