/* Brié Alpes Soaring : maquette « Face à la vallée »
   Michroma (titres) + B612 (texte). Aucune animation. */

:root {
  --bleu: #1F5FA8;      /* bleu émetteur du logo */
  --lien: #006699;      /* liens de l'ancien thème */
  --rouge-titre: #FF3333; /* titre de l'ancien site, grand texte seulement */
  --rouge: #C21F2B;     /* rouge pince : action, concours F3F */
  --encre: #17191E;     /* trait de la spirale */
  --brume: #ECEEF0;     /* ciel et vallée du panorama */
  --herbe: #6B5A30;     /* herbe d'hiver : légendes (6,7:1 sur blanc) */
  --herbe-fonce: #4A3D1C; /* herbe d'hiver foncée : dates (10,6:1 sur blanc) */
  --retrait: calc(158px + 1.75rem); /* largeur du cartouche + écart */
  --gris: #CCCCCC;      /* colonne grise de l'ancien site */
  --titre: "Michroma", "Eurostile", "Arial", sans-serif;
  --texte: "B612", "Verdana", sans-serif;
  --large: 72rem;
  --marge: clamp(1rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.6;
}
@media (min-width: 52rem) {
  body { font-size: 1.0625rem; }
}

a[href^="mailto:"] { overflow-wrap: anywhere; }

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

a { color: var(--lien); text-underline-offset: .18em; }
a:hover { color: var(--encre); }

:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 .6em;
}

h2 {
  color: var(--bleu);
  font-size: clamp(1.25rem, 1rem + 1.3vw, 1.75rem);
}

h3 { font-size: 1rem; margin-top: 1.6em; }

p, ul, ol, dl, table { margin: 0 0 1em; }

.texte { max-width: 38rem; }

.enveloppe {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 var(--marge);
}

/* Bandeau de démonstration */
.demo {
  background: var(--encre);
  color: var(--brume);
  font-size: .875rem;
  padding: .45rem var(--marge);
  text-align: center;
}
.demo a { color: #8FC3F0; }
.demo a:hover { color: #fff; }

/* En-tête */
.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  padding-top: 1.25rem;
  padding-bottom: .75rem;
}

.cartouche {
  flex: none;
  display: block;
  background: #fff;
  border: 6px solid var(--gris);
  border-radius: 2px;
  padding: 4px;
}
.cartouche img { width: 96px; }
@media (min-width: 52rem) {
  .cartouche img { width: 138px; } /* taille réelle du logo, jamais plus */
}

.entete-texte { flex: 1 1 16rem; min-width: 0; }

.nom-club {
  display: block;
  color: var(--rouge-titre);
  font-family: var(--titre);
  font-size: clamp(1.6rem, .9rem + 3.4vw, 3.5rem);
  line-height: 1.1;
  text-decoration: none;
  margin-bottom: .35rem;
}
.nom-club:hover { color: var(--rouge); }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .1rem;
  font-family: var(--titre);
  font-size: .95rem;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--gris); }
.nav a[aria-current="page"] { border-bottom-color: var(--bleu); color: var(--bleu); }

/* Intro */
.intro {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
  line-height: 1.5;
  max-width: 40rem;
  margin: .25rem 0 1.5rem;
}
/* Sur grand écran, l'intro s'aligne sous le nom du club */
@media (min-width: 52rem) {
  .intro { margin-left: var(--retrait); margin-top: 0; }
}

/* Panorama : l'élément signature */
.panorama {
  margin: 0 0 3rem;
  border-top: 1px solid var(--gris);
  border-bottom: 1px solid var(--gris);
  background: var(--brume);
}

.panorama-defile {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--herbe) var(--brume);
}

.panorama-bande {
  position: relative;
  width: max-content;
}

.panorama-bande img {
  height: clamp(260px, 42vw, 420px);
  width: auto;
  max-width: none;
}

.reperes {
  position: relative;
  height: 2.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--herbe-fonce);
}
.reperes li {
  position: absolute;
  top: 0;
  padding: .55rem 0 0 .5rem;
  border-left: 2px solid var(--herbe);
  white-space: nowrap;
}

.panorama figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 2rem;
  max-width: var(--large);
  margin: 0 auto;
  padding: .75rem var(--marge);
  font-size: .9rem;
  background: #fff;
}
.panorama figcaption span { color: var(--herbe); }

/* Sections */
.section { padding: 1rem 0 2.5rem; }

.bande {
  background: var(--brume);
  padding: 2.5rem 0;
  margin: 1rem 0 2.5rem;
}

.deux {
  display: grid;
  gap: 2rem 3rem;
}
.deux > *, .planche > *, .documents > * { min-width: 0; max-width: 100%; }

/* Phrase d'accueil : en texte, Michroma reste aux titres courts */
.intro.phrase { font-family: var(--texte); font-weight: 400; }

.contact :focus-visible { outline-color: #fff; }
@media (min-width: 52rem) {
  .deux { grid-template-columns: 5fr 7fr; align-items: start; }
  .deux.inverse { grid-template-columns: 7fr 5fr; }
}

.photo { margin: 0 0 1.5rem; }
.photo img { width: auto; }
.photo figcaption {
  margin-top: .45rem;
  font-size: .9rem;
  color: var(--herbe);
  max-width: 38rem;
}

/* Tableau de saison */
.saison {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
/* baseline : la date s'aligne sur la première ligne du rendez-vous */
.saison th, .saison td {
  text-align: left;
  vertical-align: baseline;
  padding: .7rem 1rem .7rem 0;
  border-bottom: 1px solid #c9ced4;
}
.saison thead th {
  font-weight: 700;
  font-size: .875rem;
  border-bottom: 2px solid var(--bleu);
}
.saison tbody th {
  font-family: var(--titre);
  font-weight: 400;
  color: var(--herbe-fonce);
  white-space: nowrap;
  width: 12rem;
  font-size: .95rem;
}
.saison tr.f3f td:first-of-type { border-left: 4px solid var(--rouge); padding-left: .6rem; }
.saison td small { display: block; color: #4a4f57; font-size: .9rem; margin-top: .15rem; }
.note { font-size: .9rem; color: #4a4f57; max-width: 38rem; }

@media (max-width: 34rem) {
  .saison thead { position: absolute; left: -9999px; }
  .saison tr { display: block; border-bottom: 1px solid #c9ced4; padding: .6rem 0; }
  .saison th, .saison td { display: block; border: 0; padding: .1rem 0; width: auto; }
  .saison tr.f3f { border-left: 4px solid var(--rouge); padding-left: .6rem; }
  .saison tr.f3f td:first-of-type { border-left: 0; padding-left: 0; }
}

/* Citation F3F */
.citation {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--rouge);
  max-width: 40rem;
  font-size: 1.05rem;
}
.citation p:last-child { margin-bottom: 0; }

/* Contact */
.contact {
  background: var(--bleu);
  color: #fff;
  padding: 2.5rem 0;
}
.contact h2 { color: #fff; }
.contact a { color: #fff; }
.adresse {
  font-family: var(--titre);
  font-size: clamp(1rem, .7rem + 2vw, 1.9rem);
  overflow-wrap: anywhere;
  margin: .25rem 0 1rem;
}

.bouton {
  display: inline-block;
  background: var(--rouge);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
}
.bouton:hover { background: var(--encre); color: #fff; }

/* Règles de la pente */
.regles {
  counter-reset: regle;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  max-width: 50rem;
}
.regles > li {
  counter-increment: regle;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 .75rem;
  padding: .9rem 0;
  border-top: 1px solid #c9ced4;
}
.regles > li::before {
  content: counter(regle);
  font-family: var(--titre);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--bleu);
}
.regles > li > * { grid-column: 2; margin: 0; }
.regles strong { display: block; }
.regles ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.regles .imperatif { color: var(--rouge); font-weight: 700; margin-top: .4rem; }

/* Planche photos à taille réelle */
/* Une colonne en mobile, deux sur grand écran ; les images gardent au plus
   leur taille réelle (width: auto + max-width: 100 %), jamais agrandies. */
.planche {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 2.5rem;
  align-items: start;
}
@media (min-width: 52rem) {
  .planche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.planche .photo { margin: 0; }

.documents {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
}
.documents .photo img, .doc img { border: 1px solid var(--gris); }
.doc { margin: 0 0 2rem; }

.coord { font-family: var(--titre); font-size: .95rem; }

/* Listes simples */
.liste { padding-left: 1.2rem; max-width: 42rem; }
.liste li { margin-bottom: .35rem; }

dl.bureau { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; max-width: 40rem; }
dl.bureau dt { font-weight: 700; }
dl.bureau dd { margin: 0; }
@media (max-width: 30rem) {
  dl.bureau { grid-template-columns: 1fr; }
  dl.bureau dd { margin-bottom: .6rem; }
}

.annees { font-family: var(--titre); color: var(--rouge); }

.etapes { max-width: 42rem; padding-left: 1.4rem; }
.etapes li { margin-bottom: .6rem; padding-left: .25rem; }

/* Pied de page */
.pied {
  border-top: 6px solid var(--gris);
  padding: 1.5rem 0 2rem;
  font-size: .875rem;
  color: #4a4f57;
}
.pied p { max-width: 52rem; }
