/* Le camembert « Les projets par secteur », à côté des dossiers PDF (js/secteurs.js). Couleurs dans la DA ADN :
   nuances d'orange et de gris, alternées clair / foncé pour que deux parts voisines restent bien distinctes (écarts
   mesurés, daltonismes compris) ; l'orange de la charte sur l'impression 3D. --t : couleur du texte dans la part. */
.frise-adn [data-secteur="atelier"] { --c: #a3a3ab; --t: #0a0a0d; }
.frise-adn [data-secteur="web"] { --c: #a8460a; --t: #f6f6f6; }
.frise-adn [data-secteur="ia"] { --c: #e6e6ea; --t: #0a0a0d; }
.frise-adn [data-secteur="3d"] { --c: #e8620a; --t: #0a0a0d; }
.frise-adn [data-secteur="video"] { --c: #ffb070; --t: #0a0a0d; }
.frise-adn [data-secteur="soi"] { --c: #66666f; --t: #f6f6f6; }

.frise-adn .secteurs { position: relative; display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); column-gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; padding: 22px 26px 20px; }
.frise-adn .secteurs > h3, .frise-adn .secteurs > .sc-intro { grid-column: 1 / -1; }
.frise-adn .secteurs::before, .frise-adn .secteurs::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--orange); border-style: solid; }
.frise-adn .secteurs::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 10px 0 0 0; }
.frise-adn .secteurs::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 10px 0; }
.frise-adn .secteurs h3 { font-size: 19px; margin: 0 0 4px; letter-spacing: -.01em; }
.frise-adn .sc-intro { font-size: 13px; color: var(--texte-3); margin: 0 0 6px; }

/* Le disque */
.frise-adn .sc-graphe svg { display: block; width: min(100%, 330px); height: auto; margin: 0 auto; overflow: visible; }
.frise-adn .sc-part { cursor: pointer; outline: none; transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .35s; }
.frise-adn .sc-arc { transition: filter .25s; }
.frise-adn .sc-part:hover .sc-arc { filter: brightness(1.18) drop-shadow(0 0 8px rgba(232, 98, 10, .45)); }
.frise-adn .sc-part.choisi { transform: translate(var(--dx), var(--dy)); }
.frise-adn .a-choix .sc-part:not(.choisi) { opacity: .26; }
.frise-adn .sc-part.vide { pointer-events: none; }
.frise-adn .sc-arc { fill: var(--c, #6b6b73); stroke: #121216; stroke-width: 2; stroke-linejoin: round; }
.frise-adn .sc-part.choisi .sc-arc { filter: drop-shadow(0 0 10px rgba(232, 98, 10, .55)); }
.frise-adn .sc-pc { fill: var(--t, #0a0a0d); font: 700 12.5px var(--mono); pointer-events: none; }
.frise-adn .sc-famille { fill: var(--c); stroke: #121216; stroke-width: 2; stroke-linejoin: round; }
.frise-adn .sc-centre-fond { fill: transparent; }
.frise-adn .a-choix .sc-centre { cursor: pointer; }
.frise-adn .sc-centre-grand { fill: var(--texte); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.frise-adn .sc-centre-petit { fill: var(--texte-2); font-size: 12.5px; font-weight: 600; }
.frise-adn .sc-centre-date { fill: var(--texte-3); font: 500 10.5px var(--mono); }

/* Le tableau (vue d'ensemble, aussi écrit par le serveur) */
.frise-adn .sc-detail { margin-top: 8px; }
.frise-adn .sc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.frise-adn .sc-table th, .frise-adn .sc-table td { padding: 7px 6px; border-bottom: 1px solid var(--bord); text-align: left; font-weight: 500; }
.frise-adn .sc-table thead th { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.frise-adn .sc-table td, .frise-adn .sc-table thead th + th { text-align: right; font-family: var(--mono); white-space: nowrap; color: var(--texte-2); }
.frise-adn .sc-table tbody tr { cursor: pointer; transition: background .2s; }
.frise-adn .sc-table tbody tr:hover, .frise-adn .sc-table tbody tr:focus-visible { background: var(--orange-doux); outline: none; }
.frise-adn .sc-table tfoot th, .frise-adn .sc-table tfoot td { border-bottom: 0; color: var(--texte); font-weight: 700; }
.frise-adn .sc-pastille { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 8px; vertical-align: -1px; }

/* Le détail d'un secteur */
.frise-adn .sc-retour { background: none; border: 0; padding: 0; color: var(--orange); font: 600 12px var(--mono); cursor: pointer; }
.frise-adn .sc-retour:hover { text-decoration: underline; }
.frise-adn .sc-zoom h4 { display: flex; align-items: center; font-size: 18px; margin: 10px 0 2px; }
.frise-adn .sc-part-txt { color: var(--texte-2); font-size: 13.5px; margin: 0 0 14px; }
.frise-adn .sc-part-txt b { color: var(--texte); font-family: var(--mono); }
.frise-adn .sc-familles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.frise-adn .sc-familles li { --o: 1; }
.frise-adn .sc-familles li.r1 { --o: .62; }
.frise-adn .sc-familles li.r2 { --o: .38; }
.frise-adn .sc-familles .sc-pastille { opacity: var(--o); }
.frise-adn .sc-f-tete { display: flex; align-items: center; }
.frise-adn .sc-f-tete b { flex: 1; font-size: 14px; }
.frise-adn .sc-f-tete em { font: 700 13px var(--mono); font-style: normal; }
.frise-adn .sc-jauge { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); margin: 6px 0 4px; overflow: hidden; }
.frise-adn .sc-jauge span { display: block; height: 100%; width: 0; background: var(--c); opacity: var(--o); border-radius: 3px;
  transition: width .8s cubic-bezier(.16, 1, .3, 1); }
.frise-adn .sc-familles small { font: 500 11px var(--mono); color: var(--texte-3); }
.frise-adn .sc-projets { display: flex; flex-direction: column; margin-top: 4px; }
.frise-adn .sc-projets button { display: flex; gap: 10px; text-align: left; background: none; border: 0; border-bottom: 1px dashed var(--bord);
  padding: 5px 0; font-size: 13px; color: var(--texte-2); cursor: pointer; transition: color .15s, background .2s; }
.frise-adn .sc-projets button:hover { color: var(--texte); background: linear-gradient(90deg, rgba(232, 98, 10, .14), transparent 70%); }
.frise-adn .sc-projets time { font: 600 11px var(--mono); color: var(--orange); min-width: 42px; padding-top: 1px; }
.frise-adn .sc-activite { margin: 16px 0 0; font-size: 12.5px; color: var(--texte-3); border-left: 2px solid var(--c); padding-left: 10px; }

@media (max-width: 860px) { .frise-adn .secteurs { grid-template-columns: minmax(0, 1fr); } }
.frise-adn .sc-note { margin: 8px 0 0; font: 500 11px var(--mono); color: var(--texte-3); }
