/* Les pages thématiques du site (13.10.2026, référencement) : une page par
   famille de recherches — logiciel de chantier, bons de décharge, photos,
   ERP, heures, soumissions. Mêmes jetons, mêmes polices et même bascule
   clair / sombre que la page d'accueil ; une mise en page de lecture, sobre.
   Les pages sont écrites par outils/site-pages-thematiques.py. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --bg-card: rgba(11,25,41,.035);
  --blue: #2563eb;
  --blue-lt: #0284c7;
  --orange: #ea6a0c;
  --orange-txt: #bd5a08;
  --muted: #5a6a80;
  --border: rgba(11,25,41,.11);
  --text: #0b1c2e;
  --text-dim: #47576b;
  --fond-barre: rgba(255,255,255,.9);
  --fond-tete: linear-gradient(135deg, #eef4fb 0%, #e2ecf8 55%, #eef4fb 100%);
  --fond-pied: #edf2f8;
  --radius: 16px;
  --max: 1080px;
  --font-h: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
}
[data-theme="sombre"] {
  --bg: #07101E;
  --bg-alt: #0B1929;
  --bg-card: rgba(255,255,255,.035);
  --blue-lt: #38bdf8;
  --orange: #f97316;
  --orange-txt: #f97316;
  --muted: #8a9ab0;
  --border: rgba(255,255,255,.09);
  --text: #eef3f9;
  --text-dim: #a9b6c7;
  --fond-barre: rgba(7,16,30,.9);
  --fond-tete: linear-gradient(135deg, #0b1929 0%, #0f2338 55%, #0b1929 100%);
  --fond-pied: #050c17;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.65;
  font-size: 1.02rem;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Barre du haut */
nav.barre {
  position: sticky; top: 0; z-index: 50;
  background: var(--fond-barre);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.barre-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { font-family: var(--font-h); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; }
.wordmark .dot { color: var(--orange-txt); margin: 0 1px; }
.barre-liens { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.barre-liens a { text-decoration: none; color: var(--text-dim); }
.barre-liens a:hover { color: var(--text); }
.barre-liens .cta { background: var(--orange); color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 600; }
.barre-liens .cta:hover { color: #fff; filter: brightness(1.05); }
.theme-bascule { background: none; border: 1px solid var(--border); border-radius: 10px; width: 38px; height: 38px; color: var(--text-dim); cursor: pointer; display: grid; place-items: center; }
.theme-bascule svg { width: 18px; height: 18px; }
.theme-bascule .ico-soleil { display: none; }
[data-theme="sombre"] .theme-bascule .ico-soleil { display: block; }
[data-theme="sombre"] .theme-bascule .ico-lune { display: none; }
@media (max-width: 720px) {
  .barre-liens .secondaire { display: none; }
}

/* Fil d'Ariane */
.ariane { font-size: .82rem; color: var(--muted); padding: 18px 0 0; }
.ariane a { text-decoration: none; color: var(--blue-lt); }

/* Tête de page */
.tete { background: var(--fond-tete); border-bottom: 1px solid var(--border); padding: 28px 0 56px; }
.tete .surtitre { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-txt); margin: 22px 0 10px; }
.tete h1 { font-family: var(--font-h); font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 18px; max-width: 22ch; text-wrap: balance; }
.tete .chapeau { font-size: 1.15rem; color: var(--text-dim); max-width: 64ch; margin: 0 0 26px; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 650; text-decoration: none; border: 1px solid var(--border); }
.btn.plein { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn.plein:hover { filter: brightness(1.05); }
.btn.vide { background: var(--bg); color: var(--text); }
.btn:focus-visible, .theme-bascule:focus-visible, a:focus-visible { outline: 3px solid var(--blue-lt); outline-offset: 2px; }

/* Corps */
main section { padding: 54px 0 0; }
main h2 { font-family: var(--font-h); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 14px; text-wrap: balance; }
main h3 { font-family: var(--font-h); font-size: 1.1rem; margin: 0 0 6px; }
main p { max-width: 70ch; color: var(--text-dim); margin: 0 0 14px; }
main ul.points { max-width: 72ch; padding-left: 1.2em; color: var(--text-dim); margin: 0 0 14px; }
main ul.points li { margin: 6px 0; }
main strong { color: var(--text); }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.carte { border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--radius); padding: 20px 22px; }
.carte p { margin: 0; font-size: .97rem; }

/* Questions */
.faq-liste { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq-q { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); padding: 0 20px; }
.faq-q summary { cursor: pointer; padding: 16px 0; font-family: var(--font-h); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: '+'; color: var(--blue-lt); font-weight: 800; }
.faq-q[open] summary::after { content: '–'; }
.faq-q p { margin: 0 0 16px; }

/* Appel final et liens entre pages */
.appel { margin: 64px 0 0; padding: 40px 28px; border-radius: 22px; background: var(--fond-tete); border: 1px solid var(--border); text-align: center; }
.appel h2 { margin-bottom: 10px; }
.appel p { margin: 0 auto 22px; }
.appel .boutons { justify-content: center; }
.voisines { margin: 48px 0 0; }
.voisines ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.voisines a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; background: var(--bg-card); font-weight: 600; }
.voisines a:hover { border-color: var(--blue-lt); }

footer.pied { margin-top: 72px; background: var(--fond-pied); border-top: 1px solid var(--border); padding: 28px 0; font-size: .85rem; color: var(--muted); }
.pied-inner { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.pied a { color: var(--text-dim); text-decoration: none; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pied-langues a[aria-current="page"] { color: var(--text); font-weight: 600; }
