/* NJR Concept — feuille de styles */

@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --brique: #9a3412;
  --brique-clair: #c2562e;
  --gris: #7d7f82;
  --encre: #1b1d1f;
  --encre-2: #26292c;
  --texte: #33373b;
  --texte-doux: #666b70;
  --fond: #ffffff;
  --fond-2: #f4f3f0;
  --trait: #dfddd8;
  --trait-sombre: #3a3e42;
  --titre: "Michroma", "Eurostile", "Arial Black", sans-serif;
  --corps: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largeur: 1180px;
  --marge: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  color: var(--encre);
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 4.2vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
h3 { font-size: 1.05rem; line-height: 1.4; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.accent { color: var(--brique); }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--gris { background: var(--fond-2); }
.section--sombre { background: var(--encre); color: #c9cccf; }
.section--sombre h1, .section--sombre h2, .section--sombre h3 { color: #fff; }
.section--sombre .accent { color: var(--brique-clair); }

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 18px;
}
.surtitre::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--sombre .surtitre, .hero .surtitre, .entete-page .surtitre { color: var(--brique-clair); }

.intro { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.intro p { margin-top: 18px; color: var(--texte-doux); font-size: 1.05rem; }
.section--sombre .intro p { color: #a9adb1; }

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--brique);
  background: var(--brique);
  color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.bouton:hover { background: #7c2a0e; border-color: #7c2a0e; }
.bouton--contour { background: transparent; border-color: rgba(255,255,255,0.45); color: #fff; }
.bouton--contour:hover { background: #fff; border-color: #fff; color: var(--encre); }
.bouton--clair { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton--clair:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
.fleche::after { content: "→"; transition: transform 0.2s; }
a:hover .fleche::after, .fleche:hover::after { transform: translateX(4px); }

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.entete__logo img { height: 42px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--texte);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brique); border-bottom-color: var(--brique); }
.nav .nav__tel {
  border: 2px solid var(--brique);
  background: var(--brique);
  color: #fff;
  padding: 9px 16px;
  white-space: nowrap;
}
.nav .nav__tel:hover { background: #7c2a0e; border-color: #7c2a0e; color: #fff; }
.menu-bouton {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--trait);
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-bouton span, .menu-bouton span::before, .menu-bouton span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--encre);
}
.menu-bouton span { top: 20px; }
.menu-bouton span::before { left: 0; top: -6px; }
.menu-bouton span::after { left: 0; top: 6px; }

@media (max-width: 940px) {
  .menu-bouton { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--trait);
    padding: 8px var(--marge) 20px;
  }
  .nav.est-ouvert { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--trait); }
  .nav .nav__tel { margin-top: 16px; text-align: center; padding: 14px; }
}

/* Hero accueil */
.hero { position: relative; background: var(--encre); color: #fff; overflow: hidden; }
.hero__image { position: absolute; inset: 0; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,22,24,0.94) 0%, rgba(20,22,24,0.78) 45%, rgba(20,22,24,0.3) 100%);
}
.hero .conteneur { position: relative; padding-top: clamp(80px, 13vw, 170px); padding-bottom: clamp(70px, 10vw, 130px); }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 .accent { color: var(--brique-clair); }
.hero__texte { max-width: 600px; margin: 26px 0 36px; font-size: 1.1rem; color: #d3d6d9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__faits {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.16);
  background: rgba(20,22,24,0.6);
}
.hero__faits .conteneur { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 0; padding-bottom: 0; }
.fait { padding: 24px 24px 24px 0; }
.fait + .fait { padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.16); }
.fait dt { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #9a9ea3; font-weight: 700; }
.fait dd { margin: 6px 0 0; font-family: var(--titre); font-size: 0.92rem; color: #fff; }
@media (max-width: 700px) {
  .hero__faits .conteneur { grid-template-columns: 1fr; }
  .fait, .fait + .fait { padding: 16px 0; border-left: 0; }
  .fait + .fait { border-top: 1px solid rgba(255,255,255,0.16); }
  .hero__image::after { background: rgba(20,22,24,0.82); }
}

/* En-tête des pages intérieures */
.entete-page { position: relative; background: var(--encre); color: #fff; overflow: hidden; }
.entete-page__image { position: absolute; inset: 0; }
.entete-page__image img { width: 100%; height: 100%; object-fit: cover; }
.entete-page__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,24,0.93), rgba(20,22,24,0.6)); }
.entete-page .conteneur { position: relative; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 100px); }
.entete-page h1 { color: #fff; max-width: 800px; }
.entete-page p { max-width: 640px; margin-top: 22px; color: #d3d6d9; font-size: 1.08rem; }
.fil { font-size: 0.82rem; color: #9a9ea3; margin-bottom: 22px; }
.fil a { color: #c9cccf; text-decoration: none; }
.fil a:hover { color: #fff; }

/* Cartes domaines */
.domaines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.domaine { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--trait); transition: border-color 0.25s, transform 0.25s; }
.domaine:hover { border-color: var(--brique); transform: translateY(-4px); }
.domaine__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--fond-2); }
.domaine__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.domaine:hover .domaine__image img { transform: scale(1.04); }
.domaine__corps { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.domaine__num { font-family: var(--titre); font-size: 0.72rem; color: var(--brique); letter-spacing: 0.1em; margin-bottom: 10px; }
.domaine p { color: var(--texte-doux); font-size: 0.96rem; margin: 12px 0 22px; }
.domaine__lien { margin-top: auto; font-weight: 700; font-size: 0.92rem; color: var(--brique); display: inline-flex; gap: 8px; }
@media (max-width: 900px) { .domaines { grid-template-columns: 1fr; } }

/* Engagements */
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; } }
.engagements { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--trait-sombre); border: 1px solid var(--trait-sombre); }
.engagement { background: var(--encre); padding: 26px; }
.engagement h3 { font-size: 0.9rem; margin-bottom: 10px; }
.engagement p { font-size: 0.93rem; color: #a9adb1; }
.engagement__num { font-family: var(--titre); font-size: 0.7rem; color: var(--brique-clair); display: block; margin-bottom: 14px; }
@media (max-width: 520px) { .engagements { grid-template-columns: 1fr; } }

/* Références */
.references { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); }
.reference {
  border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait);
  min-height: 110px; padding: 20px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--titre); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--gris); line-height: 1.5;
  background: #fff;
}
.reference--note { font-family: var(--corps); font-size: 0.88rem; letter-spacing: 0; color: var(--texte-doux); }
@media (max-width: 860px) { .references { grid-template-columns: repeat(2, 1fr); } }

/* Labels */
.labels { display: flex; flex-wrap: wrap; gap: 24px; }
.label { display: flex; align-items: center; gap: 20px; border: 1px solid var(--trait); background: #fff; padding: 22px 26px; flex: 1 1 320px; }
.label img { height: 84px; width: auto; flex: none; }
.label h3 { font-size: 0.92rem; margin-bottom: 6px; }
.label p { font-size: 0.92rem; color: var(--texte-doux); }

/* Zone */
.departements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
.departements li { border: 1px solid var(--trait); background: #fff; padding: 14px 16px; font-size: 0.92rem; font-weight: 600; }
.departements strong { display: block; font-family: var(--titre); font-weight: 400; color: var(--brique); font-size: 1.05rem; margin-bottom: 2px; }
@media (max-width: 700px) { .departements { grid-template-columns: repeat(2, 1fr); } }

/* Bandeau contact */
.appel { background: var(--brique); color: #fff; }
.appel .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.appel h2 { color: #fff; max-width: 640px; }
.appel p { color: #f3d9cf; margin-top: 12px; }
.appel__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.appel .bouton { background: #fff; border-color: #fff; color: var(--brique); }
.appel .bouton:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
.appel .bouton--contour { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }

/* Réalisations */
.realisation + .realisation { margin-top: clamp(64px, 9vw, 110px); padding-top: clamp(64px, 9vw, 110px); border-top: 1px solid var(--trait); }
.realisation__tete { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-bottom: 36px; align-items: end; }
.realisation__tete p { color: var(--texte-doux); }
@media (max-width: 860px) { .realisation__tete { grid-template-columns: 1fr; } }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.etiquettes li { font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border: 1px solid var(--trait); color: var(--texte-doux); background: #fff; }

.galerie { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.photo { position: relative; margin: 0; overflow: hidden; background: var(--fond-2); grid-column: span 4; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--large { grid-column: span 8; aspect-ratio: auto; min-height: 320px; }
.photo--large img { position: absolute; inset: 0; }
.photo--moitie { grid-column: span 6; }
.photo--pleine { grid-column: span 12; aspect-ratio: 21 / 9; }
.photo--haute { aspect-ratio: 3 / 4; }
.photo--petite { grid-column: span 3; }
.photo figcaption {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 0;
  background: rgba(20,22,24,0.86);
  color: #e6e8ea; font-size: 0.8rem; max-width: 100%;
}
.etape { font-family: var(--titre); font-size: 0.62rem; letter-spacing: 0.1em; padding: 6px 10px; background: var(--gris); color: #fff; margin: -8px 0; align-self: stretch; display: flex; align-items: center; }
.etape--apres { background: var(--brique); }
.etape--avant { background: #4b4f53; }
@media (max-width: 860px) {
  .photo, .photo--large, .photo--moitie, .photo--petite { grid-column: span 6; aspect-ratio: 4 / 3; min-height: 0; }
  .photo--large img { position: static; }
  .photo--haute { aspect-ratio: 3 / 4; }
  .photo--pleine { grid-column: span 12; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .photo, .photo--large, .photo--moitie, .photo--petite, .photo--pleine { grid-column: span 12; }
}

/* Réalisation à photo unique : photo à gauche, texte à droite */
.realisation--cote { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.realisation--cote .realisation__tete { grid-template-columns: 1fr; gap: 22px; margin: 0; }
.realisation--cote .photo { grid-column: span 12; aspect-ratio: 3 / 4; }
@media (max-width: 860px) { .realisation--cote { grid-template-columns: 1fr; } .realisation--cote .realisation__tete { order: -1; } }

/* Listes de prestations */
.prestations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--trait); border: 1px solid var(--trait); }
.prestation { background: #fff; padding: 28px; }
.prestation h3 { font-size: 0.92rem; margin-bottom: 10px; }
.prestation p { font-size: 0.94rem; color: var(--texte-doux); }
.prestation::before { content: ""; display: block; width: 24px; height: 3px; background: var(--brique); margin-bottom: 18px; }
@media (max-width: 860px) { .prestations { grid-template-columns: 1fr; } }

/* Contact */
.coordonnees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.coordonnee { border: 1px solid var(--trait); padding: 30px; background: #fff; display: flex; flex-direction: column; }
.coordonnee__titre { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brique); margin-bottom: 14px; }
.coordonnee__valeur { font-family: var(--titre); font-size: clamp(0.95rem, 1.6vw, 1.15rem); color: var(--encre); text-decoration: none; line-height: 1.5; overflow-wrap: anywhere; }
a.coordonnee__valeur:hover { color: var(--brique); }
.coordonnee p { margin-top: 14px; font-size: 0.92rem; color: var(--texte-doux); }
.coordonnee .bouton { margin-top: 22px; align-self: flex-start; }
.coordonnee__bas { margin-top: auto; }
@media (max-width: 900px) { .coordonnees { grid-template-columns: 1fr; } }

/* Mentions légales */
.texte-legal { max-width: 760px; }
.texte-legal h2 { font-size: 1.1rem; margin: 44px 0 14px; }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal dl { margin: 0; display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--trait); }
.texte-legal dt, .texte-legal dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.texte-legal dt { font-weight: 700; color: var(--encre); }
@media (max-width: 600px) { .texte-legal dl { grid-template-columns: 1fr; } .texte-legal dt { border-bottom: 0; padding-bottom: 0; } }

/* Pied de page */
.pied { background: var(--encre); color: #a9adb1; font-size: 0.93rem; }
.pied .conteneur { padding-top: 64px; padding-bottom: 28px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.pied__logo img { height: 46px; width: auto; filter: grayscale(1) invert(1) brightness(1.9); mix-blend-mode: screen; }
.pied__grille p { margin-top: 18px; max-width: 340px; }
.pied h2 { font-family: var(--corps); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 9px; }
.pied a { color: #c9cccf; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied__bas { border-top: 1px solid var(--trait-sombre); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.84rem; }
@media (max-width: 800px) { .pied__grille { grid-template-columns: 1fr; gap: 32px; } }

/* Apparitions au défilement */
.js .apparait { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .apparait.est-visible { opacity: 1; transform: none; }
.js .apparait[data-delai="1"] { transition-delay: 0.1s; }
.js .apparait[data-delai="2"] { transition-delay: 0.2s; }
.js .apparait[data-delai="3"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .apparait { opacity: 1; transform: none; transition: none; }
}

:focus-visible { outline: 3px solid var(--brique-clair); outline-offset: 3px; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; }

/* Accueil, version 2 : présentation de l'entreprise et aperçu des réalisations */
.presentation { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.presentation p { color: var(--texte-doux); font-size: 1.05rem; }
.presentation h2 { margin-bottom: 22px; }
.presentation__image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--fond-2); }
.presentation__image img { width: 100%; height: 100%; object-fit: cover; }
.reperes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--trait); border: 1px solid var(--trait); margin-top: 34px; }
.repere { background: #fff; padding: 20px; }
.repere strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 1.25rem; color: var(--brique); }
.repere span { font-size: 0.86rem; color: var(--texte-doux); }
.entre-titre { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.entre-titre .intro { margin-bottom: 0; }
.apercu-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.apercu-photos a { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--fond-2); }
.apercu-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.apercu-photos a:hover img { transform: scale(1.05); }
.labels--pile, .departements--pile { margin-top: 28px; }
.labels--pile .label { flex-basis: 100%; }
#contact { scroll-margin-top: 76px; }
@media (max-width: 860px) {
  .presentation { grid-template-columns: 1fr; }
  .presentation__image { aspect-ratio: 4 / 3; }
  .apercu-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .reperes { grid-template-columns: 1fr; } }
.photo--cadre-gauche img { object-position: 30% 50%; }
.photo--double { grid-row: span 2; }
@media (max-width: 860px) { .photo--double { grid-row: auto; } }

/* Réalisations : le résultat en grand en haut de chaque chantier */
.photo--resultat { grid-column: span 12; aspect-ratio: 16 / 9; }
@media (max-width: 560px) { .photo--resultat { aspect-ratio: 4 / 3; } }

/* Présentation sans photo : texte seul, largeur de lecture confortable */
.presentation--texte { grid-template-columns: 1fr; }
.presentation--texte > div { max-width: 900px; }

/* Accueil : bloc « Nos clients » sous les repères */
.clients-titre { margin-top: 44px; font-family: var(--titre); font-weight: 400; font-size: 1.15rem; }
.reperes--clients { margin-top: 18px; }
.reperes--clients .repere strong { font-size: 1rem; margin-bottom: 4px; }
@media (max-width: 720px) { .reperes--clients { grid-template-columns: 1fr; } }
