/* Site vitrine de Nianou Tech. Charte « Pont » : standards/modeles/identite/charte.md. Téléphone d'abord. */
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("/polices/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("/polices/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/polices/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/polices/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/polices/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --bleu-nuit: #10243e;
  --orange-soleil: #e8742a;
  --orange-texte: #b4531a;
  --ardoise: #3d4f66;
  --brume: #f4f6f9;
  --bordure: #7d8da1;
  --clair-sur-nuit: #c9d3e0;
  --tres-clair-sur-nuit: #e3e9f0;
  --blanc: #fff;
  --largeur: 75rem;
  --rayon: 0.875rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--bleu-nuit);
  background: var(--blanc);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; line-height: 1.2; margin: 0; }
h1 { font-weight: 700; font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem); }
h2 { font-weight: 600; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.125rem); }
h3 { font-weight: 600; font-size: 1.125rem; }
p { margin: 0; }
a { color: var(--orange-texte); text-underline-offset: 0.15em; }
a:hover { color: var(--bleu-nuit); }
:focus-visible { outline: 3px solid var(--bleu-nuit); outline-offset: 2px; border-radius: 4px; }
.sur-nuit :focus-visible, .bandeau :focus-visible, .pied :focus-visible { outline-color: var(--blanc); }
.sans-coupure { white-space: nowrap; }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.75rem 1rem;
  background: var(--blanc); color: var(--bleu-nuit); font-weight: 600; border: 2px solid var(--bleu-nuit);
  border-radius: 0.5rem;
}
.evitement:focus { top: 0.5rem; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem; }
.lecture { max-width: 47.5rem; }

/* En-tête */
.bandeau {
  margin: 0; min-height: 2.5rem; padding: 0.4rem 1rem; display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; background: var(--bleu-nuit); color: var(--blanc); font-size: 0.875rem; font-weight: 600; text-align: center;
}
.bandeau svg { color: var(--orange-soleil); flex: none; }
.entete { border-bottom: 1px solid var(--bordure); background: var(--blanc); }
.entete .conteneur { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-right: 0.75rem; }
.logo { display: flex; align-items: center; min-height: 2.75rem; }
.logo img { height: 2.125rem; width: auto; }
.bouton-menu {
  display: none; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 0.75rem; border-radius: 0.625rem;
  border: 1px solid var(--bordure); background: var(--blanc); color: var(--bleu-nuit); font: 600 0.9375rem Inter, sans-serif;
  cursor: pointer;
}
.js .bouton-menu { display: inline-flex; }
.menu-principal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.menu-principal a {
  min-height: 2.75rem; display: flex; align-items: center; padding: 0 0.75rem; color: var(--bleu-nuit);
  text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent;
}
.menu-principal a[aria-current="page"] { border-bottom-color: var(--orange-soleil); font-weight: 600; }
.menu-principal .lien-whatsapp-entete { display: none; }

@media (max-width: 59.99rem) {
  .menu-principal { width: 100%; padding-bottom: 0.5rem; }
  .js .menu-principal { display: none; }
  .js .menu-principal[data-ouvert] { display: block; }
  .menu-principal ul { flex-direction: column; }
  .menu-principal li + li a { border-top: 1px solid var(--bordure); }
  .menu-principal a { min-height: 3.5rem; padding: 0; font-family: Sora, sans-serif; font-weight: 600; font-size: 1.25rem; border-bottom: 0; }
  .menu-principal a[aria-current="page"]::after { content: "Vous êtes ici"; margin-left: auto; font: 600 0.8125rem Inter, sans-serif; color: var(--orange-texte); }
}

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 3.25rem; padding: 0 1.5rem;
  border-radius: 0.75rem; font-weight: 600; font-size: 1.0625rem; text-decoration: none; text-align: center;
}
.bouton-principal { background: var(--orange-soleil); color: var(--bleu-nuit); }
.bouton-principal:hover { background: #f08a47; color: var(--bleu-nuit); }
.bouton-contour { border: 2px solid var(--blanc); color: var(--blanc); }
.bouton-contour:hover { background: var(--blanc); color: var(--bleu-nuit); }
.bouton-nuit { background: var(--bleu-nuit); color: var(--blanc); }
.bouton-nuit:hover { background: var(--ardoise); color: var(--blanc); }
.bouton-large { width: 100%; }
.lien-fleche { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 600; }

/* Sections */
.section { padding: 2.5rem 0; }
.section-brume { background: var(--brume); }
.pile { display: flex; flex-direction: column; gap: 1rem; }
.pile-large { display: flex; flex-direction: column; gap: 1.5rem; }
.surtitre { font-size: 0.875rem; font-weight: 600; color: var(--orange-texte); letter-spacing: 0.04em; text-transform: uppercase; }
.chapeau { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--ardoise); max-width: 40rem; }
.secondaire { color: var(--ardoise); }
.petit { font-size: 0.875rem; }

.accueil-haut { padding: 2rem 0 2.5rem; }
.accueil-haut .grille { display: grid; gap: 2rem; align-items: center; }
.action-groupe { display: flex; flex-direction: column; gap: 0.75rem; }
.decor-icone { display: none; }

.fil { font-size: 0.875rem; color: var(--ardoise); }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.fil li + li::before { content: "›"; margin-right: 0.25rem; }
.entete-page { padding-top: 2rem; padding-bottom: 1.5rem; }

.pour-qui ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.pour-qui li { padding: 0.875rem; background: var(--blanc); border-radius: 0.625rem; font-weight: 500; }
.pour-qui li:last-child:nth-child(odd) { grid-column: span 2; }

.cartes { display: grid; gap: 1rem; }
.carte { padding: 1.25rem; border: 1px solid var(--bordure); border-radius: var(--rayon); display: flex; flex-direction: column; gap: 0.625rem; background: var(--blanc); }
.carte-brume { background: var(--brume); }
.carte-forte { border: 2px solid var(--bleu-nuit); }
.carte .icone { color: var(--orange-soleil); }
.carte-ligne { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.carte ul, .liste { margin: 0; padding-left: 1.25rem; }
.carte li, .liste li { margin: 0.25rem 0; }

.statut {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 999px;
  background: var(--blanc); border: 1px solid var(--bordure); font-size: 0.8125rem; font-weight: 600; color: var(--orange-texte);
}
.statut-texte { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--orange-texte); }
.etiquette { align-self: flex-start; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--bleu-nuit); color: var(--blanc); font-size: 0.8125rem; font-weight: 600; }

.engagements { display: grid; gap: 1.25rem; }
.engagement { display: flex; gap: 0.875rem; }
.engagement svg { flex: none; }
.engagement h3 { font-family: Inter, sans-serif; font-size: 1.0625rem; margin-bottom: 0.25rem; }

.appel { background: var(--bleu-nuit); color: var(--blanc); }
.appel .conteneur { display: flex; flex-direction: column; gap: 1rem; }
.appel p { color: var(--tres-clair-sur-nuit); }
.appel .ouverture { color: var(--orange-soleil); font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.5rem; }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.etape { display: flex; gap: 1rem; }
.etape-numero {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--bleu-nuit); color: var(--blanc);
  display: flex; align-items: center; justify-content: center; font-family: Sora, sans-serif; font-weight: 700;
}
.etape:last-child .etape-numero { background: var(--orange-soleil); color: var(--bleu-nuit); }
.etape h2 { font-size: 1.1875rem; margin-bottom: 0.375rem; }

.encadre { padding: 1rem; background: var(--brume); border: 1px solid var(--bordure); border-radius: 0.75rem; }
.numero-fort { font-family: Sora, sans-serif; font-weight: 600; font-size: 1.375rem; color: var(--bleu-nuit); }
.infos { margin: 0; }
.infos > div { padding: 0.875rem 0; border-top: 1px solid var(--bordure); }
.infos > div:last-child { border-bottom: 1px solid var(--bordure); }
.infos dt { font-weight: 600; }
.infos dd { margin: 0.25rem 0 0; color: var(--ardoise); }
.legal h2 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.legal dl { margin: 0; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0 0 0.5rem; }
.grand-code { font-family: Sora, sans-serif; font-weight: 700; font-size: 3.5rem; color: var(--orange-soleil); line-height: 1; }

/* Pied de page */
.pied { background: var(--bleu-nuit); color: var(--tres-clair-sur-nuit); padding: 2rem 0 1.75rem; }
.pied .grille { display: grid; gap: 1.5rem; }
.pied img { height: 2.125rem; width: auto; align-self: flex-start; }
.pied a { color: var(--blanc); }
.pied nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.75rem; }
.pied nav a { min-height: 2.75rem; display: flex; align-items: center; }
.pied h2 { font-family: Inter, sans-serif; font-size: 0.875rem; font-weight: 600; color: var(--orange-soleil); margin-bottom: 0.5rem; }
.pied .whatsapp { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; font-weight: 600; text-decoration: none; }
.pied .whatsapp svg { color: var(--orange-soleil); }
.pied .mentions { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ardoise); font-size: 0.8125rem; color: var(--clair-sur-nuit); }

/* Ordinateur */
@media (min-width: 60rem) {
  .conteneur { padding: 0 2rem; }
  .entete .conteneur { min-height: 4.75rem; flex-wrap: nowrap; }
  .logo img { height: 2.5rem; }
  .menu-principal { display: block; }
  .menu-principal ul { align-items: center; }
  .menu-principal .lien-whatsapp-entete { display: block; }
  .menu-principal .lien-whatsapp-entete a {
    margin-left: 1rem; gap: 0.5rem; padding: 0 1.125rem; border: 2px solid var(--bleu-nuit); border-radius: 0.625rem; font-weight: 600;
  }
  .js .bouton-menu { display: none; }
  .section { padding: 5.5rem 0; }
  .accueil-haut { padding: 5.5rem 0 5rem; }
  .accueil-haut .grille { grid-template-columns: 7fr 5fr; gap: 1.5rem; }
  .action-groupe { flex-direction: row; align-items: center; gap: 1.25rem; }
  .action-groupe .bouton { flex: none; white-space: nowrap; }
  /* Icône officielle telle quelle (charte : ne jamais redessiner le logo). */
  .decor-icone { display: block; width: 100%; max-width: 25rem; height: auto; justify-self: center; }
  .pour-qui .conteneur { display: flex; align-items: center; gap: 2rem; }
  .pour-qui ul { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .pour-qui li { padding: 0.75rem 1.25rem; }
  .cartes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .carte { padding: 2rem; }
  .engagements { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .engagement { flex-direction: column; }
  .appel .conteneur { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
  .appel .texte { max-width: 42.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
  .appel .bouton { flex: none; }
  .etapes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .etape { flex-direction: column; }
  .bouton-large { width: auto; }
  .deux-colonnes { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: start; }
  .entete-page { padding-top: 4rem; padding-bottom: 2rem; }
  .pied { padding: 3.5rem 0 2rem; }
  .pied .grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .pied img { height: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .bandeau, .bouton-menu, .menu-principal, .evitement { display: none !important; } }

.marge-haut { margin-top: 2.5rem; }
.marge-bas { padding-bottom: 3rem; }
.maintenance { min-height: 100vh; background: var(--brume); padding: 3rem 1.5rem; }
.maintenance .lecture { margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.maintenance img { height: 3rem; width: auto; }
.titre-moyen { font-size: 1.25rem; }
