/* Joyeuse Pétanque — maquette de démonstration
   Couleurs reprises de l'ancien site du club (KompoZer) */
:root {
  --rose: #ffcccc;
  --jaune: #ffff99;
  --jaune-pale: #ffffcc;
  --lilas: #ffccff;
  --nuit: #333372;
  --nuit-fonce: #25255a;
  --rouge: #990000;
  --bronze: #7a4e1c;
  --bronze-clair: #e3b567;
  --titre: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  --texte: "Golos Text", "Segoe UI", Arial, sans-serif;
  --page: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rose);
  color: var(--nuit);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--rouge); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 3px;
}
.nuit :focus-visible,
.bandeau-demo :focus-visible,
.pied :focus-visible { outline-color: var(--jaune); }

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p, li, dd { max-width: 64ch; }
p { margin: 0 0 1em; }

.cadre {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

.lien-evitement {
  position: absolute;
  left: -999px;
}
.lien-evitement:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--jaune);
  color: var(--nuit);
  padding: .5rem .75rem;
}

/* Bandeau « maquette » */
.bandeau-demo {
  background: var(--nuit-fonce);
  color: var(--jaune-pale);
  font-size: .875rem;
  padding: .4rem 0;
}
.bandeau-demo p { margin-block: 0; max-width: none; }
.bandeau-demo a { color: var(--jaune-pale); }

/* En-tête : le nom du club en lettres rondes bronze */
.entete { padding: 1.6rem 0 1.2rem; }
.entete .cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .8rem 2rem;
}
.nom-club {
  font-family: var(--titre);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  font-size: clamp(2.3rem, 8vw, 5.6rem);
  line-height: .95;
  color: var(--bronze);
  margin: 0;
  letter-spacing: .005em;
}
.nom-club a { color: inherit; text-decoration: none; }
.ville {
  display: block;
  font-family: var(--titre);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  color: var(--rouge);
  margin-top: .35rem;
  letter-spacing: .01em;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.4rem;
}
.nav a {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--nuit);
  text-decoration: none;
  padding: .2rem 0;
  border-bottom: 4px solid transparent;
}
.nav a:hover { border-bottom-color: var(--nuit); }
.nav a[aria-current="page"] { border-bottom-color: var(--rouge); }

/* Aplats pleine largeur (les « cases » de l'ancien site) */
.aplat { padding: clamp(2.2rem, 6vw, 4rem) 0; }
.aplat-jaune { background: var(--jaune); }
.aplat-jaune-pale { background: var(--jaune-pale); }
.aplat-lilas { background: var(--lilas); }
.nuit { background: var(--nuit); color: var(--jaune-pale); }
.nuit a { color: var(--jaune); }
.serre { padding: 1.4rem 0 1.6rem; }

/* Ouverture de l'accueil */
.ouverture { padding: .8rem 0 3rem; }
.ouverture .cadre {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
}
.cri {
  font-family: var(--titre);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: .8em;
}
.cri span { color: var(--rouge); }
.rendez-vous {
  background: var(--jaune);
  padding: 1.3rem 1.5rem 1.4rem;
  margin: 1.8rem 0 0;
  border-left: 10px solid var(--rouge);
  max-width: 34rem;
}
.rendez-vous .quand {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1;
  margin: 0 0 .35rem;
}
.rendez-vous p:last-child { margin-bottom: 0; }

/* Photos : tirages à bord blanc, légendes datées */
.tirage {
  margin: 0;
  background: #fff;
  padding: 8px 8px 0;
  max-width: max-content;
}
.tirage figcaption {
  font-size: .9rem;
  padding: .5rem .2rem .6rem;
  color: var(--nuit);
  max-width: 40ch;
}

/* Prochaine date */
.prochaine {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 2.5rem;
  align-items: center;
}
.date-ag {
  font-family: var(--titre);
  font-weight: 700;
  line-height: .9;
  margin: 0;
  color: var(--nuit);
}
.date-ag .jour { display: block; font-size: 1.3rem; font-weight: 600; }
.date-ag .num { display: block; font-size: clamp(4rem, 12vw, 7rem); }
.date-ag .mois { display: block; font-size: 1.6rem; }
.prochaine h2 { margin-bottom: .3em; }

/* Signature : le but d'honneur 2026 */
.honneur h2 { color: var(--jaune); }
.honneur .chapeau { color: var(--jaune-pale); }
.tableau-tours {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.4fr)
    minmax(0, 2.2fr);
  gap: 1.5rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.tableau-tours > li { max-width: none; min-width: 0; }
/* La taille du vainqueur suit la largeur réelle de sa colonne :
   « Annick » (le mot le plus large) occupe environ 80 % de la colonne. */
.tableau-tours > .t-finale { container-type: inline-size; }
.tour-nom {
  display: block;
  font-family: var(--texte);
  font-weight: 600;
  font-size: .95rem;
  color: var(--rose);
  border-top: 2px solid var(--rose);
  padding-top: .45rem;
  margin-bottom: .8rem;
}
.tableau-tours ul { list-style: none; margin: 0; padding: 0; }
.tableau-tours ul li { margin-bottom: .55rem; line-height: 1.15; }
.g {
  font-family: var(--titre);
  font-weight: 600;
  color: var(--bronze-clair);
}
.p { font-size: .92rem; color: var(--jaune-pale); }
.t-poules .g { font-size: 1.15rem; color: var(--jaune-pale); font-weight: 500; }
.t-quarts .g { font-size: 1.5rem; }
.t-demies .g { font-size: 2.1rem; }
.t-finale .g {
  display: block;
  font-weight: 700;
  font-variation-settings: "wdth" 125;
  font-size: 3.4rem;
  font-size: clamp(2.6rem, 20cqi, 6.4rem);
  line-height: .9;
  white-space: nowrap;
}
.t-finale .p { font-size: 1.05rem; }
.sniff { font-size: .92rem; color: var(--rose); }

.honneur-dames {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  margin-top: 3.5rem;
  align-items: start;
}
.honneur-dames h3 { color: var(--jaune); }
.tableau-dames {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 2fr);
  margin-top: 1rem;
}
.honneur .tirage { width: min(100%, 300px); justify-self: end; }

/* Saison en bref */
.bref {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem 4rem;
}
.bref-ete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
  gap: 1.5rem;
  align-items: start;
}
.date-courte {
  font-family: var(--titre);
  font-weight: 600;
  color: var(--rouge);
  font-size: 1.1rem;
  margin: 0 0 .2rem;
}
.mentions { padding-left: 1.1rem; margin: 0 0 1rem; }

.classement {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-width: 24rem;
}
.classement li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(51, 51, 114, .35);
  max-width: none;
}
.classement li:first-child {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--bronze);
}
.classement .pts { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}
.contact dl { margin: 0; }
.contact dt { font-weight: 600; margin-top: .9rem; }
.contact dt:first-child { margin-top: 0; }
.contact dd {
  margin: 0;
  font-family: var(--titre);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  overflow-wrap: anywhere;
}
.bouton {
  display: inline-block;
  background: var(--rouge);
  color: #fff;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.15rem;
  padding: .6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
}
.bouton:hover { background: #7a0000; text-decoration: none; }

/* Pages intérieures */
.titre-page { padding: .5rem 0 2rem; }
.titre-page h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--nuit);
  margin-bottom: .4em;
}
.titre-page .intro { font-size: 1.15rem; }

.journal { list-style: none; margin: 0; padding: 0; }
.journal > li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: .5rem 2rem;
  padding: 1.6rem 0;
  border-top: 3px solid var(--nuit);
  max-width: none;
}
.journal > li:last-child { border-bottom: 3px solid var(--nuit); }
.journal .quand {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--rouge);
}
.journal .quand small {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--nuit);
  margin-top: .35rem;
}
.journal h3 { margin-bottom: .35em; }
.journal .a-venir { background: var(--lilas); padding-inline: 1rem; }

.mini-tableau {
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-variant-numeric: tabular-nums;
  background: var(--jaune-pale);
}
.mini-tableau caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: .4rem;
}
.mini-tableau th,
.mini-tableau td {
  text-align: left;
  padding: .45rem .9rem;
  border-bottom: 1px solid rgba(51, 51, 114, .3);
}
.mini-tableau thead th { border-bottom: 2px solid var(--nuit); }
.mini-tableau td.n,
.mini-tableau th.n { text-align: right; }
.mini-tableau tfoot td { font-weight: 600; border-bottom: 0; }

.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
}

.rencontre { margin: 0 0 1.8rem; }
.rencontre h4 { margin-bottom: .25em; }
.rencontre .lieu { margin: 0 0 .5rem; }
.match { margin: 0 0 .8rem; padding-left: 1rem; border-left: 5px solid var(--nuit); }
.match.gagne { border-left-color: var(--rouge); }
.match p { margin: 0 0 .25rem; }
.issue { font-weight: 600; }
.match dl { margin: 0; font-size: .97rem; }
.match dt { display: inline; font-weight: 600; }
.match dd { display: inline; margin: 0; }
.match dd::after { content: ""; display: block; }

.bilan {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
}
.citation {
  margin: 1.5rem 0 0;
  padding: 0;
  font-family: var(--titre);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
}
.citation p { margin-bottom: .3rem; }
.citation footer { font-family: var(--texte); font-size: .95rem; }

.liste-dates { list-style: none; margin: 0; padding: 0; }
.liste-dates > li { padding: .9rem 0; border-bottom: 1px solid rgba(51, 51, 114, .35); max-width: 64ch; }
.liste-dates h3 { font-size: 1.25rem; margin-bottom: .2em; }
.liste-dates ul { margin: 0; padding-left: 1.1rem; }

.regles { padding-left: 1.2rem; }
.regles li { margin-bottom: .4rem; }
.encadre-rouge {
  border: 3px solid var(--rouge);
  padding: .8rem 1rem;
  font-weight: 600;
  max-width: 40rem;
}

/* Licence */
.tarifs {
  border-collapse: collapse;
  width: 100%;
  max-width: 40rem;
  font-variant-numeric: tabular-nums;
}
.tarifs caption { text-align: left; }
.tarifs th,
.tarifs td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .6rem .7rem 0;
  border-bottom: 1px solid rgba(51, 51, 114, .35);
}
.tarifs td.prix {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.6rem;
  text-align: right;
  white-space: nowrap;
  padding-right: 0;
  color: var(--bronze);
}
.tarifs .note { display: block; font-weight: 400; font-size: .95rem; }

.etapes { padding-left: 1.3rem; }
.etapes li { margin-bottom: .6rem; padding-left: .2rem; }

/* Trombinoscope */
.filles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 2.5rem;
}
.filles li, .mecs li { max-width: none; }
.filles img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mecs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 1.6rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.5rem;
}
.mecs img { width: 112px; height: 150px; object-fit: cover; }
.portrait .qui {
  display: block;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: .45rem;
  line-height: 1.15;
}
.portrait .surnom { display: block; font-size: .93rem; line-height: 1.3; }

.liens-utiles { list-style: none; padding: 0; margin: 0; }
.liens-utiles li { margin-bottom: .6rem; }

/* Pied de page */
.pied {
  background: var(--nuit-fonce);
  color: var(--jaune-pale);
  padding: 2.2rem 0 2.6rem;
  font-size: .95rem;
}
.pied a { color: var(--jaune-pale); }
.pied .cadre {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
}
.pied .nom {
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--bronze-clair);
  margin-bottom: .2rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .3rem; }

/* Responsive */
@media (max-width: 60rem) {
  .ouverture .cadre,
  .bref,
  .contact,
  .deux-colonnes { grid-template-columns: minmax(0, 1fr); }
  .tableau-tours { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tableau-tours .t-finale { grid-column: 1 / -1; }
  .tableau-dames { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .honneur .tirage { justify-self: start; }
  .honneur-dames { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
  body { font-size: 1rem; }
  .cadre { width: min(100% - 2rem, var(--page)); }
  .tableau-tours,
  .tableau-dames { grid-template-columns: minmax(0, 1fr); }
  .t-poules ul { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
  .prochaine { grid-template-columns: minmax(0, 1fr); }
  .bref-ete { grid-template-columns: minmax(0, 1fr); }
  .bref-ete .tirage { max-width: 260px; }
  .journal > li { grid-template-columns: minmax(0, 1fr); }
  .filles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mecs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tarifs td.prix { font-size: 1.35rem; }
}
