/* Site vitrine d'Ocelle : aucune police ni ressource tierce, thèmes clair et sombre (préférence du système). */

:root {
  color-scheme: light;
  --fond: #f5f7fb;
  --fond-2: #eaf0f8;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --texte: #121722;
  --texte-doux: #4a5568;
  --texte-faible: #5d6b80;
  --bordure: #dbe3ee;
  --marque: #0f6cbd;
  --marque-fort: #0b5aa0;
  --marque-2: #00838f;
  --sur-marque: #ffffff;
  --halo: rgba(15, 108, 189, 0.16);
  --halo-2: rgba(0, 131, 143, 0.14);
  --ombre: 0 24px 60px -24px rgba(17, 38, 74, 0.35), 0 8px 20px -12px rgba(17, 38, 74, 0.18);
  --ombre-douce: 0 10px 30px -18px rgba(17, 38, 74, 0.3);
  --rayon: 18px;
  --rayon-petit: 10px;
  --largeur: 1180px;
  --police: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --police-titre: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fond: #0b0f16;
    --fond-2: #0f1520;
    --surface: #131a26;
    --surface-2: #182132;
    --texte: #e9eef6;
    --texte-doux: #b3bfd0;
    --texte-faible: #96a3b6;
    --bordure: #263247;
    --marque: #5b9cf6;
    --marque-fort: #7fb2fa;
    --marque-2: #3fd6de;
    --sur-marque: #08111f;
    --halo: rgba(91, 156, 246, 0.2);
    --halo-2: rgba(63, 214, 222, 0.14);
    --ombre: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
    --ombre-douce: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --fond: #0b0f16;
  --fond-2: #0f1520;
  --surface: #131a26;
  --surface-2: #182132;
  --texte: #e9eef6;
  --texte-doux: #b3bfd0;
  --texte-faible: #96a3b6;
  --bordure: #263247;
  --marque: #5b9cf6;
  --marque-fort: #7fb2fa;
  --marque-2: #3fd6de;
  --sur-marque: #08111f;
  --halo: rgba(91, 156, 246, 0.2);
  --halo-2: rgba(63, 214, 222, 0.14);
  --ombre: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  --ombre-douce: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: var(--marque);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--marque-fort);
}

:focus-visible {
  outline: 3px solid var(--marque);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--police-titre);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 720;
}

h3 {
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--bordure);
  border-radius: 6px;
  padding: 0.05em 0.4em;
  overflow-wrap: anywhere;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 700px) {
  .conteneur {
    padding: 0 28px;
  }
}

.evitement {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--marque);
  color: var(--sur-marque);
  padding: 10px 16px;
  border-radius: var(--rayon-petit);
  font-weight: 600;
}

.evitement:focus {
  top: 12px;
  color: var(--sur-marque);
}

.discret {
  color: var(--texte-doux);
}

.sur-titre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marque-2);
  margin: 0 0 14px;
}

.sur-titre::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--marque), var(--marque-2));
}

/* --- En-tête -------------------------------------------------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fond) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--bordure) 70%, transparent);
}

.entete-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texte);
  text-decoration: none;
  font-family: var(--police-titre);
  font-weight: 720;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.marque:hover {
  color: var(--texte);
}

.logo {
  width: 34px;
  height: 34px;
  flex: none;
}

.logo-anneau {
  fill: none;
  stroke: var(--marque);
  stroke-width: 5;
  stroke-linecap: round;
}

.logo-etincelle {
  fill: var(--marque-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--texte-doux);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.96rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--texte);
  background: var(--surface-2);
}

.nav .bouton {
  margin-left: 8px;
}

/* Menus déroulants */
.nav-groupe {
  position: relative;
}

.nav-titre {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--texte-doux);
  font: 560 0.96rem var(--police);
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-titre:hover,
.nav-groupe.ouvert .nav-titre,
.nav-groupe.courant .nav-titre {
  color: var(--texte);
  background: var(--surface-2);
}

.nav-titre .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nav-groupe.ouvert .chevron {
  transform: rotate(180deg);
}

.sous-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 92vw);
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  z-index: 60;
}

/* Pont invisible : le survol ne se perd pas entre le titre et le panneau */
.sous-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-groupe:first-of-type .sous-menu {
  left: 0;
  transform: none;
}

.nav-groupe.ouvert .sous-menu,
.sans-js .nav-groupe:focus-within .sous-menu {
  display: grid;
}

@media (hover: hover) and (min-width: 1081px) {
  .nav-groupe:hover .sous-menu {
    display: grid;
  }
}

.nav .sous-lien {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--texte);
  font-size: 0.94rem;
}

.nav .sous-lien:hover {
  background: var(--surface-2);
}

.sous-icone {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--marque);
  background: linear-gradient(135deg, var(--halo), var(--halo-2));
}

.sous-icone svg {
  width: 20px;
  height: 20px;
}

.sous-texte {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sous-texte strong {
  font-weight: 620;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sous-texte > span {
  color: var(--texte-faible);
  font-size: 0.86rem;
  font-weight: 450;
  line-height: 1.35;
}

.nouveau {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sur-marque);
  background: linear-gradient(90deg, var(--marque), var(--marque-2));
  padding: 1px 7px;
  border-radius: 999px;
}

.menu-bouton {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bordure);
  border-radius: 12px;
  background: var(--surface);
  color: var(--texte);
  cursor: pointer;
}

.menu-bouton svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1080px) {
  .menu-bouton {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    background: var(--fond);
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre-douce);
  }

  .nav.ouverte {
    display: flex;
  }

  .nav a,
  .nav-titre {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-titre {
    width: 100%;
    justify-content: space-between;
  }

  .sous-menu {
    position: static;
    transform: none;
    width: auto;
    grid-template-columns: 1fr;
    margin: 2px 0 6px;
    padding: 4px;
    box-shadow: none;
    border-radius: 14px;
  }

  .sous-menu::before {
    display: none;
  }

  .nav .bouton {
    margin: 8px 0 0;
    justify-content: center;
  }
}

/* --- Boutons -------------------------------------------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 640;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.bouton svg {
  width: 18px;
  height: 18px;
}

.bouton-principal {
  background: var(--marque);
  color: var(--sur-marque);
  box-shadow: 0 10px 24px -12px var(--marque);
}

.bouton-principal:hover {
  color: var(--sur-marque);
  background: var(--marque-fort);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px var(--marque);
}

.bouton-secondaire {
  background: var(--surface);
  color: var(--texte);
  border-color: var(--bordure);
}

.bouton-secondaire:hover {
  color: var(--texte);
  border-color: var(--marque);
  transform: translateY(-1px);
}

.bouton-petit {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.93rem;
}

/* --- Bandeau d'accueil ---------------------------------------------------------------------------------- */

.accueil {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.accueil::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 760px;
  z-index: -1;
  background:
    radial-gradient(42% 46% at 22% 30%, var(--halo), transparent 70%),
    radial-gradient(38% 42% at 78% 22%, var(--halo-2), transparent 70%);
}

.accueil-texte {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.accueil h1 .degrade,
h2 .degrade {
  background: linear-gradient(100deg, var(--marque) 10%, var(--marque-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accroche {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: var(--texte-doux);
  max-width: 720px;
  margin: 0 auto 30px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pastilles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  max-width: 820px;
}

.pastilles li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--texte-doux);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 6px 13px;
}

.pastilles svg {
  width: 16px;
  height: 16px;
  color: var(--marque-2);
}

.accueil-visuel {
  margin: clamp(40px, 6vw, 64px) auto 0;
  max-width: 1120px;
  perspective: 1600px;
}

.accueil-visuel .ecran {
  transform: rotateX(8deg) scale(0.985);
  transform-origin: 50% 0;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.accueil-visuel.visible .ecran,
.accueil-visuel:hover .ecran {
  transform: rotateX(0deg) scale(1);
}

/* Cadre d'écran autour des captures */
.ecran {
  position: relative;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.ecran-barre {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--bordure);
}

.ecran-barre span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--texte-faible) 40%, transparent);
}

.ecran-barre .adresse {
  width: auto;
  height: auto;
  border-radius: 999px;
  margin-left: 12px;
  padding: 2px 12px;
  background: var(--surface);
  color: var(--texte-faible);
  font-size: 0.72rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ecran img,
.ecran video {
  width: 100%;
}

.telephone {
  width: min(300px, 78vw);
  margin: 0 auto;
  border-radius: 34px;
  padding: 10px;
  background: #0d121b;
  box-shadow: var(--ombre);
}

.telephone img {
  border-radius: 25px;
}

.legende-donnees {
  text-align: center;
  font-size: 0.84rem;
  color: var(--texte-faible);
  margin: 14px 0 0;
}

/* --- Sections ------------------------------------------------------------------------------------------- */

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--fond-2), var(--fond));
}

.section-tete {
  max-width: 760px;
  margin: 0 0 clamp(32px, 5vw, 52px);
}

.section-tete.centre {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tete p {
  font-size: 1.1rem;
  color: var(--texte-doux);
}

.trois {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 26px;
  box-shadow: var(--ombre-douce);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.carte:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--marque) 45%, var(--bordure));
}

.carte p {
  color: var(--texte-doux);
  margin: 0;
}

.icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: var(--marque);
  background: linear-gradient(135deg, var(--halo), var(--halo-2));
}

.icone svg {
  width: 24px;
  height: 24px;
}

/* Fonction : texte et visuel côte à côte, alternés */
.fonction {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.fonction + .fonction {
  margin-top: clamp(72px, 10vw, 120px);
}

.fonction.inverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.fonction.inverse .fonction-texte {
  order: 2;
}

@media (max-width: 900px) {
  .fonction,
  .fonction.inverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .fonction.inverse .fonction-texte {
    order: 0;
  }
}

.fonction-texte p {
  color: var(--texte-doux);
  font-size: 1.06rem;
}

.liste-coches {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.liste-coches li {
  position: relative;
  padding-left: 32px;
  color: var(--texte);
}

.liste-coches li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background:
    url("../img/coche.svg")
      center / 13px no-repeat,
    linear-gradient(135deg, var(--marque), var(--marque-2));
}

.empile {
  display: grid;
  gap: 18px;
}

.vignettes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 600px) {
  .vignettes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Grille des sources supervisées */
.couverture {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.source {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 18px;
}

.source .icone {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin: 0;
  flex: none;
}

.source .icone svg {
  width: 21px;
  height: 21px;
}

.source strong {
  display: block;
  margin-bottom: 2px;
}

.source span {
  font-size: 0.92rem;
  color: var(--texte-doux);
}

.etiquette-module {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem !important;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--marque-2) !important;
}

/* Étapes */
.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  counter-reset: etape;
  list-style: none;
  padding: 0;
  margin: 0;
}

.etapes li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 62px 24px 24px;
  counter-increment: etape;
}

.etapes li::before {
  content: counter(etape);
  position: absolute;
  top: 20px;
  left: 24px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sur-marque);
  background: linear-gradient(135deg, var(--marque), var(--marque-2));
}

.etapes p {
  color: var(--texte-doux);
  margin: 0;
}

/* Schéma d'architecture */
.schema {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 22px;
  padding: clamp(10px, 2vw, 24px);
  box-shadow: var(--ombre-douce);
}

.schema svg {
  width: 100%;
  height: auto;
}

.sch-zone {
  fill: color-mix(in srgb, var(--marque) 5%, transparent);
  stroke: color-mix(in srgb, var(--marque) 45%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 7 6;
}

.sch-zone-texte {
  fill: var(--marque);
  font: 650 13px var(--police);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sch-boite {
  fill: var(--surface);
  stroke: var(--bordure);
  stroke-width: 1.5;
}

.sch-boite-forte {
  fill: var(--surface);
  stroke: var(--marque);
  stroke-width: 2.5;
}

.sch-nuage {
  fill: var(--surface-2);
  stroke: var(--bordure);
  stroke-width: 1.5;
}

.sch-titre {
  fill: var(--texte);
  font: 650 16px var(--police);
}

.sch-texte {
  fill: var(--texte-doux);
  font: 400 13px var(--police);
}

.sch-petit {
  fill: var(--texte-faible);
  font: 600 11.5px var(--police);
  letter-spacing: 0.04em;
}

.sch-lien {
  fill: none;
  stroke: color-mix(in srgb, var(--marque) 35%, var(--bordure));
  stroke-width: 2;
}

.sch-flux {
  fill: none;
  stroke: var(--marque-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 16;
  animation: flux 1.4s linear infinite;
}

.sch-flux-lent {
  animation-duration: 2.4s;
}

.sch-barre {
  fill: none;
  stroke: var(--texte-faible);
  stroke-width: 2;
  stroke-dasharray: 3 5;
}

.sch-logo-anneau {
  fill: none;
  stroke: var(--marque);
  stroke-width: 5;
  stroke-linecap: round;
}

.sch-logo-etincelle {
  fill: var(--marque-2);
}

.sch-pastille {
  fill: var(--marque-2);
  animation: pulsation 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes flux {
  to {
    stroke-dashoffset: -18;
  }
}

@keyframes pulsation {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.schema-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--texte-doux);
}

/* Bloc sécurité */
.securite {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.securite .carte h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.securite .carte h3 svg {
  width: 22px;
  height: 22px;
  color: var(--marque-2);
  flex: none;
}

/* Appel final */
.appel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 80% at 15% 10%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(130deg, #0b5aa0, #0f6cbd 45%, #00727c);
  box-shadow: var(--ombre);
}

.appel h2 {
  color: #fff;
}

.appel p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.appel .bouton-principal {
  background: #fff;
  color: #0b4f8c;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.5);
}

.appel .bouton-principal:hover {
  background: #eef5ff;
  color: #0b4f8c;
}

.appel .bouton-secondaire {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.appel .bouton-secondaire:hover {
  color: #fff;
  border-color: #fff;
}

.marqueur {
  font-family: var(--mono);
  font-size: 0.86em;
  background: #fff3c4;
  color: #5a4300;
  border-radius: 6px;
  padding: 0.05em 0.45em;
}

.tarif {
  margin-top: 22px !important;
  font-size: 0.98rem !important;
}

/* --- Pied de page --------------------------------------------------------------------------------------- */

.pied {
  border-top: 1px solid var(--bordure);
  padding: 36px 0 44px;
  color: var(--texte-doux);
  font-size: 0.94rem;
}

.pied-grille {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 28px 40px;
  align-items: start;
}

.pied-marque .discret {
  margin: 10px 0 0;
}

.pied-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pied-colonne {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pied-titre {
  margin: 0 0 4px;
  color: var(--texte);
  font-weight: 650;
}

.pied-colonne a {
  text-decoration: none;
}

.pied-legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--bordure);
  font-size: 0.86rem;
}

@media (max-width: 700px) {
  .pied-grille,
  .pied-nav {
    grid-template-columns: 1fr;
  }
}

.pied a {
  color: var(--texte-doux);
}

.pied a:hover {
  color: var(--texte);
}

.pied .marque {
  font-size: 1.1rem;
}

.pied .logo {
  width: 28px;
  height: 28px;
}

/* --- Modules -------------------------------------------------------------------------------------------- */

.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.carte-module {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carte-module .icone {
  margin-bottom: 4px;
}

.carte-module h2 {
  font-size: 1.3rem;
  margin: 0;
}

.carte-module h2 a {
  color: var(--texte);
  text-decoration: none;
}

.carte-module h2 a:hover {
  color: var(--marque);
}

.carte-module .version {
  font-size: 0.86rem;
  color: var(--texte-faible);
}

.carte-module .actions-module {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.fil {
  font-size: 0.92rem;
  margin: 0 0 18px;
  color: var(--texte-faible);
}

.fil a {
  color: var(--texte-doux);
}

.module-tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

@media (max-width: 760px) {
  .module-tete {
    grid-template-columns: minmax(0, 1fr);
  }
}

.module-tete h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 14px;
}

.module-tete h1 .icone {
  margin: 0;
  width: 54px;
  height: 54px;
  flex: none;
}

.encart {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 22px;
  min-width: min(100%, 300px);
  box-shadow: var(--ombre-douce);
}

.encart dl {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 0.93rem;
}

.encart dt {
  color: var(--texte-faible);
}

.encart dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.empreinte {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  word-break: break-all;
}

.signature {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--texte-doux);
  margin: 14px 0 0;
}

.signature svg {
  width: 18px;
  height: 18px;
  color: var(--marque-2);
  flex: none;
  margin-top: 2px;
}

.blocs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.blocs .carte h2 {
  font-size: 1.2rem;
}

.blocs ul,
.blocs ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--texte-doux);
}

.blocs li + li {
  margin-top: 6px;
}

.versions {
  list-style: none;
  padding: 0 !important;
  margin: 0;
}

.versions li {
  border-left: 3px solid var(--bordure);
  padding: 2px 0 2px 14px;
}

.versions li + li {
  margin-top: 14px !important;
}

.versions li:first-child {
  border-left-color: var(--marque-2);
}

.versions strong {
  color: var(--texte);
}

.galerie-module {
  display: grid;
  gap: 26px;
  margin-top: 40px;
}

.galerie-module figure {
  margin: 0;
}

.galerie-module figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--texte-faible);
  text-align: center;
}

/* Mentions légales */
.texte-legal {
  max-width: 780px;
}

.texte-legal h2 {
  font-size: 1.45rem;
  margin-top: 1.6em;
}

.texte-legal p,
.texte-legal li {
  color: var(--texte-doux);
}

/* --- Apparitions au défilement (coupées si l'utilisateur refuse les animations) ------------------------- */

.apparait {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.apparait.visible {
  opacity: 1;
  transform: none;
}

.sans-js .apparait {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .apparait,
  .accueil-visuel .ecran {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sch-flux,
  .sch-pastille {
    animation: none;
  }

  .carte:hover,
  .bouton:hover {
    transform: none;
  }
}

/* --- Ajustements ---------------------------------------------------------------------------------------- */

.nav a.bouton-principal,
.nav a.bouton-principal:hover {
  color: var(--sur-marque);
  background: var(--marque);
}

.nav a.bouton-principal:hover {
  background: var(--marque-fort);
}

.bloc-suite {
  margin-top: clamp(40px, 6vw, 72px);
}

.vignettes figure {
  margin: 0;
}

.lien-suite {
  margin: 28px 0 0;
  font-weight: 600;
}

.section-tete:not(.centre) .accroche {
  margin-left: 0;
  margin-right: 0;
}

.blocs .carte p {
  margin: 0 0 8px;
}

.blocs .carte ul,
.blocs .carte ol {
  margin-bottom: 10px;
}

/* --- Aide en ligne (site/aide/, générée par outils/site/generer-aide.mjs) ------------------------------------------- */
.conteneur-texte {
  max-width: 820px;
}
.article-aide h1 {
  margin-bottom: 0.5rem;
}
.article-section {
  margin-top: 2rem;
}
.article-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.etapes {
  padding-left: 1.4rem;
}
.etapes li {
  margin-bottom: 1rem;
}
.commande {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit);
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.aide-rubriques {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.rubrique-aide {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.25rem 1.5rem;
}
.rubrique-aide ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rubrique-aide li {
  margin: 0.6rem 0;
}
@media (max-width: 420px) {
  .aide-rubriques {
    grid-template-columns: 1fr;
  }
}
.article-section p,
.article-section li {
  overflow-wrap: anywhere;
}
.rubrique-aide h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}
.ecran-aide {
  margin: 1.5rem 0 0.5rem;
}
.ecran-aide video {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Pages de présentation (fonctionnement, écrans muraux, surveillance externe, mises à jour) ------------- */

:root {
  --ok: #107c10;
  --alerte: #c75c00;
  --critique: #c50f1f;
  --pause: #5d6b80;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ok: #54c45e;
    --alerte: #f2994a;
    --critique: #ff6b75;
    --pause: #96a3b6;
  }
}

:root[data-theme="dark"] {
  --ok: #54c45e;
  --alerte: #f2994a;
  --critique: #ff6b75;
  --pause: #96a3b6;
}

.page-tete {
  position: relative;
  padding: clamp(44px, 7vw, 88px) 0 clamp(24px, 4vw, 44px);
  overflow: hidden;
  isolation: isolate;
}

.page-tete::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 620px;
  z-index: -1;
  background:
    radial-gradient(40% 46% at 18% 40%, var(--halo), transparent 70%),
    radial-gradient(36% 42% at 82% 30%, var(--halo-2), transparent 70%);
}

.page-tete h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  max-width: 20ch;
}

.page-tete h1 .degrade {
  background: linear-gradient(100deg, var(--marque) 10%, var(--marque-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-tete .accroche {
  max-width: 64ch;
}

.sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.sommaire a {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--bordure);
  background: var(--surface);
  color: var(--texte-doux);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 560;
}

.sommaire a:hover {
  color: var(--texte);
  border-color: var(--marque);
}

.grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.grille-cartes .carte h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grille-cartes .carte h3 svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--marque);
}

/* Chaîne d'étapes reliées (le trajet d'une alerte, une mise à jour…) */
.chaine {
  display: grid;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: maillon;
}

.chaine-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chaine-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chaine-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.maillon {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 20px 18px 18px;
  counter-increment: maillon;
  box-shadow: var(--ombre-douce);
}

.maillon .icone {
  margin-bottom: 12px;
}

.maillon::before {
  content: counter(maillon);
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--sur-marque);
  background: linear-gradient(135deg, var(--marque), var(--marque-2));
}

.maillon h3 {
  font-size: 1.04rem;
  margin-bottom: 6px;
}

.maillon p {
  color: var(--texte-doux);
  font-size: 0.93rem;
  margin: 0;
}

.maillon .qui {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--marque);
}

/* Liaison animée vers l'étape suivante */
.maillon:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  left: 100%;
  width: 22px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--marque-2) 0 4px, transparent 4px 9px);
  background-size: 18px 3px;
  animation: liaison 0.9s linear infinite;
}

@keyframes liaison {
  to {
    background-position: 18px 0;
  }
}

@media (max-width: 1000px) {
  .chaine-4,
  .chaine-5,
  .chaine-6 {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .maillon:not(:last-child)::after {
    top: 100%;
    left: 36px;
    width: 3px;
    height: 22px;
    background: repeating-linear-gradient(180deg, var(--marque-2) 0 4px, transparent 4px 9px);
    background-size: 3px 18px;
    animation-name: liaison-verticale;
  }
}

@keyframes liaison-verticale {
  to {
    background-position: 0 18px;
  }
}

.issue {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: var(--rayon);
  border: 1px dashed color-mix(in srgb, var(--alerte) 60%, var(--bordure));
  background: color-mix(in srgb, var(--alerte) 6%, var(--surface));
}

.issue svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--alerte);
  margin-top: 2px;
}

.issue p {
  margin: 0;
  color: var(--texte-doux);
}

.issue strong {
  color: var(--texte);
}

/* Avant / après : un incident au lieu de quarante */
.duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.duo-carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 18px;
  box-shadow: var(--ombre-douce);
  min-width: 0;
}

.duo-carte.duo-ocelle {
  border-color: var(--marque);
  box-shadow: 0 0 0 4px var(--halo), var(--ombre-douce);
}

.duo-titre {
  font-weight: 650;
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.duo-titre span {
  color: var(--texte-faible);
  font-weight: 500;
  font-size: 0.9rem;
}

.duo-fleche {
  width: 44px;
  height: 44px;
  color: var(--marque-2);
}

.alertes-pluie {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.alertes-pluie li,
.incident-cause {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.88rem;
  min-width: 0;
}

.alertes-pluie li span:last-child,
.incident-cause span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pastille-etat {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--critique);
}

.pastille-etat.alerte { background: var(--alerte); }
.pastille-etat.ok { background: var(--ok); }
.pastille-etat.pause { background: var(--pause); }

.visible .alertes-pluie li {
  animation: tombe 0.5s ease both;
}

.alertes-pluie li:nth-child(2) { animation-delay: 0.15s; }
.alertes-pluie li:nth-child(3) { animation-delay: 0.3s; }
.alertes-pluie li:nth-child(4) { animation-delay: 0.45s; }
.alertes-pluie li:nth-child(5) { animation-delay: 0.6s; }
.alertes-pluie li:nth-child(6) { animation-delay: 0.75s; }
.alertes-pluie li:nth-child(7) { animation-delay: 0.9s; }
.alertes-pluie li:nth-child(8) { animation-delay: 1.05s; }

@keyframes tombe {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.alertes-suite {
  margin: 10px 0 0;
  color: var(--texte-faible);
  font-size: 0.88rem;
}

.incident-cause {
  background: color-mix(in srgb, var(--critique) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--critique) 35%, var(--bordure));
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 14px;
}

.consequences {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed var(--bordure);
  color: var(--texte-doux);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 860px) {
  .duo {
    grid-template-columns: 1fr;
  }

  .duo-fleche {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

/* Écrans muraux : la télé et le poste de l'administrateur */
.appairage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: appairage;
}

.appairage > li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-increment: appairage;
}

.appairage h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.appairage h3::before {
  content: counter(appairage);
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.9rem;
  color: var(--sur-marque);
  background: linear-gradient(135deg, var(--marque), var(--marque-2));
}

.appairage p {
  margin: 0;
  color: var(--texte-doux);
}

.tele {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d1117;
  border: 1px solid #333c4b;
  border-radius: 14px;
  padding: 9px;
  box-shadow: var(--ombre);
  margin-bottom: 16px;
}

.tele::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 30%;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #2a313c;
}

.tele-ecran {
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f7fb;
  color: #121722;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 8px;
}

.tele-ecran.tele-vue {
  position: relative;
  padding: 0;
}

/* L'image ne doit pas agrandir la télé au-delà de son format */
.tele-ecran.tele-vue img {
  position: absolute;
  inset: 0;
}

.tele-ecran img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.tele-ecran .mini-logo {
  width: 26px;
  height: 26px;
}

.tele-ecran .mini-logo .logo-anneau {
  stroke: #0f6cbd;
}

.tele-ecran .mini-logo .logo-etincelle {
  fill: #00838f;
}

.tele-ecran .mini-titre {
  font-weight: 700;
  font-size: 0.9rem;
}

.tele-ecran .mini-texte {
  font-size: 0.68rem;
  color: #4a5568;
  max-width: 28ch;
  line-height: 1.3;
}

.code-ecran {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  letter-spacing: 0.14em;
  color: #0f6cbd;
  padding: 2px 12px;
  border-radius: 8px;
  background: #e7f0fb;
}

.visible .code-ecran {
  animation: clignote-code 3s ease-in-out infinite;
}

@keyframes clignote-code {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(15, 108, 189, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(15, 108, 189, 0.18);
  }
}

.poste {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  box-shadow: var(--ombre-douce);
  padding: 14px;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  overflow: hidden;
}

.poste-chemin {
  color: var(--texte-faible);
  font-size: 0.76rem;
}

.poste-champ {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--marque);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.poste-champ svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--marque);
}

.poste-origine {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin: 0;
  color: var(--texte-doux);
  font-size: 0.8rem;
}

.poste-origine dt {
  color: var(--texte-faible);
}

.poste-origine dd {
  margin: 0;
}

.poste-confirmer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.82rem;
}

.poste-confirmer .case {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 4px;
  background: var(--marque);
  display: grid;
  place-items: center;
  color: var(--sur-marque);
}

.poste-confirmer .case svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 900px) {
  .appairage {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* Frise de la licence : la supervision ne s'arrête jamais */
.frise {
  display: grid;
  gap: 10px;
}

.frise-bandes {
  display: grid;
  grid-template-columns: 5fr 1.6fr 2.2fr 3fr;
  gap: 4px;
}

.frise-bande {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.35;
  background: var(--surface);
  border: 1px solid var(--bordure);
}

.frise-bande strong {
  display: block;
  font-size: 0.95rem;
}

.frise-bande span {
  color: var(--texte-doux);
}

.frise-bande.valable { border-top: 4px solid var(--ok); }
.frise-bande.rappel { border-top: 4px solid var(--marque); }
.frise-bande.grace { border-top: 4px solid var(--alerte); }
.frise-bande.apres { border-top: 4px solid var(--pause); }

.frise-toujours {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--bordure));
  font-weight: 600;
}

.frise-toujours svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--ok);
}

@media (max-width: 760px) {
  .frise-bandes {
    grid-template-columns: 1fr;
  }
}

/* Questions fréquentes */
.questions {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.questions details {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 0 18px;
}

.questions summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 620;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.questions summary::-webkit-details-marker {
  display: none;
}

.questions summary::after {
  content: "+";
  color: var(--marque);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.questions details[open] summary::after {
  content: "\2212";
}

.questions details p {
  color: var(--texte-doux);
  margin: 0 0 16px;
}

/* Schémas SVG : états et battement de cœur */
.sch-ok { fill: var(--ok); }
.sch-critique { fill: var(--critique); }
.sch-alerte { fill: var(--alerte); }

.sch-trait-alerte {
  fill: none;
  stroke: var(--alerte);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  animation: flux 1.4s linear infinite;
}

.sch-pouls {
  fill: none;
  stroke: var(--marque-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: pouls 2.4s ease-in-out infinite;
}

@keyframes pouls {
  0% { stroke-dashoffset: 150; }
  60%,
  100% { stroke-dashoffset: 0; }
}

.sch-mur {
  fill: color-mix(in srgb, var(--critique) 8%, var(--surface));
  stroke: color-mix(in srgb, var(--critique) 45%, var(--bordure));
  stroke-width: 1.5;
}

.sch-icone {
  fill: none;
  stroke: var(--marque);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sch-icone-texte {
  fill: none;
  stroke: var(--texte-doux);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sch-gros {
  fill: var(--texte);
  font: 700 20px var(--police);
}

@media (prefers-reduced-motion: reduce) {
  .maillon::after,
  .sch-pouls,
  .sch-trait-alerte,
  .visible .code-ecran,
  .visible .alertes-pluie li {
    animation: none !important;
  }

  .sch-pouls {
    stroke-dashoffset: 0;
  }
}

/* Schémas larges : sur téléphone, ils défilent dans leur cadre plutôt que de devenir illisibles */
@media (max-width: 700px) {
  .schema-defile {
    overflow-x: auto;
  }

  .schema-defile svg {
    min-width: 680px;
  }
}

/* Loupe : capture agrandie en fondu (site.js) */
.agrandissable {
  cursor: zoom-in;
  transition: filter 0.2s ease;
}

.agrandissable:hover {
  filter: brightness(1.04) saturate(1.05);
}

.agrandissable:focus-visible {
  outline: 3px solid var(--marque);
  outline-offset: -3px;
}

.loupe {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 44px);
  background: rgba(5, 9, 16, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.26s ease;
  cursor: zoom-out;
}

.loupe[hidden] {
  display: none;
}

.loupe.ouverte {
  opacity: 1;
}

.loupe img {
  max-width: min(100%, 1900px);
  max-height: calc(100vh - 88px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.26s ease;
}

.loupe.ouverte img {
  transform: none;
}

.loupe-fermer {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.loupe-fermer:hover {
  background: rgba(255, 255, 255, 0.2);
}

.loupe-fermer svg {
  width: 22px;
  height: 22px;
}

html.loupe-active {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .loupe,
  .loupe img {
    transition: none;
  }
}

/* Notifications : deux e-mails côte à côte (ouverture, résolution), l'un sous l'autre sur téléphone */
.courriels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.courriel {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 14px;
  box-shadow: var(--ombre-douce);
}

.courriel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.courriel figcaption {
  margin-top: 10px;
  color: var(--texte-faible);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .courriels {
    grid-template-columns: 1fr;
  }
}
