/* Noppera : site vitrine. Jetons repris de NoiseCrypt (noisecrypt/web/styles.css), memes noms, memes valeurs,
   verifies cote app par noppera-app/brand/build/verifier-jetons.py. Polices : Fragment Mono, IBM Plex Sans,
   IBM Plex Mono, servies par cdn.breizhzion.com. Aucun attribut style dans la page : la CSP n'autorise pas
   'unsafe-inline' pour les styles. */

:root {
  --ink: #0a0b0d;
  --panel: #121418;
  --rule: #23262c;
  --paper: #e8e6e1;
  --dim: #9a9892;
  --signal: #ffb020;
  --verify: #4fd6c8;
  --alarm: #ff7a6b;

  --display: 'Fragment Mono', ui-monospace, monospace;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --page: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); line-height: 1.55; }
/* Une adresse ou un nom de fichier n'a pas d'espace : sans cela il deborde a 320 px (WCAG 1.4.10). */
code { overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: 0.7rem 1rem; z-index: 10; }
.evitement:focus { left: 0; }

/* En-tete */
.entete { max-width: var(--page); margin: 0 auto; padding: 1.4rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.marque img { height: 40px; width: auto; }
.navigation { display: flex; gap: 1.6rem; font-family: var(--mono); font-size: 0.92rem; }
.navigation a { color: var(--dim); text-decoration: none; padding: 0.4rem 0; }
.navigation a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 0.3em; }

/* Hero */
.hero { max-width: var(--page); margin: 0 auto; padding: 3rem 1.5rem 4.5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; }
.surtitre { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal); }
h1 { font-family: var(--body); font-weight: 700; font-size: clamp(2.7rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -0.04em; margin: 1.1rem 0 0; }
.caviarde { display: inline-block; background: var(--signal); color: var(--ink); padding: 0 0.14em; transform: rotate(-1.5deg); }
.chapeau { font-size: 1.15rem; color: var(--dim); max-width: 36rem; margin-top: 1.6rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; align-items: center; }
.etiquette { font-family: var(--mono); font-weight: 600; font-size: 0.9rem; color: var(--signal); border: 1px solid var(--signal); padding: 0.8rem 1.2rem; border-radius: 2px; }
.bouton { font-family: var(--mono); font-size: 0.9rem; background: var(--paper); color: var(--ink); text-decoration: none; padding: 0.8rem 1.2rem; border-radius: 2px; border: 1px solid var(--paper); }
.bouton:hover { background: transparent; color: var(--paper); }

/* Apercu du telephone : decor de page, mais lisible par un lecteur d'ecran (figcaption) */
.telephone { margin: 0; justify-self: center; }
.ecran { position: relative; width: 310px; min-height: 620px; background: var(--ink); border: 7px solid #1b1d22; border-radius: 38px; padding: 0.9rem 1.1rem 5rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: hidden; }
.barre { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; }
.titre-app { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.9rem; font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; }
.titre-app img { width: 26px; height: 26px; border-radius: 6px; }
.liste-titre { margin-top: 0.8rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.jobs { margin-top: 0.5rem; }
.job { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.job-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.job-nom { font-family: var(--mono); font-size: 0.8rem; }
.job-meta { font-size: 0.7rem; color: var(--dim); }
.damier { flex: none; width: 44px; height: 44px; border-radius: 8px; }
.damier--fait { background: conic-gradient(#8f6a55 25%, #a98068 0 50%, #8f6a55 0 75%, #a98068 0) 0 0 / 11px 11px; }
.damier--neutre { background: conic-gradient(#23262c 25%, #2e3239 0 50%, #23262c 0 75%, #2e3239 0) 0 0 / 11px 11px; }
.progression { display: block; height: 3px; margin-top: 0.5rem; background: var(--rule); border-radius: 2px; }
.progression-barre { display: block; height: 3px; width: 63%; background: var(--signal); border-radius: 2px; }
.pastille { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--mono); font-weight: 600; font-size: 0.68rem; padding: 0.2rem 0.5rem; border: 1px solid currentColor; border-radius: 99px; }
.pastille svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.pastille--fait { color: var(--verify); }
.pastille--cours { color: var(--signal); }
.pastille--attente { color: var(--dim); }
.pastille--erreur { color: var(--alarm); }
.ajouter { position: absolute; right: 1rem; bottom: 1.1rem; width: 54px; height: 54px; border-radius: 50%; background: var(--signal); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.ajouter svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: square; }

/* Sections */
.bloc { max-width: var(--page); margin: 0 auto; padding: 4rem 1.5rem; border-top: 1px solid var(--rule); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.9rem; }
h3 { font-family: var(--mono); font-weight: 600; font-size: 1rem; }
.intro { color: var(--dim); max-width: 40rem; margin-top: 1.2rem; font-size: 1.08rem; }
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; counter-reset: etape; }
.etapes li { counter-increment: etape; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 1.4rem; }
.etapes h3::before { content: "0" counter(etape) " · "; color: var(--signal); }
.etapes p { margin-top: 0.7rem; color: var(--dim); }
.note { margin-top: 1.6rem; font-family: var(--mono); font-size: 0.85rem; color: var(--dim); }
.limites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.limites li { border-left: 3px solid var(--alarm); padding: 0.3rem 0 0.3rem 1.1rem; color: var(--dim); }
.limites strong { color: var(--paper); display: block; }
.pied { max-width: var(--page); margin: 0 auto; padding: 2.5rem 1.5rem 3rem; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 0.82rem; color: var(--dim); }

/* Sélecteur de langue */
.langues { display: flex; gap: 0.9rem; font-family: var(--mono); font-size: 0.8rem; flex-wrap: wrap; }
.langues a { color: var(--dim); text-decoration: none; padding: 0.4rem 0; }
.langues a:hover { color: var(--paper); }
.langues a[aria-current="true"] { color: var(--paper); text-decoration: underline; text-underline-offset: 0.35em; }

/* Texte courant des sections narratives */
.texte { max-width: 44rem; margin-top: 1.4rem; display: grid; gap: 1.1rem; font-size: 1.12rem; }
.texte em { font-style: italic; }

/* FAQ */
.faq { margin-top: 2rem; display: grid; gap: 0.8rem; max-width: 52rem; }
.question { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; }
.question summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; float: right; font-family: var(--mono); color: var(--signal); }
.question[open] summary::after { content: "\2212"; }
.question p { padding: 0 1.2rem 1.2rem; color: var(--dim); }

/* Page comparative */
.titre-page { font-family: var(--body); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; margin: 1rem 0 0; }
.bloc--article { border-top: 0; }
.bloc--article h2 { margin-top: 3rem; }
.tableau { margin-top: 2rem; border: 1px solid var(--rule); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); }
thead th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 600; background: var(--panel); }
tbody th { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
td { color: var(--dim); }
.ligne-noppera th, .ligne-noppera td { background: rgba(255, 176, 32, 0.07); color: var(--paper); }
.choix { margin-top: 1.2rem; display: grid; gap: 0.8rem; max-width: 52rem; }
.choix li { padding-left: 1.1rem; border-left: 3px solid var(--signal); color: var(--dim); }
.sources { margin-top: 1rem; display: grid; gap: 0.5rem; font-family: var(--mono); font-size: 0.88rem; }
.sources a { overflow-wrap: anywhere; display: inline-block; padding: 0.3rem 0; }

/* Pages juridiques et declaration d'accessibilite */
.juridique { max-width: 48rem; }
.juridique h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-top: 2.4rem; }
.juridique p, .juridique ul { margin-top: 0.9rem; }
.juridique ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.7rem; }
.juridique li::marker { color: var(--signal); }
.juridique a { text-underline-offset: 0.2em; padding: 0.3rem 0; }
.juridique .resume { font-size: 1.15rem; border-left: 3px solid var(--signal); padding-left: 1.1rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin-bottom: 0.8rem; }
.pied-liens a { color: var(--paper); text-decoration: underline; text-underline-offset: 0.25em; min-height: 44px; display: inline-flex; align-items: center; }

/* Pas de mouvement si l'utilisateur l'a demande. */
@media (prefers-reduced-motion: reduce) {
  .burger-barres, .burger-barres::before, .burger-barres::after { transition: none; }
}

/* Burger : un <details> natif. Il marche sans JavaScript ; menu.js ne fait que le refermer apres un clic. */
.menu { display: none; position: relative; }
.burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; list-style: none; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); }
.burger::-webkit-details-marker { display: none; }
.burger-barres, .burger-barres::before, .burger-barres::after { display: block; width: 20px; height: 2px; background: var(--paper); content: ""; transition: transform 0.15s ease, opacity 0.15s ease; }
.burger-barres { position: relative; }
.burger-barres::before { position: absolute; top: -6px; }
.burger-barres::after { position: absolute; top: 6px; }
.menu[open] .burger-barres { background: transparent; }
.menu[open] .burger-barres::before { top: 0; transform: rotate(45deg); }
.menu[open] .burger-barres::after { top: 0; transform: rotate(-45deg); }
.menu-panneau { position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 20; width: min(20rem, calc(100vw - 3rem)); background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); padding: 0.4rem 1.2rem 1rem; }
.navigation--burger { flex-direction: column; gap: 0; font-size: 1rem; }
.navigation--burger a { padding: 0.95rem 0; border-bottom: 1px solid var(--rule); min-height: 44px; display: flex; align-items: center; }
.langues--burger { margin-top: 0.9rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; font-size: 0.9rem; }
.langues--burger a { min-height: 44px; display: inline-flex; align-items: center; }

/* Coréen : les polices de la marque n'ont pas de hangul, on déclare la pile au lieu de laisser
   le navigateur retomber sur une police à empattements. */
html[lang="ko"] {
  --body: 'IBM Plex Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --display: 'Fragment Mono', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', monospace;
  --mono: 'IBM Plex Mono', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', monospace;
}
html[lang="ko"] h1, html[lang="ko"] h2 { letter-spacing: -0.01em; word-break: keep-all; }

/* En dessous de 880 px : le menu et les langues du bureau cedent la place au burger. `display: none` les retire
   aussi de l'arbre d'accessibilite, donc un lecteur d'ecran ne lit jamais les liens en double. */
@media (max-width: 880px) {
  .entete { flex-wrap: nowrap; padding: 1rem 1.5rem; }
  .entete > .navigation, .entete > .langues { display: none; }
  .menu { display: block; flex: none; }
  .marque img { height: 34px; }
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; gap: 2.5rem; }
  .etapes, .limites { grid-template-columns: 1fr; }
}

/* Tableau comparatif : en dessous de 960 px chaque ligne devient une fiche, plus de defilement horizontal.
   L'en-tete reste dans le DOM (lecteurs d'ecran) mais sort de l'ecran ; chaque cellule affiche le nom de sa
   colonne, lu dans `data-label`. */
@media (max-width: 960px) {
  .tableau { border: 0; margin-top: 1.6rem; }
  table, thead, tbody, tr, th, td { display: block; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  tbody { display: grid; gap: 1rem; }
  tbody tr { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.1rem; }
  tbody tr.ligne-noppera { border-color: var(--signal); background: rgba(255, 176, 32, 0.07); }
  .ligne-noppera th, .ligne-noppera td { background: transparent; }
  tbody th { padding: 0 0 0.7rem; border: 0; font-size: 1.05rem; white-space: normal; }
  tbody td { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.8rem; padding: 0.6rem 0; border: 0; border-top: 1px solid var(--rule); }
  tbody td::before { content: attr(data-label); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding-top: 0.15rem; }
}
@media (max-width: 480px) {
  tbody td { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

/* Maquette du telephone : ne depasse jamais sa colonne, meme a 320 px. */
.ecran { max-width: 100%; }
@media (max-width: 380px) {
  .ecran { width: 100%; min-width: 0; }
  .hero, .bloc, .entete, .pied { padding-left: 1.1rem; padding-right: 1.1rem; }
}
@media (forced-colors: active) {
  .caviarde { border: 1px solid CanvasText; }
}
