/* Observatoire des menaces hybrides — feuille de style V0
   Les styles de mise en page sont portés en ligne par chaque élément (issus de la maquette V0.6).
   Ce fichier ajoute : polices locales, styles de base, survols, et l'adaptation mobile. */

/* ---------- Polices (auto-hébergées, licence SIL OFL 1.1) ---------- */
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/public-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/public-sans-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/public-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/public-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/public-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2'); }

/* ---------- Base (reprise de la maquette) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: #F9F6F2; color: #081520; font-family: 'Public Sans', system-ui, sans-serif; }
a { color: #C4530F; }
a:hover { color: #9E3800; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #EA8751; outline-offset: 2px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête : navigation complète sur grand écran, menu repliable sinon ---------- */
.menu-mobile:not(.open) { visibility: hidden; }
@media (min-width: 1100px) {
  .menu-toggle, .menu-mobile { display: none !important; }
}
@media (max-width: 1099.98px) {
  .nav-desktop { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Pages de texte (mentions légales, confidentialité, 404) ---------- */
.prose { font-family: 'Public Sans', sans-serif; font-size: 16.5px; line-height: 1.65; color: #2A3744; }
.prose h2 { font-family: 'Public Sans', sans-serif; font-weight: 700; font-size: 21px; line-height: 1.3; color: #081520; margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose b { color: #081520; }
.prose a { color: #9E3800; }

/* Agenda : un mot trop long revient a la ligne au lieu de deborder sur la colonne voisine */
.trow > * { min-width: 0; overflow-wrap: break-word; hyphens: auto; }

/* ---------- Adaptation tablette et mobile ----------
   La maquette fixe les grilles en ligne ; on les replie ici en une colonne. */
@media (max-width: 900px) {
  .gcols { grid-template-columns: minmax(0, 1fr) !important; row-gap: 40px !important; }
  .trow { grid-template-columns: minmax(0, 1fr) !important; row-gap: 4px !important; }
  .thead { display: none !important; }
  [style*="max-width: 1240px"] { padding-left: 20px !important; padding-right: 20px !important; }
  section[style*="padding: 96px 0px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  section[style*="padding: 48px;"] { padding: 28px 20px !important; }
  [style*="padding-left: 40px"][style*="border-left"] { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid #D8D3CF; padding-top: 32px; }
  [style*="padding-right: 40px"][style*="border-right"] { border-right: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 560px) {
  #newsletter [role="dialog"] > div:last-child { padding: 32px 22px 26px !important; }
  h1 { overflow-wrap: anywhere; hyphens: auto; }
}
/* Roue des piliers sur petit écran : la roue réduite au-dessus, les six piliers (noms complets) en grille dessous */
@media (max-width: 700px) {
  .wheel { aspect-ratio: auto !important; max-width: none !important; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wheel > svg { position: relative !important; inset: auto !important; grid-column: 1 / -1; width: min(220px, 64%) !important; height: auto !important; aspect-ratio: 1 / 1; margin: 0 auto 12px; }
  .wheel button { position: static !important; transform: none !important; width: auto !important; min-height: 72px !important; padding: 8px !important; font-size: 12.5px !important; }
}
@media (max-width: 900px) {
  nav.gcols { grid-template-columns: repeat(2, auto) !important; row-gap: 10px !important; }
}
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose .table-wrap { overflow-x: auto; margin: 6px 0 18px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #D8D3CF; }
.prose th { font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #56636F; background: #F1ECE7; }
@media (max-width: 600px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: auto; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { padding: 12px 0; border-bottom: 1px solid #D8D3CF; }
  .prose tr:first-child { border-top: 1px solid #D8D3CF; }
  .prose td { border: 0; padding: 3px 0; }
  .prose td::before { content: attr(data-label); display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: #56636F; margin-bottom: 2px; }
}

/* ---------- Survols et focus issus de la maquette (générés) ---------- */
.h06c2d7:hover { border-color: rgb(234, 135, 81) !important; }
.h0c6468:hover { background: rgb(218, 230, 241) !important; color: rgb(8, 21, 32) !important; }
.h11c75c:hover { border-color: rgb(196, 83, 15) !important; }
.h16b44b:hover { border-color: rgb(8, 21, 32) !important; }
.h201429:hover { background: rgb(234, 135, 81) !important; border-color: rgb(234, 135, 81) !important; }
.h305b01:hover { color: rgb(234, 135, 81) !important; }
.h57b5ab:hover { border-color: rgb(249, 246, 242) !important; }
.h5a6eeb:hover { color: rgb(158, 56, 0) !important; }
.h5bf5b5:focus { border-color: rgb(196, 83, 15) !important; box-shadow: rgba(196, 83, 15, 0.18) 0px 0px 0px 3px !important; }
.h622d85:hover { border-color: rgb(234, 135, 81) !important; background: rgba(255, 255, 255, 0.04) !important; }
.h699df1:focus { position: fixed !important; left: 16px !important; top: 16px !important; z-index: 200 !important; background: rgb(8, 21, 32) !important; color: rgb(249, 246, 242) !important; padding: 10px 16px !important; border: 1px solid rgb(196, 83, 15) !important; }
.h74ab3f:hover { background: rgba(255, 255, 255, 0.04) !important; }
.h874e95:hover { color: rgb(249, 246, 242) !important; }
.ha05fdf:hover { background: rgb(241, 236, 231) !important; }
.ha076a2:hover { color: rgb(196, 83, 15) !important; }
.hb0747d:hover { background: rgb(158, 56, 0) !important; }
.hba0ed2:hover { background: rgb(8, 21, 32) !important; color: rgb(249, 246, 242) !important; }
.hef2da1:hover { background: rgb(242, 156, 108) !important; }
