/* Quand planter chez moi — feuille de style.
   Socle fixe (vert feuillage, typographie, mise en page) ; la classe de saison posée sur <body> change la photo,
   le voile du bandeau, la couleur d'accent et la teinte d'un sachet. Mobile d'abord. */
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-display:swap;font-weight:200 800;
  src:url(/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2212}
:root{
  --bg:#eef2e6; --surface:#f8faf3; --ink:#1d281d; --muted:#5a6855; --line:#d6ddcb;
  --feuille:#2e6a3a; --gel:#3c6fb0;
  --c-hiver:#8fb4de; --c-printemps:#95c85a; --c-ete:#f0c248; --c-automne:#e38a3c; --vide:#e3e8d9; --ok:#6fb04a; --prudence:#e8a13c; --abri:#86bdb4;
  --hero:#21402a; --hero-ink:#f1f5e9; --hero-muted:#c3d1bb;
  --sachet-a:#ece0cb; --sachet-b:#d6e6c4;
  --saison:#c8601f; --saison-vif:#f29a5c; --sachet-c:#f3d6c0; --voile:18,36,23;
  --display:"Bricolage Grotesque",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
.s-hiver{--saison:#a32638;--saison-vif:#ff8a94;--sachet-c:#f1d3d6;--voile:20,32,44;--photo:url(/assets/photos/hiver.jpg);--photo-m:url(/assets/photos/hiver-m.jpg);--photo-pos:50% 55%}
.s-printemps{--saison:#4c861c;--saison-vif:#b5e37c;--sachet-c:#e2efc6;--voile:24,46,24;--photo:url(/assets/photos/printemps.jpg);--photo-m:url(/assets/photos/printemps-m.jpg);--photo-pos:70% 50%}
.s-ete{--saison:#c63d1f;--saison-vif:#ff8f6b;--sachet-c:#f6d2c6;--voile:18,36,23;--photo:url(/assets/photos/ete.jpg);--photo-m:url(/assets/photos/ete-m.jpg);--photo-pos:50% 60%}
.s-automne{--saison:#c8601f;--saison-vif:#f29a5c;--sachet-c:#f3d6c0;--voile:18,36,23;--photo:url(/assets/photos/automne.jpg);--photo-m:url(/assets/photos/automne-m.jpg);--photo-pos:60% 55%}
@media (prefers-color-scheme:dark){
  :root{--bg:#121812;--surface:#1a221a;--ink:#e7ede0;--muted:#9caa95;--line:#2b352a;--feuille:#7cc38c;--gel:#8db2ea;
    --c-hiver:#5f86ba;--c-printemps:#78a944;--c-ete:#cfa22f;--c-automne:#c46f2b;--vide:#243024;--ok:#5e9a3c;--prudence:#c98a2c;--abri:#3d7a72;--hero:#172d1e;--hero-ink:#eef3e6;--hero-muted:#a9bba0;--sachet-a:#3a3225;--sachet-b:#25331f;color-scheme:dark}
  .s-hiver{--saison:#ff8a94;--sachet-c:#3d2226} .s-printemps{--saison:#a9d872;--sachet-c:#2a3a1c}
  .s-ete{--saison:#ff8f6b;--sachet-c:#40241c} .s-automne{--saison:#ee9257;--sachet-c:#3d291c}
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.55 var(--sans);-webkit-font-smoothing:antialiased}
.col{max-width:760px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
a{color:inherit}
:focus-visible{outline:3px solid var(--saison);outline-offset:3px;border-radius:8px}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance}
p{margin:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;z-index:20;background:var(--surface);padding:8px 12px;border-radius:8px}
.discret{font-size:14px;color:var(--muted)}

/* Bandeau photo */
.bandeau{color:var(--hero-ink);background:linear-gradient(100deg,rgba(var(--voile),.93) 0%,rgba(var(--voile),.78) 45%,rgba(var(--voile),.22) 100%),var(--photo-m) var(--photo-pos)/cover no-repeat var(--hero)}
@media (min-width:700px){.bandeau{background-image:linear-gradient(100deg,rgba(var(--voile),.93) 0%,rgba(var(--voile),.78) 45%,rgba(var(--voile),.22) 100%),var(--photo)}}
.bandeau>.col{padding-block:max(18px,env(safe-area-inset-top,0px)) 64px;display:grid;gap:28px}
.bandeau-txt{display:grid;gap:14px}
.entete{background:var(--hero);color:var(--hero-ink)}
.entete>.col{padding-block:max(16px,env(safe-area-inset-top,0px)) 16px}
.haut{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.marque{font-family:var(--display);font-weight:700;font-size:19px;letter-spacing:-.01em;text-decoration:none}
.marque span{color:var(--saison-vif)}
.loupe{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:inherit;cursor:pointer}
.loupe:hover{background:rgba(255,255,255,.24)}
.panneau-recherche{margin-top:12px}
.panneau-recherche .recherche input{width:100%;max-width:520px;font-size:18px;padding:14px 20px;background:rgba(255,255,255,.95);color:#1d281d}
.panneau-recherche .recherche input::placeholder{color:#5a6855}
.changer{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.5)}
.changer:hover{text-decoration-color:currentColor}
.recherche{position:relative}
.recherche input,.grande-recherche input{font:inherit;font-size:15px;width:min(240px,60vw);padding:8px 14px;border-radius:999px;border:0;background:rgba(255,255,255,.14);color:var(--hero-ink)}
.recherche input::placeholder,.grande-recherche input::placeholder{color:var(--hero-muted)}
.lieu{font-size:15px;color:var(--hero-muted);letter-spacing:.01em}
.bandeau h1{font-size:clamp(36px,7.4vw,62px);line-height:1.02;letter-spacing:-.03em;font-weight:750;max-width:17ch}
.bandeau h1 em{font-style:normal;color:var(--saison-vif)}
.meteo{display:flex;gap:10px;align-items:center;font-size:16px;max-width:48ch}
.meteo .point{width:10px;height:10px;border-radius:50%;background:#8fd19e;flex:none}
.meteo.gel .point{background:#8db2ea}
.credit{font-size:11px;color:var(--hero-muted);justify-self:end;opacity:.85}
.ariane{font-size:13px;color:var(--hero-muted);display:flex;gap:6px;flex-wrap:wrap}
.page .ariane{color:var(--muted)}
.ariane a{text-decoration:none}

/* Suggestions de communes */
.suggestions{position:absolute;z-index:30;top:calc(100% + 6px);left:0;min-width:100%;width:max-content;max-width:min(360px,90vw);background:var(--surface);color:var(--ink);border-radius:14px;box-shadow:0 12px 40px -12px rgba(0,0,0,.35);padding:6px;display:grid}
.suggestions a{display:flex;justify-content:space-between;gap:14px;padding:9px 12px;border-radius:10px;text-decoration:none;font-size:15px}
.suggestions a:hover,.suggestions a[aria-selected="true"]{background:var(--bg)}
.suggestions small{color:var(--muted)}

/* Accueil */
.grande-recherche{position:relative;display:flex;flex-wrap:wrap;gap:10px;max-width:520px}
.grande-recherche input{flex:1 1 240px;width:auto;font-size:18px;padding:14px 20px;background:rgba(255,255,255,.95);color:#1d281d}
.grande-recherche input::placeholder{color:#5a6855}
.autour{font:inherit;font-weight:600;font-size:16px;border:0;border-radius:999px;padding:14px 20px;background:var(--saison-vif);color:#1d281d;cursor:pointer}
.villes{font-size:16px;line-height:1.9}
.villes a{text-decoration:none;border-bottom:1px solid var(--line)}

/* Contenu */
.contenu{display:grid;gap:56px;padding-block:36px 24px}
.sachets{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:-64px}
.sachet{background:var(--surface);border-radius:20px;overflow:hidden;display:grid;grid-template-rows:auto 1fr;box-shadow:0 1px 0 var(--line),0 10px 30px -18px rgba(20,40,20,.35)}
.sachet .face{padding:18px 18px 16px;display:grid;gap:2px}
.sachet .geste{font-size:13px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;opacity:.75}
.sachet h2{font-size:30px;font-weight:750;letter-spacing:-.02em;line-height:1.05}
.sachet .dos{padding:14px 18px 18px;display:grid;gap:6px;font-size:15px;align-content:start}
.sachet .quand{font-weight:600}
.sachet .pourquoi{color:var(--muted)}
.sachet.a .face{background:var(--sachet-a)}.sachet.b .face{background:var(--sachet-b)}.sachet.c .face{background:var(--sachet-c)}
h2{font-size:26px;letter-spacing:-.02em;font-weight:700}
.bloc{display:grid;gap:14px}
.nuits{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center;font-variant-numeric:tabular-nums}
.nuit{display:grid;gap:2px;padding:10px 0;border-radius:14px}
.nuit .j{font-size:13px;color:var(--muted)}
.nuit .t{font-family:var(--display);font-size:26px;font-weight:700;letter-spacing:-.02em}
.nuit.froide .t{color:var(--gel);text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}
.faits{font-size:16px;color:var(--muted);max-width:64ch}
.nuit.auj{background:var(--surface)}
.reperes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:22px 28px}
.repere{display:grid;gap:4px;align-content:start;border-top:2px solid var(--line);padding-top:14px}
.repere .date{font-family:var(--display);font-size:34px;font-weight:750;letter-spacing:-.025em;line-height:1}
.repere.printemps .date{color:var(--feuille)}.repere.automne .date{color:var(--saison)}
.repere p{font-size:15px;color:var(--muted)}
.suite{display:flex;flex-wrap:wrap;gap:10px}
.suite a{text-decoration:none;font-weight:600;padding:12px 18px;border-radius:999px;background:var(--feuille);color:var(--bg)}
.suite a.second{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line)}
.voisines{font-size:15px;color:var(--muted)}
.voisines a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line)}
.methode-courte{font-size:14px;color:var(--muted)}
.methode-courte summary{cursor:pointer;color:var(--ink)}
.methode-courte p{margin-top:6px}

/* Pages simples */
.page{padding-block:28px 40px;display:grid;gap:18px}
.page h1{font-size:clamp(30px,5.5vw,44px);letter-spacing:-.025em;line-height:1.08}
.chapo{font-size:18px;color:var(--muted);max-width:60ch}
.texte{max-width:760px}
.texte h2{font-size:22px;margin-top:10px}
.texte p{max-width:66ch}
.communes{list-style:none;margin:0;padding:0;columns:2 220px;column-gap:28px}
.communes li{padding:6px 0;break-inside:avoid;border-bottom:1px solid var(--line)}
.communes a{text-decoration:none}
.calendrier{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.calendrier li{background:var(--surface);border-radius:16px;padding:16px 18px;display:grid;gap:4px}
.calendrier li>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.calendrier h2{font-size:22px;display:flex;align-items:center;gap:12px}
.calendrier .picto-carte{width:40px;height:40px}
.calendrier h2 .initiale{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--vide);color:var(--muted);font-size:17px}
.calendrier .mode{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.calendrier .dates{font-weight:600}
.calendrier .ouverte{box-shadow:inset 0 0 0 2px var(--feuille)}
.calendrier .source{font-size:13px;color:var(--muted)}
.carte{height:min(70vh,640px);margin:0 max(20px,env(safe-area-inset-left,0px)) 40px;border-radius:20px;overflow:hidden;background:var(--surface)}
@media (min-width:820px){.carte{max-width:1100px;margin-inline:auto}}

/* Pied */
.pied{border-top:1px solid var(--line);margin-top:24px}
.pied .col{padding-block:22px max(40px,env(safe-area-inset-bottom,0px));display:grid;gap:10px;font-size:13px;color:var(--muted)}
.pied nav{display:flex;flex-wrap:wrap;gap:8px 18px}
.pied nav a{color:var(--ink);text-decoration:none}
@media (max-width:520px){
  .sachets{margin-top:-48px;gap:10px}.nuit .t{font-size:21px}
  /* Sur mobile, les encadrés se resserrent pour que le bouton du calendrier reste visible sans défiler : le conseil est limité à deux lignes, la suite est sur le calendrier. */
  .sachet .face{padding:12px 16px 10px}.sachet h2{font-size:26px}
  .sachet .dos{padding:10px 16px 14px;gap:4px;font-size:14px}
  .sachet .pourquoi{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .suite-haut a{flex:1 1 100%;text-align:center}
  .bandeau>.col{gap:16px;padding-bottom:56px}.bandeau-txt{gap:10px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.calendrier .source summary{cursor:pointer}
.calendrier .source ul{margin:6px 0 0;padding-left:18px;display:grid;gap:4px}
.texte ul{margin:0;padding-left:20px;display:grid;gap:6px;max-width:66ch}

/* Calculateurs */
.calcs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.calcs a{display:grid;gap:4px;background:var(--surface);border-radius:18px;padding:18px;text-decoration:none;height:100%}
.calcs h2{font-size:22px}.calcs p{font-size:15px;color:var(--muted)}
.calc{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;align-items:start}
.calc form{background:var(--surface);border-radius:20px;padding:18px;display:grid;gap:14px}
.champ{display:grid;gap:6px;font-size:15px;border:0;margin:0;padding:0}
.champ>span:first-child,.champ legend{font-weight:600}
.saisie{display:flex;align-items:center;gap:8px}
.saisie input,.champ select{font:inherit;font-size:18px;width:100%;padding:10px 12px;border-radius:12px;border:1.5px solid var(--line);background:var(--bg);color:var(--ink)}
.saisie em{font-style:normal;color:var(--muted);min-width:2.5em}
.radios{display:flex;flex-wrap:wrap;gap:6px 16px}
.resultat{display:grid;gap:10px;padding:6px 2px}
.res{display:grid;gap:0}
.res-v{font-family:var(--display);font-size:34px;font-weight:750;letter-spacing:-.02em;line-height:1.1;color:var(--feuille)}
.res-t{font-size:15px;color:var(--muted)}
.verdict{font-weight:600;padding:10px 14px;border-radius:12px}
.verdict.ok{background:var(--sachet-b)}.verdict.ko{background:var(--sachet-c)}
.hypotheses{font-size:14px;color:var(--muted)}
.hypotheses summary{cursor:pointer}
.hypotheses[open] summary{margin-bottom:8px}
.hypotheses .citations{font-size:13px}
.hypotheses>*+*{margin-top:8px}
.hypotheses ul{margin:0;padding-left:20px;display:grid;gap:4px}
.hypotheses .src{color:var(--muted);font-size:13px}
.prudence{font-size:14px;color:var(--muted);border-left:3px solid var(--line);padding-left:12px}

/* Guides */
.guide h2{font-size:24px;margin-top:14px}
.guide h3{font-size:19px;margin-top:6px}
.guide p,.guide li{max-width:66ch}
.guide a{color:var(--feuille)}
.guide ul,.guide ol{margin:0;padding-left:22px;display:grid;gap:6px}
.sources-guide{font-size:14px;color:var(--muted)}
.calcs h3{font-family:var(--display);font-size:20px}
.tableau{overflow-x:auto;margin:0 calc(-1 * max(20px,env(safe-area-inset-left,0px)));padding:0 max(20px,env(safe-area-inset-left,0px))}
.tableau table{font-size:13px;min-width:720px;font-variant-numeric:tabular-nums}
.tableau th{vertical-align:bottom}
.sous-titre{font-size:20px;margin-top:36px}

/* Calendrier visuel : douze mois par plante, couleur de la saison */
.annee{margin:18px 0 26px;display:grid;gap:10px}
.legende{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:14px}
.legende li::before{content:"";display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:6px;vertical-align:-1px;background:var(--c)}
.legende .l-ok{--c:var(--ok)}.legende .l-abri{--c:var(--abri)}.legende .l-prudence{--c:var(--prudence)}.legende .l-vide{--c:var(--vide)}
.hiver{--c:var(--c-hiver)}.printemps{--c:var(--c-printemps)}.ete{--c:var(--c-ete)}.automne{--c:var(--c-automne)}
.grille-annee{display:grid;gap:8px;background:var(--surface);border-radius:20px;padding:14px 14px 16px}
.ligne-mois,.ligne-plante{display:grid;grid-template-columns:minmax(96px,150px) 1fr;align-items:center;gap:10px}
.mois{display:grid;grid-template-columns:repeat(12,1fr);gap:3px;min-width:0}
.ligne-mois .mois span{font-size:11px;text-align:center;color:var(--muted);border-radius:6px;padding:1px 0 3px;border-bottom:3px solid var(--c)}
.mois .maintenant{box-shadow:0 0 0 2px var(--ink)}
.ligne-mois .maintenant{font-weight:700;color:var(--ink)}
.ligne-plante .mois span{height:26px;border-radius:7px;background:var(--vide)}
.nom-plante{display:flex;align-items:center;gap:8px;font-weight:650;font-size:15px;line-height:1.15;min-width:0}
.picto{width:32px;height:32px;flex:none}
.initiale{display:grid;place-items:center;border-radius:50%;background:var(--vide);font-family:var(--display);font-weight:700;color:var(--muted);font-size:15px}
@media (max-width:520px){
  .ligne-plante{grid-template-columns:1fr;gap:4px}.ligne-mois{grid-template-columns:1fr}.ligne-mois>span{display:none}
  .ligne-plante .mois span{height:22px}.grille-annee{padding:12px 10px 14px}
}
/* Encadrés de la semaine cliquables */
.sachet{position:relative}
.sachet .face{grid-template-columns:1fr auto;align-items:center}
.sachet .face .geste{grid-column:1}.sachet .face h2{grid-column:1}
.picto-sachet{grid-column:2;grid-row:1/3;width:48px;height:48px}
.sachet.cliquable h2 a{color:inherit;text-decoration:none}
.sachet.cliquable h2 a::after{content:"";position:absolute;inset:0;border-radius:20px}
.sachet.cliquable h2 a:focus-visible{outline:none}
.sachet.cliquable:focus-within,.sachet.cliquable:hover{box-shadow:0 0 0 2px var(--saison),0 10px 30px -18px rgba(20,40,20,.35)}
.sachet.cliquable .dos::after{content:"Lire les conseils →";font-size:14px;font-weight:600;color:var(--saison);margin-top:4px}
.sachet.avec-pas .dos::after{content:"Voir le pas à pas →"}
/* Guides : étapes numérotées et photos */
.guide figure{margin:12px 0 18px;display:grid;gap:6px}
.guide figure img{width:100%;height:auto;border-radius:16px;display:block;background:var(--vide)}
.guide figcaption{font-size:12.5px;color:var(--muted)}
.guide figcaption a{color:inherit}
.guide ol{list-style:none;counter-reset:pas;padding:0;display:grid;gap:22px;margin:14px 0}
.guide ol>li{counter-increment:pas;position:relative;padding-left:52px}
.guide ol>li::before{content:counter(pas);position:absolute;left:0;top:-2px;width:38px;height:38px;border-radius:50%;background:var(--feuille);color:var(--bg);display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:19px}
.guide ol>li>strong:first-child{display:block;font-family:var(--display);font-size:20px;margin-bottom:4px}
.credits-liste{display:grid;gap:10px;padding:0;list-style:none}
.credits-liste li{background:var(--surface);border-radius:14px;padding:12px 14px;font-size:14px}
.tri-alpha{font:inherit;font-size:14px;font-weight:600;color:var(--feuille);background:var(--surface);border:0;border-radius:980px;padding:8px 16px;margin:0 0 12px;cursor:pointer;min-height:44px}
.tri-alpha:hover{background:var(--vide)}
.tri-alpha:focus-visible{outline:2px solid var(--feuille);outline-offset:2px}
