/* =====================================================
   Construction Wéry — wery-construction.be
   Charte : brun #453C33 / vert #63A62F / orange #F0941E
   ===================================================== */

:root {
  --brun: #453c33;
  --brun-fonce: #322b24;
  --vert: #63a62f;
  --vert-fonce: #4d8423;
  --orange: #f0941e;
  --orange-fonce: #d97f0d;
  --creme: #f6f4f0;
  --gris-texte: #57534c;
  --blanc: #ffffff;
  --ombre: 0 4px 20px rgba(50, 43, 36, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gris-texte);
  background: var(--blanc);
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brun);
  line-height: 1.25;
}

h1 { font-size: 2.3rem; font-weight: 800; }
h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .6rem; }

p { margin-bottom: 1rem; }

a { color: var(--vert-fonce); }
a:hover { color: var(--orange); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

section { padding: 70px 0; }

.section-creme { background: var(--creme); }
.section-brune { background: var(--brun-fonce); }
.section-brune h2, .section-brune h3, .section-brune p, .section-brune li { color: #f2efe9; }

.intro-page { max-width: 820px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-orange { background: var(--orange); color: var(--blanc); }
.btn-orange:hover { background: var(--orange-fonce); color: var(--blanc); }
.btn-vert { background: var(--vert); color: var(--blanc); }
.btn-vert:hover { background: var(--vert-fonce); color: var(--blanc); }
.btn-contour { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.btn-contour:hover { background: var(--blanc); color: var(--brun); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanc);
  box-shadow: 0 2px 12px rgba(50, 43, 36, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 22px;
  max-width: 1240px;
  margin: 0 auto;
}
.logo { flex-shrink: 0; }
.logo img { height: 88px; width: auto; max-width: none; display: block; }
@media (max-width: 1250px) { .logo img { height: 72px; } }
@media (max-width: 560px) { .logo img { height: 60px; } }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--brun);
  height: 3px;
  width: 28px;
  border-radius: 2px;
  position: relative;
  transition: all .25s;
}
.nav-toggle-label span::before { content: ''; position: absolute; top: -9px; }
.nav-toggle-label span::after { content: ''; position: absolute; top: 9px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: nowrap;
}
.site-nav a {
  display: block;
  padding: 10px 9px;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--brun);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--vert-fonce); }
.site-nav a.actif { color: var(--vert-fonce); border-bottom-color: var(--vert); }
.site-nav a.nav-devis {
  background: var(--orange);
  color: var(--blanc);
  border-radius: 6px;
  border-bottom: none;
  padding: 10px 14px;
  margin-left: 6px;
}
.site-nav a.nav-devis:hover { background: var(--orange-fonce); }

@media (max-width: 1080px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    box-shadow: var(--ombre);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 480px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0; }
  .site-nav a { padding: 13px 26px; border-bottom: none; }
  .site-nav a.nav-devis { margin: 10px 22px 8px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(50, 43, 36, .93) 0%, rgba(50, 43, 36, .78) 55%, rgba(77, 132, 35, .55) 100%),
    url('../images/champ-chanvre.jpg') center/cover no-repeat;
  color: var(--blanc);
  padding: 110px 0 100px;
}
.hero h1 { color: var(--blanc); max-width: 760px; }
.hero .sous-titre {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 20px 0 34px;
  color: #ece8e1;
}
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .surtitre {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}

/* Hero réduit pour pages intérieures */
.hero-page { padding: 70px 0 60px; }
.hero-page h1 { font-size: 2rem; }

/* ---------- Cartes services ---------- */
.grille-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
  margin-top: 40px;
}
.carte-service {
  background: var(--blanc);
  border-radius: 10px;
  box-shadow: var(--ombre);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--vert);
  transition: transform .2s, box-shadow .2s;
}
.carte-service:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(50,43,36,.16); }
.carte-service .icone {
  width: 56px; height: 56px;
  margin-bottom: 18px;
  color: var(--vert-fonce);
}
.carte-service .icone svg { width: 100%; height: 100%; }
.carte-service p { font-size: .95rem; flex-grow: 1; }
.carte-service a.lien-carte {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--orange-fonce);
  text-decoration: none;
}
.carte-service a.lien-carte:hover { color: var(--brun); }

/* ---------- Listes à puces avec coche ---------- */
.liste-coches { list-style: none; margin: 0 0 1rem; }
.liste-coches li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 10px;
}
.liste-coches li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section-brune .liste-coches li::before { background-color: var(--orange); }

/* ---------- Deux colonnes ---------- */
.deux-colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.deux-colonnes img { border-radius: 10px; box-shadow: var(--ombre); }
@media (max-width: 820px) { .deux-colonnes { grid-template-columns: 1fr; } }

/* ---------- Bandeau CTA ---------- */
.bandeau-cta {
  background: linear-gradient(100deg, var(--vert-fonce), var(--vert));
  color: var(--blanc);
  padding: 55px 0;
}
.bandeau-cta .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.bandeau-cta h2 { color: var(--blanc); margin: 0; }
.bandeau-cta p { margin: 6px 0 0; color: #eef6e6; }

/* ---------- Chiffres clés ---------- */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  text-align: center;
  margin-top: 36px;
}
.chiffre strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
}
.section-brune .chiffre span { color: #d8d2c8; font-size: .95rem; }

/* ---------- Réalisations ---------- */
.grille-realisations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.carte-realisation {
  background: var(--blanc);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.carte-realisation:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(50,43,36,.16); }
.carte-realisation .visuel {
  height: 190px;
  background: linear-gradient(120deg, var(--brun), var(--brun-fonce));
  display: flex;
  align-items: center;
  justify-content: center;
}
.carte-realisation .visuel img { width: 100%; height: 100%; object-fit: cover; }
.carte-realisation .corps { padding: 24px 24px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.carte-realisation .etiquette {
  align-self: flex-start;
  background: var(--creme);
  color: var(--vert-fonce);
  font-family: 'Montserrat', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.carte-realisation p { font-size: .93rem; flex-grow: 1; }

/* ---------- Article ---------- */
.article-corps { max-width: 780px; }
.article-corps h2 { margin-top: 2.2rem; font-size: 1.45rem; }
.article-corps img { border-radius: 10px; margin: 1.4rem 0; }
.fil-ariane {
  font-size: .85rem;
  margin-bottom: 18px;
  color: #b9b2a6;
}
.fil-ariane a { color: #d8d2c8; text-decoration: none; }
.fil-ariane a:hover { color: var(--orange); }

/* ---------- Contact ---------- */
.grille-contact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 820px) { .grille-contact { grid-template-columns: 1fr; } }

.formulaire label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--brun);
  margin: 18px 0 6px;
}
.formulaire input,
.formulaire select,
.formulaire textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #d9d4cb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--gris-texte);
  background: var(--blanc);
}
.formulaire input:focus,
.formulaire select:focus,
.formulaire textarea:focus {
  outline: none;
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(99, 166, 47, .15);
}
.formulaire button { margin-top: 26px; }
.champ-cache { position: absolute; left: -9999px; }

.bloc-coordonnees {
  background: var(--creme);
  border-radius: 10px;
  padding: 34px 30px;
  border-left: 5px solid var(--vert);
}
.bloc-coordonnees h3 { margin-bottom: 16px; }
.bloc-coordonnees p { margin-bottom: 12px; }
.bloc-coordonnees strong { color: var(--brun); }
.bloc-coordonnees a { text-decoration: none; font-weight: 600; }

.carte-embed { border: 0; width: 100%; height: 300px; border-radius: 10px; margin-top: 26px; box-shadow: var(--ombre); }

.message-confirmation {
  background: #e8f4dc;
  border: 1.5px solid var(--vert);
  color: var(--vert-fonce);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-weight: 600;
}
.message-erreur {
  background: #fdeede;
  border: 1.5px solid var(--orange);
  color: #a05c05;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brun-fonce);
  color: #cfc9bf;
  padding: 60px 0 0;
  font-size: .95rem;
}
.footer-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer h4 {
  color: var(--blanc);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfc9bf; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-logo-texte {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blanc);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-logo-texte span { color: var(--orange); }
.footer-bas {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
  .hero { padding: 70px 0 60px; }
  section { padding: 50px 0; }
}
