/* ════════════════════════════════════════════════════════════════════
   Les pages publiques de N15 : ce qu'elles partagent (barre, pied, boutons,
   fond en mosaïque, transitions). Tiré des maquettes validées par Joël le
   04/11 (maquettes/accueil, maquettes/connexion, maquettes/demo).
   Style Paxter, sans mode sombre (Joël, 04/11).
   ════════════════════════════════════════════════════════════════════ */
:root {
  --fond: #feffff;
  --fond-alt: #f3f5f3;
  --encre: #3f4e55;
  --encre-2: #566972;
  --encre-3: #6c757d;
  --filet: rgba(0, 0, 0, .125);
  --action: #a52524;
  --action-survol: rgba(165, 37, 36, .85);
  --action-texte: #fff;
  --marque: #a52524;
  --case-a: #d8d8d8;
  --case-b: #c6c6c6;
  --case-c: #9c9c9c;
  --case-d: #8a8a8a;
  --case-vide: rgba(63, 78, 85, .07);
  --graisse-titre: 700;
  --pied: #3f4e55;
  --pied-texte: #c8c9cb;
  --police-titre: 'Titillium Web', 'Segoe UI', sans-serif;
  --police-corps: 'Lato', 'Segoe UI', sans-serif;
  --rayon: 5px;
  --rayon-bloc: 7px;
}
*, *::before, *::after { box-sizing: border-box; }
/* « hidden » l'emporte toujours (un .bouton en inline-flex restait affiché). */
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--fond-alt); color: var(--encre);
  font: 400 17px/1.55 var(--police-corps); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
/* Le contour du clavier ne touche pas aux coins des champs (04/11). */
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
a:focus-visible { border-radius: 2px; }
.cadre { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1 { margin: 0; font-family: var(--police-titre); font-weight: 700; line-height: 1.12; }
p { margin: 0; }
.hors-ecran { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Les boutons : capitales, poids normal comme sur paxter.eu (Lato n'est
   chargée qu'en 300 et 400 : un « 600 » était un faux gras). */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border: 1px solid transparent; border-radius: var(--rayon);
  background: var(--action); color: var(--action-texte);
  font: 400 .92rem/1.2 var(--police-corps); letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease-in-out;
}
.bouton:hover, .bouton:focus-visible { background: var(--action-survol); }
.bouton[disabled] { cursor: progress; background: var(--action-survol); }

/* ── La barre du haut ─────────────────────────────────────────────── */
.barre { position: sticky; top: 0; z-index: 50; background: var(--fond); box-shadow: 0 4px 2px -2px #f3f5f3; }
.barre .cadre { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.marque img { height: 44px; width: auto; }
.par-paxter { display: inline-flex; align-items: center; gap: 4px; font-size: .95rem; color: var(--encre-3); text-decoration: none; white-space: nowrap; }
.par-paxter:hover { color: var(--action); }
.par-paxter svg { width: 13px; height: 13px; }
.barre-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.lien-acces { font-size: .95rem; text-decoration: none; white-space: nowrap; }
.lien-acces:hover { color: var(--action); }
.court { display: none; }
.langues { display: flex; align-items: center; gap: 2px; margin-left: 14px; padding-left: 14px; border-left: .8px solid var(--filet); }
.langues button { border: 0; background: none; padding: 6px 5px; cursor: pointer; font: 400 .88rem/1 var(--police-corps); letter-spacing: .04em; color: var(--encre-3); }
.langues button:hover { color: var(--encre); }
.langues button[aria-pressed="true"] { color: var(--action); font-weight: 700; }

/* ── Le fond en mosaïque (la grille du logo, transparente) ────────── */
main { flex: 1; display: flex; position: relative; }
.fond-mosaique { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.f-case { fill: var(--case-b); fill-opacity: .3; transition: fill 1.2s ease; }
.f-case.a { fill: var(--case-a); }
.f-case.c { fill: var(--case-c); }

/* ── Le pied ──────────────────────────────────────────────────────── */
.pied { background: var(--pied); color: var(--pied-texte); padding: 22px 0; font-size: .85rem; }
.pied .cadre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.pied a { color: var(--pied-texte); text-decoration: none; }
.pied a:hover { color: #feffff; text-decoration: underline; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }

/* ── Les transitions entre pages publiques (04/11) ───────────────────
   La barre reste immobile, la mosaïque glisse, les cartes arrivent
   OPAQUES ; le lien d'accès et le bouton de démo de la barre changent d'un
   coup. Firefox change de page sans animer ; « réduire les animations »
   l'éteint. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.barre { view-transition-name: n15-barre; }
.fond-mosaique { view-transition-name: n15-mosaique; }
.lien-acces { view-transition-name: n15-lien-acces; }
.barre .bouton { view-transition-name: n15-cta; }
::view-transition-group(n15-lien-acces), ::view-transition-group(n15-cta) { animation: none; }
::view-transition-old(n15-lien-acces), ::view-transition-old(n15-cta) { display: none; }
::view-transition-new(n15-lien-acces), ::view-transition-new(n15-cta) { animation: none; }
@keyframes n15-carte-arrive { from { transform: translateY(12px); } }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ── Écrans étroits ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .barre .cadre { gap: 12px; min-height: 60px; }
  .marque img { height: 34px; }
  .par-paxter { display: none; }
  .barre-actions { gap: 12px; }
  .langues { margin-left: 4px; padding-left: 6px; }
  .langues button { padding: 6px 3px; font-size: .8rem; }
  .barre .bouton { padding: 8px 12px; font-size: .85rem; white-space: nowrap; }
  .long { display: none; }
  .court { display: inline; }
}
/* Petits téléphones : le logo ne se tasse jamais ; en dernier recours la
   barre passe sur deux lignes plutôt que de déborder. */
@media (max-width: 400px) {
  .barre .cadre { gap: 8px; flex-wrap: wrap; row-gap: 2px; padding-block: 6px; }
  .marque img { height: 30px; }
  .barre .bouton { padding: 7px 9px; font-size: .78rem; }
  .langues { margin-left: 0; padding-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ── Le rond du compte, connecté (18/11) ────────────────────────────────
   Après « Ouvrir N15 », à la place de « Demander une démo » ; ardoise
   pleine, l'initiale du prénom ; son menu réduit descend, aligné à droite. */
.barre .rond-compte {
  flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--encre); color: #fff; font: 700 14px/1 var(--police-titre); cursor: pointer;
  transition: box-shadow .15s ease;
}
.barre .rond-compte:hover { box-shadow: 0 2px 8px rgba(29, 36, 39, .18); }
.barre .rond-compte:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.menu-rond {
  position: fixed; z-index: 300; width: 280px; max-width: calc(100vw - 16px); padding: 6px;
  background: var(--fond); color: var(--encre); border: .8px solid var(--filet); border-radius: var(--rayon-bloc);
  box-shadow: 0 1px 2px rgba(29, 36, 39, .08), 0 16px 40px rgba(29, 36, 39, .16);
  font: 400 15px/1.4 var(--police-corps);
}
.menu-rond[hidden] { display: none; }
/* Les textes de lecture (18/11) : paragraphes, puces, intertitres,
   tableaux, écrits dans la plateforme des textes. Sur téléphone, une ligne
   de tableau devient une fiche étiquetée (comme les pages légales). */
.lecture > :first-child { margin-top: 0; }
.lecture > :last-child { margin-bottom: 0; }
.lecture p { margin: 0 0 .8em; max-width: 72ch; }
.lecture ul, .lecture ol { margin: 0 0 1em; padding-left: 1.2em; max-width: 72ch; }
.lecture li { margin: .25em 0; }
.lecture h4 { margin: 1.2em 0 .45em; font-family: var(--police-titre); font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; }
.lecture-tableau { margin: .4em 0 1.1em; overflow-x: auto; }
.lecture table { width: 100%; max-width: 900px; border-collapse: collapse; font-size: .93rem; line-height: 1.45; }
.lecture th, .lecture td { padding: 8px 12px 8px 0; border-bottom: .8px solid var(--filet); text-align: left; vertical-align: top; }
.lecture thead th { font-family: var(--police-titre); font-weight: 600; color: var(--encre-3); }
.lecture tbody td:first-child { font-weight: 600; }
.etape-detail.lecture th, .etape-detail.lecture td { border-bottom-color: rgba(255, 255, 255, .35); }
.etape-detail.lecture thead th { color: rgba(255, 255, 255, .85); }
@media (max-width: 640px) {
  .lecture thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lecture table, .lecture tbody, .lecture tr, .lecture td { display: block; }
  .lecture tr { padding: 10px 0; border-bottom: .8px solid var(--filet); }
  .etape-detail.lecture tr { border-bottom-color: rgba(255, 255, 255, .35); }
  .lecture td { border: 0; padding: 2px 0; }
  .lecture td::before { content: attr(data-etiquette); display: block; font-family: var(--police-titre); font-weight: 600; font-size: .8rem; opacity: .75; }
  .lecture td:first-child::before { display: none; }
}
/* Le logo de l'organisation en badge (conception du rond du compte, 17/11 :
   14 px, logo de 9 px, blanc sur le rouge de Paxter, en haut à droite). */
.barre .rond-compte, .menu-rond .av { position: relative; overflow: visible; }
.rond-org {
  position: absolute; top: -4px; right: -6px; width: 14px; height: 14px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: #a52524; box-shadow: 0 0 0 2px var(--anneau, #feffff); pointer-events: none;
}
.rond-org img { height: 9px; width: auto; max-width: 11px; display: block; filter: brightness(0) invert(1); }
.menu-rond .tete { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; }
.menu-rond .av {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--encre); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font: 700 16px/1 var(--police-titre);
}
.menu-rond .qui { display: flex; flex-direction: column; min-width: 0; }
.menu-rond .nom { font-weight: 700; }
.menu-rond .mail { font-size: 13px; color: var(--encre-3); overflow-wrap: anywhere; }
.menu-rond hr { border: 0; border-top: .8px solid var(--filet); margin: 4px 6px; }
.menu-rond a, .menu-rond button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--rayon);
  background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.menu-rond a:hover, .menu-rond a:focus-visible, .menu-rond button:hover, .menu-rond button:focus-visible {
  background: var(--case-vide); outline: none;
}
.menu-rond svg {
  width: 17px; height: 17px; flex: 0 0 auto; color: var(--encre-3);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
@media print { .barre .rond-compte, .menu-rond { display: none !important; } }
