/* =====================================================================
   Landing OXIWIZ - Offre artisans, indépendants, TPE
   Charte : toutes les valeurs de marque sont regroupées ci-dessous.
   Couleurs relevées sur oxiwiz.fr (violet #7C77E1, jaune #E9CE33,
   gris #F6F6F6, arrondis 20px, titres 40px / 25px en mobile, graisse 700).
   ===================================================================== */
:root {
  --font: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --violet: #7C77E1;
  --violet-deep: #673AB7;
  --yellow: #E9CE33;
  --yellow-dark: #d8bd1f;
  --black: #000000;
  --text: #2b2b33;
  --muted: #62626e;
  --grey: #F6F6F6;
  --line: #e6e8ee;
  --white: #ffffff;
  --error: #c62828;
  --success: #1e7d46;

  --radius: 20px;
  --radius-sm: 12px;
  --pill: 50px;
  --shadow: 0 18px 40px -22px rgba(60, 40, 130, .45);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--black); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: 30px; }
h2 { font-size: 25px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
a { color: var(--violet-deep); }
abbr[title] { text-decoration: none; color: var(--violet-deep); }
small { font-weight: 400; color: var(--muted); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--black); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  padding: 15px 30px; border: 0; border-radius: var(--pill); cursor: pointer;
  background: var(--violet-deep); color: #fff;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #5a31a3; }
.btn--accent { background: var(--yellow); color: var(--black); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.btn--accent:hover { background: var(--yellow-dark); }
.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; font-size: 17px; padding: 17px 24px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link { font-weight: 600; }
.link-light { color: #fff; font-weight: 500; text-underline-offset: 4px; }

.pill {
  display: inline-block; margin: 0 0 18px; padding: 6px 16px;
  background: var(--yellow); color: var(--black);
  border-radius: var(--pill); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.eyebrow { margin: 0 0 10px; color: var(--violet-deep); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.header__logo img { height: 40px; width: auto; }
.header__logo { font-weight: 700; font-size: 22px; color: var(--black); text-decoration: none; }
.header__partner { margin: 0 auto 0 0; padding-left: 16px; border-left: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.3; }
.header__partner strong { color: var(--black); }
.header .btn { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 10px; }
.hero__panel {
  display: grid; gap: 28px;
  padding: 32px 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--violet-deep) 0%, var(--violet) 100%);
  color: #fff;
}
.hero h1 { color: #fff; }
.hero .hl { color: var(--yellow); white-space: nowrap; }
.hero__lead { font-size: 17px; max-width: 34em; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

.price { background: #fff; color: var(--text); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); align-self: center; }
.price__label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-deep); }
.price__value { margin: 4px 0 6px; font-size: 56px; font-weight: 700; line-height: 1.1; color: var(--black); }
.price__value span { font-size: 18px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.price__compare { font-size: 14px; color: var(--muted); padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.price__compare s { color: var(--text); font-weight: 600; white-space: nowrap; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ticks--light li { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--grey { background: var(--grey); }
.section--violet { background: linear-gradient(160deg, var(--violet-deep) 0%, var(--violet) 100%); color: #fff; }
.section--violet h2 { color: #fff; }
.section__head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section__head p:last-child { margin-bottom: 0; color: var(--muted); }

.grid { display: grid; gap: 20px; }

.card { position: relative; background: var(--grey); border-radius: var(--radius); padding: 28px 24px 22px; }
.card__num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--violet); color: #fff; font-weight: 700;
}
.card p, .feature p { margin: 0; color: var(--muted); font-size: 15px; }

.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.feature:hover { border-color: var(--violet); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 16px; background: var(--violet); color: #fff; }
.feature__icon svg, .compare__arrow svg, .captcha svg, .success__icon svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Partenariat */
.partner, .about, .action { display: grid; gap: 32px; align-items: center; }
.partner__box { background: #fff; border-radius: var(--radius); padding: 28px 26px; border-top: 6px solid var(--yellow); }
.partner__box h3 { margin-bottom: 16px; }

/* Comparatif de prix */
.compare {
  display: grid; gap: 14px; align-items: center; text-align: center;
  margin-top: 32px; padding: 30px 24px; border-radius: var(--radius); background: var(--violet); color: #fff;
}
.compare__label { margin: 0 0 4px; font-size: 14px; font-weight: 500; }
.compare__old { margin: 0; font-size: 26px; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; opacity: .9; }
.compare__new { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.1; color: var(--yellow); }
.compare__new span { font-size: 18px; font-weight: 500; color: #fff; }
.compare__arrow { justify-self: center; transform: rotate(90deg); }
.compare__note { margin: 6px 0 0; font-weight: 600; }

.notice { margin-top: 20px; padding: 24px 26px; border-radius: var(--radius); background: var(--grey); }
.notice h3 { font-size: 16px; }
.notice ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

/* Agence */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li { background: #fff; border-radius: var(--radius); padding: 20px 24px; border-left: 6px solid var(--violet); }
.stats strong { display: block; font-size: 26px; line-height: 1.2; color: var(--black); }
.stats span { color: var(--muted); font-size: 15px; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li > span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--yellow); color: var(--black); font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Formulaire ---------- */
.action { align-items: start; }
.action__alt { margin: 22px 0 0; }
.action__alt a { color: #fff; font-weight: 600; white-space: nowrap; }

.formbox { background: #fff; color: var(--text); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); }
.row { display: grid; gap: 0 16px; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--black); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 119, 225, .22); }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--error); }
.field__error { margin: 5px 0 0; font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 0 10px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet-deep); }
.check .field__error { grid-column: 2; }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; background: #fdecec; color: var(--error); }
.form__legal { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.success { text-align: center; padding: 40px 10px; }
.success__icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: 50%; background: var(--yellow); color: var(--black); }
.success__icon svg { width: 34px; height: 34px; stroke-width: 2.4; }
.success h3 { font-size: 22px; }
.success p { color: var(--muted); margin: 0; }

/* ---------- Captcha puzzle ---------- */
.captcha { margin: 20px 0; padding: 16px; border-radius: var(--radius); background: var(--grey); }
.captcha__title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--black); }
.captcha__stage, .captcha__track { position: relative; width: 100%; max-width: 320px; margin: 0 auto; }
.captcha__stage { aspect-ratio: 2 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--violet); user-select: none; }
.captcha__bg { width: 100%; height: 100%; }
.captcha__piece { position: absolute; left: 0; top: 0; width: 16.875%; height: auto; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); will-change: transform; pointer-events: none; }
.captcha__bg:not([src]), .captcha__piece:not([src]) { visibility: hidden; }
.captcha__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; background: rgba(103, 58, 183, .88); color: #fff; font-size: 14px; font-weight: 500; }
.captcha__overlay[hidden] { display: none; }
.captcha__reload { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--black); cursor: pointer; }
.captcha__reload svg { width: 18px; height: 18px; }

.captcha__track { height: 48px; margin-top: 10px; border-radius: var(--pill); background: #fff; border: 1.5px solid var(--line); touch-action: none; }
.captcha__hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 40px; font-size: 13px; color: var(--muted); pointer-events: none; transition: opacity .2s ease; }
.captcha__handle {
  position: absolute; left: 0; top: -1.5px; width: 16.875%; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--pill); background: var(--violet-deep); color: #fff; cursor: grab; touch-action: none; will-change: transform;
}
.captcha__handle svg { width: 22px; height: 22px; stroke-width: 2.2; }
.captcha.is-dragging .captcha__handle { cursor: grabbing; }
.captcha.is-dragging .captcha__hint, .captcha.is-solved .captcha__hint { opacity: 0; }
.captcha.is-returning .captcha__handle, .captcha.is-returning .captcha__piece { transition: transform .35s ease; }
.captcha.is-error .captcha__track { border-color: var(--error); animation: shake .35s; }
.captcha.is-solved .captcha__handle { background: var(--success); cursor: default; }
.captcha.is-solved .captcha__track { border-color: var(--success); }
.captcha.is-solved .captcha__reload, .captcha.is-solved .captcha__help { display: none; }
.captcha__help { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.captcha__msg { margin: 8px 0 0; min-height: 1.5em; font-size: 13px; font-weight: 600; text-align: center; }
.captcha.is-error .captcha__msg { color: var(--error); }
.captcha.is-solved .captcha__msg { color: var(--success); }

@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- Pied de page ---------- */
.footer { padding: 36px 0 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__in { display: grid; gap: 20px; }
.footer img { height: 36px; width: auto; margin-bottom: 10px; }
.footer p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer__links a:hover { color: var(--violet-deep); text-decoration: underline; }
.footer__note { margin-top: 22px !important; padding-top: 18px; font-size: 12.5px; }

/* ---------- Tablette et ordinateur ---------- */
@media (min-width: 600px) {
  .row { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .header .btn { display: inline-flex; }
  .formbox { padding: 32px; }
  .hero__panel { padding: 44px 36px; }
}

@media (min-width: 960px) {
  h1 { font-size: 44px; }
  h2 { font-size: 40px; }
  h3 { font-size: 20px; }
  .section { padding: 88px 0; }
  .section__head { margin-bottom: 52px; }
  .header__logo img { height: 46px; }
  .header__in { min-height: 80px; }
  .hero { padding: 28px 0 20px; }
  .hero__panel { grid-template-columns: 1.35fr 1fr; gap: 48px; padding: 64px 56px; background: linear-gradient(110deg, var(--violet-deep) 0%, var(--violet) 100%); }
  .hero__lead { font-size: 19px; }
  .grid--3, .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .partner, .about { grid-template-columns: 1.3fr 1fr; gap: 64px; }
  .action { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .action__text { position: sticky; top: 110px; }
  .compare { grid-template-columns: 1fr auto 1fr; padding: 38px 40px; }
  .compare__arrow { transform: none; }
  .compare__note { grid-column: 1 / -1; }
  .footer__in { grid-template-columns: 1fr auto; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

section[id] { scroll-margin-top: 72px; }

/* ---------- Exemple de réalisation (captures dans un cadre de navigateur) ---------- */
.header__partner strong { display: block; }
.showcase { max-width: 1040px; margin: 0 auto; }
.showcase__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.showcase__tab {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 20px; border-radius: var(--pill); border: 1.5px solid var(--line);
  background: #fff; color: var(--text); transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.showcase__tab:hover { border-color: var(--violet); }
.showcase__tab.is-active { background: var(--violet-deep); border-color: var(--violet-deep); color: #fff; }

.browser { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; flex: none; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__dots i:first-child { background: var(--violet); }
.browser__dots i:nth-child(2) { background: var(--yellow); }
.browser__url { flex: 1; min-width: 0; padding: 5px 14px; border-radius: var(--pill); background: var(--grey); color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__view { height: min(62vh, 420px); overflow-y: auto; overscroll-behavior: auto; background: var(--grey); -webkit-overflow-scrolling: touch; }
.browser__view[hidden] { display: none; }
.browser__view img { width: 100%; height: auto; }
.browser__view:focus-visible { outline-offset: -3px; }
.showcase__hint { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.showcase__after { margin-top: 44px; align-items: start; }
.showcase__after h3 { margin-bottom: 16px; }
.showcase__note { margin: 18px 0 22px; font-size: 14px; color: var(--muted); }

@media (min-width: 960px) {
  .browser__view { height: 600px; }
}

@media (max-width: 599px) {
  .price__value { font-size: 40px; white-space: nowrap; }
  .price__value span { font-size: 16px; }
}

@media (min-width: 600px) { .row--single { grid-template-columns: 1fr; } }
