/* Potager — feuille de style. Pensée d'abord pour le téléphone, au jardin. */

:root {
  --fond: #f6f3ea;
  --surface: #fffdf7;
  --texte: #24301f;
  --discret: #6b7064;
  --ligne: #e3ddcc;
  --vert: #2f5d3a;
  --vert-clair: #e4eedb;
  --accent: #b9875a;

  --c-semisAbri: #8e7cc3;
  --c-semis: #6f9a3f;
  --c-plantation: #3d7ea6;
  --c-recolte: #e07a2f;

  --rayon: 14px;
  --ombre: 0 1px 2px rgb(40 50 30 / 6%), 0 2px 10px rgb(40 50 30 / 6%);
  --hauteur-onglets: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #161b14;
    --surface: #1f251c;
    --texte: #e8ecdf;
    --discret: #a1a898;
    --ligne: #343c2f;
    --vert: #8fc27a;
    --vert-clair: #27331f;
    --accent: #d1a47a;
    --ombre: none;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--fond);
  color: var(--texte);
  padding-bottom: calc(var(--hauteur-onglets) + env(safe-area-inset-bottom));
}

a { color: var(--vert); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: var(--vert);
  color: #f6f3ea;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
@media (prefers-color-scheme: dark) { .entete { background: #24391f; } }
.entete-titre { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto; }
.entete-logo { font-size: 26px; }
.entete h1 { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.entete-lieu { margin: 0; font-size: 13px; opacity: .8; }

/* ---------- Onglets du bas ---------- */
.onglets {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--hauteur-onglets) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--ligne);
}
.onglets a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; font-weight: 600; text-decoration: none; color: var(--discret);
}
.onglets a span { font-size: 22px; filter: grayscale(1); opacity: .7; }
.onglets a[aria-current="page"] { color: var(--vert); }
.onglets a[aria-current="page"] span { filter: none; opacity: 1; }

/* ---------- Écrans ---------- */
main { outline: none; }
.ecran { max-width: 720px; margin: 0 auto; padding: 18px 16px 28px; }
.ecran-titre h2 { font-size: 26px; }
.sous-titre { margin: 4px 0 0; color: var(--discret); font-size: 14px; }
.vide { color: var(--discret); text-align: center; padding: 30px 0; }
.discret { color: var(--discret); }

/* ---------- Recherche et filtres ---------- */
.recherche input {
  width: 100%; margin-top: 16px;
  font: inherit; padding: 12px 14px;
  border: 1px solid var(--ligne); border-radius: var(--rayon);
  background: var(--surface); color: var(--texte);
}
.recherche input:focus { outline: 2px solid var(--vert); outline-offset: 1px; }

.filtres {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; margin: 0 -16px; padding-inline: 16px;
  scrollbar-width: none;
}
.filtres::-webkit-scrollbar { display: none; }
.filtre {
  flex: none; font: inherit; font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ligne); background: var(--surface); color: var(--texte);
}
.filtre[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: var(--surface); }

/* ---------- Liste des plantes ---------- */
.liste-plantes { display: grid; gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .liste-plantes { grid-template-columns: 1fr 1fr; } }

.carte-plante {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--rayon);
  background: var(--surface); box-shadow: var(--ombre);
  border-left: 5px solid var(--fam);
  text-decoration: none; color: inherit;
}
.carte-plante:active { transform: scale(.99); }
.carte-emoji { font-size: 30px; width: 40px; text-align: center; }
.carte-texte { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.carte-nom { font-weight: 700; font-size: 17px; }
.carte-famille { font-size: 13px; color: var(--discret); }
.carte-pastilles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.carte-fleche { font-size: 24px; color: var(--discret); }

.pastille {
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff;
}
.pastille-semisAbri { background: var(--c-semisAbri); }
.pastille-semis { background: var(--c-semis); }
.pastille-plantation { background: var(--c-plantation); }
.pastille-recolte { background: var(--c-recolte); }

/* ---------- Fiche plante ---------- */
.retour { display: inline-block; font-weight: 600; text-decoration: none; margin-bottom: 12px; }
.fiche-entete { display: flex; gap: 14px; align-items: center; }
.fiche-emoji {
  font-size: 44px; width: 72px; height: 72px; flex: none;
  display: grid; place-items: center; border-radius: 20px;
  background: color-mix(in srgb, var(--fam) 18%, var(--surface));
}
.fiche h2 { font-size: 26px; }
.latin { margin: 2px 0 6px; font-style: italic; color: var(--discret); font-size: 14px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.etiquette {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--vert-clair); color: var(--vert);
}
.etiquette-famille { background: color-mix(in srgb, var(--fam) 20%, var(--surface)); color: var(--texte); }
.etiquette-abri { background: #f6e3cf; color: #8a4b12; }
@media (prefers-color-scheme: dark) { .etiquette-abri { background: #3d2b18; color: #f0c08f; } }
.resume { font-size: 17px; margin: 16px 0 4px; }

.bloc {
  background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 16px; margin-top: 14px;
}
.bloc h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--discret); margin-bottom: 12px; }
.bloc p { margin: 0; }

.besoins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 0; }
.besoins .large { grid-column: 1 / -1; }
.besoins div { display: flex; flex-direction: column; }
.besoins dt { font-size: 12.5px; color: var(--discret); font-weight: 600; }
.besoins dd { margin: 0; font-weight: 500; }
.jauge span { opacity: .18; filter: grayscale(1); }
.jauge span.plein { opacity: 1; filter: none; }

.conseils { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Calendrier sur 12 mois */
.calendrier { display: grid; gap: 6px; }
.cal-ligne { display: grid; grid-template-columns: 108px 1fr; align-items: center; gap: 8px; }
.cal-libelle { font-size: 13px; font-weight: 600; }
.cal-mois { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.cal-case { height: 18px; border-radius: 4px; background: var(--ligne); opacity: .6; }
.cal-case.actif { opacity: 1; }
.cal-semisAbri { background: var(--c-semisAbri); }
.cal-semis { background: var(--c-semis); }
.cal-plantation { background: var(--c-plantation); }
.cal-recolte { background: var(--c-recolte); }
.cal-case.maintenant { outline: 2px solid var(--texte); outline-offset: 1px; }
.cal-entete .cal-mois span { text-align: center; font-size: 11px; color: var(--discret); }
.cal-entete .cal-mois span.maintenant { color: var(--texte); font-weight: 800; }

/* Associations */
.asso-titre { font-size: 15px; margin: 14px 0 8px; }
.asso-titre:first-child { margin-top: 0; }
.asso-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.asso { padding: 10px 12px; border-radius: 10px; border-left: 4px solid; background: var(--fond); }
.asso-favorable { border-color: #6f9a3f; }
.asso-defavorable { border-color: #c8553d; }
.asso-info { border-color: #5a7d9a; }
.asso-plante { font-weight: 700; text-decoration: none; margin-right: 6px; }
.asso p { margin: 4px 0 0; font-size: 14.5px; }
.confiance { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.conf-prouvee { background: #dcebd0; color: #2f5d1a; }
.conf-courante { background: #e3e8f0; color: #34506e; }
.conf-anecdotique { background: #f0e8d8; color: #7a5a1c; }
.conf-mythe { background: #f3dcdc; color: #8a2b2b; }
@media (prefers-color-scheme: dark) {
  .conf-prouvee { background: #2c4022; color: #bfe0a5; }
  .conf-courante { background: #2a3442; color: #b8cbe3; }
  .conf-anecdotique { background: #3e3420; color: #e6cb92; }
  .conf-mythe { background: #452626; color: #efb3b3; }
}

/* Écrans à venir */
.bientot { text-align: center; padding-top: 48px; }
.bientot-emoji { font-size: 56px; }
.bientot h2 { margin: 8px 0 12px; font-size: 24px; }
.bientot p { max-width: 460px; margin: 0 auto 16px; color: var(--discret); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--vert);
  background: var(--vert); color: var(--surface); text-decoration: none; cursor: pointer;
}
.bouton.secondaire { background: var(--surface); color: var(--vert); }
.bouton.danger { background: var(--surface); color: #b23b2a; border-color: #e3c2bb; }
.bouton:disabled { opacity: .6; cursor: default; }
.bouton-large { width: 100%; margin-top: 14px; }

/* ---------- Plan ---------- */
.plan { display: block; width: 100%; height: auto; }
.plan-sol { fill: #dfe9cf; }
.plan-bord { fill: none; stroke: var(--vert); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.plan-grille line { stroke: rgb(47 93 58 / 18%); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-zone { fill: #8b6142; stroke: #6d4a31; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-cote { fill: var(--discret); font-weight: 600; }
.plan-boussole circle { fill: var(--surface); stroke: var(--ligne); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-boussole path { fill: #c8553d; }
.plan-boussole text { fill: #c8553d; font-weight: 800; }
@media (prefers-color-scheme: dark) {
  .plan-sol { fill: #2b3a24; }
  .plan-zone { fill: #7a5538; stroke: #a07657; }
  .plan-grille line { stroke: rgb(200 230 180 / 12%); }
}

.apercu {
  background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 8px; margin-top: 12px;
}
.apercu .plan { max-height: 42vh; }
.apercu-grand .plan { max-height: 60vh; }
.apercu-infos { text-align: center; font-size: 14px; color: var(--discret); margin: 8px 0 4px; }
.apercu-infos strong { color: var(--texte); }

/* ---------- Assistant ---------- */
.assistant h2 { font-size: 24px; }
.etapes {
  list-style: none; display: flex; gap: 6px; padding: 0; margin: 12px -16px 0; padding-inline: 16px;
  overflow-x: auto; scrollbar-width: none;
}
.etapes::-webkit-scrollbar { display: none; }
.etapes button {
  font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--ligne);
  background: var(--surface); color: var(--discret); cursor: pointer;
}
.etapes .faite button { color: var(--vert); border-color: var(--vert); }
.etapes .en-cours button { background: var(--vert); color: var(--surface); border-color: var(--vert); }
.etapes button:disabled { cursor: default; opacity: .6; }

.etape-contenu { margin-top: 14px; }
.etape-contenu h3 { font-size: 19px; margin-bottom: 4px; }
.aide { color: var(--discret); font-size: 14px; margin: 4px 0 12px; }
.conseil {
  background: var(--vert-clair); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; margin: 14px 0 0;
}
.conseil:empty { display: none; }

.choix { display: grid; gap: 8px; }
.choix-4 { grid-template-columns: repeat(4, 1fr); }
.choix-3 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .choix-3 { grid-template-columns: repeat(3, 1fr); } }
.choix-carte {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--texte);
  padding: 10px 6px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--ligne); background: var(--surface);
}
.choix-carte[aria-pressed="true"] { border-color: var(--vert); background: var(--vert-clair); }
.choix-texte { align-items: flex-start; text-align: left; padding: 12px; }
.choix-texte span { font-weight: 400; color: var(--discret); font-size: 13.5px; }
.icone-forme { width: 44px; height: 42px; }
.icone-forme polygon { fill: #cfe0b8; stroke: var(--vert); stroke-width: 2; stroke-linejoin: round; }

.curseur { display: block; margin: 14px 0; }
.curseur-entete { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.curseur output { font-variant-numeric: tabular-nums; color: var(--vert); font-weight: 800; }
.curseur input { width: 100%; margin-top: 6px; accent-color: var(--vert); height: 28px; }

.rose { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; justify-content: center; margin: 10px 0 14px; }
.rose-btn {
  height: 64px; font-size: 28px; border-radius: 14px; cursor: pointer;
  border: 2px solid var(--ligne); background: var(--surface); color: var(--texte);
}
.rose-btn[aria-pressed="true"] { border-color: #c8553d; background: #f6dfd8; color: #9a3a26; }
@media (prefers-color-scheme: dark) { .rose-btn[aria-pressed="true"] { background: #4a2a22; color: #f2b8a8; } }
.rose-centre { display: grid; place-items: center; font-weight: 800; color: var(--discret); }
.bouton-boussole { width: 100%; }

.bascule { display: flex; border: 1px solid var(--ligne); border-radius: 12px; overflow: hidden; margin: 8px 0; }
.bascule button {
  flex: 1; font: inherit; font-weight: 600; font-size: 14.5px; padding: 10px; cursor: pointer;
  border: 0; background: var(--surface); color: var(--texte);
}
.bascule button[aria-pressed="true"] { background: var(--vert); color: var(--surface); }

.champ input {
  width: 100%; font: inherit; padding: 12px 14px; margin-top: 8px;
  border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--surface); color: var(--texte);
}
.champ input:focus { outline: 2px solid var(--vert); outline-offset: 1px; }

.assistant-boutons { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.assistant-boutons .bouton { flex: 1; }
.assistant-boutons span { flex: 1; }

/* ---------- Jardin ---------- */
.titre-section { font-size: 18px; margin: 22px 0 10px; }
.bilan-chiffres { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; flex-wrap: wrap; }
.barre { height: 12px; border-radius: 999px; background: var(--ligne); overflow: hidden; margin: 8px 0; }
.barre span { display: block; height: 100%; background: var(--vert); border-radius: 999px; transition: width .3s; }
.bilan-message { font-size: 15px; margin: 6px 0 12px !important; }
.reglage-ligne { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.compteur { display: flex; align-items: center; gap: 4px; }
.compteur button {
  width: 38px; height: 38px; border-radius: 10px; font-size: 20px; cursor: pointer;
  border: 1px solid var(--ligne); background: var(--fond); color: var(--texte);
}
.compteur output { min-width: 32px; text-align: center; font-weight: 800; font-size: 17px; }
.objectifs { margin: 6px 0 0; padding: 4px 0 !important; flex-wrap: wrap; overflow: visible; }

.vide-coins { background: var(--surface); border: 2px dashed var(--ligne); border-radius: var(--rayon); padding: 14px 16px; color: var(--discret); }
.vide-coins p { margin: 0; }
.liste-coins { display: grid; gap: 8px; }
.carte-coin {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--rayon);
  background: var(--surface); box-shadow: var(--ombre); text-decoration: none; color: inherit;
}
.carte-coin-plan { width: 72px; flex: none; }

/* ---------- Plantations ---------- */
.plan-plante { opacity: .88; }
.plan-zone-contour { fill: none; stroke: #6d4a31; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan-numero { fill: rgb(255 255 255 / 70%); font-weight: 800; }
.plan-succession { fill: #fff; }
.plan-zone-groupe[data-zone] { cursor: pointer; }
.plan-zone-groupe[data-zone]:hover .plan-zone-contour,
.plan-zone-groupe[data-zone]:focus-visible .plan-zone-contour { stroke: var(--texte); stroke-width: 3; }
.plan-zone-groupe:focus { outline: none; }
.plan-zone-groupe.alerte .plan-zone-contour { stroke: #d1342b; stroke-width: 3; stroke-dasharray: 5 3; }
.plan-zone-groupe.selection .plan-zone-contour { stroke: #f2b632; stroke-width: 4; }
.apercu-petit .plan { max-height: 26vh; }
.centre { text-align: center; }

.saison {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; font-size: 15px;
}
.saison button {
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
  border: 1px solid var(--ligne); background: var(--surface); color: var(--texte);
}

.bloc-alertes { border-left: 5px solid #d1342b; }
.alertes { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; }
.alertes-encadre { background: #fbe9e6; border-radius: 10px; padding: 10px 12px 10px 28px; margin: 12px 0 0; }
@media (prefers-color-scheme: dark) { .alertes-encadre { background: #3d2320; } }
.ok { text-align: center; color: var(--vert); font-weight: 600; font-size: 14.5px; margin: 10px 0 0; }

.recap { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.recap li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.recap li span:last-child { color: var(--discret); white-space: nowrap; }

.occupation { margin-top: 12px; }
.occupation p { margin: 0; text-align: center; font-size: 14.5px; color: var(--discret); }
.occupation strong { color: var(--texte); }
.barre span.deborde { background: #d1342b; }

.plantations { display: grid; gap: 10px; margin-top: 14px; }
.plantation {
  background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre);
  border-left: 5px solid var(--fam); padding: 12px 14px;
}
.plantation .curseur { margin: 8px 0 6px; }
.plantation-entete { display: flex; justify-content: space-between; align-items: center; }
.plantation-nom { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--texte); }
.retirer {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px;
  border: 1px solid var(--ligne); background: var(--fond); color: var(--discret);
}
.case { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--discret); }
.case input { margin-top: 3px; accent-color: var(--vert); }

.carte-choix { font: inherit; text-align: left; width: 100%; border-top: 0; border-right: 0; border-bottom: 0; cursor: pointer; }
.notes { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.note { font-size: 12.5px; color: var(--discret); }
.note-bien { color: #4d7a22; font-weight: 600; }
.note-mal { color: #b23b2a; font-weight: 600; }
@media (prefers-color-scheme: dark) { .note-bien { color: #a9d68a; } .note-mal { color: #f0a090; } }

.bilan-plantes { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bilan-plantes li { display: grid; grid-template-columns: 1fr 70px auto; align-items: center; gap: 10px; font-size: 14.5px; }
.bilan-plantes a { text-decoration: none; color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bilan-plantes .chiffre { color: var(--discret); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; min-width: 74px; }
.mini-barre { height: 8px; border-radius: 999px; background: var(--ligne); overflow: hidden; }
.mini-barre span { display: block; height: 100%; background: #e0a43e; }
.bilan-plantes .complet .mini-barre span { background: var(--vert); }

/* ---------- Météo ---------- */
.lien { font: inherit; background: none; border: 0; padding: 0; color: var(--vert); text-decoration: underline; cursor: pointer; }
.bloc-gel { border-left: 5px solid #3d7ea6; }
.bloc-gel p, .bloc-ok p { margin: 0 0 6px; }
.bloc-ok { border-left: 5px solid var(--vert); }
.grand-chiffre { font-size: 28px; font-weight: 800; margin: 0 0 8px !important; }
.grand-chiffre span { display: block; font-size: 13px; font-weight: 500; color: var(--discret); }
.bloc p + p { margin-top: 6px; }

.jours { list-style: none; margin: 0; padding: 0; }
.jours li {
  display: grid; grid-template-columns: 1fr 34px 82px 72px; align-items: center; gap: 6px;
  padding: 8px 0; border-top: 1px solid var(--ligne); font-size: 15px; position: relative;
}
.jours li:first-child { border-top: 0; }
.jours li.tendance { opacity: .72; }
.jours .separateur {
  grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--discret);
  text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 2px;
}
.jour-nom { font-weight: 600; text-transform: capitalize; }
.jour-temps { font-size: 22px; text-align: center; }
.jour-t { font-variant-numeric: tabular-nums; text-align: right; color: var(--discret); }
.tmin { color: var(--texte); font-weight: 700; }
.tmin.gel { color: #fff; background: #3d7ea6; border-radius: 6px; padding: 0 5px; }
.tmin.gelee-blanche { color: #3d7ea6; }
.jour-pluie { font-size: 13px; color: var(--discret); text-align: right; }

.climat { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 560px) { .climat { grid-template-columns: 1fr 1fr; } }
.climat > div { display: flex; flex-direction: column; background: var(--fond); border-radius: 10px; padding: 10px 12px; }
.climat-titre { font-size: 12.5px; font-weight: 700; color: var(--discret); text-transform: uppercase; letter-spacing: .04em; }
.climat > div > strong { font-size: 22px; }
.climat > div > span:last-child { font-size: 13.5px; color: var(--discret); }
.source { text-align: center; font-size: 12.5px; color: var(--discret); margin-top: 18px; }

/* ---------- Calendrier ---------- */
.mois strong { font-size: 18px; }
.bandeau-meteo {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 12px; padding: 10px 14px; border-radius: 12px; text-decoration: none;
  background: var(--vert-clair); color: var(--texte); font-size: 14.5px; font-weight: 600;
}
.bandeau-meteo.gel { background: #dcebf5; color: #1f4d6b; }
@media (prefers-color-scheme: dark) { .bandeau-meteo.gel { background: #1d3442; color: #b9d8ee; } }
.activite { border-left: 5px solid var(--act); }
.activite h3 { color: var(--act); }
.taches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.taches li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.taches a { font-weight: 600; text-decoration: none; color: var(--texte); }
.taches .hors-jardin a { color: var(--discret); font-weight: 500; }

/* ---------- Ajouts : serre, déplacements, carnet, archives ---------- */
.onglets { grid-template-columns: repeat(5, 1fr); }
.onglets a { font-size: 11.5px; }
.case-grande { margin-top: 16px; padding: 12px; border: 2px solid var(--ligne); border-radius: 12px; background: var(--surface); font-size: 14.5px; color: var(--texte); }
.case-grande input { width: 20px; height: 20px; flex: none; }
.bloc-serre { border-left: 5px solid #8a4b12; }
.apercu-serre { outline: 3px dashed #d9a066; outline-offset: -6px; }
.ecran-titre h2 .etiquette { vertical-align: middle; font-size: 13px; }
.bascule-petite { margin: 0 0 12px; }
.bascule-petite button { padding: 7px; font-size: 13.5px; }
.note-serre { margin-top: 10px !important; }

.plantation-actions { display: flex; gap: 4px; }
.retirer:disabled { opacity: .35; cursor: default; }
.deplacer { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; color: var(--discret); }
.deplacer select, .echange select {
  flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 7px 8px; border-radius: 10px;
  border: 1px solid var(--ligne); background: var(--fond); color: var(--texte);
}
.echange { display: flex; gap: 8px; }
.echange .bouton { padding: 8px 14px; font-size: 14.5px; }

.formulaire { display: grid; gap: 14px; margin-top: 14px; }
.formulaire .champ { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; border: 0; padding: 0; margin: 0; }
.formulaire .champ input, .formulaire .champ select, .formulaire .champ textarea {
  font: inherit; font-weight: 400; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--ligne); background: var(--surface); color: var(--texte); margin: 0; width: 100%;
}
.formulaire legend { font-weight: 600; margin-bottom: 6px; }
.recolte-ligne { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }

.liste-notes { display: grid; gap: 8px; }
.carte-note {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--rayon);
  background: var(--surface); box-shadow: var(--ombre); text-decoration: none; color: inherit;
}
.note-date { font-size: 13px; font-weight: 700; color: var(--discret); text-transform: capitalize; }
.note-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.note-tags:empty { display: none; }
.note-texte { white-space: pre-wrap; }
.etiquette-recolte { background: #f6e3cf; color: #8a4b12; }

.annee-badge { font-size: 22px; font-weight: 800; color: var(--vert); min-width: 64px; }
.apercu-archive .plan { max-height: 30vh; margin-bottom: 10px; }
.bilan-meteo { margin-top: 12px; }

/* ---------- Ajout de plantes ---------- */
.bouton-ajout { width: 100%; margin-top: 12px; }
.etiquette-perso { background: #e8e0f3; color: #5b3f86; }
@media (prefers-color-scheme: dark) { .etiquette-perso { background: #352a45; color: #cdb8ee; } }
.ligne-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ligne-2:has(.champ-emoji) { grid-template-columns: 1fr 80px; }
.ligne-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ligne-3 .champ span { font-size: 13px; }
.champ-emoji input { text-align: center; font-size: 20px; }
.calendrier-edition .cal-bouton { border: 0; padding: 0; cursor: pointer; height: 30px; }
.calendrier-edition .cal-ligne { grid-template-columns: 92px 1fr; }
.formulaire .titre-section { margin: 8px 0 -4px; }

/* ---------- Astuces ---------- */
.bascule a {
  flex: 1; text-align: center; font-weight: 600; font-size: 14.5px; padding: 10px;
  text-decoration: none; background: var(--surface); color: var(--texte);
}
.bascule a.actif { background: var(--vert); color: var(--surface); }
.liste-astuces { display: grid; gap: 10px; margin-top: 12px; }
.astuce {
  background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre);
  border-left: 5px solid #e0a43e; padding: 12px 14px;
}
.bloc .astuce { box-shadow: none; background: var(--fond); margin-bottom: 8px; }
.astuce p { margin: 6px 0 !important; }
.astuce-entete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.astuce-source { font-weight: 700; font-size: 14.5px; }
.astuce-lien { font-weight: 700; font-size: 14px; white-space: nowrap; }
.astuce-modifier { display: inline-block; margin-top: 8px; font-size: 13.5px; }
.lien-ajout { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 14.5px; }
.ligne-coller { display: flex; gap: 8px; }
.ligne-coller input { flex: 1; min-width: 0; }
.ligne-coller .bouton { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puce {
  font: inherit; font-size: 13.5px; padding: 6px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ligne); background: var(--surface); color: var(--texte);
}
.puce[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: var(--surface); }

/* ---------- Réglages ---------- */
.entete-titre { position: relative; }
.entete-reglages { margin-left: auto; font-size: 22px; text-decoration: none; padding: 6px; border-radius: 10px; }
.entete-reglages:hover { background: rgb(255 255 255 / 12%); }
.echange input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--fond); color: var(--texte); }
.credit-bas .barre span { background: #e0a43e; }
.credit-vide .barre span { background: #d1342b; }
.estimations { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.estimations .ou { color: var(--discret); font-size: 13px; padding-left: 12px; }
.reglage-modele { padding: 12px 0; border-top: 1px solid var(--ligne); }
.reglage-modele:first-of-type { border-top: 0; padding-top: 0; }
.reglage-modele select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte); }
.reglage-modele .champ { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.conseil-modele { margin-top: 8px !important; }

/* ---------- Boutons Claude ---------- */
.bouton-claude {
  width: 100%; background: linear-gradient(135deg, #6b4fa0, #8e6cc9); border-color: #6b4fa0; color: #fff; cursor: pointer;
}
.bouton-claude:disabled { opacity: .75; }
.claude-astuce { display: grid; gap: 6px; }
.claude-astuce .lien { font-size: 14px; justify-self: center; }
.claude-astuce .conseil { margin: 0; }

/* ---------- Modes de culture ---------- */
.support-bac-sur-pied .plan-zone, .support-bac-au-sol .plan-zone { fill: #7a5538; }
.support-bac-sur-pied .plan-zone-contour, .support-bac-au-sol .plan-zone-contour { stroke: #a8763e; stroke-width: 4; }
.support-bac-sur-pied .plan-sol, .support-bac-au-sol .plan-sol { fill: #ece6d6; }
.support-botte-de-paille .plan-zone { fill: #e2c46a; }
.support-botte-de-paille .plan-zone-contour { stroke: #b8962f; stroke-width: 2; }
.support-butte .plan-zone { fill: #6e4b30; }
.support-butte .plan-zone-contour { stroke: #4e3220; stroke-width: 2; }
.plan-treillis { stroke: #3b5d2a; stroke-width: 5; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
@media (prefers-color-scheme: dark) {
  .support-bac-sur-pied .plan-sol, .support-bac-au-sol .plan-sol { fill: #2f2a22; }
  .plan-treillis { stroke: #a9d68a; }
}
.bloc-support { border-left: 5px solid #a8763e; }
