/* RT Cyber — feuille de style unique, sans dépendance externe */

@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --encre: #14213d;        /* bleu nuit : texte, marque */
  --encre-douce: #2c3a5a;
  --ardoise: #556074;      /* texte secondaire */
  --papier: #f6f7f9;       /* fond */
  --blanc: #ffffff;
  --ligne: #d9dde4;
  --surligneur: #f2e94e;   /* le geste de l'audit : on surligne ce qui reste à traiter */
  --valide: #1f7a5a;
  --focus: #2f5bd3;
  --bord-champ: #b9c0cc;
  --encre-fixe: #14213d;   /* texte posé sur le jaune, quel que soit le thème */
  --dispo: #1f7a5a;
  --indispo: #b35c00;
  color-scheme: light;

  --mesure: 68ch;
  --large: 72rem;
  --rayon: 6px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6.5rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --encre: #e7ebf3;
  --encre-douce: #c3cad8;
  --ardoise: #97a1b4;
  --papier: #0e1526;
  --blanc: #162038;
  --ligne: #27324d;
  --valide: #4cc496;
  --focus: #7aa2ff;
  --bord-champ: #3a4664;
  --dispo: #4cc496;
  --indispo: #f0a347;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --encre: #e7ebf3;
  --encre-douce: #c3cad8;
  --ardoise: #97a1b4;
  --papier: #0e1526;
  --blanc: #162038;
  --ligne: #27324d;
  --valide: #4cc496;
  --focus: #7aa2ff;
  --bord-champ: #3a4664;
  --dispo: #4cc496;
  --indispo: #f0a347;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--encre); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--s2); font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); max-width: 17ch; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); max-width: 24ch; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 var(--s2); max-width: var(--mesure); }

.saut { position: absolute; left: -999px; top: var(--s1); background: var(--blanc); padding: var(--s1) var(--s2); z-index: 10; }
.saut:focus { left: var(--s2); }

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--s2); }
@media (min-width: 40rem) { .conteneur { padding: 0 var(--s3); } }

/* En-tête */
.entete { border-bottom: 1px solid var(--ligne); background: var(--papier); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 4.25rem; }
.marque { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.marque svg { width: 2rem; height: 2rem; }
.nav { display: flex; align-items: center; gap: var(--s3); }
.nav a.lien { text-decoration: none; color: var(--ardoise); font-weight: 500; }
.nav a.lien:hover { color: var(--encre); text-decoration: underline; }
@media (max-width: 47.99rem) { .nav a.lien { display: none; } }

/* Boutons */
.bouton {
  display: inline-block; padding: .8rem 1.25rem; border-radius: var(--rayon);
  font-weight: 600; text-decoration: none; line-height: 1.2;
  background: var(--encre); color: var(--blanc); border: 2px solid var(--encre);
  font: inherit; font-weight: 600; cursor: pointer;
}
.bouton:hover { background: var(--encre-douce); border-color: var(--encre-douce); }
.bouton-discret { background: transparent; color: var(--encre); }
.bouton-discret:hover { background: var(--blanc); }
.bouton-compact { padding: .55rem 1rem; }

/* Héros */
.heros { padding: var(--s5) 0 var(--s5); }
.heros .conteneur { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 60rem) { .heros .conteneur { grid-template-columns: 1.05fr 1fr; gap: var(--s5); } .heros { padding: var(--s6) 0; } }
.heros .chapeau { font-size: 1.2rem; color: var(--encre-douce); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

/* Le questionnaire, élément signature */
.questionnaire {
  margin: 0; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  box-shadow: 0 1px 0 var(--ligne), 0 18px 40px -24px rgba(0, 0, 0, .45);
  font-size: .95rem;
}
.questionnaire-tete { display: flex; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s3); border-bottom: 1px solid var(--ligne); }
.questionnaire-tete strong { font-weight: 600; }
.questionnaire-tete span { color: var(--ardoise); white-space: nowrap; }
.questionnaire ol { list-style: none; margin: 0; padding: 0; }
.questionnaire li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .25rem var(--s1); padding: .9rem var(--s3); border-bottom: 1px solid var(--ligne); }
.questionnaire li:last-child { border-bottom: 0; }
.questionnaire .num { color: var(--ardoise); font-variant-numeric: tabular-nums; }
.questionnaire .q { margin: 0; }
.questionnaire .statut { grid-column: 2; display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 500; }
.statut-ok { color: var(--valide); }
.statut-ok::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--valide); }
.statut-encours { color: var(--encre); }
.statut-encours::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--encre); }
.questionnaire li.a-traiter .q mark { background: linear-gradient(transparent 12%, var(--surligneur) 12%, var(--surligneur) 88%, transparent 88%); color: var(--encre-fixe); padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.questionnaire figcaption { padding: .75rem var(--s3); font-size: .8rem; color: var(--ardoise); border-top: 1px solid var(--ligne); background: var(--papier); border-radius: 0 0 var(--rayon) var(--rayon); }

/* Sections */
.section { padding: var(--s5) 0; border-top: 1px solid var(--ligne); }
@media (min-width: 60rem) { .section { padding: var(--s6) 0; } }
.section-blanche { background: var(--blanc); }
.intro { margin-bottom: var(--s4); }
.intro p { color: var(--encre-douce); font-size: 1.1rem; }

/* Problème */
.constats { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .constats { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.constats li { border-left: 3px solid var(--surligneur); padding-left: var(--s2); }
.constats p { margin: 0; }

/* Offres : une ligne par formule, la formule centrale mise en avant */
.offres { display: grid; gap: var(--s3); }
.offre { display: grid; gap: var(--s2); padding: var(--s3); border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--blanc); }
@media (min-width: 56rem) { .offre { grid-template-columns: 15rem 1fr 13rem; gap: var(--s4); padding: var(--s4); } }
.offre h3 { margin-bottom: .35rem; }
.offre .pour { margin: 0; color: var(--ardoise); }
.offre ul { margin: 0; padding-left: 1.1rem; }
.offre li + li { margin-top: .4rem; }
.offre .format { margin: 0; font-size: .95rem; color: var(--encre-douce); }
.offre .format strong { display: block; font-weight: 600; color: var(--encre); }
.offre-phare { border: 2px solid var(--encre); }
.offre-phare .pastille { display: inline-block; margin-bottom: var(--s1); padding: .1rem .5rem; background: var(--surligneur); border-radius: 3px; font-size: .85rem; font-weight: 600; color: var(--encre-fixe); }
.note { margin-top: var(--s3); color: var(--ardoise); }

/* Méthode : vraie séquence, donc numérotée */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); counter-reset: etape; }
@media (min-width: 52rem) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etapes li { counter-increment: etape; padding-top: var(--s2); border-top: 2px solid var(--encre); }
.etapes li::before { content: counter(etape); display: block; font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: var(--s1); font-variant-numeric: tabular-nums; }
.etapes p { margin: 0; color: var(--encre-douce); }

/* Pourquoi */
.arguments { display: grid; gap: var(--s4); }
@media (min-width: 52rem) { .arguments { grid-template-columns: repeat(3, 1fr); } }
.arguments p { color: var(--encre-douce); margin: 0; }
.preuve-site { margin-top: var(--s4); padding: var(--s2) var(--s3); background: var(--papier); border-radius: var(--rayon); font-size: .95rem; }
.preuve-site p { margin: 0; }

/* FAQ */
.faq { max-width: 48rem; border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { cursor: pointer; padding: var(--s2) 2rem var(--s2) 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: var(--s2); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--encre-douce); margin: 0 0 var(--s2); }

/* Contact */
.contact { display: grid; gap: var(--s4); }
@media (min-width: 56rem) { .contact { grid-template-columns: 1fr 1.2fr; gap: var(--s5); } }
.formulaire { display: grid; gap: var(--s2); background: var(--blanc); padding: var(--s3); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.champ { display: grid; gap: .35rem; }
.champ label { font-weight: 600; font-size: .95rem; }
.champ .aide { font-weight: 400; color: var(--ardoise); }
.champ input, .champ textarea {
  font: inherit; color: var(--encre); background: var(--blanc);
  border: 1px solid var(--bord-champ); border-radius: var(--rayon); padding: .7rem .8rem; width: 100%;
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus-visible, .champ textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.mention { font-size: .85rem; color: var(--ardoise); margin: 0; }
.cache { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page */
.pied { border-top: 1px solid var(--ligne); padding: var(--s4) 0; font-size: .925rem; color: var(--ardoise); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }
.pied nav { display: flex; flex-wrap: wrap; gap: var(--s3); }
.pied a { color: var(--ardoise); }

/* Pages secondaires */
.page { padding: var(--s5) 0 var(--s6); }
.page .conteneur { max-width: 48rem; }
.page h2 { font-size: 1.35rem; margin-top: var(--s4); }
.page p, .page li { color: var(--encre-douce); }
.page ul { padding-left: 1.1rem; }
.a-completer { background: var(--surligneur); color: var(--encre-fixe); padding: 0 .2em; }

/* Bouton thème jour / nuit */
.theme { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--ligne); border-radius: 50%; background: transparent; color: var(--encre); cursor: pointer; }
.theme:hover { background: var(--blanc); }
.theme svg { width: 1.2rem; height: 1.2rem; }
.theme .lune { display: none; }
:root[data-theme="dark"] .theme .soleil { display: none; }
:root[data-theme="dark"] .theme .lune { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .soleil { display: none; }
  :root:not([data-theme="light"]) .theme .lune { display: block; }
}
.marque svg { box-shadow: 0 0 0 1px var(--ligne); border-radius: 6px; }

/* Badge de disponibilité */
.dispo { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 var(--s3); padding: .35rem .8rem .35rem .65rem; border: 1px solid var(--ligne); border-radius: 999px; background: var(--blanc); font-size: .925rem; font-weight: 500; }
.dispo-point { position: relative; width: .6rem; height: .6rem; border-radius: 50%; background: var(--dispo); flex: none; }
.dispo-point::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dispo); animation: pouls 2.4s ease-out infinite; }
.dispo-indispo .dispo-point, .dispo-indispo .dispo-point::after { background: var(--indispo); }
.dispo-indispo .dispo-point::after { animation: none; }
@keyframes pouls { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dispo-point::after { animation: none; } }

/* Services : ce que je prends en charge */
.services { display: grid; gap: var(--s4); }
@media (min-width: 52rem) { .services { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s5); } }
.service { padding-top: var(--s3); border-top: 2px solid var(--encre); }
.service p { color: var(--encre-douce); }
.etiquettes { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.etiquettes li { padding: .3rem .65rem; border: 1px solid var(--ligne); border-radius: 4px; background: var(--blanc); font-size: .9rem; line-height: 1.35; }
