/* L'Hexagone décodé — salle 2, la défense : seulement les ajouts propres à la salle.
   Tout le reste (consoles, touches, cartels, graphiques) vient de css/atelier.css. */

/* ---------- Commandes communes reprises de la salle Monde ---------- */
.fleches { display: flex; gap: 12px; align-items: center; }
.fleches .afficheur { min-width: 110px; justify-content: center; font-size: 28px; }

/* ---------- Photos : cadre de musée et cartel ---------- */
.photo-musee { margin: 0; min-width: 0; }
.photo-cadre { position: relative; background: var(--nuit); box-shadow: 0 0 0 1px var(--trait), 0 0 0 10px var(--plaque-2), 0 0 0 11px var(--trait); margin: 11px; overflow: hidden; aspect-ratio: 3 / 2; }
.photo-cadre img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.photo-cartel { display: grid; gap: 4px; margin: 20px 11px 0; padding: 10px 14px 12px; background: var(--papier); color: var(--encre); border-left: 4px solid var(--ambre); font-size: 15px; line-height: 1.4; }
.photo-legende { font-size: 16px; }
.photo-credit { font-size: 13px; color: var(--encre-2); }
.photo-credit a { color: var(--encre); }
.photo-musee.grande .photo-cadre { aspect-ratio: 16 / 10; }

/* frise de l'ouverture */
.frise-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.frise-item { position: relative; min-width: 0; }
.frise-item .photo-cadre { aspect-ratio: 4 / 3; margin: 0; box-shadow: 0 0 0 1px var(--trait); transition: box-shadow .15s; }
.frise-item:hover .photo-cadre, .frise-item:focus-within .photo-cadre { box-shadow: 0 0 0 3px var(--ambre); }
.frise-item .photo-cartel { margin: 0; padding: 0; background: none; border: 0; }
.frise-item .photo-credit { font-size: 12px; color: var(--texte-3); margin-top: 6px; }
.frise-item .photo-credit a { color: var(--texte-2); }
.frise-nom { position: absolute; left: 0; top: 0; background: var(--marine); color: var(--texte); font: 600 17px/1 var(--f-signal); padding: 8px 10px 7px; text-decoration: none; min-height: 32px; }
.frise-nom:hover { background: var(--ambre); color: var(--encre); }

/* photo à côté de l'introduction d'un chapitre */
.intro-photo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 44px; align-items: start; }
.intro-photo .chap-intro { padding-top: 4px; }

/* ---------- 1.1 Budget ---------- */
.m-proj { fill: rgba(141, 153, 201, .16); stroke: var(--d-moy); stroke-width: 1.5; stroke-dasharray: 4 3; }
.m-proj.actif { fill: rgba(208, 127, 0, .28); stroke: var(--d-france); stroke-width: 2; }
.legende i.hachure { background: repeating-linear-gradient(135deg, var(--d-moy) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--d-moy); }

/* 1.2 : cent euros */
.cent { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; max-width: 560px; }
.cent span { aspect-ratio: 1; border-radius: 50%; background: var(--d-gris); }
.cent span.on { background: var(--d-france); }
.cent-leg { font-size: 16px; color: var(--texte-2); margin: 12px 0 0; }
.cent-leg b { color: var(--texte); font: 600 20px/1 var(--f-signal); }

/* ---------- 2.1 Vitrine ---------- */
.vitrine-touches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 10px; width: 100%; }
.vitrine-touches .touche { width: 100%; min-height: 54px; padding: 7px 10px 9px; gap: 4px; font-size: 18px; }
.vitrine-touches .touche::before { width: 14px; height: 4px; }
.vt-ligne { display: flex; align-items: center; gap: 8px; }
.vt-ligne svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.vitrine-grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px 30px; align-items: start; }
.fiche-engin h4 { font-size: 30px; line-height: 1.05; margin-bottom: 12px; }
.fiche-cat { font: 600 15px/1.2 var(--f-signal); color: var(--texte-3); margin: 0 0 6px; }
.fiche-nombre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; font-size: 18px; }
.fiche-nombre b { font: 700 60px/0.95 var(--f-signal); color: var(--ambre); }
.fiche-nombre small { width: 100%; color: var(--texte-3); }
.fiche-note { font-size: 14px; color: var(--texte-2); margin: 0 0 8px; }
.fiche-details summary { cursor: pointer; font: 600 18px/1 var(--f-signal); padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.fiche-dims { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 15px; display: grid; gap: 3px; }
.fiche-dims li { padding: 3px 0; border-bottom: 1px solid var(--trait-doux); }
.photo-absente { aspect-ratio: 3 / 2; margin: 11px; display: grid; place-items: center; align-content: center; gap: 10px; background: var(--nuit); box-shadow: 0 0 0 1px var(--trait); text-align: center; padding: 20px; }
.photo-absente svg { width: 40%; max-width: 200px; fill: var(--d-moy); }
.photo-absente p { font-size: 15px; color: var(--texte-2); margin: 0; }
.pictos { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--trait); }
.pictos-titre { font: 600 19px/1.1 var(--f-signal); margin: 0 0 10px; }
.pictos-svg { display: block; max-width: 100%; height: auto; }
.pictos-svg .picto { fill: var(--ambre); }

/* ---------- 2.2 À l'échelle ---------- */
.echelle-schema { overflow: hidden; }
.echelle-schema svg { display: block; overflow: visible; }
.ech-regle line { stroke: var(--texte-3); stroke-width: 1.2; }
text.ech-graduation { font: 500 13px var(--f-mono); fill: var(--texte-3); }
.ech-objet { cursor: pointer; outline: none; }
.ech-fond { fill: transparent; }
.ech-objet:hover .ech-fond { fill: rgba(243, 239, 228, .04); }
.ech-objet:focus-visible .ech-fond { stroke: var(--texte); stroke-width: 2; }
.ech-objet.choisi .ech-fond { fill: rgba(255, 162, 31, .08); }
text.ech-nom { font: 600 17px var(--f-signal); fill: var(--texte-2); }
.ech-objet.choisi text.ech-nom { fill: var(--texte); }
.ech-sol { stroke: var(--trait); stroke-width: 1; }
.sil { fill: var(--d-moy); stroke: none; }
.sil.approx { fill: rgba(141, 153, 201, .35); stroke: var(--d-moy); stroke-width: 1; stroke-dasharray: 3 2; }
.ech-objet.choisi .sil { fill: var(--ambre); }
.ech-objet.choisi .sil.approx { fill: rgba(255, 162, 31, .35); stroke: var(--ambre); }
.ech-objet.repere .sil { fill: var(--d-autre); }
.ech-objet.repere.choisi .sil { fill: var(--ambre); }

/* ---------- 3.1 Dissuasion ---------- */
.dis-schema svg { display: block; max-width: 760px; }
.dis-ciel { fill: #1b2a62; }
.dis-mer { fill: #0b1435; }
.dis-vague { stroke: #2f5b8f; stroke-width: 1.5; }
.dis-picto path { fill: var(--d-moy); }
.dis-picto.actif path { fill: var(--ambre); }
.dis-picto.eteint path { fill: #4f5d93; }
text.dis-titre { font-family: var(--f-signal); font-weight: 600; fill: var(--texte); }
text.dis-texte { font-family: var(--f-texte); fill: var(--texte-2); }
text.dis-texte.fort { fill: var(--texte); font-weight: 700; }
text.dis-note { font-family: var(--f-texte); fill: var(--texte-3); font-style: italic; }
.dis-quai { fill: #5a689f; }
.dis-tete { fill: var(--ambre); }
.dis-tete.reserve { fill: none; stroke: var(--ambre); stroke-width: 1.5; }
.dis-euro { fill: #34447f; }
.dis-euro.on { fill: var(--ambre); }

/* ---------- 4.1 Effectifs ---------- */
.gaufre svg { width: auto; max-width: 100%; height: auto; }
.eff.c1 { fill: var(--d-france); }
.eff.c2 { fill: var(--d-autre); }
.eff.c3 { fill: var(--d-moy); }
.eff.c4 { fill: var(--texte); }
.eff.c5 { fill: #6e7bb0; }
.eff.c6 { fill: #4f5d93; }
.eff.objectif { fill: none; stroke: var(--texte-3); stroke-width: 1; stroke-dasharray: 2 2; }
text.eff-titre { font: 600 17px var(--f-signal); fill: var(--texte); }
.eff-l { width: 14px; height: 14px; border-radius: 2px; flex: none; }
.eff-l.c1 { background: var(--d-france); } .eff-l.c2 { background: var(--d-autre); } .eff-l.c3 { background: var(--d-moy); }
.eff-l.c4 { background: var(--texte); } .eff-l.c5 { background: #6e7bb0; } .eff-l.c6 { background: #4f5d93; }
.eff-l.objectif { background: none; box-shadow: inset 0 0 0 1.5px var(--texte-3); }
#eff-legende { margin-top: 14px; }

/* ---------- 4.2 Déploiements ---------- */
.dep-plage { fill: var(--d-france); opacity: .35; }

/* ---------- 5.2 Exportations ---------- */
.exp-clients { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 36px; }
.exp-clients h4 { font-size: 21px; margin-bottom: 12px; }
.exp-dest { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.exp-dest li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 3.4em; gap: 10px; align-items: center; font-size: 17px; }
.exp-dest .barre { height: 18px; width: var(--p); background: var(--d-autre); border-radius: 0 3px 3px 0; }
.exp-dest b { font: 600 18px var(--f-mono); text-align: right; }
.exp-top { margin: 0; padding-left: 1.6em; columns: 2; column-gap: 24px; font-size: 17px; }
.exp-top li { padding: 3px 0; break-inside: avoid; }

/* ---------- 6. Bilan ---------- */
.point-defense { grid-template-columns: minmax(0, 1fr); }
.point-defense a { font-size: 15px; }
.point-defense .fig { font-size: 30px; }

/* ---------- 7. Débat ---------- */
.plateau li strong { display: block; font-weight: 700; margin-bottom: 2px; }
.plateau li .qui { display: block; margin-top: 6px; font-size: 14px; color: var(--texte-2); }
.plateau li .qui a { color: var(--texte-2); }
q.citation { font-style: italic; }

/* ---------- 8. Crédits ---------- */
.credits-photos { margin-top: 28px; }
.credits-photos ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--texte-2); display: grid; gap: 4px; max-width: 90ch; }
.credits-photos b { color: var(--texte); font-weight: 700; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 900px) {
  .intro-photo { grid-template-columns: minmax(0, 1fr); }
  .vitrine-grille { grid-template-columns: minmax(0, 1fr); }
  .frise-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .exp-clients { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .photo-cadre { margin: 7px; box-shadow: 0 0 0 1px var(--trait), 0 0 0 6px var(--plaque-2), 0 0 0 7px var(--trait); }
  .photo-cartel { margin: 14px 7px 0; padding: 8px 10px 10px; }
  .photo-legende { font-size: 15px; }
  .vitrine-touches { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 8px; }
  .vitrine-touches .touche { font-size: 16px; padding: 6px 8px 8px; }
  .vt-ligne svg { width: 18px; height: 18px; }
  .fiche-engin h4 { font-size: 25px; }
  .fiche-nombre b { font-size: 48px; }
  .frise-nom { font-size: 15px; padding: 5px 7px 4px; }
  .cent { gap: 3px; }
  .exp-top { columns: 1; }
  .exp-dest li { grid-template-columns: 5.5em minmax(0, 1fr) 3em; font-size: 16px; }
}
.nb { hyphens: manual; -webkit-hyphens: manual; }
path.ligne.s-cible { stroke: var(--texte); stroke-width: 2; }
.fiche-details summary::marker { content: ""; }
.fiche-details summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 17px; }
.fiche-details[open] summary::before { content: "−"; }
@media (max-width: 620px) { .vitrine-touches .touche { min-height: 48px; } }
.ech-objet.repere .sil.approx { fill: var(--d-autre); stroke: none; opacity: .7; }
