/* =================================================================
   Écuries du Châtaignier — feuille de style
   Esthétique : éditorial équestre, chaleureux, naturel.
   Aucune étape de build requise (CSS pur).
   ================================================================= */

:root {
  --bg:        #f5efe2;
  --bg-alt:    #ece2cf;
  --paper:     #fffdf8;
  --ink:       #211d17;
  --muted:     #6c6253;
  --line:      rgba(33, 29, 23, 0.14);
  --line-soft: rgba(33, 29, 23, 0.08);

  --pine:      #2f4a3c;
  --pine-deep: #233a2e;
  --moss:      #6f8a52;
  --chestnut:  #7a4b2b;
  --brass:     #b5863f;
  --brass-soft:#d9b878;

  --shadow:    0 24px 60px -28px rgba(35, 58, 46, 0.45);
  --shadow-sm: 0 12px 28px -18px rgba(35, 58, 46, 0.4);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fond animé : nappes de couleur + fers à cheval qui dérivent lentement */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 38% at 18% 28%, rgba(111, 138, 82, 0.22), transparent 70%),
    radial-gradient(42% 42% at 82% 18%, rgba(122, 75, 43, 0.18), transparent 70%),
    radial-gradient(46% 46% at 62% 82%, rgba(181, 134, 63, 0.16), transparent 72%),
    radial-gradient(40% 40% at 30% 88%, rgba(47, 74, 60, 0.14), transparent 72%);
  filter: blur(14px);
  animation: bg-drift 38s ease-in-out infinite alternate;
}
.bg-fx::after {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: url("/images/horseshoes.svg") repeat;
  background-size: 300px 300px;
  opacity: 0.07;
  animation: hoof-drift 60s linear infinite;
}
@keyframes bg-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2.5%, 2%, 0) scale(1.06) rotate(0.5deg); }
  100% { transform: translate3d(2.5%, -2%, 0) scale(1.04) rotate(-0.5deg); }
}
@keyframes hoof-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-300px, -300px, 0); }
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration: none; }
a:hover { color: var(--chestnut); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--chestnut);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--chestnut);
}

/* ----------------------------------------------------------------
   Boutons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.7em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine); color: #fbf8f0; }
.btn-primary:hover { background: var(--pine-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--chestnut); color: #fff; }
.btn-sm { padding: 0.5em 1.1em; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------
   En-tête / navigation
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 226, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  line-height: 1.05;
}
.brand-logo { height: 48px; width: auto; flex: 0 0 auto; display: block; }
.brand-tag {
  font-family: var(--body);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  max-width: 9ch;
}
.footer-logo { height: 56px; width: auto; }
@media (max-width: 600px) { .brand-tag { display: none; } }
@media (max-width: 420px) { .brand-logo { height: 40px; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding-block: 0.3rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--chestnut);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--chestnut); }

.nav-cta { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: var(--paper);
    padding: 1.4rem clamp(20px, 5vw, 48px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow-sm);
  }
  .nav-cta { inset: auto 0 auto 0; top: 64px; transform: translateY(-130%); }
  body.nav-open .nav-links { transform: translateY(0); }
  body.nav-open .nav-cta {
    transform: translateY(0);
    position: static; box-shadow: none; border: none;
    padding: 0 clamp(20px,5vw,48px) 1.4rem;
    background: var(--paper);
    flex-direction: row;
  }
  body.nav-open .nav-links { padding-bottom: 0.5rem; }
}

/* ----------------------------------------------------------------
   Sous-menus déroulants
   ---------------------------------------------------------------- */
.nav-links .has-sub { position: relative; }
.nav-links .caret { font-size: 0.68em; opacity: 0.65; margin-left: 0.3em; }
.nav-links .nav-parent {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-block: 0.3rem;
  cursor: default;
}
.nav-links .nav-parent:focus { outline: none; color: var(--chestnut); }
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.nav-links .has-sub:hover > .sub-menu,
.nav-links .has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li { display: block; }
.sub-menu a {
  display: block;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
  font-size: 0.9rem;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: rgba(47, 74, 60, 0.06); color: var(--chestnut); }
/* second niveau : fly-out latéral */
.sub-menu .has-sub > .sub-menu {
  top: -0.4rem;
  left: 100%;
  transform: translateX(6px);
}
.nav-links .sub-menu .has-sub:hover > .sub-menu,
.nav-links .sub-menu .has-sub:focus-within > .sub-menu {
  transform: translateX(0);
}

@media (max-width: 900px) {
  /* sur mobile : sous-menus toujours visibles, en retrait */
  .nav-links .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.2rem 0 0.2rem 1rem;
    min-width: 0;
  }
  .sub-menu .has-sub > .sub-menu { left: auto; padding-left: 1rem; }
  .nav-links .caret { display: none; }
  .sub-menu a { padding: 0.35rem 0; }
}

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--chestnut);
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-figure {
  position: relative;
}
.hero-figure .frame {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Crect fill='%23ece2cf' width='60' height='80'/%3E%3C/svg%3E") center/cover;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, -1.5%); }
}
.hero-figure .badge {
  position: absolute;
  left: -22px; bottom: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-sm);
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.1;
  animation: float 6.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.hero-figure .badge small {
  display: block;
  font-family: var(--body);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 3px;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 380px; margin-inline: auto; }
}

/* quick links band */
.quicklinks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.quicklinks a {
  padding: 1.6rem 1.2rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--ink);
  transition: background 0.25s ease;
}
.quicklinks a:first-child { border-left: none; }
.quicklinks a:hover { background: rgba(47,74,60,0.06); }
.quicklinks .ql-title {
  font-family: var(--display);
  font-size: 1.3rem;
}
.quicklinks .ql-sub {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
@media (max-width: 760px) {
  .quicklinks { grid-template-columns: 1fr 1fr; }
  .quicklinks a:nth-child(odd) { border-left: none; }
}

/* ----------------------------------------------------------------
   Sections génériques
   ---------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section.tint { background: var(--bg-alt); }
.section.dark {
  background: var(--pine-deep);
  color: #ece6d5;
}
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fbf7ec; }
.section.dark .eyebrow { color: var(--brass-soft); }
.section.dark .eyebrow::before { background: var(--brass-soft); }
.section.dark a { color: var(--brass-soft); }

.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.dark .section-head p { color: #cdc6b4; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.media-frame {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2,0.7,0.2,1); }
.media-frame:hover img { transform: scale(1.05); }

/* feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card .num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--brass);
  letter-spacing: 0.1em;
}
.card h3 { font-size: 1.35rem; margin-top: 0.6rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }

/* liste de caractéristiques (infrastructures) */
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: #423b30;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--brass);
  transform: rotate(45deg);
}

/* ----------------------------------------------------------------
   Moniteurs
   ---------------------------------------------------------------- */
.instructors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.instructor-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.instructor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.instructor-card .photo {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  position: relative;
}
.instructor-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.instructor-card:hover .photo img { transform: scale(1.06); }
.instructor-card .photo .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,253,248,0.92);
  border-radius: 2px;
  padding: 0.3em 0.9em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
}
.instructor-card .body { padding: 1.5rem 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; }
.instructor-card h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.instructor-card .role { color: var(--chestnut); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.instructor-card p { color: var(--muted); font-size: 0.96rem; }
.instructor-card .body .btn { margin-top: auto; align-self: flex-start; }

/* ----------------------------------------------------------------
   Tableaux (tarifs / horaires)
   ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }
table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.grid th, table.grid td {
  text-align: left;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
}
table.grid thead th {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-alt);
}
table.grid tbody tr:last-child td { border-bottom: none; }
table.grid tbody tr:hover { background: rgba(47,74,60,0.04); }

/* ----------------------------------------------------------------
   Formulaires
   ---------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(47,74,60,0.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .error { color: #a23b2d; font-size: 0.85rem; margin-top: 0.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* alerts */
.alert {
  border-radius: 2px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.alert-success { background: rgba(111,138,82,0.16); border-color: rgba(111,138,82,0.4); color: #3c5226; }
.alert-error { background: rgba(162,59,45,0.12); border-color: rgba(162,59,45,0.35); color: #8c2f23; }

/* auth card */
.auth-wrap {
  max-width: 460px;
  margin: clamp(2.5rem,6vw,5rem) auto;
}
.auth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.auth-card h1 { font-size: 1.9rem; }
.auth-alt { text-align: center; margin-top: 1.3rem; color: var(--muted); font-size: 0.92rem; }

/* ----------------------------------------------------------------
   Calendrier (FullCalendar overrides)
   ---------------------------------------------------------------- */
.calendar-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.fc { font-family: var(--body); font-size: 0.9rem; }
.fc .fc-toolbar-title { font-family: var(--display); font-weight: 500; font-size: 1.4rem !important; color: var(--ink); text-transform: capitalize; }
.fc .fc-button {
  background: var(--pine) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 0.4em 0.9em !important;
  font-weight: 600 !important;
  text-transform: capitalize;
  box-shadow: none !important;
}
.fc .fc-button:hover { background: var(--pine-deep) !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--chestnut) !important; }
.fc .fc-col-header-cell-cushion { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; padding: 0.6em; }
.fc .fc-timegrid-slot-label-cushion { color: var(--muted); font-size: 0.78rem; }
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--line-soft); }
.fc .fc-day-today { background: rgba(181,134,63,0.08) !important; }
.fc-event { border-radius: 2px; padding: 1px 4px; font-size: 0.8rem; cursor: pointer; }
.fc .fc-highlight { background: rgba(47,74,60,0.16); }

.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.2rem; font-size: 0.85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.legend i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }

/* booking layout */
.booking-grid { display: grid; grid-template-columns: 360px 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }
.booking-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

/* ----------------------------------------------------------------
   Réservations (listes)
   ---------------------------------------------------------------- */
.res-list { display: flex; flex-direction: column; gap: 0.9rem; }
.res-item {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 2px;
  padding: 1.1rem 1.3rem;
}
.res-item .when { font-family: var(--display); font-size: 1.05rem; min-width: 150px; }
.res-item .meta { flex: 1; }
.res-item .meta strong { display: block; }
.res-item .meta small { color: var(--muted); }
.badge-status { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3em 0.8em; border-radius: 2px; }
.s-confirme { background: rgba(111,138,82,0.18); color: #3c5226; }
.s-en_attente { background: rgba(181,134,63,0.2); color: #8a5e1c; }
.s-annule { background: rgba(120,110,95,0.16); color: var(--muted); text-decoration: line-through; }

/* ----------------------------------------------------------------
   Réglements
   ---------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.8rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; color: var(--chestnut); }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: 0.5rem; color: #423b30; }
.rule-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.4rem;
}

/* ----------------------------------------------------------------
   Contact / footer
   ---------------------------------------------------------------- */
.map-embed {
  width: 100%; height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 2px;
}

.site-footer {
  background: var(--pine-deep);
  color: #cfc8b6;
  padding-block: 3.5rem 2rem;
  position: relative; z-index: 2;
}
.site-footer h4 { color: #f4eddc; font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer a { color: var(--brass-soft); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1rem; }
.footer-note { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.4rem; font-size: 0.82rem; color: #9d9683; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------
   Admin
   ---------------------------------------------------------------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--pine-deep);
  color: #d6cfbd;
  padding: 1.6rem 1.2rem;
}
.admin-side .brand { color: #f4eddc; margin-bottom: 2rem; }
.admin-side a { display: block; color: #cfc8b6; padding: 0.6rem 0.9rem; border-radius: 2px; margin-bottom: 0.2rem; font-size: 0.92rem; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-main { padding: clamp(1.4rem, 3vw, 2.6rem); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.stat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 2px; padding: 1.4rem;
}
.stat .n { font-family: var(--display); font-size: 2.4rem; color: var(--pine); }
.stat .l { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 1.6rem; margin-bottom: 1.6rem; }
.panel h3 { font-size: 1.3rem; }
.inline-form { display: inline; }
.tag-pill { font-size: 0.7rem; padding: 0.2em 0.7em; border-radius: 2px; background: var(--bg-alt); color: var(--muted); }
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
  .admin-side .brand { margin: 0 1rem 0 0; }
  .admin-side a { margin: 0; }
}

/* utilities */
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; } .mb-1 { margin-bottom: 1rem; }
.flex { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.divider { height: 1px; background: var(--line); margin-block: 1.4rem; }

/* page intro header for inner pages */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 400; }
.page-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }

/* ----------------------------------------------------------------
   Cheval au galop (bandeau animé)
   ---------------------------------------------------------------- */
.horse-band {
  position: relative;
  height: 230px;
  overflow: hidden;
  margin-block: 0.5rem;
}
.horse-ground {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 44px;
  width: min(var(--maxw), calc(100% - clamp(40px, 10vw, 96px)));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.horse-runner {
  position: absolute;
  bottom: 38px;
  left: clamp(20px, 5vw, 48px);
  width: clamp(150px, 22vw, 248px);
  transform: translateX(-170%);
  color: var(--pine);
  will-change: transform;
}
.horse-runner svg { width: 100%; height: auto; display: block; }
.horse-runner.run { animation: horse-travel 2.9s cubic-bezier(0.15, 0.62, 0.25, 1) forwards; }
.horse-bob { transform-origin: 50% 92%; }
.horse-runner.run .horse-bob { animation: horse-bound 0.5s ease-in-out 6; }
.horse-dust {
  position: absolute;
  bottom: -2px; left: 6px;
  width: 26px; height: 11px;
  border-radius: 50%;
  background: var(--brass-soft);
  opacity: 0;
}
.horse-dust.d2 { left: 34px; }
.horse-runner.run .horse-dust { animation: horse-dust 0.8s ease-out 3; }
.horse-runner.run .horse-dust.d2 { animation-delay: 0.25s; }
@keyframes horse-travel {
  from { transform: translateX(-170%); }
  to   { transform: translateX(0); }
}
@keyframes horse-bound {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35%      { transform: translateY(-18px) rotate(-3deg); }
  70%      { transform: translateY(-3px) rotate(1.5deg); }
}
@keyframes horse-dust {
  0%   { opacity: 0; transform: scale(0.4); }
  25%  { opacity: 0.22; }
  100% { opacity: 0; transform: scale(1.5) translateX(-34px); }
}


[data-reveal] {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal]            { transform: translateY(28px); }   /* défaut : monte */
[data-reveal="up"]       { transform: translateY(28px); }
[data-reveal="left"]     { transform: translateX(-72px); }  /* arrive de la gauche */
[data-reveal="right"]    { transform: translateX(72px); }   /* arrive de la droite */
[data-reveal="zoom"]     { transform: scale(0.94); }
[data-reveal].in         { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .bg-fx::before, .bg-fx::after,
  .hero-figure img, .hero-figure .badge { animation: none; }
  .media-frame img, .instructor-card .photo img { transition: none; }
  .horse-runner { transform: none; }
  .horse-runner.run, .horse-runner.run .horse-bob, .horse-runner.run .horse-dust { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Bandeau cookies ===== */
.cookie-banner{position:fixed;left:50%;bottom:1rem;transform:translateX(-50%);z-index:900;
  display:flex;align-items:center;gap:1rem;flex-wrap:wrap;justify-content:center;
  width:min(960px,calc(100% - 2rem));padding:.85rem 1.1rem;
  background:#2f4a3c;color:#f3efe6;border-radius:14px;
  box-shadow:0 12px 34px rgba(0,0,0,.28);font-size:.9rem;line-height:1.45;
  animation:cookie-in .4s ease both}
.cookie-banner .cookie-text{margin:0;flex:1 1 320px}
.cookie-banner a{color:#f3efe6;text-decoration:underline}
.cookie-banner .btn{flex:0 0 auto;white-space:nowrap}
@keyframes cookie-in{from{opacity:0;transform:translate(-50%,16px)}to{opacity:1;transform:translateX(-50%)}}
@media (max-width:560px){
  .cookie-banner{flex-direction:column;align-items:stretch;text-align:center}
  .cookie-banner .btn{width:100%}
}

/* ===== Actions de partage sur les annonces / boxes ===== */
.share-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
  margin-top:.9rem;padding-top:.85rem;border-top:1px solid var(--line)}
.share-actions .share-sep{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);margin-left:.25rem}
.share-btn{display:inline-flex;align-items:center;gap:.4rem;position:relative;
  width:36px;height:36px;justify-content:center;padding:0;border-radius:10px;
  border:1px solid var(--line);background:#fff;color:var(--pine);cursor:pointer;
  text-decoration:none;transition:transform .15s ease,background .15s ease,color .15s ease,border-color .15s ease}
.share-btn:hover{transform:translateY(-2px);border-color:var(--moss)}
.share-btn.share-wa{width:auto;padding:0 .8rem;background:#25d366;border-color:#25d366;color:#fff;
  font-weight:600;font-size:.86rem}
.share-btn.share-wa:hover{background:#1ebe5a;border-color:#1ebe5a;color:#fff}
.share-btn .copied{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);
  white-space:nowrap;background:var(--pine);color:#fff;font-size:.72rem;padding:.2rem .5rem;
  border-radius:6px;pointer-events:none}

/* ===== Bouton WhatsApp du pied de page ===== */
.footer-wa{display:inline-flex;align-items:center;gap:.5rem;margin-top:.9rem;
  padding:.55rem .95rem;border-radius:999px;background:#25d366;color:#0b2a16;
  font-weight:700;font-size:.9rem;text-decoration:none;
  transition:transform .15s ease,background .15s ease}
.footer-wa:hover{background:#2bea72;transform:translateY(-2px)}
.footer-wa svg{flex:0 0 auto}
