/* « Tous vos modules, un seul Hub. » — anneau de fiches (accueil). Base = grille statique (sans script / mouvement réduit). */
.fiches { --c-hub: #c6f36b; --c-collab: #8ccfb0; --c-workflow: #d9d3a3; --c-intel: #a8c98a; background: #0b0c0c; color: #f3f4ef; position: relative; }
.fiches__colle { padding: clamp(64px, 8vw, 128px) 0; }
.fiches__tete { text-align: center; position: relative; z-index: 2; }
.fiches__tete .u7-titre { color: #f3f4ef; margin: 8px auto 12px; }
.fiches__legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 0 28px; font-size: .85rem; color: #b9bcb4; }
.fl::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.fl--hub::before { background: var(--c-hub); } .fl--collab::before { background: var(--c-collab); } .fl--workflow::before { background: var(--c-workflow); } .fl--intel::before { background: var(--c-intel); }
.fiches__anneau { list-style: none; margin: 0 auto; padding: 0 var(--gouttiere, 24px); max-width: 1320px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.fiche { --c: var(--c-hub); }
.fiche--collab { --c: var(--c-collab); } .fiche--workflow { --c: var(--c-workflow); } .fiche--intel { --c: var(--c-intel); }
.fiche a { display: block; position: relative; aspect-ratio: 2 / 3; color: inherit; text-decoration: none; border-radius: 18px; }
.fiche a:focus-visible { outline: 3px solid var(--c-hub); outline-offset: 4px; }
.fiche__face { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto auto; padding: 8%; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), linear-gradient(160deg, #1b1d1c, #0f1110);
  border: 1px solid color-mix(in srgb, var(--c) 35%, #2a2d2b); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.fiche__face--dos { display: none; }
.fiche__motif { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.fiche__motif .m-p { fill: #4a4e4b; } .fiche__motif .m-a { fill: var(--c); opacity: .85; }
.fiche__motif .m-r { fill: none; stroke: var(--c); stroke-width: 1.2; opacity: .5; } .fiche__motif .m-r2 { opacity: .3; }
.fiche__tag { position: relative; justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, #0b0c0c); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.fiche__nom { position: relative; align-self: center; text-align: center; font-family: var(--police-titres, inherit); font-weight: 700; font-size: clamp(1.3rem, 1rem + .8vw, 1.9rem); line-height: 1; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.65); overflow-wrap: anywhere; hyphens: auto; }
.fiche__ben { position: relative; font-size: .85rem; line-height: 1.35; color: #c9ccc4; }
.fiche__cta { position: relative; margin-top: 10px; font-weight: 600; color: var(--c-hub); font-size: .85rem; }
.fiche--finale .fiche__face { border-color: var(--c-hub); background: radial-gradient(90% 70% at 50% 40%, rgba(198,243,107,.28), transparent 70%), linear-gradient(160deg, #1d211a, #0f1110); }
.fiche--finale .fiche__nom { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); }

/* Mobile : défilement horizontal */
@media (max-width: 899px) {
  .fiches__anneau { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 12px; max-width: none; -webkit-overflow-scrolling: touch; }
  .fiche { flex: 0 0 min(64vw, 260px); scroll-snap-align: center; }
}

/* Mode 3D (posé par le script : grand écran et mouvement permis) */
.fiches.est-3d { height: 1150vh; }
.fiches.est-3d .fiches__colle { position: sticky; top: 0; height: 100vh; padding: 0; overflow: hidden; }
.fiches.est-3d .fiches__tete { position: absolute; left: 0; right: 0; top: calc(var(--barre, 72px) + 4vh); will-change: opacity, transform; }
.fiches.est-3d .fiches__scene { position: absolute; inset: 0; perspective: var(--persp, 2000px); perspective-origin: 50% 50%; }
.fiches.est-3d .fiches__anneau { position: absolute; left: 50%; top: 54%; width: 0; height: 0; padding: 0; margin: 0; display: block; max-width: none; transform-style: preserve-3d; will-change: transform; }
.fiches.est-3d .fiche { position: absolute; left: calc(var(--w) * -0.5); top: calc(var(--w) * -1.0846); width: var(--w); transform-style: preserve-3d; will-change: transform; }
.fiches.est-3d .fiche a { transform-style: preserve-3d; aspect-ratio: 0.461; border-radius: calc(var(--w) * .07); }
.fiches.est-3d .fiche__face { border-radius: calc(var(--w) * .07); }
.fiches.est-3d .fiche__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: calc(var(--w) * .08); }
.fiches.est-3d .fiche__face--dos { display: grid; transform: rotateY(180deg); }
.fiches.est-3d .fiche__nom { font-size: calc(var(--w) * .14); }
.fiches.est-3d .fiche--finale .fiche__nom { font-size: calc(var(--w) * .2); }
.fiches.est-3d .fiche__ben, .fiches.est-3d .fiche__cta { font-size: calc(var(--w) * .056); }
.fiches.est-3d .fiche__tag { font-size: calc(var(--w) * .045); }
/* Pas de scroll-behavior: smooth ici : il se battait avec le défilement doux maison (defilement.js) et figeait la page. Les ancres sont animées en JS (fiches.js). */

/* Fiche ouverte : vue détaillée (dialogue). Animation FLIP : transform et opacity seulement. */
.fdet[hidden] { display: none; }
.fdet { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(12px, 3vw, 48px); color: #f3f4ef; }
.fdet__voile { position: absolute; inset: 0; background: rgba(5,6,6,.78); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.fdet.est-ouverte .fdet__voile { opacity: 1; }
.fdet__panneau { --c: var(--c-hub); position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(220px, 36%) 1fr; border-radius: 24px;
  background: linear-gradient(160deg, #1b1d1c, #0f1110); border: 1px solid color-mix(in srgb, var(--c) 40%, #2a2d2b); box-shadow: 0 40px 120px rgba(0,0,0,.6); transform-origin: 0 0; outline: none; }
.fdet__panneau.c-collab { --c: var(--c-collab); } .fdet__panneau.c-workflow { --c: var(--c-workflow); } .fdet__panneau.c-intel { --c: var(--c-intel); }
.fdet__visuel { position: relative; min-height: 100%; background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%), #111312; border-right: 1px solid #262927; }
.fdet__visuel .fiche__motif { opacity: .7; }
.fdet__visuel .fiche__motif .m-p { fill: #4a4e4b; } .fdet__visuel .fiche__motif .m-a { fill: var(--c); } .fdet__visuel .fiche__motif .m-r { fill: none; stroke: var(--c); stroke-width: 1.2; opacity: .5; }
.fdet__corps { padding: clamp(24px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.fdet__cat { margin: 0; align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 14%, #0b0c0c); }
.fdet__nom { margin: 0; font-family: var(--police-titres, inherit); font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height: 1.02; letter-spacing: -.02em; color: #fff; padding-right: 40px; }
.fdet__ben { margin: 0; font-size: 1.15rem; color: var(--c); font-weight: 500; }
.fdet__par { margin: 0; color: #c9ccc4; line-height: 1.55; }
.fdet__puces { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fdet__puces li { position: relative; padding-left: 22px; color: #e3e5df; line-height: 1.4; }
.fdet__puces li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.fdet__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.fdet__lien { color: var(--c); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.fdet__nav { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 10px; border-top: 1px solid #262927; }
.fdet__fl, .fdet__x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a3e3b; background: #151716; color: #f3f4ef; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.fdet__fl:hover, .fdet__x:hover { border-color: var(--c); color: var(--c); }
.fdet__fl:focus-visible, .fdet__x:focus-visible, .fdet__lien:focus-visible { outline: 3px solid var(--c-hub); outline-offset: 3px; }
.fdet__compte { font-variant-numeric: tabular-nums; color: #b9bcb4; min-width: 4.5em; text-align: center; }
.fdet__x { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 1.6rem; line-height: 1; }
.fdet__corps > * { transition: opacity .25s ease; } .fdet.est-change .fdet__corps > *:not(.fdet__nav) { opacity: 0; }
@media (max-width: 760px) {
  .fdet { padding: 0; place-items: end stretch; }
  .fdet__panneau { grid-template-columns: 1fr; border-radius: 20px 20px 0 0; max-height: 92dvh; }
  .fdet__visuel { min-height: 140px; height: 140px; border-right: 0; border-bottom: 1px solid #262927; overflow: hidden; }
  .fdet__visuel .fiche__motif { width: 100%; height: auto; top: -40%; }
  .fdet__nav { position: sticky; bottom: 0; background: #101211; margin: 0 -24px -24px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; }
}
html.fdet-verrou, html.fdet-verrou body { overflow: hidden; }
.fiche a { cursor: pointer; }
/* Ouverture de page (hub-ia.html) : le titre de la section est le H1 ; dégagé sous la barre fixe */
.fiches--ouverture .fiches__colle { padding-top: calc(var(--barre, 72px) + clamp(40px, 6vw, 96px)); }
.fiches.fiches--ouverture.est-3d .fiches__colle { padding-top: 0; }
/* Survol : la fiche se signale cliquable (enveloppe interne <a>, transform/opacity seulement) */
.fiche a { transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.fiche__halo { position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--c-hub); box-shadow: 0 0 0 1px rgba(198,243,107,.35), 0 0 28px rgba(198,243,107,.35), inset 0 0 24px rgba(198,243,107,.12); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.fiche__voir { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; font-size: 1.25rem !important; background: var(--c-hub, #c6f36b); color: #0b0c0c; font-size: .75rem; font-weight: 700; line-height: 1.3; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.fiches.est-3d .fiche__voir { width: max(24px, calc(var(--w) * .14)); height: max(24px, calc(var(--w) * .14)); font-size: max(16px, calc(var(--w) * .1)) !important; top: calc(var(--w) * .07); right: calc(var(--w) * .06); }
.fiche a:hover, .fiche a:focus-visible { transform: scale(1.04); }
.fiche a:hover .fiche__halo, .fiche a:focus-visible .fiche__halo, .fiche a:active .fiche__halo,
.fiche a:hover .fiche__voir, .fiche a:focus-visible .fiche__voir, .fiche a:active .fiche__voir { opacity: 1; transform: none; }
@media (hover: none) { .fiche a:hover { transform: none; } .fiche a:active { transform: scale(.98); } }
@media (prefers-reduced-motion: reduce) { .fiche a, .fiche__halo, .fiche__voir { transition: none; } .fiche a:hover, .fiche a:focus-visible, .fiche a:active { transform: none; } .fiche__voir { transform: none; } }
