/* Polices auto-hébergées (RGPD - aucune requête vers Google) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}

:root {
  --av-green: #658a69;
  --av-green-dark: #3f5a44;
  --av-green-darker: #1f3322;
  --av-cream: #f7f5ef;
  --av-sand: #efeadd;
  --av-ink: #1a1a1a;
  --av-muted: #5f6571;
  --av-danger: #c2410c;
  --av-shadow: 0 10px 30px rgba(31, 51, 34, 0.08);
  --av-shadow-lg: 0 20px 50px rgba(31, 51, 34, 0.12);
  --av-radius: 14px;
  --av-radius-lg: 22px;
  --av-transition: 220ms ease;
  --av-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --av-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--av-font-body);
  color: var(--av-ink);
  background: var(--av-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--av-font-display);
  color: var(--av-green-darker);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  text-align: center;
  margin: 1.8rem 0 1.2rem;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  text-align: center;
  margin: 1.4rem 0 1rem;
}

h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  text-align: justify;
  hyphens: auto;
  color: #2a2a2a;
}

a { color: var(--av-green-dark); transition: color var(--av-transition); }
a:hover { color: var(--av-green-darker); }

/* ===== Navbar ===== */
.av-navbar {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: .6rem;
}

.av-navbar .navbar-brand img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.av-navbar .navbar-nav {
  gap: .85rem;
}

@media (max-width: 991.98px) {
  .av-navbar .navbar-nav { gap: .25rem; }
}

.av-navbar .nav-link {
  color: #e8e8e8 !important;
  font-weight: 500;
  padding-inline: 1.1rem !important;
  border-radius: 10px;
  transition: all var(--av-transition);
}

.av-navbar .nav-link:hover,
.av-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(101, 138, 105, 0.22);
}

.av-navbar .nav-link i {
  margin-right: .35rem;
  color: var(--av-green);
}

.av-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #4f7053;
  color: #fff !important;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--av-transition);
}

.av-phone-cta:hover {
  background: var(--av-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(101, 138, 105, .35);
}

.navbar-toggler {
  border-color: rgba(255,255,255,.25);
  color: #fff;
  min-width: 44px;
  min-height: 44px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(101,138,105,.35); }

/* ===== Carousel hero ===== */
.av-hero .carousel-item {
  height: clamp(280px, 60vh, 620px);
  overflow: hidden;
}
.av-hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.82);
}
.av-hero .carousel-caption {
  inset-inline: 0;
  bottom: 12%;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
}
.av-hero .carousel-caption h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.av-hero .carousel-caption p {
  color: #f4f4f4;
  text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.av-section { padding-block: 3.5rem; }
.av-section-tight { padding-block: 2rem; }

.av-lead {
  text-align: center;
  color: var(--av-muted);
  font-size: 1.1rem;
  max-width: 760px;
  margin: 0 auto 2rem;
}

/* ===== Cards services ===== */
.av-service-card {
  background: #fff;
  border-radius: var(--av-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--av-shadow);
  transition: transform var(--av-transition), box-shadow var(--av-transition);
  border: 1px solid rgba(101, 138, 105, .08);
}

.av-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--av-shadow-lg);
}

.av-service-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--av-green) 0%, var(--av-green-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px rgba(101,138,105,.3);
}

.av-service-card h3 {
  margin-top: .4rem;
  font-size: 1.2rem;
  color: var(--av-green-darker);
}

.av-service-card p {
  text-align: center;
  color: var(--av-muted);
  margin: 0;
}

/* ===== Présentation accueil ===== */
.av-pres-logo {
  width: 220px;
  height: 220px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--av-shadow);
  margin-bottom: 1.2rem;
}

.av-pres-card {
  background: #fff;
  border-radius: var(--av-radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--av-shadow);
}

.av-pres-card .av-meta {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-block: .55rem;
  color: var(--av-ink);
}
.av-pres-card .av-meta i {
  color: var(--av-green);
  margin-top: .25rem;
  min-width: 18px;
}
.av-pres-card .av-meta a {
  color: var(--av-green-dark);
  text-decoration: none;
  font-weight: 500;
}
.av-pres-card .av-meta a:hover { text-decoration: underline; }

/* ===== Map ===== */
.av-map-wrap {
  border-radius: var(--av-radius-lg);
  overflow: hidden;
  box-shadow: var(--av-shadow-lg);
  aspect-ratio: 16 / 9;
  width: 100%;
}
.av-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Tableaux ===== */
.av-table-wrap {
  background: #fff;
  border-radius: var(--av-radius);
  padding: 1rem;
  box-shadow: var(--av-shadow);
  overflow-x: auto;
}
.av-table-wrap table { margin: 0; }
.av-table-wrap thead th {
  background: var(--av-green-darker);
  color: #fff;
  font-weight: 600;
  border-bottom: 0;
}
.av-table-wrap tbody th {
  font-weight: 600;
  color: var(--av-green-dark);
}

/* ===== Onglets animaux ===== */
.av-tabs { border-bottom: 2px solid #e6e2d5; gap: .25rem; }
.av-tabs .nav-link {
  border: 0;
  border-radius: 12px 12px 0 0;
  color: var(--av-muted);
  font-weight: 600;
  padding: .85rem 1.1rem;
  background: transparent;
}
.av-tabs .nav-link:hover {
  color: var(--av-green-dark);
  background: rgba(101, 138, 105, .08);
}
.av-tabs .nav-link.active {
  color: #fff;
  background: var(--av-green-dark);
}

.av-tab-content { padding-top: 1.5rem; }

.av-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-block: 1rem;
  flex-wrap: wrap;
}
.av-brand-row img {
  max-height: 80px;
  width: auto;
}

/* ===== Pellets ===== */
.av-pellet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-block: 2rem;
}
.av-pellet-grid img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--av-radius);
  padding: 1rem;
  box-shadow: var(--av-shadow);
}

/* ===== Swiper marques ===== */
.av-brands-section {
  background: #fff;
  border-top: 1px solid #ece8db;
}
.av-brands-section h4 {
  text-align: center;
  color: var(--av-green-darker);
  font-family: var(--av-font-display);
  font-size: 1.45rem;
  margin-bottom: 1.8rem;
}
.av-swiper {
  width: 100%;
  padding-block: 1.5rem 3rem;
}
.av-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
}
.av-swiper .swiper-slide img {
  max-height: 90px;
  max-width: 80%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: all var(--av-transition);
}
.av-swiper .swiper-slide img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}
.av-swiper .swiper-pagination-bullet {
  width: 24px;
  height: 24px;
  margin: 0 3px;
  background: transparent;
  opacity: 1;
  position: relative;
}
.av-swiper .swiper-pagination-bullet::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #b9b9b9;
  transition: background var(--av-transition);
}
.av-swiper .swiper-pagination-bullet-active::after {
  background: var(--av-green);
}

/* ===== Footer ===== */
.av-footer {
  background: linear-gradient(180deg, #1f1f1f 0%, #111 100%);
  color: #d8d8d8;
  padding-block: 3.5rem 1.2rem;
  margin-top: 4rem;
}
.av-footer h3 {
  color: #fff;
  font-family: var(--av-font-display);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  text-align: left;
}
.av-footer p { text-align: left; color: #c8c8c8; margin-bottom: .55rem; }
.av-footer a { color: #e8e8e8; text-decoration: none; }
.av-footer a:hover { color: var(--av-green); }
.av-footer .av-foot-row { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .65rem; }
.av-footer .av-foot-row i { color: var(--av-green); margin-top: .35rem; min-width: 18px; }
.av-footer .av-socials { display: flex; gap: 1rem; margin-top: .6rem; }
.av-footer .av-socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--av-transition);
  font-size: 1.1rem;
}
.av-footer .av-socials a:hover {
  background: var(--av-green);
  color: #fff;
  transform: translateY(-2px);
}
.av-footer .av-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.av-footer .av-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
  font-size: .95rem;
}
.av-footer .av-hours-list li:last-child { border-bottom: 0; }
.av-footer .av-hours-list .av-day { color: #fff; font-weight: 500; }
.av-footer .av-hours-list .av-closed { color: #ef9d76; font-style: italic; }

.av-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  text-align: center;
  font-size: .9rem;
  color: #9e9e9e;
}
.av-footer-bottom a { color: #c8c8c8; margin-inline: .75rem; }

.av-credit {
  margin-top: .9rem;
  font-size: .82rem;
  color: #949494;
  letter-spacing: .03em;
}
.av-credit strong { color: #c8c8c8; font-weight: 600; }
.av-heart {
  display: inline-block;
  transform-origin: center;
  animation: av-pulse 1.6s ease-in-out infinite;
}
@keyframes av-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ===== Back to top ===== */
#av-back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--av-green);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(101,138,105,.4);
  z-index: 999;
  transition: all var(--av-transition);
}
#av-back-top:hover {
  background: var(--av-green-dark);
  transform: translateY(-3px);
}
#av-back-top.av-show { display: inline-flex; }

/* ===== Utilitaires ===== */
.red, .av-red { color: var(--av-danger); font-weight: 700; }

.av-page-hero {
  background: linear-gradient(135deg, var(--av-green-darker) 0%, var(--av-green-dark) 100%);
  color: #fff;
  padding-block: 3rem 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.av-page-hero h1 {
  color: #fff;
  margin: 0 0 .5rem;
}
.av-page-hero p {
  text-align: center;
  color: #e8efe9;
  max-width: 760px;
  margin: 0 auto;
}

/* Animations on scroll */
.av-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.av-fade-in.av-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  p { text-align: left; }
  .av-pres-logo { width: 160px; height: 160px; }
  .av-section { padding-block: 2.5rem; }
}

@media (max-width: 575px) {
  .av-phone-cta {
    padding: .45rem .8rem;
    font-size: .9rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .av-navbar .navbar-brand img { width: 48px; height: 48px; }
}

/* Accessibilité focus */
:focus-visible {
  outline: 3px solid var(--av-green);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
