/* L'aide en ligne d'ArkiaSuite — une seule feuille pour toutes ses pages.

   Les couleurs, les polices et la barre du haut sont celles du site : on doit
   sentir qu'on est toujours chez ArkiaSuite. Le reste est fait pour quelqu'un
   qui découvre l'ordinateur : de grands numéros d'étapes, des noms de boutons
   reconnaissables, des lignes courtes, et rien qui bouge sans qu'on le demande.
   Les pages se lisent sans JavaScript ; seule la recherche s'en sert, et la
   liste complète reste affichée sans lui. */

:root {
  --ground: #FAF7F6; --surface: #FFFFFF; --surface-2: #F2ECEB;
  --ink: #1B1416; --ink-2: #5F5254; --ink-3: #8A7C7E;
  --line: #E6DCDB; --line-fort: #D3C5C4;
  --accent: #8B1A1A; --accent-2: #A32323; --accent-soft: #F7EAE9;
  --sur-accent: #FFFFFF;
  --astuce: #FFF8E6; --astuce-ligne: #E9C46A;
  --serif: 'Spectral', 'Iowan Old Style', Georgia, serif;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', Consolas, ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #151011; --surface: #1E1718; --surface-2: #271F20;
    --ink: #F3ECEB; --ink-2: #B7A9AA; --ink-3: #8C7D7E;
    --line: #342A2B; --line-fort: #4A3B3C;
    --accent: #D9564F; --accent-2: #E9736B; --accent-soft: #2B1A1A;
    --sur-accent: #1A1112;
    --astuce: #2A2416; --astuce-ligne: #8C7432;
  }
}
:root[data-theme="dark"] {
  --ground: #151011; --surface: #1E1718; --surface-2: #271F20;
  --ink: #F3ECEB; --ink-2: #B7A9AA; --ink-3: #8C7D7E;
  --line: #342A2B; --line-fort: #4A3B3C;
  --accent: #D9564F; --accent-2: #E9736B; --accent-soft: #2B1A1A;
  --sur-accent: #1A1112;
  --astuce: #2A2416; --astuce-ligne: #8C7432;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p, ul, ol { margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.invisible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pour qui navigue au clavier : sauter directement au texte. */
.saut { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--accent); color: var(--sur-accent); padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.saut:focus { top: 10px; color: var(--sur-accent); }

/* ------------------------------------------------------------ La barre du haut */

.barre { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.barre .dedans { max-width: 1200px; margin-inline: auto; padding: 0 24px; min-height: 64px; display: flex; align-items: center; gap: 16px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.marque:hover { color: var(--ink); }
.marque svg { width: 28px; height: 28px; border-radius: 7px; display: block; flex: none; }
.marque .aide { font-weight: 600; color: var(--accent); border-left: 1px solid var(--line-fort); padding-left: 10px; }
.cherche { flex: 1; max-width: 440px; margin-left: auto; display: flex; }
.cherche input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-fort); border-right: 0; border-radius: 10px 0 0 10px;
}
.cherche input::placeholder { color: var(--ink-3); }
.cherche button {
  height: 42px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--sur-accent); background: var(--accent); border: 1px solid var(--accent); border-radius: 0 10px 10px 0;
}
.cherche button:hover { background: var(--accent-2); }
/* « Retour à l'appli » : un petit menu, sans JavaScript (<details>). */
.retour-appli { position: relative; flex: none; }
.retour-appli summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border: 1px solid var(--line-fort); border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.retour-appli summary::-webkit-details-marker { display: none; }
.retour-appli summary::before { content: '←'; color: var(--accent); font-weight: 700; }
.retour-appli summary:hover, .retour-appli[open] summary { border-color: var(--accent); }
.retour-appli > div {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  width: min(340px, calc(100vw - 32px)); padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line-fort); border-radius: 12px;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .4); font-size: 15px; line-height: 1.5;
}
.retour-appli > div p + p { margin-top: 10px; }
.bascule-theme {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line-fort); border-radius: 9px;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.bascule-theme:hover { color: var(--accent); border-color: var(--accent); }
.bascule-theme svg { width: 17px; height: 17px; }
.bascule-theme .pour-clair { display: none; }
.bascule-theme[aria-pressed="true"] .pour-sombre { display: none; }
.bascule-theme[aria-pressed="true"] .pour-clair { display: block; }

/* ------------------------------------------------------------ La page : menu à gauche, texte à droite */

.page { max-width: 1200px; margin-inline: auto; padding: 0 24px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
.menu { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; padding: 28px 4px 40px 0; font-size: 15px; }
.menu > p { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px 10px; }
.menu ul { list-style: none; padding: 0; }
.menu li { margin: 0; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.menu a:hover { background: var(--surface-2); color: var(--ink); }
.menu a[aria-current="page"], .menu .ouverte > a { color: var(--ink); font-weight: 600; }
.menu a[aria-current="page"] { background: var(--accent-soft); }
.menu svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.menu .ouverte > a svg { color: var(--accent); }
.menu ul ul { margin: 2px 0 10px 19px; padding-left: 10px; border-left: 1px solid var(--line); font-size: 14.5px; }
.menu ul ul a { padding: 5px 10px; }

/* Au téléphone, le menu passe au-dessus du texte, replié. */
.menu-telephone { display: none; margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.menu-telephone summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.menu-telephone summary::-webkit-details-marker { display: none; }
.menu-telephone summary svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.menu-telephone summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); }
.menu-telephone[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.menu-telephone .menu { position: static; max-height: none; padding: 0 12px 14px; }

main { min-width: 0; padding: 32px 0 80px; }
.texte { max-width: 68ch; }

.fil { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.fil a { color: var(--ink-2); text-decoration: none; }
.fil a:hover { color: var(--accent); text-decoration: underline; }
.fil .sep { margin: 0 6px; color: var(--line-fort); }

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.12; }
.chapeau { margin-top: 14px; font-size: 18.5px; color: var(--ink-2); max-width: 64ch; }
h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 14px; }
h3 { font-size: 18px; line-height: 1.3; margin: 26px 0 8px; }
main p + p { margin-top: 12px; }

/* Ce que l'écran affiche : un nom de bouton, de menu ou de champ. */
.ui {
  display: inline-block; padding: 0 7px; border-radius: 6px; line-height: 1.5;
  font-weight: 600; font-size: .94em; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-fort); box-shadow: 0 1px 0 var(--line-fort);
  white-space: nowrap;
}
kbd {
  display: inline-block; min-width: 1.7em; padding: 0 6px; border-radius: 6px; text-align: center;
  font-family: var(--mono); font-size: .82em; line-height: 1.7; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-fort); border-bottom-width: 2px;
}

/* ------------------------------------------------------------ La vidéo */

.video { margin: 26px 0 0; }
.video video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 11;
  background: #1B1416; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(27, 20, 22, .45);
}
.video figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }

/* La capture : une image fixe de la démo, le bouton à trouver entouré de rouge. */
.capture { margin: 26px 0 0; }
.capture img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  box-shadow: 0 10px 30px -18px rgba(27, 20, 22, .45);
}
.capture.etroite img { max-width: 390px; }
.capture figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }

/* En bas de chaque page : où aller quand la réponse n'y est pas. */
.pas-trouve {
  margin-top: 44px; max-width: 68ch; padding: 16px 20px; border-radius: 12px;
  background: var(--surface); border: 1px dashed var(--line-fort); font-size: 15.5px;
}

/* ------------------------------------------------------------ Les étapes */

.etapes { list-style: none; padding: 0; counter-reset: etape; max-width: 68ch; }
.etapes > li {
  counter-increment: etape; position: relative; padding: 4px 0 4px 56px; min-height: 40px;
}
.etapes > li + li { margin-top: 18px; }
.etapes > li::before {
  content: counter(etape); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; color: var(--sur-accent); background: var(--accent);
}
.etapes > li > p + p { margin-top: 6px; }
.etapes .detail { color: var(--ink-2); font-size: 16px; }

.astuce, .attention {
  margin-top: 30px; max-width: 68ch; border-radius: 12px; padding: 16px 20px 16px 20px;
  background: var(--astuce); border: 1px solid var(--astuce-ligne);
}
.attention { background: var(--accent-soft); border-color: var(--line-fort); }
.astuce .titre, .attention .titre { font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.astuce .titre svg, .attention .titre svg { width: 18px; height: 18px; flex: none; }

.savoir { max-width: 68ch; }
.savoir ul { padding-left: 22px; }
.savoir li + li { margin-top: 8px; }
.savoir li::marker { color: var(--accent); }

/* ------------------------------------------------------------ Les listes de questions */

.questions { list-style: none; padding: 0; display: grid; gap: 10px; }
.questions a {
  display: block; padding: 14px 18px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.questions a:hover { border-color: var(--accent); color: var(--ink); }
.questions .q { display: block; font-weight: 600; }
.questions .r { display: block; margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.questions .film { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--accent); vertical-align: 1px; }
.questions .film svg { width: 13px; height: 13px; }

.suite { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; max-width: 68ch; }
.suite a { text-decoration: none; display: block; max-width: 48%; }
.suite a span { display: block; font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.suite .apres { text-align: right; margin-left: auto; }

/* ------------------------------------------------------------ L'accueil de l'aide */

.ouverture { padding: 40px 0 8px; }
.ouverture h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.ouverture .chapeau { font-size: 19px; }
.ouverture .cherche { margin: 26px 0 0; max-width: 620px; }
.ouverture .cherche input { height: 54px; font-size: 18px; padding: 0 18px; border-radius: 14px 0 0 14px; }
.ouverture .cherche button { height: 54px; padding: 0 22px; font-size: 16px; border-radius: 0 14px 14px 0; }
.exemples { margin-top: 12px; font-size: 15px; color: var(--ink-3); }
.exemples a { margin-right: 4px; }

.rubriques { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.rubrique { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 16px; display: flex; flex-direction: column; }
.rubrique h2 { margin: 0; font-size: 21px; display: flex; align-items: center; gap: 10px; }
.rubrique h2 a { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.rubrique h2 a:hover { color: var(--accent); }
.rubrique h2 svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.rubrique > p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.rubrique ul { list-style: none; padding: 0; margin-top: 12px; font-size: 15.5px; }
.rubrique li + li { margin-top: 6px; }
.rubrique li a { text-decoration: none; }
.rubrique li a:hover { text-decoration: underline; }
.rubrique .tout { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }

.contact { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 22px 24px; max-width: 760px; }
.contact h2 { margin: 0 0 8px; font-size: 21px; }
.contact .numero { font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }

/* ------------------------------------------------------------ La recherche */

.resultat-nombre { margin-top: 18px; color: var(--ink-2); font-size: 15.5px; min-height: 1.6em; }
.aucun { margin-top: 18px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ Le pied de page */

footer { border-top: 1px solid var(--line); background: var(--surface); padding: 30px 24px; }
footer .dedans { max-width: 1200px; margin-inline: auto; font-size: 13.5px; color: var(--ink-3); line-height: 1.75; }
footer strong { color: var(--ink-2); }

/* ------------------------------------------------------------ Téléphone et tablette */

@media (max-width: 900px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page > .menu { display: none; }
  .menu-telephone { display: block; }
  main { padding-top: 22px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .barre .dedans { padding: 8px 16px; flex-wrap: wrap; gap: 10px; }
  .barre .cherche { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 4px; }
  .retour-appli { margin-left: auto; }
  .page { padding: 0 16px; }
  .chapeau { font-size: 17.5px; }
  .etapes > li { padding-left: 50px; }
  .etapes > li::before { width: 34px; height: 34px; font-size: 16px; }
  .video video { border-radius: 8px; }
  .suite { flex-direction: column; }
  .suite a { max-width: none; }
  .suite .apres { text-align: left; margin-left: 0; }
  .ouverture .cherche input, .ouverture .cherche button { height: 50px; }
  .ouverture .cherche button { padding: 0 14px; }
}

@media print {
  .barre, .menu, .menu-telephone, .suite, footer, .video, .pas-trouve { display: none !important; }
  .page { display: block; }
  body { background: #fff; color: #000; }
}
