/* Lot 2 des pages (filtres, blocs calculés, maillage) : complète les feuilles tirées des maquettes, à reprendre
   dans le thème maison. Couleurs de la charte V5 : vert #0E6B50, menthe #BFE3D3, encre #1B1B1F, crème #FBF8F1. */

/* Filtres */
.gc .wrap.sans{grid-template-columns:1fr}
.gc aside.flt{align-self:start;position:sticky;top:12px}
.gc .cb{cursor:pointer;position:relative}
.gc .cb input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.gc .cb input:focus-visible+i{outline:2px solid #0E6B50;outline-offset:2px}
.gc .cb.nul{opacity:.45}
.gc .seg button{border:1.5px solid #1B1B1F;border-radius:8px;padding:5px 10px;font:500 13px Gabarito,sans-serif;background:#fff;color:#1B1B1F;cursor:pointer}
.gc .seg button.on{background:#1B1B1F;color:#fff}
.gc .fdate{margin-top:8px;font:14px Gabarito,sans-serif;border:1.5px solid #1B1B1F;border-radius:8px;padding:5px 8px}
.gc .bar .act{border:0;font:600 13.5px Gabarito,sans-serif;color:#1B1B1F;cursor:pointer}
.gc .bar .acts{display:contents}
.gc .bar .nbr{color:#777}
.gc .bar .sort select{font:500 13.5px Gabarito,sans-serif;border:0;background:transparent;color:#1B1B1F;cursor:pointer}
.gc .flh,.gc .flf,.gc .flb{display:none}
.gc.gc-js .pc.hors,.gc.gc-js .pc.cache{display:none}
.gc .plus{display:block;margin:22px auto 0;border:1.5px solid #1B1B1F;background:#fff;border-radius:8px;padding:9px 18px;font:600 14px Gabarito,sans-serif;cursor:pointer}
.gc .vide{margin:10px 0;color:#555}
html.gc-fige{overflow:hidden}
@media (max-width:860px){
  .gc .bar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
  .gc .bar>*{flex:none}
  .gc .flb{display:inline-block;border:1.5px solid #1B1B1F;background:#1B1B1F;color:#fff;border-radius:8px;padding:6px 12px;font:600 13.5px Gabarito,sans-serif}
  .gc aside.flt.ouvert{display:block;position:fixed;inset:0;z-index:99999;background:#FBF8F1;overflow:auto;padding:0 20px 90px}
  .gc .flt.ouvert .flh{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#FBF8F1;padding:14px 0;font-family:Caprasimo;font-size:22px;z-index:1}
  .gc .flx{border:0;background:none;font-size:30px;line-height:1;cursor:pointer;color:#1B1B1F}
  .gc .flt.ouvert .flf{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;padding:12px 20px;background:#FBF8F1;border-top:1px solid #e5ded2}
  .gc .flr{border:1.5px solid #1B1B1F;background:#fff;border-radius:8px;padding:10px 12px;font:600 14px Gabarito,sans-serif}
  .gc .flgo{flex:1;border:0;background:#0E6B50;color:#fff;border-radius:8px;padding:10px 12px;font:600 15px Gabarito,sans-serif}
}

/* Blocs de bas de page liste : paragraphe de fin, pages enfants, maillage */
.gc .blocs{padding:6px 32px 0}
.gc .blocs h2{margin:34px 0 10px}
.gc .fin{margin:0;max-width:760px;line-height:1.6;color:#333}
.gc .fin+.fin{margin-top:10px}
.gc .enfants{margin:18px 32px 0}
.gc .enfants h3{font:600 14px Gabarito,sans-serif;color:#555;margin:0 0 6px}
.gc .enfants .tags{margin-top:0}
.gc .enfants .tags a{border:1.5px solid #1B1B1F;border-radius:8px;padding:4px 10px;font-size:13.5px;color:#1B1B1F;text-decoration:none;display:inline-block;margin:0 6px 6px 0}
.gc .enfants .tags a span{color:#888;font-size:12.5px;margin-left:4px}
.gc .blocs .nc{position:relative}
.gc .blocs .nc a{color:inherit;text-decoration:none}
.gc .blocs .nc .im img{width:100%;height:100%;object-fit:cover;border-radius:12px;display:block}
.gc .veille-ill{width:120px;height:120px;margin:18px 32px 0;background-size:cover;border-radius:4px;display:grid;place-items:center}
.gc .veille-ill span{width:78px;height:78px;border-radius:50%;background:#fff center/62px no-repeat}

/* Fiche : bon à savoir, calendrier, classement, verdict */
.gc .ins .in .v.p{font-size:22px}
.gc a.nc-lien{color:inherit;text-decoration:none}
.gc .rki a{color:inherit}
.gc .verd.moyen,.gc .verd.stable{background:#F6F3EC}
.gc .verd.cher{background:#FBEDEA}

/* Bas d'article (décision 78) */
.gc.art{border:0;margin:34px 0 0}
.gc.art h2{margin:0 0 12px;font-size:26px}
.gc.art .blocs{padding:0}
.gc.art .aff{margin:12px 0 0}

/* Grilles qui rétrécissent (titres longs) et marges réduites sur mobile */
.gc .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.gc .wrap>main{min-width:0}
.gc .cats{overflow-x:auto;scrollbar-width:none}
@media (max-width:860px){
  .gc .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
  .gc .wrap{padding:14px 16px 10px;gap:0}
  .gc .crumb{padding:14px 16px 0}
  .gc .lead{margin-left:16px;margin-right:16px}
  .gc h1,.gc h2{margin-left:16px;margin-right:16px}
  .gc .blocs,.gc .sec{padding-left:16px;padding-right:16px}
  .gc .blocs h2,.gc .sec h2{margin-left:0;margin-right:0}
  .gc .enfants{margin:18px 16px 0}
  .gc .pc .im{height:150px}
  /* fiches : colonnes qui rétrécissent, marges de 16 px */
  .gc .top{padding:14px 16px 0;grid-template-columns:minmax(0,1fr)}
  .gc .top>*,.gc .two>*{min-width:0}
  .gc .two{grid-template-columns:minmax(0,1fr)}
  .gc .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gc .mrow{flex-wrap:wrap}
  .gc .mrow .md{flex-basis:100%;order:3}
  .gc .ins,.gc .blocs .ncs,.gc .ncs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gc .of{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gc .rki{flex-wrap:wrap}
}

/* Photos (étape images, décisions 79 à 85) : copies locales en 4:3, cadrées par le conteneur */
.gc .pc .im,.gc .gal .ph{overflow:hidden}
.gc .pc .im img,.gc .gal .ph img{width:100%;height:100%;object-fit:cover;border-radius:12px;display:block}
.gc .pc .im .tape,.gc .gal .ph .tape{z-index:1}
/* Galerie des fiches en 4:3 (décision 87) : la photo principale entière sur toute la largeur, les deux suivantes dessous */
.gc .gal{grid-template-rows:none}
.gc .gal .ph{aspect-ratio:4/3;height:auto}

/* filtre Département et « Ma zone » (décision 143) */
.gc .grp[data-f="dept"]{max-height:320px;overflow-y:auto;overscroll-behavior:contain}
.gc .zone-note{margin:6px 0 12px;font:500 13.5px Gabarito,sans-serif;color:#555}
