@charset "utf-8";

/* =========================================================================
   Club Hippique des Joncs Marins — feuille de style unique
   Mobile-first. Testée à 360, 390, 768 et 1280 px.
   ========================================================================= */

/* ------------------------------------------------ 1. Jetons de conception */

:root {
  --sable:       #DED5C4;
  --sable-clair: #EFE9DC;
  --sous-bois:   #1E2A22;
  --bois:        #5B2E1C;
  --jaune:       #E8B33C;
  --encre:       #241E18;
  --gris:        #5C5348;

  /* déclinaisons calculées à partir des jetons, pas de nouvelles couleurs */
  --bois-fonce:   #3E1F12;
  --sous-bois-2:  #2B3A30;
  --trait:        #C8BCA6;

  --pas:    1rem;
  --mesure: 62ch;        /* longueur de ligne maximale */
  --large:  74rem;       /* largeur de contenu maximale */
}

/* ---------------------------------------------------- 2. Base et remise à zéro */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--sable-clair);
  color: var(--encre);
  font-family: Karla, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* place pour la barre d'action fixe en bas sur mobile */
  padding-bottom: 4.75rem;
}

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

/* ------------------------------------------------------------ 3. Typographie */

h1, h2, h3 {
  font-family: Anton, Impact, "Haettenschweiler", sans-serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  /* casse de phrase : jamais de text-transform ici */
}

h1 { font-size: clamp(2rem, 8vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
h3 {
  font-family: Karla, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.4em;
}

p, li { max-width: var(--mesure); }
p { margin: 0 0 1em; }

strong { font-weight: 700; }

a { color: var(--bois); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--encre); }

.chapo {
  font-size: clamp(1.125rem, 3.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--gris);
}

.note {
  font-size: 0.9375rem;
  color: var(--gris);
}

/* ------------------------------------------- 4. Accessibilité : focus, évitement */

:focus-visible {
  outline: 3px solid var(--bois);
  outline-offset: 3px;
  border-radius: 2px;
}
.sur-sombre :focus-visible,
.bouton--primaire:focus-visible { outline-color: var(--jaune); }

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--jaune);
  color: var(--encre);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 100;
}
.evitement:focus { left: 0; }

/* ------------------------------------------------------ 5. Mise en page générale */

.enveloppe {
  width: 100%;
  max-width: var(--large);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.bloc { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.bloc--serre { padding-block: clamp(1.75rem, 4vw, 2.5rem); }

.bloc--sombre {
  background: var(--sous-bois);
  color: var(--sable-clair);
}
.bloc--sombre h2, .bloc--sombre h3 { color: var(--sable-clair); }
.bloc--sombre .chapo, .bloc--sombre .note { color: var(--sable); }
.bloc--sombre a { color: var(--jaune); }
.bloc--sombre a:hover { color: var(--sable-clair); }

.bloc--sable { background: var(--sable); }

.regle {
  border: 0;
  border-top: 2px solid var(--trait);
  margin: clamp(2rem, 5vw, 3rem) 0;
}

/* ------------------------------------------------------------- 6. En-tête */

.entete {
  background: var(--sous-bois);
  color: var(--sable-clair);
  border-bottom: 5px solid var(--jaune);
}

.entete__haut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.9rem;
}

.marque {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sable-clair);
  text-decoration: none;
}
.marque__logo { width: 42px; height: auto; flex: none; }
.marque__nom {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.marque__lieu {
  display: block;
  font-family: Karla, system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--sable);
  letter-spacing: 0.02em;
}

/* téléphone dans l'en-tête : masqué sur mobile, la barre fixe le remplace */
.entete__tel {
  display: none;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--jaune);
  text-decoration: none;
  white-space: nowrap;
}
.entete__tel:hover { color: var(--sable-clair); text-decoration: underline; }

/* --------------------------------------------------------- 7. Navigation */

.navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0 0 0.5rem;
}
.navigation li { max-width: none; }

.navigation a {
  display: block;
  padding: 0.5rem 0;
  color: var(--sable-clair);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 4px solid transparent;
}
.navigation a:hover { border-bottom-color: var(--sable); }

/* état actif : signalé par le poids, un liseré épais ET un repère,
   jamais par la seule couleur */
.navigation a[aria-current="page"] {
  font-weight: 700;
  color: var(--jaune);
  border-bottom-color: var(--jaune);
}
.navigation a[aria-current="page"]::before {
  content: "▸\00a0";
  color: var(--jaune);
}

/* ---------------------------------------------------- 8. Bandeau d'information */

.bandeau {
  background: var(--jaune);
  color: var(--encre);
}
.bandeau p {
  max-width: none;
  margin: 0;
  padding-block: 0.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
}
.bandeau a { color: var(--encre); font-weight: 700; }

/* ------------------------------------------ 9. Le panneau de bois : une fois par page */

.panneau {
  position: relative;
  background: var(--bois);
  color: var(--sable-clair);
  border: 4px solid var(--bois-fonce);
  border-radius: 6px;
  padding: clamp(1.5rem, 5vw, 2.25rem) clamp(1.25rem, 5vw, 2.75rem);
  margin: 0 auto;
  max-width: 34rem;
  transform: rotate(-0.7deg);
  box-shadow: 0 6px 0 var(--bois-fonce);
}
/* deux traits de planche, pas un dégradé */
.panneau::before {
  content: "";
  position: absolute;
  inset: 0.55rem 0.55rem auto;
  height: 0;
  border-top: 1px solid var(--bois-fonce);
  opacity: 0.55;
}
.panneau::after {
  content: "";
  position: absolute;
  inset: auto 0.55rem 0.55rem;
  height: 0;
  border-top: 1px solid var(--bois-fonce);
  opacity: 0.55;
}
.panneau h1, .panneau p { margin: 0; max-width: none; }
.panneau h1 { color: var(--sable-clair); }
.panneau p {
  margin-top: 0.5rem;
  color: var(--sable);
  font-size: 1rem;
}
/* les deux vis */
.panneau__vis {
  position: absolute;
  top: 0.6rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bois-fonce);
}
.panneau__vis--g { left: 0.7rem; }
.panneau__vis--d { right: 0.7rem; }

.panneau-cadre { padding-block: clamp(2rem, 6vw, 3.25rem); }

/* ------------------------------------------------------------- 10. Boutons */

.bouton {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 3px solid var(--encre);
  border-radius: 4px;
  text-align: center;
}
.bouton--primaire {
  background: var(--jaune);
  color: var(--encre);
  border-color: var(--encre);
}
.bouton--primaire:hover { background: var(--encre); color: var(--jaune); }

.bouton--fantome {
  background: transparent;
  color: var(--encre);
  border-color: var(--encre);
}
.bouton--fantome:hover { background: var(--encre); color: var(--sable-clair); }

.bloc--sombre .bouton--fantome {
  color: var(--sable-clair);
  border-color: var(--sable-clair);
}
.bloc--sombre .bouton--fantome:hover {
  background: var(--sable-clair);
  color: var(--sous-bois);
}

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------- 11. Accueil */

.hero { background: var(--sous-bois); color: var(--sable-clair); }
.hero__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero__texte { padding-block: clamp(2rem, 6vw, 3.5rem); }
.hero h1 { color: var(--sable-clair); }
.hero .chapo { color: var(--sable); }

.reponses {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.reponses > div {
  border-left: 5px solid var(--jaune);
  padding-left: 1rem;
}
.reponses dt {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gris);
  margin-bottom: 0.15rem;
}
.bloc--sombre .reponses dt { color: var(--sable); }
.reponses dd {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.1;
}
.reponses dd small {
  display: block;
  font-family: Karla, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 0.35rem;
  color: var(--gris);
}
.bloc--sombre .reponses dd small { color: var(--sable); }
.reponses + .note, .reponses + p { margin-top: 1.25rem; }

/* -------------------------------------------------- 12. Rubriques et sections */

.rubriques {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--trait);
}
.rubrique {
  border-bottom: 2px solid var(--trait);
  padding-block: 1.5rem;
  display: grid;
  gap: 0.9rem;
}
.rubrique h3 {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0;
}
.rubrique p { margin: 0; }
.rubrique img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
.rubrique__lien { font-weight: 700; }

/* les tranches d'âge de l'école */
.tranche {
  border-left: 6px solid var(--bois);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-block: 2rem;
}
.tranche h3 {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(1.375rem, 4.5vw, 1.75rem);
  margin-bottom: 0.15rem;
}
.tranche__age {
  display: block;
  font-family: Karla, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bois);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

/* le déroulé d'une séance */
.deroule {
  list-style: none;
  counter-reset: etape;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}
.deroule li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
  max-width: var(--mesure);
}
.deroule li::before {
  content: counter(etape);
  font-family: Anton, Impact, sans-serif;
  font-size: 1.25rem;
  color: var(--sable-clair);
  background: var(--sous-bois);
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
}

/* liste à puces sobre */
.liste-puces { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; }
.liste-puces li { padding-left: 1.35rem; position: relative; }
.liste-puces li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: var(--jaune);
  border: 1px solid var(--encre);
}
.bloc--sombre .liste-puces li::before { border-color: var(--sable-clair); }

/* ------------------------------------------------------------- 13. Tableaux */

.tableau-defilant {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  font-family: Anton, Impact, sans-serif;
  font-size: 1.375rem;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
th, td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--trait);
  vertical-align: top;
}
thead th {
  background: var(--sous-bois);
  color: var(--sable-clair);
  font-size: 0.875rem;
  font-weight: 700;
  border-bottom: 0;
  white-space: nowrap;
}
tbody th { font-weight: 700; }
td.prix { font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) { background: rgba(222, 213, 196, 0.4); }

/* sous 640 px, chaque ligne devient un bloc étiqueté */
@media (max-width: 39.999em) {
  .tableau-empilable thead { position: absolute; left: -9999px; }
  .tableau-empilable tr {
    display: block;
    border: 2px solid var(--trait);
    border-radius: 4px;
    margin-bottom: 1rem;
    background: transparent;
  }
  .tableau-empilable tbody tr:nth-child(even) { background: transparent; }
  .tableau-empilable tbody th {
    display: block;
    background: var(--sous-bois);
    color: var(--sable-clair);
    font-family: Anton, Impact, sans-serif;
    font-weight: 400;
    font-size: 1.1875rem;
    border-bottom: 0;
  }
  .tableau-empilable td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px solid var(--trait);
  }
  .tableau-empilable td:last-child { border-bottom: 0; }
  .tableau-empilable td::before {
    content: attr(data-intitule);
    font-weight: 500;
    color: var(--gris);
    flex: 1 1 auto;
  }
  .tableau-empilable td.prix { justify-content: space-between; }
}

/* ------------------------------------------------------ 14. Appel téléphonique */

.appel {
  background: var(--sous-bois);
  color: var(--sable-clair);
  border-top: 5px solid var(--jaune);
}
.appel h2 { color: var(--sable-clair); }
.appel__numero {
  display: inline-block;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1.05;
  color: var(--jaune);
  text-decoration: none;
  margin-block: 0.25rem 0.5rem;
}
.appel__numero:hover { color: var(--sable-clair); text-decoration: underline; }
.appel__secondaire { color: var(--sable); font-size: 1rem; }
.appel__secondaire a { color: var(--jaune); }

/* --------------------------------------------------------------- 15. Photos */

.galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-block: 1.5rem;
}
.galerie img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
}

/* les sélecteurs sont doublés pour passer devant `.figure-large img`
   et devant les redéfinitions de colonnes des requêtes de média */
.galerie.galerie--portrait img { aspect-ratio: 3 / 4; }
.galerie.galerie--carre img    { aspect-ratio: 1 / 1; }
.galerie.galerie--trois        { grid-template-columns: repeat(3, 1fr); }
.galerie.galerie--cavalerie img { aspect-ratio: 3 / 2; }

.figure-large { margin: 2rem 0; }
.figure-large img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}
.figure-large figcaption {
  font-size: 0.9375rem;
  color: var(--gris);
  margin-top: 0.5rem;
}
.bloc--sombre .figure-large figcaption { color: var(--sable); }

/* une photo au format portrait : on borne sa largeur pour ne pas l'agrandir */
.figure-portrait { max-width: 22rem; }
.figure-large.figure-portrait img { aspect-ratio: 3 / 4; }

/* l'équipe */
.equipe {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}
.equipe li { max-width: none; }
.equipe img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 3px solid var(--bois);
  margin-bottom: 0.6rem;
}
/* membre d'équipe sans photo : pastille à initiale, jamais un visuel d'emprunt */
.equipe__initiale {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 3px solid var(--bois);
  background: var(--sous-bois);
  color: var(--sable-clair);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.equipe__nom {
  display: block;
  font-family: Anton, Impact, sans-serif;
  font-size: 1.25rem;
  line-height: 1.1;
}
.equipe__role { display: block; font-size: 0.9375rem; color: var(--gris); }
.bloc--sombre .equipe__role { color: var(--sable); }

/* les labels */
.labels {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}
.labels li { max-width: none; text-align: center; width: 5.5rem; }
.labels img { height: 64px; width: auto; margin: 0 auto 0.4rem; }
.labels span { display: block; font-size: 0.75rem; line-height: 1.25; color: var(--gris); }
.bloc--sombre .labels span { color: var(--sable); }

/* ------------------------------------------------- 16. Encadré d'information */

.encadre {
  border: 3px solid var(--bois);
  border-left-width: 8px;
  border-radius: 4px;
  padding: 1.15rem 1.25rem;
  margin-block: 1.75rem;
  background: var(--sable-clair);
}
.encadre h3 { margin-bottom: 0.35rem; }
.encadre p:last-child { margin-bottom: 0; }
.bloc--sombre .encadre { background: var(--sous-bois-2); border-color: var(--jaune); }
.bloc--sable .encadre { background: var(--sable-clair); }

/* ---------------------------------------------------- 17. Questions fréquentes */

.faq { margin-top: 1.5rem; }
.faq > div {
  border-top: 2px solid var(--trait);
  padding-block: 1.25rem;
}
.faq > div:last-child { border-bottom: 2px solid var(--trait); }
.faq h3 { font-size: 1.0625rem; }
.faq p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- 18. Contact */

.coordonnees {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}
.coordonnees h3 { margin-bottom: 0.25rem; }
.coordonnees address { font-style: normal; }

.plan-lien {
  display: block;
  border: 3px solid var(--encre);
  border-radius: 4px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--encre);
  background: var(--sable);
}
.plan-lien:hover { background: var(--jaune); }
.plan-lien strong { display: block; font-size: 1.125rem; }

/* les trois moyens d'accès, numérotés */
.acces {
  list-style: none;
  counter-reset: acces;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}
.acces li {
  counter-increment: acces;
  max-width: none;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  align-items: start;
}
/* la pastille occupe la colonne 1 sur toute la hauteur, le texte la colonne 2 */
.acces li::before {
  content: "0" counter(acces);
  grid-column: 1;
  grid-row: 1 / -1;
  font-family: Anton, Impact, sans-serif;
  font-size: 1.25rem;
  color: var(--sable-clair);
  background: var(--bois);
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 50%;
}
.acces li > * { grid-column: 2; max-width: none; }
.acces h3 { margin-bottom: 0.2rem; }
.acces p { margin: 0; }

@media (min-width: 48em) {
  .acces { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .acces li { grid-template-columns: 1fr; row-gap: 0.75rem; }
  .acces li::before { grid-column: 1; grid-row: auto; }
  .acces li > * { grid-column: 1; }
}

/* ------------------------------------------------------------- 19. Pied de page */

.pied {
  background: var(--sous-bois);
  color: var(--sable);
  padding-block: 2.5rem;
  font-size: 0.9375rem;
}
.pied a { color: var(--jaune); }
.pied a:hover { color: var(--sable-clair); }
.pied h2 {
  font-size: 1.0625rem;
  font-family: Karla, system-ui, sans-serif;
  font-weight: 700;
  color: var(--sable-clair);
  margin-bottom: 0.5rem;
}
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.pied__grille { display: grid; gap: 2rem; }
.pied__bas {
  border-top: 1px solid var(--sous-bois-2);
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: var(--sable);
}

/* --------------------------------------------- 20. Barre d'action fixe (mobile) */

.barre-action {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: var(--sous-bois);
  border-top: 3px solid var(--jaune);
}
.barre-action a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
}
.barre-action__appel { background: var(--jaune); color: var(--encre); }
.barre-action__tarifs {
  background: transparent;
  color: var(--sable-clair);
  border-color: var(--sable-clair);
}
.barre-action a:focus-visible { outline-color: var(--jaune); outline-offset: 2px; }

/* ------------------------------------------------------------ 21. Adaptations */

@media (min-width: 30em) {              /* 480 px */
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .equipe  { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 48em) {              /* 768 px */
  body { padding-bottom: 0; }
  .barre-action { display: none; }

  .entete__tel { display: block; }
  .entete__haut { padding-block: 1.1rem; }
  .marque__nom { font-size: 1.375rem; }
  .marque__logo { width: 52px; }

  .navigation ul { gap: 0 1.75rem; padding-bottom: 0.25rem; }
  .navigation a { padding: 0.6rem 0; }

  .hero__grille {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
  }
  .hero__image { aspect-ratio: 4 / 3; height: 100%; }
  .hero__texte { padding-block: clamp(2.5rem, 5vw, 4rem); }

  .reponses { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

  .rubrique {
    grid-template-columns: 15rem 1fr;
    align-items: start;
    gap: 1.75rem;
    padding-block: 2rem;
  }
  .rubriques--sans-image .rubrique { grid-template-columns: 1fr; }
  .rubrique img { aspect-ratio: 4 / 3; }

  .galerie { grid-template-columns: repeat(4, 1fr); }
  .equipe  { grid-template-columns: repeat(5, 1fr); }

  .coordonnees { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }

  .deux-colonnes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
  }
}

@media (min-width: 64em) {              /* 1024 px */
  body { font-size: 1.125rem; }
  .marque__logo { width: 58px; }
  .entete__tel { font-size: 1.25rem; }
}

/* ---------------------------------------- 22. Mouvement réduit et impression */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .panneau { transform: none; }
}

@media print {
  .barre-action, .navigation, .bandeau { display: none; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .bloc--sombre, .appel, .entete, .pied { background: #fff !important; color: #000 !important; }
  .appel__numero, .bloc--sombre a, .pied a { color: #000 !important; }
  .panneau { transform: none; box-shadow: none; }
}
