/* Hub Ressources de la trame v2 (README §8.6). */

.pile-ressources { gap: 36px; }
.centre-colonne { align-items: center; }
.section-ancre { padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 136px); background: var(--fond); scroll-margin-top: 110px; }
.section-creme-ancre { padding-top: clamp(80px, 10vw, 136px); background: var(--fond-alt); }
.section-ancre.section-marine { padding-top: clamp(80px, 10vw, 136px); background: var(--navy); }
#lexiques { padding-top: clamp(80px, 10vw, 136px); }

/* Barre de sections : pilule flottante collée sous l'en-tête. */
.barre-sections-zone { position: sticky; top: 60px; z-index: 20; display: flex; justify-content: center; padding: 0 16px 8px; pointer-events: none; }
.barre-sections { pointer-events: auto; display: flex; gap: 2px; padding: 4px; background: var(--voile); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-radius: var(--forme-m); box-shadow: 0 8px 24px -12px rgba(10, 22, 40, 0.25), inset 0 0 0 1px var(--filet); overflow-x: auto; max-width: 100%; }
.barre-sections a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--forme-s); font-size: 0.9375rem; font-weight: 500; line-height: 1; color: var(--texte); white-space: nowrap; }
.barre-sections a:hover { background: var(--fond-alt); color: var(--texte); }
@media (max-width: 480px) { .barre-sections a { padding: 0 12px; } }
@media (prefers-reduced-transparency: reduce) { .barre-sections { -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Filtre segmenté en pilule */
.filtres { align-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--fond-alt); border-radius: var(--forme-m); }
.filtre { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--forme-s); background: transparent; color: var(--texte); font-size: 0.9375rem; font-weight: 500; line-height: 1; cursor: pointer; transition: background-color 0.35s, color 0.35s; }
.filtre[aria-pressed="true"] { background: var(--surface); box-shadow: 0 2px 8px rgba(10, 22, 40, 0.12); }
.filtre-nombre { color: var(--texte-2); }
.grille-outils { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.cellule-outil { display: contents; }
.cellule-outil[hidden] { display: none !important; }
.cellule-outil > .carte-outil { min-height: 100%; }

/* Insights */
.carte-insight { display: flex; flex-direction: column; gap: 8px; padding: 26px 30px; background: var(--surface); border-radius: var(--forme-l); color: var(--texte); transition: transform 0.8s var(--ease); }
.carte-insight:hover { transform: scale(1.01); color: var(--texte); }
.carte-insight-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.875rem; font-weight: 500; line-height: 1.3; color: var(--texte-2); }
.carte-insight-enjeu { color: var(--donnee); }
.carte-insight-titre { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }

/* Lexiques : onglets en pilule */
.lexiques { display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; }
.onglets-pilule { flex: none; flex-direction: row; gap: 4px; padding: 4px; background: var(--fond-alt); border-radius: var(--forme-m); }
.onglets-pilule .onglet { min-height: 44px; padding: 0 20px; border-radius: var(--forme-s); background: transparent; color: var(--texte); font-size: 0.9375rem; font-weight: 500; line-height: 1; }
.onglets-pilule .onglet[aria-selected="true"] { background: var(--surface); color: var(--texte); box-shadow: 0 2px 8px rgba(10, 22, 40, 0.12); }
.lexiques .panneaux { flex: none; width: 100%; align-items: center; gap: 40px; }
.panneau-lexique { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.puces-termes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.puce-terme { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--fond-alt); border-radius: var(--forme-s); font-size: 0.9375rem; font-weight: 500; line-height: 1; color: var(--texte); }
a.puce-terme:hover { background: var(--lavis-ciel); color: var(--texte); }

/* Atelier */
.grille-atelier { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.carte-atelier { display: flex; flex-direction: column; gap: 12px; min-height: 220px; padding: 32px; background: var(--navy-2); border-radius: var(--forme-l); color: #fff; transition: transform 0.8s var(--ease); }
a.carte-atelier:hover { transform: scale(1.012); color: #fff; }
.carte-atelier-etiquette { font-size: 0.9375rem; font-weight: 600; line-height: 1; color: var(--accent-light); }
.carte-atelier-nom { flex: 1; font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.carte-atelier-texte { font-size: 1.0625rem; line-height: 1.5; color: var(--muted); }
.carte-atelier-vide { justify-content: flex-end; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.carte-atelier-vide .carte-atelier-etiquette { color: var(--muted); }

/* Repasse v3 : outils du secteur distribution repliés sous les outils Customer Success */
.outils-sectoriels { padding-top: 8px; }
.outils-sectoriels summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.0625rem; font-weight: 600; color: var(--lien); cursor: pointer; }
.outils-sectoriels[open] summary { margin-bottom: 24px; }
