/* ==========================================================================
   Atelier Brunel — exemple de réalisation
   Troisième identité de la série, volontairement éloignée des deux autres :
   aucune police à empattements (contrairement à ambree.fr et au Bistrot
   Vallier), du graphite et du bleu acier plutôt que des tons chauds, et une
   mise en page très structurée, presque technique — registre attendu chez un
   artisan du bâtiment, où l'on achète du sérieux avant de l'esthétique.
   Feuille de style autonome.
   ========================================================================== */

:root {
  --graphite: #17191c;
  --graphite-clair: #262a30;
  --beton: #efedea;
  --beton-sombre: #ddd9d3;
  /* Deux bleus, un par famille de fonds. --acier a été éclairci après mesure :
     à #4f8ab8 il tombait à 3,89:1 sur le graphite clair de la section Devis. */
  --acier: #6ba0c9;          /* sur fonds sombres */
  --acier-sombre: #2d5c80;   /* sur fonds clairs */
  --texte: #17191c;
  --texte-doux: #4e545c;

  --titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --corps: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--beton);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.etiquette {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acier-sombre);
  margin-bottom: 12px;
}

.section-tete { margin-bottom: 40px; }
.section-tete h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 2px solid transparent;
  font-family: var(--titre);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.bouton-accent { background: var(--acier-sombre); color: #fff; }
.bouton-accent:hover { background: #24485f; }
.bouton-fantome { border-color: var(--graphite); color: var(--graphite); }
.bouton-fantome:hover { background: var(--graphite); color: var(--beton); }
.bouton-fantome-clair { border-color: var(--beton); color: var(--beton); }
.bouton-fantome-clair:hover { background: var(--beton); color: var(--graphite); }

:focus-visible { outline: 3px solid var(--acier); outline-offset: 2px; }

/* ---- Bandeau de démonstration ---- */
.demo-flag {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--graphite);
  color: var(--beton);
  font-size: 0.82rem;
  text-align: center;
}
.demo-flag a { color: var(--acier); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---- En-tête ---- */
.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: var(--beton);
  border-bottom: 2px solid var(--graphite);
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--titre);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.marque-trait { width: 30px; height: 6px; background: var(--acier-sombre); }
.entete nav { display: flex; gap: 26px; font-size: 0.9rem; font-weight: 600; }
.entete nav a { padding-block: 4px; border-bottom: 2px solid transparent; }
.entete nav a:hover { border-bottom-color: var(--acier-sombre); }

@media (max-width: 820px) {
  .entete { flex-wrap: wrap; justify-content: center; text-align: center; }
  .entete nav { order: 3; width: 100%; justify-content: center; }
  /* Cible tactile d'au moins 44px de haut : à 4px de padding les liens
     tombaient à 33px, trop petits pour un doigt. */
  .entete nav a { padding-block: 11px; }
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--graphite);
  color: var(--beton);
}
.hero-texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 64px);
}
.hero .etiquette { color: var(--acier); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.hero-sous { margin-top: 20px; max-width: 46ch; color: var(--beton-sombre); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero > img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero > img { order: -1; max-height: 260px; }
}

/* ---- Bandeau de réassurance ---- */
.rassurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--acier-sombre);
  color: #fff;
}
.rassurance div { padding: 22px 26px; border-right: 1px solid rgba(255, 255, 255, 0.22); }
.rassurance div:last-child { border-right: none; }
.rassurance strong {
  display: block;
  font-family: var(--titre);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}
.rassurance span { font-size: 0.9rem; }
@media (max-width: 760px) {
  .rassurance { grid-template-columns: 1fr; }
  .rassurance div { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
}

/* ---- Prestations ---- */
.prestations {
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 64px);
  max-width: 1240px;
  margin-inline: auto;
}
.grille-prestations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--beton-sombre); }
.grille-prestations article { background: var(--beton); padding: 32px 30px; }
.num {
  display: block;
  font-family: var(--titre);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--acier-sombre);
  margin-bottom: 10px;
}
.grille-prestations h3 { font-size: 1.4rem; margin-bottom: 10px; }
.grille-prestations p { color: var(--texte-doux); font-size: 0.95rem; }
@media (max-width: 760px) { .grille-prestations { grid-template-columns: 1fr; } }

/* ---- L'atelier ---- */
.atelier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 64px);
  max-width: 1240px;
  margin-inline: auto;
}
.atelier img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.atelier h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.atelier p { color: var(--texte-doux); }
.atelier p + p { margin-top: 14px; }
.liste-atelier { margin-top: 24px; border-top: 2px solid var(--graphite); }
.liste-atelier li {
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--beton-sombre);
  font-size: 0.94rem;
  position: relative;
}
.liste-atelier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 12px;
  height: 2px;
  background: var(--acier-sombre);
}
@media (max-width: 860px) { .atelier { grid-template-columns: 1fr; } }

/* ---- Méthode ---- */
.methode {
  background: var(--graphite);
  color: var(--beton);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 64px);
}
.methode .section-tete { max-width: 1240px; margin-inline: auto; margin-bottom: 40px; }
.methode .etiquette { color: var(--acier); }
.etapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin-inline: auto;
}
.etapes li { border-top: 3px solid var(--acier); padding-top: 20px; }
.etape-num {
  display: block;
  font-family: var(--titre);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--acier);
  margin-bottom: 10px;
}
.etapes h3 { font-size: 1.25rem; margin-bottom: 8px; }
.etapes p { color: var(--beton-sombre); font-size: 0.93rem; }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

/* ---- Devis ---- */
.devis {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  background: var(--graphite-clair);
  color: var(--beton);
}
.devis img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.devis-texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 64px);
}
.devis .etiquette { color: var(--acier); }
.devis h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.devis-texte > p { color: var(--beton-sombre); max-width: 46ch; }
.devis-contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.devis-note { margin-top: 22px; font-size: 0.88rem; color: var(--beton-sombre); }
@media (max-width: 860px) {
  .devis { grid-template-columns: 1fr; }
  .devis img { order: -1; max-height: 240px; }
}

/* ---- Pied de page ---- */
.pied {
  background: var(--graphite);
  color: var(--beton-sombre);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 64px) 32px;
}
.pied-haut {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto 32px;
  font-size: 0.92rem;
}
.pied-marque {
  font-family: var(--titre);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--beton);
  margin-bottom: 8px;
}
.pied h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--acier);
  margin-bottom: 10px;
}
.pied a { text-decoration: underline; text-underline-offset: 3px; }
.pied-mention {
  max-width: 1240px;
  margin-inline: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(239, 237, 234, 0.18);
  font-size: 0.84rem;
}
.pied-mention a { color: var(--acier); }
@media (max-width: 760px) { .pied-haut { grid-template-columns: 1fr; gap: 26px; } }
