--- START OF FILE chat.css ---

/* === CSS Reset (Simple) === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Merriweather Regular */
@font-face {
  font-family: 'Merriweather';
  src: url('/Fonts/Merriweather/Merriweather-v33-Regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Merriweather Bold */
@font-face {
  font-family: 'Merriweather';
  src: url('/Fonts/Merriweather/Merriweather-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Utilisation */
h1, h2, h3 {
  font-family: 'Merriweather', serif;
}


/* === CSS Variables Modernisées === */
:root {
    /* Palette Chats Douce & Chaleureuse */
    --primary-color: #7E6C63; /* Gris-brun chaud (pelage) */
    --secondary-color: #B8A89A; /* Beige doux (pelage plus clair) */
    --link-color: #6B5C55;     /* Brun foncé pour les liens */
    --accent-color: #E2B060;   /* Ambre doré (yeux de chat) */
    --warm-accent: #F2DDC5;    /* Crème clair (ventre, coussinets) */
    --text-color: #3F3C3B;     /* Brun charbon (texte principal) */
    --text-light: #6E6A69;     /* Gris moyen chaud */
    --background-color: #FCF9F7; /* Fond très clair, presque blanc chaud */
    --light-bg: #F9F4F0;       /* Fond plus clair, crème */
    --card-bg: #FFFFFF;        /* Fond des cartes blanc */
    --border-color: #E8E2DE;   /* Bordure douce et claire */
    --shadow-light: rgba(126, 108, 99, 0.08); /* Ombre légère basée sur la couleur primaire */
    --shadow-medium: rgba(126, 108, 99, 0.15);
    --gradient-primary: linear-gradient(135deg, #7E6C63 0%, #B8A89A 100%); /* Dégradé pour éléments principaux */
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #F9F4F0 100%); /* Dégradé pour cartes */
    
    /* Footer */
    --footer-bg: linear-gradient(135deg, #574B45 0%, #7E6C63 100%); /* Fond de pied de page plus foncé */
    --footer-text: #FCF9F7;    /* Texte du pied de page clair */
    --footer-link: #E2B060;    /* Liens du pied de page en couleur accent */

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; /* Conserve Inter pour la lisibilité */
    --font-display: 'Playfair Display', Georgia, serif; /* Conserve Playfair Display pour les titres */
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Rayons */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-max-width: 1200px;
}

/* === Typographie Moderne === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--background-color);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hiérarchie typographique améliorée */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
}

h2 { 
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    padding-bottom: var(--space-sm);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }

p {
    margin-bottom: var(--space-md);
    max-width: 75ch;
}

/* Liens améliorés - Règle globale */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

a:hover, a:focus {
    color: var(--secondary-color);
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}




.content-section a,
.intro-area a,
.categories-overview .read-more-link {
    color: var(--link-color) !important;
    text-decoration: none;
    /* Adaptez le fond et la bordure pour le thème chat */
    background-color: rgba(184, 168, 154, 0.1); /* Beige doux semi-transparent */
    border-bottom: 2px solid rgba(110, 106, 105, 0.4); /* Gris moyen chaud semi-transparent */
    
    padding: 0.1em 0.4em;
    margin: -0.1em -0.4em;
    border-radius: var(--radius-sm);

    transition: color 0.2s ease, background-color 0.2s ease, border-bottom-color 0.2s ease;
}

/* On groupe également les états de survol et de focus */
.content-section a:hover,
.content-section a:focus-visible,
.intro-area a:hover,
.intro-area a:focus-visible,
.categories-overview .read-more-link:hover,
.categories-overview .read-more-link:focus-visible {
    background-color: rgba(184, 168, 154, 0.2);
    color: var(--secondary-color) !important;
    border-bottom-color: var(--secondary-color);
}

.highlight-term {
    font-size: 1.4em;
    color: var(--accent-color); /* Utilise la couleur accent ambre doré */
}

/* --- Style "Éditorial Chic" pour la zone d'introduction --- */
.intro-area {
    font-family: var(--font-primary); /* Utilise la police primaire */
    background: var(--card-bg); /* Utilise le fond de carte */
    border: 1px solid var(--border-color); /* Utilise la couleur de bordure */
    box-shadow: 0 5px 25px var(--shadow-light); /* Utilise l'ombre légère */
    padding: 40px 50px;
    margin: 50px auto;
    max-width: 800px;
    border-radius: var(--radius-sm); /* Utilise le rayon de bordure */
    position: relative;
    overflow: hidden;
}

.intro-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background-color: var(--accent-color); /* Utilise la couleur accent pour la barre */
}

.intro-area h2 {
    font-family: var(--font-display); /* Utilise la police d'affichage */
    font-size: 2.6em;
    color: var(--text-color); /* Utilise la couleur de texte principale */
    text-align: left;
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none;
}

.intro-area p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-light); /* Utilise la couleur de texte clair */
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.intro-area p::first-letter {
    color: var(--accent-color); /* Utilise la couleur accent pour la lettrine */
    font-family: var(--font-display); /* Utilise la police d'affichage */
    font-weight: bold;
    font-size: 5.5em;
    float: left;
    line-height: 0.8;
    padding-right: 15px;
    padding-bottom: 5px;
}

.categories-overview .read-more-link {
    display: inline-block; 
    margin-bottom: 30px;
}

/* Images responsives avec style */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Default image styles, can be overridden by more specific rules */
    border-radius: var(--radius-md); 
    transition: var(--transition-smooth);
}

/* MODIFIEZ OU AJOUTEZ CE BLOC CSS */
figure {
    margin-bottom: var(--space-lg); /* Garde la marge entre les figures */
    position: relative; /* Nécessaire pour la transformation */
    overflow: hidden;
    /* Removed default border-radius and box-shadow from general figure, will apply to img */
    padding: 0; /* Assure l'absence de padding interne sur toutes les figures par défaut */
    line-height: 0; /* Important pour éviter les espaces verticaux des éléments inline/inline-block */
}

/* Cible spécifique pour la figure de l'article */
.main-species-image { /* Targeted this class as per HTML */
    width: 100%; /* Make it fill the container's width */
    max-width: 100%; /* Ensure it doesn't exceed the parent's width */
    margin: 0 auto var(--space-md); /* Center the figure and add a bottom margin for the caption */
    padding: 0;
    text-align: center;
    line-height: 0; /* Remove extra space below the image */
    box-shadow: none; /* Remove box shadow from the figure itself */
    border-radius: 0; /* Remove border radius from the figure itself */
}

/* Cible l'élément d'ancre (<a>) à l'intérieur de la figure */
.main-species-image a {
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
}

/* Cible l'image (<img>) à l'intérieur de la figure */
.main-species-image img {
    display: block;
    max-width: 100%; /* Ensure image always fits its container */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center the image */
    padding: 0;
    vertical-align: top;
    border-radius: var(--radius-md); /* Apply border-radius from CSS variable */
    box-shadow: 0 10px 30px var(--shadow-light); /* Apply box-shadow from CSS variable */
}

/* Cible spécifiquement la figcaption à l'intérieur de .main-species-image */
.main-species-image figcaption {
    margin-top: var(--space-sm); /* Add a top margin to separate it from the image */
    margin-bottom: 0;
    padding: 0;
    line-height: 1.5; /* Improve readability */
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center; /* Ensure caption is centered */
}

figcaption {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--space-sm);
    font-style: italic;
}

figure {
    margin-bottom: var(--space-lg); /* Garde la marge entre les figures */
    position: relative; /* Nécessaire pour la transformation */
    overflow: hidden;
    border-radius: var(--radius-lg); /* Applique un rayon par défaut pour les figures */
    box-shadow: 0 10px 30px var(--shadow-light); /* Applique une ombre par défaut pour les figures */
    padding: 0; /* Assure l'absence de padding interne sur toutes les figures par défaut */
    line-height: 0; /* Important pour éviter les espaces verticaux des éléments inline/inline-block */
}

/* Cible spécifique pour la figure de l'article */
.in-article-image {
    width: 100%; /* L'image remplit totalement la largeur du conteneur parent */
    max-width: 100%; /* Assure qu'elle ne dépasse pas la largeur du conteneur */
    margin: var(--space-md) auto; /* Centre la figure et ajoute une marge verticale */
    padding: 0;
    text-align: center; /* Centre le contenu textuel et l'image */
    line-height: normal; /* Permet à la légende d'avoir une hauteur de ligne normale */
    
    /* Supprime les transformations et transitions spécifiques à la figure si elles ne sont pas nécessaires pour ce cas */
    transform: none;
    transition: none;
    
    /* Annule les styles d'ombre et de bordure par défaut de la figure générale si vous voulez les appliquer directement à l'image */
    box-shadow: none;
    border-radius: 0;
}

/* Cible l'élément d'ancre (<a>) à l'intérieur de la figure */
.in-article-image a {
    display: block; /* S'assure que l'ancre remplit l'espace de l'image */
    line-height: 0; /* Aide à supprimer l'espace sous l'image */
    margin: 0;
    padding: 0;
}

/* Cible l'image (<img>) à l'intérieur de la figure */
.in-article-image img {
    display: block; /* Évite l'espace supplémentaire en bas de l'image */
    max-width: 100%;
    height: auto;
    margin: 0 auto; /* Centre l'image horizontalement */
    padding: 0;
    vertical-align: top; /* Évite les problèmes d'alignement */
    
    /* Appliquez ici les styles visuels que vous souhaitez pour l'image */
    border-radius: var(--radius-md); /* Rayon de bordure plus doux */
    box-shadow: 0 8px 20px var(--shadow-light); /* Ombre subtile pour l'image */
}

/* Cible spécifiquement la figcaption à l'intérieur de .in-article-image */
.in-article-image figcaption {
    margin-top: var(--space-sm); /* Ajoute de l'espace entre l'image et sa légende */
    margin-bottom: 0;
    padding: 0;
    line-height: 1.5; /* Améliore la lisibilité de la légende */
    font-size: 0.9rem; /* Taille de police cohérente */
    color: var(--text-light); /* Couleur de texte plus douce */
    font-style: italic;
    text-align: center; /* Centre la légende */
}

/* === Header Moderne === */
.site-header {
    background: var(--gradient-primary);
    padding: var(--space-md) 0;
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Nouveau motif de patte de chat */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pawprint" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 2c-3 0-5 2-5 5s2 5 5 5 5-2 5-5-2-5-5-5zM7 10.5c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1zM13 10.5c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1zM5 14c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1zM15 14c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1z" fill="rgba(255,255,255,0.1)" transform="rotate(30 10 10)"/></pattern></defs><rect width="100" height="100" fill="url(%23pawprint)"/></svg>') center/100px; /* Taille réduite pour les pattes */
    opacity: 0.5; /* Légèrement plus visible */
}

.header-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-container .site-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--footer-text); /* Couleur claire pour le texte sur fond foncé */
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.logo-container .site-title:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Navigation moderne */
.main-navigation ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: var(--space-sm);
}

.main-navigation a {
    color: var(--footer-text); /* Couleur claire pour les liens sur fond foncé */
    font-weight: 500;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-lg);
    background: rgba(252, 249, 247, 0.1); /* Utilise background-color semi-transparent */
    backdrop-filter: blur(5px); /* Diminue le blur pour une meilleure lisibilité */
    border: 1px solid rgba(252, 249, 247, 0.2); /* Utilise background-color semi-transparent */
    transition: var(--transition-smooth);
}

.main-navigation a:hover, .main-navigation a:focus {
    background: rgba(252, 249, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-menu-toggle {
    display: none; /* Caché sur grand écran */
}

/* --- Style pour le menu déroulant --- */
.main-navigation .dropdown {
  position: relative;
  display: inline-block;
}

.main-navigation .dropbtn {
  padding: 15px;
  color: var(--footer-text); /* Texte clair */
  text-decoration: none;
  cursor: pointer;
}

.main-navigation .dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card-bg); /* Fond de carte blanc */
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: var(--radius-sm);
}

.main-navigation .dropdown-content a {
  color: var(--text-color); /* Couleur de texte principale */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.main-navigation .dropdown-content a:hover {
  background-color: var(--light-bg); /* Fond clair au survol */
}

.main-navigation .dropdown:hover .dropdown-content {
  display: block;
}


/* === Barre de recherche === */
.search-container {
    position: relative;
    margin: 0 var(--space-md);
    flex-grow: 1;
    max-width: 450px;
}

#search-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid transparent;
    background-color: rgba(252, 249, 247, 0.2); /* Utilise background-color semi-transparent */
    color: var(--footer-text); /* Couleur claire pour le texte */
    outline: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

#search-input::placeholder {
    color: rgba(252, 249, 247, 0.7); /* Placeholder clair */
}

#search-input:focus {
    background-color: rgba(252, 249, 247, 0.3);
    box-shadow: 0 0 0 3px rgba(252, 249, 247, 0.3);
}

/* === Liste des résultats de recherche === */
#search-results {
    display: none;
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px var(--shadow-light);
    z-index: 2000;
    max-height: 300px;
    overflow-y: auto;
}

#search-results a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

#search-results a:last-child {
    border-bottom: none;
}

#search-results a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* === Layout Principal === */
.site-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-xl);
    max-width: var(--container-max-width);
    margin: var(--space-xl) auto;
    padding: 0 var(--space-md);
}

.main-content {
    min-width: 0;
}

/* === Breadcrumb Stylisé === */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-color);
}

.breadcrumb a {
    color: var(--primary-color);
    font-weight: 500;
}

/* === Table des Matières Moderne === */
.page-toc {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.page-toc::before {
    content: '🐾'; /* Emoji de patte de chat */
    font-size: 1.5rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.page-toc .toc-title {
    font-size: 1.25rem;
    margin: 0 0 var(--space-md) 0;
    color: var(--text-color);
    font-weight: 600;
}

.page-toc ul {
    list-style: none;
    padding: 0;
}

.page-toc li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--primary-color);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.page-toc li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.page-toc li a:hover {
    background: rgba(126, 108, 99, 0.05); /* Utilise primary-color semi-transparent */
    transform: translateX(5px);
}

.page-toc li a:hover::before {
    transform: scaleY(1);
}

/* === Sections de Contenu === */
.content-section {
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    background: var(--gradient-card);
    box-shadow: 0 10px 40px var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-medium);
}

/* === Tableaux Modernes === */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: 1rem;
    text-align: left;
    box-shadow: 0 8px 25px var(--shadow-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table thead tr {
    background: var(--gradient-primary);
    color: var(--footer-text); /* Texte clair sur fond foncé */
    font-weight: 600;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md) var(--space-lg);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.comparison-table tbody tr:last-of-type {
    border-bottom: none;
}

.comparison-table tbody tr:nth-of-type(even) {
    background-color: var(--light-bg);
}

.comparison-table tbody tr:hover {
    background-color: #F0EADF; /* Un beige doux au survol */
    transform: scale(1.02);
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================= */
/*   TABLEAU THÈME CHAT          */
/* ============================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
  background-color: var(--card-bg); /* Fond de carte */
  border-radius: var(--radius-md); /* Rayon de bordure moyen */
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-light); /* Ombre légère */
}

.data-table thead {
  background-color: var(--primary-color); /* Couleur primaire pour l'en-tête */
  color: var(--footer-text); /* Texte clair */
  text-align: left;
}

.data-table th, 
.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color); /* Bordure douce */
}

.data-table tbody tr:hover {
  background-color: var(--light-bg); /* Fond clair au survol */
}

.data-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.data-table td {
  color: var(--text-color); /* Couleur de texte principale */
}

/* Styles pour l'encart de promotion des observations */
.observation-promo-box {
    background-color: var(--light-bg); /* Un fond très léger pour le différencier */
    border: 1px solid var(--border-color); /* Bordure subtile */
    border-radius: var(--radius-md); /* Coins arrondis */
    padding: 25px; /* Espace intérieur */
    margin-bottom: 25px; /* Espace sous l'encart */
    text-align: center; /* Centrer le contenu */
    box-shadow: 0 4px 10px var(--shadow-light); /* Légère ombre pour le faire "flotter" */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation au survol */
}

.observation-promo-box:hover {
    transform: translateY(-3px); /* Effet léger de survol */
    box-shadow: 0 6px 15px var(--shadow-medium); /* Ombre plus prononcée au survol */
}

.observation-promo-box h3 {
    font-family: var(--font-display); /* Utilisez votre police de titre */
    color: var(--primary-color); /* Couleur primaire */
    font-size: 1.8em; /* Taille du titre */
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.observation-promo-box p {
    font-family: var(--font-primary); /* Utilisez votre police de corps de texte */
    color: var(--text-light); /* Couleur de texte plus douce */
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Style spécifique pour le petit texte d'inscription */
.observation-promo-box .small-text {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 15px;
}

.observation-promo-box .small-text a {
    color: var(--link-color); /* Couleur de lien principale */
    text-decoration: none;
    font-weight: bold;
}

.observation-promo-box .small-text a:hover {
    text-decoration: underline;
}

/* Style pour le bouton "Partager mon observation" */
.btn-share-observation {
    display: inline-block; /* Pour que les padding et margin fonctionnent bien */
    background-color: var(--accent-color); /* Couleur accent */
    color: var(--footer-text); /* Texte clair */
    padding: 14px 28px; /* Grand padding pour un bouton facile à cliquer */
    border: none;
    border-radius: var(--radius-sm); /* Coins légèrement arrondis */
    font-family: var(--font-primary);
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none; /* Pas de soulignement */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animation au survol */
    box-shadow: 0 3px 6px rgba(226, 176, 96, 0.3); /* Ombre pour le bouton basée sur accent-color */
}

.btn-share-observation:hover {
    background-color: #D4A574; /* Une nuance plus foncée de l'accent pour le survol */
    transform: translateY(-2px); /* Effet de légère élévation */
    box-shadow: 0 5px 10px rgba(226, 176, 96, 0.4);
}

/* Styles Responsives (ajustements pour les petits écrans) */
@media (max-width: 768px) {
    .observation-promo-box {
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .observation-promo-box h3 {
        font-size: 1.5em;
    }

    .observation-promo-box p {
        font-size: 1em;
    }

    .btn-share-observation {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Table responsive sur mobile */
@media screen and (max-width: 768px) {
  .data-table thead {
    display: none;
  }

  .data-table, 
  .data-table tbody, 
  .data-table tr, 
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 15px;
    border: 1px solid var(--border-color); /* Bordure douce */
    border-radius: var(--radius-md); /* Rayon moyen */
    overflow: hidden;
    box-shadow: 0 1px 4px var(--shadow-light); /* Ombre légère */
  }

  .data-table td {
    padding: 10px 12px;
    text-align: right;
    position: relative;
  }

  .data-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-light); /* Texte clair */
    text-align: left;
  }
}
/* ====================================================== */
/* Styles spécifiques pour les badges dans les obs-card   */
/* ====================================================== */
.obs-card .obs-card-meta {
    display: flex; /* Permet d'aligner pseudo/date et badges sur la même ligne */
    align-items: center; /* Centre verticalement les éléments */
    gap: 10px; /* Espace entre les éléments */
    flex-wrap: wrap; /* Si beaucoup de badges, ils peuvent passer à la ligne */
    padding: 10px 15px; /* Re-applique le padding original de p:first-of-type */
    border-bottom: 1px solid var(--border-color); /* Garde la séparation */
    margin-bottom: 8px; /* Garde l'espacement */
}

.obs-card .obs-card-meta strong {
    flex-shrink: 0; /* Empêche le pseudo de rétrécir si beaucoup de badges */
}

.obs-card .obs-badges-container {
    display: flex;
    gap: 5px; /* Espace entre les badges */
    margin-left: auto; /* Pousse les badges vers la droite */
}

.obs-card .obs-badge {
    width: 24px;   /* Petite taille pour les badges */
    height: 24px;
    object-fit: contain; /* S'assure que l'image tient bien dans son cadre */
    vertical-align: middle; /* Aligne avec le texte */
    border-radius: 50%; /* Si vous voulez des badges ronds */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Petite ombre pour les faire ressortir */
}


/* === Cartes d'Espèces de Chat (Anciennement "Oiseaux") Modernisées === */
.conteneur-mesanges ul li { /* Renommez si ce conteneur a un sens pour les chats */
    margin-bottom: 10px; /* Vous pouvez ajuster cette valeur */
}

.cat-breed-grid { /* Renommé de bird-grid */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.cat-breed-card { /* Renommé de bird-card */
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 50px var(--shadow-light);
    background: var(--gradient-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-slow);
    position: relative;
    flex: 0 1 500px;
}

.cat-breed-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--gradient-primary); opacity: 0; transition: var(--transition-smooth); z-index: 1; }
.cat-breed-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 25px 80px var(--shadow-medium); }
.cat-breed-card:hover::before { opacity: 0.03; }

.cat-breed-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.cat-breed-card h3 {
    padding: var(--space-lg) var(--space-xl) 0;
    margin: 0 0 var(--space-md) 0;
    font-size: 1.75rem;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.cat-breed-card p,
.cat-breed-card ul {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    position: relative;
    z-index: 2;
}

.cat-breed-card p {
    flex-grow: 1;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0 0 var(--space-lg) 0;
    padding-bottom: 0;
}

.cat-breed-card ul {
    margin-bottom: 0;
    padding-bottom: var(--space-xl);
}

.cat-breed-card-link { /* Renommé de bird-card-link */
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gradient-primary);
    color: var(--footer-text) !important; /* Texte clair sur fond foncé */
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--shadow-medium);
    margin: 0 var(--space-xl) var(--space-xl);
    align-self: flex-start;
}

.cat-breed-card-link::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s; }
.cat-breed-card-link:hover::before { left: 100%; }
.cat-breed-card-link:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--shadow-medium); }
.cat-breed-card-link::after { content: '→'; transition: var(--transition-smooth); }
.cat-breed-card-link:hover::after { transform: translateX(5px); }

/* === Lecteur Audio Personnalisé === */
.custom-audio-player {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-light);
    overflow: hidden;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.custom-audio-player button {
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: 50%;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px var(--shadow-light);
    flex-shrink: 0;
}

.custom-audio-player button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.custom-audio-player svg {
    width: 24px;
    height: 24px;
    fill: var(--footer-text); /* Couleur claire pour l'icône */
}

.progress-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-grow: 1;
    min-width: 150px;
}

.progress-bar {
    width: 100%;
    cursor: pointer;
}

.time-display {
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.volume-slider {
    width: 80px;
    cursor: pointer;
    transition: width 0.3s ease;
}

/* === Section "Espèces Similaires" === */
#similar-species h2 {
   margin-bottom: 2rem;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}



.species-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px var(--shadow-light);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.species-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium); /* Utilise shadow-medium au survol */
}

.species-card figure {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.species-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.species-card .card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.species-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.species-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light); /* Utilise text-light */
    margin-bottom: 20px;
    flex-grow: 1;
}

.species-card .card-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--footer-text); /* Texte clair sur le bouton */
    padding: 12px 25px;
    border-radius: var(--radius-sm); /* Utilise radius-sm */
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-primary);
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.species-card .card-button:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
    transform: scale(1.05);
}

/* === Boîtes d'Information === */
.expert-box {
    margin: var(--space-xl) 0;
    padding: var(--space-xl);
    background: linear-gradient(135deg, #F9F4F0 0%, #FCF9F7 100%); /* Fond clair, crème */
    border-left: 5px solid var(--primary-color); /* Couleur primaire pour la bordure */
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px var(--shadow-light); /* Utilise shadow-light */
    position: relative;
}

.expert-box::before {
    content: '😻'; /* Emoji de chat mignon */
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 2rem;
    opacity: 0.3;
}

.expert-tip {
    background: linear-gradient(135deg, #F9F4F0 0%, #FCF9F7 100%); /* Fond clair, crème */
    border-left: 5px solid var(--accent-color); /* Couleur accent pour la bordure */
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    box-shadow: 0 8px 30px var(--shadow-light); /* Utilise shadow-light */
    position: relative;
}

.expert-tip::before {
    content: '🐱'; /* Emoji de chat */
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 1.5rem;
}

/* === Formulaire Newsletter === */
.newsletter-box-article {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
    text-align: center;
    box-shadow: 0 15px 50px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.newsletter-box-article::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.05;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 2;
}

.newsletter-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.sib-form-area {
    display: flex;
    gap: var(--space-md);
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.email-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    background: var(--card-bg); /* Fond de carte blanc */
    color: var(--text-color); /* Couleur de texte */
}

.email-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(126, 108, 99, 0.1); /* Utilise primary-color semi-transparent */
    outline: none;
}

.submit-btn {
    background: var(--gradient-primary);
    color: var(--footer-text); /* Texte clair */
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

/* === Sidebar === */
.sidebar {
    width: 350px;
    flex-shrink: 0;
}

.ads-block {
    padding: 0;
    overflow: hidden;
}

.ads-block, .relevant-links {
    background-color: var(--light-bg);
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.relevant-links {
    padding: var(--space-md);
}

/*
==============================================
Feuille de style pour la section FAQ (Thème Chat)
==============================================
*/

/* Assurez-vous que vos variables sont définies en haut de votre CSS */
:root {
    --primary-color: #7E6C63;    /* Gris-brun chaud (pelage) */
    --secondary-color: #B8A89A;  /* Beige doux (pelage plus clair) */
    --link-color: #6B5C55;	    /* Brun foncé pour les liens */
    --text-light: #6E6A69;    /* Gris moyen chaud */
    --light-bg: #F9F4F0;        /* Fond plus clair, crème */
    --border-color: #E8E2DE;
    --shadow-light: rgba(126, 108, 99, 0.08);
}

/* Conteneur principal de la FAQ */
.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 25px 30px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md); /* Utilise radius-md */
    box-shadow: 0 4px 12px var(--shadow-light);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8em;
}

/* Style pour chaque bloc question/réponse */
.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

/* Style pour le bouton de la question */
.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--link-color);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.faq-question:hover {
    color: var(--secondary-color);
}

/* Indicateur "+" (ou flèche) */
.faq-question::after {
    content: '+';
    font-size: 1.6em;
    font-weight: 300;
    color: var(--secondary-color);
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Rotation de l'indicateur lorsque la question est ouverte */
.faq-question[aria-expanded="true"]::after {
    content: '−';
    color: var(--primary-color);
}

/* Conteneur de la réponse */
.faq-answer {
    overflow: hidden;
    max-height: 0;
    padding-top: 0; /* Important pour l'état initial */
    padding-bottom: 0; /* Important pour l'état initial */
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
    /* L'espacement (padding) sera géré par le JavaScript pour que la transition fonctionne */
}

/* ====================================================== */
/* Styles pour la Section d'Observations (#observations)  */
/* ====================================================== */
#observations {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color); /* Une fine ligne pour séparer du contenu précédent */
}

#observations h2 {
    font-family: var(--font-display);
    color: var(--primary-color);
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
}

/* ====================================================== */
/* Styles pour le Formulaire d'Observation                */
/* (chargé dans #observation-form-container)              */
/* ====================================================== */
.observation-form {
    background-color: var(--card-bg); /* Fond très clair pour le formulaire */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    margin: 0 auto 40px auto; /* Centrer et espacer en dessous */
    max-width: 600px; /* Largeur maximale pour le formulaire */
    box-shadow: 0 5px 15px var(--shadow-light); /* Ombre plus prononcée pour l'importance */
}

.observation-form label {
    display: block; /* Chaque label sur sa propre ligne */
    font-family: var(--font-primary);
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    margin-top: 15px; /* Espacement entre les champs */
}

.observation-form input[type="text"],
.observation-form input[type="email"], /* Au cas où vous ajouteriez l'email */
.observation-form input[type="file"],
.observation-form textarea {
    width: calc(100% - 20px); /* Prend presque toute la largeur avec padding */
    padding: 12px 10px;
    border: 1px solid var(--border-color); /* Bordure douce */
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1em;
    margin-bottom: 15px;
    box-sizing: border-box; /* Inclut padding et border dans la largeur */
    color: var(--text-color); /* Couleur de texte */
    background-color: var(--card-bg); /* Fond clair */
}

.observation-form textarea {
    resize: vertical; /* Permet de redimensionner verticalement */
    min-height: 80px;
}

.observation-form input[type="file"] {
    padding: 8px 10px; /* Ajuster le padding pour les inputs file */
    /* Le style des input file est difficile à contrôler, on peut le masquer et le styliser avec un label si besoin */
}

/* Style pour le bouton de soumission */
.observation-form button[type="submit"] {
    display: block; /* Bouton sur sa propre ligne */
    width: 100%; /* Prend toute la largeur du formulaire */
    padding: 15px 20px;
    background-color: var(--accent-color); /* Couleur accent */
    color: var(--footer-text); /* Texte blanc */
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none; /* Pas de soulignement */
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(226, 176, 96, 0.3); /* Ombre basée sur accent-color */
}

.observation-form button[type="submit"]:hover {
    background-color: #D4A574; /* Nuance plus foncée de l'accent */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(226, 176, 96, 0.4);
}

/* Style pour les messages de feedback du formulaire (succès/erreur) */
.observation-form .form-message {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: bold;
}
.observation-form .form-message[style*="color: green"] {
    background-color: #E6F2EA; /* Vert très clair */
    border: 1px solid #B8A89A; /* Bordure secondaire */
    color: var(--primary-color); /* Texte primaire */
}
.observation-form .form-message[style*="color: red"] {
    background-color: #F2E6E2; /* Rouge très clair */
    border: 1px solid #E2B060; /* Bordure accent */
    color: #6B5C55; /* Texte lien foncé */
}
.observation-form .form-message[style*="color: rgb(0, 123, 255)"] { /* Couleur pour "Envoi en cours..." */
    background-color: #EAF2F9;
    border: 1px solid #A8B8C5;
    color: var(--text-light);
}

/* ====================================================== */
/* Styles pour la Grille des Observations (obs-card)      */
/* ====================================================== */
#observation-list-container h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
    font-size: 1.8em;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.observations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 3 colonnes flexibles */
    gap: 30px; /* Espacement entre les cartes */
    padding: 0 20px; /* Un peu de padding sur les côtés */
    max-width: var(--container-max-width); /* Largeur maximale de la grille */
    margin: 0 auto;
}

.obs-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden; /* Pour que l'image ne dépasse pas */
    box-shadow: 0 4px 12px var(--shadow-light); /* Ombre douce */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column; /* Contenu vertical */
}

.obs-card:hover {
    transform: translateY(-5px); /* Effet d'élévation au survol */
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.obs-card img {
    width: 100%;
    height: 200px; /* Hauteur fixe pour les images */
    object-fit: cover; /* Recadre l'image pour qu'elle remplisse l'espace */
    border-bottom: 1px solid var(--border-color);
}

.obs-card p {
    font-family: var(--font-primary);
    color: var(--text-light);
    font-size: 0.95em;
    padding: 10px 15px;
    margin: 0;
    line-height: 1.5;
}

.obs-card p:first-of-type { /* Pseudo et date */
    font-size: 0.9em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.obs-card strong {
    color: var(--text-color);
}

/* Styles pour le lien "créer un compte" dans le formulaire */
.observation-form .small-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--text-light);
}
.observation-form .small-text a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}
.observation-form .small-text a:hover {
    text-decoration: underline;
}

/* ====================================================== */
/* Styles Responsives pour la section d'observations      */
/* ====================================================== */
@media (max-width: 992px) {
    .observations-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Moins de colonnes sur tablette */
        gap: 20px;
    }
    .observation-form {
        max-width: 500px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    #observations h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .observation-form {
        max-width: 90%; /* Prend plus de largeur sur mobile */
        padding: 20px;
        margin-bottom: 30px;
    }
    .observations-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 20px;
        padding: 0 15px;
    }
    .obs-card img {
        height: 180px;
    }
}

/* === Footer Moderne === */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--space-2xl) var(--space-md);
    margin-top: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Nouveau motif de patte de chat */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pawprint-footer" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 2c-3 0-5 2-5 5s2 5 5 5 5-2 5-5-2-5-5-5zM7 10.5c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1zM13 10.5c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1zM5 14c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1zM15 14c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1z" fill="rgba(255,255,255,0.1)" transform="rotate(30 10 10)"/></pattern></defs><rect width="100" height="100" fill="url(%23pawprint-footer)"/></svg>') center/100px;
    opacity: 0.3;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    max-width: var(--container-max-width);
    margin: 0 auto var(--space-2xl);
    position: relative;
    z-index: 2;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--footer-text); /* Couleur claire pour les titres de footer */
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li a {
    color: var(--footer-link);
    padding: var(--space-xs) 0;
    display: inline-block;
    transition: var(--transition-smooth);
}

.footer-column li a:hover {
    color: var(--footer-text); /* Blanc au survol */
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(252, 249, 247, 0.1); /* Bordure basée sur footer-text */
    color: var(--footer-link);
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* === Bouton Retour en Haut === */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    background: var(--gradient-primary);
    color: var(--footer-text); /* Texte clair */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

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

.content-section, .species-card, .page-toc {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}



/* === Responsive Design === */
@media (max-width: 1024px) {
    .site-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .sidebar {
        width: 100%;
    }
    .page-toc {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xs: 0.4rem;
        --space-sm: 0.8rem;
        --space-md: 1.2rem;
        --space-lg: 1.6rem;
        --space-xl: 2.2rem;
        --space-2xl: 3rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo-container {
        flex-basis: 80%;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin-top: var(--space-md);
        max-width: none;
    }

    .main-navigation {
        display: none;
        order: 2;
        width: 100%;
        background: var(--primary-color);
        margin-top: var(--space-md);
        border-radius: var(--radius-md);
        padding: var(--space-sm);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .main-navigation li a {
        display: block;
        text-align: center;
        padding: var(--space-md);
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--footer-text); /* Texte clair */
        font-size: 2rem;
        cursor: pointer;
    }
    
    .sib-form-area {
        flex-direction: column;
    }
    
    .species-card {
        width: 95%;
    }
    
    .content-section {
        padding: var(--space-lg);
    }
}

@media (max-width: 500px) {
    .player-controls {
        row-gap: var(--space-sm);
    }
    
    .progress-container {
        flex-basis: 100%;
        order: 2;
    }
    
    .play-pause-btn {
        order: 1;
    }
    
    .volume-control {
        order: 1;
        margin-left: auto;
    }

    .volume-slider {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .species-card img {
        height: 250px;
    }
    
    .newsletter-box-article {
        padding: var(--space-lg);
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* === Mode sombre (bonus) === */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #A89B95; /* Gris-brun chaud plus clair pour le mode sombre */
        --secondary-color: #D4C9BF; /* Beige doux plus clair */
        --link-color: #D4C9BF; /* Liens clairs */
        --accent-color: #F7E0AD; /* Ambre doré plus vif */
        --warm-accent: #FFF2E8; /* Crème clair */
        --text-color: #E2E8F0; /* Blanc cassé pour le texte */
        --text-light: #A0AEC0; /* Gris clair */
        --background-color: #1A1A1A; /* Fond très sombre */
        --light-bg: #222222; /* Fond clair sombre */
        --card-bg: #2C2C2C; /* Fond de carte sombre */
        --border-color: #444444; /* Bordure sombre */
        --shadow-light: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.5);
        --gradient-primary: linear-gradient(135deg, #574B45 0%, #7E6C63 100%); /* Dégradé primaire plus foncé */
        --gradient-card: linear-gradient(145deg, #2C2C2C 0%, #353535 100%); /* Dégradé de carte sombre */
        
        --footer-bg: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%); /* Fond de pied de page sombre */
        --footer-text: #E2E8F0;
        --footer-link: #F7E0AD; /* Liens de pied de page accentués */
    }

    .comparison-table tbody tr:hover {
        background-color: #383838;
    }

    .data-table thead {
        background-color: var(--primary-color);
        color: var(--text-color);
    }
    .data-table td {
        color: var(--text-color);
    }
    .data-table tr {
        border: 1px solid var(--border-color);
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }
    .data-table td::before {
        color: var(--text-light);
    }
    .main-navigation a {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-navigation a:hover, .main-navigation a:focus {
        background: rgba(255, 255, 255, 0.1);
    }
    .site-header::before, .site-footer::before {
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pawprint-dark" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 2c-3 0-5 2-5 5s2 5 5 5 5-2 5-5-2-5-5-5zM7 10.5c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1zM13 10.5c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1zM5 14c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1zM15 14c-1 0-1.5.5-1.5 1s.5 1 1.5 1 1.5-.5 1.5-1-.5-1-1.5-1z" fill="rgba(255,255,255,0.05)" transform="rotate(30 10 10)"/></pattern></defs><rect width="100" height="100" fill="url(%23pawprint-dark)"/></svg>') center/100px;
        opacity: 0.2;
    }
    #search-input {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--text-color);
    }
    #search-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
    #search-input:focus {
        background-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    }
    .back-to-top {
        color: var(--text-color);
    }
    .observation-form input[type="text"], .observation-form input[type="email"], .observation-form input[type="file"], .observation-form textarea {
        background-color: var(--light-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }
    .observation-form .form-message[style*="color: green"] {
        background-color: #3a473d;
        border: 1px solid #5a6b5e;
        color: #c9e0cb;
    }
    .observation-form .form-message[style*="color: red"] {
        background-color: #4a3e3e;
        border: 1px solid #6b5c5c;
        color: #e0c9c9;
    }
    .observation-form .form-message[style*="color: rgb(0, 123, 255)"] {
        background-color: #3e444a;
        border: 1px solid #5a656b;
        color: #c9d5e0;
    }
    .email-input {
        background: var(--light-bg);
        border: 2px solid var(--border-color);
        color: var(--text-color);
    }
    .email-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(168, 155, 149, 0.1); /* Primary color dark mode rgba */
    }
}

/* Table responsive sur mobile */
@media screen and (max-width: 768px) {
  .data-table thead {
    display: none; /* Cache l'en-tête du tableau sur mobile */
  }

  .data-table, 
  .data-table tbody, 
  .data-table tr, 
  .data-table td {
    display: block; /* Chaque élément (tableau, corps, ligne, cellule) devient un bloc, occupant toute la largeur */
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 15px; /* Espacement entre les lignes transformées */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden; /* Important pour cacher ce qui dépasse de la carte de ligne */
    box-shadow: 0 1px 4px var(--shadow-light);
  }

  .data-table td {
    position: relative;
    display: flex; /* ★ NOUVEAU : La cellule td devient un conteneur flex ! */
    align-items: center; /* Centre verticalement le contenu et le label */
    min-height: 40px; /* Assure une hauteur minimale pour la cellule */
    
    /* Padding pour le contenu réel. Le padding-left doit être plus grand que la largeur du ::before */
    /* Largeur du label (130px) + un espace de 15px = 145px */
    padding: 10px 12px 10px 145px; 
    
    /* Le contenu textuel direct du td est maintenant un "item flex anonyme".
       text-align: right alignera ce texte à droite dans l'espace qui lui est alloué. */
    text-align: right; 

    /* Assurez-vous que le contenu réel ne déborde pas ou ne se wrap pas de manière inattendue */
    white-space: nowrap; /* Empêche le contenu de se mettre à la ligne */
    overflow: hidden; /* Cache tout contenu qui dépasse horizontalement */
    text-overflow: ellipsis; /* Ajoute des points de suspension si le contenu est trop long */
  }

  .data-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 130px; /* Largeur fixe pour la zone du label */
    padding: 10px 12px; /* Padding interne pour le label */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: left; /* Le texte du label est aligné à gauche dans sa propre zone */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box; /* S'assure que le padding est inclus dans la largeur de 130px */
    z-index: 1; /* ★ NOUVEAU : S'assure que le label est au-dessus de tout contenu en cas de chevauchement */
    
    /* Visuels pour le débogage (peut être retiré une fois que ça marche) */
    background-color: var(--light-bg); 
    border-right: 1px solid var(--border-color);
  }
}

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

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}
/* ===== Améliorations visuelles et UX ===== */
h2 {
    scroll-margin-top: 80px;
}

.content-section p,
.intro-area p,
.expert-box p {
    margin-bottom: 1em;
}

@media (max-width: 900px) {
    .site-container {
        flex-direction: column;
        padding: 1em;
    }
    .main-content, .sidebar {
        width: 100%;
    }
    .page-toc {
        font-size: 0.95em;
    }
}