/* Serrurier à Cluses · annuaire + partenaire recommandé */
:root {
  --ink: #0e2a3f;
  --ink-2: #3d5468;
  --muted: #6d7380;
  --line: #e9e6e1;
  --bg: #ffffff;
  --soft: #f7f5f2;
  --red: #f2621c;
  --red-2: #d24e10;
  --red-soft: #fff0e7;
  --gold: #f5b301;
  --green: #1f9d55;
  --radius: 22px;
  --shadow: 0 30px 70px -30px rgba(14, 42, 63, 0.45), 0 8px 24px -12px rgba(14, 42, 63, 0.2);
  --navy-2: #1b4565;
  --font-h: "Outfit", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.12; letter-spacing: -0.02em; }
svg.i { width: 1em; height: 1em; flex: none; }
.hero .wrap > *, .biz .wrap > *, .opts > *, .quote-stats > * { min-width: 0; }
.logo-mark svg.i { width: 20px; height: 20px; }
.stat-ico svg.i { width: 20px; height: 20px; }
.avatar .key svg.i { width: 14px; height: 14px; }

/* En-tête */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.logo img { height: 46px; width: auto; display: block; }
.logo em { font-style: normal; color: var(--red); }
.logo small { display: block; font-family: var(--font-b); font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; font-weight: 500; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--red); }
.hdr-cta { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; font-family: var(--font-b); }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(242, 98, 28, 0.75); }
.btn-red:hover { background: var(--red-2); }
.btn-line { border-color: var(--red); color: var(--red); background: #fff; }
.btn-ink { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 72px 0 90px; background: radial-gradient(900px 420px at 85% 0%, #fff1e8 0%, rgba(255, 255, 255, 0) 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 70px; align-items: start; }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--red); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--red); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); margin: 26px 0 26px; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--red); display: block; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.rule { height: 2px; background: var(--red); margin: 32px 0 22px; border-radius: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 14px 30px; list-style: none; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 9px; }
.checks svg { color: var(--red); }
.person { margin-top: 34px; display: flex; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; }
.avatar { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; font-size: 1.9rem; color: #fff; background: linear-gradient(140deg, var(--ink), var(--navy-2)); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red); position: relative; }
.avatar .key { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 0.85rem; border: 2px solid #fff; }
.person h3 { font-size: 1.2rem; }
.person .role { color: var(--red); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 2px 0 6px; }
.person p { color: var(--ink-2); font-size: 0.95rem; }
.down { margin-top: 30px; display: inline-flex; gap: 8px; align-items: center; color: var(--red); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; }

/* Carte devis */
.quote { background: #fff; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid #dfe6ec; overflow: hidden; position: sticky; top: 96px; }
.quote-hd { background: linear-gradient(120deg, var(--ink) 0%, var(--navy-2) 100%); color: #fff; padding: 26px 28px; display: flex; gap: 18px; align-items: center; }
.quote-hd .avatar { width: 70px; height: 70px; font-size: 1.6rem; box-shadow: none; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.85); }
.quote-hd h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.quote-hd p { opacity: 0.85; }
.quote-stats { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--soft); }
.quote-stats div { padding: 18px 22px; display: flex; gap: 12px; align-items: center; }
.quote-stats div + div { border-left: 1px solid var(--line); }
.stat-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.quote-stats b { display: block; font-family: var(--font-h); font-size: 1.15rem; color: var(--red); }
.quote-stats span { font-size: 0.85rem; color: var(--ink-2); line-height: 1.3; display: block; }
.quote-stats .stat-ico { display: grid; color: #fff; }
.quote-body { padding: 26px 28px 24px; }
.progress { display: flex; align-items: center; gap: 16px; }
.bar { flex: 1; height: 10px; border-radius: 99px; background: #f1eeea; overflow: hidden; }
.bar i { display: block; height: 100%; width: 12%; background: var(--red); border-radius: 99px; transition: width 0.35s ease; }
.pct { font-family: var(--font-h); font-weight: 600; font-size: 1.3rem; min-width: 52px; text-align: right; }
.pill { display: table; margin: 12px auto 0; border: 1px solid #f9c4a6; color: var(--red); border-radius: 99px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; padding: 4px 14px; text-transform: uppercase; }
.step { display: none; }
.step.on { display: block; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step h3 { text-align: center; font-size: 1.25rem; margin: 20px 0 16px; }
.step .hint { text-align: center; color: var(--ink-2); font-size: 0.95rem; margin-top: 14px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { position: relative; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 12px 14px; text-align: center; cursor: pointer; background: #fff; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.opt:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.4); }
.opt input { position: absolute; opacity: 0; }
.opt .ico { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 1.25rem; }
.opt b { display: block; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.02em; }
.opt small { color: var(--muted); font-size: 0.8rem; }
.opt::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #cfc9c2; }
.opt:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.opt:has(input:checked)::after { border: 5px solid var(--red); }
.field { display: block; margin-bottom: 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { margin-top: 6px; width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; font: 500 1rem var(--font-b); color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1.5px solid var(--line); border-radius: 99px; padding: 9px 14px; font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.chip input { display: none; }
.chip:has(input:checked) { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.go { width: 100%; margin-top: 18px; padding: 17px; font-size: 1.08rem; border-radius: 14px; }
.go:disabled { background: #f9cdb3; box-shadow: none; cursor: not-allowed; transform: none; }
.back { background: none; border: 0; color: var(--muted); font-weight: 600; cursor: pointer; margin-top: 12px; width: 100%; font-family: var(--font-b); }
.trust { display: flex; justify-content: center; gap: 22px; margin-top: 16px; color: var(--ink-2); font-size: 0.88rem; flex-wrap: wrap; }
.trust span { display: inline-flex; gap: 6px; align-items: center; }
.trust svg { color: var(--green); }
.or-call { margin-top: 16px; text-align: center; }
.or-call a { font-weight: 700; color: var(--red); text-decoration: none; font-size: 1.05rem; }
.done { text-align: center; padding: 18px 4px 6px; }
.done .big { font-size: 2.6rem; }
.hp { position: absolute; left: -5000px; }

/* Sections */
section { padding: 90px 0; }
.soft { background: var(--soft); }
.sec-hd { max-width: 720px; margin-bottom: 44px; }
.sec-hd h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; margin: 14px 0 14px; }
.sec-hd p { color: var(--ink-2); font-size: 1.08rem; }

/* Annuaire */
.dir-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.dir-tools input { flex: 1; min-width: 220px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font: 500 1rem var(--font-b); background: #fff; }
.dir-count { color: var(--muted); font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(20, 22, 28, 0.45); }
.card.star { border: 2px solid var(--red); position: relative; }
.card .tag { position: absolute; top: -12px; left: 20px; background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.card h3 { font-size: 1.15rem; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); }
.stars { color: var(--gold); letter-spacing: 1px; }
.meta { list-style: none; color: var(--ink-2); font-size: 0.92rem; display: grid; gap: 6px; }
.meta li { display: flex; gap: 8px; align-items: flex-start; }
.meta svg { margin-top: 4px; color: var(--muted); }
.card .row { margin-top: auto; display: flex; gap: 10px; padding-top: 8px; }
.card .row .btn { padding: 10px 16px; font-size: 0.88rem; flex: 1; }

/* Prix */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.price { background: #fff; border-radius: 18px; padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--line); }
.price h3 { font-size: 1.05rem; }
.price p { color: var(--muted); font-size: 0.9rem; }
.price b { font-family: var(--font-h); color: var(--red); font-size: 1.2rem; white-space: nowrap; }
.note { color: var(--muted); font-size: 0.88rem; margin-top: 18px; }

/* Conseils */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; counter-reset: t; }
.tips li { background: #fff; border-radius: 18px; padding: 26px; border: 1px solid var(--line); counter-increment: t; }
.tips li::before { content: counter(t, decimal-leading-zero); font-family: var(--font-h); color: var(--red); font-weight: 700; font-size: 1.4rem; display: block; margin-bottom: 8px; }
.tips h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tips p { color: var(--ink-2); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-family: var(--font-h); font-weight: 600; font-size: 1.15rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin-top: 12px; }

/* Communes */
.towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.towns li { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 10px 18px; font-weight: 500; }

/* Bandeau final */
.band { background: var(--ink); color: #fff; border-radius: 30px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
.band p { opacity: 0.75; margin-top: 8px; }

/* Fiche d'un serrurier */
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.biz { padding: 56px 0 80px; }
.biz .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: start; }
.biz h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 12px; }
.info { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 22px; }
.info div + div { border-top: 1px solid var(--line); }
.info dt { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.info dd { font-weight: 500; }
.info dd a { color: var(--red); }
.claim { margin-top: 22px; font-size: 0.85rem; color: var(--muted); }
.side { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-card { background: linear-gradient(140deg, var(--ink), var(--navy-2)); color: #fff; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 1.45rem; margin: 10px 0 8px; }
.side-card p { opacity: 0.9; }
.side-card .btn { margin-top: 18px; width: 100%; background: var(--red); color: #fff; }
.side-card .btn + .btn { margin-top: 10px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.others { background: var(--soft); border-radius: 22px; padding: 22px; }
.others h3 { font-size: 1.05rem; margin-bottom: 10px; }
.others ul { list-style: none; display: grid; gap: 8px; }
.others a { text-decoration: none; font-weight: 500; }
.others a:hover { color: var(--red); }

/* Pages légales */
.legal { padding: 60px 0 90px; max-width: 820px; }
.legal h1 { font-size: 2.4rem; margin-bottom: 26px; }
.legal h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.legal p { color: var(--ink-2); }

/* Pied de page */
.ftr { border-top: 1px solid var(--line); padding: 46px 0 110px; color: var(--muted); font-size: 0.92rem; }
.ftr .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ftr a { text-decoration: none; margin-left: 18px; }
.ftr a:hover { color: var(--red); }

/* Barre d'appel mobile */
.mbar { display: none; }

@media (max-width: 1020px) {
  .hero .wrap, .biz .wrap { grid-template-columns: 1fr; gap: 44px; }
  .quote, .side { position: static; }
  .cards, .tips { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 40px 0 60px; }
  section { padding: 64px 0; }
  .cards, .tips, .prices { grid-template-columns: 1fr; }
  .quote-hd, .quote-body { padding-left: 20px; padding-right: 20px; }
  .quote-stats div { padding: 14px; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .band { padding: 34px 26px; }
  .hdr-cta { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .opts { gap: 8px; }
  .opt { padding: 14px 8px 12px; }
  .opt b { font-size: 0.78rem; }
  .quote-stats { grid-template-columns: 1fr; }
  .quote-stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
