/* ==========================================================
   Écuries du Parc — feuille de style
   Couleurs et typographies centralisées ci-dessous.
   ========================================================== */

:root {
  --creme: #f7f2ea;
  --sable: #ede3d3;
  --ble: #b98a4b;
  --ble-fonce: #8f6630;
  --brun: #2e2419;
  --texte: #4a3f33;
  --blanc: #fffdf9;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;

  --largeur: 1120px;
  --rayon: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
}

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

a { color: var(--ble-fonce); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--brun);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1.1em; }

.conteneur {
  width: min(var(--largeur), 100% - 3rem);
  margin-inline: auto;
}

/* Petit titre au-dessus des grands titres */
.surtitre {
  display: block;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ble-fonce);
  margin-bottom: .8rem;
  font-weight: 700;
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 242, 234, .96);
  border-bottom: 1px solid var(--sable);
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: .8rem;
}
.marque {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--brun);
  font-family: var(--serif);
  font-size: 1.6rem;
}
.marque img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  text-decoration: none;
  color: var(--brun);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.menu a:hover,
.menu a[aria-current="page"] {
  border-bottom-color: var(--ble);
}

/* Bouton menu : visible uniquement sur mobile */
.menu-bouton {
  display: none;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 1px solid var(--ble);
  border-radius: var(--rayon);
  padding: .55rem .9rem;
  color: var(--brun);
  font: 700 .85rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-bouton svg { width: 22px; height: 22px; }
.menu-bouton .icone-fermer,
.menu-bouton[aria-expanded="true"] .icone-ouvrir { display: none; }
.menu-bouton[aria-expanded="true"] .icone-fermer { display: inline; }

/* ---------- Bandeau d'ouverture ---------- */
/* Accueil : logo à gauche, texte à droite */
.bandeau {
  background: var(--brun);
  color: var(--sable);
}
.bandeau .conteneur {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.bandeau img { border-radius: var(--rayon); }
.bandeau .surtitre { color: #e0c08e; }
.bandeau h1 { color: var(--blanc); margin-bottom: .4em; }
.bandeau p { font-size: 1.25rem; margin-bottom: 2rem; }

/* Pages intérieures : en-tête sobre */
.bandeau--page { text-align: center; }
.bandeau--page .conteneur { display: block; }
.bandeau--page p { max-width: 34rem; margin: 0 auto; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block;
  background: var(--ble);
  color: var(--blanc);
  text-decoration: none;
  padding: .9rem 1.8rem;
  border-radius: var(--rayon);
  font-weight: 700;
  letter-spacing: .06em;
}
.bouton:hover { background: var(--ble-fonce); }
.bouton--clair {
  background: transparent;
  color: var(--brun);
  border: 2px solid var(--ble);
}
.bouton--clair:hover { background: var(--ble); color: var(--blanc); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--sable { background: var(--sable); }
.section--centre { text-align: center; }
.section--centre .intro { margin-inline: auto; }

.intro { max-width: 44rem; font-size: 1.1rem; }

/* Deux colonnes : texte + photo */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.duo--inverse > :first-child { order: 2; }

/* ---------- Photos ---------- */
/* Un cadre beige avec légende s'affiche tant que la photo n'est pas ajoutée */
.photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--sable);
  border-radius: var(--rayon);
  overflow: hidden;
}
.section--sable .photo { background: #e2d5c0; }
.photo::before {
  content: attr(data-legende);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ble-fonce);
}
.photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo--portrait { aspect-ratio: 4 / 5; }

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

/* ---------- Cartes ---------- */
.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}
.carte {
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.carte .photo { border-radius: 0; }
.carte__corps { padding: 1.6rem 1.6rem 1.8rem; flex: 1; }
.carte__corps p:last-child { margin-bottom: 0; }

/* ---------- Listes ---------- */
.liste {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.liste li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .6rem;
}
.liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: .9rem;
  height: 2px;
  background: var(--ble);
}

/* ---------- Tableau des tarifs ---------- */
.tarifs {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 2.5rem;
  max-width: 40rem;
  margin: 3rem auto 0;
  text-align: left;
}
.tarif {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sable);
}
.tarif:last-of-type { border-bottom: 0; }
.tarif strong { font-family: var(--serif); font-size: 1.5rem; color: var(--brun); white-space: nowrap; }
.petit { font-size: .9rem; color: #7a6d5f; }

/* Étapes numérotées */
.etapes {
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}
.etape { counter-increment: etape; }
.etape::before {
  content: counter(etape, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--ble);
  line-height: 1;
  margin-bottom: .6rem;
}

/* ---------- Carte géographique ---------- */
.plan {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--rayon);
}

/* ---------- Contact ---------- */
.coordonnees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
/* Carte entièrement cliquable */
.coordonnee {
  display: block;
  background: var(--blanc);
  border: 1px solid transparent;
  border-radius: var(--rayon);
  padding: 2.2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--texte);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.coordonnee:hover,
.coordonnee:focus-visible {
  border-color: var(--ble);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(46, 36, 25, .08);
}
.coordonnee svg { width: 34px; height: 34px; color: var(--ble); margin-bottom: .8rem; }
.coordonnee .valeur {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--brun);
  word-break: break-word;
}
.coordonnee:hover .valeur { color: var(--ble-fonce); }

/* ---------- Appel à l'action ---------- */
.appel {
  background: var(--brun);
  color: var(--sable);
  text-align: center;
}
.appel h2 { color: var(--blanc); }
.appel p { max-width: 36rem; margin-inline: auto; margin-bottom: 2rem; }

/* ---------- Pied de page ---------- */
.pied {
  background: #221a12;
  color: #cbbda8;
  padding-block: 3rem;
  font-size: .95rem;
}
.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.pied a { color: #e8d9c1; }
.pied strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--blanc); display: block; }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  body { font-size: 17px; }
  .marque { font-size: 1.35rem; }
  .marque img { width: 44px; height: 44px; }
  .menu-bouton { display: inline-flex; }
  #menu { display: none; width: 100%; }
  #menu.ouvert { display: block; }
  .menu {
    flex-direction: column;
    gap: 0;
    padding-bottom: .5rem;
  }
  .menu li { border-top: 1px solid var(--sable); }
  .menu a {
    display: block;
    padding: 1rem .2rem;
    font-size: 1rem;
    border-bottom: 0;
  }
  .menu a[aria-current="page"] { color: var(--ble-fonce); }
  .duo, .bandeau .conteneur { grid-template-columns: 1fr; }
  .bandeau { text-align: center; }
  .duo--inverse > :first-child { order: 0; }
  .galerie { grid-template-columns: 1fr 1fr; }
  .tarifs { padding: 1.5rem; }
  .tarif { flex-direction: column; gap: .2rem; }
}
