/* Devis Peinture Var — feuille de style unique.
   Signature : un nuancier de teintes « du Var » (bleu volet, mimosa, lavande, olivier, ocre) utilisé comme repère visuel. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #1d2733;
  --muted: #546070;
  --chalk: #fbfaf6;
  --stone: #efebe2;
  --line: #d9d3c6;
  --volet: #24506e;
  --volet-deep: #173a52;
  --mimosa: #f2c230;
  --lavande: #8a83b8;
  --olive: #7f8f52;
  --ocre: #c98d3e;
  --ok: #1e7a46;
  --err: #b42318;
  --wrap: 70rem;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --r: 6px;
  --s0: 1.0625rem;
  --s1: 1.28rem;
  --s2: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --s3: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: var(--s0); line-height: 1.6; color: var(--ink); background: var(--chalk); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--volet); text-underline-offset: 3px; }
a:hover { color: var(--volet-deep); }
:focus-visible { outline: 3px solid var(--mimosa); outline-offset: 2px; }
p { margin: 0 0 1em; max-width: 66ch; }
h1, h2, h3 { font-weight: 750; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .55em; color: var(--ink); }
h1 { font-size: var(--s3); font-stretch: 85%; font-weight: 800; }
h2 { font-size: var(--s2); font-stretch: 88%; }
h3 { font-size: var(--s1); }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--stone { background: var(--stone); }
.section--volet { background: var(--volet); color: #e6eef4; }
.section--volet h2, .section--volet h3 { color: #fff; }
.section--volet a { color: var(--mimosa); }
.lead { font-size: var(--s1); line-height: 1.45; color: var(--muted); max-width: 58ch; }
.section--volet .lead { color: #c9d9e5; }
.skip { position: absolute; left: -999px; top: 0; background: var(--mimosa); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.notice { font-size: .95rem; color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .8rem 1.4rem; font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; border-radius: var(--r); cursor: pointer; transition: background-color .15s, color .15s; }
.btn--main { background: var(--volet); color: #fff; }
.btn--main:hover { background: var(--volet-deep); color: #fff; }
.btn--sun { background: var(--mimosa); color: var(--ink); }
.btn--sun:hover { background: #e2b01c; color: var(--ink); }
.btn--line { border-color: currentColor; color: var(--volet); background: transparent; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* En-tête */
.header { background: var(--chalk); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; font-stretch: 85%; letter-spacing: -.01em; }
.brand__chips { display: inline-flex; }
.brand__chips span { width: .62rem; height: 1.6rem; border-radius: 2px; margin-right: 2px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--mimosa); }
.header .btn { min-height: 2.6rem; padding: .5rem 1rem; font-size: .98rem; }
.menu-btn { background: none; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem .8rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.mnav { display: none; border-top: 1px solid var(--line); }
.mnav.open { display: block; }
.mnav ul { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.mnav a { display: block; padding: .8rem 0; text-decoration: none; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--stone); }
@media (min-width: 60rem) { .nav { display: block; } .menu-btn, .mnav, .mnav.open { display: none; } }

/* Héros : le nuancier des teintes du Var */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__fine { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.fan { position: relative; height: 17rem; max-width: 26rem; margin-inline: auto; width: 100%; }
.chip { position: absolute; bottom: 0; left: 50%; width: 8.2rem; height: 15rem; margin-left: -4.1rem; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 12px 24px rgba(29,39,51,.12); transform-origin: 50% 95%; padding: .5rem; display: flex; flex-direction: column; }
.chip i { display: block; flex: 1; border-radius: 4px; }
.chip b { display: block; font-size: .78rem; font-weight: 700; margin-top: .45rem; line-height: 1.15; }
.chip small { display: block; font-size: .7rem; color: var(--muted); }
.chip:nth-child(1) { transform: rotate(-24deg); }
.chip:nth-child(2) { transform: rotate(-12deg); }
.chip:nth-child(3) { transform: rotate(0deg); }
.chip:nth-child(4) { transform: rotate(12deg); }
.chip:nth-child(5) { transform: rotate(24deg); }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 7fr 5fr; } .fan { height: 22rem; } .chip { width: 10rem; height: 19rem; margin-left: -5rem; } }
@media (prefers-reduced-motion: no-preference) {
  .fan .chip { animation: fanout .7s cubic-bezier(.2,.8,.2,1) both; }
  .fan .chip:nth-child(1) { animation-delay: .05s; } .fan .chip:nth-child(2) { animation-delay: .1s; }
  .fan .chip:nth-child(4) { animation-delay: .1s; } .fan .chip:nth-child(5) { animation-delay: .05s; }
  @keyframes fanout { from { transform: rotate(0deg); opacity: .4; } }
}

/* Bande « mise en relation » (transparence) */
.relation { background: var(--stone); border-block: 1px solid var(--line); }
.relation ul { list-style: none; margin: 0; padding: 1.2rem 0; display: grid; gap: .8rem 2rem; }
.relation li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; line-height: 1.3; }
.relation li span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.dot { flex: none; width: .9rem; height: .9rem; border-radius: 2px; margin-top: .25rem; }
@media (min-width: 46rem) { .relation ul { grid-template-columns: repeat(3, 1fr); } }

/* Étapes : chaque étape a sa teinte */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.25rem 1.25rem 1.25rem; position: relative; overflow: hidden; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 4px; font-weight: 800; font-size: 1.25rem; margin-bottom: .8rem; background: var(--c, var(--mimosa)); color: var(--ink); }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.form-wrap .steps { grid-template-columns: 1fr; gap: .9rem; }
.section--volet .steps li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.section--volet .steps h3 { color: #fff; }
.section--volet .steps p { color: #c9d9e5; }

/* Prestations */
.svcs { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; border-top: 8px solid var(--c, var(--volet)); }
.svc p { color: var(--muted); }
.svc a { font-weight: 700; }
@media (min-width: 52rem) { .svcs { grid-template-columns: repeat(3, 1fr); } }

/* Zone */
.communes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.communes li { border: 1px solid var(--line); background: #fff; padding: .4rem .75rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.two { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .two { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.checks li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .75rem; height: .4rem; border-left: 3px solid var(--volet); border-bottom: 3px solid var(--volet); transform: rotate(-45deg); }

/* En-tête des pages intérieures */
.phero { padding-block: clamp(2.25rem, 6vw, 3.75rem); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--c, var(--volet)) 0 10px, transparent 10px); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .9rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--volet); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; }

/* Formulaire */
.form-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .form-wrap { grid-template-columns: 4fr 7fr; gap: 4rem; } }
.form { background: #fff; color: var(--ink); padding: clamp(1.25rem, 4vw, 2.25rem); border-radius: var(--r); border-top: 8px solid var(--mimosa); }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .form .row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label, .field legend { font-weight: 700; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); border: 1.5px solid #a9a395; border-radius: var(--r); padding: .75rem .85rem; background: #fff; width: 100%; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--mimosa); outline-offset: 0; border-color: var(--volet); }
.field [aria-invalid="true"] { border-color: var(--err) !important; }
.err { color: var(--err); font-size: .9rem; }
.hint { color: var(--muted); font-size: .9rem; }
.consent-line { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.consent-line input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--volet); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: .5rem; font-size: 1.12rem; }
.form__legal { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.form a, .section--volet .form a { color: var(--volet); }
.form__status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r); display: none; }
.form__status.is-error { display: block; background: #fdecea; color: var(--err); border-left: 4px solid var(--err); }
.form__status.is-ok { display: block; background: #e8f5ee; color: var(--ok); border-left: 4px solid var(--ok); }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumbs img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--r); }

/* Pied */
.footer { background: var(--ink); color: #b6c0cc; padding-block: 3rem 6rem; font-size: .98rem; }
.footer a { color: #e7ecf1; }
.footer__grid { display: grid; gap: 2rem; }
.footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .75rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .45rem; }
.footer__bottom { border-top: 1px solid #334050; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (min-width: 52rem) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } .footer { padding-bottom: 3rem; } }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--chalk); border-top: 1px solid var(--line); padding: .6rem var(--gut) calc(.6rem + env(safe-area-inset-bottom)); display: flex; gap: .5rem; }
.mbar .btn { flex: 1; }
@media (min-width: 60rem) { .mbar { display: none; } }

.consent { position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--volet); border-radius: var(--r); padding: 1.25rem; box-shadow: 0 10px 30px rgba(29,39,51,.18); }
.consent p { font-size: .95rem; margin-bottom: 1rem; }
.consent__btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.consent .btn { min-height: 2.6rem; padding: .5rem 1rem; font-size: .98rem; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.mt { margin-top: 2rem; }
.nav a.btn--main, .nav a.btn--main:hover { color: #fff; box-shadow: none; }
@media (max-width: 55.99rem) { .fan { height: 13rem; } .chip { width: 6.6rem; height: 12rem; margin-left: -3.3rem; } }
.mbar .btn { white-space: nowrap; padding-left: .75rem; padding-right: .75rem; } .mbar .btn--main { flex: 1.7; }
