/* OuiChantier — feuille de style unique du site */
:root {
  --navy: #13233f;
  --navy-2: #1d3257;
  --orange: #f26b1d;
  --orange-d: #d4560d;
  --cream: #faf7f2;
  --paper: #ffffff;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e6e1d8;
  --green: #1f8a4c;
  --red: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 35, 63, .08);
  --max: 1080px;
  font-size: 17px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 850; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hl { color: var(--orange); }
.mark { background: linear-gradient(transparent 60%, rgba(242, 107, 29, .25) 60%); }

/* Header */
.top {
  background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.logo svg { flex: none; }
.top nav a { color: #fff; text-decoration: none; font-size: .9rem; opacity: .85; margin-left: 18px; }
.top nav a:hover { opacity: 1; }
@media (max-width: 640px) { .top nav a.hide-m { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; text-decoration: none; font-weight: 800;
  padding: 16px 28px; border-radius: 12px; border: 0; font-size: 1.05rem; cursor: pointer;
  box-shadow: 0 6px 0 var(--orange-d); transition: transform .08s, box-shadow .08s, background .15s;
  text-align: center; line-height: 1.25; font-family: inherit; flex-wrap: wrap;
}
.btn:hover { background: #ff7a2b; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-d); }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: none; border: 2px solid var(--line); font-weight: 700; }
.btn.ghost:hover { background: #fff; }
.btn.small { padding: 10px 16px; font-size: .9rem; box-shadow: 0 3px 0 var(--orange-d); }
.btn-sub { display: block; flex-basis: 100%; font-size: .8rem; font-weight: 500; opacity: .9; margin-top: 4px; }
.link-no { display: inline-block; margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--navy); color: #e8edf6; }
section.dark h2, section.dark h3 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--orange); margin-bottom: 10px; display: block; }

/* Hero */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #e8edf6; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #cfd8e8; max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .checks li { color: #e8edf6; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .88rem; color: #b9c4d8; }
.trust span::before { content: "✓ "; color: var(--orange); font-weight: 800; }

/* Cards & grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(242, 107, 29, .12); color: var(--orange); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 12px; }

/* Lists */
ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.6 4.4 10l-1.4 1.4L8 16.4l9-9L15.6 6z'/%3E%3C/svg%3E") center/14px no-repeat;
}
ul.crosses { list-style: none; padding: 0; }
ul.crosses li { padding-left: 28px; position: relative; margin-bottom: 10px; }
ul.crosses li::before { content: "✕"; position: absolute; left: 4px; color: var(--red); font-weight: 900; }

/* Timeline 3-7-15 */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr 1fr; } }
.step { background: var(--paper); border-radius: var(--radius); padding: 20px; border-top: 5px solid var(--orange); box-shadow: var(--shadow); }
.step .day { font-weight: 900; font-size: 1.6rem; color: var(--orange); }
.step h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Product box */
.product {
  background: var(--paper); color: var(--ink); border-radius: 18px; padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25); position: relative;
}
.product .badge { position: absolute; top: -14px; right: 20px; background: var(--orange); color: #fff; font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 14px; }
.price .now { font-size: 2.6rem; font-weight: 900; color: var(--navy); }
.price .was { text-decoration: line-through; color: var(--muted); font-size: 1.2rem; }
.mock {
  border-radius: 12px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px;
}
.mock div { background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 10px 6px; text-align: center; font-size: .72rem; line-height: 1.3; }
.mock b { display: block; font-size: 1.2rem; color: var(--orange); }

/* Calculator & forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field .hint { font-size: .82rem; color: var(--muted); }
input[type=number], input[type=email], input[type=text], select {
  width: 100%; padding: 14px 14px; border: 2px solid var(--line); border-radius: 10px; font-size: 1.05rem;
  font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--orange); }
input[type=range] { width: 100%; accent-color: var(--orange); }
.range-val { font-weight: 800; color: var(--orange); }
.result { border-radius: var(--radius); background: var(--navy); color: #fff; padding: 26px; text-align: center; }
.result .big { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 900; color: var(--orange); line-height: 1.1; margin: 6px 0; }
.result p { color: #cfd8e8; }
.consent { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.form-ok { display: none; background: #e9f7ef; color: var(--green); border-radius: 10px; padding: 14px; font-weight: 700; }

/* Checkout bump */
.bump {
  border: 3px dashed var(--orange); background: #fff8f2; border-radius: 14px; padding: 18px; margin: 18px 0; cursor: pointer;
  display: flex; gap: 14px; align-items: flex-start;
}
.bump input { width: 24px; height: 24px; accent-color: var(--orange); flex: none; margin-top: 2px; cursor: pointer; }
.bump .bump-title { font-weight: 850; color: var(--orange-d); }
.summary { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.summary .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.summary .total { font-weight: 900; font-size: 1.2rem; color: var(--navy); }

/* Steps progress (funnel) */
.progress { display: flex; gap: 6px; justify-content: center; margin: 0 0 28px; font-size: .78rem; flex-wrap: wrap; }
.progress span { padding: 6px 12px; border-radius: 999px; background: #ece7de; color: var(--muted); font-weight: 700; }
.progress span.on { background: var(--orange); color: #fff; }
.progress span.done { background: #dcefe3; color: var(--green); }

/* FAQ */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 750; cursor: pointer; color: var(--navy); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-weight: 900; color: var(--orange); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Guarantee */
.guarantee { display: flex; gap: 20px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 24px; }
.seal { flex: none; width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: .8rem; line-height: 1.15; border: 4px solid var(--orange); }
.seal b { font-size: 1.6rem; display: block; color: var(--orange); }
@media (max-width: 560px) { .guarantee { flex-direction: column; text-align: center; } }

/* Comparison table */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
.table th { background: var(--navy); color: #fff; }
.table td.r { text-align: right; font-weight: 700; white-space: nowrap; }
.table tr.total td { font-weight: 900; background: #fff8f2; color: var(--navy); }

/* Kit access area */
.dl { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.msg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.msg-head b { color: var(--navy); }
.tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: #eef1f7; color: var(--navy-2); margin-right: 8px; }
.tag.SMS { background: #e6f4ea; color: #1f6f3f; }
.tag.Email { background: #e7eefb; color: #24508f; }
.tag.WhatsApp { background: #e3f7ee; color: #127a4a; }
.tag.Vocal, .tag.Oral { background: #fdf0e6; color: #a2470c; }
.msg pre { white-space: pre-wrap; font-family: inherit; margin: 0; font-size: .95rem; color: var(--ink); }
.copy { background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 700; cursor: pointer; font-size: .82rem; flex: none; font-family: inherit; }
.copy.ok { background: var(--green); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; position: sticky; top: 60px; background: var(--cream); padding: 10px 0; z-index: 5; }
.tabs a { text-decoration: none; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--navy); }
.tabs a:hover { border-color: var(--orange); }

/* Footer */
footer { background: var(--navy); color: #9fb0cc; padding: 36px 0; font-size: .85rem; }
footer a { color: #cfd8e8; margin-right: 16px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  padding: 16px 18px; font-size: .88rem; display: none;
}
.cookie .row { display: flex; gap: 10px; margin-top: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie button { border: 0; border-radius: 8px; padding: 9px 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.cookie .yes { background: var(--navy); color: #fff; }
.cookie .no { background: #ece7de; color: var(--ink); }

/* Sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .25s;
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; padding: 14px; }
  body.has-sticky footer { padding-bottom: 96px; }
}

/* Legal pages */
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal { padding: 48px 0; }
.todo { background: #fff3cd; padding: 0 4px; border-radius: 4px; }

.hidden { display: none !important; }

.timeline.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .timeline.three { grid-template-columns: 1fr; } }
