/* Jawhara Bâtiment — feuille de style
   Mise en page : bandeaux pleine largeur, contenu centré sur 1160px,
   grilles qui passent sur une colonne au téléphone. */
:root {
  --pierre: #f5f5f1;      /* fond clair, pierre calcaire */
  --blanc: #ffffff;
  --encre: #18232a;       /* texte principal */
  --gris: #56636b;        /* texte secondaire */
  --trait: #d9dcd6;       /* filets, bordures */
  --mer: #233a70;         /* bleu profond institutionnel */
  --mer-clair: #e6eaf3;
  --sable: #cf7417;       /* accent or / pierre de taille */
  --sable-clair: #fdebd8;

  --f-titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-texte: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --f-code: "IBM Plex Mono", Consolas, monospace;

  --largeur: 1160px;
  --rayon: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pierre);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--mer); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sable);
  outline-offset: 2px;
}
h1, h2, h3 {
  font-family: var(--f-titre);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  color: var(--encre);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; max-width: 65ch; }

.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.surtitre {
  font-family: var(--f-code);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sable);
  font-weight: 500;
}

/* ---------- En-tête ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--blanc);
}
.entete {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 14px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--encre);
}
.logo img { width: auto; height: 44px; flex: none; }
.logo-pied { justify-self: start; background: var(--blanc); padding: 10px 14px; border-radius: var(--rayon); }
.logo-pied img { width: 180px; height: auto; }
.logo-texte { display: flex; flex-direction: column; line-height: 1; }
.logo-texte strong { font-family: var(--f-titre); font-size: 1.15rem; letter-spacing: 0.08em; color: var(--mer); }
.logo-texte span { font-family: var(--f-code); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--sable); margin-top: 4px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 8px 12px; text-decoration: none;
  color: var(--encre); font-weight: 600; font-size: 0.97rem; border-radius: var(--rayon);
}
.nav a:hover { background: var(--mer-clair); }
.nav a[aria-current="page"] { color: var(--mer); box-shadow: inset 0 -2px 0 var(--sable); border-radius: 0; }
.nav a.btn { color: var(--blanc); margin-left: 8px; }
.nav a.btn:hover { background: #182a55; }
.menu-btn {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px;
  width: 44px; height: 44px; cursor: pointer; position: relative; flex: none;
}
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 2px;
  background: var(--mer); transition: transform 0.2s, opacity 0.2s;
}
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
         background: var(--blanc); border-bottom: 1px solid var(--trait); }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0;
            padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--trait); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sable); padding-left: 14px; }
  .nav a.btn { margin: 12px 0 0; text-align: center; border-radius: var(--rayon); border: 0; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; background: var(--mer); color: var(--blanc);
  padding: 12px 22px; border-radius: var(--rayon); text-decoration: none;
  font-weight: 600; border: 2px solid var(--mer); cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { background: #182a55; border-color: #182a55; }
.btn-ligne { background: transparent; color: var(--mer); }
.btn-ligne:hover { background: var(--mer-clair); }
.btn-clair { background: var(--blanc); color: var(--mer); border-color: var(--blanc); }
.btn-clair:hover { background: var(--sable-clair); border-color: var(--sable-clair); }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-blanc { background: var(--blanc); }
.section-mer { background: var(--mer); color: #e3e8f3; }
.section-mer h2, .section-mer h3 { color: var(--blanc); }
.section-mer .surtitre { color: #f5b874; }
.entete-section { display: grid; gap: 12px; margin-bottom: 40px; }
.entete-section p { color: var(--gris); font-size: 1.12rem; }
.section-mer .entete-section p { color: #bcc6dc; }

/* ---------- Hero ---------- */
.hero { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.hero .conteneur {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; padding-block: clamp(48px, 7vw, 88px);
}
.hero-texte { display: grid; gap: 22px; min-width: 0; }
.hero-texte p { font-size: 1.18rem; color: var(--gris); }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li { padding-left: 22px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px;
  background: var(--sable); transform: rotate(45deg);
}

/* Bandeau de page (pages intérieures) */
.bandeau { background: var(--mer); color: #cdd5e6; }
.bandeau .conteneur { padding-block: clamp(44px, 6vw, 72px); display: grid; gap: 14px; }
.bandeau h1 { color: var(--blanc); }
.bandeau .surtitre { color: #f5b874; }
.bandeau p { font-size: 1.15rem; }
.fil { font-size: 0.9rem; color: #a6b2cc; }
.fil a { color: #e3e8f3; }

/* ---------- Photo provisoire ---------- */
.photo {
  position: relative; aspect-ratio: 4 / 3; max-width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(35,58,112,0.07) 0 12px, transparent 12px 24px),
    var(--mer-clair);
  border: 1px dashed #a9b4cc; border-radius: var(--rayon);
  display: flex; align-items: flex-end;
}
.photo span {
  margin: 12px; background: var(--blanc); color: var(--gris);
  font-family: var(--f-code); font-size: 0.75rem; padding: 4px 8px; border-radius: 2px;
}
.photo-large { aspect-ratio: 16 / 10; }

.photo-img {
  display: block; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--rayon); background: var(--mer-clair);
}

/* Galerie avant / après */
.galerie { display: grid; gap: 48px; }
.paire { display: grid; gap: 10px; }
.paire > p { color: var(--gris); }
.paire-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.paire-photos figure, .fig { margin: 0; position: relative; min-width: 0; }
.paire-photos figcaption {
  position: absolute; top: 12px; left: 12px; background: var(--encre); color: var(--blanc);
  font-family: var(--f-code); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.paire-photos figcaption.apres { background: var(--sable); }
.fig figcaption { margin-top: 8px; color: var(--gris); font-size: 0.95rem; }

/* ---------- Grilles ---------- */
.grille { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.deux-col > * { min-width: 0; }
.texte { display: grid; gap: 16px; }
.texte p { color: var(--gris); }

/* Clients publics */
.client {
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 24px; display: grid; gap: 10px; align-content: start;
}
.client .icone { width: 40px; height: 40px; color: var(--mer); }
.client p { color: var(--gris); font-size: 0.98rem; }

/* Lots / corps d'état */
.lot {
  border-top: 2px solid var(--mer); padding-top: 16px; display: grid; gap: 8px; align-content: start;
}
.lot .num { font-family: var(--f-code); font-size: 0.8rem; color: var(--sable); letter-spacing: 0.06em; }
.lot p { color: var(--gris); font-size: 0.98rem; }
.section-mer .lot { border-top-color: #f5b874; }
.section-mer .lot p { color: #bcc6dc; }
.lot ul { margin: 4px 0 0; padding-left: 18px; color: var(--gris); font-size: 0.95rem; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.chiffre { display: grid; gap: 4px; border-left: 2px solid var(--sable); padding-left: 16px; }
.chiffre strong { font-family: var(--f-titre); font-size: 2.4rem; color: var(--blanc); font-variant-numeric: tabular-nums; line-height: 1.1; }
.chiffre span { color: #bcc6dc; font-size: 0.95rem; }

/* Étapes de la méthode */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: etape; }
.etape {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding-block: 28px; border-top: 1px solid var(--trait);
}
.etape:last-child { border-bottom: 1px solid var(--trait); }
.etape::before {
  counter-increment: etape; content: counter(etape, decimal-leading-zero);
  font-family: var(--f-titre); font-size: 2.2rem; font-weight: 700; color: var(--sable); line-height: 1;
}
.etape div { display: grid; gap: 8px; min-width: 0; }
.etape p { color: var(--gris); }
.etape .doc { font-family: var(--f-code); font-size: 0.8rem; color: var(--mer); background: var(--mer-clair); padding: 2px 8px; border-radius: 2px; justify-self: start; }

/* Références */
.ref { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; display: grid; }
.ref .photo { border: 0; border-bottom: 1px dashed #a9b4cc; border-radius: 0; }
.ref-corps { padding: 20px 22px 24px; display: grid; gap: 10px; }
.ref-corps p { color: var(--gris); font-size: 0.98rem; }
.ref dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.92rem; }
.ref dt { color: var(--gris); }
.ref dd { margin: 0; font-weight: 600; }
.etiquette {
  justify-self: start; font-family: var(--f-code); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--sable-clair); color: #8a4b0e; padding: 3px 8px; border-radius: 2px;
}

/* Note "à remplacer" */
.a-remplacer {
  background: var(--sable-clair); border-left: 3px solid var(--sable);
  padding: 12px 16px; font-size: 0.95rem; color: #6b3d0c; border-radius: 0 var(--rayon) var(--rayon) 0;
  max-width: 70ch;
}

/* Valeurs */
.valeur { display: grid; gap: 8px; align-content: start; }
.valeur h3 { display: flex; gap: 10px; align-items: center; }
.valeur h3::before { content: ""; width: 10px; height: 10px; background: var(--sable); transform: rotate(45deg); flex: none; }
.valeur p { color: var(--gris); }

/* Appel à l'action */
.cta .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { max-width: 28ch; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-grille > * { min-width: 0; }
.coord { display: grid; gap: 22px; }
.coord div { display: grid; gap: 2px; }
.coord dt, .coord .lib { font-family: var(--f-code); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sable); }
.coord .val { font-size: 1.1rem; font-weight: 600; }
.formulaire { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; }
.champ { display: grid; gap: 6px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 600; font-size: 0.95rem; }
input, select, textarea {
  font: inherit; color: var(--encre); background: var(--pierre);
  border: 1px solid #c3c8c1; border-radius: var(--rayon); padding: 10px 12px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.message-ok { background: var(--mer-clair); color: var(--mer); padding: 12px 16px; border-radius: var(--rayon); font-weight: 600; }
.message-erreur { background: #fdecea; color: #9b1c1c; padding: 12px 16px; border-radius: var(--rayon); font-weight: 600; }
.message-erreur a { color: inherit; }
.piege { display: none; }
.carte {
  aspect-ratio: 16 / 9; max-width: 100%; border: 1px solid #d3d9e6; border-radius: var(--rayon);
  overflow: hidden; background: var(--mer-clair);
}
.carte iframe { display: block; width: 100%; height: 100%; border: 0; }
.lien-carte { margin-top: 10px; font-weight: 600; }

/* ---------- Pied de page ---------- */
.pied { background: #16264a; color: #b0bad2; font-size: 0.95rem; }
.pied .conteneur { padding-block: 48px 28px; display: grid; gap: 32px; }
.pied-haut { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.pied-haut > * { min-width: 0; }
.pied h3 { color: var(--blanc); font-size: 1rem; margin-bottom: 10px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pied a { color: #e3e8f3; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .logo-texte strong { color: var(--blanc); }
.pied-bas { border-top: 1px solid #2c3f6a; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .conteneur, .deux-col, .contact-grille { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .pied-haut > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .paire-photos { gap: 8px; }
  .g2, .g3, .g4, .champs-2 { grid-template-columns: 1fr; }
  .pied-haut { grid-template-columns: 1fr; }
  .etape { grid-template-columns: 1fr; gap: 10px; }
  .chiffre strong { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .menu-btn span { transition: none; } }
