/* La Petite Pieuvriste : pieuvres, tableaux et armoires précâblés sur mesure, fabriqués à Marnaz.
   Signature : l'atelier (fond kraft), les câbles et les bagues de repérage. */

/* ---------- haut de page ---------- */
.lpp-hero { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 7vw, 96px); background: var(--kraft); }
.lpp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lpp-hero h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.1; }
.lpp-hero .lead { margin-top: 18px; color: var(--text); }
.lpp-reperes { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; }
.lpp-reperes li { padding: 7px 12px 7px 10px; font-size: .88rem; line-height: 1.3; background: var(--surface); border: 1.5px solid var(--cable); border-left: 9px solid var(--accent); border-radius: 3px; box-shadow: 0 2px 0 var(--cable); }
.lpp-reperes li:nth-child(2) { border-left-color: var(--glacier); }
.lpp-reperes li:nth-child(3) { border-left-color: var(--ambre); }
.lpp-reperes li:nth-child(4) { border-left-color: var(--balcon); }
.lpp-hero__visuel { position: relative; padding: 0 0 40px 40px; }
.lpp-hero__photo { margin: 0; background: var(--surface); padding: 12px 12px 14px; box-shadow: 0 22px 50px rgba(24, 35, 38, .18); rotate: 1.2deg; }
.lpp-hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lpp-hero__photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); text-align: right; }
.lpp-hero__logo { position: absolute; left: 0; bottom: 0; width: clamp(110px, 11vw, 150px); height: auto; padding: 14px; background: var(--surface); border-radius: 50%; box-shadow: 0 14px 30px rgba(24, 35, 38, .18); rotate: -6deg; }

/* ---------- qu'est-ce qu'une pieuvre ? ---------- */
.lpp-def { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lpp-liste { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.lpp-liste li { position: relative; padding-left: 30px; }
.lpp-liste li::before { content: ""; position: absolute; left: 0; top: .55em; width: 20px; height: 9px; background: var(--accent); border: 1.5px solid var(--cable); border-radius: 2px; }
.lpp-schema { margin: 0; padding: clamp(16px, 3vw, 30px); background: var(--kraft); }
.lpp-schema svg { width: 100%; height: auto; overflow: visible; }
.lpp-schema__tableau { fill: var(--surface); stroke: var(--cable); stroke-width: 2.5; }
.lpp-schema__t { fill: none; stroke: var(--cable); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lpp-schema__plein { fill: var(--cable); }
.lpp-schema__cable { fill: none; stroke: var(--cable); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.1s var(--ease); }
.lpp-schema__cable--2 { transition-delay: .12s; } .lpp-schema__cable--3 { transition-delay: .24s; } .lpp-schema__cable--4 { transition-delay: .36s; } .lpp-schema__cable--5 { transition-delay: .48s; } .lpp-schema__cable--6 { transition-delay: .6s; }
.lpp-schema.is-visible .lpp-schema__cable, html:not(.js) .lpp-schema__cable { stroke-dashoffset: 0; }
.lpp-schema__bague { stroke: var(--cable); stroke-width: 1.5; }
.lpp-schema__bague--cyan { fill: var(--accent); } .lpp-schema__bague--glacier { fill: var(--glacier); } .lpp-schema__bague--ambre { fill: var(--lumiere); }
.lpp-schema__rep { font: 700 10px var(--font-body); fill: var(--cable); text-anchor: middle; }
.lpp-schema__legende { font: 13px var(--font-body); fill: var(--muted); }
.lpp-schema figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); }

/* ---------- les étapes, comme des bagues sur un câble ---------- */
.lpp-cable { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.lpp-cable::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 6px; background: var(--cable); border-radius: 3px; }
.lpp-cable li { position: relative; }
.lpp-cable__bague { position: relative; display: inline-grid; place-items: center; min-width: 74px; height: 40px; margin-bottom: 22px; font-family: var(--font-title); font-size: 1.15rem; color: var(--cable); background: var(--accent); border: 2px solid var(--cable); border-radius: 5px; }
.lpp-cable li:nth-child(2) .lpp-cable__bague { background: var(--glacier); }
.lpp-cable li:nth-child(3) .lpp-cable__bague { background: var(--lumiere); }
.lpp-cable li:nth-child(4) .lpp-cable__bague { background: var(--balcon); }
.lpp-cable h3 { margin-bottom: 6px; font-size: 1.35rem; }
.lpp-cable p { color: var(--muted); }

/* ---------- atelier ---------- */
.lpp-atelier { background: var(--kraft); }

/* ---------- kit ou sur mesure ---------- */
.lpp-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.lpp-compare--seul { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.lpp-compare__col { padding: clamp(22px, 3vw, 34px); background: var(--surface); border: 1.5px solid var(--border); }
.lpp-compare__col--nous { border: 2px solid var(--cable); box-shadow: 8px 8px 0 var(--accent); }
.lpp-compare h3 { margin-bottom: 14px; font-size: 1.45rem; }
.lpp-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lpp-compare li { padding: 11px 0; border-top: 1px solid var(--border); }
.lpp-compare__col:not(.lpp-compare__col--nous) li { color: var(--muted); }
.lpp-pieuvriste { max-width: 760px; margin-top: clamp(32px, 5vw, 56px); }
.lpp-pieuvriste h3 { margin-bottom: 10px; font-size: 1.5rem; }
.lpp-pieuvriste p { color: var(--muted); }

/* ---------- usages ---------- */
.lpp-usages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.lpp-usages li { padding-top: 24px; border-top: 6px solid var(--cable); border-radius: 3px 3px 0 0; }
.lpp-usages h3 { margin-bottom: 8px; font-size: 1.35rem; }
.lpp-usages p { color: var(--muted); }
.lpp-prix { max-width: 820px; margin-top: clamp(30px, 4vw, 48px); padding: 20px 24px; background: var(--kraft); border-left: 9px solid var(--accent); }

/* ---------- réalisations ---------- */
.lpp-galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lpp-galerie figure { margin: 0; padding: 10px 10px 12px; background: var(--surface); box-shadow: 0 10px 24px rgba(24, 35, 38, .1); }
.lpp-galerie img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lpp-galerie figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* ---------- demande d'étude ---------- */
.lpp-devis { background: var(--kraft); }
.lpp-devis__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lpp-devis__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.lpp-devis__plans { margin-top: 24px; padding: 18px 20px; background: var(--surface); border-left: 9px solid var(--glacier); }
.lpp-devis__tel { margin-top: 26px; color: var(--muted); }
.lpp-devis__tel a { display: block; font-family: var(--font-title); font-size: 2rem; line-height: 1.2; color: var(--primary); text-decoration: none; }
.lpp-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lpp-tag { position: relative; display: flex; align-items: center; min-height: 64px; padding: 10px 14px 10px 18px; font-family: var(--font-title); font-size: 1.05rem; line-height: 1.2; color: var(--primary); background: var(--surface); border: 1.5px solid var(--cable); border-left: 12px solid color-mix(in srgb, var(--accent) 35%, var(--surface)); border-radius: 4px; box-shadow: 0 3px 0 var(--cable); cursor: pointer; transition: border-color .2s, transform .2s; }
.lpp-tag--glacier { border-left-color: color-mix(in srgb, var(--glacier) 35%, var(--surface)); }
.lpp-tag--ambre { border-left-color: color-mix(in srgb, var(--lumiere) 60%, var(--surface)); }
.lpp-tag:hover { transform: translateY(-2px); }
.lpp-tag input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lpp-tag:has(input:checked) { border-left-color: var(--accent); }
.lpp-tag--glacier:has(input:checked) { border-left-color: var(--glacier); }
.lpp-tag--ambre:has(input:checked) { border-left-color: var(--ambre); }
.lpp-tag:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 10px; font-family: var(--font-body); color: var(--accent-deep); }
.lpp-tag:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- tablette et mobile ---------- */
@media (max-width: 960px) {
  .lpp-hero__grid, .lpp-def, .lpp-devis__grid { grid-template-columns: 1fr; }
  .lpp-hero__visuel { max-width: 560px; }
  .lpp-devis__intro { position: static; }
  .lpp-cable { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .lpp-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .lpp-cable { grid-template-columns: 1fr; padding-left: 26px; row-gap: 26px; }
  .lpp-cable::before { left: 6px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .lpp-cable__bague { margin-left: -26px; margin-bottom: 12px; }
  .lpp-compare, .lpp-usages, .lpp-tags { grid-template-columns: 1fr; }
  .lpp-reperes { grid-template-columns: 1fr 1fr; }
  .lpp-hero__visuel { padding: 0 0 32px 24px; }
}
