/* Site public de Carnet de Pose : mêmes couleurs et polices que l'application. */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f5f3; --ink: #17201d; --muted: #55635e; --line: #d5dcd8;
  --accent: #1d6b55; --accent-fort: #155443; --accent-ink: #ffffff; --mat: #1d6b55;
  --signal: #f2b705; --signal-ink: #2a2000;
  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px; --largeur: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1513; --surface: #17201c; --surface-2: #141c19; --ink: #e5ece9; --muted: #9fb0a9; --line: #2b3732;
  --accent: #46b393; --accent-fort: #6cc8ab; --accent-ink: #04140e; --mat: #123f33;
  --signal: #f5c533; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0f1513; --surface: #17201c; --surface-2: #141c19; --ink: #e5ece9; --muted: #9fb0a9; --line: #2b3732;
  --accent: #46b393; --accent-fort: #6cc8ab; --accent-ink: #04140e; --mat: #123f33;
  --signal: #f5c533; color-scheme: dark }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-fort); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.cadre { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .cadre { padding: 0 28px; } }
.evitement { position: absolute; left: -9999px; top: 8px; background: var(--signal); color: var(--signal-ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.evitement:focus { left: 8px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: var(--mat); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.entete-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.marque { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.entete .marque::before { content: ""; width: 26px; height: 26px; border-radius: 6px; background: var(--signal) url("/favicon.svg") center/cover; flex: none; }
.entete .marque:hover { color: #fff; }
.entete nav { display: none; gap: 22px; margin-left: auto; align-items: center; }
.entete nav a { color: #fff; text-decoration: none; font-weight: 500; opacity: .92; }
.entete nav a:hover { opacity: 1; text-decoration: underline; color: #fff; }
.entete > .cadre > .bouton { margin-left: auto; }
@media (min-width: 900px) { .entete nav { display: flex; } .entete > .cadre > .bouton { margin-left: 0; } }

.bouton { display: inline-block; background: var(--signal); color: var(--signal-ink); font-weight: 600; text-decoration: none; padding: 9px 16px; border-radius: 999px; line-height: 1.2; white-space: nowrap; border: 0; }
.bouton:hover { color: var(--signal-ink); filter: brightness(1.06); }
.bouton.gros { padding: 14px 24px; font-size: 1.08rem; }
.lien-fort { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 1.4em; }

/* Accueil */
.hero { background: var(--mat); color: #fff; padding: 40px 0 48px; }
.hero-in { display: grid; gap: 32px; align-items: center; }
.hero .chapo { color: rgba(255,255,255,.9); }
.hero .lien-fort { color: #fff; }
.surtitre { display: inline-block; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--signal); margin-bottom: .7em; }
.chapo { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.atouts { list-style: none; padding: 0; margin: 1.4em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.atouts li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 4px 12px; font-size: .92rem; }
.telephone { margin: 0 auto; max-width: 300px; border-radius: 34px; padding: 10px; background: #0b0f0e; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); }
.telephone img { border-radius: 26px; }
.telephone.petit { max-width: 240px; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 64px; }
  .hero-in { grid-template-columns: 1.25fr 1fr; }
}

.bloc { padding-top: 56px; padding-bottom: 56px; }
.titre-bloc { margin-bottom: .7em; }
.intro { color: var(--muted); max-width: 70ch; }
.bande { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grille-fonctions { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grille-fonctions li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 16px 18px; }
.grille-fonctions h3 { margin-bottom: .3em; }
.grille-fonctions p { margin: 0; color: var(--muted); font-size: .97rem; }

.ecrans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ecrans figure { margin: 0; text-align: center; }
.ecrans img { max-width: 260px; margin: 0 auto 10px; border-radius: 22px; border: 6px solid #0b0f0e; }
.ecrans figcaption { color: var(--muted); font-size: .95rem; }

.grille-metiers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grille-metiers a { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; }
.grille-metiers a::after { content: "→"; color: var(--accent); }
.grille-metiers a:hover { border-color: var(--accent); }

.etapes { list-style: none; padding: 0; margin: 0; counter-reset: e; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.etapes li { counter-increment: e; position: relative; padding: 18px 18px 18px 64px; background: var(--surface-2); border-radius: var(--r); }
.etapes li::before { content: counter(e); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1.1rem/34px var(--f-display); text-align: center; }
.etapes p { margin: 0; color: var(--muted); }

/* Tableaux */
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--surface-2); font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; }
.tarifs td { white-space: nowrap; }
.tarifs td:nth-child(3) { font-weight: 600; }
.compare td:last-child { color: var(--accent); font-weight: 600; }
.compare { min-width: 520px; }

/* FAQ */
.faq { padding-bottom: 56px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font: 700 1.4rem var(--f-display); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--muted); }

/* Appel à l'action */
.appel { background: var(--mat); color: #fff; text-align: center; padding: 56px 0; }
.appel p { color: rgba(255,255,255,.88); max-width: 60ch; margin: 0 auto 1.4em; }

/* Pages intérieures */
.entete-page { padding-bottom: 8px; }
.fil-ariane { font-size: .92rem; color: var(--muted); }
.page-hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .page-hero { grid-template-columns: 1.5fr 1fr; } }
.texte { max-width: 760px; padding-top: 16px; }
.texte h2 { margin-top: 1.4em; }
.texte ul { padding-left: 1.2em; }
.texte li { margin-bottom: .4em; }
.note { background: var(--surface-2); border-left: 4px solid var(--signal); padding: 12px 16px; border-radius: 6px; font-size: .96rem; }
.date { color: var(--muted); font-size: .92rem; }
.liste-coches { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.liste-coches li { padding-left: 30px; position: relative; }
.liste-coches li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8rem; line-height: 22px; text-align: center; font-weight: 700; }
.liste-guides { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.liste-guides a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; }
.liste-guides a:hover { border-color: var(--accent); }
.liste-guides h2 { font-size: 1.35rem; color: var(--accent); }
.liste-guides p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Pied de page */
.pied { background: #0d1311; color: #c9d4cf; padding: 44px 0 36px; font-size: .95rem; }
.pied-in { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pied .marque { color: #fff; font-size: 1.3rem; display: block; margin-bottom: .4em; }
.pied h2 { font-size: 1.1rem; color: #fff; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied a { color: #c9d4cf; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 420px) {
  .entete-in { gap: 10px; }
  .entete .marque { font-size: 1.2rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .entete > .cadre > .bouton { padding: 8px 12px; font-size: .95rem; }
}
.texte, .chapo, h1, h2 { overflow-wrap: break-word; }
