/*
═══════════════════════════════════════════════════════════
  LA MEUTE IMPÉRIALE - FEUILLE DE STYLE PRINCIPALE
  Élevage Familial Multi-Races
  Palette: Beige (#FAF8F3, #F5EDE4, #E8D5C4) | Vert Sauge (#A8B5A0, #8A9A8A) | Gris (#616161, #424242)
═══════════════════════════════════════════════════════════
*/

/* ========== IMPORTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* ========== VARIABLES CSS ========== */
:root {
  /* Couleurs Beige / Sable */
  --beige-ultra: #FAF8F3;
  --beige-light: #F5EDE4;
  --beige-soft: #E8D5C4;
  --beige-cream: #E0CDB8;
  --beige-sand: #D4C4B0;

  /* Couleurs Vert Sauge */
  --sage-lightest: #E8EDE8;
  --sage-light: #C9D5C9;
  --sage: #A8B5A0;
  --sage-dark: #8A9A8A;
  --olive-dark: #6B7B6B;

  /* Couleurs Gris */
  --gray-perle: #F8F9FA;
  --gray-verylight: #E8EAED;
  --gray-light: #D1D3D6;
  --gray: #9E9E9E;
  --gray-dark: #616161;
  --gray-anthracite: #424242;
  --gray-night: #2C2C2C;

  /* Couleurs Dorées */
  --gold-light: #E6D5A8;
  --gold: #D4AF37;
  --bronze: #B8996B;

  /* Couleurs Fonctionnelles */
  --success: #6B8E23;
  --info: #8A9A8A;
  --warning: #D4A03A;
  --danger: #A0523D;

  /* Alias historiques */
  --primary-light: var(--sage-light);
  --primary: var(--sage);
  --primary-dark: var(--sage-dark);
  --secondary-light: var(--beige-light);
  --secondary: var(--beige-soft);
  --secondary-dark: var(--beige-sand);
  --accent: var(--gold);

  /* Couleurs système */
  --bg: var(--beige-ultra);
  --white: #FFFFFF;
  --text: var(--gray-dark);
  --text-dark: var(--gray-anthracite);
  --text-light: #7A7A7A;

  /* Borders */
  --border-color: var(--gray-verylight);

  /* Typographie */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Transitions */
  --transition: all 0.3s ease;

  /* Ombres */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50px;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: #F8F9FA;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(168, 181, 160, 0.35);
  color: var(--text-dark);
}

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

.img-blur-loading {
  /* filter: blur(12px); */
  transform: scale(1.02);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.img-blur-loaded {
  filter: none !important;
  transform: scale(1);
  transition: var(--transition);
}

a {
  text-decoration: none;
  color: var(--sage-dark);
  transition: var(--transition);
}

a:hover {
  color: var(--olive-dark);
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ========== TYPOGRAPHIE ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

/* ========== HEADER ========== */
.header-top {
  background-color: var(--sage);
  color: var(--white);
  padding: var(--spacing-xs) 0;
  font-size: 0.875rem;
  position: relative;
  z-index: 1001;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-left,
.header-top-right {
  display: flex;
  gap: var(--spacing-md);
}

.header-top a {
  color: var(--white);
}

.header-top a:hover {
  color: var(--beige-ultra);
}

.header-main {
  background: white;
  border-bottom: 1px solid var(--beige-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-main .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-anthracite);
  letter-spacing: 0.5px;
  font-family: 'Georgia', 'Times New Roman', serif;
  margin-right: auto;
}

.logo-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--sage-lightest);
  padding: 5px;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-menu a {
  font-weight: 600;
  color: var(--gray-dark);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--olive-dark);
  background-color: var(--sage-lightest);
}

.mobile-only-link {
  display: none;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 1px solid #E8EAED;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  margin: var(--spacing-xs) 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--olive-dark);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--sage);
  color: var(--white);
  border-color: var(--sage);
  box-shadow: 0 2px 6px rgba(168, 181, 160, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(168, 181, 160, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-outline {
  background-color: transparent;
  color: var(--sage-dark);
  border-color: var(--sage);
}

.btn-outline:hover {
  background-color: var(--sage);
  color: var(--white);
}

.btn-accent {
  background-color: #E91E63;
  color: var(--white);
  border-color: #E91E63;
}

.btn-accent:hover {
  background-color: #C2185B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

@media (max-width: 480px) {
  .btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    /* Ensure full width on mobile */
    white-space: normal !important;
    /* Allow wrapping on very small screens if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
  }

  .btn-lg i {
    margin-right: 0 !important;
    margin-bottom: 0.25rem;
  }
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  max-width: 100%;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  background-color: #FFFFFF;
}

.section-alt {
  background-color: var(--beige-light);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #E8D5C4 0%, #F5EDE4 45%, #E8EDE8 100%);
  color: var(--text-dark);
  overflow: hidden;
  animation: fade-in 0.8s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: url('../images/hero-home.jpg') center/cover no-repeat; */
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--spacing-md);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.hero-slogan {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: var(--spacing-lg);
  color: var(--sage-dark);
  text-shadow: none;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero alternatif pour pages internes */
.hero-small {
  min-height: 40vh;
  background: linear-gradient(135deg, var(--sage) 0%, var(--olive-dark) 100%);
}

/* Base hero styles for layering */
.hero-races,
.hero-chihuahua,
.hero-pomsky,
.hero-bully,
.hero-galerie,
.hero-portees,
.hero-reproducteurs,
.hero-reservation,
.hero-chiots,
.hero-elevage,
.hero-contact {
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

/* Ensure content is on top */
.hero-races .hero-content,
.hero-chihuahua .hero-content,
.hero-pomsky .hero-content,
.hero-bully .hero-content,
.hero-galerie .hero-content,
.hero-portees .hero-content,
.hero-reproducteurs .hero-content,
.hero-reservation .hero-content,
.hero-chiots .hero-content,
.hero-elevage .hero-content,
.hero-contact .hero-content {
  position: relative;
  z-index: 2;
}

/* Sharp image (contain) */
.hero-races::before,
.hero-chihuahua::before,
.hero-pomsky::before,
.hero-bully::before,
.hero-galerie::before,
.hero-portees::before,
.hero-reproducteurs::before,
.hero-reservation::before,
.hero-chiots::before,
.hero-elevage::before,
.hero-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  /* More visible */
  z-index: 1;
}

/* Blurred background (cover) */
.hero-races::after,
.hero-chihuahua::after,
.hero-pomsky::after,
.hero-bully::after,
.hero-galerie::after,
.hero-portees::after,
.hero-reproducteurs::after,
.hero-reservation::after,
.hero-chiots::after,
.hero-elevage::after,
.hero-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  filter: blur(20px);
  transform: scale(1.1);
  /* Avoid blur edges */
  z-index: 0;
}

/* Define images for both layers */
.hero-races::before,
.hero-races::after {
  background-image: url('../images/races/Nos_races.jpg');
}

.hero-chihuahua::before,
.hero-chihuahua::after {
  background-image: url('../images/races/Chihuahua_Race.jpg');
}

.hero-pomsky::before,
.hero-pomsky::after {
  background-image: url('../images/races/Pomsky_Race.jpg');
}

.hero-bully::before,
.hero-bully::after {
  background-image: url('../images/races/Bully_XL_Race.jpg');
}

.hero-galerie::before,
.hero-galerie::after {
  background-image: url('../images/races/Galerie.jpg');
}

.hero-portees::before,
.hero-portees::after {
  background-image: url('../images/races/Nos_Portées.jpg');
}

.hero-reproducteurs::before,
.hero-reproducteurs::after {
  background-image: url('../images/races/Reproducteurs.jpg');
}

.hero-reservation::before,
.hero-reservation::after {
  background-image: url('../images/races/Comment_Réserver.jpg');
}

.hero-chiots::before,
.hero-chiots::after {
  background-image: url('../images/races/Chiots_Disponibles.jpg');
}

.hero-elevage::before,
.hero-elevage::after {
  background-image: url('../images/races/Notre_Elevage.jpg');
}

.hero-contact::before,
.hero-contact::after {
  background-image: url('../images/contact-header.jpg');
}

.hero-small h1 {
  font-size: 2.5rem;
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(212, 175, 55, 0.3);
  border: 1px solid var(--color-gold);
}

.card-img {
  height: 250px;
  background-color: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Suppression de l'effet de flou d'arrière-plan car l'image couvre tout maintenant */
.card-img::before {
  display: none;
}

.card-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Focus sur le haut (têtes des chiens) */
  z-index: 1;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.card-text {
  color: var(--text);
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.card-footer {
  padding: var(--spacing-md);
  background-color: var(--beige-ultra);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Cards avec badge statut */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--white);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-disponible {
  background: var(--success);
  color: var(--white);
}

.badge-reserve {
  background: var(--warning);
  color: var(--white);
}

.badge-sale {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  border: 2px solid #FFF;
}

/* ========== GRILLES ========== */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
}

.gallery-grid .card {
  flex: 0 1 350px;
  width: 100%;
}

.skeleton-grid {
  display: grid;
  gap: var(--spacing-md);
}

.skeleton-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border: 1px solid var(--gray-verylight);
  box-shadow: var(--shadow-sm);
}

.skeleton-bar {
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 0%, #e2e2e2 50%, #f0f0f0 100%);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-sm);
  animation: shimmer 1.6s infinite;
}

.skeleton-bar.sm {
  height: 10px;
  width: 60%;
}

.skeleton-bar.lg {
  height: 18px;
  width: 80%;
}

.skeleton-photo {
  height: 180px;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  animation: shimmer 1.6s infinite;
  background: linear-gradient(90deg, #f0f0f0 0%, #e2e2e2 50%, #f0f0f0 100%);
}

/* ========== FEATURES / ICON BOXES ========== */
.feature-box {
  text-align: center;
  padding: var(--spacing-md);
  background: #FFFFFF;
  border: 1px solid #E8EAED;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--sage-lightest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--sage);
}

.feature-box:hover .feature-icon {
  background: var(--sage);
  color: var(--white);
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.feature-text {
  color: var(--text);
}

/* ========== SECTIONS TITRE ========== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text);
}

/* ========== LISTES À PUCES ========== */
.check-list {
  list-style: none;
}

.check-list li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-lg);
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ========== TABLEAU ========== */
.table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-md) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid #E8EAED;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

thead {
  background: var(--sage);
  color: var(--white);
}

th,
td {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--bg);
}

tbody tr:hover {
  background: var(--beige-ultra);
}

/* ========== FORMULAIRES ========== */
.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: var(--spacing-sm);
  background-color: var(--white);
  border: 2px solid var(--beige-sand);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(168, 181, 160, 0.2);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.checkbox-wrapper input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

/* ========== FILTRES ========== */
.filters {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  background: #FFFFFF;
  border: 1px solid #E8EAED;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

/* ========== STEPS / TIMELINE ========== */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.step {
  display: flex;
  gap: var(--spacing-md);
  background: #FFFFFF;
  border: 1px solid #E8EAED;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--sage);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

/* ========== PRIX BADGE - SUPPRIMÉ ========== */
/* Les prix ne sont plus affichés publiquement */

.badge-sale {
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.2);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ========== CALL TO ACTION SECTIONS ========== */
.cta-section {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  position: relative;
}

.cta-section p {
  color: var(--beige-ultra);
  margin-bottom: var(--spacing-lg);
  font-size: 1.125rem;
}

.cta-section .btn-outline {
  background-color: var(--white);
  color: var(--sage-dark);
  border-color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-outline:hover {
  background-color: var(--beige-ultra);
  color: var(--sage-dark);
  border-color: var(--beige-ultra);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 0 0 2px var(--gold-light);
  border-color: var(--gold);
}

/* ========== MAPS ========== */
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  margin: var(--spacing-md) 0;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--gray-anthracite);
  color: var(--beige-soft);
  padding: var(--spacing-xl) 0 0;
  width: 100%;
  margin: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
  color: var(--beige-light);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-column p,
.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-column a:hover {
  color: var(--sage);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer .logo {
  font-size: 1rem;
  margin-right: 0;
}

.footer .logo-img {
  width: 55px;
  height: 55px;
}

.admin-link {
  font-size: 0.75rem;
  color: rgba(92, 107, 86, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.admin-link::before {
  content: '\1F512';
  /* cadenas */
  font-size: 0.7rem;
  opacity: 0.7;
}

.admin-link:hover {
  color: var(--sage);
  background: rgba(168, 181, 160, 0.1);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--olive-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--sage);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: var(--gray-night);
  padding: var(--spacing-md) 0;
  text-align: center;
  font-size: 0.875rem;
  width: 100%;
  margin: 0;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-bottom-content p {
  margin: 0.25rem 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

/* ========== RESPONSIVE ========== */

/* Tablette */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* Header */
  .header-top {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    align-items: flex-start;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu a {
    width: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu a:active {
    background-color: #A8E6CF;
    /* Vert pastel demandé */
  }

  .mobile-only-link {
    display: block;
    margin-top: var(--spacing-sm);
    border-top: 1px solid var(--gray-verylight);
    padding-top: var(--spacing-sm);
    color: var(--sage-dark) !important;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: var(--spacing-md);
  }

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-slogan {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  /* Grilles */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Spacing */
  .section {
    padding: var(--spacing-md) 0;
  }

  /* Steps */
  .step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto var(--spacing-sm);
  }

  /* Filters */
  .filters {
    flex-direction: column;
  }
}

/* Petits mobiles */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .btn {
    width: 100%;
  }

  .card-footer {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* ========== UTILITIES ========== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

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

.color-accent {
  color: var(--gold);
}

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

.bg-light {
  background-color: var(--bg);
}

.bg-white {
  background-color: var(--white);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========== ACCESSIBILITÉ ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible pour navigation au clavier */
*:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}

/* ========== MODAL SYSTEM ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
  padding: 0.5rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--danger);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background-color: var(--gray-perle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Utility classes for modal content */
.modal-img-main {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center top;
  /* Important pour les animaux */
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* Règle globale pour éviter les déformations d'images partout */
img {
  max-width: 100%;
  height: auto;
}

/* Force object-fit cover sur toutes les images qui ont une hauteur définie */
.card-img img,
.modal-img-main,
.modal-gallery img,
.gallery-item img {
  object-fit: cover;
  object-position: center top;
}

.modal-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.modal-gallery img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.modal-gallery img:hover {
  opacity: 1;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gray-verylight);
  color: var(--text-dark);
}

.modal-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}