/* ═══════════════════════════════════════════════════════════
   Advice AI · styles communs à toutes les pages,
   y compris les mentions légales (qui ont leur propre CSS).
   ═══════════════════════════════════════════════════════════ */

/* ── Logo de la barre : balayage noir et blanc ──
   Un aplat blanc en mode « différence » balaie le logo de gauche à droite
   et l'inverse (lettres claires sur fond noir), en 250 ms.
   Survol : seulement avec une souris ; clavier : au focus. Rien au toucher
   ni au chargement. */
nav .nav-logo {
  position: relative;
  display: inline-block;
  padding: 6px 8px;
  margin: -6px -8px;
}
nav .nav-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  mix-blend-mode: difference;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  nav .nav-logo:hover::after { transform: scaleX(1); }
}
nav .nav-logo:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  nav .nav-logo::after { transition: none; }
}

/* ── Pied de page : texte en #f9f9f9 sur le fond sombre ── */
footer,
footer a,
footer .footer-logo,
footer .footer-cookies { color: #f9f9f9; }
footer .footer-address { text-align: center; }
footer .footer-links { white-space: normal; }
footer .footer-cookies {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.2s;
}
footer a:hover,
footer .footer-cookies:hover { color: #aaa; }

/* ── Page 404 : occupe au moins la hauteur de l'écran ── */
.page-404 { min-height: calc(100vh - 80px); }
.page-404 h1.about-headline {
  max-width: 980px;
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* ── Fenêtre cookies ──
   Mobile d'abord : fond assombri, panneau clair ancré en bas, deux boutons
   côte à côte de même taille (empilés, le panneau masquait « Choisir un
   créneau » sur /diagnostic/). À partir de 768 px : panneau centré. Elle ne se ferme que par un choix (ni croix, ni clic à côté, ni Échap).
   Le voile laisse passer le défilement de la page (molette, doigt). */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  font-family: 'Inter Tight', sans-serif;
}
.cookie-banner[hidden] { display: none; }
.cookie-panneau {
  box-sizing: border-box;
  width: 100%;
  max-height: 40vh;
  max-height: 40dvh;
  overflow-y: auto;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #f9f9f9;
  color: #0a0a0a;
  border-radius: 8px 8px 0 0;
}
.cookie-panneau:focus { outline: none; }
.cookie-titre {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cookie-texte {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}
.cookie-lien { margin: 6px 0 0; font-size: 15px; font-weight: 300; line-height: 1.5; }
.cookie-lien a {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-lien a:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.cookie-btn {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #0a0a0a;
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn-accepter { background: #0a0a0a; color: #f9f9f9; }
.cookie-btn-refuser { background: transparent; color: #0a0a0a; }
@media (hover: hover) and (pointer: fine) {
  .cookie-btn-accepter:hover { background: #333; border-color: #333; }
  .cookie-btn-refuser:hover { background: #e8e8e8; }
}
.cookie-btn:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; }
@media (min-width: 768px) {
  .cookie-banner { align-items: center; padding: 24px; }
  .cookie-panneau {
    max-width: 480px;
    max-height: calc(100vh - 48px);
    padding: 28px;
    border-radius: 8px;
  }
  .cookie-actions { gap: 12px; margin-top: 20px; }
}

/* ── Mentions légales : les ancres arrivent sous la barre fixe de 64 px ── */
.doc-section { scroll-margin-top: 88px; }

/* ── Pied de page : icône LinkedIn après « Cookies » ── */
footer .footer-linkedin {
  display: inline-block;
  margin-left: 16px;
  vertical-align: middle;
  line-height: 0;
  transition: opacity 0.2s;
}
footer .footer-linkedin img { display: block; width: 18px; height: 18px; }
footer .footer-linkedin:hover { opacity: 0.7; }

/* ── Questions fréquentes (brief v5 §5.4) : gabarit des freins du constat,
   une colonne, sous un filet dans la section qui précède ── */
.faq-bloc {
  margin-top: 120px;
  padding-top: 96px;
  border-top: 1px solid var(--line, #e4e4e0);
}
.faq-liste { grid-template-columns: 1fr; max-width: 860px; gap: 40px; }
@media (max-width: 680px) {
  .faq-bloc { margin-top: 72px; padding-top: 64px; }
}

/* ── Pages de cas : ligne « Mis à jour en … » sous le chapeau (format des surtitres, sans trait) ── */
.date-maj {
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-dark);
}
