:root {
  --brand: #0ea5e9;
  --brand-ink: #075985;
  --ring: #9be7ef;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --soft: #E6F6F8;
  --shadow: 0 10px 30px rgba(2,8,23,.12)
}

/* === CARTES PREVIEW === */
.sections-preview {
  padding: 4rem 0;
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.preview-card {
  background: var(--bg);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.preview-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.preview-card.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(2,8,23,.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.preview-card-top {
  height: 5px;
}

.card-pa    .preview-card-top { background: var(--brand); }
.card-farm  .preview-card-top { background: #16a34a; }
.card-equine .preview-card-top { background: #b45309; }

.preview-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.preview-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.preview-card-body h2 {
  color: var(--brand-ink);
  font-size: 1.2rem;
  margin: 0;
}

.preview-card-body > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.preview-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.preview-card-body li {
  color: var(--ink);
  font-size: 0.9rem;
  padding-left: 1.1rem;
  position: relative;
}

.preview-card-body li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 600;
}

.card-farm   .preview-card-body li::before { color: #16a34a; }
.card-equine .preview-card-body li::before { color: #b45309; }

.preview-card-actions {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .preview-cards {
    grid-template-columns: 1fr;
  }

  .sections-preview {
    padding: 2.5rem 0;
  }
}

/* ═══ OPTION A : cartes avec image (mobile uniquement) ═══ */
.merged-option-a {
  display: none;
  padding: 4rem 0;
  width: 100%;
}

.merged-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.merged-card {
  background: var(--bg);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.merged-card-img {
  height: 200px;
  overflow: hidden;
}

.merged-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.merged-card:hover .merged-card-img img {
  transform: scale(1.06);
}

.merged-card-top-bar { height: 4px; }
.card-pa    .merged-card-top-bar { background: #0ea5e9; }
.card-farm  .merged-card-top-bar { background: #16a34a; }
.card-equine .merged-card-top-bar { background: #b45309; }

.merged-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.merged-card-body h2 {
  color: var(--brand-ink);
  font-size: 1.2rem;
  margin: 0;
}

.merged-card-body > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.merged-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.merged-card-body li {
  color: var(--ink);
  font-size: 0.88rem;
  padding-left: 1rem;
  position: relative;
}

.merged-card-body li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #0ea5e9;
}

.card-farm   .merged-card-body li::before { color: #16a34a; }
.card-equine .merged-card-body li::before { color: #b45309; }

.merged-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.merged-card-btn {
  display: block;
  text-align: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.card-pa    .merged-card-btn { background: #0ea5e9; color: #fff; }
.card-farm  .merged-card-btn { background: #16a34a; color: #fff; }
.card-equine .merged-card-btn { background: #b45309; color: #fff; }

.card-pa    .merged-card-btn:hover { background: #075985; }
.card-farm  .merged-card-btn:hover { background: #15803d; }
.card-equine .merged-card-btn:hover { background: #92400e; }

.merged-card-btn--outline {
  background: transparent !important;
  border: 1.5px solid currentColor;
}

.card-pa    .merged-card-btn--outline { color: #0ea5e9; }
.card-farm  .merged-card-btn--outline { color: #16a34a; }
.card-equine .merged-card-btn--outline { color: #b45309; }

.card-pa    .merged-card-btn--outline:hover { background: #0ea5e920 !important; }
.card-farm  .merged-card-btn--outline:hover { background: #16a34a20 !important; }
.card-equine .merged-card-btn--outline:hover { background: #b4530920 !important; }

@media (max-width: 768px) {
  .merged-option-a { display: block; padding: 2rem 0; }
  .merged-grid { grid-template-columns: 1fr; }
}

/* ═══ OPTION B : galerie enrichie ═══ */
.feature-gallery-b {
  display: flex;
  width: 80%;
  height: 70vh;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 0 24px rgba(0,0,0,0.12);
  margin: 2rem auto 4rem;
}

.gallery-item-b {
  flex: 1;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: flex 0.55s cubic-bezier(0.4,0,0.2,1);
}

.feature-gallery-b:hover .gallery-item-b { flex: 0.7; }
.gallery-item-b:hover { flex: 1.2 !important; }

.gallery-item-b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item-b:hover img { transform: scale(1.02); }
.gallery-item-b:nth-child(1) img { object-position: 20% 50%; }
.gallery-item-b:nth-child(3) img { object-position: 80% 50%; }

.gallery-label-b {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  transition: opacity 0.25s;
}

.gallery-label-b h3 {
  background: rgba(255,255,255,0.88);
  color: var(--brand-ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
}

.gallery-item-b:hover .gallery-label-b { opacity: 0; }

.gallery-overlay-b {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,8,23,0.15) 0%, rgba(2,8,23,0.78) 35%);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  gap: 0.6rem;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.gallery-item-b:hover .gallery-overlay-b { opacity: 1; }

.gallery-overlay-b h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
}

.gallery-overlay-b > p {
  font-size: 1rem;
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  max-width: 34ch;
}

.gallery-overlay-b ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-overlay-b li {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.88);
  padding-left: 1rem;
  position: relative;
}

.gallery-overlay-b li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.65);
}

.btn-b {
  display: inline-block;
  width: fit-content;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  margin-top: 0.15rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-b:hover { background: rgba(255,255,255,0.32); border-color: #fff; }

/* ── TABLETTE : overlay toujours visible, pas d'expansion ni de zoom ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .feature-gallery-b {
    width: 95%;
    height: 60vh;
  }

  /* Désactiver l'expansion hover */
  .gallery-item-b { transition: none; }
  .feature-gallery-b:hover .gallery-item-b { flex: 1; }
  .gallery-item-b:hover { flex: 1 !important; }

  /* Désactiver le zoom image */
  .gallery-item-b img { transition: none; }
  .gallery-item-b:hover img { transform: none; }

  /* Overlay toujours visible */
  .gallery-overlay-b { opacity: 1 !important; transition: none !important; }

  /* Masquer le label (redondant avec overlay visible) */
  .gallery-label-b { display: none !important; }

  /* Adapter le texte pour 3 colonnes égales */
  .gallery-overlay-b { padding: 1.2rem; }
  .gallery-overlay-b h3 { font-size: 1.1rem; }
  .gallery-overlay-b > p { font-size: 0.78rem; max-width: 100%; }
  .gallery-overlay-b li { font-size: 0.76rem; }
}

@media (max-width: 768px) {
  .feature-gallery-b {
    display: none;
  }

  .gallery-item-b { border-radius: 1rem; }

  .gallery-item-b img {
    height: 200px;
    display: block;
    transform: none !important;
  }

  .gallery-label-b { display: none; }

  .gallery-overlay-b {
    position: static;
    opacity: 1;
    background: none;
    color: var(--ink);
    padding: 0.9rem 1rem 1.1rem;
    align-items: flex-start;
  }

  .gallery-overlay-b h3 { color: var(--brand-ink); font-size: 1.15rem; }
  .gallery-overlay-b > p { color: var(--muted); max-width: 100%; }
  .gallery-overlay-b li { color: var(--ink); }
  .gallery-overlay-b li::before { color: var(--brand); }

  .btn-b {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
  }
}

.lead {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0 0 10px;
}

.muted {
    color: var(--muted);
    margin: 0;
}

/* === SECTIONS GENERALES === */
.container {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}

.section-head h3 {
  font-size: 1.75rem;
  color: var(--brand-ink);
}

.section-head p.muted {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* === CONTACT === */
.contact-section .panel-box {
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--ink);
}

.contact-section strong {
  color: var(--brand-ink);
}

.phone-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.phone-link:hover {
  color: var(--brand-ink);
}

/* === CARTE === */
.map-section {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.map-panel {
  background-color: var(--soft);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.map-frame {
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-head h3 {
    font-size: 1.5rem;
  }

  .map-frame {
    height: 300px;
  }

  .contact-section .panel-box {
    padding: 1rem;
  }
}


