/* Projet : Larallegria — Version V01-058 */
/* ==========================================================================
   Lar'Allegria by Lara Rossoux — Charte graphique
   Ambiance espagnole & flamenco, version plus chaleureuse et joyeuse :
   brun profond (au lieu du noir pur), rouge cerise vif (moins soutenu que
   le carmin ardent), jaune d'or andalou, blanc pur — pois et volants en
   clin d'œil aux robes de flamenco.
   ========================================================================== */

:root {
  --noir: #2B1B14;
  --noir-dark: #1C110B;
  --terre: #5C4A3C;
  --terre-light: #8C7A68;
  --paper: #FFFBF2;
  --paper-warm: #FCEBC7;
  --white: #FFFFFF;
  --or: #E8A230;
  --or-light: #F4C463;
  --orange: #D9660B;
  --rouge: #E2445A;
  --rouge-dark: #B8394C;
  --ink: #1A0E0A;

  --font-display: "Yeseva One", "Fraunces", Georgia, "Times New Roman", serif;
  --font-accent: "Playball", "Fraunces", cursive;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --radius: 4px;
  --shadow-card: 0 14px 32px -14px rgba(43, 27, 20, 0.45);
  --shadow-soft: 0 2px 10px rgba(43, 27, 20, 0.12);
  --max-width: 1120px;

  --pois: radial-gradient(var(--white) 2.4px, transparent 2.6px);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--noir-dark);
  margin: 0 0 0.5em 0;
  line-height: 1.15;
  font-weight: 600;
}

p { margin: 0 0 1em 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  background: var(--noir);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-soft);
  border-bottom: 4px solid var(--rouge);
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--rouge) 0%, var(--or) 50%, var(--rouge) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1500px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  flex: none;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  border: 2px solid var(--or-light);
}

.brand-logo img { width: 100%; height: 100%; object-fit: cover; }

.brand-text .brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: block;
}

.brand-text .brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--or-light);
  display: block;
  margin-top: 2px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.86rem;
  padding: 7px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
  white-space: nowrap;
}

nav.main-nav a:hover { background: rgba(255,255,255,0.12); }

nav.main-nav a.active {
  background: var(--or);
  color: var(--noir-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0;
  flex: none;
  cursor: pointer;
}

.nav-toggle .bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--white);
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--white);
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

nav.main-nav { margin-left: auto; }

@media (max-width: 1300px) {
  .header-inner { gap: 10px; padding: 12px 18px; }
  .brand-logo { width: 46px; height: 46px; }
  .brand-text .brand-name { font-size: 1.02rem; }
  .brand-text .brand-tagline { font-size: 0.64rem; letter-spacing: 0.1em; }
  nav.main-nav a { font-size: 0.8rem; padding: 6px 8px; }
}

/* Si le menu ne tient plus sur une seule ligne à cette largeur, on bascule
   en grille à colonnes fixes pour obtenir des lignes bien réparties (ex:
   6+6) plutôt qu'un retour à la ligne du dernier lien tout seul. */
@media (max-width: 1300px) and (min-width: 861px) {
  nav.main-nav ul {
    display: grid;
    grid-template-columns: repeat(6, auto);
    justify-content: center;
    gap: 4px 6px;
  }
}
@media (max-width: 980px) and (min-width: 861px) {
  nav.main-nav ul {
    grid-template-columns: repeat(4, auto);
  }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  nav.main-nav { margin-left: 0; }
  .nav-toggle { display: flex; }
  nav.main-nav {
    width: 100%;
    display: none;
    background: var(--noir-dark);
    border-radius: var(--radius);
    margin-top: 12px;
    padding: 8px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 2px; }
  nav.main-nav a { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--noir) 0%, var(--noir-dark) 100%);
  color: var(--white);
  padding: 60px 0 88px;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--rouge);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pois);
  background-size: 26px 26px;
  opacity: 0.06;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 14px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDM2IDE4Ij48cmVjdCB4PSIxMyIgeT0iMyIgd2lkdGg9IjciIGhlaWdodD0iNyIgZmlsbD0iI0U4QTIzMCIgdHJhbnNmb3JtPSJyb3RhdGUoNDUgMTYuNSA2LjUpIi8+PGNpcmNsZSBjeD0iMTYuNSIgY3k9IjYuNSIgcj0iMS4zIiBmaWxsPSIjMkIxQjE0Ii8+PC9zdmc+"), linear-gradient(90deg, transparent 0%, rgba(232,162,48,0.5) 15%, rgba(232,162,48,0.5) 85%, transparent 100%);
  background-size: 36px 14px, 100% 1px;
  background-repeat: repeat-x, no-repeat;
  background-position: bottom left, bottom left;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-photo {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(216, 174, 95, 0.35);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--or-light);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  max-width: 20ch;
}

.hero .lead {
  color: #EADFCB;
  font-size: 1.12rem;
  max-width: 52ch;
  margin-bottom: 26px;
}

.page-hero {
  background: linear-gradient(160deg, var(--noir) 0%, var(--noir-dark) 100%);
  color: var(--white);
  padding: 50px 0 74px;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--rouge);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pois);
  background-size: 26px 26px;
  opacity: 0.06;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 14px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDM2IDE4Ij48cmVjdCB4PSIxMyIgeT0iMyIgd2lkdGg9IjciIGhlaWdodD0iNyIgZmlsbD0iI0U4QTIzMCIgdHJhbnNmb3JtPSJyb3RhdGUoNDUgMTYuNSA2LjUpIi8+PGNpcmNsZSBjeD0iMTYuNSIgY3k9IjYuNSIgcj0iMS4zIiBmaWxsPSIjMkIxQjE0Ii8+PC9zdmc+"), linear-gradient(90deg, transparent 0%, rgba(232,162,48,0.5) 15%, rgba(232,162,48,0.5) 85%, transparent 100%);
  background-size: 36px 14px, 100% 1px;
  background-repeat: repeat-x, no-repeat;
  background-position: bottom left, bottom left;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-hero .lead { color: #EADFCB; max-width: 60ch; margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--or);
  color: var(--noir-dark);
}
.btn-primary:hover { box-shadow: 0 8px 18px -6px rgba(184,132,44,0.55); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-rouge {
  background: var(--rouge);
  color: var(--white);
}
.btn-rouge:hover { box-shadow: 0 8px 18px -6px rgba(156,43,51,0.55); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section { padding: 60px 0; }

.section-alt { background: var(--white); }

.section-title-row { max-width: 62ch; margin-bottom: 40px; }

.section-title-row .eyebrow { color: var(--rouge); }
.section-title-row h2 { color: var(--noir-dark); font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Quick-link cards on homepage */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.link-card {
  background: var(--white);
  border: 1px solid #EEE0C4;
  border-top: 4px solid var(--rouge);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.link-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--noir); }
.link-card p { margin: 0; color: var(--terre); font-size: 0.95rem; }
.link-card .card-arrow { color: var(--rouge); font-weight: 700; margin-top: 12px; display: inline-block; }

/* Activity list */

.activity-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.activity-card {
  flex: 0 1 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
}
@media (max-width: 860px) {
  .activity-card { flex-basis: calc((100% - 24px) / 2); max-width: calc((100% - 24px) / 2); }
}
@media (max-width: 560px) {
  .activity-card { flex-basis: 100%; max-width: 100%; }
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #E9DEC8;
}

.activity-card .num {
  font-family: var(--font-display);
  color: var(--or);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  white-space: nowrap;
}

.activity-card h3 { color: var(--noir); font-size: clamp(1.05rem, 2.4vw, 1.2rem); white-space: nowrap; }
.activity-card p { color: var(--terre); font-size: 0.96rem; margin: 0; }

@media (max-width: 420px) {
  .activity-card .num, .activity-card h3 { white-space: normal; }
}

/* ---------- Business-card contact block ---------- */

.contact-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  max-width: 640px;
}

.contact-card .cc-side {
  background: var(--noir);
  padding: 30px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card .cc-side img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--or-light);
}

.contact-card .cc-body { padding: 26px 28px; }

.contact-card h3 {
  font-size: 1.05rem;
  color: var(--noir-dark);
  margin-bottom: 4px;
}

.contact-card .cc-role {
  color: var(--rouge);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-list li { display: flex; align-items: baseline; gap: 8px; font-size: 0.95rem; }

.contact-list .label {
  color: var(--terre-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 70px;
  flex: none;
}

.contact-list a {
  color: var(--noir);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}
.contact-list a:hover { border-bottom-color: var(--or); }

@media (max-width: 520px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .cc-side { padding: 22px; }
}

/* ---------- Info blocks ---------- */

.info-block { margin-bottom: 40px; }
.info-block:last-child { margin-bottom: 0; }
.info-block h2 { font-size: 1.5rem; color: var(--noir-dark); }
.info-block p { color: var(--ink); max-width: 68ch; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

.portrait-frame {
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #E9DEC8;
}

.portrait-frame img { border-radius: 4px; }

.portrait-frame img.portrait-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

.portrait-frame img.landscape-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  background: var(--paper-warm);
  color: var(--noir-dark);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #E3D3AE;
}

blockquote.pull-quote {
  border-left: 4px solid var(--rouge);
  margin: 28px 0;
  padding: 6px 0 6px 24px;
  font-family: var(--font-accent);
  font-size: 1.7rem;
  line-height: 1.35;
  color: var(--rouge-dark);
  font-style: normal;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--noir-dark);
  color: #D9CBB6;
  padding: 44px 0 26px;
  font-size: 0.9rem;
  border-top: 4px solid var(--or);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pois);
  background-size: 26px 26px;
  opacity: 0.045;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.site-footer a {
  color: #D9CBB6;
  text-decoration: none;
}
.site-footer a:hover { color: var(--or-light); }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #A8927C;
}
.footer-legal-links {
  margin-top: 10px;
  font-size: 0.76rem;
  color: #8A7660;
  line-height: 1.8;
}
.footer-legal-links a { color: #C9B48E; text-decoration: none; }
.footer-legal-links a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cta-band {
  background: linear-gradient(160deg, var(--rouge) 0%, var(--rouge-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pois);
  background-size: 24px 24px;
  opacity: 0.07;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2, .cta-band .eyebrow { color: var(--white); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { max-width: 56ch; margin: 0 auto 26px; color: #FBE0D9; }
.cta-band .btn-primary { background: var(--or); color: var(--noir-dark); }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.7); }

/* ---------- Flourish (ornement d'inspiration espagnole) ---------- */

.flourish {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 220px;
  margin: 20px 0 0;
}
.flourish span {
  flex: 1;
  height: 1px;
  background: rgba(216, 174, 95, 0.45);
}
.flourish i {
  font-style: normal;
  color: var(--or-light);
  font-size: 1.05rem;
  line-height: 1;
}
.hero .flourish i, .page-hero .flourish i { color: var(--or-light); }
.section-alt .flourish span, section:not(.hero):not(.page-hero) .flourish span { background: rgba(156, 43, 51, 0.3); }
.section-alt .flourish i, section:not(.hero):not(.page-hero) .flourish i { color: var(--rouge); }

/* ---------- Cartes médias (chevaux, événements, blog) ---------- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.media-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid #EEE0C4;
  border-top: 4px solid var(--rouge);
  display: flex;
  flex-direction: column;
}
.media-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--paper-warm);
}
.media-card .mc-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.media-card h3 { font-size: 1.15rem; margin-bottom: 4px; color: var(--noir); }
.media-card .mc-meta {
  color: var(--rouge-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 8px;
}
.media-card p { color: var(--terre); font-size: 0.94rem; margin: 0; flex: 1; white-space: pre-line; }

.media-feed { display: flex; flex-direction: column; gap: 24px; max-width: 760px; margin: 0 auto; }
.media-feed .media-card { flex-direction: row; border-top: none; border-left: 4px solid var(--rouge); }
.media-feed .media-card img { width: 220px; height: auto; flex: none; }
@media (max-width: 620px) {
  .media-feed .media-card { flex-direction: column; }
  .media-feed .media-card img { width: 100%; height: 180px; }
}
.media-card.clickable { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.media-card.clickable:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.evenement-vignette.clickable, .cheval-vignette.clickable { cursor: pointer; }
.evenement-vignette.clickable:hover, .cheval-vignette.clickable:hover { opacity: 0.88; }

/* Vignette cheval : toute la photo reste visible (pas de recadrage brutal),
   posée sur un fond doux qui reprend les couleurs du site. */
.cheval-vignette,
.evenement-vignette {
  width: 100%;
  height: 230px;
  background: linear-gradient(160deg, var(--paper-warm) 0%, #EDE0C4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cheval-vignette img,
.evenement-vignette img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Mini-fiche (lightbox) — ex: fiche cheval publique ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(20,12,8,0.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 20px;
}
.lightbox-box {
  background: var(--white); border-radius: var(--radius);
  max-width: 520px; width: 100%; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-soft); position: relative;
}
.lightbox-box .lb-photo {
  width: 100%; height: 320px;
  background: linear-gradient(160deg, var(--paper-warm) 0%, #EDE0C4 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lightbox-box .lb-photo img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-box .lb-body { padding: 22px 24px 26px; }
.lightbox-box h3 { font-size: 1.4rem; margin-bottom: 4px; color: var(--noir); }
.lightbox-box .lb-fiche-item { margin-top: 14px; }
.lightbox-box .lb-fiche-item h4 {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--rouge-dark); font-weight: 700; margin-bottom: 4px;
}
.lightbox-box .lb-fiche-item p { color: var(--terre); font-size: 0.94rem; margin: 0; white-space: pre-line; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  border-radius: 50%; border: none; background: rgba(0,0,0,0.55); color: #fff;
  font-size: 1.1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(0,0,0,0.75); }

/* ---------- Table (grille tarifaire publique) ---------- */

.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.tarifs-table th, .tarifs-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #EFE4D0;
  font-size: 0.94rem;
}
.tarifs-table th {
  background: var(--noir);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
}
.tarifs-table td.prix { font-weight: 700; color: var(--rouge-dark); white-space: nowrap; }
.tarifs-table tr:last-child td { border-bottom: none; }
.tarifs-cat-row td {
  background: var(--paper-warm);
  font-weight: 700;
  color: var(--noir-dark);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* Protection légère du contenu (dissuasive uniquement) : empêche la
   sélection de texte sur les pages publiques du site, pas dans l'espace
   membre/admin où il faut pouvoir copier des informations (IBAN,
   identifiants, textes des messages...). */
body:not(.app-body) {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
body:not(.app-body) input,
body:not(.app-body) textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* Badge discret "Site développé par Hélène Laruelle" — bas droite, sur
   toutes les pages publiques. Doré, cohérent avec les tons "or"/"rouge"
   du site. Semi-transparent au repos, net au survol. */
.badge-helene {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 46px;
  height: auto;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 40;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.badge-helene:hover {
  opacity: 0.95;
  transform: scale(1.08);
}
@media (max-width: 600px) {
  .badge-helene { width: 36px; bottom: 12px; right: 12px; }
}

/* Textes modifiables depuis l'admin ("Contenu du site") : respecte les
   retours à la ligne / paragraphes tapés dans le champ, au lieu de tout
   afficher sur une seule ligne comme le fait le HTML par défaut. */
[id^="site-"] {
  white-space: pre-line;
}

/* Liens auto-détectés dans un texte libre (blog, description cheval,
   événement...) — cohérents avec la charte au lieu du bleu par défaut. */
.media-card p a, .lb-fiche-item p a {
  color: var(--rouge-dark);
  text-decoration: underline;
}
.media-card p a:hover, .lb-fiche-item p a:hover { color: var(--rouge); }

/* ---- Partenaires : vignette à gauche, nom + phrase d'une ligne, développer/réduire ---- */
.partenaire-item { border:1px solid #E9DEC8; border-radius:var(--radius); background:#fff; margin-bottom:12px; overflow:hidden; }
.partenaire-head { display:flex; align-items:center; gap:14px; padding:12px 16px; }
.partenaire-vignette { flex:none; width:64px; height:64px; display:flex; align-items:center; justify-content:center; background:var(--paper-warm); border-radius:10px; overflow:hidden; }
.partenaire-vignette img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
.partenaire-vignette span { font-weight:700; font-size:1.4rem; color:var(--terre); }
.partenaire-titres { flex:1; min-width:0; }
.partenaire-titres h2 { font-size:1.05rem; margin:0 0 2px; text-transform:uppercase; }
.partenaire-resume { margin:0; color:var(--terre); font-size:0.9rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.partenaire-toggle { flex:none; background:none; border:1px solid #E9DEC8; border-radius:999px; padding:6px 12px; font:inherit; font-size:0.82rem; font-weight:600; cursor:pointer; color:var(--rouge-dark); }
.partenaire-toggle:hover { background:var(--paper-warm); }
.partenaire-detail { padding:4px 16px 16px 94px; border-top:1px solid #F1E8D4; }
.partenaire-detail p { margin:12px 0 0; }
@media (max-width:560px) {
  .partenaire-head { flex-wrap:wrap; }
  .partenaire-detail { padding-left:16px; }
  .partenaire-toggle { margin-left:78px; }
}
.partenaire-detail.hidden { display:none; }

/* Chevaux décédés : mention "In memoriam" */
.in-memoriam { display:inline-block; margin:2px 0 6px; padding:2px 10px; border:1px solid #CDBFA0; border-radius:999px; font-size:0.8rem; letter-spacing:0.04em; color:var(--terre); background:var(--paper-warm); }
.in-memoriam-card .cheval-vignette img { filter:grayscale(0.85); }
