/* =========================================================
   Art & Menuiserie — feuille de style unique
   Palette derivee du logo : brun bois, orange, noir.
   Contrainte majeure : 57 photos sur 62 sont en portrait,
   et plafonnent a 768x1024 ou 480x640. Aucune image ne peut
   servir de bandeau pleine largeur : la mise en page les
   presente en colonnes verticales, jamais etirees.
   ========================================================= */

:root {
  color-scheme: light;

  /* --- couleurs de marque --- */
  --orange: #D2551A;
  --orange-fonce: #A63F0F;
  --brun: #6B4A2F;
  --brun-clair: #8C6849;

  /* --- surfaces et texte (theme clair) --- */
  --fond: #FBF9F7;
  --surface: #FFFFFF;
  --surface-2: #F4EFEA;
  --encre: #1C1714;
  --encre-2: #4A423C;
  --attenue: #7A6F66;
  --filet: #E4DDD6;
  --filet-fort: #CDC2B7;

  --accent: var(--orange);
  --accent-texte: var(--orange-fonce);
  --sur-accent: #FFFFFF;

  --ombre: 0 1px 2px rgba(28, 23, 20, .05), 0 12px 28px -18px rgba(28, 23, 20, .35);
  --rayon: 4px;
  --mesure: 68ch;
  --largeur: 1120px;
  --gouttiere: clamp(20px, 5vw, 40px);
}

/* =========================================================
   Bases
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Archivo", "Source Sans 3", system-ui, sans-serif;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0; }

a { color: var(--accent-texte); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

/* Marqueur des informations que le client doit encore fournir */
mark.todo {
  background: repeating-linear-gradient(-45deg, #FFE08A, #FFE08A 6px, #FFD25E 6px, #FFD25E 12px);
  color: #4A3200;
  padding: .05em .35em;
  border-radius: 2px;
  font-size: .92em;
  font-weight: 600;
}

/* =========================================================
   Gabarit
   ========================================================= */

.contenant {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.texte { max-width: var(--mesure); }

.saut-contenu {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: var(--sur-accent);
  padding: 12px 20px;
  z-index: 200;
  font-weight: 700;
}
.saut-contenu:focus { left: 8px; top: 8px; }

/* =========================================================
   En-tete
   ========================================================= */

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--filet);
}
.entete-barre {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 86px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.13rem;
  letter-spacing: -.02em;
  margin-right: auto;
  padding: 6px 0;
}
.logo img { display: block; height: 58px; width: auto; }
@media (max-width: 560px) { .logo img { height: 42px; } }
.logo .marque { display: block; line-height: 1.05; }
.logo .marque em {
  display: block;
  font-style: normal;
  font-size: .58em;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--attenue);
  margin-top: 3px;
  white-space: nowrap;
}
.logo svg { width: 34px; height: 34px; flex: none; color: var(--accent); }

.nav-principale { display: none; }
@media (min-width: 1150px) {
  .nav-principale { display: flex; gap: 3px; align-items: center; }
}
.nav-principale a {
  color: var(--encre-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: var(--rayon);
  white-space: nowrap;
}
.nav-principale a:hover { background: var(--surface-2); color: var(--encre); }
.nav-principale a[aria-current="page"] { color: var(--accent-texte); background: var(--surface-2); }

/* Bouton d'appel : toujours visible, c'est la conversion principale */
.appel-entete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--sur-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: var(--rayon);
  white-space: nowrap;
}
.appel-entete:hover { background: var(--orange-fonce); }
.appel-entete .libelle { display: none; }
@media (min-width: 560px) { .appel-entete .libelle { display: inline; } }

.bouton-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--filet-fort);
  color: var(--encre);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: var(--rayon);
  cursor: pointer;
}
@media (min-width: 1150px) { .bouton-menu { display: none; } }

/* --- Menu deroulant « Nos metiers » --- */
.deroulant { position: relative; }
.deroulant-bouton {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--encre-2); background: none; border: 0; cursor: pointer;
  padding: 9px 11px; border-radius: var(--rayon); white-space: nowrap;
}
.deroulant-bouton:hover, .deroulant.ouvert .deroulant-bouton { background: var(--surface-2); color: var(--encre); }
.deroulant-bouton[aria-current="true"] { color: var(--accent-texte); }
.deroulant-bouton svg { transition: transform .15s; }
.deroulant.ouvert .deroulant-bouton svg { transform: rotate(180deg); }
.sous-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 120;
  min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: #FFFFFF; border: 1px solid var(--filet); border-radius: 6px;
  box-shadow: 0 18px 40px -20px rgba(28, 23, 20, .45);
}
/* pont invisible : la souris peut descendre dans le menu sans le refermer */
.sous-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
/* une fermeture au clic ou a Echap l'emporte sur le survol tant que la souris reste dessus */
.deroulant:not(.sans-survol):hover .sous-menu, .deroulant.ouvert .sous-menu { display: block; }
.sous-menu a {
  display: block; padding: 9px 12px; border-radius: var(--rayon);
  color: var(--encre-2); text-decoration: none; font-size: 15px; font-weight: 600;
}
.sous-menu a:hover { background: var(--surface-2); color: var(--encre); }
.sous-menu a[aria-current="page"] { color: var(--accent-texte); background: var(--surface-2); }

.menu-titre {
  margin: 0; padding: 16px var(--gouttiere) 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--attenue);
}
.menu-mobile ul.menu-suite { padding-top: 0; border-top: 6px solid var(--surface-2); }

/* --- Vignette en attente de photo (metiers ajoutes sans image) --- */
.vignette-attente {
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(107, 74, 47, .05) 14px 28px),
    var(--surface-2);
  color: var(--brun-clair);
  border-bottom: 1px solid var(--filet);
}
.vignette-attente svg { width: 44px; height: 44px; }
.vignette-attente span { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Menu deroulant mobile */
.menu-mobile { border-top: 1px solid var(--filet); background: var(--surface); }
.menu-mobile[hidden] { display: none !important; }
.menu-mobile ul { list-style: none; margin: 0; padding: 10px 0 18px; }
.menu-mobile a {
  display: block;
  padding: 12px var(--gouttiere);
  color: var(--encre-2);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--filet);
}
.menu-mobile a:hover { background: var(--surface-2); color: var(--encre); }
.menu-mobile .secondaire a { color: var(--attenue); font-weight: 400; }

/* =========================================================
   Bandeau d'ouverture
   ========================================================= */

.bandeau { padding: clamp(38px, 7vw, 76px) 0 clamp(30px, 5vw, 56px); }
.bandeau-grille {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}
@media (min-width: 900px) {
  .bandeau-grille { grid-template-columns: 1.05fr .95fr; }
}
.surtitre {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-texte);
  margin-bottom: 16px;
}
.bandeau p.accroche {
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: var(--encre-2);
  margin-top: 20px;
  max-width: 52ch;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--rayon);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.bouton-primaire { background: var(--accent); color: var(--sur-accent); }
.bouton-primaire:hover { background: var(--orange-fonce); }
.bouton-secondaire { background: var(--surface); color: var(--encre); border-color: var(--filet-fort); }
.bouton-secondaire:hover { border-color: var(--accent); color: var(--accent-texte); }

/* Composition de photos portrait : jamais d'etirement, jamais de recadrage brutal */
.mosaique-bandeau {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mosaique-bandeau figure { margin: 0; }
.mosaique-bandeau img {
  width: 100%;
  border-radius: var(--rayon);
  background: var(--surface-2);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.mosaique-bandeau figure:first-child { grid-row: span 2; }
.mosaique-bandeau figure:first-child img { aspect-ratio: 3 / 4.6; }

/* =========================================================
   Sections
   ========================================================= */

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--surface-2); }
.section-tete { margin-bottom: clamp(24px, 4vw, 40px); }
.section-tete p { color: var(--encre-2); margin-top: 12px; max-width: var(--mesure); }

/* Cartes de metier */
.grille-metiers {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.carte-metier {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ombre);
}
.carte-metier:hover { border-color: var(--accent); }
.carte-metier img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.carte-metier .corps { padding: 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.carte-metier h3 { font-size: 1.16rem; }
.carte-metier p { color: var(--attenue); font-size: 15.5px; flex: 1; }
.carte-metier .fleche { color: var(--accent-texte); font-weight: 700; font-size: 15px; }

/* Galerie de realisations : colonnes verticales, hauteur naturelle conservee */
.galerie {
  columns: 4 210px;
  column-gap: 14px;
}
.galerie figure {
  margin: 0 0 14px;
  break-inside: avoid;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--filet);
}
.galerie img { width: 100%; }
.galerie figcaption {
  padding: 9px 12px 11px;
  font-size: 13px;
  color: var(--attenue);
  background: var(--surface);
}

/* Filtres de la galerie */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filtres button {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--filet-fort);
  background: var(--surface);
  color: var(--encre-2);
  cursor: pointer;
}
.filtres button:hover { border-color: var(--accent); color: var(--accent-texte); }
.filtres button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }

/* Corps redactionnel */
.prose { max-width: var(--mesure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; color: var(--encre); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--filet); }
.prose thead th { background: var(--surface-2); font-size: 14px; }

.tableau-defilant { overflow-x: auto; }

/* Encart d'appel a l'action */
.encart-devis {
  background: var(--surface);
  border: 1px solid var(--filet);
  border-left: 4px solid var(--accent);
  border-radius: var(--rayon);
  padding: clamp(22px, 4vw, 32px);
  margin-top: 44px;
  box-shadow: var(--ombre);
}
.encart-devis h2 { font-size: 1.35rem; }
.encart-devis p { color: var(--encre-2); margin-top: 10px; max-width: 56ch; }

/* Fil d'Ariane */
.ariane { font-size: 14px; color: var(--attenue); padding-top: 22px; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.ariane li:not(:last-child)::after { content: "›"; margin-left: 7px; color: var(--filet-fort); }
.ariane a { color: var(--attenue); }

/* Bande de reperes */
.reperes {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: var(--filet);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  overflow: hidden;
}
.repere { background: var(--surface); padding: 22px 20px; }
.repere .val { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--accent-texte); line-height: 1.2; }
.repere .lib { color: var(--attenue); font-size: 14.5px; margin-top: 7px; }

/* =========================================================
   Formulaire
   ========================================================= */

.formulaire { display: grid; gap: 18px; max-width: 620px; }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ label { font-weight: 600; font-size: 15px; }
.champ .aide { font-size: 13.5px; color: var(--attenue); }
.champ input, .champ textarea, .champ select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  background: var(--surface);
  color: var(--encre);
  width: 100%;
}
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--accent); }
.champ textarea { min-height: 150px; resize: vertical; }
.obligatoire { color: var(--accent-texte); }
.consentement { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--encre-2); }
.consentement input { width: auto; margin-top: 4px; flex: none; }

/* =========================================================
   Pied de page
   ========================================================= */

.pied {
  background: var(--surface-2);
  border-top: 1px solid var(--filet);
  padding: clamp(38px, 5vw, 56px) 0 28px;
  margin-top: clamp(48px, 7vw, 84px);
}
.pied-grille {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.pied h2 {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--attenue);
  font-weight: 700;
  margin-bottom: 14px;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li + li { margin-top: 8px; }
.pied a { color: var(--encre-2); text-decoration: none; }
.pied a:hover { color: var(--accent-texte); text-decoration: underline; }
.pied address { font-style: normal; color: var(--encre-2); }
.pied-bas {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--filet);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  font-size: 13.5px;
  color: var(--attenue);
}
.pied-bas a { color: var(--attenue); }

/* Barre d'appel fixe sur mobile — le geste de conversion doit rester a portee de pouce */
.appel-fixe {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--filet-fort);
  border-top: 1px solid var(--filet-fort);
  box-shadow: 0 -6px 20px -12px rgba(0, 0, 0, .5);
}
.appel-fixe a {
  background: var(--surface);
  color: var(--encre);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 10px;
  text-align: center;
}
.appel-fixe a.principal { background: var(--accent); color: var(--sur-accent); }
@media (min-width: 760px) { .appel-fixe { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 54px; } }
