/*
Theme Name: FFDA v5
Theme URI: https://aquaponie.eu
Author: Fédération Francophone d'Aquaponie et des Techniques Associées
Author URI: https://aquaponie.eu
Description: Thème de blocs de la Fédération francophone d'aquaponie et des techniques associées. Bandeau ultra-large, menu à cinq thèmes porté par le thème lui-même, recherche en ligne, gabarits bbPress, feuilles de style par bloc.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 5.31.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ffda-v5
Tags: block-patterns, block-styles, full-site-editing, style-variations, custom-logo, custom-menu, editor-style, translation-ready, wide-blocks, one-column, two-columns

FFDA v5, (C) 2026 Fédération Francophone d'Aquaponie et des Techniques Associées.
Distribué selon les termes de la GNU GPL.

Système de design dérivé du thème Ollie, (C) Mike McAlister, distribué
selon les termes de la GNU GPL v3. https://olliewp.com
*/

/* Remise à zéro ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
table { border-collapse: collapse; }

/* Accessibilité ------------------------------------------------------ */
:where(a):focus-visible,
:where(button, input, select, textarea, summary):focus-visible,
.wp-block-navigation a:focus-visible {
  outline: 3px solid var(--wp--preset--color--bleu);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Le lien d'évitement est celui du cœur de WordPress. On l'habille, on
   ne le double pas. */
.skip-link.screen-reader-text:focus {
  background: var(--wp--preset--color--primary) !important;
  color: #fff !important;
  padding: .7rem 1.1rem !important;
  border-radius: 0 0 var(--wp--custom--border-radius--sm) 0 !important;
  box-shadow: none !important;
  font-size: 1rem !important;
  text-decoration: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important;
    scroll-behavior: auto !important; }
}

/* Éléments bruts du corpus ------------------------------------------- */
/* Le référentiel est écrit en HTML natif, pas en blocs : ses tableaux,
   ses listes et ses titres ne passent pas par le chargement conditionnel
   des styles de blocs et doivent être servis ici. */
.entry-content h2 { scroll-margin-top: 5rem; }
.entry-content h3, .entry-content h4 { scroll-margin-top: 5rem; }
.entry-content > table,
.entry-content table {
  width: 100%;
  margin: var(--wp--preset--spacing--medium) 0;
  font-size: .95em;
  border: 1px solid var(--wp--preset--color--border-light);
  border-radius: var(--wp--custom--border-radius--sm);
  overflow: hidden;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--wp--preset--color--border-light);
  padding: .55rem .7rem;
  text-align: left;
  vertical-align: top;
}
.entry-content thead th {
  background: var(--wp--preset--color--tertiary);
  color: var(--wp--preset--color--primary);
  font-weight: 650;
}
.entry-content tbody tr:nth-child(even) { background: #FBFDFE; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-block: .3rem; }
.entry-content li::marker { color: var(--wp--preset--color--primary-alt); }
.entry-content dl { margin: var(--wp--preset--spacing--small) 0; }
.entry-content dt { font-weight: 650; color: var(--wp--preset--color--primary); }
.entry-content dd { margin: 0 0 .7rem 0; }
.entry-content blockquote {
  margin: var(--wp--preset--spacing--medium) 0;
  padding-left: 1rem;
  border-left: 3px solid var(--wp--preset--color--primary-alt);
  color: var(--wp--preset--color--primary);
}
.entry-content code {
  background: var(--wp--preset--color--tertiary);
  padding: .12em .38em;
  border-radius: var(--wp--custom--border-radius--xs);
  font-size: .92em;
}
.entry-content a { text-underline-offset: .18em; }
.entry-content svg { display: block; margin-inline: auto; }

/* Impression ---------------------------------------------------------- */
@media print {
  .ffda-cta, .ffda-rappel, .ffda-calc, .ffda-hero-actions, .ffda-nav,
  .ffda-pied, .skip-link, .wp-block-navigation { display: none !important; }
  .entry-content p { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
