/* PBM V2 · home (cartes B, signatures, Grand format B, Trajectoires), valides par Nicolas et Jarvis le 19 et le 20/11/2026.
   Charge sur la home seulement (scripts/pb_v2_assets.py). Source des prototypes : _wip_da_site_v2/composants/css/.
   Archivo auto-hebergee (police du logo PBM, licence OFL : /assets/fonts/OFL-Archivo.txt), reduite au latin. */
@font-face{font-family:"Archivo PBM";src:url("/assets/fonts/archivo-700-v1.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Archivo PBM";src:url("/assets/fonts/archivo-600-v1.woff2") format("woff2");font-weight:600;font-display:swap}

/* ===== LOT CARTES B « cadre fin » ===== */
.une-hero,.une-sub,.decryptage-card,.trajectoire-secondary-item,.trajectoire-dominant{border:1px solid #E2E0DB!important;box-shadow:none!important;transform:none!important;transition:border-color .25s ease!important;background:#fff!important}
.une-hero:hover,.une-sub:hover,.decryptage-card:hover,.trajectoire-secondary-item:hover,.trajectoire-dominant:hover{border-color:#0A0A0A!important}
.une-hero .une-card-img,.trajectoire-dominant .une-card-img{border-bottom:0!important}
.une-hero:hover .une-card-img img,.une-sub:hover .une-card-img img,.decryptage-card:hover .une-card-img img{transform:scale(1.03)!important}
.une-card-body{padding:20px 22px 22px!important;gap:9px!important}
.une-hero .une-card-body{padding:24px 28px 26px!important}
/* etiquette : barre du logo en noir, rubrique, region */
.card-tag{background:none!important;color:#0A0A0A!important;padding:0 0 0 10px!important;position:relative;font-size:12px!important;letter-spacing:.1em!important}
.card-tag::before{content:"";position:absolute;left:0;top:1px;bottom:1px;width:3px;background:#0A0A0A}
.une-hero .card-tag::before{background:#FF0030}
.region-dot{display:none!important}
.region-tag{border:0!important;background:none!important;padding:0!important;color:#5E5E5E!important;font-size:12px!important}
.card-tag-row .region-tag::before{content:"·";margin:0 7px 0 2px;color:#9A9A9A}
.card-tag-row{gap:0!important}
/* titres en Archivo */
.une-hero h3,.une-sub h3,.decryptage-card h3{font-family:"Archivo PBM",sans-serif!important;font-weight:700!important;letter-spacing:-.015em!important;color:#0A0A0A!important}
.une-hero h3{font-size:40px!important;line-height:1.05!important}
.une-sub h3{font-size:20px!important;line-height:1.2!important}
.decryptage-card h3{font-size:20px!important;line-height:1.22!important}
.une-hero:hover h3,.une-sub:hover h3,.decryptage-card:hover h3{color:#0A0A0A!important}
.une-card-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#4A4A4A!important}
.une-hero .une-card-excerpt{-webkit-line-clamp:3;font-size:16.5px!important;line-height:1.5!important}
.une-card-meta{border-top:0!important;padding-top:4px!important;font-size:12.5px!important;color:#5E5E5E!important;letter-spacing:.06em!important}
@media (max-width:760px){
  .une-hero h3{font-size:27px!important}
  .une-hero .une-card-img{height:230px!important}
  .une-card-body{padding:16px!important}
  .une-sub,.decryptage-card{display:grid!important;grid-template-columns:1fr 112px;align-items:stretch}
  .une-sub .une-card-img,.decryptage-card .une-card-img{order:2;height:auto!important;min-height:112px}
  .une-sub h3,.decryptage-card h3{font-size:17.5px!important}
  .une-sub .une-card-excerpt,.decryptage-card .une-card-excerpt{display:none!important}
  .une-sub .une-card-body,.decryptage-card .une-card-body{padding:14px!important}
}
/* lieu « Commune · Departement » (calcule par le generateur, scripts/pb_lieu.py) */
.pbm-lieu{font:600 12px/1.2 "Inter",sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#5E5E5E}
.card-tag-row .pbm-lieu::before,.pbm-tagline .pbm-lieu::before{content:"·";margin:0 7px;color:#9A9A9A}
.pbm-tagline{display:flex;align-items:center;flex-wrap:wrap}
.fil-info-meta .pbm-lieu{margin-left:0}
/* survol : titre souligne en noir (GO du 21/11) ; focus clavier visible, 2 px noir */
.une-hero:hover h3,.une-sub:hover h3,.decryptage-card:hover h3{text-decoration:underline!important;text-decoration-thickness:1.5px!important;text-underline-offset:4px!important}
.une-hero:focus-visible,.une-sub:focus-visible,.decryptage-card:focus-visible{outline:2px solid #0A0A0A!important;outline-offset:3px}
.une-hero:focus-visible h3,.une-sub:focus-visible h3,.decryptage-card:focus-visible h3{text-decoration:underline!important;text-underline-offset:4px!important}

/* ===== LOT SIGNATURES DE RUBRIQUES (fine barre rouge verticale) et GRAND FORMAT B « couverture sombre » ===== */
/* Base commune des titres de section : filet fin, plus de filet rouge ni de trait noir de 5 px */
.section-title{border-top:0!important;padding:40px 0 0!important;margin-bottom:26px!important}
.section-title-inner{border-bottom:0!important;border-top:1.5px solid #0A0A0A;padding:14px 0 0!important}
.section-title-inner::before,.section-title-inner::after{display:none!important}
.section-title h2{padding-left:0!important;font-size:34px!important;letter-spacing:-.02em!important}
.section-title p{font-style:normal!important;font-size:13px!important;color:#6B6B6B!important}
/* SIGNATURE COMMUNE (decision du 19/11) : fine barre rouge verticale devant chaque titre de rubrique, en reference a la barre du logo */
.section-title h2{display:flex!important;align-items:center;gap:12px}
.section-title h2::before{content:"";flex:0 0 auto;width:4px;height:.82em;background:#FF0030}
/* DECRYPTAGES : le fil horodate, l'heure en tete, sans rouge */
[data-comp="decr"] .fil-info-item a{display:grid!important;grid-template-columns:62px 1fr;column-gap:12px}
[data-comp="decr"] .fil-info-date{grid-column:1;grid-row:1/span 2;font:700 13px/1.4 "Inter"!important;font-variant-numeric:tabular-nums;color:#0A0A0A!important;padding-top:2px}
[data-comp="decr"] .fil-info-meta{grid-column:2}
[data-comp="decr"] .fil-info-item h3{grid-column:2;font-size:16px!important}
[data-comp="decr"] .fil-info-format{display:none!important}
[data-comp="decr"] .fil-info-item a:hover h3{color:#0A0A0A!important;text-decoration:underline;text-underline-offset:3px}
[data-comp="decr"] .fil-info-date b{display:block;font-weight:700}
[data-comp="decr"] .fil-info-date small{display:block;font-weight:400;font-size:12px;color:#5E5E5E}
/* TECH & INNOVATION : bande gris froid, titres en sans-serif, images 16:9 */
[data-comp="tech"]{background:#F0F1F2;box-shadow:0 0 0 100vmax #F0F1F2;clip-path:inset(0 -100vmax);padding-bottom:8px}
[data-comp="tech"] .section-title-inner{border-top-color:#0A0A0A}
[data-comp="tech"] .decryptage-card h3{font-family:"Inter",sans-serif!important;font-weight:700!important;font-size:19px!important;letter-spacing:-.01em!important}
[data-comp="tech"] .decryptage-card .une-card-img{height:auto!important;aspect-ratio:16/9}
/* TERROIR & PATRIMOINES : bande chaude, photo en passe-partout, le lieu en premier */
[data-comp="terroir"]{background:#F5F0E8;box-shadow:0 0 0 100vmax #F5F0E8;clip-path:inset(0 -100vmax);padding-bottom:8px}
[data-comp="terroir"] .decryptage-card .une-card-img{background:#fff;padding:8px;height:auto!important;aspect-ratio:4/3}
[data-comp="terroir"] .pbm-lieu{color:#0A0A0A;font-weight:700}
[data-comp="terroir"] .card-tag{display:none!important}
[data-comp="terroir"] .pbm-lieu::before{display:none}
[data-comp="terroir"] .decryptage-card h3{font-style:normal}
@media (max-width:760px){
  .section-title{padding-top:28px!important}
  .section-title h2{font-size:26px!important}
  [data-comp="terroir"] .decryptage-card .une-card-img,[data-comp="tech"] .decryptage-card .une-card-img{aspect-ratio:1/1;padding:4px}
}
#grand-format .gf-card{border:0!important;background:#0B0B0B!important;color:#FAFAFA!important;grid-template-columns:1.25fr 1fr!important;box-shadow:none!important}
#grand-format .gf-card-img{border:0!important;background:#0B0B0B!important;min-height:440px!important}
#grand-format .gf-card-body{padding:48px 48px 44px!important;gap:18px!important}
#grand-format .gf-badge{background:none!important;color:#FAFAFA!important;padding:0 0 0 12px!important;position:relative;font-size:12.5px!important;letter-spacing:.16em!important}
#grand-format .gf-badge::before{content:"";position:absolute;left:0;top:-2px;bottom:-2px;width:4px;background:#FF0030}
#grand-format .gf-card h3{color:#FAFAFA!important;font-size:42px!important;line-height:1.06!important;font-weight:900!important}
#grand-format .gf-card-chapo{display:none!important}
#grand-format .gf-card-meta{color:#BDBDBD!important;font-size:12.5px!important}
#grand-format .gf-card-cta{align-self:flex-start;border:1.5px solid #FAFAFA;color:#FAFAFA!important;padding:14px 22px;font-size:13px!important;letter-spacing:.08em!important;margin-top:8px}
#grand-format .gf-card:hover .gf-card-cta{background:#FAFAFA;color:#0B0B0B!important;text-decoration:none!important}
#grand-format .gf-card:hover .gf-card-img img{transform:scale(1.02)!important}
@media (max-width:760px){
  #grand-format .gf-card{grid-template-columns:1fr!important}
  #grand-format .gf-card-img{min-height:0!important;aspect-ratio:16/9;border:0!important}
  #grand-format .gf-card-body{padding:22px 18px 26px!important;gap:14px!important}
  #grand-format .gf-card h3{font-size:28px!important}
  #grand-format .gf-card-cta{align-self:stretch;text-align:center}
}

/* ===== LOT TRAJECTOIRES : titres blancs sur la photo, voile en degrade, voile-fort pose par le generateur (scripts/pb_voile.py) ===== */
[data-comp="traj"] .section-title h2{font-style:italic!important;font-size:38px!important}
[data-comp="traj"] .trajectoires-signature{grid-template-columns:3fr 2fr!important;gap:16px!important}
[data-comp="traj"] .trajectoire-dominant,[data-comp="traj"] .trajectoire-secondary-item{position:relative!important;display:block!important;border:0!important;overflow:hidden;background:#0B0B0B!important}
[data-comp="traj"] .trajectoire-dominant .une-card-img{height:560px!important;min-height:0!important;border:0!important}
[data-comp="traj"] .trajectoire-secondary-item .une-card-img{height:176px!important}
[data-comp="traj"] .trajectoire-dominant .une-card-body,[data-comp="traj"] .trajectoire-secondary-item .une-card-body{position:absolute!important;left:0;right:0;bottom:0;padding:90px 28px 24px!important;background:linear-gradient(180deg,rgba(7,7,7,0) 0%,rgba(7,7,7,.62) 38%,rgba(7,7,7,.9) 100%)!important;gap:8px!important}
[data-comp="traj"] .trajectoire-secondary-item .une-card-body{padding:56px 18px 14px!important}
[data-comp="traj"] h3{color:#FAFAFA!important;text-shadow:0 1px 2px rgba(0,0,0,.35)}
[data-comp="traj"] .trajectoire-dominant h3{font-size:34px!important;line-height:1.12!important}
[data-comp="traj"] .trajectoire-secondary-item h3{font-size:18px!important}
[data-comp="traj"] .card-tag{color:#FAFAFA!important;padding-left:10px!important;font-size:12px!important}
[data-comp="traj"] .card-tag::before{background:#FAFAFA!important}
[data-comp="traj"] .une-card-excerpt{color:rgba(250,250,250,.86)!important}
[data-comp="traj"] .trajectoire-secondary-item .une-card-excerpt,[data-comp="traj"] .une-card-meta{display:none!important}
[data-comp="traj"] .trajectoire-dominant:hover h3,[data-comp="traj"] .trajectoire-secondary-item:hover h3{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
/* Repli pour les photos difficiles (classe posee par le generateur apres mesure de la photo) :
   niveau 1 voile renforce ; niveau 2 titre sous la photo, comme une carte classique. */
[data-comp="traj"] .voile-fort .une-card-body{background:linear-gradient(180deg,rgba(7,7,7,0) 0%,rgba(7,7,7,.8) 28%,rgba(7,7,7,.95) 100%)!important}
[data-comp="traj"] .titre-sous-photo .une-card-body{position:static!important;background:#0B0B0B!important;padding:18px 22px 20px!important}
[data-comp="traj"] .trajectoire-dominant:focus-visible,[data-comp="traj"] .trajectoire-secondary-item:focus-visible{outline:3px solid #0A0A0A!important;outline-offset:3px}
[data-comp="traj"] .trajectoire-dominant:focus-visible h3,[data-comp="traj"] .trajectoire-secondary-item:focus-visible h3{text-decoration:underline;text-underline-offset:5px}
@media (max-width:760px){
  [data-comp="traj"] .section-title h2{font-size:28px!important}
  [data-comp="traj"] .trajectoires-signature{grid-template-columns:1fr!important}
  [data-comp="traj"] .trajectoire-dominant .une-card-img{height:420px!important}
  [data-comp="traj"] .trajectoire-dominant h3{font-size:25px!important}
  [data-comp="traj"] .trajectoire-dominant .une-card-body{padding:80px 18px 18px!important;background:linear-gradient(180deg,rgba(7,7,7,0) 0%,rgba(7,7,7,.72) 32%,rgba(7,7,7,.92) 100%)!important}
  [data-comp="traj"] .trajectoire-secondary-item .une-card-img{height:200px!important}
  [data-comp="traj"] .voile-fort .une-card-body{background:linear-gradient(180deg,rgba(7,7,7,0) 0%,rgba(7,7,7,.82) 26%,rgba(7,7,7,.96) 100%)!important}
}

/* Une : les deux cartes secondaires prennent au moins la hauteur de leur contenu (sinon flex:1 les egalise et rogne la plus remplie, 21/11/2026) */
.une-stack .une-sub{flex:1 0 auto!important}
