/* Maçon du Dimanche · formato «Le devis barré» (elegido por Fabri el 13/11): kraft, papel de presupuesto, tinta, sello verde. */
:root { --enc: #1F2A33; --rouge: #C8361D; --vert: #286F49; --kraft: #B9946A; --kraft-c: #D7BC93; --pap: #FFFDF6; --jaune: #FFD24A; --gris: #6E675B; }
* { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
::selection { background: var(--jaune); color: var(--enc); }
a:focus-visible, summary:focus-visible, [role=button]:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }
.sec-kraft a:focus-visible, .sec-kraft summary:focus-visible, .sec-kraft [role=button]:focus-visible { outline-color: var(--enc); }
body { font-family: 'Archivo', system-ui, sans-serif; color: var(--enc); background: var(--kraft);
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px); background-size: 7px 7px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.envol { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
em { font-style: normal; }

/* banda */
.bandeau { position: sticky; top: 0; z-index: 20; background: var(--enc); color: #F2E6D2; }
.bandeau .envol { display: flex; justify-content: space-between; align-items: center; height: 54px; }
.marque { font-weight: 900; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.marque b { color: var(--jaune); }
.bandeau-cta { background: #00b042; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 12px; }

/* presupuesto */
.devis { background: var(--pap); border-radius: 8px; padding: 20px 18px 32px; box-shadow: 0 10px 24px rgba(40,25,10,.32); position: relative; font-family: 'Courier Prime', monospace; }
.devis:before { content: ''; position: absolute; left: 0; right: 0; top: -6px; height: 10px; background: repeating-linear-gradient(90deg, var(--pap) 0 8px, transparent 8px 12px); }
.dh { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--enc); padding-bottom: 8px; margin-bottom: 10px; gap: 10px; }
.dh b { font-family: 'Archivo'; font-weight: 900; font-size: 24px; letter-spacing: .06em; }
.dh span { font-size: 12px; text-align: right; line-height: 1.3; }
.ligne { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 8px 0; border-bottom: 1px dashed #cfc6b4; position: relative; }
.ligne span:last-child { font-weight: 700; white-space: nowrap; }
.raye .ligne:after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 2.5px; background: var(--rouge); transform: rotate(-1.5deg); border-radius: 2px; }
.src { font-size: 12px; color: var(--gris); margin-top: 8px; line-height: 1.35; }
.src a { color: var(--gris); }
.tampon { position: absolute; right: 8px; bottom: -30px; transform: rotate(-12deg); border: 4px solid var(--vert); color: var(--vert); border-radius: 12px; padding: 6px 12px;
  font-family: 'Archivo'; font-weight: 900; text-align: center; font-size: 15px; line-height: 1.05; background: rgba(255,253,246,.92); }
.tampon b { display: block; font-size: 32px; }

/* inicio */
.inicio { padding: 16px 0 30px; }
.inicio-grid { display: grid; gap: 22px; }
.inicio-devis .devis { transform: rotate(-1deg); margin-bottom: 18px; padding-bottom: 54px; }
h1 { font-weight: 900; font-size: clamp(31px, 8.4vw, 52px); line-height: 1.02; color: var(--enc); letter-spacing: -.015em; text-wrap: balance; }
h1 em, h2 em { background: var(--jaune); color: var(--enc); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 4px; }
.sous { color: var(--enc); font-size: 17px; margin: 10px 0 0; max-width: 34em; }
.photo { margin: 18px 0 12px; border-radius: 18px; overflow: hidden; border: 5px solid var(--pap); box-shadow: 0 8px 18px rgba(0,0,0,.25); position: relative; }
.photo img { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; }
.photo figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--enc); color: #fff; font-weight: 800; font-size: 12.5px; padding: 6px 10px; border-radius: 9px; }
.prix { display: flex; align-items: center; gap: 14px; background: var(--pap); border-radius: 16px; padding: 12px 16px; margin: 12px 0; }
.prix b { white-space: nowrap; font-size: 42px; font-weight: 900; color: var(--rouge); line-height: 1; }
.prix span { font-size: 14px; line-height: 1.35; font-weight: 700; }
.prix s { color: var(--gris); }
.cta { display: block; background: #00b042; color: #fff; text-align: center; font-weight: 900; font-size: 19px; padding: 18px; border-radius: 16px;
  box-shadow: 0 5px 0 #00862f; text-decoration: none; transition: transform .1s; font-family: 'Archivo', system-ui, sans-serif; }
.cta:active { transform: translateY(3px); box-shadow: 0 2px 0 #00862f; }
.micro { text-align: center; font-size: 13px; color: var(--enc); margin-top: 10px; font-weight: 700; }

/* cinta de obra */
.cinta { background: repeating-linear-gradient(-45deg, var(--jaune) 0 22px, var(--enc) 22px 44px); padding: 8px 0; }
.cinta p { background: var(--jaune); margin: 0 auto; max-width: 1060px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 10px 12px;
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.cinta b { font-size: 20px; }
.cinta i { width: 6px; height: 6px; border-radius: 50%; background: var(--enc); align-self: center; }

/* secciones */
.sec { padding: 40px 0; }
.sec h2 { font-weight: 900; font-size: clamp(26px, 6.6vw, 40px); line-height: 1.07; letter-spacing: -.01em; margin-bottom: 14px; color: var(--enc); text-wrap: balance; }
.sec .intro { color: var(--enc); font-size: 16.5px; margin-bottom: 18px; max-width: 640px; }
.eti { display: inline-block; background: var(--enc); color: var(--jaune); font-weight: 900; font-size: 12px; letter-spacing: .14em; padding: 6px 12px; border-radius: 8px; margin-bottom: 12px; }
.sec-sombre { background: var(--enc); }
.sec-kraft { background: var(--kraft-c); }
.sec-kraft h2, .sec-kraft .intro { color: var(--enc); text-shadow: none; }
.sec-kraft .eti { background: var(--rouge); color: #fff; }
.t-clair { color: #FFF8EC; }

/* bon d'intervention */
.bon { background: var(--pap); border-radius: 14px; padding: 18px 18px 20px; box-shadow: 0 8px 20px rgba(40,25,10,.3); max-width: 720px; margin: 0 auto; }
.bon-h { display: flex; justify-content: space-between; font-family: 'Courier Prime', monospace; font-size: 12px; font-weight: 700; border-bottom: 2px solid var(--enc); padding-bottom: 8px; margin-bottom: 14px; }
.bon h2 { color: var(--enc); text-shadow: none; }
.cases { list-style: none; }
.cases li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #d7cdb9; font-size: 16px; }
.cases li i { width: 26px; height: 26px; border: 2.5px solid var(--enc); border-radius: 6px; position: relative; margin-top: 1px; }
.cases li i:after { content: ''; position: absolute; left: 7px; top: 1px; width: 7px; height: 14px; border: solid var(--rouge); border-width: 0 3.5px 3.5px 0; transform: rotate(40deg); }
.cases b { color: var(--rouge); }
.bon-pied { margin-top: 14px; font-weight: 800; font-size: 16px; }

/* ganancias */
.gains { display: grid; gap: 12px; }
.gains article { background: #283642; border: 1px solid #3a4a57; border-radius: 16px; padding: 16px 16px 16px 64px; position: relative; color: #E9E2D4; }
.gains .n { position: absolute; left: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--jaune); color: var(--enc); font-weight: 900;
  display: flex; align-items: center; justify-content: center; font-size: 14px; }
.gains h3 { color: #fff; font-size: 18px; line-height: 1.2; margin-bottom: 4px; }
.gains p { font-size: 15px; }

/* antes / después */
.aa-liste { display: grid; gap: 18px; }
.aa { background: var(--pap); border-radius: 16px; padding: 10px; box-shadow: 0 6px 16px rgba(40,25,10,.25); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aa figure { position: relative; border-radius: 10px; overflow: hidden; }
.aa img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.aa figure span { position: absolute; left: 6px; top: 6px; color: #fff; font-weight: 900; font-size: 11px; letter-spacing: .1em; padding: 4px 8px; border-radius: 7px; }
.aa .av { background: #7d6f62; } .aa .ap { background: var(--vert); }
.aa p { grid-column: 1 / -1; font-size: 14px; padding: 2px 4px 4px; }
.note-ia { color: var(--enc); font-size: 12.5px; margin-top: 12px; }

/* planning */
.planning { list-style: none; display: grid; gap: 10px; }
.planning li { background: var(--pap); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center;
  font-size: 15.5px; box-shadow: 0 4px 12px rgba(40,25,10,.12); }
.planning li b { font-weight: 900; justify-self: start; background: var(--enc); color: var(--pap); border-radius: 8px; padding: 5px 10px; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.planning li.fin { background: #E7F2EA; }
.planning li.fin b { background: var(--vert); }

/* tomos */
.tomes { display: grid; gap: 12px; }
.tome { background: var(--pap); border-radius: 14px; padding: 22px 14px 14px; box-shadow: inset 0 8px 0 var(--tc); position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; }
.tome img { border-radius: 6px; box-shadow: 0 4px 10px rgba(40,25,10,.25); }
.tome > div { position: static; }
.mockup { width: 100%; max-width: 820px; border-radius: 14px; margin: 0 auto 16px; }
.tome b { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.tome h3 { font-size: 20px; line-height: 1.15; margin: 4px 0 6px; }
.tome p { font-size: 14.5px; color: #4a4339; }
.tome span { display: inline-block; margin-top: 8px; font-weight: 900; font-size: 13px; background: var(--enc); color: #fff; border-radius: 8px; padding: 4px 9px; }
.t1 { --tc: #C4562B; } .t2 { --tc: #3F7F9E; } .t3 { --tc: #8A7F6E; } .t4 { --tc: #4F8C89; } .t5 { --tc: #B9612F; } .t6 { --tc: #5E8A47; }
.total { margin-top: 16px; background: var(--enc); color: #fff; border-radius: 16px; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 800; }
.total b { font-size: 46px; color: var(--jaune); line-height: 1; }

/* comparativo */
.devis-large { max-width: 760px; margin: 0 auto; }
.tab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tab th { font-family: 'Archivo'; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: 8px 4px; border-bottom: 2px solid var(--enc); }
.tab td { padding: 10px 4px; border-bottom: 1px dashed #d7cdb9; vertical-align: top; }
.tab td:nth-child(2) { color: var(--rouge); font-weight: 700; }
.tab td:nth-child(3) { color: var(--vert); font-weight: 700; }
.devis .pro { margin-top: 12px; font-family: 'Archivo'; font-weight: 700; font-size: 14.5px; background: #EEF3EF; border-radius: 10px; padding: 10px 12px; }

/* por dentro */
.hojas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hojas figure { background: var(--pap); border-radius: 12px; padding: 8px; box-shadow: 0 6px 16px rgba(40,25,10,.25); }
.hojas img { border-radius: 6px; cursor: zoom-in; }
.hojas figcaption { font-size: 13px; font-weight: 700; padding: 8px 4px 2px; line-height: 1.3; }
.zoom-tip { text-align: center; font-size: 13px; font-weight: 700; margin-top: 10px; }
.extrait { background: var(--pap); border-radius: 16px; padding: 18px; margin-top: 20px; }
.extrait h3 { font-size: 20px; margin-bottom: 10px; }
.extrait .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.extrait ul { list-style: none; font-size: 14px; }
.extrait li { padding: 4px 0; border-bottom: 1px dashed #e0d7c6; }
.extrait li.cat { font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge); border: 0; padding-top: 10px; }
.extrait > p { margin-top: 10px; font-weight: 700; }

/* bonos */
.bonus { display: grid; gap: 12px; }
.bonus article { background: var(--pap); border-radius: 14px; padding: 16px 16px 16px 66px; position: relative; }
.bonus article > b { position: absolute; left: 14px; top: 16px; width: 38px; height: 38px; border-radius: 10px; background: var(--rouge); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center; }
.bonus h3 { font-size: 18px; line-height: 1.2; margin-bottom: 4px; }
.bonus p { font-size: 14.5px; color: #4a4339; }
.etiq { display: inline-block; font-family: 'Courier Prime', monospace; font-weight: 700; font-size: 12.5px; background: #E7F2EA; color: var(--vert); border-radius: 7px; padding: 3px 8px; margin-bottom: 6px; }

/* oferta */
.facture { background: var(--pap); border-radius: 12px; padding: 22px 18px 20px; max-width: 620px; margin: 0 auto; font-family: 'Courier Prime', monospace; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.facture .ligne { font-size: 14px; }
.facture .tot { font-weight: 700; border-bottom: 2px solid var(--enc); }
.facture .tot s { color: var(--gris); font-weight: 700; }
.aujourdhui { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 16px; font-family: 'Archivo'; font-weight: 900; font-size: 20px; }
.aujourdhui b { font-size: 50px; color: var(--rouge); line-height: 1; }
.facture .micro { color: var(--gris); font-family: 'Archivo'; }

/* garantía */
.garantie { background: var(--pap); border-radius: 16px; padding: 20px; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; max-width: 760px; margin: 0 auto; }
.garantie h2 { color: var(--enc); text-shadow: none; font-size: 26px; margin-bottom: 6px; }
.sceau { width: 96px; height: 96px; border-radius: 50%; border: 5px double var(--vert); color: var(--vert); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 900; text-transform: uppercase; font-size: 12px; transform: rotate(-8deg); }
.sceau b { font-size: 36px; line-height: 1; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--pap); border-radius: 12px; padding: 0 16px; }
.faq summary { font-weight: 800; font-size: 16.5px; padding: 15px 24px 15px 0; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: '+'; position: absolute; right: 0; top: 11px; font-size: 24px; color: var(--rouge); }
.faq details[open] summary:after { content: '–'; }
.faq p { padding: 0 0 16px; font-size: 15.5px; color: #3d372f; }

/* cierre */
.cierre { text-align: center; max-width: 720px; }
.cierre p { color: #E9E2D4; font-size: 17px; margin-bottom: 18px; }
.cierre .micro { color: #E9E2D4; }
footer { background: #141c22; color: #a9a294; font-size: 13px; padding: 26px 0 90px; }
footer p + p { margin-top: 8px; }

/* barra fija */
.barre { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(31,42,51,.96); z-index: 30;
  transform: translateY(110%); transition: transform .25s; }
.barre.on { transform: none; }
.barre a { display: block; background: #00b042; color: #fff; text-align: center; font-weight: 900; font-size: 17px; padding: 14px; border-radius: 14px; text-decoration: none; }

/* zoom */
.zoom-caja { position: fixed; inset: 0; background: rgba(10,14,18,.94); z-index: 50; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.zoom-caja[hidden] { display: none; }
.zoom-caja img { max-width: 96vw; max-height: 88vh; transform-origin: center; }
.zoom-cerrar { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; cursor: pointer; z-index: 2; }
.zoom-ayuda { position: absolute; bottom: 16px; color: #ddd; font-size: 13px; }

@media (min-width: 861px) {
  .inicio { padding: 50px 0 60px; }
  .inicio-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; }
  .inicio-devis { position: sticky; top: 90px; }
  .inicio-devis .src { padding-right: 150px; }
  .gains { grid-template-columns: repeat(3, 1fr); }
  .aa-liste { grid-template-columns: repeat(3, 1fr); }
  .tomes { grid-template-columns: repeat(3, 1fr); }
  .bonus { grid-template-columns: repeat(2, 1fr); }
  .hojas { max-width: 760px; margin: 0 auto; }
  .barre { display: none; }
  .sec { padding: 64px 0; }
}
@media (max-width: 600px) { .cinta i { display: none; } .cinta p { gap: 4px 18px; } .tab { font-size: 13.5px; } }
@media (max-width: 400px) { .planning li { grid-template-columns: 1fr; gap: 6px; } }
