/* Fresque ADN — base : couleurs de la charte, en-tête, barre d'outils, boutons, légende.
   Toutes les règles sont portées par .frise-adn : la fresque peut vivre dans une page du site sans rien y casser. */

.frise-adn {
  --fond: #0a0a0d;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --bord: rgba(255, 255, 255, .09);
  --bord-fort: rgba(255, 255, 255, .16);
  --texte: #f0f0f0;
  --texte-2: rgba(255, 255, 255, .62);
  --texte-3: rgba(255, 255, 255, .4);
  --orange: #e8620a;
  --orange-doux: rgba(232, 98, 10, .14);
  --orange-ligne: rgba(232, 98, 10, .55);
  --mono: "JetBrains Mono", Consolas, monospace;
  --col: 176px;
  color-scheme: dark;
}

.frise-adn { color: var(--texte); font: 400 15px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.frise-adn * { box-sizing: border-box; }
.frise-adn section { padding: 0; }
.frise-adn h1, .frise-adn h2, .frise-adn h3, .frise-adn p { text-transform: none; }
.frise-adn button, .frise-adn input { font: inherit; color: inherit; }
.frise-adn button { cursor: pointer; }
.frise-adn :focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.frise-adn .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- En-tête ---------- */
.frise-adn .entete { max-width: 1240px; margin: 0 auto; padding: 44px 24px 18px; position: relative; }
.frise-adn .marque { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.frise-adn .marque span:first-child { color: var(--orange); }
.frise-adn h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.025em; margin: 22px 0 14px; font-weight: 800; }
.frise-adn .chapo { max-width: 760px; font-size: 17px; color: var(--texte-2); margin: 0 0 14px; }
.frise-adn .chiffres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; }
/* Chaque chiffre : une pastille orange avec son icône, le nombre, puis ce qu'il compte. */
.frise-adn .chiffres div { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center;
  padding: 13px 15px; border-radius: 10px; border: 1px solid rgba(232, 98, 10, .28);
  background: linear-gradient(135deg, rgba(232, 98, 10, .13), rgba(255, 255, 255, .02) 70%); }
.frise-adn .chiffres div::before { content: ""; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(232, 98, 10, .16) var(--icone) center / 22px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(232, 98, 10, .5), 0 0 18px rgba(232, 98, 10, .28); }
.frise-adn .chiffres dd { grid-column: 2; grid-row: 1; margin: 0; font: 700 26px/1.1 var(--mono); }
.frise-adn .chiffres dt { grid-column: 2; grid-row: 2; font-size: 12px; color: var(--texte-3); }
.frise-adn .ch-mois { --icone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a4d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>"); }
.frise-adn .ch-projets { --icone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a4d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6M10 21h4'/><path d='M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V17h5.2v-1.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/></svg>"); }
.frise-adn .ch-outils { --icone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a4d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.6 2.6-2.4-.6-.6-2.4z'/></svg>"); }
.frise-adn .ch-etapes { --icone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a4d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l9 5-9 5-9-5 9-5z'/><path d='M3 13l9 5 9-5'/></svg>"); }
.frise-adn .ch-dossiers { --icone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a4d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/><path d='M14 3v5h5M9 13h6M9 17h6'/></svg>"); }
.frise-adn .chiffres-date { margin: 10px 0 0; font: 600 12px var(--mono); color: var(--orange); }
.frise-adn .chiffres-date[hidden] { display: none; }

/* ---------- Barre d'outils ---------- */
.frise-adn .frise { max-width: none; padding: 0 0 24px; }
.frise-adn .outils { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 24px; background: rgba(10, 10, 13, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bord); }
.frise-adn .groupe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.frise-adn .chip, .frise-adn .segment button, .frise-adn .zoom button {
  border: 1px solid var(--bord); background: var(--surface); border-radius: 6px; padding: 6px 11px; font-size: 13px; color: var(--texte-2);
  transition: border-color .2s, background .2s, color .2s, transform .12s;
}
.frise-adn .chip:active, .frise-adn .segment button:active, .frise-adn .zoom button:active, .frise-adn .bouton:active { transform: scale(.96); }
.frise-adn .chip i { font: 600 11px var(--mono); font-style: normal; color: var(--texte-3); margin-left: 7px; }
.frise-adn .chip[aria-pressed="true"], .frise-adn .segment button[aria-pressed="true"] { color: var(--texte); border-color: var(--orange-ligne); background: var(--orange-doux); }
.frise-adn .chip[aria-pressed="true"] i { color: var(--orange); }
.frise-adn .segment { gap: 0; }
.frise-adn .segment button { border-radius: 0; }
.frise-adn .segment button:first-child { border-radius: 6px 0 0 6px; }
.frise-adn .segment button:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.frise-adn .recherche { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; }
.frise-adn .recherche input { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--bord); border-radius: 6px; padding: 7px 11px; }
.frise-adn .recherche input::placeholder { color: var(--texte-3); }
.frise-adn .recherche small { font: 500 12px var(--mono); color: var(--orange); white-space: nowrap; }
.frise-adn .zoom span { font: 500 12px var(--mono); color: var(--texte-3); min-width: 48px; text-align: center; }
.frise-adn .bouton { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bord-fort); background: var(--surface);
  border-radius: 6px; padding: 7px 13px; font-size: 13px; color: var(--texte); text-decoration: none; }
.frise-adn .bouton:hover, .frise-adn .chip:hover, .frise-adn .segment button:hover, .frise-adn .zoom button:hover { border-color: var(--orange-ligne); }
.frise-adn .bouton.plein { background: var(--orange); border-color: var(--orange); color: #0a0a0d; font-weight: 600; }
.frise-adn .bouton.plein:hover { filter: brightness(1.08); }
.frise-adn .aide { margin: 10px 24px 4px; font-size: 12.5px; color: var(--texte-3); }
.frise-adn .aide span { color: var(--texte-2); }

/* ---------- Légende (formes reprises dans fresque.css) ---------- */
.frise-adn .legende { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 6px 24px 14px; padding: 0; font-size: 12.5px; color: var(--texte-2); }
.frise-adn .legende li { display: flex; align-items: center; gap: 8px; }
.frise-adn .legende li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.frise-adn .legende .type-naissance::before { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.frise-adn .legende .type-idee::before { border: 2px solid var(--orange); border-radius: 2px; transform: rotate(45deg); width: 8px; height: 8px; }
.frise-adn .legende .type-materiel::before { border: 2px solid rgba(255, 255, 255, .7); }
.frise-adn .legende .type-jalon::before { width: 7px; height: 7px; background: rgba(255, 255, 255, .55); }

/* ---------- Pied de page ---------- */
.frise-adn .pied { max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--bord); font: 500 12px var(--mono); color: var(--texte-3); }
.frise-adn .pied span:first-child { color: var(--orange); }

@media (max-width: 900px) { .frise-adn .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .frise-adn .entete { padding: 28px 16px 12px; }
  .frise-adn .outils { position: static; padding: 10px 16px; }
  .frise-adn .aide, .frise-adn .legende { margin-left: 16px; margin-right: 16px; }
  .frise-adn .aide { display: none; }
  .frise-adn .zoom { display: none; }
  .frise-adn .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frise-adn .chiffres dd { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .frise-adn *, .frise-adn *::before, .frise-adn *::after { transition: none !important; animation: none !important; } }
