/* Châssis Licata — feuille de style
   Palette tirée des menuiseries : RAL 9016 (blanc), RAL 7016 (anthracite),
   pierre bleue de Wallonie, et le bleu du logo Licata. */

:root {
  --blanc: #f6f7f6;          /* RAL 9016 */
  --papier: #ffffff;
  --anthracite: #383e42;     /* RAL 7016 */
  --anthracite-fonce: #2a2f32;
  --pierre: #59636b;         /* pierre bleue */
  --alu: #d4d9dc;
  --alu-clair: #e8ebed;
  --bleu: #004aad;           /* bleu du logo */
  --bleu-fonce: #003580;
  --texte: #23282b;
  --texte-doux: #525b62;

  --f: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mesure: 68ch;
  --gouttiere: clamp(16px, 4vw, 40px);
  --large: 1200px;
  --profil: clamp(10px, 1.4vw, 16px); /* épaisseur du cadre "châssis" */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: .18em; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--papier); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Titres : Archivo étiré, très gras ---------- */
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; color: var(--anthracite-fonce); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 800; font-variation-settings: "wdth" 112; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); font-weight: 760; font-variation-settings: "wdth" 110; }
h3 { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 104; }
p { margin: 0 0 1em; max-width: var(--mesure); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--texte-doux); max-width: 54ch; }

.wrap { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--blanc { background: var(--papier); }
.section--sombre { background: var(--anthracite); color: #e9ecee; }
.section--sombre h2, .section--sombre h3 { color: #fff; }
.section--sombre .lead { color: #c3cacf; }
.section__tete { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .9em 1.35em; border-radius: 4px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--bleu { background: var(--bleu); color: #fff; }
.btn--bleu:hover { background: var(--bleu-fonce); color: #fff; }
.btn--contour { border-color: var(--anthracite); color: var(--anthracite-fonce); background: transparent; }
.btn--contour:hover { background: var(--anthracite); color: #fff; }
.section--sombre .btn--contour { border-color: #fff; color: #fff; }
.section--sombre .btn--contour:hover { background: #fff; color: var(--anthracite-fonce); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- En-tête ---------- */
.bandeau-haut { background: var(--anthracite-fonce); color: #cfd5d9; font-size: .875rem; }
.bandeau-haut .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: 7px; }
.bandeau-haut a { color: #fff; text-decoration: none; font-weight: 600; }
.bandeau-haut a:hover { text-decoration: underline; color: #fff; }
.entete { background: var(--papier); border-bottom: 1px solid var(--alu); position: sticky; top: 0; z-index: 50; }
.entete .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { flex: none; display: block; }
.logo img { width: 150px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: .55em .7em; color: var(--texte); text-decoration: none; font-weight: 560; font-size: .95rem; border-radius: 3px; }
.nav a:hover { background: var(--alu-clair); color: var(--anthracite-fonce); }
.nav a[aria-current="page"] { color: var(--bleu); box-shadow: inset 0 -3px 0 var(--bleu); border-radius: 0; }
.entete .btn { flex: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--anthracite); border-radius: 4px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--anthracite-fonce); cursor: pointer; }

@media (max-width: 1060px) {
  .entete .btn--bleu { display: none; }
}
@media (max-width: 900px) {
  .bandeau-haut .bandeau-haut__info { display: none; }
  .bandeau-haut .wrap { justify-content: center; }
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--alu); display: none; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gouttiere) 16px; }
  .nav a { padding: .8em .2em; border-bottom: 1px solid var(--alu-clair); font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .logo img { width: 128px; }
}

/* ---------- Le cadre "châssis" : motif de tout le site ---------- */
.chassis {
  position: relative; margin: 0;
  background: var(--anthracite);
  padding: var(--profil);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 40px -24px rgba(20,25,28,.55);
}
.chassis::before { /* feuillure : la fine ligne entre dormant et vitrage */
  content: ""; position: absolute; inset: calc(var(--profil) - 4px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 2px; pointer-events: none;
}
.chassis img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.chassis--blanc { background: #eef0ef; box-shadow: 0 1px 0 #fff inset, 0 0 0 1px var(--alu), 0 18px 40px -26px rgba(20,25,28,.45); }
.chassis--blanc::before { border-color: rgba(0,0,0,.1); }
.chassis figcaption { color: #cfd5d9; font-size: .85rem; padding: 8px 2px 0; line-height: 1.35; }
.chassis--blanc figcaption { color: var(--texte-doux); }
/* la poignée, uniquement sur la grande photo d'accueil */
.chassis__poignee {
  position: absolute; right: calc(var(--profil) * .5 - 3px); top: 46%;
  width: 6px; height: 56px; border-radius: 3px;
  background: linear-gradient(90deg, #9aa3a8, #e6e9eb 45%, #8a9398);
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); background: var(--papier); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__photo { aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: 100%; }
.hero__faits { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--texte-doux); font-size: .95rem; }
.hero__faits li { display: flex; align-items: center; gap: .5em; }
.hero__faits svg { width: 18px; height: 18px; color: var(--bleu); flex: none; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 4 / 3; justify-self: stretch; order: -1; }
}


/* ---------- Page intérieure : en-tête ---------- */
.page-tete { background: var(--papier); padding: clamp(32px, 5vw, 64px) 0; border-bottom: 1px solid var(--alu); }
.page-tete .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-tete .chassis { aspect-ratio: 4 / 3; }
.page-tete--simple .wrap { grid-template-columns: 1fr; }
.fil { font-size: .875rem; color: var(--texte-doux); margin-bottom: 1rem; }
.fil a { color: var(--texte-doux); }
@media (max-width: 820px) { .page-tete .wrap { grid-template-columns: 1fr; } }

/* ---------- Offre Radio Contact : nuancier RAL ---------- */
.offre { background: var(--anthracite-fonce); color: #fff; }
.offre .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-block: clamp(28px, 4vw, 40px); }
.offre__texte p { margin: 0; color: #c9d0d4; }
.offre__titre { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 760; font-variation-settings: "wdth" 110; color: #fff; margin: 0 0 .35em; line-height: 1.15; }
.offre__source { font-size: .85rem; color: #9fa8ae; margin-top: .6em !important; }
.nuancier { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 64px); gap: 8px; }
.nuancier li { font-size: .7rem; line-height: 1.25; color: #c9d0d4; }
.nuancier span { display: block; height: 64px; border-radius: 3px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.offre .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 900px) {
  .offre .wrap { grid-template-columns: 1fr; }
  .nuancier { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nuancier span { height: 48px; }
}

/* ---------- Produits ---------- */
.produits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); }
.produit { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; text-decoration: none; color: inherit; }
.produit .chassis { aspect-ratio: 1; --profil: 9px; }
.produit h3 { margin-bottom: .3em; color: var(--anthracite-fonce); }
.produit p { color: var(--texte-doux); margin-bottom: .6em; font-size: 1rem; }
.produit__lien { font-weight: 700; color: var(--bleu); text-decoration: underline; text-underline-offset: .2em; }
.produit:hover .produit__lien { color: var(--bleu-fonce); }
.produit:hover h3 { color: var(--bleu); }
@media (max-width: 900px) { .produits { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .produit { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; } }

/* ---------- Raisons ---------- */
.raisons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.raison { border-top: 4px solid var(--bleu); padding-top: 18px; }
.raison p { color: inherit; opacity: .92; font-size: 1rem; }
@media (max-width: 820px) { .raisons { grid-template-columns: 1fr; } }

/* ---------- Atelier (photo + texte) ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.duo .chassis { aspect-ratio: 16 / 10; }
.duo--inverse > :first-child { order: 2; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .duo--inverse > :first-child { order: 0; } }

/* ---------- Galerie de réalisations ---------- */
.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.galerie .chassis { --profil: 10px; }
.galerie .g-large { grid-column: span 7; aspect-ratio: 16 / 10; }
.galerie .g-haute { grid-column: span 5; grid-row: span 2; }
.galerie .g-moy { grid-column: span 7; aspect-ratio: 16 / 10; }
.galerie .g-tiers { grid-column: span 4; aspect-ratio: 3 / 4; }
.galerie .chassis img { aspect-ratio: auto; }
.galerie figure { display: flex; flex-direction: column; }
.galerie figure picture, .galerie figure img { flex: 1; min-height: 0; }
@media (max-width: 760px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie .g-large, .galerie .g-moy { grid-column: span 2; }
  .galerie .g-haute, .galerie .g-tiers { grid-column: span 1; grid-row: auto; aspect-ratio: 3 / 4; }
}

/* ---------- Avis ---------- */
.avis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.avis blockquote { margin: 0; padding: 26px 28px; background: var(--papier); border-left: 4px solid var(--anthracite); }
.avis blockquote p { font-size: 1.02rem; }
.avis cite { font-style: normal; font-weight: 700; color: var(--anthracite-fonce); }
@media (max-width: 820px) { .avis { grid-template-columns: 1fr; } }

/* ---------- Partenaires ---------- */
.partenaires { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: center; }
.partenaires li { background: var(--papier); border: 1px solid var(--alu); border-radius: 3px; height: 112px; display: grid; place-items: center; padding: 18px 22px; }
.partenaires img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 700px) { .partenaires { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Listes de points (pages produit) ---------- */
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.points li { padding-left: 34px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border: 3px solid var(--bleu); border-radius: 2px; box-shadow: inset 0 0 0 3px var(--papier), inset 0 0 0 9px var(--bleu); }
.points strong { display: block; font-size: 1.08rem; color: var(--anthracite-fonce); margin-bottom: .2em; }
.points span { color: var(--texte-doux); font-size: 1rem; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--alu); }
.solutions > div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--alu); }
.solutions > div + div { padding-left: 24px; border-left: 1px solid var(--alu); }
.solutions h3 { font-size: 1.1rem; }
.solutions p { color: var(--texte-doux); font-size: 1rem; margin: 0; }
@media (max-width: 820px) { .solutions { grid-template-columns: 1fr; } .solutions > div + div { padding-left: 0; border-left: 0; } }

/* ---------- Devis ---------- */
.devis { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.coordonnees { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 16px; }
.coordonnees li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.coordonnees svg { width: 22px; height: 22px; color: #8fb4ff; margin-top: 3px; }
.coordonnees a { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.coordonnees a:hover { text-decoration: underline; color: #fff; }
.coordonnees small { display: block; color: #aeb7bd; font-size: .85rem; }
.form { background: var(--papier); color: var(--texte); padding: clamp(22px, 3.5vw, 40px); border-radius: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .plein { grid-column: 1 / -1; }
.form label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 6px; color: var(--anthracite-fonce); }
.form .req { color: var(--bleu); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--texte);
  padding: .75em .85em; border: 1.5px solid #b9c1c6; border-radius: 4px; background: #fff;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--bleu); outline: 3px solid rgba(0,74,173,.2); outline-offset: 0; }
.form .consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .9rem; color: var(--texte-doux); font-weight: 400; }
.form .consent input { width: 20px; height: 20px; margin: 2px 0 0; }
.form .btn { justify-self: start; }
.form .note { font-size: .85rem; color: var(--texte-doux); margin: 0; }
.form .pot { position: absolute; left: -5000px; }
.alerte { grid-column: 1 / -1; padding: 12px 16px; border-radius: 4px; background: #fdecea; color: #8a1c13; border: 1px solid #f3b5ae; }
@media (max-width: 900px) { .devis { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--anthracite-fonce); color: #b9c1c6; padding: 56px 0 120px; font-size: .95rem; }
.pied .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.pied img { width: 150px; margin-bottom: 14px; }
.pied h2 { font-size: 1rem; color: #fff; font-variation-settings: "wdth" 100; margin-bottom: .8em; letter-spacing: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied a { color: #e3e7ea; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied address { font-style: normal; }
.pied__bas { grid-column: 1 / -1; border-top: 1px solid #454c51; padding-top: 20px; margin-top: 12px; font-size: .85rem; color: #8f999f; }
@media (max-width: 760px) { .pied .wrap { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .pied { padding-bottom: 56px; } }

/* ---------- Barre d'action mobile ---------- */
.barre-mobile { display: none; }
@media (max-width: 760px) {
  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--alu);
    box-shadow: 0 -6px 20px -12px rgba(0,0,0,.3);
  }
  .barre-mobile .btn { justify-content: center; padding: .85em .6em; }
  .barre-mobile .btn--contour { background: var(--papier); }
}

/* ---------- Page merci / 404 ---------- */
.message { min-height: 50vh; display: grid; align-content: center; }
