/* La fiche de détail : au centre de l'écran, sur un voile flouté ; sur téléphone, elle monte du bas de l'écran.
   Son apparition (depuis l'élément cliqué) et ses transitions sont animées par js/panneau.js. */
/* La page ne bouge pas quand on la bloque : la place de sa barre de défilement reste réservée. */
html.fr-modale { overflow: hidden; scrollbar-gutter: stable; }
.frise-adn .panneau { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1100px 680px at 50% 46%, rgba(232, 98, 10, .12), rgba(5, 5, 8, .74) 62%);
  backdrop-filter: blur(7px) saturate(1.15); -webkit-backdrop-filter: blur(7px) saturate(1.15); }
.frise-adn .panneau[hidden] { display: none; }
.frise-adn .pn-boite { position: relative; width: min(700px, 100%); max-height: min(86vh, 920px); overflow-y: auto; overscroll-behavior: contain;
  padding: 32px 34px 30px; border-radius: 14px; border: 1px solid rgba(232, 98, 10, .38); border-top: 2px solid var(--orange);
  background: linear-gradient(180deg, rgba(34, 20, 11, .98), rgba(14, 13, 17, .98) 220px);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .7), 0 0 70px rgba(232, 98, 10, .14); scrollbar-color: rgba(232, 98, 10, .5) transparent;
  overflow-x: hidden; scrollbar-width: thin;
  scrollbar-gutter: stable both-edges; /* la barre qui apparaît ne rétrécit pas le contenu (sinon il tremble) */ }
/* inset: 0 et pas -1px : un pseudo-élément qui déborde d'un conteneur défilant y fait apparaître des barres. */
.frise-adn .pn-boite.eclat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  animation: fr-eclat 1s ease-out forwards; }
@keyframes fr-eclat { 0% { box-shadow: 0 0 0 0 rgba(232, 98, 10, .6); } 100% { box-shadow: 0 0 0 22px rgba(232, 98, 10, 0); } }
/* La frise dans l'ombre (js/ombre.js) : sous la fiche, une ligne du temps orange qui traverse l'écran. */
.frise-adn .pn-boite { z-index: 1; }
.frise-adn .pn-ombre { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible;
  animation: om-entree .8s ease-out; }
.frise-adn .pn-ombre.cache { display: none; }
@keyframes om-entree { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.frise-adn .om-sol line { stroke: rgba(232, 98, 10, .07); stroke-width: 1; }
.frise-adn .om-sol .om-rayon { stroke: rgba(232, 98, 10, .1); }
.frise-adn .om-barre { fill: rgba(232, 98, 10, .14); transition: fill .3s; }
.frise-adn .om-barre.allumee { fill: rgba(232, 98, 10, .62); }
.frise-adn .om-base { stroke: rgba(232, 98, 10, .3); stroke-width: 1.5; }
.frise-adn .om-progres { stroke-width: 2.5; stroke-linecap: round; }
.frise-adn .om-progres-lueur { stroke-width: 9; opacity: .5; }
.frise-adn .om-flux { stroke: #ffd2ad; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 17; opacity: .8; animation: om-flux 1.2s linear infinite; }
@keyframes om-flux { to { stroke-dashoffset: -18; } }
.frise-adn .om-noeud { fill: #0a0a0d; stroke: rgba(232, 98, 10, .7); stroke-width: 1.5; transition: fill .3s; }
.frise-adn .om-m.passe .om-noeud { fill: var(--orange); }
.frise-adn .om-mois { fill: rgba(255, 255, 255, .72); font: 600 13px Inter, system-ui, sans-serif; }
.frise-adn .om-annee { fill: rgba(255, 255, 255, .38); font: 500 11px var(--mono); }
.frise-adn .om-m.actuel .om-mois { fill: #fff; font-weight: 700; }
.frise-adn .om-m.actuel .om-annee { fill: #ff9a4d; }
.frise-adn .om-m.actuel .om-noeud { stroke: #ffae6b; }
.frise-adn .om-evt { fill: rgba(255, 255, 255, .32); }
.frise-adn .om-evt.naissance { fill: rgba(232, 98, 10, .85); }
.frise-adn .om-faisceau { stroke: url(#om-faisceau); stroke-width: 2; }
.frise-adn .om-coeur { fill: #fff; stroke: var(--orange); stroke-width: 3; filter: drop-shadow(0 0 8px #e8620a) drop-shadow(0 0 18px rgba(232, 98, 10, .7)); }
.frise-adn .om-onde { fill: none; stroke: #ff9a4d; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: om-onde 2.4s ease-out infinite; }
.frise-adn .om-onde-2 { animation-delay: 1.2s; }
@keyframes om-onde { from { transform: scale(.7); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.frise-adn .om-date { fill: #ff9a4d; font: 700 15px var(--mono); letter-spacing: .04em; paint-order: stroke; stroke: #0a0a0d; stroke-width: 5px; }
@media (max-width: 900px) { .frise-adn .pn-ombre { display: none; } }

.frise-adn .pn-progression { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #ff9a4d, var(--orange));
  transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px rgba(232, 98, 10, .8); }
.frise-adn .fermer { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--bord-fort); background: rgba(255, 255, 255, .04); font-size: 20px; line-height: 1; color: var(--texte-2);
  transition: color .2s, border-color .2s, transform .3s, background .2s; }
.frise-adn .fermer:hover { color: #0a0a0d; background: var(--orange); border-color: var(--orange); transform: rotate(90deg); }

.frise-adn .pn-haut { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 44px; }
.frise-adn .pastille { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--bord-fort); color: var(--texte-2); white-space: nowrap; }
.frise-adn .pastille.type-naissance { background: var(--orange); border-color: var(--orange); color: #0a0a0d; box-shadow: 0 0 14px rgba(232, 98, 10, .45); }
.frise-adn .pastille.type-idee { border-color: var(--orange-ligne); color: var(--orange); border-style: dashed; }
.frise-adn .pn-piste { font-size: 12.5px; color: var(--texte-3); }
.frise-adn .pn-date { display: block; margin-top: 18px; font: 600 13px var(--mono); color: var(--orange); letter-spacing: .02em; }
.frise-adn .panneau h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.015em; margin: 6px 0 14px; outline: none; }
.frise-adn .pn-resume { color: var(--texte-2); font-size: 15.5px; margin: 0 0 18px; }
.frise-adn .pn-idee { border-left: 3px solid var(--orange); background: linear-gradient(90deg, rgba(232, 98, 10, .2), rgba(232, 98, 10, .05));
  border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 0 0 18px; }
.frise-adn .pn-idee small, .frise-adn .pn-freres small { display: block; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.frise-adn .pn-idee p { margin: 0; font-size: 15px; }
.frise-adn .pn-source { font-size: 12.5px; color: var(--texte-3); margin: 0 0 18px; }
.frise-adn .pn-source b { color: var(--texte-2); font-weight: 600; }

.frise-adn .pn-dossier { border: 1px solid var(--bord); border-radius: 10px; background: var(--surface); padding: 14px; margin-top: 6px; }
.frise-adn .pn-dossier-tete { display: flex; gap: 12px; align-items: center; }
.frise-adn .pn-dossier-tete img { width: 46px; height: 46px; border-radius: 9px; flex: none; object-fit: cover; }
.frise-adn .pn-dossier-tete small { display: block; font: 600 10.5px var(--mono); color: var(--texte-3); letter-spacing: .08em; text-transform: uppercase; }
.frise-adn .pn-dossier-tete b { display: block; font-size: 15px; line-height: 1.25; }
.frise-adn .pn-dossier-tete span { display: block; font-size: 12.5px; color: var(--texte-3); margin-top: 2px; }
.frise-adn .pn-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.frise-adn .pn-apercu { margin-top: 12px; }
.frise-adn .pn-apercu iframe { width: 100%; height: 58vh; border: 1px solid var(--bord); border-radius: 6px; background: #fff; }
.frise-adn .pn-freres { margin-top: 14px; border-top: 1px solid var(--bord); padding-top: 12px; }
.frise-adn .pn-freres button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 6px 0; background: none; border: 0;
  border-bottom: 1px dashed var(--bord); font-size: 13px; color: var(--texte-2); transition: color .15s, background .2s; }
.frise-adn .pn-freres button:hover { color: var(--texte); background: linear-gradient(90deg, rgba(232, 98, 10, .14), transparent 70%); }
.frise-adn .pn-freres button:hover time { color: var(--orange); }
.frise-adn .pn-freres time { font: 600 11px var(--mono); color: var(--texte-3); min-width: 42px; padding-top: 2px; }

.frise-adn .pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.frise-adn .pn-voisin { text-align: left; border: 1px solid var(--bord); background: var(--surface); border-radius: 8px; padding: 10px 12px; min-width: 0;
  transition: border-color .2s, background .2s; }
.frise-adn .pn-voisin.suiv { text-align: right; }
.frise-adn .pn-voisin small { display: block; font: 600 10.5px var(--mono); color: var(--orange); letter-spacing: .06em; }
.frise-adn .pn-voisin span { display: block; font-size: 12.5px; color: var(--texte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frise-adn .pn-voisin:hover { border-color: var(--orange-ligne); background: var(--orange-doux); }

@media (max-width: 760px) {
  .frise-adn .panneau { place-items: end center; padding: 0; }
  .frise-adn .pn-boite { width: 100vw; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 28px 18px 30px; }
  .frise-adn .panneau h2 { font-size: 24px; }
  .frise-adn .pn-apercu iframe { height: 52vh; }
}
.frise-adn .om-m.court .om-mois { font-size: 12px; }
