/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 100; /* Plus bas que le menu mobile */
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.announcement-text {
  font-weight: 600;
}
.announcement-cta {
  background: #fff;
  color: var(--primary-color);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.announcement-cta:hover {
  opacity: 0.9;
}
/* Couleurs principales */
:root {
    --primary-color: #3A86FF;       /* Bleu vif et moderne */
    --secondary-color: #F7F7F7;    /* Gris très clair pour les fonds */
    --text-color: #333333;         /* Gris foncé pour le texte */
    --accent-color: #FFBE0B;       /* Jaune soleil pour l'accent */
    --card-bg: #FFFFFF;
    --border-radius: 16px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
    --font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    --background-color: #F7F7F7;
}

/* Style global */
body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    font-size: 1rem;
    padding: 0;
    margin: 0;
}

.layout {
    display: block;
    min-height: 100vh;
    background: linear-gradient(120deg, var(--secondary-color) 80%, var(--accent-color) 100%);
    position: relative;
}

.side-nav {
  width: 208px;
  min-width: 188px;
  background: var(--secondary-color);
  box-shadow: 2px 0 8px rgba(0,0,0,0.04);
  padding: 1.2em 0.5em 1.2em 0.5em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 10;
  justify-content: flex-start;
  overflow-y: auto;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
  gap: 0.6em;
}

.side-nav ul li {
    width: 100%;
}

.side-nav ul li a {
    color: var(--primary-color);
    background: var(--secondary-color);
  border-radius: 12px 0 0 12px;
  padding: 0.6em 0.8em 0.6em 0.8em;
  font-weight: 600;
    display: flex;
    align-items: center;
  gap: 0.45em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  width: calc(100% - 8px);
    box-sizing: border-box;
}

.side-nav ul li a:hover, .side-nav ul li a.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(214,183,123,0.2);
}

/* Renforcer l'état actif côté sous‑pages */
.side-nav a.active i { color: #fff; }

/* Séparateurs non cliquables dans le menu */
.side-nav ul li.menu-sep {
  padding: 0.4em 1em 0.2em 1em;
  color: #9aa3af;
  font-size: 0.78em;
  letter-spacing: 0.04em;
  border-left: 2px solid rgba(255,190,11,0.6);
  margin: 0.6em 0 0.2em 0.3em;
}

.main-content {
  display: block;
  width: calc(100% - 224px);
  margin-left: 224px;
    padding: 70px 4em 2em 4em; /* Padding-top pour le bouton mode sombre */
    box-sizing: border-box;
    min-height: 100vh;
    position: relative;
}

header {
    background: none;
    color: var(--primary-color);
    box-shadow: none;
    border-bottom: 4px solid var(--accent-color);
    margin-bottom: 2em;
    margin-top: 1em;
    padding: 0;
}

header h1 {
    font-size: 2.2em;
    margin: 0 1.5em 0 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 1.5em;
    padding: 1.5em 2em 0.5em 2em;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
}

/* Afficher le bouton menu sur mobile */
@media (max-width: 700px) {
    .menu-toggle {
        display: flex !important;
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        box-shadow: 0 4px 16px rgba(0,0,0,0.18);
        align-items: center;
        justify-content: center;
        font-size: 1.5em;
        z-index: 300;
        border: none;
        transition: background 0.2s;
    }
  /* Mode mobile: side-nav replié par défaut, ouverture via .active */
  .side-nav { transform: translateX(-224px); transition: transform .2s ease; }
  .side-nav.active { transform: translateX(0); }
  .menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: none; z-index: 200; }
  body.menu-open .menu-overlay { display: block; }
}

/* Mode sombre toggle button styles - EN HAUT DE PAGE */
.theme-toggle-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-gauche ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
    margin: 0;
    padding: 0;
    list-style: none;
    background: none;
}

.nav-gauche ul li a {
    color: var(--primary-color);
    background: var(--secondary-color);
    border-radius: 20px 0 0 20px;
    padding: 0.7em 1.5em 0.7em 1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.7em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.nav-gauche ul li a:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(214,183,123,0.2);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Sections */
section {
    margin: 2em 0;
    padding: 1.5em;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 1em;
    font-size: 1.8em;
}

section p, section ul {
    font-size: 1.1em;
}

ul.qualites li {
    margin-bottom: 0.5em;
    color: var(--accent-color);
    font-weight: bold;
}

/* Hero section */
.section-hero {
    background: linear-gradient(120deg, #f5f5e6 60%, #e6e6d6 100%);
    text-align: center;
    padding: 3em 1em 2em 1em;
    border-radius: 0 0 20px 20px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-img {
    width: 150px;
    border-radius: 50%;
    margin-top: 1em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Bonus CSS pour l'accueil et les boutons */
.hero-img-large {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 1em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.intro-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  margin-top: 1.5em;
}

.intro-text {
  max-width: 700px;
  text-align: center;
}

.cta-button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: var(--accent-color);
}

/* Correction pour les boutons côte à côte sur mobile */
@media (max-width: 600px) {
  .cta-button {
    display: block;
    margin: 0.5em auto;
    width: fit-content;
    max-width: 280px;
    text-align: center;
  }
  
  /* Espace entre les boutons */
  .cta-button + .cta-button {
    margin-top: 1em;
    margin-left: auto;
  }
  
  /* Container pour les boutons */
  div:has(.cta-button) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
}

/* Correction pour les conteneurs de boutons multiples */
.intro-block div,
div:has(.cta-button) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}

/* Responsive spécifique pour les boutons */
@media (max-width: 480px) {
  .cta-button {
    font-size: 1em;
    padding: 0.8em 1.5em;
    margin: 0.3em;
    min-width: 200px;
    display: block;
  }
  
  /* Forcer les boutons en colonne sur très petit écran */
  .intro-block div,
  div:has(.cta-button) {
    flex-direction: column;
    align-items: center;
  }
  
  /* Menu navigation plus compact */
  .side-nav ul li a {
    padding: 0.4em 0.6em;
    font-size: 0.8em;
  }
  
  .side-nav ul {
    gap: 0.2em;
  }
}

/* Correction spécifique pour les écrans moyens (tablettes/grands mobiles) */
@media (max-width: 900px) and (min-width: 701px) {
    .side-nav ul li a {
        padding: 0.6em 1em;
        font-size: 0.85em;
    }
    .side-nav ul {
        gap: 0.5em;
    }
}

@media (max-width: 700px) and (min-width: 481px) {
    .side-nav ul li a {
        padding: 0.5em 0.7em;
        font-size: 0.8em;
    }
    .side-nav ul {
        gap: 0.3em;
    }
}

/* Services section */
.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: center;
    padding: 0;
    list-style: none;
}

.services-list li {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1em 2em;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Amélioration visuelle pour la grille des services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin-top: 1em;
}

/* Responsive pour la grille des services */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5em;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 109, 119, 0.12);
}

.service-card h4 {
  margin-top: 0.6em;
  color: var(--primary-color);
}

.service-card ul {
  padding-left: 1.2em;
  list-style: none;
}

.service-card ul li::before {
  content: "• ";
  color: var(--accent-color);
  font-weight: bold;
  margin-right: 0.3em;
}

/* CSS pour la présentation horizontale des services */
.services-horizontal {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.service-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  padding: 1.5em;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.service-row .icon {
  flex-shrink: 0;
  color: var(--primary-color);
  margin-top: 0.3em;
}

.service-row h4 {
  margin: 0 0 0.4em 0;
  color: var(--primary-color);
}

.service-row ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5em 0 0 0;
}

.service-row ul li {
  margin-bottom: 0.3em;
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    max-width: 400px;
    margin: 0 auto 1.5em auto;
}

.contact-form input, .contact-form textarea {
    padding: 0.7em;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.contact-form button {
    width: fit-content;
    align-self: flex-end;
}

/* Bonus CSS pour un bouton de formulaire plus doux */
.contact-form button.cta-button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.7em 1.5em;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.contact-form button.cta-button:hover {
  background-color: var(--accent-color);
}

.contact-infos {
    text-align: center;
    margin-top: 1em;
}

.contact-infos a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
    font-size: 0.9em;
}

/* Accordéon horizontal */
.accordion-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    margin: 2em auto;
    max-width: 1200px;
}

.accordion-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.accordion-header {
    background: var(--primary-color);
    color: white;
    padding: 1em;
    font-size: 1.2em;
    text-align: left;
    border: none;
    width: 100%;
}

.accordion-content {
    display: block;
    padding: 1em;
    font-size: 1em;
    color: var(--text-color);
    background: white;
}

/* --- Switch clair/sombre moderne --- */
.theme-switch {
  position: absolute;
  top: 1.5em;
  right: 2em;
  display: flex;
  align-items: center;
  z-index: 20;
}
.theme-switch input[type="checkbox"] {
  height: 0;
  width: 0;
  visibility: hidden;
  position: absolute;
}
.theme-switch label {
  cursor: pointer;
  width: 52px;
  height: 28px;
  background: #cfd8dc;
  display: block;
  border-radius: 50px;
  position: relative;
  transition: background 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.theme-switch label:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.theme-switch input:checked + label {
  background: var(--accent-color);
}
.theme-switch input:checked + label:after {
  left: 27px;
  background: var(--primary-color);
}
.theme-switch .icon {
  margin-left: 0.7em;
  font-size: 1.2em;
  color: var(--primary-color);
  transition: color 0.3s;
}

/* Responsive pour le switch thème */
@media (max-width: 700px) {
  .theme-switch {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 600; /* Plus élevé que le menu */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  /* Règle importante pour le menu mobile */
  .side-nav.active {
    backdrop-filter: none !important;
    filter: brightness(1) !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background: var(--secondary-color) !important;
    color: var(--text-color) !important;
  }
  
  /* Forcer la lisibilité des liens du menu */
  .side-nav.active a {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    background: transparent !important;
    color: var(--primary-color) !important;
  }
  
  /* Spécial Android - forcer le menu au premier plan */
  .side-nav.active {
    will-change: transform !important;
    contain: layout style paint !important;
  }
  
  .theme-switch label {
    width: 48px;
    height: 26px;
  }
  
  .theme-switch label:after {
    width: 20px;
    height: 20px;
    top: 3px;
    left: 3px;
  }
  
  .theme-switch input:checked + label:after {
    left: 25px;
  }
}

@media (max-width: 480px) {
  .theme-switch {
    top: 10px;
    right: 10px;
    padding: 6px;
  }
}

/* Correction dimension et style image chiens d'assistance */
.img-chiens-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em 0 1em 0;
}
.img-chiens-container img.img-chiens {
  max-width: 100%;
  width: 280px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  object-fit: cover;
  margin-bottom: 0.5em;
}
.img-chiens-container figcaption {
  font-size: 1em;
  color: #555;
  text-align: center;
  margin-top: 0.2em;
}
@media (max-width: 600px) {
  .img-chiens-container img.img-chiens {
    width: 100%;
    min-width: 0;
    max-width: 98vw;
  }
}

/* Bonus CSS pour améliorer la section chiens d'assistance */
.chiens-assistance-bloc {
  padding: 1em;
  line-height: 1.7;
}

.chiens-assistance-bloc h3,
.chiens-assistance-bloc h4 {
  color: var(--primary-color);
  margin-top: 1em;
}

.chiens-assistance-bloc ul {
  list-style: none;
  padding-left: 0;
}

.chiens-assistance-bloc ul li::before {
  content: "🐶 ";
  margin-right: 0.4em;
}

.img-chiens-container {
  text-align: center;
  margin-top: 1.5em;
}

.img-chiens {
  max-width: 90%;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.img-chiens-container figcaption {
  margin-top: 0.5em;
  font-style: italic;
  color: #666;
}

.impact {
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 1em;
}

/* CSS pour la section parcours */
.parcours-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  margin-top: 1em;
}

.parcours-photo {
  width: 150px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.parcours-texte {
  max-width: 800px;
  text-align: center;
}

.parcours-texte ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1em;
}

.parcours-texte ul li::before {
  content: "🦴 ";
  margin-right: 0.4em;
}

@media (min-width: 768px) {
  .parcours-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .parcours-photo {
    flex-shrink: 0;
    margin-right: 2em;
  }

  .parcours-texte {
    text-align: left;
  }
}

/* Amélioration mobile - base viewport */
@media (max-width: 480px) {
    body {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
        overflow-x: hidden; /* Empêche le scroll horizontal */
    }
    
    /* Éviter tout débordement horizontal */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Améliorer la lisibilité des textes */
    section h2 {
        font-size: 1.6em;
        line-height: 1.3;
    }
    
    section p, section ul {
        font-size: 1em;
        line-height: 1.6;
    }
    
    /* Marges et padding adaptés au mobile */
    section {
        margin: 1.5em 0;
        padding: 1.2em;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Boutons tactiles plus grands */
    .cta-button {
        min-height: 44px; /* Taille tactile recommandée */
        padding: 12px 18px;
        font-size: 16px;
        display: inline-block;
        text-align: center;
    }
    
    /* Formulaires mobile-friendly */
    .contact-form input, 
    .contact-form textarea {
        min-height: 44px;
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 12px;
    }
    
    .contact-form {
        max-width: 100%;
        margin: 0 0 1.5em 0;
    }
    
    /* Newsletter responsive */
    form[id="newsletterForm"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    form[id="newsletterForm"] input {
        min-width: auto !important;
        width: 100% !important;
        min-height: 44px;
        font-size: 16px;
        padding: 12px;
    }
    
    /* Images responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .hero-img, .hero-img-large {
        width: 120px;
        height: 120px;
    }
    
    /* Espacement du header mobile */
    header h1 {
        font-size: 1.8em;
        text-align: center;
    }
    
    .header-container {
        padding: 1em;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        width: calc(100% - 300px);
        margin-left: 300px;
        padding: 1em 2em 0 2em;
    }
}

@media (max-width: 1100px) {
    .main-content {
        width: calc(100% - 280px);
        margin-left: 280px;
        padding: 1em 2em 0 2em;
    }
    .side-nav {
        width: 180px;
        min-width: 120px;
        padding: 1em 0.2em 1em 0.2em;
    }
}

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }
    .side-nav {
        position: static;
        width: 100vw;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        min-width: 0;
        box-shadow: none;
        padding: 0.5em 0;
        flex-wrap: wrap;
    }
    .side-nav ul {
        flex-direction: row;
        gap: 0.3em;
        width: 100vw;
        flex-wrap: wrap;
        justify-content: center;
    }
    .side-nav ul li {
        margin-bottom: 0;
        width: auto;
        min-width: 80px;
    }
    .side-nav ul li a {
        padding: 0.5em 0.8em;
        font-size: 0.9em;
        border-radius: 10px;
    }
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 1em 0.5em 0 0.5em;
        max-width: 100vw;
    }
}

@media (max-width: 700px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1em;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.7em;
        background: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        padding: 1em 0;
        display: none;
    }
    
    nav.active ul {
        display: flex;
    }
    
    .menu-toggle {
        display: flex !important;
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 64px; /* Augmenté pour meilleure accessibilité */
        height: 64px;
        background: var(--primary-color);
        color: white;
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
        align-items: center;
        justify-content: center;
        font-size: 1.8em;
        z-index: 300;
        border: none;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .menu-toggle:active, .menu-toggle:focus {
        background: var(--accent-color);
        color: var(--primary-color);
        transform: scale(0.95);
    }
    
    .menu-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
    
    /* S'assurer que le bouton menu reste toujours accessible */
    .menu-toggle {
        position: fixed !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    .side-nav {
        position: fixed !important;
        left: 0;
        top: 0 !important;
        width: 85vw; /* Augmenté pour plus de confort */
        max-width: 320px;
        height: 100vh !important;
        background: var(--secondary-color) !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9998 !important; /* Très élevé, juste sous le bouton menu */
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        padding: 3em 0.8em 2em 0.8em;
        flex-direction: column;
        overflow-y: auto; /* Scroll si nécessaire */
        backdrop-filter: none; /* Pas de flou sur le menu */
        filter: none; /* Pas de filtre sur le menu */
    }
    
    .side-nav ul {
        flex-direction: column;
        gap: 1.2em;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .side-nav ul li {
        width: 100%;
        min-width: auto;
    }
    
    .side-nav ul li a {
        padding: 1em 1.2em;
        font-size: 1.1em;
        border-radius: 15px;
        width: 100%;
        min-height: 48px; /* Taille tactile */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.8em;
        position: relative;
        z-index: 9999; /* Très élevé pour Android */
        pointer-events: auto; /* Forcer la cliquabilité */
        background: var(--secondary-color) !important;
        color: var(--primary-color) !important;
        text-decoration: none !important;
    }
    
    .side-nav ul li a:hover,
    .side-nav ul li a.active {
        background: var(--accent-color) !important;
        color: white !important;
    }
    
    .side-nav ul li a i {
        font-size: 1.2em;
        width: 24px;
        text-align: center;
    }
    
    .side-nav.active {
        transform: translateX(0);
    }
    
    .main-content {
        padding: 1em 1em 0 1em; /* Plus d'espace latéral */
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    /* Quand le menu est ouvert, masquer les éléments problématiques */
    body.menu-open .announcement-bar {
        z-index: 50 !important;
    }
    
    body.menu-open .theme-switch {
        z-index: 9999 !important;
    }
    
    /* S'assurer que le menu reste net quand il est ouvert */
    .side-nav.active {
        backdrop-filter: none !important;
        filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Éviter que le flou affecte les enfants du menu */
    .side-nav.active * {
        backdrop-filter: none !important;
        filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Overlay pour fermer le menu */
    .menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0,0,0,0.6);
        z-index: 9997 !important; /* Juste sous le menu */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        backdrop-filter: blur(2px);
        pointer-events: none; /* N'interfère pas avec les clics quand inactif */
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Permet les clics pour fermer le menu */
    }
    
    /* Zone d'exclusion pour le bouton menu */
    .menu-overlay::before {
        content: '';
        position: absolute;
        bottom: 24px;
        right: 24px;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        pointer-events: none; /* Le bouton reste cliquable */
    }
    
    /* L'overlay ne doit pas flouter ce qui est au-dessus */
    .menu-overlay.active {
        backdrop-filter: blur(2px);
    }
    
    /* Mais pas le menu qui a un z-index plus élevé */
    .side-nav {
        isolation: isolate; /* Crée un nouveau contexte de superposition */
    }
    
    /* Amélioration de l'annonce bar sur mobile */
    .announcement-bar {
        padding: 12px 16px;
        text-align: center;
    }
    
    .announcement-inner {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .announcement-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .announcement-cta {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
}

/* Dark mode */
[data-theme="dark"] {
    --primary-color: #ffb703;
    --secondary-color: #22223b;
    --text-color: #fff;
    --accent-color: #ffb703;
    --background-color: #22223b;
    --card-bg: #23243a;
}

[data-theme="dark"] body,
body[data-theme="dark"] {
    background: var(--background-color);
    color: var(--text-color);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p,
[data-theme="dark"] a,
[data-theme="dark"] li,
[data-theme="dark"] label,
[data-theme="dark"] strong,
[data-theme="dark"] span {
    color: #fff !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode a,
body.dark-mode li,
body.dark-mode label,
body.dark-mode strong,
body.dark-mode span {
    color: #fff !important;
}

[data-theme="dark"] section,
[data-theme="dark"] .card,
[data-theme="dark"] .section-hero,
[data-theme="dark"] .blog-article,
[data-theme="dark"] .services-list li,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .service-row,
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-detailed,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .parcours-container,
[data-theme="dark"] .hero-banner,
[data-theme="dark"] .project-info,
[data-theme="dark"] .creche-bloc,
[data-theme="dark"] .parcours-vision {
    background: #23243a !important;
    color: #fff !important;
}

[data-theme="dark"] .theme-switch .icon {
  color: var(--accent-color);
}

section,
.card,
.section-hero,
.blog-article,
.services-list li,
.accordion-item,
.contact-form {
    background: var(--card-bg) !important;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    color: var(--text-color);
}

body.dark-mode section,
body.dark-mode .card,
body.dark-mode .section-hero,
body.dark-mode .blog-article,
body.dark-mode .services-list li,
body.dark-mode .accordion-item,
body.dark-mode .contact-form,
body.dark-mode .service-card,
body.dark-mode .service-detailed,
body.dark-mode .timeline-item,
body.dark-mode .parcours-container,
body.dark-mode .hero-banner,
body.dark-mode .project-info,
body.dark-mode .creche-bloc,
body.dark-mode .parcours-vision {
    background: #23243a !important;
    color: #fff !important;
}

/* Styles spécifiques pour le mode sombre sur les gradients */
[data-theme="dark"] .hero-banner {
    background: linear-gradient(135deg, #23243a 0%, #2a2b47 100%) !important;
}

body.dark-mode .hero-banner {
    background: linear-gradient(135deg, #23243a 0%, #2a2b47 100%) !important;
}

[data-theme="dark"] .parcours-vision {
    background: linear-gradient(135deg, #2a2b47, #23243a) !important;
}

body.dark-mode .parcours-vision {
    background: linear-gradient(135deg, #2a2b47, #23243a) !important;
}

/* Bonus CSS pour une section blog chaleureuse */
.blog-article {
  padding: 1.5em;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  line-height: 1.7;
}

.blog-article ul {
  padding-left: 1.3em;
  list-style-type: '🦴 ';
}

/* Styles pour les galeries d'images */
.chiens-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  justify-content: center;
  margin: 2em 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  text-align: center;
  max-width: 100%;
}

.gallery-img {
  width: 100%;
  max-width: 200px;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.02);
}

.gallery-caption {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.5em;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

/* Styles pour les photos de services */
.services-horizontal {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin: 2em 0;
}

.service-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  padding: 1.5em;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.service-image {
  flex-shrink: 0;
}

.service-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-text {
  text-align: center;
  max-width: 600px;
}

.service-text h4 {
  color: var(--primary-color);
  margin-bottom: 1em;
}

.service-text ul {
  list-style: none;
  padding-left: 0;
  text-align: left;
  margin-top: 1em;
}

.service-text ul li::before {
  content: "";
  margin-right: 0.5em;
}

/* Section CTA assistance */
.cta-assistance {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 2em;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 2em 0;
}

.cta-assistance h4 {
  color: white;
  margin-bottom: 1em;
}

.cta-button.highlight {
  background-color: white;
  color: var(--primary-color);
  font-weight: bold;
}

.cta-button.highlight:hover {
  background-color: var(--secondary-color);
}

/* Responsive pour les services */
@media (min-width: 768px) {
  .service-row {
    flex-direction: row;
    text-align: left;
  }
  
  .service-text {
    text-align: left;
  }
  
  .chiens-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2em;
    margin: 1.5em 0;
    max-width: 100%;
  }
  
  .gallery-item {
    max-width: 100%;
  }
  
  .gallery-img {
    max-width: 180px;
    height: 140px;
  }
}

@media (max-width: 600px) {
  .service-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-img {
    max-width: 150px;
    height: 120px;
  }
  
  .chiens-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }
  
  .gallery-item {
    max-width: 160px;
  }
}

/* Style pour la photo de profil dans la présentation */
.photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 1em auto;
  display: block;
}

/* Style pour les images dans les articles de blog */
.blog-article img {
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  margin: 1em auto;
  display: block;
}

/* Style général pour toutes les images non classées dans les sections */
section img:not(.hero-img):not(.hero-img-large):not(.parcours-photo):not(.service-photo):not(.gallery-img):not(.img-chiens) {
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  margin: 1em auto;
  display: block;
}

/* Classes utilitaires pour la section crèche canine */
.creche-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.creche-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.creche-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.creche-service-card {
  background: #f8f9fb;
  border-left: 4px solid #4a90e2;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.creche-kpi-card {
  background: #e8f4ff;
  border-left: 4px solid #4a90e2;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

/* Responsive pour les classes crèche */
@media (max-width: 768px) {
  .creche-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .creche-grid-2, .creche-grid-3 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .creche-service-card {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .creche-grid-4 {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .creche-service-card {
    padding: 10px;
  }
  
  .creche-kpi-card {
    padding: 8px;
  }
}

/* Améliorations générales pour le mobile */
@media (max-width: 768px) {
  /* Scroll plus fluide */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Android : empêcher les problèmes de rendu */
  .side-nav {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    will-change: transform;
    contain: layout;
  }
  
  .side-nav.active {
    -webkit-transform: translateX(0) !important;
    transform: translateX(0) !important;
  }
  
  /* Forcer les couleurs sur Android */
  .side-nav ul {
    background: var(--secondary-color) !important;
  }
  
  .side-nav ul li {
    background: transparent !important;
  }
  
  /* Amélioration des zones tactiles */
  a, button, .cta-button, .menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Espacement des éléments interactifs */
  .side-nav ul li a {
    margin-bottom: 4px;
  }
  
  /* Amélioration des formulaires */
  input, textarea, select {
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: border-color 0.2s;
  }
  
  input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
  }
  
  /* Tables responsive */
  table {
    width: 100%;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
  
  /* Amélioration de la lisibilité */
  p, li {
    max-width: none; /* Permet aux textes de s'étendre sur mobile */
  }
  
  /* Marges pour éviter que le contenu touche les bords */
  .main-content {
    padding-left: 1.2em;
    padding-right: 1.2em;
  }
}

/* Correction spécifique pour la section projet crèche canine */
@media (max-width: 768px) {
  /* Conteneur principal de la section crèche */
  #chiens-content {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Tous les éléments enfants ne doivent pas dépasser */
  #chiens-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Grilles qui dépassent - forcer colonnes adaptées */
  #chiens-content [style*="grid-template-columns: repeat(4"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  /* Cartes services en 2 colonnes qui deviennent 1 colonne */
  #chiens-content [style*="grid-template-columns: repeat(2"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  /* Timeline en 3 colonnes qui devient 1 colonne */
  #chiens-content [style*="grid-template-columns: repeat(3"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  /* Conteneurs avec display flex qui posent problème */
  #chiens-content [style*="display:flex"] {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }
  
  /* Images dans les cartes services - taille fixe mobile */
  #chiens-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 60px !important;
  }
  
  /* Ajuster les paddings et marges */
  #chiens-content [style*="padding:"] {
    padding: 10px !important;
  }
  
  /* Listes en colonnes forcées en 1 colonne */
  #chiens-content [style*="columns:"] {
    columns: 1 !important;
    column-gap: 0 !important;
  }
}

@media (max-width: 480px) {
  /* Sur très petits écrans, forcer tous les éléments en une colonne */
  #chiens-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  /* Colonnes CSS pour les listes tarifaires */
  #chiens-content [style*="columns:2"] {
    columns: 1 !important;
    column-gap: 0 !important;
  }
  
  /* Forcer tous les divs avec styles inline à ne pas dépasser */
  #chiens-content div[style] {
    max-width: 100% !important;
    padding: 8px !important;
    margin: 0 !important;
  }
  
  /* Ajuster spécifiquement les cartes avec des images */
  #chiens-content div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  
  /* Images dans les cartes - plus petites sur mobile */
  #chiens-content div[style*="display:flex"] img {
    width: 80px !important;
    height: 50px !important;
    object-fit: cover !important;
    margin-bottom: 8px !important;
  }
}

/* Améliorations spécifiques très petits écrans */
@media (max-width: 360px) {
  .main-content {
    padding-left: 0.8em;
    padding-right: 0.8em;
  }
  
  section {
    padding: 1em;
  }
  
  .cta-button {
    font-size: 14px;
    padding: 12px 16px;
  }
  
  .side-nav {
    width: 90vw;
  }
  
  /* Forcer une marge de sécurité pour tout contenu qui dépasse */
  #chiens-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Empêcher les éléments de dépasser du viewport */
  * {
    max-width: 100vw !important;
  }
  
  /* Forcer tout conteneur à respecter la largeur d'écran */
  .main-content * {
    max-width: calc(100vw - 1.6em) !important;
  }
}