/* Bio Préférences — feuille de style unique. Fond crème, cartes blanches arrondies, vert et
   rouge de l'identité. Mobile d'abord, deux colonnes à partir de 900 px. */

:root {
  --fond: #f4efe4;
  --carte: #ffffff;
  --texte: #2c2a25;
  --texte-doux: #6b675e;
  --vert: #669933;
  --vert-fonce: #4e7a25;
  --vert-pale: #e9f2dc;
  --rouge: #ab2617;
  --rouge-pale: #f8e6e3;
  --etoile: #e8a317;
  --bord: #e6dfcf;
  --rayon: 18px;
  --rayon-petit: 10px;
  --ombre: 0 1px 2px rgba(60, 50, 20, .06), 0 6px 20px rgba(60, 50, 20, .06);
  --police: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--vert-fonce); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rouge); }
h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.35rem; margin-top: 1.2em; }
h3 { font-size: 1.1rem; }
h1 small { font-weight: 400; font-size: .6em; color: var(--texte-doux); }
p { margin: 0 0 1em; }
small { color: var(--texte-doux); }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* --- en-tête ------------------------------------------------------------------------- */
.entete { background: var(--carte); box-shadow: var(--ombre); position: sticky; top: 0; z-index: 5; }
.entete-int, .page, .pied-int { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.entete-int { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--vert-fonce); text-decoration: none; }
.logo img { border-radius: 50%; }
.burger { margin-left: auto; background: var(--vert-pale); border: 0; border-radius: var(--rayon-petit); font-size: 1.3rem; padding: 6px 12px; cursor: pointer; color: var(--vert-fonce); }
.menu { display: none; width: 100%; padding-bottom: 12px; flex-direction: column; gap: 6px; }
.menu.ouvert { display: flex; }
.menu a { font-weight: 700; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.menu a[aria-current], .menu a:hover { background: var(--vert-pale); color: var(--vert-fonce); }
.recherche { display: flex; gap: 6px; }
.recherche input { flex: 1; min-width: 0; border: 1px solid var(--bord); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .95rem; background: var(--fond); }
.recherche button { border: 0; background: var(--vert); color: #fff; border-radius: 999px; padding: 0 14px; cursor: pointer; font-size: 1rem; }
@media (min-width: 900px) {
  .burger { display: none; }
  .menu { display: flex; flex-direction: row; align-items: center; width: auto; margin-left: auto; padding: 0; gap: 4px; }
  .recherche { margin-left: 12px; width: 300px; }
}

/* --- structure ----------------------------------------------------------------------- */
.page { padding-top: 20px; padding-bottom: 40px; }
.carte { background: var(--carte); border-radius: var(--rayon); padding: 22px 24px; box-shadow: var(--ombre); margin-bottom: 20px; }
.carte > :first-child { margin-top: 0; }
.carte > :last-child { margin-bottom: 0; }
.etroit { max-width: 760px; margin-left: auto; margin-right: auto; }
.centre { text-align: center; }
.deux-colonnes { display: grid; gap: 20px; }
.lateral .carte h2 { font-size: 1.05rem; margin-top: 0; }
@media (min-width: 900px) {
  .deux-colonnes { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .lateral { position: sticky; top: 84px; }
}
.fil { font-size: .9rem; margin-bottom: 14px; color: var(--texte-doux); }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.fil li + li::before { content: "›"; margin-right: 4px; }
.fil a { color: inherit; }

/* --- textes -------------------------------------------------------------------------- */
.texte h2 { color: var(--vert-fonce); }
.texte ul, .texte ol { padding-left: 1.3em; }
.texte img { border-radius: var(--rayon-petit); }
.texte iframe { max-width: 100%; border-radius: var(--rayon-petit); }
.texte details { border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: 8px 14px; margin-bottom: 8px; }
.texte summary { font-weight: 700; cursor: pointer; color: var(--vert-fonce); }
.texte details > :nth-child(2) { margin-top: .6em; }
.auteur { color: var(--texte-doux); font-style: italic; }
.sur-titre { text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; font-weight: 700; color: var(--texte-doux); margin-bottom: 4px; }
.lien-externe::after { content: " ↗"; }
.bouton { display: inline-block; background: var(--vert); color: #fff; font-weight: 700; border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; }
.bouton:hover { background: var(--vert-fonce); color: #fff; }
.bouton.secondaire { background: var(--vert-pale); color: var(--vert-fonce); }
.suite { text-align: right; }

/* --- fiches -------------------------------------------------------------------------- */
.fiche-entete { display: flex; gap: 20px; align-items: flex-start; }
.fiche-entete h1 { margin-bottom: .3em; }
.fiche-entete p { margin-bottom: .4em; }
.fiche-logo { flex: 0 0 auto; width: 120px; max-height: 120px; object-fit: contain; border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: 6px; background: #fff; }
@media (max-width: 500px) { .fiche-entete { flex-direction: column; } }
.nom-scientifique { color: var(--texte-doux); }
.pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.pastille { background: var(--vert-pale); color: var(--vert-fonce); border-radius: 999px; padding: 3px 12px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.pastille.famille { background: var(--rouge-pale); color: var(--rouge); }
.en-bref { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.en-bref dt { font-weight: 700; color: var(--texte-doux); }
.en-bref dd { margin: 0; }
.liens { list-style: none; padding: 0; margin: 0; }
.liens li { padding: 6px 0; border-top: 1px solid var(--bord); }
.liens li:first-child { border-top: 0; }
.logo-organisme { max-height: 100px; }

/* --- avis ---------------------------------------------------------------------------- */
.etoiles { color: var(--etoile); letter-spacing: 1px; white-space: nowrap; }
.etoiles .vide { color: var(--bord); }
.etoiles.grand { font-size: 1.4rem; }
.note-resume { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avis-section h2 { margin-bottom: .6em; }
.avis header { margin-bottom: .6em; }
.avis-titre { margin: .2em 0 .1em; }
.avis-meta { color: var(--texte-doux); font-size: .9rem; margin: 0; }
.avis-texte > :last-child { margin-bottom: 0; }
.formulaire label { display: block; font-weight: 700; margin-bottom: 12px; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire textarea {
  display: block; width: 100%; font: inherit; font-weight: 400; border: 1px solid var(--bord);
  border-radius: var(--rayon-petit); padding: 9px 12px; margin-top: 4px; background: var(--fond);
}
.formulaire .champs { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .formulaire .champs { grid-template-columns: 1fr 1fr; } }
.note-choix { border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: 8px 14px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.note-choix legend { font-weight: 700; padding: 0 6px; }
.note-choix label { display: inline; margin: 0; font-weight: 400; }
.note-choix .aide { color: var(--texte-doux); font-size: .9rem; }
.piege { position: absolute; left: -9999px; }

/* --- listes -------------------------------------------------------------------------- */
.en-tete-liste { max-width: 760px; margin-bottom: 20px; }
.grille-marques, .grille-labels { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grille-labels { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.marque-carte, .label-carte { padding: 14px; margin: 0; text-align: center; transition: transform .15s; }
.marque-carte:hover, .label-carte:hover { transform: translateY(-2px); }
.marque-carte a, .label-carte a { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.marque-logo, .label-logo { height: 80px; display: flex; align-items: center; justify-content: center; }
.marque-logo img, .label-logo img { max-height: 80px; max-width: 120px; object-fit: contain; }
.initiale { width: 64px; height: 64px; border-radius: 50%; background: var(--vert-pale); color: var(--vert-fonce); font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.marque-nom, .label-nom { font-weight: 700; }
.label-nom small { display: block; font-weight: 400; }
.marque-note, .label-organisme { font-size: .85rem; color: var(--texte-doux); }
.colonnes { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.colonnes li { break-inside: avoid; padding: 3px 0; }
.colonnes small { display: block; font-size: .8rem; }
@media (min-width: 700px) { .colonnes { columns: 3; } }
.alphabet { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.alphabet a { display: inline-block; min-width: 34px; text-align: center; padding: 4px 6px; background: var(--carte); border-radius: var(--rayon-petit); text-decoration: none; font-weight: 700; box-shadow: var(--ombre); }
.lettre h2 { margin-top: 0; color: var(--vert); }
.liste-labels { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.liste-labels a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; text-align: center; }
.liste-labels .label-logo { height: 70px; }
.liste-labels img { max-height: 70px; max-width: 120px; object-fit: contain; }

/* --- accueil et blog ------------------------------------------------------------------ */
.hero { display: flex; gap: 24px; align-items: center; background: var(--vert-pale); }
.hero-texte { flex: 1; }
.hero-image { flex: 0 0 auto; width: 120px; }
@media (max-width: 600px) { .hero-image { display: none; } }
.trois { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 700px) { .trois { grid-template-columns: repeat(3, 1fr); } }
.tuile { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; margin: 0; }
.tuile:hover { outline: 2px solid var(--vert); }
.tuile-nombre { font-size: 2.2rem; font-weight: 800; color: var(--vert); line-height: 1; }
.tuile-titre { font-weight: 800; font-size: 1.2rem; }
.tuile-texte { color: var(--texte-doux); font-size: .95rem; }
.bloc h2 { margin-top: 0; }
.grille-billets { display: grid; gap: 16px; }
@media (min-width: 700px) { .grille-billets { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.billet-carte { display: flex; gap: 14px; margin: 0; padding: 16px; }
.billet-carte h2, .billet-carte h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.billet-carte a { text-decoration: none; }
.billet-carte p { margin: 0; font-size: .95rem; color: var(--texte-doux); }
.billet-image { flex: 0 0 90px; }
.billet-image img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--rayon-petit); }
.billet .wp-caption { max-width: 100%; text-align: center; margin: 1em auto; }
.billet .wp-caption-text { font-size: .9rem; color: var(--texte-doux); }
.billet .alignleft { float: left; margin: 0 16px 8px 0; }
.billet .alignright { float: right; margin: 0 0 8px 16px; }
.billet .aligncenter { display: block; margin: 1em auto; }

/* --- recherche ----------------------------------------------------------------------- */
.resultats { list-style: none; padding: 0; margin: 0; }
.resultats li { padding: 8px 0; border-top: 1px solid var(--bord); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.resultats a { font-weight: 700; }

/* --- pied de page -------------------------------------------------------------------- */
.pied { background: var(--carte); border-top: 1px solid var(--bord); margin-top: 20px; padding: 24px 0; font-size: .95rem; color: var(--texte-doux); }
.pied p { margin-bottom: .5em; }
