/*
 * aqua-lowtech / base.css
 * Styles globaux - charges sur toutes les pages
 * Genere depuis main.css + style.css - ordre des rules preserve.
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* L'attribut hidden doit toujours l'emporter.
   La règle par défaut du navigateur, [hidden] { display: none }, est écrasée
   dès qu'une classe du thème déclare un display : c'est le cas de
   .blog-hub-grid (display: grid), dont le masquage par JavaScript restait
   donc sans effet. */
[hidden] {
    display: none !important;
}

/* body, titres et .container : définis une seule fois, plus bas (sections 2 à 4).
   L'ancien bloc qui se trouvait ici était intégralement écrasé et a été retiré. */

/* === HEADER === */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* === NAVIGATION === */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #27ae60;
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  h1 { font-size: 1.8rem; }

  h2 { font-size: 1.5rem; }

  .main-nav ul {
          flex-direction: column;
          gap: 1rem;
      }

}

/* ====================================
   BOUTONS NAVIGATION MOBILE (Haut/Bas)
   ==================================== */
.mobile-nav-buttons {
    display: none;
}

@media (max-width: 768px) {
  .mobile-nav-buttons {
          display: flex;
          flex-direction: column;
          gap: 0.75rem;
          position: fixed;
          bottom: 2rem;
          right: 1rem;
          z-index: 9000;
      }

  .nav-btn {
          width: 48px;
          height: 48px;
          border-radius: 50%;
          border: none;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: all 0.3s ease;
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
          -webkit-tap-highlight-color: transparent;
          touch-action: manipulation;
      }

  .nav-btn-top {
          background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
          color: white;
          opacity: 0;
          visibility: hidden;
          transform: translateY(20px);
      }

  .nav-btn-top.visible {
          opacity: 1;
          visibility: visible;
          transform: translateY(0);
      }

  .nav-btn-bottom {
          background: white;
          color: var(--color-primary);
          border: 2px solid var(--color-primary);
      }

  .nav-btn:active {
          transform: scale(0.92);
      }

  .nav-btn-top:active {
          background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
      }

  .nav-btn-bottom:active {
          background: var(--color-primary);
          color: white;
      }

  /* Cacher le bouton "bas" quand on est en bas de page */
  .nav-btn-bottom.hidden {
          opacity: 0;
          visibility: hidden;
          transform: translateY(20px);
      }

}

/* ══════════════════════════════════════════════════════════════════════════════
   MODULE FAQ - STYLES CSS
   Adapté au thème Aqua Lowtech
   ══════════════════════════════════════════════════════════════════════════════ */
/* ──────────────────────────────────────────────────────────────────────────────
   CONTENEUR PRINCIPAL
   ────────────────────────────────────────────────────────────────────────────── */
.faq-section-container {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    background-color: #f8faf9;
    border-radius: var(--aq-rayon);
    border: 1px solid rgba(26, 77, 46, 0.1);
}

/* ──────────────────────────────────────────────────────────────────────────────
   TITRE PRINCIPAL
   ────────────────────────────────────────────────────────────────────────────── */
.faq-main-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a4d2e;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #27ae60;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

/* ──────────────────────────────────────────────────────────────────────────────
   GRILLE DES FAQ
   ────────────────────────────────────────────────────────────────────────────── */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ──────────────────────────────────────────────────────────────────────────────
   ITEM FAQ INDIVIDUEL
   ────────────────────────────────────────────────────────────────────────────── */
.faq-item {
    background: #ffffff;
    border-radius: var(--aq-rayon);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #27ae60;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────────────────────────
   QUESTION (H3)
   ────────────────────────────────────────────────────────────────────────────── */
.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a4d2e;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.faq-question::before {
    content: "🌿";
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* ──────────────────────────────────────────────────────────────────────────────
   RÉPONSE
   ────────────────────────────────────────────────────────────────────────────── */
.faq-answer {
    font-size: 1rem;
    line-height: 1.7;
    color: #2c3e50;
}

.faq-answer p {
    margin: 0 0 0.75rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #27ae60;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #1a4d2e;
}

@media (max-width: 768px) {
  .faq-section-container {
          padding: 1.5rem 1rem;
          margin-top: 2rem;
      }

  .faq-main-title {
          font-size: 1.25rem;
      }

  .faq-question {
          font-size: 1rem;
      }

  .faq-item {
          padding: 1rem 1.25rem;
      }

  .faq-item:hover {
          transform: none;
      }

}

@media (min-width: 769px) {
  .faq-section-container {
          padding: 2.5rem 2rem;
          margin-top: 3rem;
      }

  .faq-main-title {
          font-size: 1.75rem;
      }

  .faq-grid {
          gap: 1.25rem;
      }

  .faq-item {
          padding: 1.5rem 2rem;
      }

}

/* === MENTION AFFILIATION AMAZON === */
.amazon-affiliate-notice {
    background-color: transparent;
    border-top: 1px solid rgba(26, 77, 46, 0.1);
    padding: 1rem 1.5rem;
    text-align: center;
}

.amazon-affiliate-notice p {
    font-size: 0.75rem;
    color: #faf4f4;
    margin: 0 auto;
    line-height: 1.5;
    max-width: 800px;
}

@media (max-width: 768px) {
  .amazon-affiliate-notice {
          padding: 0.875rem 1rem;
      }

  .amazon-affiliate-notice p {
          font-size: 0.7rem;
      }

}

/* ══════════════════════════════════════════════════════════════════════════════
   MODULE AFFILIATION AMAZON
   À ajouter dans ton fichier style.css
   ══════════════════════════════════════════════════════════════════════════════ */
.affiliation-box {
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    border: 2px solid var(--vert-principal, #2d5a3d);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.1);
}

.affiliation-header {
    margin-bottom: 1rem;
}

.affiliation-badge {
    display: inline-block;
    background: var(--vert-principal, #2d5a3d);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.affiliation-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.affiliation-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.affiliation-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.affiliation-details {
    flex: 1;
}

.affiliation-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    line-height: 1.4;
}

.affiliation-title a {
    color: var(--vert-fonce, #1a3d2a);
    text-decoration: none;
    transition: color 0.2s ease;
}

.affiliation-title a:hover {
    color: var(--vert-principal, #2d5a3d);
}

.affiliation-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.affiliation-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--jaune-cta, #f4a020);
    color: #1a1a1a;
    padding: 0.65rem 1.25rem;
    border-radius: var(--aq-rayon);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(244, 160, 32, 0.3);
}

.affiliation-cta:hover {
    background: #e5940e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 160, 32, 0.4);
}

/* Un encart qui recommande deux produits distincts porte deux boutons.
   Sans ce conteneur ils seraient collés : le gap de .affiliation-cta est
   l'espace entre son emoji et son texte, pas entre deux boutons voisins.
   flex-wrap est indispensable : à 360 px de large, deux boutons ne tiennent
   pas sur une ligne. */
.affiliation-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.affiliation-cta svg {
    flex-shrink: 0;
}

.affiliation-disclaimer {
    margin: 1rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(45, 90, 61, 0.15);
    font-size: 0.75rem;
    color: #777;
    font-style: italic;
}

@media (max-width: 600px) {
  .affiliation-box {
          padding: 1.25rem;
      }

  .affiliation-content {
          flex-direction: column;
          align-items: center;
          text-align: center;
      }

  .affiliation-image {
          width: 120px;
          height: 120px;
      }

  .affiliation-details {
          width: 100%;
      }

  .affiliation-cta {
          width: 100%;
          justify-content: center;
      }

}

@media (max-width: 768px) {
  .btn-lowtech {
          display: block;
          width: 100%;
          padding: 15px 20px;
          font-size: 1rem;
      }

  .cta-internal {
          padding: 1.25rem;
          margin: 2rem 0;
      }

  .cta-internal h4 {
          font-size: 1.1rem;
      }

}

/* ══════════════════════════════════════════════════════════════════════════════
   BOUTONS CTA INTERNES (Maillage) - VERSION COMPATIBLE
   ══════════════════════════════════════════════════════════════════════════════ */
.cta-internal {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
    border-left: 5px solid #27ae60;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.12);
    overflow: hidden;
}

.cta-internal h4 {
    color: #1a4d2e;
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    font-weight: 600;
}

.cta-internal p {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

/* Bouton CTA - Style principal
   ─────────────────────────────────────────────────────────────────────────
   Le dégradé d'origine (#27ae60 → #229954) plafonnait à 2,87:1 en blanc sur
   la teinte la plus claire : très en dessous du seuil WCAG AA de 4,5:1 exigé
   pour un texte de 1,05em en graisse 600. C'est le bouton d'appel à l'action
   principal du site, il était donc illisible aux yeux de la norme sur toutes
   les pages.
   Assombri d'un cran — même teinte perçue, même identité — il atteint 4,72:1
   sur sa borne claire et 5,37:1 sur sa borne foncée. Le texte reste blanc.
   Les ombres portées suivent la nouvelle teinte pour rester cohérentes. */
a.btn-lowtech,
.btn-lowtech {
    display: inline-block;
    background: linear-gradient(135deg, #1e8449 0%, #176b3a 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 132, 73, 0.25);
    margin: 5px 0;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* Hover du bouton */
a.btn-lowtech:hover,
.btn-lowtech:hover {
    background: linear-gradient(135deg, #176b3a 0%, #125730 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 132, 73, 0.35);
    color: #ffffff;
    text-decoration: none;
}

/* Active state */
a.btn-lowtech:active,
.btn-lowtech:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

/* Visited state (important pour WordPress) */
a.btn-lowtech:visited {
    color: #ffffff;
}

/* Focus state (accessibilité) */
a.btn-lowtech:focus,
.btn-lowtech:focus {
    outline: 2px solid #1e8449;
    outline-offset: 2px;
}

/* Texte bonus */
.cta-bonus {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
  .cta-internal {
          padding: 1.25rem;
          margin: 2rem 0;
      }

  .cta-internal h4 {
          font-size: 1.1rem;
      }

  /* Bouton pleine largeur sur mobile */
  a.btn-lowtech,
    .btn-lowtech {
          display: block;
          width: 100%;
          padding: 15px 20px;
          font-size: 1rem;
      }

}

/* ══════════════════════════════════════════════════════════════════════════════
   SNIPPET BOX - VERSION MODERNE MOBILE-FIRST
   ══════════════════════════════════════════════════════════════════════════════ */
.snippet-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-left: 5px solid #27ae60;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.15);
  position: relative;
  overflow: hidden;
}

/* Effet décoratif en fond (optionnel) */
.snippet-box::before {
  content: "⚡";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 120px;
  opacity: 0.05;
  pointer-events: none;
}

.snippet-box h3 {
  color: #1a4d2e;
  font-size: 1.25rem;
  margin: 0 0 1.25rem 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

/* Liste des points */
.snippet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.snippet-list li {
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.7;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

@media (min-width: 769px) {
  .snippet-list li:hover {
      transform: translateX(5px);
      border-left-color: #27ae60;
      box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
    }

}

/* Emojis plus gros et alignés */
.snippet-list li::first-line {
  font-size: 1.05rem;
}

@media (min-width: 769px) {
  .snippet-box {
      padding: 2rem 2.5rem;
      margin: 2.5rem 0;
    }

  .snippet-box h3 {
      font-size: 1.4rem;
    }

  .snippet-list {
      gap: 1.25rem;
    }

  .snippet-list li {
      padding: 1.25rem 1.5rem;
      font-size: 1.05rem;
    }

}

@media (min-width: 481px) and (max-width: 768px) {
  .snippet-box {
      padding: 1.75rem 1.5rem;
    }

  .snippet-list li {
      padding: 1.125rem 1.25rem;
    }

}

@media (max-width: 400px) {
  .snippet-box {
      padding: 1.25rem 1rem;
      border-radius: 10px;
    }

  .snippet-box h3 {
      font-size: 1.1rem;
    }

  .snippet-list {
      gap: 0.875rem;
    }

  .snippet-list li {
      padding: 0.875rem 1rem;
      font-size: 0.95rem;
    }

}

/* ══════════════════════════════════════════════════════════════════════════════
   VIDÉO YOUTUBE RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════════ */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Légende sous la vidéo */
.video-caption {
  text-align: center;
  font-style: italic;
  color: #555;
  font-size: 0.9em;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .video-container {
      margin: 1.5rem 0;
      border-radius: 8px;
    }

  .video-caption {
      font-size: 0.85em;
      padding: 0 1rem;
    }

}

@media (max-width: 400px) {
  .video-container {
      margin: 1rem 0;
    }

}

/* ===============================
   TABLEAU RESPONSIVE MOBILE-FIRST
   Par le Lead Dev Aqua Lowtech
   =============================== */
/* Reset et base */
.aqua-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(76, 153, 108, 0.1);
}

@media (min-width: 769px) {
  .aqua-table thead {
      background: linear-gradient(135deg, #4c996c, #5db57d);
      color: white;
    }

  .aqua-table th {
      padding: 16px 20px;
      font-weight: 600;
      text-align: left;
      font-size: 16px;
    }

  .aqua-table td {
      padding: 14px 20px;
      border-bottom: 1px solid #e8f5e8;
    }

  .aqua-table tbody tr:hover {
      background-color: #f8fdf8;
      transform: translateY(-2px);
      transition: all 0.3s ease;
    }

}

@media (max-width: 768px) {
  /* Cache le header desktop */
  .aqua-table thead {
      display: none;
    }

  /* Transforme le tableau en stack de cartes */
  .aqua-table,
  .aqua-table tbody,
  .aqua-table tr,
  .aqua-table td {
      display: block;
      width: 100%;
    }

  .aqua-table {
      margin: 1rem 0;
      box-shadow: none; /* On va mettre l'ombre sur chaque carte */
    }

  /* Chaque ligne = Une carte */
  .aqua-table tr {
      background: white;
      border: 2px solid #e8f5e8;
      border-radius: 12px;
      margin-bottom: 16px;
      padding: 20px 16px;
      box-shadow: 0 2px 12px rgba(76, 153, 108, 0.08);
      position: relative;
    }

  /* Header de carte (première cellule) */
  .aqua-table tr td:first-child {
      background: linear-gradient(135deg, #4c996c, #5db57d);
      color: white;
      font-weight: 700;
      font-size: 18px;
      text-align: center;
      margin: -20px -16px 16px -16px;
      padding: 16px;
      border-radius: 10px 10px 0 0;
    }

  /* Autres cellules */
  .aqua-table tr td:not(:first-child) {
      border: none;
      padding: 8px 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 15px;
      line-height: 1.4;
      border-bottom: 1px solid #f0f8f0;
    }

  /* Dernier élément sans bordure */
  .aqua-table tr td:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

  /* Labels dynamiques via data-label */
  .aqua-table tr td:not(:first-child):before {
      content: attr(data-label) ":";
      font-weight: 600;
      color: #4c996c;
      min-width: 120px;
      text-align: left;
    }

  /* Valeurs à droite */
  .aqua-table tr td:not(:first-child) {
      text-align: right;
    }

  /* Emojis et icônes plus gros sur mobile */
  .aqua-table tr td strong {
      font-size: 16px;
    }

  /* Animation au tap (touch friendly) */
  .aqua-table tr {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

  .aqua-table tr:active {
      transform: scale(0.98);
      box-shadow: 0 1px 6px rgba(76, 153, 108, 0.15);
    }

}

@media (max-width: 480px) {
  .aqua-table tr {
      margin-bottom: 12px;
      padding: 16px 12px;
    }

  .aqua-table tr td:first-child {
      margin: -16px -12px 12px -12px;
      font-size: 16px;
    }

  .aqua-table tr td:not(:first-child):before {
      min-width: 100px;
      font-size: 14px;
    }

  .aqua-table tr td:not(:first-child) {
      font-size: 14px;
    }

}

/* Ponts sémantiques — Hub nourriture */
.nour-pont {
    margin: 1.5rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.nour-pont a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nour-pont a:hover {
    color: var(--color-secondary);
}

.aqua-reco-card__nom-lien {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
}

.aqua-reco-card__nom-lien:hover {
    color: var(--color-primary);
}

/**
 * AQUA LOWTECH - CSS Principal
 * Design naturel, épuré et performant
 * Mobile-First & SEO-Optimized
 */
/* ====================================
   1. VARIABLES CSS (Palette de couleurs)
   ==================================== */
:root {
    /* Couleurs principales */
    /* Vert principal aligné sur le « Vert Nature » des jetons --aq-* (composants.css) :
       ancien #2d6a4f « forêt ». Accueil, archives et pages éditoriales convergent ainsi
       avec le hub, les fiches et le comparateur. */
    --color-primary: var(--aq-vert, #2d7d46);
    --color-primary-hover: var(--aq-vert-survol, #235f35); /* survol des boutons primaires */
    --color-secondary: #52b788;    /* Vert aquatique */
    --color-accent: #74c69d;       /* Vert clair */

    /* Variante accessible du vert aquatique, réservée aux fonds portant du
       texte blanc. --color-secondary ne plafonne qu'à 2,47:1 avec du blanc :
       parfait pour une bordure ou un aplat décoratif, très en dessous du seuil
       WCAG AA (4,5:1) dès qu'un libellé est posé dessus. Celle-ci tient 5,02:1
       pour une teinte quasi identique. */
    --color-secondary-cta: #2f7d54;
    
    /* Couleurs neutres */
    --color-dark: #1b4332;         /* Vert très foncé */
    --color-text: #2c3e50;         /* Gris anthracite */
    --color-text-light: #5a6c7d;   /* Gris moyen */
    --color-bg: #f8faf9;           /* Blanc cassé nature */
    --color-white: #ffffff;
    
    /* Typographie */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* « Inter » était déclarée partout mais n'a jamais été chargée : ni
       @font-face, ni lien Google Fonts dans le thème. Les navigateurs
       retombaient donc silencieusement sur la police suivante. Les piles sont
       désormais explicites — le rendu est identique, mais intentionnel. */
    --font-heading: Georgia, 'Times New Roman', serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================
   2. RESET & BASE
   ==================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-secondary);
}

/* ====================================
   3. TYPOGRAPHIE
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }

h2 { font-size: 2rem; }

h3 { font-size: 1.5rem; }

h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

/* ====================================
   4. CONTENEUR PRINCIPAL
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ====================================
   LOGO - TAILLE RÉDUITE
   ==================================== */
.site-logo img,
.site-logo svg {
    max-height: 50px !important;
    width: auto;
    height: auto;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 50px !important;
    width: auto;
    height: auto;
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2rem;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: #2d6a4f;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.main-nav {
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #2d6a4f;
}

@media (max-width: 1024px) {
  .site-header .container {
          padding: 0 1.5rem;
      }

  .main-nav ul {
          gap: 1.5rem;
      }

  .main-nav a {
          font-size: 0.95rem;
      }

}

@media (max-width: 900px) {
  .main-nav ul {
          gap: 1rem;
      }

  .main-nav a {
          font-size: 0.9rem;
      }

}

.article-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.article-title a {
    color: var(--color-dark);
}

.article-title a:hover {
    color: var(--color-primary);
}

.article-excerpt {
    color: var(--color-text);
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: var(--spacing-xs);
}

.read-more:hover {
    color: var(--color-secondary);
}

/* Contenu de l'article */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.article-content h2 {
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-xs);
    border-bottom: 3px solid var(--color-accent);
}

.article-content h3 {
    margin-top: var(--spacing-md);
    color: var(--color-primary);
}

.article-content img {
    border-radius: 8px;
    margin: var(--spacing-md) 0;
}

.article-content ul,
.article-content ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    background-color: rgba(82, 183, 136, 0.1);
    border-left: 4px solid var(--color-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-style: italic;
    color: var(--color-text);
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--aq-rayon);
    font-weight: 600;
    margin-top: var(--spacing-md);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    /* Était --color-secondary (#52b788) : texte blanc à 2,47:1 au survol. */
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

/* ====================================
   13. FOOTER
   ==================================== */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: 0 0 var(--spacing-md) 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-info {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-info p {
    margin: 0.5rem 0;
}

.hidden {
    display: none;
}

/* Amélioration de l'accessibilité */
:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--aq-rayon);
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

@media (max-width: 768px) {
  /* RESET DES ESPACEMENTS */
  :root {
          --spacing-xs: 0.5rem;
          --spacing-sm: 0.75rem;
          --spacing-md: 1.5rem;
          --spacing-lg: 2rem;
          --spacing-xl: 2.5rem;
      }

  /* CONTAINER */
  .container {
          padding: 0 1rem;
      }

  .cta-buttons {
          flex-direction: column;
          gap: 0.75rem;
      }

}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-weight: 600;
    color: var(--color-dark);
}

.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-center h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header-center p {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.myth-buster {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    padding: 1.5rem;
    border-radius: var(--aq-rayon);
    margin: 2rem 0;
}

.science-box {
    background: linear-gradient(135deg, rgba(82, 183, 136, 0.1), rgba(116, 198, 157, 0.1));
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.science-box ol {
    margin-left: 1.5rem;
}

.golden-rule {
    background-color: #fef6e7;
    border-left: 4px solid #f6ad55;
    padding: 1.5rem;
    border-radius: var(--aq-rayon);
    margin: 1.5rem 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
  .cta-buttons {
          flex-direction: column;
      }

}

.section-label {
    display: inline-block;
    background-color: rgba(45, 106, 79, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight-green {
    color: var(--color-primary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.why-card {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.section-label {
    display: inline-block;
    background-color: rgba(45, 106, 79, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-icon {
    font-size: 2.5rem;
}

.badge-text strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--aq-rayon);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

@media (max-width: 768px) {
  .why-grid {
          grid-template-columns: 1fr;
      }

  .form-row {
          grid-template-columns: 1fr;
      }

  .newsletter-form {
          flex-direction: column;
      }

}

.sidebar-widget {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-accent);
}

.widget-content {
    font-size: 1rem;
    line-height: 1.7;
}

/* CATÉGORIES WIDGET */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.75rem;
}

.category-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background-color: white;
    border-radius: var(--aq-rayon);
    transition: var(--transition-smooth);
    color: var(--color-dark);
    font-weight: 500;
}

.category-item a:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateX(5px);
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    flex-grow: 1;
}

.tag-item {
    background-color: white;
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.tag-item:hover {
    background-color: var(--color-accent);
    color: white;
}

.lead-magnet-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lead-magnet-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
}

.lead-magnet-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .lead-magnet-form {
          flex-direction: column;
      }

}

/* CONTAINER NARROW */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.article-excerpt {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text);
    padding: 2rem;
    background-color: rgba(82, 183, 136, 0.1);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--aq-rayon);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

#table-of-contents {
    list-style: none;
    padding: 0;
}

#table-of-contents a {
    display: block;
    padding: 0.5rem 0;
    color: var(--color-text);
    transition: var(--transition-smooth);
}

#table-of-contents a:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}

@media (max-width: 768px) {
  .article-title {
          font-size: 2rem;
      }

}

/* TABLE DES MATIÈRES */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    border-radius: 6px;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.toc-list a:hover {
    background-color: rgba(45, 106, 79, 0.1);
    color: var(--color-primary);
    padding-left: 1rem;
}

.section-label {
    display: inline-block;
    background-color: rgba(45, 106, 79, 0.1);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header-center h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(45, 106, 79, 0.15);
}

.why-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.why-card p {
    line-height: 1.7;
    color: var(--color-text);
}

.btn-newsletter-submit {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.3);
}

/* FAQ */
.faq-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.faq-item h3 {
    color: var(--color-dark);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

/* ====================================
   FORMULAIRE NEWSLETTER BREVO
   ==================================== */
.newsletter-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.btn-newsletter-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.btn-newsletter-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.3);
}

.btn-newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    margin-left: 0.5rem;
}

/* Messages */
.newsletter-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.newsletter-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.newsletter-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

@media (max-width: 768px) {
  .form-input {
          padding: 0.9rem 1.25rem;
          font-size: 0.95rem;
      }

  .btn-newsletter-submit {
          padding: 1rem 1.5rem;
          font-size: 1rem;
      }

}

/* ====================================
   LEAD MAGNET - FORMULAIRE VERTICAL
   ==================================== */
.lead-magnet-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.lead-magnet-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-magnet-form .form-group {
    width: 100%;
}

.lead-magnet-form .form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.lead-magnet-form .form-input:focus {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.lead-magnet-form .form-input::placeholder {
    color: #94a3b8;
}

.lead-magnet-form .btn-lead-magnet-submit {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lead-magnet-form .btn-lead-magnet-submit:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.lead-magnet-form .btn-lead-magnet-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.lead-magnet-form .btn-loader {
    font-size: 1.2rem;
}

/* Messages */
.lead-magnet-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.lead-magnet-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.lead-magnet-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

@media (max-width: 768px) {
  .lead-magnet-form-container {
          max-width: 100%;
      }

  .lead-magnet-form .form-input {
          padding: 0.9rem 1.2rem;
          font-size: 0.95rem;
      }

  .lead-magnet-form .btn-lead-magnet-submit {
          padding: 1rem 1.5rem;
          font-size: 1rem;
      }

}

/* ====================================
   ACCESSIBILITÉ - Texte réservé aux lecteurs d'écran
   Même motif que WordPress (wp-admin/css/common.css) : masqué à l'œil, conservé dans
   l'arbre d'accessibilité. Volontairement sans display:none, qui retirerait le texte
   des lecteurs d'écran au lieu de le masquer visuellement.
   WordPress ne fournit cette règle qu'en administration ; elle est donc indispensable
   ici pour les étiquettes du formulaire Guide Express, côté public.
   ==================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Pot de miel des formulaires : à l'inverse, ce champ ne doit être proposé à
   personne — ni à l'œil, ni aux lecteurs d'écran (aria-hidden + tabindex -1 côté
   markup). Pas de display:none : certains robots ignorent les champs ainsi masqués. */
.aqua-pot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Bouton hamburger : masqué par défaut.
   main.js le crée et l'ajoute à document.body sur toutes les pages, quelle
   que soit la largeur d'écran. Or il n'était stylé qu'en dessous de 768 px :
   au-delà, sans position ni display, il retombait dans le flux normal en
   dernier enfant du <body>, donc visible sous le pied de page.
   La règle ci-dessous le neutralise partout ; la media query mobile qui suit
   le réaffiche en position fixe, en haut à droite, son emplacement normal. */
.menu-toggle {
    display: none;
}

/* 1.8.6 : « Trouver une espèce » n'existe que dans le menu ☰ (mobile). */
@media (min-width: 769px) {
    .main-nav .menu-item--mobile { display: none; }
}

@media (max-width: 768px) {
  /* Afficher le bouton hamburger */
  .menu-toggle {
          display: flex !important;
          align-items: center;
          justify-content: center;
          position: fixed;
          top: 1rem;
          right: 1rem;
          z-index: 10001;
          background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
          color: white;
          border: none;
          width: 54px;
          height: 54px;
          border-radius: 50%;
          font-size: 1.5rem;
          cursor: pointer;
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
          -webkit-tap-highlight-color: transparent;
          touch-action: manipulation;
          user-select: none;
      }

  .menu-toggle:active {
          transform: scale(0.95);
          background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
      }

  /* Logo plus petit */
  .site-logo img,
    .site-logo svg,
    .custom-logo {
          max-height: 40px !important;
      }

  /* Header */
  .header-content {
          padding-right: 70px;
      }

  /* Navigation mobile fullscreen */
  .main-nav {
          position: fixed !important;
          top: 0 !important;
          left: 0 !important;
          right: 0 !important;
          bottom: 0 !important;
          width: 100% !important;
          height: 100vh !important;
          height: 100dvh !important;
          background: rgba(27, 67, 50, 0.97) !important;
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
          z-index: 10000 !important;
          opacity: 0;
          visibility: hidden;
          pointer-events: none;
          transition: opacity 0.3s ease, visibility 0.3s ease;
          display: flex !important;
          align-items: center !important;
          justify-content: center !important;
          padding: 2rem !important;
          overflow-y: auto;
          -webkit-overflow-scrolling: touch;
      }

  /* Menu ouvert */
  .main-nav.is-open {
          opacity: 1 !important;
          visibility: visible !important;
          pointer-events: auto !important;
      }

  /* Liste des liens */
  .main-nav ul {
          flex-direction: column !important;
          gap: 0.75rem !important;
          width: 100% !important;
          max-width: 320px !important;
          padding: 0 !important;
          margin: 0 !important;
      }

  .main-nav li {
          width: 100% !important;
          border: none !important;
          margin: 0 !important;
      }

  /* Liens du menu */
  .main-nav a {
          display: block !important;
          width: 100% !important;
          padding: 1.1rem 1.5rem !important;
          text-align: center !important;
          font-size: 1.2rem !important;
          font-weight: 600 !important;
          color: white !important;
          background: rgba(255, 255, 255, 0.1) !important;
          border-radius: 12px !important;
          transition: all 0.2s ease !important;
          -webkit-tap-highlight-color: transparent;
          touch-action: manipulation;
      }

  .main-nav a:hover,
    .main-nav a:focus,
    .main-nav a:active {
          background: rgba(116, 198, 157, 0.9) !important;
          color: white !important;
          transform: scale(1.02);
      }

  /* Bloquer le scroll du body */
  body.menu-open {
          overflow: hidden !important;
          position: fixed !important;
          width: 100% !important;
          height: 100% !important;
      }

  .site-footer {
          padding: 2.5rem 1rem 2rem !important;
          text-align: center !important;
      }

  .footer-nav ul {
          flex-direction: column !important;
          gap: 0 !important;
          align-items: center !important;
          padding: 0 !important;
          margin: 0 0 1.5rem 0 !important;
          list-style: none !important;
      }

  .footer-nav li {
          width: 100% !important;
          max-width: 280px !important;
      }

  /* TOUS les liens du footer */
  .site-footer a,
    .footer-nav a,
    .footer-nav li a {
          display: block !important;
          padding: 1rem 1.5rem !important;
          margin: 0.35rem auto !important;
          max-width: 280px !important;
          background: rgba(255, 255, 255, 0.08) !important;
          border-radius: 10px !important;
          text-align: center !important;
          font-size: 1rem !important;
          color: white !important;
          opacity: 1 !important;
          text-decoration: none !important;
          cursor: pointer !important;
          
          /* Touch mobile obligatoire */
          -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
          touch-action: manipulation;
          user-select: none;
      }

  .site-footer a:hover,
    .site-footer a:focus,
    .site-footer a:active,
    .footer-nav a:hover,
    .footer-nav a:focus,
    .footer-nav a:active {
          background: rgba(116, 198, 157, 0.5) !important;
          color: white !important;
      }

  .footer-info {
          margin-top: 1.5rem !important;
          font-size: 0.9rem !important;
          line-height: 1.7 !important;
      }

  .footer-info p {
          margin: 0.5rem 0 !important;
      }

}

@media (max-width: 480px) {
  .menu-toggle {
          width: 50px;
          height: 50px;
          font-size: 1.4rem;
          top: 0.75rem;
          right: 0.75rem;
      }

  .site-logo img,
    .site-logo svg,
    .custom-logo {
          max-height: 35px !important;
      }

  .main-nav a {
          padding: 1rem 1.25rem !important;
          font-size: 1.1rem !important;
      }

}

@media (max-width: 768px) {
  .why-grid {
          grid-template-columns: 1fr;
          gap: 1.25rem;
      }

  .why-card {
          padding: 1.5rem;
      }

  .form-row {
          grid-template-columns: 1fr;
          gap: 0;
      }

  .site-footer {
          position: relative;
          z-index: 50;
          padding-bottom: 4rem; /* Juste un espace normal */
          background-color: #1b4332;
      }

  /* On garde ça pour être sûr que les liens soient bien cliquables */
  .footer-nav a {
          position: relative;
          z-index: 51;
          pointer-events: auto;
      }

  /* 1. SÉCURITÉ : On s'assure que le footer est bien positionné */
  .site-footer {
          position: relative !important;
          z-index: 100 !important; /* Au-dessus des éléments standards */
          padding-bottom: 100px;   /* Espace de confort en bas */
          background-color: #1b4332; /* Ton vert foncé */
      }

  /* 2. NAVIGATION : On force l'affichage en colonne */
  .footer-nav ul {
          display: flex !important;
          flex-direction: column !important;
          gap: 15px !important;
      }

  /* 3. CLIC : On force les liens à être cliquables */
  .site-footer a,
    .footer-nav a {
          display: block !important;
          position: relative !important;
          z-index: 101 !important; /* Au-dessus du footer */
          pointer-events: auto !important; /* Réactive le clic */
          cursor: pointer !important;
          
          /* Zone de clic confortable */
          padding: 10px !important;
          background-color: rgba(255,255,255,0.05);
          border-radius: var(--aq-rayon);
      }

}

/* ══════════════════════════════════════════════════════════════════════════════
   TEMPLATE CASTING AQUA LOWTECH - STYLES CSS
   Mobile-First Responsive Design + Optimisations SEO
   ══════════════════════════════════════════════════════════════════════════════ */
/* ──────────────────────────────────────────────────────────────────────────────
   VARIABLES CSS AQUA LOWTECH
   ────────────────────────────────────────────────────────────────────────────── */
:root {
    --vert-principal: #27ae60;
    --vert-fonce: #1a4d2e;
    --vert-clair: #e8f5e9;
    --vert-ultra-clair: #f0f9f4;
    --gris-texte: #2c3e50;
    --gris-clair: #ecf0f1;
    --blanc: #ffffff;
    --ombre-douce: 0 4px 15px rgba(39, 174, 96, 0.1);
    --ombre-forte: 0 8px 25px rgba(39, 174, 96, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ──────────────────────────────────────────────────────────────────────────────
   ANIMATIONS ET MICRO-INTERACTIONS
   ────────────────────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media print {
  body {
          font-size: 12pt;
          line-height: 1.4;
      }

  h1, h2, h3 {
          color: #000 !important;
      }

}

/* Animation de pulsation subtile */
@keyframes pulse-btn {
    0% {
        box-shadow: 
            0 4px 15px rgba(39, 174, 96, 0.3),
            0 0 0 0 rgba(39, 174, 96, 0.5);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(39, 174, 96, 0.3),
            0 0 0 8px rgba(39, 174, 96, 0.2);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(39, 174, 96, 0.3),
            0 0 0 0 rgba(39, 174, 96, 0.5);
    }
}

/* ──────────────────────────────────────────────────────────────────────────────
   CENTRAGE DES BOUTONS CTA
   ────────────────────────────────────────────────────────────────────────────── */
.cta-button-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.cta-button-center .btn-lowtech {
    margin: 0; /* Reset margins pour centrage parfait */
}

@media print {
  .cta-button-center .btn-lowtech {
          background: white !important;
          color: #333 !important;
          border: 2px solid #333;
      }

}

/* Un commentaire.
   Pas de bordure gauche ici : chaque <li class="comment"> englobe son propre
   <ol class="children">, donc l'intégralité de ses réponses. Une bordure
   latérale s'étirait sur la hauteur du fil entier — d'où les longues barres
   verticales vertes qui traversaient la zone des commentaires, et qui se
   multipliaient à chaque niveau d'imbrication.
   Le repère d'imbrication est porté par .children (comments.css), dont la
   hauteur correspond exactement au bloc de réponses. */
.comment {
    background-color: var(--color-bg);
    border-radius: 12px;
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-smooth);
}

.comment:hover {
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.1);
}

/* En-tête du commentaire : avatar + nom + date */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author-avatar img {
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    display: block;
}

.comment-author-name {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.comment-author-name a {
    color: var(--color-primary);
    text-decoration: none;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
    display: block;
}

/* Corps du commentaire */
.comment-content p {
    color: var(--color-text);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
}

/* Commentaires en attente de modération */
.comment-awaiting-moderation {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
    background-color: #fffbeb;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* ──────────────────────────────────────────────────────────
   FORMULAIRE DE COMMENTAIRE
   ────────────────────────────────────────────────────────── */
#commentform {
    margin-top: var(--spacing-lg);
}

/* Labels */
#commentform label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 0.01em;
}

/* Inputs & textarea */
#commentform input[type="text"],
#commentform input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-accent);
    border-radius: 10px;
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition-smooth);
    box-sizing: border-box;
    -webkit-appearance: none;
}

#commentform textarea#comment {
    width: 100%;
    min-height: 150px;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-accent);
    border-radius: 10px;
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: var(--font-main);
    line-height: 1.7;
    resize: vertical;
    transition: var(--transition-smooth);
    box-sizing: border-box;
    -webkit-appearance: none;
}

/* Focus */
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea#comment:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

@media (max-width: 480px) {
  .comment {
          padding: var(--spacing-sm);
      }

}

/* La classe .seo-hidden vivait ici, commentée « contenu caché pour Rank Math » : du
   texte servi au robot et masqué à l'humain. Elle est supprimée et non désactivée —
   wp_kses_post laisse passer l'attribut class, donc tant que la règle existait le
   mécanisme restait réactivable depuis l'éditeur. Pour du texte destiné aux lecteurs
   d'écran, et à eux seuls, utiliser .screen-reader-text plus haut dans ce fichier. */

.hub-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.75rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.hub-card:hover {
    border-color: var(--color-primary);
    background: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(45, 106, 79, 0.15);
}

@media (max-width: 768px) {
  .hub-card {
          padding: 1.25rem;
      }

}

/* ====================================
   SINGLE.PHP — NOUVEAUX ÉLÉMENTS
  
   ==================================== */
/* --- BARRE DE PROGRESSION : voir single.css --- */

.hp-search__form {
    display: flex;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.hp-search__form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

.hp-search__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
    color: var(--color-text);
    outline: none;
}

.hp-search__input::placeholder {
    color: var(--color-text-light);
}

.hp-search__btn {
    background: var(--color-primary);
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.hp-search__btn:hover {
    background: var(--color-dark);
}

@media (max-width: 768px) {
  .hp-search__input {
          font-size: 0.875rem;
          padding: 0.75rem 1rem;
      }

  .hp-search__input::placeholder {
          font-size: 0.8rem;
      }

}

/* ── SECTION GÉNÉRIQUE ──────────────── */
.hp-section-head {
    margin-bottom: 2.5rem;
}

.hp-label {
    display: inline-block;
    background: rgba(45,106,79,0.1);
    color: var(--color-primary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hp-section-title {
    font-size: 1.75rem;
    color: var(--color-dark);
    margin: 0;
}

.hp-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.hp-card {
    background: var(--color-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.hp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(45,106,79,0.15);
}

.hp-card__img-link {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-accent);
}

/* Repli pour les résultats de recherche qui n'ont ni image à la une ni photo
   de fiche (pages outils, hubs). Sans lui, la grille alternait cartes
   illustrées et cartes sans visuel, étirées à la même hauteur : le vide se
   lisait comme une image cassée. Même convention que
   .hub-card__photo-placeholder, déjà utilisée par le hub Poissons. */
.hp-card__img-link--repli {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(160deg, #eef8ef 0%, #dbeee2 100%);
    text-decoration: none;
}

.hp-card__img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hp-card:hover .hp-card__img-link img {
    transform: scale(1.05);
}

.hp-card__body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hp-card__cat {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.hp-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
}

.hp-card__title a {
    color: var(--color-dark);
    text-decoration: none;
}

.hp-card__title a:hover {
    color: var(--color-primary);
}

.hp-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hp-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: auto;
}

.hp-card__link:hover {
    color: var(--color-secondary);
}

.hp-articles__more {
    text-align: center;
}

@media (max-width: 1024px) {
  .hp-articles__grid {
          grid-template-columns: 1fr;
          max-width: 560px;
          margin-left: auto;
          margin-right: auto;
      }

}

@media (max-width: 768px) {
  .hp-section-title {
          font-size: 1.4rem;
      }

}

.cmp-qty-hint {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-style: italic;
    margin-top: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(45, 106, 79, 0.08);
    border-radius: 6px;
}

.hp-bento__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
}

@keyframes hp-faq-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}


/* ══════════════════════════════════════════════════════════════════════════════
   BANNIÈRE DE CONSENTEMENT — maison, sans dépendance externe
   Remplace tarteaucitron (62 Ko de JS + 3 fichiers annexes + requête CDN tierce).
   Le markup est dans footer.php, la logique dans main.js.
   ══════════════════════════════════════════════════════════════════════════════ */

.aqua-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
  background: #1b4332;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  box-shadow: 0 -5px 24px rgba(0, 0, 0, 0.3);
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.aqua-consent[hidden] { display: none !important; }
.aqua-consent.is-visible { transform: translateY(0); }

.aqua-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Ligne du haut : le refus, en haut à gauche.
   Traité en lien textuel sobre — visible et atteignable au même niveau que
   l'acceptation (exigence CNIL), sans concurrencer le bouton primaire. */
.aqua-consent__head {
  display: flex;
  justify-content: flex-start;
}

.aqua-consent__refus {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.2rem 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.aqua-consent__refus:hover { color: #fff; border-color: #fff; }

.aqua-consent__refus:focus-visible {
  outline: 3px solid #95d5b2;
  outline-offset: 3px;
}

.aqua-consent__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.aqua-consent__text { flex: 1 1 320px; margin: 0; }

.aqua-consent__text a {
  color: #95d5b2;
  text-decoration: underline;
}

.aqua-consent__text a:hover { color: #d8f3dc; }

.aqua-consent__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.aqua-consent__btn {
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.aqua-consent__btn--accept { background: #52b788; color: #081c15; }
.aqua-consent__btn--accept:hover { background: #74c69d; }

/* Bouton secondaire : ouvre le panneau de personnalisation */
.aqua-consent__btn--perso {
  background: transparent;
  color: #fff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.35);
}

.aqua-consent__btn--perso:hover { border-color: #fff; }

.aqua-consent__btn:focus-visible {
  outline: 3px solid #95d5b2;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .aqua-consent { font-size: 0.85rem; padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); }
  .aqua-consent__inner { gap: 0.75rem; }
  .aqua-consent__body { gap: 1rem; }
  .aqua-consent__actions { width: 100%; }
  .aqua-consent__btn { flex: 1 1 auto; justify-content: center; padding: 0.85rem 1rem; white-space: normal; }
  .aqua-consent__refus { padding: 0.35rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aqua-consent { transition: none; }
}

/* ──────────────────────────────────────────────────────────────────────────
   PANNEAU DE PERSONNALISATION — consentement finalité par finalité
   Markup dans footer.php, logique dans main.js (window.aquaConsent.open).
   Se superpose à la bannière, qui reste visible derrière l'overlay : le
   z-index dépasse donc celui de la bannière (2147483000).
   ────────────────────────────────────────────────────────────────────────── */

.aqua-prefs {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.aqua-prefs[hidden] { display: none !important; }

.aqua-prefs__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 21, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.aqua-prefs__dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1b4332;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.aqua-prefs.is-visible .aqua-prefs__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.aqua-prefs__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e4ece7;
  flex-shrink: 0;
}

.aqua-prefs__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #1b4332;
}

.aqua-prefs__close {
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f8f4;
  color: #1b4332;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.2s ease;
}

.aqua-prefs__close:hover { background: #d8f3dc; }

.aqua-prefs__content {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.92rem;
  line-height: 1.6;
}

.aqua-prefs__intro { margin: 0 0 1.25rem; color: #40685a; }

.aqua-prefs__item {
  padding: 1rem 0;
  border-top: 1px solid #e4ece7;
}

.aqua-prefs__item:first-of-type { border-top: 0; padding-top: 0; }

.aqua-prefs__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.aqua-prefs__nom {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1b4332;
}

.aqua-prefs__nom label { cursor: pointer; }

.aqua-prefs__toujours {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2d6a4f;
  background: #d8f3dc;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.aqua-prefs__desc {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: #55786b;
}

.aqua-prefs__liens {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
}

.aqua-prefs__liens a { color: #2d6a4f; text-decoration: underline; }
.aqua-prefs__liens a:hover { color: #1b4332; }

/* Interrupteur accessible : la case reste un vrai <input type="checkbox">,
   superposé en transparence sur la piste dessinée en CSS. */
.aqua-switch {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width: 52px;
  height: 30px;
}

.aqua-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.aqua-switch__piste {
  position: absolute;
  inset: 0;
  background: #c8d5ce;
  border-radius: 30px;
  transition: background-color 0.2s ease;
  pointer-events: none;
}

.aqua-switch__piste::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.aqua-switch input:checked + .aqua-switch__piste { background: #52b788; }
.aqua-switch input:checked + .aqua-switch__piste::after { transform: translateX(22px); }

.aqua-switch input:focus-visible + .aqua-switch__piste {
  outline: 3px solid #2d6a4f;
  outline-offset: 3px;
}

.aqua-prefs__footer {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid #e4ece7;
  background: #f7faf8;
  flex-shrink: 0;
}

.aqua-prefs__btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.aqua-prefs__btn--sobre {
  background: transparent;
  color: #2d6a4f;
  font-weight: 600;
  border-color: #cfe0d6;
}

.aqua-prefs__btn--sobre:hover { border-color: #2d6a4f; }

.aqua-prefs__btn--save { background: #52b788; color: #081c15; }
.aqua-prefs__btn--save:hover { background: #74c69d; }

.aqua-prefs__btn:focus-visible,
.aqua-prefs__close:focus-visible {
  outline: 3px solid #2d6a4f;
  outline-offset: 2px;
}

/* Le défilement de la page est bloqué pendant l'ouverture du panneau :
   sans cela, le fond défilait sous les doigts au lieu de la liste. */
body.a-panneau-consentement { overflow: hidden; }

@media (max-width: 768px) {
  .aqua-prefs { padding: 0; align-items: flex-end; }

  .aqua-prefs__dialog {
    max-width: none;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .aqua-prefs__header,
  .aqua-prefs__content,
  .aqua-prefs__footer { padding-left: 1.15rem; padding-right: 1.15rem; }

  .aqua-prefs__footer { justify-content: stretch; }
  .aqua-prefs__btn { flex: 1 1 100%; }
  .aqua-prefs__btn--sobre { flex: 1 1 calc(50% - 0.3rem); }
}

@media (prefers-reduced-motion: reduce) {
  .aqua-prefs__dialog,
  .aqua-switch__piste,
  .aqua-switch__piste::after { transition: none; }
}

/* Décalage des boutons de défilement (bas droite) pendant l'affichage de la
   bannière. Sans cela, ils se retrouvaient derrière elle, qui occupe toute la
   largeur du bas de l'écran.
   --hauteur-banniere est mesurée par main.js : elle varie selon le retour
   à la ligne du texte, donc selon la largeur d'écran. La valeur de repli
   couvre le cas où le JS n'a pas encore mesuré. */
body.a-banniere-consentement .mobile-nav-buttons {
  bottom: calc(var(--hauteur-banniere, 160px) + 1rem);
  transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* État courant affiché sur la page Gestion des cookies */
.aqua-consent-state {
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  background: #f4f8f4;
  border-left: 4px solid #52b788;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CORRECTIFS MOBILE — PIED DE PAGE ET MENU OUVERT
   1. Le padding-bottom de 100px (section footer mobile) était écrasé par le
      raccourci « padding: … !important » déclaré plus haut : le bas du footer
      passait sous les boutons de défilement fixes.
   2. Le menu plein écran vit dans .site-header (sticky, z-index 1000), qui
      plafonne son empilement : les boutons de défilement (9000) et la barre
      de lecture (9999) passaient par-dessus. On les masque menu ouvert.
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-footer { padding-bottom: 100px !important; }

  body.menu-open .mobile-nav-buttons,
  body.menu-open #reading-progress-bar { display: none !important; }
}
