/* Milybiz, landing creationsite.milybiz.fr */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bleu: #154782;
  --nuit: #0A3675;
  --moyen: #1A7DE7;
  --lien: #0F63BF;
  --cyan: #1ABFF3;
  --clair: #F3F7FB;
  --blanc: #FFFFFF;
  --encre: #14233A;
  --gris: #4A5B71;
  --trait: #CBD7E5;
  --erreur: #B42318;
  --erreur-fond: #FDF1F0;
  --alerte: #8A4B00;
  --alerte-fond: #FFF6E5;

  --r-s: 6px;
  --r-m: 10px;
  --wrap: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; color: var(--nuit); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }

a { color: var(--lien); text-underline-offset: .15em; }
a:hover { color: var(--nuit); }

:focus-visible { outline: 3px solid var(--moyen); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.wrap--narrow { max-width: 820px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--blanc); color: var(--nuit); padding: 8px 14px; border-radius: var(--r-s); z-index: 10; font-weight: 700; }
.skip:focus { top: 8px; }

.small { font-size: .94rem; color: var(--gris); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-s); border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--lien); color: var(--blanc); }
.btn--primary:hover { background: var(--nuit); color: var(--blanc); }
.btn--light { background: var(--blanc); color: var(--nuit); }
.btn--light:hover { background: var(--clair); color: var(--nuit); }
.btn--ghost { border-color: rgba(255,255,255,.75); color: var(--blanc); min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn--ghost:hover { background: var(--blanc); color: var(--nuit); }
.btn[aria-busy="true"] { opacity: .8; cursor: progress; }

/* En-tête */
.top { background: var(--bleu); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.top__logo img { width: 150px; }
@media (min-width: 720px) { .top__logo img { width: 200px; } }
.top :focus-visible, .hero :focus-visible { outline-color: var(--cyan); }

/* Hero */
.hero {
  background: var(--bleu);
  color: var(--blanc);
  padding: 24px 0 56px;
  border-bottom: 6px solid var(--cyan);
}
.hero h1 { color: var(--blanc); max-width: 16ch; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 48px 0 80px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}
.hero__lead { font-size: 1.15rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.hero__more { color: var(--blanc); font-weight: 700; }
.hero__more:hover { color: var(--blanc); text-decoration-thickness: 2px; }
.hero__note { font-size: .95rem; margin-top: 14px; color: #DCE7F5; }

/* Fiche devis */
.sheet {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  border-radius: var(--r-m);
  padding: 24px 22px 20px;
  box-shadow: 0 18px 40px rgba(5, 25, 60, .35);
  border-top: 8px solid var(--cyan);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) { .sheet { padding: 30px 30px 24px; } }
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-bottom: 14px; border-bottom: 2px solid var(--nuit); }
.sheet__title { font-weight: 800; font-size: 1.15rem; color: var(--nuit); }
.sheet__sub { font-size: .88rem; color: var(--gris); }
.sheet__lines { margin: 0; }
.line { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--trait); }
.line dt { flex: 1 1 auto; font-size: .97rem; }
.line dd { margin: 0; flex: 0 0 auto; font-weight: 700; color: var(--nuit); font-size: .95rem; white-space: nowrap; }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding: 14px 16px; background: var(--clair); border-radius: var(--r-s); }
.sheet__total span { font-weight: 700; }
.sheet__total strong { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.6rem); color: var(--nuit); font-weight: 900; white-space: nowrap; }
.sheet__ttc { text-align: right; font-size: .9rem; color: var(--gris); margin: 6px 0 12px; }
.sheet__opt { font-size: .92rem; color: var(--gris); margin: 0; padding-top: 12px; border-top: 1px solid var(--trait); }

/* Sections */
.section { padding: 64px 0; }
.band { padding: 64px 0; background: var(--clair); }
@media (min-width: 900px) { .section, .band { padding: 88px 0; } }
.intro { max-width: 40em; }

.split { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.4fr 1fr; gap: 32px; } }
.split__col { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-m); padding: 24px; }
.split__col--out { background: transparent; border-style: dashed; }
@media (min-width: 900px) { .split__col { padding: 32px; } }

.list { list-style: none; margin: 0 0 1em; padding: 0; }
.list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.list li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 18px; height: 18px; border-radius: 50%;
}
.list--yes li::before {
  background: var(--lien) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.list--no li::before { border: 2px solid var(--gris); width: 16px; height: 16px; top: .38em; }
.list--no li { color: var(--encre); }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 28px 64px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bleu); color: var(--blanc);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--trait); }
.steps h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--gris); max-width: 36em; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps li { padding: 60px 0 0; }
  .steps li:not(:last-child)::after { left: 50px; right: -18px; top: 20px; bottom: auto; width: auto; height: 2px; }
}

/* Formules */
.plans { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plan { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-m); padding: 24px; }
.plan--plus { border: 2px solid var(--lien); }
@media (min-width: 900px) { .plan { padding: 32px; } }
.plan h3 { font-size: 1.35rem; margin-bottom: .2em; }
.plan__price { color: var(--gris); margin-bottom: 18px; }
.plan__price strong { font-size: 1.5rem; color: var(--nuit); font-weight: 900; }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--trait); }
.faq details { border-bottom: 1px solid var(--trait); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; position: relative;
  font-weight: 750; color: var(--nuit); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--lien); border-bottom: 2.5px solid var(--lien);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { max-width: 42em; }
.faq details[open] { padding-bottom: 8px; }

/* Formulaire */
.band--form { border-top: 1px solid var(--trait); }
.form-grid { display: grid; gap: 32px; }
@media (min-width: 980px) {
  .form-grid { grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
  .form-aside { position: sticky; top: 24px; }
}
.form { max-width: 720px; }
.req { color: var(--erreur); font-weight: 800; }

.step {
  border: 1px solid var(--trait); border-radius: var(--r-m);
  background: var(--blanc);
  margin: 0 0 20px; padding: 20px 18px 8px;
  min-width: 0;
}
@media (min-width: 720px) { .step { padding: 28px 28px 12px; } }
.step > legend {
  float: left; width: 100%; padding: 0; margin: 0 0 20px;
  font-size: 1.25rem; font-weight: 800; color: var(--nuit);
  display: flex; align-items: center; gap: 12px;
}
.step > legend + * { clear: both; }
.step__n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--clair); color: var(--nuit); border: 2px solid var(--bleu);
  display: inline-grid; place-items: center; font-size: 1rem;
}

.field { margin: 0 0 22px; min-width: 0; }
fieldset.sub { border: 0; padding: 0; }
.field > label, .label { display: block; font-weight: 750; margin: 0 0 6px; color: var(--encre); font-size: 1rem; }
legend.label { padding: 0; float: left; width: 100%; }
legend.label + * { clear: both; }
.row { display: grid; gap: 0 18px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.row .field:first-child:has(#f-cp) { max-width: 100%; }
@media (min-width: 600px) { .row:has(#f-cp) { grid-template-columns: 9rem 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--encre);
  background: var(--blanc);
  border: 1.5px solid #8A9BB0; border-radius: var(--r-s);
  padding: 11px 13px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #5E6E83; opacity: 1; }
input:focus, textarea:focus { outline: none; border-color: var(--lien); box-shadow: 0 0 0 3px rgba(26, 125, 231, .35); }
[aria-invalid="true"] { border-color: var(--erreur) !important; background: var(--erreur-fond); }

.hint { font-size: .92rem; color: var(--gris); margin: 6px 0 0; }
.err { font-size: .95rem; color: var(--erreur); font-weight: 700; margin: 6px 0 0; }
.warn { font-size: .95rem; color: var(--alerte); background: var(--alerte-fond); border-radius: var(--r-s); padding: 10px 12px; margin: 10px 0 0; }

.choices { display: grid; gap: 8px; }
.choices--inline { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choices--grid { grid-template-columns: 1fr; }
@media (min-width: 600px) { .choices--grid { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--trait); border-radius: var(--r-s);
  background: var(--blanc); cursor: pointer; font-weight: 600; line-height: 1.3;
}
.choice:hover { border-color: var(--lien); }
.choice:has(input:checked) { border-color: var(--lien); background: #EAF2FC; }
.choice:has(input:focus-visible) { outline: 3px solid var(--moyen); outline-offset: 2px; }
.choice input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--lien); }
.choice--fixed { cursor: default; color: var(--gris); background: var(--clair); }
.choice--fixed:hover { border-color: var(--trait); }
.field.is-invalid .choice { border-color: var(--erreur); }

.cond { border-left: 3px solid var(--clair); padding-left: 16px; margin-left: 2px; }
.cond[hidden] { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy { font-size: .92rem; color: var(--gris); max-width: 46em; margin: 8px 0 20px; }
.submit .btn { width: 100%; }
@media (min-width: 600px) { .submit .btn { width: auto; min-width: 320px; } }
.err--form { margin-top: 12px; }

/* Pied de page */
.foot { background: var(--nuit); color: #DCE7F5; padding: 40px 0; font-size: .95rem; }
.foot__in { display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .foot__in { grid-template-columns: auto 1fr auto auto; gap: 40px; } }
.foot p { margin: 0; }
.foot a { color: var(--blanc); }
.foot a:hover { color: var(--cyan); }
.foot img { width: 140px; }

/* Page merci et erreur */
.page { padding: 56px 0 80px; }
.page h1 { color: var(--nuit); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); max-width: 20ch; }
.page .box { background: var(--clair); border-radius: var(--r-m); padding: 24px; max-width: 40em; margin: 24px 0; }
.page ul { padding-left: 1.2em; }

/* Mentions légales */
.legal { max-width: 820px; }
.legal__date { color: var(--gris); font-size: .95rem; }
.legal section { padding: 28px 0 8px; border-top: 1px solid var(--trait); margin-top: 20px; }
.legal h2 { font-size: 1.35rem; }
.legal__id { display: grid; grid-template-columns: 1fr; gap: 2px 24px; margin: 0 0 1em; }
.legal__id dt { font-weight: 750; color: var(--nuit); margin-top: 10px; }
.legal__id dd { margin: 0; }
@media (min-width: 640px) {
  .legal__id { grid-template-columns: 13rem 1fr; }
  .legal__id dt, .legal__id dd { margin-top: 0; padding: 6px 0; border-bottom: 1px dashed var(--trait); }
}
.todo { color: var(--erreur); font-weight: 800; }
.plans__note { margin-top: 20px; max-width: 46em; }

/* Mises à jour du 25/10 : astérisque prix, intro du formulaire, détails des formules, exemples */
.hero__star { color: var(--cyan); text-decoration: none; font-size: .55em; vertical-align: super; line-height: 0; margin-left: .08em; }
.hero__star:hover { color: var(--blanc); }
#prix-note { font-size: .88rem; margin-top: 6px; }

.step__intro { background: var(--clair); border-radius: var(--r-s); padding: 14px 16px; margin: 0 0 22px; color: var(--encre); }
.choice__detail { display: block; font-weight: 500; font-size: .92rem; color: var(--gris); margin-top: 2px; }

.section + .section, .band + .band { border-top: 1px solid var(--trait); }

.examples { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 760px) { .examples { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.example { margin: 0; }
.example__frame {
  position: relative; border: 1px solid var(--trait); border-radius: var(--r-m);
  overflow: hidden; background: var(--clair);
  box-shadow: 0 10px 24px rgba(10, 54, 117, .12);
  padding-top: 22px;
}
.example__frame::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px;
  background: #E3EAF3;
  background-image: radial-gradient(circle at 12px 11px, #B9C6D6 4px, transparent 5px),
                    radial-gradient(circle at 26px 11px, #B9C6D6 4px, transparent 5px),
                    radial-gradient(circle at 40px 11px, #B9C6D6 4px, transparent 5px);
}
.example__frame img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.example__badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  background: var(--nuit); color: var(--blanc);
  font-size: .8rem; font-weight: 800; padding: 5px 10px; border-radius: var(--r-s);
}
.example figcaption { margin-top: 12px; font-size: .97rem; color: var(--gris); }
.example figcaption strong { display: block; color: var(--nuit); font-size: 1.05rem; }
