/* Maquette de la nouvelle page « Notre approche ».
   Feuille chargée par cette seule page : le reste du site n'en dépend pas. */

.am-ouverture { padding-bottom: var(--section); background: var(--sable); }
.am-ouverture img { width: 100%; height: auto; border-radius: var(--rayon-doux); }
.am-ouverture__texte { max-width: var(--largeur-texte); }

.am-accroche {
  margin-bottom: 1.5rem;
  font-size: var(--t-lead);
  font-style: italic;
  color: var(--encre-doux);
}

/* Texte à gauche, photo à fond perdu à droite */
.am-bloc {
  display: grid;
  gap: 2.5rem;
  padding-block: var(--section);
}
.am-bloc__texte { padding-inline: var(--gouttiere); }
.am-bloc__texte h2 { margin-bottom: 0.7rem; font-size: var(--t-h2); }
.am-bloc__texte p + p { margin-top: 1rem; }
.am-bloc__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 52rem) {
  .am-bloc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    padding-left: max(var(--gouttiere), calc((100% - var(--largeur)) / 2));
  }
  .am-bloc__texte { padding-inline: 0; max-width: 34rem; }
}

.am-entete { max-width: var(--largeur-texte); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.am-entete h2 { margin-bottom: 0.7rem; font-size: var(--t-h2); }
.am-entete p + p { margin-top: 1rem; }

.am-etapes {
  display: grid;
  gap: 1.5rem var(--gouttiere-grille);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) { .am-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.am-etapes figure { margin: 0; }
.am-etapes img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--rayon-doux); }
.am-etapes figcaption { margin-top: 0.85rem; text-align: center; font-size: var(--t-petit); color: var(--encre-doux); }
.am-legende {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--police-titre);
  font-size: var(--t-h3, 1.35rem);
  text-align: center;
}
.am-legende::before, .am-legende::after { content: ""; flex: 1; height: 1px; background: var(--trait-fort); }

/* Votre terrain */
.am-terrain h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.am-implantation { max-width: var(--largeur-texte); margin-bottom: clamp(2rem, 4vw, 3rem); }
.am-coupe { margin: 0 0 var(--section); }
.am-coupe__image { overflow-x: auto; border-radius: var(--rayon-doux); background: #f9f8f5; }
.am-coupe__image img { display: block; width: 100%; min-width: 44rem; height: auto; }
.am-coupe figcaption { max-width: var(--largeur-texte); margin-top: 0.85rem; font-size: var(--t-petit); color: var(--encre-doux); }

.am-regles__titre { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: var(--t-h2); }
.am-colonnes { display: grid; gap: 2.5rem var(--gouttiere-grille); }
@media (min-width: 62rem) { .am-colonnes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.am-colonne { display: flex; flex-direction: column; align-items: flex-start; padding-top: 1.25rem; border-top: 1px solid var(--trait-fort); }
.am-colonne .bouton { margin-top: auto; }
.am-colonne > p { margin-bottom: 1rem; }
.am-note { font-size: var(--t-petit); color: var(--encre-doux); margin-bottom: 1.5rem !important; }
.am-seuils { width: 100%; margin: 0 0 1rem; }
.am-seuils > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 1rem; padding-block: 0.55rem; border-bottom: 1px solid var(--trait); }
.am-seuils dt { font-weight: 500; }
.am-seuils dd { margin: 0; color: var(--encre-doux); }

/* Panneaux ouverts par les boutons (API popover, sans JavaScript) */
.am-panneau {
  width: min(100% - 2rem, 44rem);
  max-height: 85svh;
  margin: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow-y: auto;
  border: 0;
  border-radius: var(--rayon-doux);
  background: var(--sable-clair);
  color: var(--encre);
}
.am-panneau::backdrop { background: color-mix(in srgb, var(--voile) 55%, transparent); }
.am-panneau h2 { margin-bottom: 1.25rem; padding-right: 2.5rem; font-size: var(--t-h2); }
.am-panneau h3 { margin: 1.75rem 0 0.6rem; font-size: 1.2rem; }
.am-panneau p + p { margin-top: 0.9rem; }
.am-panneau ul { margin: 0; padding-left: 1.25rem; }
.am-panneau li + li { margin-top: 0.45rem; }
.am-panneau__fermer {
  position: sticky;
  top: 0;
  float: right;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.5rem -0.5rem 0 0;
  border: 1px solid var(--trait-fort);
  border-radius: 50%;
  background: var(--sable-clair);
  color: var(--encre);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.am-panneau__fermer:hover { background: var(--encre); color: var(--sable); }
