/* Pages publiques statiques (hors de l'app) : /confidentialite, /conditions, /mentions-legales [maquette M05, BO 17/09/2026].
   Couleurs : mêmes jetons que app/src/ui.css (y reporter tout changement de charte). */
:root {
  --paper: #f3f2f8;
  --card: #ffffff;
  --ink: #141414;
  --muted: #6b6b73;
  --rule: #d9d8e2;
  --accent: #6e5bd0;
  --accent-ink: #4a3aa8;
  --amber: #b4540a;
  --amber-soft: #fbefe4;
  --shadow: 0 1px 2px rgba(30, 25, 60, 0.05), 0 4px 14px rgba(30, 25, 60, 0.05);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }

.haut, main, footer { max-width: 720px; margin: 0 auto; padding-left: 18px; padding-right: 18px; }
.haut { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.haut .logo { display: inline-block; line-height: 0; }
.haut .logo img { height: 26px; width: auto; }
.ouvrir {
  font-size: 14px; font-weight: 600; color: var(--ink); background: var(--card);
  border-radius: 999px; padding: 10px 16px; box-shadow: var(--shadow);
}
.ouvrir:hover { color: var(--ink); }

main { padding-top: 10px; }
.surtitre { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; }
.carte { background: var(--card); border-radius: 20px; padding: 18px; margin-top: 18px; box-shadow: var(--shadow); }
.carte > :first-child { margin-top: 0; }
.maj { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 26px 0 8px; }
p, ul, ol { font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
ul, ol { padding-left: 20px; }
li { margin: 0 0 8px; }
.carte > :last-child, li:last-child { margin-bottom: 0; }

/* point encore à trancher par Jonathan : visible tant que le texte n'est pas validé */
mark { background: var(--amber-soft); color: var(--amber); border-radius: 4px; padding: 0 4px; font-style: normal; }

footer { margin-top: 36px; padding-top: 22px; padding-bottom: 32px; border-top: 1px solid var(--rule); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; line-height: 1.6; }
/* point centré entre deux liens, au milieu de l'écart ; celui d'un début de ligne sort du cadre et reste caché [BO 17/09] */
footer nav { overflow: hidden; }
footer nav a { position: relative; }
footer nav a + a::before { content: "·"; position: absolute; left: -9px; top: 50%; transform: translate(-50%, -50%); color: var(--muted); pointer-events: none; }
footer nav a { color: var(--muted); }
/* page ouverte : soulignée, jamais en gras (le gras élargit le lien et renvoyait « Mentions légales » à la ligne) */
footer nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
footer .signature { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

@media (min-width: 720px) {
  .haut { padding: 18px 32px; }
  main, footer { padding-left: 32px; padding-right: 32px; }
  main { padding-top: 12px; }
  h1 { font-size: 34px; }
  .carte { padding: 28px 32px; }
}

/* Questions fréquentes : chaque question se replie (details) [maquette M15] */
.liste-questions { padding: 4px 18px; }
.liste-questions details { padding: 14px 0; border-bottom: 1px solid #ececef; }
.liste-questions details:last-child { border-bottom: 0; }
.liste-questions summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700;
}
.liste-questions summary::-webkit-details-marker { display: none; }
.liste-questions summary::after {
  content: ''; flex-shrink: 0; width: 18px; height: 18px; transition: transform 0.2s;
  background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.liste-questions details[open] summary::after { transform: rotate(180deg); }
.liste-questions details p { font-size: 14px; line-height: 1.55; margin: 8px 0 0; }

/* Formulaire de contact [maquette M15] */
.formulaire label { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.formulaire input, .formulaire select, .formulaire textarea {
  display: block; width: 100%; margin-top: 6px; border: 0; border-radius: 14px; background: var(--paper);
  padding: 13px 14px; min-height: 48px; font: inherit; font-size: 15px; color: var(--ink);
}
.formulaire textarea { min-height: 120px; resize: vertical; }
.formulaire select {
  appearance: none; padding-right: 40px;
  background: var(--paper) no-repeat right 14px center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.formulaire select:invalid { color: #a1a1aa; }
.formulaire :focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.formulaire .piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bouton {
  display: block; width: 100%; margin-top: 16px; border: 0; border-radius: 999px; padding: 15px;
  background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 700; text-align: center; cursor: pointer;
}
a.bouton:hover { color: #fff; }
.bouton:disabled { opacity: 0.4; cursor: default; }
.retour { font-size: 14px; margin: 10px 0 0; color: #0b7a45; }
.retour:empty { display: none; }
.retour.erreur { color: #b3261e; }
.precision { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 0 0; }

/* Tarifs [maquette M15] */
.encart-vert { background: #e8f4ed; color: #0b7a45; border-radius: 14px; padding: 12px 14px; margin: 18px 0 0; font-size: 14px; line-height: 1.45; }
.offre h2 { font-size: 17px; margin: 0; }
.offre .prix { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 10px 0 0; }
.offre .prix span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.offre .detail { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; }
.apres-offres { margin-top: 22px; }
main > .bouton { margin-top: 22px; }
