/* =========================================================
   Clinique Vétérinaire de l'Afferage — feuille de style
   Palette : bleu roi + orange, chaleureuse et professionnelle
   ========================================================= */

:root {
  --blue-900: #0B2454;
  --blue-700: #14328C;
  --blue-600: #1B3FAE;
  --blue-500: #2C56D6;
  --blue-100: #E8EDFB;
  --blue-50:  #F4F7FE;

  --orange-600: #D9720A;
  --orange-500: #F2871A;
  --orange-400: #FFA347;
  --orange-100: #FFEDDA;

  --cream: #FFFBF6;
  --white: #FFFFFF;
  --ink: #223052;
  --ink-soft: #55618A;
  --border: #E3E8F5;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 30px -14px rgba(11, 36, 84, 0.28);
  --shadow-sm: 0 4px 14px -6px rgba(11, 36, 84, 0.2);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--blue-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--orange-600); }

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

/* Taille par défaut de toute icône SVG inline ; les contextes spécifiques
   (service-icon, hero-badge, presta-list, etc.) redéfinissent leur propre taille. */
svg { width: 20px; height: 20px; flex-shrink: 0; }

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

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-600);
  background: var(--orange-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow svg { width: 15px; height: 15px; flex-shrink: 0; }

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin: 0 auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-600); color: var(--white); }

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

.btn-blue {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-blue:hover { background: var(--blue-700); color: var(--white); }

.btn-ghost {
  background: var(--blue-100);
  color: var(--blue-700);
}
.btn-ghost:hover { background: var(--blue-100); color: var(--orange-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 246, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  background: var(--blue-900);
  color: var(--white);
  font-size: 1.05rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--orange-400); }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item svg, .topbar a svg { width: 19px; height: 19px; }
.topbar-social { display: inline-flex; align-items: center; gap: 12px; margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.25); }
.topbar-social a { color: var(--white); }
.topbar-social a:hover { color: var(--orange-400); }
.topbar-social svg { width: 26px; height: 26px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-900);
}
.brand:hover { color: var(--blue-900); }

.logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.logo-placeholder svg { width: 30px; height: 30px; }

.logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand .logo-img {
  width: 104px;
  height: 104px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.logo-horizontal {
  height: 132px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 1080px) {
  .logo-horizontal { height: 104px; }
}
@media (max-width: 720px) {
  .logo-horizontal { height: 72px; }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; font-weight: 700; color: var(--blue-900); }
.brand-text span { font-size: 0.78rem; color: var(--orange-600); font-weight: 600; letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue-700); border-bottom-color: var(--orange-500); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--blue-900);
  border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, var(--blue-100), transparent),
              linear-gradient(180deg, var(--blue-50), var(--cream));
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-tagline {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  margin-bottom: 20px;
}
.hero-tagline .accent { color: var(--orange-500); }
.hero p.lead { font-size: 1.12rem; max-width: 480px; }
.hero-copy { text-align: center; }
.hero-copy p.lead { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.hero-badges { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--blue-800, var(--blue-700)); font-size: 0.92rem; }
.hero-badge svg { width: 22px; height: 22px; color: var(--orange-500); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-media .placeholder-img { aspect-ratio: 4/3.1; border-radius: var(--radius-lg); }
.hero-media .float-card {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.hero-media .float-card svg { width: 30px; height: 30px; color: var(--orange-500); flex-shrink: 0; }
.hero-media .float-card strong { display: block; color: var(--blue-900); font-size: 0.95rem; }
.hero-media .float-card span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Placeholder image block ---------- */
.placeholder-img {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 14px),
    linear-gradient(150deg, var(--blue-500), var(--blue-800, var(--blue-900)));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 20px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.placeholder-img svg { width: 38px; height: 38px; opacity: 0.85; }
.placeholder-img .ph-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(11, 36, 84, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
}
.real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
}

.photo-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-frame .real-photo { border-radius: 0; box-shadow: none; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-31 { aspect-ratio: 4 / 3.1; }

.photo-collage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.photo-collage .stack { display: grid; gap: 18px; }

.photo-collage-v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.photo-collage-v2 .full { grid-column: 1 / -1; }

@media (max-width: 720px) {
  .photo-collage { grid-template-columns: 1fr; }
  .photo-collage-v2 { grid-template-columns: 1fr; }
}

.placeholder-img.orange {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 14px),
    linear-gradient(150deg, var(--orange-400), var(--orange-600));
}

/* ---------- Cartes génériques ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Services (accueil) ---------- */
.service-card { text-align: left; }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--blue-600); }
.service-card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.service-card p { font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Bandeau valeurs / stats ---------- */
.stats-band {
  background: var(--blue-900);
  color: var(--white);
}
.stats-band .grid-4 { text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 700; color: var(--orange-400); margin-bottom: 4px; }
.stat-label { font-size: 0.9rem; color: #C9D4F3; }

/* ---------- Bloc humain / valeurs ---------- */
.values-list { display: grid; gap: 20px; margin-top: 10px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .service-icon { flex-shrink: 0; margin-bottom: 0; }
.value-item h3 { margin-bottom: 4px; font-size: 1.05rem; }
.value-item p { margin-bottom: 0; font-size: 0.94rem; }

/* ---------- Equipe ---------- */
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1/1; border-radius: var(--radius-md); margin-bottom: 18px; }
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--orange-600); font-weight: 600; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }
.team-meta { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0; }
.team-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

/* ---------- Prestations page ---------- */
.presta-section { border-top: 1px solid var(--border); }
.presta-section:first-of-type { border-top: none; }
.presta-header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.presta-header .service-icon { width: 60px; height: 60px; margin-bottom: 0; }
.presta-header .service-icon svg { width: 30px; height: 30px; }
.presta-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.presta-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.presta-list li svg { width: 18px; height: 18px; color: var(--orange-500); flex-shrink: 0; margin-top: 2px; }

/* ---------- Clinique / locaux ---------- */
.facility-card { display: flex; gap: 16px; align-items: flex-start; }
.facility-card .service-icon { flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-900));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #D6DFF7; margin-bottom: 0; max-width: 460px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Accès / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-card .service-icon { flex-shrink: 0; margin-bottom: 0; }
.contact-info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card p { margin-bottom: 0; font-size: 0.95rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.hours-table td:first-child { font-weight: 600; color: var(--blue-900); }
.hours-table td:last-child { text-align: right; color: var(--ink-soft); }
.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-btn {
  width: 50px; height: 50px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
}
.social-btn svg { width: 25px; height: 25px; }
.social-btn:hover { background: var(--orange-100); color: var(--orange-600); }

/* ---------- Page header (bannière interne) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--blue-100), var(--cream));
  padding: 56px 0 40px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 10px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); font-weight: 600; }
.breadcrumb a:hover { color: var(--orange-600); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: #C9D4F3;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand strong { color: var(--white); font-size: 1.05rem; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.92rem; }
.site-footer ul li a { display: flex; align-items: flex-start; gap: 8px; }
.footer-ico { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--orange-400); }
.footer-ico svg { width: 100%; height: 100%; display: block; }
.site-footer a { color: #C9D4F3; font-size: 0.92rem; }
.site-footer a:hover { color: var(--orange-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #9AAAD6;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .presta-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-blue-desktop { display: none; }
  .nav-toggle { display: block; }
  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .topbar .container { justify-content: center; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
