/* WADOO – site vitrine. Couleurs et polices de docs/DESIGN.md (aucun vert). */
@font-face { font-family: Outfit; src: url(fonts/Outfit-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/Outfit-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(fonts/NunitoSans-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(fonts/NunitoSans-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(fonts/NunitoSans-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1c1a19;
  --orange: #e04f0a;
  --orange-dark: #c2410c;
  --orange-soft: #ffede0;
  --grad-a: #ffa21f;
  --grad-b: #f26100;
  --bg: #f7f5f2;
  --card: #ffffff;
  --text-2: #4a4440;
  --muted: #6b6460;
  --border: #e5ddd6;
  --danger: #b42318;
  --night: #161514;
  --night-card: #26221f;
  --night-accent: #ff8a3d;
  --night-text-2: #cfc8c2;
  --radius: 20px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3 { font-family: Outfit, system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.45rem Outfit, sans-serif; letter-spacing: .02em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-dark); }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 12px; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 16px; font: 800 1.05rem Outfit, sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(224, 79, 10, .28); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(224, 79, 10, .34); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { color: var(--ink); background: rgba(28, 26, 25, .05); }
.btn.is-soon { cursor: default; }
.btn.is-soon:hover { transform: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: .98rem; border-radius: 13px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.store-note { display: block; font-size: .85rem; color: var(--text-2); margin-top: 10px; }

/* ---------- Accueil : bandeau ---------- */
/* Bandeau : dégradé orange en haut, photo d'un mécanicien au travail dessous (une photo par heure, assets/site.js).
   Le côté du texte reste bien orange pour la lisibilité. */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 150, 20, .88) 0%, rgba(250, 120, 10, .72) 36%, rgba(242, 97, 0, .1) 66%, rgba(216, 23, 0, 0) 100%),
    linear-gradient(180deg, #fdc609 0%, rgba(255, 162, 31, .94) 10%, rgba(242, 97, 0, .5) 40%, rgba(160, 40, 0, .3) 100%),
    var(--hero-photo, none) var(--hero-pos, center) / cover no-repeat,
    linear-gradient(140deg, #fdc609 0%, var(--grad-a) 22%, var(--grad-b) 62%, #d81700 100%);
}
@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(180deg, #fdc609 0%, rgba(255, 162, 31, .95) 20%, rgba(250, 120, 10, .86) 55%, rgba(216, 60, 0, .7) 100%),
      var(--hero-photo-small, none) var(--hero-pos, center) / cover no-repeat,
      linear-gradient(140deg, #fdc609 0%, var(--grad-a) 22%, var(--grad-b) 62%, #d81700 100%);
  }
}
.hero-credit { position: absolute; right: 12px; bottom: 6px; margin: 0; font-size: .7rem; color: rgba(255, 255, 255, .8); z-index: 2; }
.hero-credit:empty { display: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 0; }
.hero h1 { color: var(--ink); }
.hero .lead { font-size: 1.2rem; max-width: 34ch; color: #2b2522; font-weight: 600; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 8px; }
.hero .store-note { color: #2b2522; }
.hero .pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 64px; padding: 0; list-style: none; }
.hero .pills li { background: rgba(255, 255, 255, .78); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.hero .pills svg { width: 18px; height: 18px; color: var(--orange-dark); }
.hero-visual { position: relative; align-self: end; display: flex; justify-content: center; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .hero .pills { margin-bottom: 36px; }
  }

/* Téléphone */
.phone { width: min(300px, 78vw); background: #0e0d0c; border-radius: 42px 42px 0 0; padding: 12px 12px 0; box-shadow: 0 30px 60px rgba(60, 15, 0, .35); position: relative; z-index: 1; }
.phone img { border-radius: 31px 31px 0 0; width: 100%; aspect-ratio: 540 / 1065; object-fit: cover; object-position: top; max-height: 540px; }
.phone.full { border-radius: 42px; padding: 12px; }
.phone.full img { border-radius: 31px; max-height: none; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.kicker { display: inline-block; font: 800 .85rem Outfit, sans-serif; text-transform: uppercase; letter-spacing: .09em; color: var(--orange-dark); margin-bottom: 10px; }
.alt { background: var(--card); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.alt .steps li { background: var(--bg); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; font: 800 1.3rem Outfit, sans-serif; margin-bottom: 18px; }
.steps p { color: var(--text-2); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.alt .tile { background: var(--bg); }
.tile p { color: var(--text-2); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 15px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 28px; height: 28px; }
.soon { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--muted); background: #efebe7; border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { display: flex; gap: 14px; margin-bottom: 16px; }
.checks svg { flex: none; width: 26px; height: 26px; color: var(--orange-dark); margin-top: 2px; }
.checks strong { display: block; font-family: Outfit, sans-serif; font-size: 1.08rem; }
.checks span { color: var(--text-2); }

/* Exemple de devis */
.quote { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 26px; box-shadow: 0 24px 50px rgba(60, 30, 10, .12); max-width: 400px; margin-inline: auto; }
.quote-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.quote-head .avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 1.1rem Outfit, sans-serif; }
.quote-head strong { display: block; font-family: Outfit, sans-serif; }
.quote-head small { color: var(--orange-dark); font-weight: 700; }
.quote dl { margin: 0; }
.quote .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); color: var(--text-2); }
.quote .row dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }
.quote .total { border: 0; padding-top: 16px; color: var(--ink); font: 800 1.25rem Outfit, sans-serif; }
.quote .total dd { font-size: 1.5rem; color: var(--orange-dark); }
.quote .btn { width: 100%; margin-top: 18px; }
.quote .hint { font-size: .85rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Bande sombre (professionnels) */
.night { background: var(--night); color: #fff; }
.night p, .night .checks span { color: var(--night-text-2); }
.night .kicker, .night .checks svg { color: var(--night-accent); }
.night .tile { background: var(--night-card); border-color: #3a342f; }
.night .tile p { color: var(--night-text-2); }
.night .icon { background: rgba(255, 138, 61, .14); color: var(--night-accent); }
.night .steps li { background: var(--night-card); border-color: #3a342f; }
.night .steps li::before { background: var(--night-accent); color: var(--night); }
.night .steps p { color: var(--night-text-2); }
.night a:not(.btn) { color: var(--night-accent); }
.night .btn-line { border-color: #fff; color: #fff; }
.phones { display: flex; gap: 18px; justify-content: center; }
.phones .phone { width: min(240px, 44vw); }
.phones .phone:nth-child(2) { margin-top: 48px; }

.rule { background: var(--orange-soft); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.rule svg { flex: none; width: 30px; height: 30px; color: var(--orange-dark); }
.rule p { margin: 0; color: var(--ink); }
.night .rule { background: rgba(255, 138, 61, .1); border: 1px solid rgba(255, 138, 61, .35); }
.night .rule p { color: #fff; }
.night .rule svg { color: var(--night-accent); }

/* Carte du déploiement */
.map-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.map-tools button { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--ink); background: transparent; font: 700 .98rem Outfit, sans-serif; cursor: pointer; color: var(--ink); }
.map-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.map-tools .legend { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.map-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } .map-tools .legend { margin-left: 0; } }
.map-box { min-height: 460px; border-radius: var(--radius); background: #e9e3dd url(img/cle.webp) center / 120px no-repeat; border: 1px solid var(--border); overflow: hidden; }
.map-box.ready { background: #e9e3dd; }
.zones-list { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; max-height: 460px; overflow: auto; }
.ztree, .ztree ul { list-style: none; margin: 0; padding: 0; }
.ztree ul { padding-left: 16px; border-left: 2px solid var(--border); margin: 6px 0 10px 6px; }
.ztree li { margin: 6px 0; }
.ztree > li > .zname { font: 800 1.1rem Outfit, sans-serif; }
.zname { font-weight: 700; }
.ztree small { color: var(--muted); }
.zbadge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 1px 10px 1px 8px; }
.zbadge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* Questions */
.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font: 700 1.08rem Outfit, sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--text-2); }

/* Appel final */
.cta { background: linear-gradient(140deg, var(--grad-a), var(--grad-b)); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0; max-width: 18ch; }
.cta p { margin: 6px 0 0; font-weight: 600; }
@media (max-width: 600px) { .cta { padding: 32px 24px; } }

/* SOS */
.sos { display: flex; gap: 14px; align-items: center; border: 2px solid var(--danger); color: var(--danger); border-radius: 16px; padding: 14px 18px; font-weight: 700; margin-top: 28px; }
.sos svg { width: 26px; height: 26px; flex: none; }

/* ---------- Pages de texte (légal) ---------- */
.page-head { background: var(--card); border-bottom: 1px solid var(--border); padding: 56px 0 40px; }
.page-head p { color: var(--text-2); margin: 0; }
.doc { max-width: 780px; padding: 48px 0 88px; }
.doc h2 { font-size: 1.5rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; background: var(--card); border-radius: 14px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { background: #efebe7; font-family: Outfit, sans-serif; }
.table-scroll { overflow-x: auto; }
.note { background: var(--orange-soft); border-radius: 14px; padding: 14px 18px; font-size: .95rem; }
.todo { background: #fff3c4; border-radius: 4px; padding: 0 4px; font-weight: 700; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.toc ol { margin: 0; }

/* ---------- Pied de page ---------- */
.foot { background: var(--ink); color: #d9d2cc; padding: 56px 0 32px; font-size: .95rem; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.foot h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--night-accent); text-decoration: underline; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot .legal { border-top: 1px solid #3a342f; margin-top: 40px; padding-top: 20px; color: #a9a19a; }
