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

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

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

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

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

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

/* === CSS Variables Modernisées === */
:root {
    /* Thème Aquaponie : Vert Professionnel & Agréable */
    
    /* Couleurs Primaires & Secondaires (Verts et Bleus naturels) */
    --primary-color: #4B6043;         /* Vert Forêt/Émeraude : Profond, professionnel, pour éléments majeurs */
    --secondary-color: #7B8B5A;       /* Bleu-Vert/Canard : Profond, aquatique, complémentaire au vert */
    --accent-color: #CFA15B;          /* Jaune Doré/Moutarde : Accent chaleureux pour CTA, highlights (à utiliser avec parcimonie) */
    
    /* Couleurs de Texte (Contraste élevé pour lisibilité) */
    --text-color: #2E2E2E;            /* Gris Anthracite : Texte principal, très lisible sur fonds clairs */
    --text-light: #5C5C5C;            /* Gris Ardoise : Texte secondaire, descriptions, plus doux */
    --link-color: #5B704C;            /* Bleu Océan Foncé : Liens, distinct et contrasté */
    --link-hover-color: #4B6043;      /* Vert Primaire au survol des liens */

    /* Couleurs de Fond (Claires, aérées pour la performance perçue) */
    --background-color: #FAF8F3;      /* Fond très clair, presque blanc avec une touche de vert très subtile */
    --light-bg: #F1EFE8;              /* Fond un peu plus soutenu, crème-vert très pâle */
    --card-bg: #FFFFFF;               /* Fond des cartes, blanc pur pour une clarté maximale */
    --warm-accent: #F6F1E5;           /* Vert très très pâle/crème, pour des zones subtilement différentes */

    /* Bordures & Ombres (Douces et intégrées à la palette) */
    --border-color: #D9D5C5;          /* Bordure douce, vert très clair */
    --shadow-light: rgba(75, 96, 67, 0.08); /* Ombre légère basée sur la couleur primaire verte */
    --shadow-medium: rgba(75, 96, 67, 0.15); /* Ombre plus marquée */

    /* Dégradés (pour une touche de profondeur) */
    --gradient-primary: linear-gradient(135deg, #4B6043 0%, #3D9963 100%); /* Dégradé vert principal */
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #F1EFE8 100%);   /* Dégradé pour cartes, subtil */
    
    /* Footer (Bas de page plus sombre pour un bon contraste) */
    --footer-bg: linear-gradient(135deg, #3A4423 0%, #4B6043 100%); /* Fond de pied de page vert foncé */
    --footer-text: #FAF8F3;           /* Texte du pied de page clair */
    --footer-link: #CFA15B;           /* Liens du pied de page en couleur accent dorée */

    /* 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: 'Lato', Arial, sans-serif;
  color: #333;
  background-color: #fdfcf7;
}

h1, h2, h3 {
  font-family: 'Merriweather', Georgia, serif;
}

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;
    background-color: rgba(123, 139, 90, 0.1); /* Utilise secondary-color semi-transparent */
    border-bottom: 2px solid rgba(92, 92, 92, 0.4); /* Utilise text-light 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(123, 139, 90, 0.2); /* secondary-color plus opaque */
    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 === */
/* === Header Moderne === */
.site-header {
    background: linear-gradient(135deg, #4B6043 0%, #6E855C 100%); /* Ajusté pour correspondre à l'image */
    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;
    /* Motif abstrait subtil */
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 20px 20px; /* Taille réduite pour le motif */
    opacity: 0.2; /* Réduction de l'opacité pour un effet plus subtil sur le fond plus foncé */
}

.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); /* Conserve la 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;
    /* AUGMENTATION DU GAP POUR UN MEILLEUR ESPACEMENT */
    gap: var(--space-md); /* Utilisez une valeur plus grande, par exemple 1.5rem (24px) */
}

.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(250, 248, 243, 0.1); /* Utilise background-color semi-transparent */
    backdrop-filter: blur(5px); /* Diminue le blur pour une meilleure lisibilité */
    border: 1px solid rgba(250, 248, 243, 0.2); /* Utilise background-color semi-transparent */
    transition: var(--transition-smooth);
    /* EMPÊCHE LE TEXTE DE PASSER À LA LIGNE POUR LES LIENS DE NAVIGATION */
    white-space: nowrap;
}

.main-navigation a:hover, .main-navigation a:focus {
    background: rgba(250, 248, 243, 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;
}



/* === Layout Principal === */
.site-container {
    display: flex; /* Utilisation de flexbox pour le conteneur principal */
    flex-direction: column; /* Les éléments s'empilent verticalement */
    align-items: center; /* Centre le contenu horizontalement */
    gap: var(--space-xl);
    max-width: var(--container-max-width); /* Limite la largeur du contenu */
    margin: var(--space-xl) auto;
    padding: 0 var(--space-md);
}

.main-content {
    width: 100%; /* Le contenu principal prend toute la largeur disponible dans le flex container */
    max-width: 800px; /* Ajout d'une max-width pour éviter que le contenu ne s'étire trop */
    min-width: 0;
}

/* Style pour la nouvelle div .pub-block */
.pub-block {
    display: flex;
    flex-direction: column; /* Empile les éléments ads-block et relevant-links */
    gap: var(--space-lg); /* Espace entre la pub et les liens */
    margin-bottom: var(--space-xl); /* Marge sous le bloc pub */
    width: 100%;
    max-width: 336px; /* Limite la largeur du bloc pub pour être similaire à une sidebar */
    align-self: flex-start; /* Aligner à gauche par défaut */
    margin-left: auto; /* Centre le bloc pub si l'espace est plus grand que max-width */
    margin-right: auto;
}

.pub-block .ads-block {
    padding: 0;
    overflow: hidden;
    background-color: var(--light-bg); /* Garde le style de fond */
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex; /* Assure que l'ins AdSense est centré */
    justify-content: center;
    align-items: center;
}

.pub-block .relevant-links {
    background-color: var(--light-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: var(--space-md);
}


.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: #e9e3d0; /* plus foncé que beige clair */
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-color);
}
.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* === 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 feuille pour aquaponie */
    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(75, 96, 67, 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: var(--warm-accent); /* Un vert très pâle au survol */
    transform: scale(1.02);
}

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

/* ============================= */
/*   TABLEAU THÈME AQUAPONIE     */
/* ============================= */
.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 */
}

/* === Autres Sections du Site === */
.other-sections {
  background: #f6f5ee;
  border-top: 4px solid var(--accent-color);
  padding: var(--space-lg);
  margin-top: 40px;
  text-align: center;
  border-radius: var(--radius-lg);
}

.other-sections-title {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.other-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  justify-items: center;
}

.other-section-link {
  display: block;
  width: 100%;
  background: #e9e3d0;
  color: #333;
  padding: 10px 15px;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.other-section-link:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}


/* 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(207, 161, 91, 0.3); /* Ombre pour le bouton basée sur accent-color */
}

.btn-share-observation:hover {
    background-color: #C89900; /* 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(207, 161, 91, 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;
  }
}



/* === Cartes d'Espèces Aquaponiques Modernisées === */
.conteneur-mesanges ul li { /* Renommez si ce conteneur a un sens pour l'aquaponie */
    margin-bottom: 10px; /* Vous pouvez ajuster cette valeur */
}

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

.aquaponics-species-card { /* Renommé de cat-breed-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;
}

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

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

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

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

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

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

.aquaponics-species-card-link { /* Renommé de cat-breed-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;
}

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


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

/* === Liste de Conseils Numérotée === */
.tips-list {
    list-style: none; /* Supprime le style de liste par défaut du navigateur */
    counter-reset: tip-counter; /* Initialise un compteur nommé 'tip-counter' */
    padding: 0; /* Assurez-vous qu'il n'y a pas de padding gauche par défaut */
    margin: 0;
}

.tips-list li {
    position: relative;
    padding-left: var(--space-2xl); /* Crée un espace pour le numéro personnalisé */
    margin-bottom: var(--space-md); /* Espacement entre les éléments de la liste */
    line-height: 1.6; /* Améliore la lisibilité du texte */
}

.tips-list li::before {
    counter-increment: tip-counter; /* Incrémente le compteur pour chaque 'li' */
    content: counter(tip-counter); /* Affiche la valeur du compteur */

    /* Style du cercle */
    position: absolute;
    left: 0;
    top: 0; /* Aligné avec le haut du texte */
    display: flex; /* Utilise flexbox pour centrer le contenu */
    align-items: center;
    justify-content: center;
    width: var(--space-xl); /* Largeur du cercle */
    height: var(--space-xl); /* Hauteur du cercle (pour un cercle parfait) */
    background: var(--gradient-primary); /* Utilise un dégradé pour le fond du cercle */
    color: var(--footer-text); /* Couleur du texte des chiffres */
    border-radius: 50%; /* Rend le pseudo-élément circulaire */
    font-weight: 700; /* Rend les chiffres gras */
    font-size: 0.9rem; /* Taille de la police pour les chiffres */
    box-shadow: 0 2px 8px var(--shadow-light); /* Petite ombre pour un effet 3D */
    transition: var(--transition-smooth);
}

.tips-list li:hover::before {
    transform: scale(1.1); /* Agrandit légèrement le cercle au survol */
    box-shadow: 0 4px 12px var(--shadow-medium); /* Intensifie l'ombre au survol */
}

.tips-list li strong {
    color: var(--primary-color); /* Met en évidence le texte fort dans la liste */
}

/* === Encarts Expert Visuellement Différents === */
.expert-box {
    margin: 2.5rem 0;
    padding: 2rem 2.2rem;
    background: linear-gradient(145deg, #fdfcf8 0%, #f7f2e8 100%);
    border: 2px solid #d6c9a3;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(60, 45, 20, 0.12);
    position: relative;
    color: #2e2b26;
    font-size: 1.07rem;
    line-height: 1.8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Effet 3D au survol */
.expert-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 45px rgba(60, 45, 20, 0.2);
}

/* Bande supérieure pour attirer le regard */
.expert-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    width: 100%;
    background: linear-gradient(90deg, #6b8a47, #bca76b);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

/* Emoji décoratif plus visible */
.expert-box::after {
    content: "🍂";
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 2.4rem;
    opacity: 0.25;
}

/* Style du titre */
.expert-box h2 {
    color: #3e3b31;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    padding-top: 0.3rem;
    border-bottom: 2px solid #c7b985;
    display: inline-block;
}

/* Sous-texte / auteur */
.expert-box em {
    display: block;
    margin-bottom: 0.8rem;
    color: #5e5a51;
    font-style: italic;
}

/* Variante pour les "tips" ou conseils plus courts */
.expert-tip {
    margin: 2rem 0;
    padding: 1.6rem 2rem;
    border-left: 6px solid #6b8a47;
    background: #f3f8ee;
    border-radius: 18px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    position: relative;
}

.expert-tip::before {
    content: "🌱";
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.8rem;
    opacity: 0.3;
}

.expert-tip h3 {
    margin-top: 0;
    color: #3a4b2a;
}



/* ==============================
   STYLES POUR LA SECTION AMÉLIORÉE (version contrastée)
   ============================== */
.content-section-ameliorer {
  background-color: #f7f4ed; /* plus clair et net que le fond général */
  color: #2a241a; /* texte plus contrasté */
  font-family: "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Titres principaux */
.content-section-ameliorer h2 {
  color: #355230; /* vert forêt profond */
  font-size: 1.9rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #a38c5b;
  padding-bottom: 0.4rem;
  font-weight: 700;
}

/* Titres secondaires */
.content-section-ameliorer h3 {
  color: #4e3d27; /* brun plus chaud */
  font-size: 1.35rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.content-section-ameliorer h4 {
  color: #574730;
  font-size: 1.1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

/* Paragraphes */
.content-section-ameliorer p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Listes à puces */
.content-section-ameliorer ul {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
  list-style-type: disc;
}

.content-section-ameliorer ul li {
  margin-bottom: 0.5rem;
}

.content-section-ameliorer li strong {
  color: #355230;
  font-weight: 600;
}

/* Listes numérotées */
.content-section-ameliorer ol {
  margin-left: 1.8rem;
  margin-bottom: 1.5rem;
}

.content-section-ameliorer ol li {
  margin-bottom: 0.5rem;
}

/* Mise en valeur des conseils */
.content-section-ameliorer p strong {
  background-color: #e6f2dc;
  color: #2e361a;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

/* Encadré visuel léger */
.content-section-ameliorer article {
  background-color: #fffdf8;
  border: 1px solid #ddd3b8;
  border-radius: 10px;
  padding: 1.6rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease-in-out, border-color 0.2s;
}

.content-section-ameliorer article:hover {
  border-color: #c6b38b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

/* Liens */
.content-section-ameliorer a {
  color: #2d5228;
  text-decoration: underline;
  font-weight: 500;
}

.content-section-ameliorer a:hover {
  text-decoration: none;
  color: #1f3b1b;
}

/* Responsive */
@media (max-width: 600px) {
  .content-section-ameliorer {
    padding: 1.2rem;
  }

  .content-section-ameliorer h2 {
    font-size: 1.6rem;
  }

  .content-section-ameliorer h3 {
    font-size: 1.2rem;
  }
}

/* === 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(75, 96, 67, 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);
}

/* REMOVED .sidebar styles as the element is gone */


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

/* 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(207, 161, 91, 0.3); /* Ombre basée sur accent-color */
}

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

/* Style pour les messages de feedback du formulaire (succès/erreur) */
.observation-form .form-message.success {
    background-color: #EEF6EA; /* Vert très clair */
    border: 1px solid var(--primary-color); /* Bordure primaire */
    color: var(--primary-color); /* Texte primaire */
}
.observation-form .form-message.error {
    background-color: #F6EDE6; /* Rouge très clair */
    border: 1px solid var(--accent-color); /* Bordure accent */
    color: var(--text-color); /* Texte principal */
}
.observation-form .form-message.info { /* Couleur pour "Envoi en cours..." */
    background-color: #F3F6F2;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

/* ====================================================== */
/* 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;
    /* Motif abstrait pour l'aquaponie */
    background: linear-gradient(45deg, rgba(250, 248, 243, 0.05) 25%, transparent 25%, transparent 75%, rgba(250, 248, 243, 0.05) 75%, rgba(250, 248, 243, 0.05) 100%);
    background-size: 20px 20px;
    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(250, 248, 243, 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;
}

/* --- Styles pour le formulaire de contact --- */

.contact-form {
    background-color: #f8fcf8; /* Un vert très clair pour le fond du formulaire */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Ombre légère pour donner du relief */
    max-width: 700px; /* Limite la largeur du formulaire */
    margin: 40px auto; /* Centre le formulaire sur la page et donne de l'espace */
    border: 1px solid #e0e0e0; /* Bordure subtile */
}

.contact-form .form-group {
    margin-bottom: 20px; /* Espacement entre les groupes champ/label */
}

.contact-form label {
    display: block; /* Chaque label sur sa propre ligne */
    font-weight: bold;
    margin-bottom: 8px;
    color: #333; /* Couleur de texte plus foncée pour la lisibilité */
    font-size: 1.05em;
}

.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
    width: 100%; /* Les champs prennent toute la largeur disponible */
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Lato', sans-serif; /* Conserver la police du site */
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur */
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.contact-form input[type="email"]:focus,
.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
    border-color: #5B704C; /* Vert aquaponie au focus */
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3); /* Ombre douce au focus */
    outline: none; /* Supprime le contour par défaut du navigateur */
}

.contact-form textarea {
    resize: vertical; /* Permet de redimensionner verticalement uniquement */
    min-height: 120px; /* Hauteur minimale pour le message */
}

.contact-form .submit-button {
    display: block; /* Bouton sur sa propre ligne */
    width: 100%; /* Bouton prend toute la largeur */
    padding: 14px 20px;
    background-color: #5B704C; /* Vert distinctif */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    letter-spacing: 0.5px;
}

.contact-form .submit-button:hover {
    background-color: #4A5A37; /* Vert légèrement plus foncé au survol */
    transform: translateY(-2px); /* Léger effet de soulèvement */
}

.contact-form .submit-button:active {
    transform: translateY(0); /* Retour à la position normale au clic */
}

.contact-form .form-info {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #eee; /* Ligne de séparation subtile */
}
/* Encarts affiliés */
.affiliate-box {
  border: 2px solid var(--primary-color);
  background-color: var(--light-bg);
  padding: 20px;
  margin: 25px auto;
  border-radius: 10px;
  max-width: 900px;
}

.affiliate-box h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.affiliate-box ul {
  list-style-type: disc;
  padding-left: 20px;
}

.affiliate-box a {
  color: var(--link-color);
  text-decoration: none;
}

.affiliate-box a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Tableau affilié */
.affiliate-table {
  max-width: 900px;
  margin: 30px auto;
  overflow-x: auto;
}

.affiliate-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  text-align: left;
}

.affiliate-table th,
.affiliate-table td {
  border: 1px solid var(--border-color);
  padding: 12px 15px;
}

.affiliate-table th {
  background-color: var(--primary-color);
  color: #fff;
}

.affiliate-table td a {
  color: var(--link-color);
}

.affiliate-table td a:hover {
  color: var(--link-hover-color);
}

/* Responsivité mobile */
@media (max-width: 768px) {
  .affiliate-box, .affiliate-table {
    padding: 15px;
    margin: 15px auto;
  }

  .affiliate-table th, .affiliate-table td {
    padding: 10px;
  }
}




/* === Responsive Design === */
@media (max-width: 1024px) {
    .site-container {
        /* Plus besoin de grid-template-columns ici si flex-direction: column est déjà sur site-container */
    }
    
    /* REMOVED .sidebar styles */
    .page-toc {
        position: static;
    }
    .pub-block {
        max-width: 100%; /* Permet au bloc pub de prendre plus de largeur sur les écrans moyens */
        align-self: center; /* Centre le bloc pub sur les écrans moyens */
    }
}

@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;
    }
    
    .aquaponics-species-card { /* Renommé */
        width: 95%;
    }
    
    .content-section {
        padding: var(--space-lg);
    }

    .pub-block {
        margin-left: 0; /* Supprime le margin auto pour une meilleure adaptation mobile */
        margin-right: 0;
    }
}

@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) {
    .aquaponics-species-card img { /* Renommé */
        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: #4CAF6C; /* Vert plus clair pour le mode sombre */
        --secondary-color: #5AA0AD; /* Bleu-vert plus clair */
        --accent-color: #CFA15B; /* Jaune doré vif */
        --warm-accent: #3A3A3A; /* Gris foncé pour l'accent chaud */
        --text-color: #E0E0E0; /* Blanc cassé pour le texte */
        --text-light: #A0A0A0; /* Gris clair */
        --link-color: #6DB3C5; /* Bleu clair vibrant pour les liens */
        --link-hover-color: #4CAF6C; /* Vert primaire éclairci au survol */
        --background-color: #121212; /* Fond très sombre */
        --light-bg: #1E1E1E; /* Fond clair sombre */
        --card-bg: #2A2A2A; /* Fond de carte sombre */
        --border-color: #444444; /* Bordure sombre */
        --shadow-light: rgba(0, 0, 0, 0.25);
        --shadow-medium: rgba(0, 0, 0, 0.45);
        --gradient-primary: linear-gradient(135deg, #3A4423 0%, #4B6043 100%); /* Dégradé vert principal plus foncé */
        --gradient-card: linear-gradient(145deg, #2A2A2A 0%, #1E1E1E 100%); /* Dégradé pour cartes sombres */
        
        --footer-bg: linear-gradient(135deg, #0A2617 0%, #3A4423 100%); /* Fond de pied de page très foncé */
        --footer-text: #E0E0E0;
        --footer-link: #CFA15B; /* Liens de pied de page accentués */
    }

    .comparison-table tbody tr:hover {
        background-color: var(--warm-accent); /* Utilise la nouvelle variable mode sombre */
    }

    .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 var(--shadow-light);
    }
    .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: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%, rgba(255, 255, 255, 0.02) 100%);
        background-size: 20px 20px;
        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.success {
        background-color: #3a473d;
        border: 1px solid #5a6b5e;
        color: #c9e0cb;
    }
    .observation-form .form-message.error {
        background-color: #4a3e3e;
        border: 1px solid #6b5c5c;
        color: #e0c9c9;
    }
    .observation-form .form-message.info {
        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(76, 175, 108, 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;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 4px var(--shadow-light);

    /* ✅ Ajout important : couleur de fond visible */
    background-color: var(--table-row-bg, #ffffff);
  }

  /* ✅ Alternance légère entre lignes */
  .data-table tr:nth-child(even) {
    background-color: var(--table-row-alt-bg, #f7f9f8);
  }

  .data-table td {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 12px 10px 145px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* ✅ Reprend le fond du tr parent */
    background-color: inherit;
  }

  /* ✅ Labels avant chaque valeur (tu dois déjà l’avoir dans ton CSS) */
  .data-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 130px;
    font-weight: 600;
    text-align: left;
    color: var(--text-muted, #444);
  }
}

/* === 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 {
        width: 100%;
        max-width: 100%; /* S'assure qu'il prend toute la largeur sur les petits écrans */
    }
    .page-toc {
        font-size: 0.95em;
    }
}