/* ===============================
   Truffes & Co - Styles
   =============================== */

/* === Variables de couleurs === */
:root {
  --lab-black: #1a1a1a;
  --lab-choco: #5D4037;
  --lab-sand: #E6C288;
  --lab-cream: #F9F7F2;
  --lab-white: #FFFFFF;
  --lab-text: #4A4A4A;

  /* Mode clair (défaut) */
  --bg-primary: #F9F7F2;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #4A4A4A;
  --text-secondary: #6B7280;
  --border-color: rgba(230, 194, 136, 0.3);
}

/* Mode sombre */
.dark {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-card: #3d3d3d;
  --text-primary: #E6C288;
  --text-secondary: #a0a0a0;
  --border-color: rgba(93, 64, 55, 0.5);
}

/* Transition douce pour le changement de thème */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===============================
   Fade-in de page
   =============================== */

.page-fade {
  animation: pageFadeIn 0.35s ease both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   Curseur patte
   =============================== */

.paw-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, opacity 0.12s ease;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%235D4037'%3E%3Cellipse cx='18' cy='18' rx='6' ry='8'/%3E%3Cellipse cx='32' cy='14' rx='6' ry='9'/%3E%3Cellipse cx='46' cy='18' rx='6' ry='8'/%3E%3Cellipse cx='52' cy='30' rx='6' ry='8'/%3E%3Cpath d='M14 44c0-9 8-16 18-16s18 7 18 16c0 10-10 18-18 18S14 54 14 44z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.20));
  will-change: transform;
}

.paw-cursor.cursor-click {
  transform: translate(-50%, -50%) scale(0.85) rotate(-8deg);
}

.paw-pad {
  display: none !important;
}

@media (hover: none),
(pointer: coarse) {
  .paw-cursor {
    display: none !important;
  }
}

/* ===============================
   Bouton toggle thème
   =============================== */

.theme-toggle {
  /* position: fixed; */
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lab-choco);
  color: var(--lab-sand);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
}

.theme-toggle .icon-sun,
.dark .theme-toggle .icon-moon {
  display: none;
}

.dark .theme-toggle .icon-sun {
  display: block;
}

.theme-toggle .icon-moon {
  display: block;
}

/* ===============================
   NAVBAR — commune à toutes les pages
   =============================== */

/* Lien de navigation standard */
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--lab-text);
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 2px;
}

.dark .nav-link {
  color: rgba(230, 194, 136, 0.8);
  /* lab-sand/80 */
}

.nav-link:hover {
  color: var(--lab-choco);
}

.dark .nav-link:hover {
  color: var(--lab-sand);
}

/* Lien actif — page courante */
.nav-link.nav-active {
  font-weight: 700;
  color: var(--lab-choco);
}

.dark .nav-link.nav-active {
  color: var(--lab-sand);
}

/* Barre soulignée animée sous le lien actif */
.nav-link.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lab-sand);
  border-radius: 2px;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.2s ease;
}

/* Petite barre au survol (liens inactifs) */
.nav-link:not(.nav-active)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lab-sand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:not(.nav-active):hover::after {
  transform: scaleX(1);
}

/* Bouton Contact dans la navbar */
.nav-btn-contact {
  background: var(--lab-choco);
  color: var(--lab-sand);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: filter 0.2s ease;
  text-decoration: none;
}

.nav-btn-contact:hover {
  filter: brightness(1.1);
}

/* Menu mobile */
.nav-mobile-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--lab-text);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.dark .nav-mobile-link {
  color: var(--lab-sand);
}

.nav-mobile-link:hover {
  background: rgba(230, 194, 136, 0.2);
}

.nav-mobile-link.nav-active {
  font-weight: 700;
  background: rgba(93, 64, 55, 0.1);
  border-left: 3px solid var(--lab-sand);
  padding-left: calc(1rem - 3px);
}

.dark .nav-mobile-link.nav-active {
  background: rgba(230, 194, 136, 0.1);
}

/* ===============================
   FOOTER — commun à toutes les pages
   =============================== */

.site-footer {
  background-color: var(--lab-black);
  color: rgba(230, 194, 136, 0.7);
  border-top: 1px solid rgba(93, 64, 55, 0.2);
}

.site-footer a {
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block;
}

.site-footer a:hover {
  transform: scale(1.1);
  opacity: 1;
}

.site-footer .footer-brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lab-sand);
}

.site-footer .footer-legal-label {
  font-weight: 700;
  color: var(--lab-choco);
}

.dark .site-footer .footer-legal-label {
  color: var(--lab-sand);
}

.dark .site-footer {
  background-color: #0d0d0d !important;
}

/* ===============================
   Styles Dark Mode globaux
   =============================== */

.dark body {
  background-color: var(--bg-primary);
}

.dark .bg-white {
  background-color: var(--bg-card) !important;
}

.dark .text-gray-700,
.dark .text-gray-600,
.dark .text-gray-500 {
  color: var(--text-secondary) !important;
}

.dark .text-lab-text {
  color: var(--text-primary) !important;
}

.dark .border-lab-sand\/30,
.dark .border-gray-100,
.dark .border-gray-200,
.dark .border-gray-300 {
  border-color: var(--border-color) !important;
}

.dark .shadow-lg,
.dark .shadow-xl,
.dark .shadow-2xl {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

.dark input,
.dark select,
.dark textarea {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

/* ===============================
   Cartes chiots
   =============================== */

.puppy-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.puppy-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(93, 64, 55, 0.25);
}

.puppy-card:hover img {
  transform: scale(1.05);
}

.puppy-card img {
  transition: transform 0.4s ease;
}

.puppy-card.reserved:hover {
  transform: none;
  box-shadow: none;
}

/* ===============================
   Livre d'or
   =============================== */

.guestbook-item {
  transition: transform 0.3s ease;
}

.guestbook-item:hover {
  transform: translateX(10px);
}

.guestbook-item.right {
  margin-left: auto;
  margin-right: 0;
}

.guestbook-item.right:hover {
  transform: translateX(-10px);
}

.guestbook-item.left {
  margin-left: 0;
  margin-right: auto;
}


/* caroussel */

/* caroussel */
.carousel-img {
  width: 100%;
  flex: 0 0 100%;
  height: 650px;
  /* ← augmenté à 650px */
  object-fit: cover;
  object-position: top;
  /* ← "top" garde la tête visible */
}