/* AssurExport · feuille de style */
/* Polices hébergées sur le site (aucun appel à des serveurs tiers) */
@font-face { font-family: "Gloock"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/gloock_400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/plex_sans_400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/plex_sans_500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/plex_sans_600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/plex_cond_500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/plex_cond_600.woff2") format("woff2"); }

:root {
  --ink: #16233A;
  --ink-soft: #3E4C61;
  --paper: #F5F7F2;
  --white: #FFFFFF;
  --certif: #E2ECD8;
  --certif-deep: #CFDDC2;
  --stamp: #2E6A4E;
  --stamp-dark: #22503B;
  --line: #C8D2C1;
  --gold: #C9A84C;
  --alert: #A23B2A;
  --radius-s: 6px;
  --radius-m: 12px;
  --shadow: 0 1px 0 rgba(22, 35, 58, .06), 0 12px 32px rgba(22, 35, 58, .10);
  --display: "Gloock", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--stamp-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* En tête */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-size: 1.6rem; letter-spacing: .01em; }
.brand-by { font-size: .82rem; color: var(--ink-soft); }
.brand-by b { color: #8A7230; font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 18px; }
.head-tel { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
@media (max-width: 640px) { .head-tel, .brand-by { display: none; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--sans);
  padding: 14px 22px; border-radius: var(--radius-s);
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--white);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--stamp-dark); border-color: var(--stamp-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-small { padding: 10px 16px; font-size: .92rem; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.02;
  letter-spacing: -.01em; margin: 0 0 22px; max-width: 13ch;
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Le certificat (élément signature) */
.certif {
  position: relative;
  background:
    repeating-radial-gradient(circle at 85% 20%, transparent 0 9px, rgba(46, 106, 78, .07) 9px 10px),
    var(--certif);
  border: 1px solid var(--certif-deep);
  border-radius: var(--radius-m);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.certif-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.certif-title { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; margin: 0; }
.certif-ref { font-family: var(--cond); font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.certif dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 20px; font-size: .95rem; }
.certif dt { color: var(--ink-soft); }
.certif dd { margin: 0; font-weight: 600; }
.codes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.codes span {
  font-family: var(--cond); font-weight: 500; font-size: .82rem; text-align: center;
  padding: 6px 0; border: 1px solid var(--certif-deep); background: rgba(255, 255, 255, .45);
  border-radius: 3px; color: var(--ink-soft);
}
.codes span.on { background: var(--stamp); color: var(--white); border-color: var(--stamp); }
.codes-cap { font-size: .78rem; color: var(--ink-soft); margin: 8px 0 0; }
.stamp {
  position: absolute; right: 26px; top: 96px;
  font-family: var(--cond); font-weight: 600; font-size: 1.05rem; letter-spacing: .12em;
  color: var(--stamp); border: 2.5px solid var(--stamp); border-radius: 6px;
  padding: 6px 12px; transform: rotate(-9deg); opacity: .9; background: rgba(226, 236, 216, .7);
}
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp-in .5s cubic-bezier(.2, 1.4, .4, 1) .7s both; }
  @keyframes stamp-in {
    from { transform: rotate(-9deg) scale(1.9); opacity: 0; }
    to { transform: rotate(-9deg) scale(1); opacity: .9; }
  }
}
@media (max-width: 520px) { .codes { grid-template-columns: repeat(6, 1fr); } .certif { transform: none; } }

/* Sections */
section.block { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.block h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; margin: 0 0 14px; max-width: 22ch;
}
.block .intro { color: var(--ink-soft); max-width: 60ch; margin: 0 0 40px; }

/* Formules : deux colonnes au contenu différent */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--white); }
.offer { padding: clamp(24px, 3.5vw, 40px); }
.offer + .offer { border-left: 1px solid var(--line); background: var(--certif); }
.offer h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 0 0 6px; }
.offer .for { color: var(--ink-soft); margin: 0 0 20px; }
.offer ul { margin: 0 0 26px; padding: 0; list-style: none; }
.offer li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; }
.offer li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 6px;
  border-left: 2px solid var(--stamp); border-bottom: 2px solid var(--stamp); transform: rotate(-45deg);
}
@media (max-width: 800px) {
  .offers { grid-template-columns: 1fr; }
  .offer + .offer { border-left: 0; border-top: 1px solid var(--line); }
}

/* Étapes : vraie séquence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 12px; color: var(--stamp); }
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Documents à préparer */
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.doclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doclist li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doclist small { display: block; color: var(--ink-soft); font-size: .9rem; }
.tag { font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; align-self: start; white-space: nowrap; }
.tag-req { background: var(--ink); color: var(--white); }
.tag-opt { background: var(--certif); color: var(--stamp-dark); }
@media (max-width: 800px) { .docs-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--stamp); }
.faq details[open] summary::after { content: "×"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 66ch; }

/* Bandeau final */
.cta-band { background: var(--ink); color: var(--white); padding: clamp(48px, 7vw, 80px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0; max-width: 20ch; }
.cta-band .btn { background: var(--certif); color: var(--ink); border-color: var(--certif); }
.cta-band .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Pied de page */
.site-foot { background: #0F1828; color: #B9C3D1; font-size: .88rem; padding: 40px 0 28px; }
.site-foot a { color: #E2ECD8; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-foot h4 { color: var(--white); font-size: .95rem; margin: 0 0 10px; }
.site-foot p { margin: 0 0 6px; }
.foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid #26324A; font-size: .8rem; color: #8E9AAD; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ========== Page devis ========== */
.devis-page { padding: clamp(28px, 5vw, 56px) 0 80px; }
.devis-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; margin: 0 0 10px; }
.devis-head p { color: var(--ink-soft); margin: 0 0 32px; max-width: 60ch; }
.devis-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.progress { position: sticky; top: 92px; list-style: none; margin: 0; padding: 0; counter-reset: p; }
.progress li { counter-increment: p; display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--ink-soft); font-size: .95rem; }
.progress li::before {
  content: counter(p); flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--line); font-weight: 600; font-size: .85rem; background: var(--white);
}
.progress li.done { color: var(--ink); }
.progress li.done::before { content: "✓"; background: var(--stamp); border-color: var(--stamp); color: var(--white); }
.progress li.current { color: var(--ink); font-weight: 600; }
.progress li.current::before { border-color: var(--ink); background: var(--ink); color: var(--white); }
@media (max-width: 860px) {
  .devis-layout { grid-template-columns: 1fr; }
  .progress { position: static; display: flex; gap: 6px; overflow: hidden; }
  .progress li { flex: 1; padding: 0; font-size: 0; gap: 0; }
  .progress li::before { width: 100%; height: 6px; border-radius: 3px; font-size: 0; content: ""; border: 0; background: var(--line); }
  .progress li.done::before, .progress li.current::before { content: ""; background: var(--stamp); }
  .progress li.current::before { background: var(--ink); }
}
.mobile-step { display: none; font-size: .9rem; color: var(--ink-soft); margin: 10px 0 0; }
@media (max-width: 860px) { .mobile-step { display: block; } }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(20px, 3.5vw, 40px); }
.step { display: none; }
.step.active { display: block; }
.step h2 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; margin: 0 0 6px; }
.step .hint { color: var(--ink-soft); margin: 0 0 28px; }
.step h3 { font-size: 1.05rem; margin: 32px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--stamp); box-shadow: 0 0 0 3px rgba(46, 106, 78, .18); }
.field .help { font-size: .85rem; color: var(--ink-soft); margin: 6px 0 0; }
.field .err { display: none; font-size: .86rem; color: var(--alert); margin: 6px 0 0; font-weight: 500; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--alert); }
.field.invalid .err { display: block; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: block; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  cursor: pointer; background: var(--white); height: 100%; transition: border-color .15s, background .15s;
}
.choice span b { display: block; font-size: 1rem; }
.choice span small { color: var(--ink-soft); font-size: .86rem; line-height: 1.4; display: block; margin-top: 2px; }
.choice input:checked + span { border-color: var(--stamp); background: var(--certif); box-shadow: inset 0 0 0 1px var(--stamp); }
.choice input:focus-visible + span { outline: 3px solid var(--stamp); outline-offset: 2px; }
.field.invalid .choice span { border-color: var(--alert); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--stamp); }

.cond { display: none; }
.cond.show { display: block; }
.grid .cond.show { display: block; }

.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.nav-row .spacer { flex: 1; }

/* Dépôt de documents */
.drop {
  border: 1.5px dashed var(--line); border-radius: var(--radius-s); padding: 16px; background: var(--paper);
  transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--stamp); background: var(--certif); }
.drop-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.drop-top b { display: block; }
.drop-top small { color: var(--ink-soft); font-size: .86rem; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.files { list-style: none; margin: 10px 0 0; padding: 0; }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); margin-top: 6px; font-size: .9rem; }
.files li .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li .fsize { color: var(--ink-soft); font-size: .82rem; white-space: nowrap; }
.files li button { border: 0; background: none; color: var(--alert); cursor: pointer; font: inherit; font-size: .85rem; padding: 4px; }
.docs-stack { display: grid; gap: 12px; }
.field.invalid .drop { border-color: var(--alert); }
.budget { margin-top: 18px; font-size: .88rem; color: var(--ink-soft); }
.budget .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.budget .bar i { display: block; height: 100%; width: 0; background: var(--stamp); transition: width .2s; }
.budget.full .bar i { background: var(--alert); }

/* Récapitulatif */
.recap { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.recap h4 { margin: 0; padding: 10px 14px; background: var(--certif); font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.recap h4 button { font: inherit; font-size: .85rem; border: 0; background: none; color: var(--stamp-dark); text-decoration: underline; cursor: pointer; }
.recap dl { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; margin: 0; font-size: .93rem; }
.recap dt, .recap dd { padding: 7px 14px; border-top: 1px solid var(--line); margin: 0; }
.recap dt { color: var(--ink-soft); }
.recap + .recap { margin-top: 12px; }

.form-alert { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-s); background: #F8E7E3; color: var(--alert); font-size: .95rem; }
.form-alert.show { display: block; }

.done-box { text-align: left; }
.done-box .ref { font-family: var(--cond); font-size: 1.1rem; background: var(--certif); display: inline-block; padding: 6px 12px; border-radius: var(--radius-s); margin: 8px 0 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Page texte */
.prose { max-width: 760px; padding: clamp(32px, 6vw, 64px) 0 80px; }
.prose h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 24px; }
.prose h2 { font-size: 1.2rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
[tabindex="-1"]:focus { outline: none; }
@media (max-width: 520px) {
  .stamp { top: 16px; right: 16px; font-size: .9rem; }
  .certif-ref { visibility: hidden; }
}

.prose h3 { font-size: 1.02rem; margin: 22px 0 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0 18px; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.prose th { color: var(--ink); background: var(--certif); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }
.privacy-note { margin-top: 18px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.privacy-note p { margin: 0 0 6px; }
.privacy-note p:last-child { margin: 0; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--stamp-dark); text-decoration: underline; cursor: pointer; }

.field label.check { font-weight: 400; font-size: .95rem; }

/* Grille tarifaire */
.tarifs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.tarifs li { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--white); }
.tarifs li:nth-child(5n) { border-right: 0; }
.t-dur { font-size: .92rem; color: var(--ink-soft); }
.t-price { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; color: var(--ink); }
.tarifs li:nth-last-child(-n+2) .t-price { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--stamp-dark); padding-top: 8px; }
.tarifs-note { font-size: .88rem; color: var(--ink-soft); margin: 0 0 26px; }
@media (max-width: 760px) {
  .tarifs { grid-template-columns: repeat(2, 1fr); }
  .tarifs li:nth-child(5n) { border-right: 1px solid var(--line); }
  .tarifs li:nth-child(2n) { border-right: 0; }
}

/* Étapes sans numéros */
.steps { grid-template-columns: repeat(4, 1fr); list-style: none; }
.steps li::before { content: none; }
.steps h3 { margin-top: 4px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.classic-note { margin: 22px 0 0; padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--white); color: var(--ink-soft); }
.classic-note a { font-weight: 600; }
