/* Mon Site Local – feuille de style commune */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #15242a;
  --muted: #4d5e63;
  --line: #d9e2e0;
  --lac: #0f6e74;
  --lac-soft: #dcefed;
  --sun: #f2b632;
  --on-lac: #ffffff;
  --night: #15242a;
  --night-text: #f6f8f7;
  --night-muted: #c9d6d4;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1719; --surface: #162124; --ink: #e8efee; --muted: #a3b3b4;
    --line: #2a3a3d; --lac: #4fb8bd; --lac-soft: #183538; --on-lac: #08191b;
    --night: #0a1214;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1719; --surface: #162124; --ink: #e8efee; --muted: #a3b3b4;
  --line: #2a3a3d; --lac: #4fb8bd; --lac-soft: #183538; --on-lac: #08191b;
  --night: #0a1214;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--lac); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sun); color: #15242a; padding: 10px 16px; border-radius: 8px; z-index: 30; font-weight: 700; }
.skip:focus { left: 16px; }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(48px, 8vw, 88px); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lac); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.mt { margin-top: 12px; }

/* En-tête */
header { border-bottom: 1px solid var(--line); background: var(--bg); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 12px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.pin { width: 22px; height: 22px; flex: none; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }

/* Boutons (44 px minimum) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  background: var(--lac); color: var(--on-lac); text-decoration: none; text-align: center;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--lac); cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--lac); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn.sun { background: var(--sun); border-color: var(--sun); color: #15242a; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 mark { background: linear-gradient(transparent 62%, var(--sun) 62%); color: inherit; padding: 0 .08em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; margin-top: 6px; padding: 0; list-style: none; }
.facts li::before { content: "✓ "; color: var(--lac); font-weight: 700; }

/* Téléphone d'exemple */
.phone {
  width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 9 / 17.5;
  background: #ffffff; color: #15242a; border: 10px solid #15242a; border-radius: 36px;
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  box-shadow: 0 24px 48px -24px rgba(15, 50, 55, .45);
}
.phone .tag { position: absolute; top: 10px; right: 10px; background: var(--sun); color: #15242a; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.phone .ph-top { background: #0f6e74; color: #ffffff; padding: 34px 16px 18px; }
.phone .ph-top b { font-family: var(--display); font-size: 1.15rem; display: block; }
.phone .ph-top small { opacity: .9; font-size: .8rem; }
.phone .ph-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: .82rem; }
.stars { color: #b7841a; letter-spacing: 2px; }
.ph-row { display: flex; justify-content: space-between; border-bottom: 1px dashed #d9e2e0; padding-bottom: 4px; font-variant-numeric: tabular-nums; }
.ph-row span:first-child { color: #4d5e63; }
.ph-btn { background: #15242a; color: #f6f8f7; text-align: center; border-radius: 10px; padding: 9px; font-weight: 600; margin-top: 4px; }
.ph-map { height: 54px; border-radius: 10px; background: repeating-linear-gradient(35deg, #dcefed 0 10px, transparent 10px 20px), #f6f8f7; border: 1px solid #d9e2e0; }

/* Bandes */
.band { background: var(--lac-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700; line-height: 1.25; }
.quote small { display: block; font-family: var(--body); font-size: 1rem; font-weight: 400; color: var(--muted); margin-top: 10px; }

/* Ce qui est compris */
.included { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 2px solid var(--ink); }
.included > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.included > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.included h3 { font-size: 1.2rem; font-weight: 700; }
.included p { color: var(--muted); }

/* Étapes */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.day { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--lac); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--muted); }

/* Garanties */
.guarantees { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guarantees li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; }
.guarantees svg { width: 26px; height: 26px; flex: none; color: var(--lac); margin-top: 2px; }
.guarantees b { display: block; font-family: var(--display); font-size: 1.1rem; }
.guarantees span { color: var(--muted); }

/* Prix */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.price.main { border: 2px solid var(--lac); }
.price-name { font-weight: 700; font-size: 1.1rem; }
.amount { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.amount small { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--muted); }
.price ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.price .btn { margin-top: auto; align-self: flex-start; }
.note { color: var(--muted); font-size: .95rem; margin-top: 16px; }

/* Exemples */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.ex { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.ex:hover, .ex:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(15,50,55,.5); }
.ex-top { color: #fff; padding: 22px 18px 26px; display: flex; flex-direction: column; gap: 10px; min-height: 128px; justify-content: flex-end; }
.ex-top b { font-family: var(--display); font-size: 1.25rem; line-height: 1.15; }
.ex-ico { width: 34px; height: 34px; }
.ex-txt { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 2px; }
.ex-txt span { font-weight: 600; color: var(--lac); }
.ex-coiffure .ex-top { background: linear-gradient(135deg, #a33d53 0%, #d98b86 100%); }
.ex-renovation .ex-top { background: linear-gradient(135deg, #1d1f22 0%, #3d4248 100%); }
.ex-garage .ex-top { background: linear-gradient(135deg, #14202b 0%, #1f6fd1 100%); }
.ex-beaute .ex-top { background: linear-gradient(135deg, #6b4e33 0%, #a08060 100%); }
.ex-nettoyage .ex-top { background: linear-gradient(135deg, #0f8a67 0%, #0b6b5c 100%); }
.ex-physio .ex-top { background: linear-gradient(135deg, #22688a 0%, #4f9dbb 100%); }

/* Qui suis-je */
.about { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.about-mark { width: 120px; height: 120px; border-radius: 28px; background: var(--lac); display: grid; place-items: center; }
.about-mark svg { width: 64px; height: 64px; }
.about .stack p { color: var(--muted); max-width: 62ch; }
.about .stack p strong { color: var(--ink); }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 760px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--lac); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 16px; max-width: 65ch; }

/* Contact (toujours sombre, dans les deux thèmes) */
.contact { background: var(--night); color: var(--night-text); }
.contact .eyebrow { color: var(--sun); }
.contact .lead { color: var(--night-muted); }
.contact h2 { color: var(--night-text); }
.reply-time { display: inline-flex; align-items: center; gap: 8px; color: var(--sun); font-weight: 600; }
.reply-time::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; max-width: 760px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--night-text); }
.form label.full { grid-column: 1 / -1; }
.form small { font-weight: 400; color: var(--night-muted); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: #15242a; background: #ffffff; border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 48px; }
.form select { appearance: auto; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sun); }
.form .hp { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form button { font: inherit; font-weight: 700; background: var(--sun); color: #15242a; border: 0; border-radius: 999px; padding: 13px 26px; min-height: 48px; cursor: pointer; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form-msg { color: var(--night-muted); font-size: .95rem; }
.form-msg.ok { color: var(--sun); font-weight: 600; }
.contact a.sun-link { color: var(--sun); }
.or { color: var(--night-muted); margin-top: 28px; }
.wa { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; background: #25d366; color: #0b2e17; text-decoration: none; border-radius: 999px; padding: 12px 22px; min-height: 48px; }
.wa svg { width: 22px; height: 22px; flex: none; }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.mail { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 4.5vw, 2rem); color: var(--sun); word-break: break-all; text-decoration: none; }
.copy { font: inherit; font-weight: 600; background: transparent; color: var(--night-text); border: 2px solid var(--night-text); border-radius: 999px; padding: 8px 18px; min-height: 44px; cursor: pointer; }

/* WhatsApp flottant (ordinateur) et barre du bas (téléphone) */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 20; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }
.wa-float svg { width: 30px; height: 30px; }
.mbar { display: none; }

/* Pages de contenu (métiers, régions, guides, pages légales) */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.page-hero { padding-block: clamp(32px, 6vw, 64px) clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; max-width: 22ch; }
.page-hero .lead { margin-top: 14px; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-top: 18px; }
.prose h3 { font-size: 1.2rem; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose p, .prose li { color: var(--ink); }
.prose .muted { color: var(--muted); }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--lac); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.callout .amount { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.legal .prose { max-width: 75ch; }
.legal .date { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.cards a { display: flex; align-items: center; min-height: 56px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.cards a::after { content: "→"; margin-left: auto; padding-left: 10px; color: var(--lac); }

/* Pied de page */
footer { padding-block: 40px 96px; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot h2 { font-family: var(--body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.foot a { color: var(--muted); display: inline-block; padding: 6px 0; min-height: 32px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-base a { color: var(--muted); }

@media (max-width: 900px) {
  .examples, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guarantees { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero .wrap, .split, .prices { grid-template-columns: 1fr; }
  .included, .steps { grid-template-columns: 1fr; }
  .included > div, .included > div + div { padding: 18px 0; border-left: 0; }
  .phone { max-width: 250px; }
  .about { grid-template-columns: 1fr; }
  .about-mark { width: 72px; height: 72px; border-radius: 18px; }
  .about-mark svg { width: 40px; height: 40px; }
  .wa-float { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr auto; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgba(0,0,0,.35);
  }
  .mbar .btn { min-height: 48px; padding: 10px 16px; }
  .mbar .wa { padding: 10px 16px; }
  footer { padding-bottom: 110px; }
}
@media (max-width: 600px) {
  .form, .examples, .cards, .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: rise .7s ease-out both; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
