/* CD Menuiserie — feuille commune des pages intérieures
   Jetons repris de index.html (page claire, « feuille de plan d’atelier »). */

:root {
  --anthracite: #383E42;
  --blanc: #FFFFFF;
  --fond: #F4F5F4;
  --alu: #E3E6E7;
  --bleu: #2B5C8A;
  --chene: #B8915F;
  --filet: rgba(56, 62, 66, .15);
  --filet-fort: rgba(56, 62, 66, .25);
  --filet-cartouche: rgba(56, 62, 66, .16);
  --gouttiere: 64px;
  --entete: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body {
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--anthracite);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Style cote : légendes techniques, libellés du cartouche */
.cote {
  font-stretch: 87.5%;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--bleu);
}

/* Conteneur : 1120 px, gouttières 64 px, tout aligné à gauche */
.feuille { width: min(1120px, calc(100% - 2 * var(--gouttiere))); margin: 0 auto; }

/* ---------- En-tête (toujours en version claire) ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  height: var(--entete);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 32px;
  background: var(--fond);
  color: var(--anthracite);
  border-bottom: 1px solid var(--filet);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-stretch: 115%;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo img { display: block; width: auto; height: 40px; }
.entete-droite { display: flex; align-items: center; gap: 28px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav .lien {
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.nav .lien:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav .lien[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--bleu);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.btn-tel {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 16px;
  border-radius: 2px;
  background: var(--anthracite);
  color: var(--blanc);
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.btn-tel:hover { background: #2c3134; }
.btn-menu {
  display: none;
  height: 38px; padding: 0 12px;
  border: 1px solid #9AA1A5; border-radius: 2px;
  background: transparent; color: var(--anthracite);
  font: inherit; font-weight: 500; font-size: 15px;
  cursor: pointer;
}
.btn-menu[aria-expanded="true"] { border-color: var(--anthracite); }

@media (max-width: 900px) and (min-width: 761px) {
  .entete { padding: 0 20px; }
  .entete-droite, .nav { gap: 18px; }
}

/* Portrait : liens dans un menu déroulant ouvert par « Menu » */
@media (max-width: 760px) {
  .entete { padding: 0 16px; gap: 8px; }
  .entete-droite { gap: 8px; }
  .btn-tel { padding: 0 10px; }
  .js .btn-menu { display: inline-flex; align-items: center; }
  .js .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px;
    background: var(--fond);
    border-bottom: 1px solid var(--filet-fort);
  }
  .js .nav.ouvert { display: flex; }
  .js .nav .lien {
    display: flex; align-items: center;
    min-height: 48px;
    font-size: 16px;
    border-top: 1px solid var(--filet);
  }
  .js .nav .lien:first-child { border-top: 0; }
}
@media (max-width: 760px) {
  html:not(.js) .nav { display: none; }
}

/* ---------- En-tête de page ---------- */
.tete-page { padding-top: 120px; }
.ariane ol { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.ariane li + li::before { content: "/"; padding: 0 .5em; }
.ariane a { text-decoration: none; }
.ariane a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tete-page h1 {
  margin: 16px 0 0;
  font-stretch: 115%;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
}
/* Seconde ligne du titre : le lieu, pour Google et pour le visiteur */
.h1-lieu {
  display: block;
  margin-top: .35em;
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: 0;
  font-size: clamp(20px, .38em, 30px);
  line-height: 1.2;
  color: var(--bleu);
}
.intro-page {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.5;
  max-width: 56ch;
}

/* ---------- Titres et textes ---------- */
.titre-section {
  margin: 0 0 20px;
  font-stretch: 115%;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
}
.texte { margin: 0; font-size: 17px; line-height: 1.55; max-width: 60ch; }
.texte + .texte { margin-top: 16px; }
.texte a, .lien-texte { text-underline-offset: 3px; }
.bloc-page { margin-top: 120px; }

/* ---------- Photos : cadre 3:2, filet 1 px, rayon 0, jamais agrandies ---------- */
.photo { margin: 0; max-width: 560px; }
.cadre {
  position: relative;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--filet);
  overflow: hidden;
  background: var(--alu);
}
.cadre.q43 { aspect-ratio: 4 / 3; }
.cadre img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption, .legende { margin-top: 8px; }

.photos-2 { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photos-4 { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }

/* ---------- Catalogue : sous-navigation collante + sections ---------- */
.catalogue {
  margin-top: 96px;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px;
  align-items: start;
}
.sous-nav { position: sticky; top: 96px; }
.sous-nav ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--filet-fort); }
.sous-nav a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1.35;
  text-decoration: none;
}
.sous-nav a:hover { color: var(--bleu); }
.sous-nav a.actif { color: var(--bleu); border-left-color: var(--bleu); }

.famille { scroll-margin-top: 96px; }
.famille + .famille { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--filet-fort); }
.famille h2 {
  margin: 0 0 16px;
  font-stretch: 115%;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 34px;
  line-height: 1.1;
}

/* Verrière : photo seule en demi-colonne, texte à côté */
.duo-texte-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* ---------- Cartouche ---------- */
.cartouche {
  width: 100%;
  border-collapse: collapse; table-layout: fixed;
  border: 1px solid var(--filet-fort);
}
.cartouche col.libelle { width: 130px; }
.cartouche th, .cartouche td {
  padding: 14px 16px;
  text-align: left; vertical-align: baseline;
  border-top: 1px solid var(--filet-cartouche);
}
.cartouche tr:first-child th, .cartouche tr:first-child td { border-top: 0; }
.cartouche th {
  border-right: 1px solid var(--filet-cartouche);
  font-stretch: 87.5%; font-weight: 500; font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--bleu);
}
.cartouche td { font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.cartouche .tel-grand {
  font-weight: 600; font-size: 22px;
  font-variant-numeric: tabular-nums;
  text-decoration: none; white-space: nowrap;
}
.cartouche a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cartouche td a[href^="mailto"] { text-underline-offset: 3px; }

/* Cartouche d’une ligne : « Fabricants » */
.cartouche-ligne { margin-top: 28px; }
.cartouche-ligne col.libelle { width: 110px; }
.cartouche-ligne td { font-size: 15px; }
.cartouche-ligne td a { text-underline-offset: 3px; }
.cartouche-ligne td { vertical-align: middle; }
.logos-fab {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
}
.logos-fab img { display: block; width: auto; height: auto; max-height: 34px; max-width: 120px; }
.logos-fab a:hover img { opacity: .75; }
.logos-fab .fab-nom { font-size: 15px; font-weight: 600; }

/* Cartouche des fabricants (aménagements) */
.cartouche-fabricants { margin-top: 28px; }
.cartouche-fabricants col.libelle { width: 160px; }
.cartouche-fabricants col.site { width: 150px; }
.cartouche-fabricants th a { color: var(--bleu); text-underline-offset: 3px; }
.cartouche-fabricants th { vertical-align: middle; background: transparent; }
.cartouche-fabricants td { vertical-align: middle; }
.fab-logo img { display: block; width: auto; height: auto; max-height: 44px; max-width: 128px; }
.fab-logo:hover img { opacity: .75; }
.cartouche-fabricants td.cote { font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Entreprise ---------- */
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.groupe-photos { margin: 0; }
.groupe-photos .photo { max-width: none; }
.groupe-photos .rang { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.groupe-photos figcaption { margin-top: 8px; }

.trois-col { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); }
.trois-col > div { padding: 4px 32px; border-left: 1px solid var(--filet-fort); }
.trois-col > div:first-child { padding-left: 0; border-left: 0; }
.trois-col h3 { margin: 0 0 8px; font-stretch: 100%; font-weight: 700; font-size: 20px; line-height: 1.2; }
.trois-col p { margin: 0; font-size: 16px; line-height: 1.5; max-width: 26em; }

/* ---------- Contact ---------- */
.contact { margin-top: 96px; }
.tel-geant {
  display: inline-block;
  font-stretch: 115%;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.tel-geant:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.contact .cartouche { margin-top: 28px; }
.contact h2.petit {
  margin: 48px 0 12px;
  font-stretch: 100%; font-weight: 700; font-size: 22px; line-height: 1.2;
}
.carte { aspect-ratio: 4 / 3; width: 100%; border: 1px solid var(--filet); border-radius: 0; background: var(--alu); }
.carte iframe { display: block; width: 100%; height: 100%; border: 0; }
.carte + .liens-itineraire { margin-top: 16px; }
.liens-itineraire { margin: 0; padding: 0; list-style: none; }
.liens-itineraire li + li { margin-top: 8px; }
.liens-itineraire a { font-size: 17px; text-underline-offset: 3px; }

/* ---------- Formulaire (repris de l’accueil) ---------- */
.formulaire { margin-top: 28px; }
.champ { margin-bottom: 18px; }
.champ label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 15px; }
.champ input, .champ select, .champ textarea {
  display: block; width: 100%;
  height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--anthracite);
  background: var(--blanc);
  border: 1px solid #9AA1A5; border-radius: 2px;
}
.champ textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.champ select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23383E42' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--bleu); outline-offset: 2px; }
.facultatif { font-weight: 400; opacity: .7; }
.btn-envoi {
  display: block; width: 100%; height: 52px; margin-top: 8px;
  border: 0; border-radius: 2px;
  background: var(--anthracite); color: var(--blanc);
  font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer;
}
.btn-envoi:hover { background: #2c3134; }
.note { margin: 12px 0 0; font-size: 14px; line-height: 1.45; opacity: .7; }

/* ---------- Appel à l’action de fin de page ---------- */
.appel { margin-top: 120px; }
.ligne-cote { position: relative; height: 12px; }
.ligne-cote::before {
  content: ""; position: absolute; left: 0; right: 0; top: 5.5px; height: 1px; background: var(--bleu);
}
.ligne-cote::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background:
    linear-gradient(var(--bleu), var(--bleu)) left 0 top 0 / 1px 12px no-repeat,
    linear-gradient(var(--bleu), var(--bleu)) right 0 top 0 / 1px 12px no-repeat;
}
.ligne-cote span {
  position: absolute; top: 0; width: 1px; height: 12px; background: var(--bleu);
  transform: rotate(45deg);
}
.ligne-cote span:first-child { left: 0; }
.ligne-cote span:last-child { right: 0; }
.appel p { margin: 28px 0 0; font-size: 22px; line-height: 1.45; max-width: 40em; }
.appel a { text-underline-offset: 4px; }
.appel a[href^="tel"] { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Pied de page ---------- */
.pied {
  margin-top: 120px;
  border-top: 1px solid var(--filet-fort);
  padding: 32px 0 36px;
  font-size: 15px;
  line-height: 1.5;
}
.pied-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pied-cartouche { width: 100%; max-width: 440px; border-collapse: collapse; table-layout: fixed; border: 1px solid var(--filet-fort); }
.pied-cartouche col.libelle { width: 96px; }
.pied-cartouche th, .pied-cartouche td { padding: 8px 12px; text-align: left; vertical-align: baseline; border-top: 1px solid var(--filet-cartouche); }
.pied-cartouche tr:first-child th, .pied-cartouche tr:first-child td { border-top: 0; }
.pied-cartouche th {
  border-right: 1px solid var(--filet-cartouche);
  font-stretch: 87.5%; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--bleu);
}
.pied-cartouche td { font-size: 15px; overflow-wrap: anywhere; }
.pied-cartouche td a { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pied-liens { margin: 0; padding: 0; list-style: none; }
.pied-liens li + li { margin-top: 6px; }
.pied-signature { margin: 28px 0 0; }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
  .catalogue { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
  .trois-col > div { padding: 4px 20px; }
}

/* ---------- Portrait (≤ 760 px) ---------- */
@media (max-width: 760px) {
  :root { --gouttiere: 22px; }
  .tete-page { padding-top: 64px; }
  .intro-page { font-size: 18px; }
  .bloc-page { margin-top: 88px; }

  .catalogue { display: block; margin-top: 48px; }
  .sous-nav {
    position: sticky; top: var(--entete); z-index: 10;
    margin: 0 calc(-1 * var(--gouttiere));
    background: var(--fond);
    border-bottom: 1px solid var(--filet-fort);
  }
  .sous-nav ul {
    display: flex; gap: 20px;
    padding: 0 var(--gouttiere);
    border-left: 0;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .sous-nav ul::-webkit-scrollbar { display: none; }
  .sous-nav li { flex: none; }
  .sous-nav a {
    margin: 0; padding: 13px 0 11px;
    border-left: 0; border-bottom: 2px solid transparent;
    white-space: nowrap; font-size: 15px;
  }
  .sous-nav a.actif { border-bottom-color: var(--bleu); }
  .sections { margin-top: 40px; }
  .famille { scroll-margin-top: calc(var(--entete) + 64px); }
  .famille h2 { font-size: 30px; }

  .photos-2, .photos-4 { grid-template-columns: 1fr; gap: 24px; }
  .duo-texte-photo, .deux-col { grid-template-columns: 1fr; gap: 40px; }
  .groupe-photos { max-width: 560px; }

  .trois-col { grid-template-columns: 1fr; }
  .trois-col > div, .trois-col > div:first-child { padding: 20px 0 0; border-left: 0; }
  .trois-col > div + div { margin-top: 20px; border-top: 1px solid var(--filet-fort); }

  .cartouche col.libelle { width: 104px; }
  .cartouche th, .cartouche td { padding-left: 12px; padding-right: 12px; }
  .cartouche-ligne col.libelle { width: 92px; }
  .cartouche-fabricants, .cartouche-fabricants tbody { display: block; }
  .cartouche-fabricants tr { display: block; border-top: 1px solid var(--filet-cartouche); }
  .cartouche-fabricants tr:first-child { border-top: 0; }
  .cartouche-fabricants th, .cartouche-fabricants td { display: block; border: 0; }
  .cartouche-fabricants td:first-of-type { padding-bottom: 4px; }
  .cartouche-fabricants td.cote { padding-top: 0; }
  .cartouche-fabricants th { border-right: 0; }

  .appel { margin-top: 88px; }
  .appel p { font-size: 20px; }

  .pied { margin-top: 88px; }
  .pied-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Mentions légales ---------- */
.bloc-page.legal { margin-top: 64px; }
.legal .titre-section { font-size: clamp(24px, 2.2vw, 30px); }
.legal .cartouche { max-width: 760px; }
.legal .texte + .texte { margin-top: 16px; }
.a-completer { background: #FFF1B8; color: inherit; padding: 0 .2em; }
