/* === 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 Nature Moderne */
    --primary-color: #2d5a3d; /* Vert forêt profond */
    --secondary-color: #4a7c59; /* Vert moyen */
    --link-color: #1E3B27;	
    --accent-color: #8ab48a; /* Vert sage */
    --warm-accent: #d4a574; /* Beige doré (plumage) */
    --text-color: #1a1a1a; /* Noir naturel */
    --text-light: #4a5568; /* Gris ardoise */
    --background-color: #fefefe;
    --light-bg: #f7faf7; /* Vert très pâle */
    --card-bg: #ffffff;
    --border-color: #e2e8e2;
    --shadow-light: rgba(45, 90, 61, 0.08);
    --shadow-medium: rgba(45, 90, 61, 0.15);
    --gradient-primary: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f7faf7 100%);
    
    /* Footer */
    --footer-bg: linear-gradient(135deg, #1a2f20 0%, #2d5a3d 100%);
    --footer-text: #e2f2e2;
    --footer-link: #8ab48a;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --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 (CORRIGÉ : une seule déclaration) */
    --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; /* On s'assure qu'il n'y a pas de soulignement classique */

    /* 1. On remet le fond surligné que vous aimiez */
    background-color: rgba(100, 116, 139, 0.1); /* Fond gris neutre */
    
    /* 2. On ajoute l'indicateur d'accessibilité : une bordure basse */
    border-bottom: 2px solid rgba(30, 59, 39, 0.4); /* Bordure semi-transparente de la couleur du lien */
    
    /* On remet le padding pour l'effet "boîte" */
    padding: 0.1em 0.4em;
    margin: -0.1em -0.4em;
    border-radius: var(--radius-sm);

    /* La transition pour un effet fluide */
    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 {
    /* Au survol, tout devient plus intense */
    background-color: rgba(100, 116, 139, 0.2);
    color: var(--secondary-color) !important;
    border-bottom-color: var(--secondary-color); /* La bordure devient opaque et change de couleur */
}

.highlight-term {
    font-size: 1.4em; /* Ou toute autre taille que vous souhaitez */
    color: green;     /* Ou toute autre couleur verte (ex: #2E8B57) */
}

/* --- Style "Éditorial Chic" pour la zone d'introduction --- */
.intro-area {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    padding: 40px 50px;
    margin: 50px auto;
    max-width: 800px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.intro-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background-color: #4CAF50;
}

.intro-area h2 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 2.6em;
    color: #2c3e50;
    text-align: left;
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none;
}

.intro-area p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #34495e;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.intro-area p::first-letter {
    color: #4CAF50;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    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;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="feather" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,2 Q15,8 10,14 Q5,8 10,2" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23feather)"/></svg>') center/200px;
    opacity: 0.3;
}

.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: white;
    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: white;
    font-weight: 500;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.main-navigation a:hover, .main-navigation a:focus {
    background: rgba(255, 255, 255, 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: white;
  text-decoration: none;
  cursor: pointer;
}

.main-navigation .dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
}

.main-navigation .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.main-navigation .dropdown-content a:hover {
  background-color: #f1f1f1;
}

.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(255, 255, 255, 0.2);
    color: white;
    outline: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-input:focus {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 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: '📋';
    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(45, 90, 61, 0.05);
    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: white;
    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: #e9f0eb;
    transform: scale(1.02);
}

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

/* ============================= */
/*   TABLEAU SCIENTIFIQUE AIGLE  */
/* ============================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table thead {
  background-color: #2E3A59; /* bleu nuit sobre */
  color: #fff;
  text-align: left;
}

.data-table th, 
.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e5e5;
}

.data-table tbody tr:hover {
  background-color: #f9f9f9;
}

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

.data-table td {
  color: #333;
}

/* Styles pour l'encart de promotion des observations */
.observation-promo-box {
    background-color: #f8fcfd; /* Un fond très léger pour le différencier */
    border: 1px solid #e0e7eb; /* Bordure subtile */
    border-radius: 8px; /* 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 rgba(0, 0, 0, 0.05); /* 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 rgba(0, 0, 0, 0.1); /* Ombre plus prononcée au survol */
}

.observation-promo-box h3 {
    font-family: 'Merriweather', serif; /* Utilisez votre police de titre */
    color: #2c3e50; /* Couleur sombre pour la lisibilité */
    font-size: 1.8em; /* Taille du titre */
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.observation-promo-box p {
    font-family: 'Lato', sans-serif; /* Utilisez votre police de corps de texte */
    color: #555; /* 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: #777;
    margin-top: 15px;
}

.observation-promo-box .small-text a {
    color: #007bff; /* 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: #28a745; /* Couleur verte éclatante pour l'action */
    color: #fff; /* Texte blanc */
    padding: 14px 28px; /* Grand padding pour un bouton facile à cliquer */
    border: none;
    border-radius: 5px; /* Coins légèrement arrondis */
    font-family: 'Lato', sans-serif;
    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(40, 167, 69, 0.3); /* Ombre pour le bouton */
}

.btn-share-observation:hover {
    background-color: #218838; /* Vert plus foncé au survol */
    transform: translateY(-2px); /* Effet de légère élévation */
    box-shadow: 0 5px 10px rgba(40, 167, 69, 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 #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }

  .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: #666;
    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 #f0f0f0; /* 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'Oiseaux Modernisées === */
.conteneur-mesanges ul li {
    margin-bottom: 10px; /* Vous pouvez ajuster cette valeur */
}

.bird-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.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;
}

.bird-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; }
.bird-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 25px 80px var(--shadow-medium); }
.bird-card:hover::before { opacity: 0.03; }

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

.bird-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;
}

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

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

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

.bird-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gradient-primary);
    color: white !important;
    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;
}

.bird-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; }
.bird-card-link:hover::before { left: 100%; }
.bird-card-link:hover { transform: translateY(-3px); box-shadow: 0 8px 25px var(--shadow-medium); }
.bird-card-link::after { content: '→'; transition: var(--transition-smooth); }
.bird-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: white;
}

.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: #fff;
    border: 1px solid var(--border-color); /* Correction de la variable */
    border-radius: var(--radius-md); /* Correction de la variable */
    box-shadow: 0 4px 12px var(--shadow-light); /* Correction de la variable */
    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 rgba(0,0,0,0.12);
}

.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: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.species-card .card-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-primary); /* Correction de la variable */
    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, #e6f3ff 0%, #f0f8ff 100%);
    border-left: 5px solid #4a90e2;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.1);
    position: relative;
}

.expert-box::before {
    content: '🦅';
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 2rem;
    opacity: 0.3;
}

.expert-tip {
    background: linear-gradient(135deg, #f0fff4 0%, #f5fffa 100%);
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    box-shadow: 0 8px 30px rgba(74, 124, 89, 0.1);
    position: relative;
}

.expert-tip::before {
    content: '💡';
    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: white;
}

.email-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
    outline: none;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    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 Vert)
==============================================
*/

/* Assurez-vous que vos variables sont définies en haut de votre CSS */
:root {
    --primary-color: #2d5a3d;    /* Vert forêt profond */
    --secondary-color: #4a7c59;  /* Vert moyen */
    --link-color: #1E3B27;	
    --text-light: #4a5568;    /* Gris ardoise */
    --light-bg: #f7faf7;        /* Vert très pâle */
    --border-color: #e2e8e2;
    --shadow-light: rgba(45, 90, 61, 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: 8px;
    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 #eee; /* Une fine ligne pour séparer du contenu précédent */
}

#observations h2 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
    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: #fcfcfc; /* Fond très clair pour le formulaire */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    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 rgba(0, 0, 0, 0.08); /* Ombre plus prononcée pour l'importance */
}

.observation-form label {
    display: block; /* Chaque label sur sa propre ligne */
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    color: #34495e;
    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 #ccc;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    margin-bottom: 15px;
    box-sizing: border-box; /* Inclut padding et border dans la largeur */
}

.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: #28a745; /* Vert éclatant */
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.observation-form button[type="submit"]:hover {
    background-color: #218838; /* Vert plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 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: 5px;
    font-weight: bold;
}
.observation-form .form-message[style*="color: green"] {
    background-color: #e6ffe6; /* Vert très clair */
    border: 1px solid #a3e6a3;
}
.observation-form .form-message[style*="color: red"] {
    background-color: #ffe6e6; /* Rouge très clair */
    border: 1px solid #e6a3a3;
}
.observation-form .form-message[style*="color: rgb(0, 123, 255)"] { /* Couleur pour "Envoi en cours..." */
    background-color: #e6f7ff;
    border: 1px solid #a3d9ff;
}

/* ====================================================== */
/* Styles pour la Grille des Observations (obs-card)      */
/* ====================================================== */
#observation-list-container h3 {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
    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: 1200px; /* Largeur maximale de la grille */
    margin: 0 auto;
}

.obs-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Pour que l'image ne dépasse pas */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 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 rgba(0, 0, 0, 0.12);
}

.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 #eee;
}

.obs-card p {
    font-family: 'Lato', sans-serif;
    color: #555;
    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: #777;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.obs-card strong {
    color: #333;
}

/* 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: #777;
}
.observation-form .small-text a {
    color: #007bff;
    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;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    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: white;
    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: white;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    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: white;
    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;
}

    /* Style spécifique pour l'encart */
    .promo-box-generic {
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        background-color: #ffffff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        overflow: hidden;
        margin: 30px auto; /* Centré avec espace haut/bas */
        max-width: 600px; /* Largeur max pour ne pas être trop large sur PC */
        font-family: Arial, sans-serif;
    }

    /* Image du haut */
    .promo-hero-img {
        width: 100%;
        height: 250px; /* Hauteur fixe pour uniformité */
        object-fit: cover; /* Recadre l'image proprement sans la déformer */
        display: block;
    }
    .promo-hero-1-img {
        width: 100%;
        height: 80px; /* Hauteur fixe pour uniformité */
        object-fit: cover; /* Recadre l'image proprement sans la déformer */
        display: block;
    }	

    /* Contenu texte */
    .promo-content {
        padding: 20px;
        text-align: center;
    }

    .promo-title {
        margin: 0 0 10px 0;
        color: #2c3e50;
        font-size: 1.4em;
        font-weight: bold;
    }

    .promo-text {
        font-size: 0.95em;
        color: #555;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /* Les 5 miniatures (Icônes) */
    .promo-icons-row {
        display: flex;
        justify-content: center;
        gap: 15px; /* Espace entre les icônes */
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .promo-icon-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60px;
    }

    .icon-symbol {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .icon-label {
        font-size: 11px;
        color: #777;
        text-transform: uppercase;
    }

    /* Le Bouton */
    .promo-btn {
        display: inline-block;
        background-color: #27ae60; /* Vert nature */
        color: #ffffff;
        padding: 12px 30px;
        text-decoration: none;
        border-radius: 30px;
        font-weight: bold;
        transition: background-color 0.3s;
    }

    .promo-btn:hover {
        background-color: #219150; /* Vert plus foncé au survol */
    }



/* === 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: white;
        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 {
        --text-color: #e2e8f0;
        --text-light: #a0aec0;
        --background-color: #0d1117;
        --light-bg: #161b22;
        --card-bg: #1c2128;
        --border-color: #30363d;
        --shadow-light: rgba(0, 0, 0, 0.2);
        --shadow-medium: rgba(0, 0, 0, 0.4);
        --gradient-card: linear-gradient(145deg, #1c2128 0%, #222831 100%);
    }

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

/* === 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;
    }
}

/* ========================================================= */
/* Styles Spécifiques à la Page Boutique (Les-Oiseaux.com)   */
/* ========================================================= */

/* Section Hero de la boutique */
.boutique-hero-section {
    background: linear-gradient(135deg, #a5d6a7 0%, #c8e6c9 100%); /* Vert doux pour le thème oiseaux */
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.15); /* Ombre douce verte */
}

.boutique-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.boutique-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #2e7d32; /* Vert foncé */
    margin-bottom: var(--space-md);
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.boutique-hero-highlight {
    color: #1b5e20; /* Vert encore plus foncé pour le surlignage */
}

.boutique-hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #424242;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.boutique-hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    font-size: 0.95rem;
    color: #558b2f; /* Vert olive */
    font-weight: 600;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 1.1rem;
}


/* Table des matières de la boutique (Catégories) */
.boutique-toc {
    background: var(--card-bg); /* Fond de carte blanc */
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px var(--shadow-light);
    text-align: center;
}

.boutique-toc-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    font-weight: 600;
    display: block;
}

.boutique-toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.boutique-toc-link {
    display: block;
    padding: 10px 15px;
    background-color: var(--light-bg); /* Fond léger */
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.boutique-toc-link:hover {
    background-color: var(--primary-color);
    color: var(--footer-text); /* Texte clair au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sections de catégories de produits */
.boutique-category-section {
    margin-bottom: var(--space-2xl);
    padding-top: var(--space-xl); /* Espace au-dessus de chaque section de catégorie */
    border-top: 1px dashed var(--border-color); /* Ligne de séparation */
}

.boutique-category-section:first-of-type {
    border-top: none; /* Pas de ligne pour la première section */
}

.boutique-category-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.boutique-category-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.boutique-category-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grille de produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

/* Carte de produit individuelle */
.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.product-image {
    width: 100%;
    height: 200px; /* Hauteur fixe pour les images de produits */
    object-fit: cover; /* Assure que l'image remplit la zone sans déformation */
    border-bottom: 1px solid var(--border-color);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: var(--space-md) var(--space-sm) 8px;
    flex-grow: 1; /* Permet au titre de prendre de l'espace pour aligner les boutons */
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 0 var(--space-sm) var(--space-md);
    margin: 0; /* Réinitialise les marges par défaut des paragraphes */
    line-height: 1.5;
}

.product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: var(--primary-color); /* Couleur principale verte */
    color: var(--footer-text);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    margin: 0 var(--space-md) var(--space-md); /* Marge autour du bouton */
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(46, 139, 87, 0.2);
}

.product-button:hover {
    background-color: #3d9963; /* Légèrement plus clair au survol */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

/* Responsive pour les mobiles */
@media (max-width: 768px) {
    .boutique-hero-section {
        padding: var(--space-lg) var(--space-sm);
    }

    .boutique-hero-title {
        font-size: 2rem;
    }

    .boutique-hero-description {
        font-size: 0.95rem;
    }

    .boutique-toc-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }

    .product-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: var(--space-md);
    }
    
    .product-image {
        height: 180px; /* Ajuste la hauteur des images sur mobile */
    }

    .product-title {
        font-size: 1.15rem;
    }
}

/* Styles pour l'Encart de Promotion de Produits par Espèce */
/* ========================================================= */

.species-product-promo-box {
    background-color: var(--card-bg); /* Fond blanc */
    border: 1px solid #d8e6e8; /* Bordure un peu plus prononcée, vert-gris */
    border-radius: var(--radius-md); /* Coins arrondis */
    padding: 25px; /* Espacement interne */
    margin: 40px auto; /* Centre le bloc et ajoute de l'espace */
    max-width: 700px; /* Largeur maximale */
    box-shadow: 0 6px 20px rgba(74, 157, 111, 0.1); /* Ombre verte subtile */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.species-product-promo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 157, 111, 0.15);
}

.species-product-promo-box .promo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px; /* Espacement entre les éléments du header */
}

.species-product-promo-box .promo-icon {
    font-size: 2.2rem; /* Taille de l'emoji */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.species-product-promo-box .promo-title {
    font-family: var(--font-display);
    font-size: 1.6em; /* Plus grand pour le titre principal */
    color: var(--primary-color); /* Vert primaire du site */
    margin: 0; /* Réinitialise les marges du h3 */
    line-height: 1.2;
}

.species-product-promo-box .promo-tag {
    background-color: #e0f2f1; /* Fond vert-bleu très clair */
    color: #00796b; /* Texte vert-bleu foncé */
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.species-product-promo-box .promo-intro-text {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.species-product-promo-box .promo-product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.species-product-promo-box .promo-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: var(--light-bg); /* Fond légèrement différent pour chaque produit */
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.species-product-promo-box .promo-product-item:hover {
    background-color: #e8f5e9; /* Vert encore plus clair au survol */
    transform: translateX(5px);
}

.species-product-promo-box .product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0; /* Empêche l'image de rétrécir */
    border: 1px solid #ccc;
}

.species-product-promo-box .product-details {
    flex-grow: 1;
    text-align: left;
}

.species-product-promo-box .product-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1em;
    margin-bottom: 3px;
}

.species-product-promo-box .product-description {
    display: block;
    font-size: 0.85em;
    color: var(--text-light);
    line-height: 1.3;
}

.species-product-promo-box .product-link {
    background-color: var(--secondary-color); /* Couleur secondaire du site */
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0; /* Empêche le bouton de rétrécir */
}

.species-product-promo-box .product-link:hover {
    background-color: #4a8088; /* Un peu plus foncé au survol */
    transform: scale(1.05);
}

.species-product-promo-box .promo-main-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 25px;
    background-color: var(--accent-color); /* Couleur accent dorée pour le bouton principal */
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    box-shadow: 0 4px 15px rgba(225, 173, 1, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.species-product-promo-box .promo-main-button:hover {
    background-color: #C89900; /* Nuance plus foncée de l'accent au survol */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 173, 1, 0.4);
}

.species-product-promo-box .promo-main-button .button-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.species-product-promo-box .promo-main-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Responsive pour l'encart promotionnel */
@media (max-width: 768px) {
    .species-product-promo-box {
        padding: 20px;
        margin: 30px auto;
        max-width: 95%;
    }

    .species-product-promo-box .promo-header {
        flex-direction: column;
        gap: 8px;
    }

    .species-product-promo-box .promo-tag {
        margin-top: 5px;
    }

    .species-product-promo-box .promo-title {
        font-size: 1.4em;
    }

    .species-product-promo-box .promo-intro-text {
        font-size: 1em;
    }

    .species-product-promo-box .promo-product-item {
        flex-direction: row; /* Reste en ligne */
        align-items: center;
        text-align: left;
    }

    .species-product-promo-box .product-thumb {
        width: 50px;
        height: 50px;
    }

    .species-product-promo-box .product-name {
        font-size: 0.95em;
    }

    .species-product-promo-box .product-description {
        font-size: 0.8em;
    }

    .species-product-promo-box .product-link {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .species-product-promo-box .promo-main-button {
        padding: 12px 20px;
        font-size: 0.95em;
    }
}