/* ════════════════════════════════════════════════════════════
   HARAS D'ELLA — STYLESHEET
   Palette: Gold #C9A87A | Dark Gold #9A7A45 | Cream #FAF7F2
            Dark #2C1A0E | Light #F5EDD8
   ════════════════════════════════════════════════════════════ */

:root {
  --gold:         #C9A87A;
  --gold-dark:    #9A7A45;
  --gold-light:   #E8D5B0;
  --gold-pale:    #F5EDD8;
  --cream:        #FAF7F2;
  --dark:         #2C1A0E;
  --dark-mid:     #3D2B1F;
  --text:         #4A3728;
  --text-light:   #8C7B6B;
  --white:        #FFFFFF;
  --section-dark: #1E1209;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Raleway', 'Segoe UI', sans-serif;

  --radius: 4px;
  --shadow: 0 8px 40px rgba(44, 26, 14, 0.12);
  --shadow-lg: 0 20px 60px rgba(44, 26, 14, 0.2);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 48px;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(30, 18, 9, 0.96);
  backdrop-filter: blur(10px);
  padding: 12px 48px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { right: 0; }

/* ════════════════════════════════════
   HERO
   ════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, #1a0f06 0%, #2C1A0E 40%, #3d2410 70%, #1a0f06 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201,168,122,0.15) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L31 29 L60 30 L31 31 L30 60 L29 31 L0 30 L29 29Z' fill='%23C9A87A' fill-opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-logo {
  width: min(620px, 88vw);
  filter: drop-shadow(0 8px 32px rgba(201,168,122,0.35));
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  user-select: none;
}
.hero-logo:hover {
  filter: drop-shadow(0 12px 40px rgba(201,168,122,0.55));
  transform: scale(1.01);
}
.hero-logo.logo-pulse {
  animation: logoPulse 0.3s ease;
}
@keyframes logoPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.hero-divider {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}
.hero-btn {
  display: inline-block;
  padding: 14px 48px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.hero-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

/* Hero particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particles span {
  position: absolute;
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: floatUp 8s infinite;
}
.hero-particles span:nth-child(1) { left: 15%; animation-delay: 0s;   animation-duration: 9s; }
.hero-particles span:nth-child(2) { left: 30%; animation-delay: 2s;   animation-duration: 7s; }
.hero-particles span:nth-child(3) { left: 55%; animation-delay: 4s;   animation-duration: 10s; }
.hero-particles span:nth-child(4) { left: 72%; animation-delay: 1s;   animation-duration: 8s; }
.hero-particles span:nth-child(5) { left: 88%; animation-delay: 3s;   animation-duration: 6s; }
@keyframes floatUp {
  0%   { bottom: -10%; opacity: 0; transform: scale(0.5); }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { bottom: 110%; opacity: 0; transform: scale(1.5); }
}

/* ════════════════════════════════════
   SECTIONS COMMON
   ════════════════════════════════════ */
.section { padding: 100px 24px; }
.section-light  { background: var(--cream); }
.section-dark   { background: var(--section-dark); }
.section-cream  { background: var(--gold-pale); }

.container { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-header-light .section-label { color: var(--gold); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
}
.section-header-light .section-title { color: var(--gold-pale); }

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.title-ornament span {
  display: block;
  width: 60px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.ornament-diamond {
  display: block;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  font-style: normal;
}
.section-header-light .ornament-diamond { background: var(--gold); }

/* ════════════════════════════════════
   LE HARAS (two-col)
   ════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.col-text p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.8;
}
.col-text strong { color: var(--dark); }

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gold-light);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold-dark);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 6px;
}

.image-frame {
  position: relative;
  padding: 20px;
}
.image-placeholder {
  aspect-ratio: 4/3;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.9rem;
}
.horse-svg { width: 80px; height: 80px; }
.frame-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--gold);
  border-style: solid;
}
.frame-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.frame-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.frame-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.frame-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* ════════════════════════════════════
   SERVICES
   ════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,122,0.2);
  padding: 48px 36px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(201,168,122,0.06);
}
.service-card-featured {
  border-color: var(--gold);
  background: rgba(201,168,122,0.06);
}
.service-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--dark);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 16px;
}
.service-icon {
  width: 56px; height: 56px;
  color: var(--gold);
  margin-bottom: 28px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--gold-pale);
  margin-bottom: 16px;
}
.service-card p {
  font-size: 0.9rem;
  color: rgba(245,237,216,0.65);
  line-height: 1.75;
  margin-bottom: 24px;
}
.service-list li {
  font-size: 0.85rem;
  color: rgba(245,237,216,0.55);
  padding: 6px 0;
  border-bottom: 1px solid rgba(201,168,122,0.1);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 0.5rem;
  top: 10px;
  color: var(--gold);
}

/* ════════════════════════════════════
   CHEVAUX
   ════════════════════════════════════ */
.horses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.horse-card {
  background: var(--white);
  border: 1px solid var(--gold-light);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.horse-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.horse-photo {
  aspect-ratio: 4/3;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}
.horse-photo img { width: 100%; height: 100%; object-fit: cover; }
.add-icon { opacity: 0.4; font-size: 3rem; }
.horse-info { padding: 24px; }
.horse-info h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
}
.horse-breed {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.horse-desc { font-size: 0.88rem; color: var(--text-light); }

.horse-card-add { opacity: 0.7; border-style: dashed; cursor: pointer; }
.horse-card-add:hover { opacity: 1; border-color: var(--gold); }

/* ════════════════════════════════════
   GALLERY
   ════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 16px;
}
.gi-large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item {
  overflow: hidden;
  background: var(--gold-light);
  position: relative;
}
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.8rem;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
}
.gallery-placeholder span { font-size: 2.5rem; }
.gallery-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* Carte ajout rapide galerie (mode admin) */
.gallery-add-card {
  cursor: pointer;
  background: rgba(192,160,98,0.06);
  border: 2px dashed rgba(192,160,98,0.4);
  display: none;
  transition: background 0.25s, border-color 0.25s;
}
body.admin-mode .gallery-add-card { display: block; }
.gallery-add-card:hover {
  background: rgba(192,160,98,0.14);
  border-color: var(--gold);
}
.gallery-add-inner {
  width: 100%; height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.gallery-add-icon {
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.2s;
}
.gallery-add-card:hover .gallery-add-icon { transform: scale(1.15); }
.gallery-add-text {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(192,160,98,0.7);
}
/* Toast notification */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--dark);
  color: var(--gold);
  border: 1px solid rgba(192,160,98,0.5);
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 99999;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.gallery-item-delete {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(20,5,0,0.75);
  border: 1px solid rgba(220,80,80,0.7);
  color: #e07070;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 5;
  line-height: 1;
}
body.admin-mode .gallery-item-delete { display: flex; }
.gallery-item-delete:hover { background: rgba(220,80,80,0.45); transform: scale(1.1); }

/* Bouton repositionnement */
.gallery-reposition-btn {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(20,5,0,0.75);
  border: 1px solid rgba(192,160,98,0.6);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 5;
  line-height: 1;
}
body.admin-mode .gallery-reposition-btn { display: flex; }
.gallery-reposition-btn:hover { background: rgba(192,160,98,0.25); transform: scale(1.1); }

/* Mode repositionnement actif */
.gallery-item.repositioning {
  cursor: crosshair;
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.gallery-item.repositioning::after {
  content: 'Cliquez pour définir le cadrage';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,5,0,0.82);
  color: var(--gold);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 7px;
  z-index: 20;
  pointer-events: none;
}
.gallery-item.repositioning .gallery-reposition-btn {
  background: rgba(192,160,98,0.35);
  border-color: var(--gold);
}

/* Étapes admin (onglet notifications) */
.admin-steps {
  font-size: 0.85rem;
  color: rgba(245,237,216,0.6);
  padding-left: 1.2rem;
  margin: 0 0 18px;
  line-height: 1.9;
}
.admin-steps strong { color: var(--gold-pale); }

/* ════════════════════════════════════
   CONTACT
   ════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  align-items: flex-start;
}
.contact-icon { font-size: 1.4rem; line-height: 1; margin-top: 2px; }
.contact-item strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-item p {
  font-size: 0.9rem;
  color: rgba(245,237,216,0.65);
  line-height: 1.6;
}
.contact-link {
  color: rgba(245,237,216,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--gold); }
.maps-link {
  color: var(--gold);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.maps-link:hover { opacity: 1; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,122,0.3);
  color: var(--gold-pale);
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(245,237,216,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--section-dark); color: var(--gold-pale); }

.form-btn {
  align-self: flex-start;
  padding: 14px 48px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.form-btn:hover { background: var(--gold-dark); color: var(--white); }

.form-success {
  font-size: 0.88rem;
  color: #8BC34A;
  display: none;
}
.form-success.visible { display: block; }

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.footer {
  background: #100a04;
  padding: 60px 24px 32px;
  text-align: center;
  border-top: 1px solid rgba(201,168,122,0.15);
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-logo { width: 260px; margin: 0 auto 20px; opacity: 0.85; }
.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(201,168,122,0.6);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201,168,122,0.5);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(201,168,122,0.3);
  border-top: 1px solid rgba(201,168,122,0.1);
  padding-top: 24px;
}

/* ════════════════════════════════════
   LOGO CLICK HINT
   ════════════════════════════════════ */
.logo-click-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 26, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 10px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  white-space: nowrap;
}
.logo-click-hint.show { opacity: 1; }

/* ════════════════════════════════════
   ADMIN MODAL
   ════════════════════════════════════ */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 6, 2, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.admin-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.admin-modal {
  position: relative;
  background: var(--dark);
  border: 1px solid rgba(201,168,122,0.3);
  width: min(860px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.4s ease;
}
@keyframes modalIn {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.admin-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 1.1rem;
  color: var(--text-light);
  transition: color 0.2s;
}
.admin-close:hover { color: var(--gold); }

.admin-screen { transition: opacity 0.3s; }
.admin-hidden { display: none; }

/* Login screen */
.admin-logo { width: 260px; margin: 0 auto 32px; }
.admin-login-screen { text-align: center; }
#admin-login-screen h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-pale);
  margin-bottom: 8px;
}
.admin-sub { font-size: 0.85rem; color: var(--text-light); margin-bottom: 36px; }

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}
.admin-form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,122,0.25);
  color: var(--gold-pale);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.admin-form-group input:focus,
.admin-form-group textarea:focus { border-color: var(--gold); }
.admin-form-group input::placeholder,
.admin-form-group textarea::placeholder { color: rgba(245,237,216,0.25); }

.pwd-wrapper { position: relative; }
.pwd-wrapper input { padding-right: 44px; }
.pwd-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-light);
  transition: color 0.2s;
}
.pwd-toggle:hover { color: var(--gold); }

.admin-btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 8px;
}
.admin-btn-primary:hover { background: var(--gold-dark); color: var(--white); }

.admin-error {
  color: #e07070;
  font-size: 0.85rem;
  margin-top: 12px;
  display: none;
}
.admin-error.show { display: block; }

/* Dashboard */
.admin-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(201,168,122,0.2);
  flex-wrap: wrap;
}
.admin-logo-sm { width: 140px; }
.admin-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-pale);
  flex: 1;
}
.admin-btn-logout {
  padding: 8px 20px;
  border: 1px solid rgba(201,168,122,0.4);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}
.admin-btn-logout:hover { background: var(--gold); color: var(--dark); }

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(201,168,122,0.2);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.admin-tab {
  padding: 12px 28px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab:hover { color: var(--gold); }
.admin-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.admin-tab-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-pale);
  margin-bottom: 24px;
}
.admin-tab-content h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.admin-sep { border-color: rgba(201,168,122,0.15); margin: 32px 0; }
.admin-note { font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; }
.admin-save-msg {
  font-size: 0.85rem;
  color: #8BC34A;
  margin-top: 12px;
  display: none;
}
.admin-save-msg.show { display: block; }

/* Horse list in admin */
.horses-admin-list,
.gallery-admin-list,
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.horse-admin-item,
.gallery-admin-item,
.message-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,122,0.15);
  gap: 12px;
  flex-wrap: wrap;
}
.horse-admin-item span,
.gallery-admin-item span { color: var(--gold-pale); font-size: 0.9rem; }
.horse-admin-item small,
.gallery-admin-item small { color: var(--text-light); font-size: 0.78rem; }
.btn-delete {
  padding: 5px 12px;
  border: 1px solid rgba(220,80,80,0.4);
  color: #e07070;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.btn-delete:hover { background: rgba(220,80,80,0.15); }
.btn-edit {
  padding: 5px 12px;
  border: 1px solid rgba(192,160,98,0.4);
  color: var(--gold-pale);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-edit:hover { background: rgba(192,160,98,0.15); }
.admin-btn-cancel {
  padding: 10px 28px;
  border: 1px solid rgba(201,168,122,0.3);
  color: rgba(245,237,216,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 8px;
}
.admin-btn-cancel:hover { background: rgba(255,255,255,0.06); }

.message-item { flex-direction: column; align-items: flex-start; }
.message-item .msg-header { display: flex; gap: 12px; align-items: center; width: 100%; }
.message-item .msg-name { font-weight: 600; color: var(--gold-pale); }
.message-item .msg-date { font-size: 0.75rem; color: var(--text-light); margin-left: auto; }
.message-item .msg-subject { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.08em; }
.message-item .msg-body { font-size: 0.88rem; color: rgba(245,237,216,0.6); margin-top: 8px; }
.empty-msg { color: var(--text-light); font-style: italic; font-size: 0.88rem; }

/* ── File upload ── */
.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: rgba(192,160,98,0.10);
  border: 1px dashed var(--gold);
  color: var(--gold-pale);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 0.4rem;
}
.file-upload-label:hover { background: rgba(192,160,98,0.22); border-color: var(--gold-light); }
.upload-preview-img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  border: 1px solid rgba(192,160,98,0.4);
  border-radius: 4px;
  margin-top: 0.6rem;
  display: block;
}

/* ════════════════════════════════════
   TARIFS
   ════════════════════════════════════ */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.tarif-card {
  background: var(--white);
  border: 1px solid rgba(192,160,98,0.25);
  border-top: 3px solid var(--gold);
  padding: 28px 24px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.tarif-card:hover {
  box-shadow: 0 8px 32px rgba(192,160,98,0.15);
  transform: translateY(-3px);
}
.tarif-cat {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(192,160,98,0.2);
}
.tarif-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tarif-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dark);
  border-bottom: 1px dotted rgba(192,160,98,0.18);
  padding-bottom: 8px;
}
.tarif-list li:last-child { border-bottom: none; padding-bottom: 0; }
.tarif-price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.tarifs-note {
  text-align: center;
  margin-top: 36px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 900px) {
  .two-col          { grid-template-columns: 1fr; gap: 48px; }
  .services-grid    { grid-template-columns: 1fr; }
  .contact-layout   { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid     { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gi-large         { grid-column: span 2; }
  .navbar           { padding: 16px 20px; }
  .nav-links        { gap: 20px; }
  .tarifs-grid      { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section          { padding: 70px 16px; }
  .navbar           { padding: 14px 16px; }
  .nav-links a      { font-size: 0.7rem; }
  .nav-links        { gap: 14px; }
  .stats-row        { gap: 20px; }
  .gallery-grid     { grid-template-columns: 1fr; }
  .gi-large         { grid-column: span 1; }
  .form-row         { grid-template-columns: 1fr; }
  .admin-modal      { padding: 28px 20px; }
  .admin-tabs       { overflow-x: auto; }
  .tarifs-grid      { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   ADMIN TOOLBAR (floating top bar)
   ════════════════════════════════════ */
.admin-toolbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: linear-gradient(90deg, #1a0f06, #3a2510, #1a0f06);
  border-bottom: 2px solid var(--gold);
  padding: 10px 24px 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.admin-toolbar.active {
  display: flex;
}
/* Push page content down when toolbar is visible */
body.admin-mode .navbar { top: 70px; }
body.admin-mode { padding-top: 70px; }

.admin-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-btn {
  padding: 6px 18px;
  border: 1px solid rgba(201,168,122,0.5);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.toolbar-btn:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.toolbar-btn-danger {
  border-color: rgba(220,80,80,0.4);
  color: #e07070;
}
.toolbar-btn-danger:hover {
  background: rgba(220,80,80,0.15);
  color: #e07070;
  border-color: #e07070;
}
.toolbar-hint {
  font-size: 0.72rem;
  color: rgba(201,168,122,0.5);
  letter-spacing: 0.06em;
}
.toolbar-saved-msg {
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  background: #3a5a1a;
  color: #a0d060;
  border: 1px solid #6a9a30;
  padding: 4px 16px;
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.toolbar-saved-msg.show { opacity: 1; }

/* ════════════════════════════════════
   INLINE EDITING (admin mode)
   ════════════════════════════════════ */
body.admin-mode [data-edit] {
  outline: 1px dashed rgba(201,168,122,0.4);
  cursor: text;
  border-radius: 2px;
  transition: outline 0.2s, background 0.2s;
  min-width: 20px;
  display: inline-block;
}
body.admin-mode [data-edit]:hover,
body.admin-mode [data-edit]:focus {
  outline: 2px solid var(--gold);
  background: rgba(201,168,122,0.08);
}
body.admin-mode [data-edit]:focus {
  outline-style: solid;
}

/* Admin-only elements (photo edit inputs, etc.) */
.admin-only {
  display: none;
  margin-top: 16px;
}
body.admin-mode .admin-only {
  display: block;
}
.admin-only label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 8px;
}
.inline-input-row {
  display: flex;
  gap: 10px;
}
.inline-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(201,168,122,0.3);
  background: rgba(201,168,122,0.05);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}
.inline-input-row input:focus { border-color: var(--gold); }
.inline-input-row button {
  padding: 8px 18px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.inline-input-row button:hover { background: var(--gold-dark); color: var(--white); }

/* ════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
