@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --green-dark: #1a3c34;
  --green-deep: #0f2318;
  --green-mid: #2d5a27;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f7f4ef;
  --white: #ffffff;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --font: 'DM Sans', sans-serif;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 56px rgba(0,0,0,0.14);
  --ease: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--cream); overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font); line-height: 1.15; font-weight: 900; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 700; }

/* ====== BUTTONS ====== */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.45); }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: border-color var(--ease), color var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ====== LABELS ====== */
.label-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.label-tag--dark { color: var(--green-mid); border-color: rgba(45,90,39,0.3); }
.text-gold { color: var(--gold); }

/* ====== FADE IN ====== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ====== HEADER ====== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,35,24,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: box-shadow var(--ease);
}
#header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.3); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  mix-blend-mode: lighten;
}

#nav { display: flex; align-items: center; gap: 1.8rem; }
#nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--ease);
  white-space: nowrap;
}
#nav a:hover { color: var(--gold); }

.nav-tel { color: var(--gold) !important; font-weight: 700 !important; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  -webkit-tap-highlight-color: transparent;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--ease); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(10,28,18,0.99);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block;
  transition: color var(--ease), background var(--ease);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.04); color: var(--gold); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-tel { color: var(--gold) !important; font-weight: 800 !important; }
.mobile-cta { color: var(--gold) !important; font-weight: 800 !important; }
.mobile-nav.open { display: flex; }

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9rem 1.5rem 6rem;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(10,25,15,0.62) 0%, rgba(20,50,30,0.45) 55%, rgba(10,22,12,0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  color: var(--white);
  text-align: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.45);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.8rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero-content h1 { margin-bottom: 1.2rem; text-shadow: 0 2px 24px rgba(0,0,0,0.4); }
.hero-em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: rgba(255,255,255,0.72);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 1.4rem;
  animation: bounce 2.5s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ====== STATS BAR ====== */
.stats-bar {
  background: var(--green-dark);
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  padding: 0.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat strong { font-size: 1.7rem; font-weight: 900; color: var(--white); letter-spacing: -0.02em; }
.stat-gold { color: var(--gold) !important; }
.stat span { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }

/* ====== AVANTAGE -50% ====== */
.avantage { padding: 7rem 1.5rem; background: var(--cream); }

.avantage-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.av-tag {
  display: inline-block;
  background: var(--green-mid);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.av-left h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  color: var(--green-dark);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.av-desc { font-size: 1rem; line-height: 1.8; color: var(--muted); margin-bottom: 1.8rem; }
.av-desc strong { color: var(--green-dark); }

.av-list {
  list-style: none;
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.av-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.av-list li span {
  width: 22px; height: 22px;
  background: var(--green-mid);
  color: white;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ====== CALCULATEUR ====== */
.calc-box {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 48px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
}

.calc-title { font-size: 1.2rem; font-weight: 800; color: var(--green-dark); margin-bottom: 0.3rem; }
.calc-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }

.calc-amount-row {
  position: relative;
  margin-bottom: 1.5rem;
}
.calc-input {
  width: 100%;
  font-family: var(--font);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green-dark);
  padding: 0.7rem 3.5rem 0.7rem 1rem;
  border: 2px solid #e5e0d8;
  border-radius: 14px;
  background: var(--cream);
  outline: none;
  transition: border-color var(--ease), background var(--ease);
  -moz-appearance: textfield;
  -webkit-appearance: none;
  appearance: none;
}
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input:focus { border-color: var(--green-mid); background: var(--white); }
.calc-euro {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}

/* ------ SLIDER CUSTOM ------
   Input range = transparent, juste pour l'interaction.
   Visuels = vrais divs positionnés : track-bg, track-fill, thumb-el.
   Le thumb voyage de thumbW/2 à trackW-thumbW/2 → pas de décalage.
*/
.calc-slider-wrap {
  position: relative;
  height: 28px; /* = hauteur du thumb */
  margin-bottom: 0.5rem;
}

/* Track gris de fond */
.calc-track-bg {
  position: absolute;
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 8px;
  border-radius: 99px;
  background: #e0dbd2;
  pointer-events: none;
  overflow: hidden; /* le fill reste dans le track */
}

/* Fill vert — width mis à jour par JS */
.calc-track-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10%;
  border-radius: 99px;
  background: #2d5a27;
  transition: width 0.06s linear;
  pointer-events: none;
}

/* Thumb custom — left mis à jour par JS */
.calc-thumb-el {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #1a3c34;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
  top: 50%; transform: translate(-50%, -50%);
  left: 10%;
  pointer-events: none;
  transition: left 0.06s linear, transform 0.12s ease, box-shadow 0.12s ease;
  z-index: 2;
}
.calc-slider-wrap.dragging .calc-thumb-el {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* Input range complètement transparent — interaction seulement */
.calc-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
}

.calc-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
  margin-bottom: 1.8rem;
}

/* Résultat */
.calc-result {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  margin-bottom: 1rem;
}
.calc-result-col {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.calc-result-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.calc-result-before {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ccc;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.calc-result-arrow { font-size: 1.4rem; color: #ccc; flex-shrink: 0; }
.calc-result-you {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green-mid);
  letter-spacing: -0.03em;
  line-height: 1;
}

.calc-saving { text-align: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 1.5rem; }
.calc-saving strong { color: var(--green-mid); font-weight: 800; }
.calc-btn { width: 100%; text-align: center; display: block; border-radius: 12px; }
.calc-legal { text-align: center; margin-top: 0.8rem; font-size: 0.7rem; color: #bbb; }

/* ====== SERVICES ====== */
.services { padding: 7rem 1.5rem; background: var(--cream); }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 { color: var(--green-dark); margin-bottom: 0.5rem; }
.section-desc { color: var(--muted); margin-top: 0.75rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* 4 cartes — grid explicite, pas auto-fill */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45,90,39,0.18);
}
.service-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--green-dark); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ====== RÉALISATIONS ====== */
.realisations { padding: 7rem 1.5rem; background: #eeece7; }

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity var(--ease);
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 0.82rem; font-weight: 600; }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 12px; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: rgba(255,255,255,0.1);
  border: none; color: white;
  font-size: 1.2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ====== FORMULAIRE ====== */
.devis { padding: 7rem 1.5rem; background: var(--cream); }

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

.form-success { text-align: center; padding: 3rem 2rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { color: var(--green-mid); margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); }

/* Sections du formulaire */
.form-section {
  padding: 2rem 2.5rem;
}
.form-section:first-of-type {
  border-bottom: 1px solid #f0ece4;
}

.form-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-mid);
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group.full { margin-bottom: 0; }

input, select, textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid #e8e3da;
  border-radius: 10px;
  background: var(--cream);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
  outline: none;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
input::placeholder, textarea::placeholder, select {
  color: #999;
}
select { color: #999; }
select:valid, select.has-value { color: var(--text); }
input:focus, select:focus, textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,90,39,0.08);
  background: var(--white);
}
input.error, select.error { border-color: #e53e3e; }
.form-error { font-size: 0.73rem; color: #e53e3e; min-height: 1em; }

/* Bouton + pied de form */
.btn-submit {
  display: block;
  width: calc(100% - 5rem);
  margin: 0 2.5rem 1.5rem;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 12px;
}
.form-reassurance {
  text-align: center;
  font-size: 0.72rem;
  color: #bbb;
  padding-bottom: 2rem;
}

/* ====== FOOTER ====== */
.footer { background: var(--green-deep); padding: 4rem 1.5rem 2.5rem; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo { height: 42px; width: auto; object-fit: contain; border-radius: 6px; margin-bottom: 0.5rem; mix-blend-mode: lighten; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-siret { font-size: 0.72rem; opacity: 0.4; margin-top: 0.3rem; }

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  transition: background var(--ease), color var(--ease);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-socials a:hover {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}
.footer-socials svg { width: 18px; height: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color var(--ease); }
.footer-links a:hover { color: var(--gold); }
.footer-legal { text-align: right; font-size: 0.78rem; color: rgba(255,255,255,0.35); line-height: 1.9; }

/* ====== RESPONSIVE ====== */

/* Tablette large */
@media (max-width: 1024px) {
  .avantage-inner { grid-template-columns: 1fr; gap: 4rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-legal { text-align: left; grid-column: span 2; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  #nav { display: none; }
  .burger { display: flex; }

  .hero { padding: 8rem 1.2rem 5rem; min-height: 100svh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-gold,
  .hero-actions .btn-ghost { text-align: center; }

  .stats-bar { padding: 1rem 0.5rem; flex-wrap: nowrap; }
  .stat { padding: 0.4rem 0.8rem; flex: 1; }
  .stat strong { font-size: 1.2rem; }
  .stat span { font-size: 0.58rem; letter-spacing: 0.06em; }
  .stat-divider { height: 24px; }

  .avantage { padding: 5rem 1.2rem; }
  .avantage-inner { gap: 3rem; }

  .calc-box { padding: 1.8rem 1.4rem; }
  .calc-input { font-size: 1.8rem; padding: 0.6rem 3rem 0.6rem 0.9rem; }
  .calc-result { padding: 1.2rem 1rem; gap: 0.5rem; }
  .calc-result-you { font-size: 1.8rem; }
  .calc-result-before { font-size: 1.2rem; }

  .services { padding: 5rem 1.2rem; }
  /* 2 cartes côte à côte sur mobile */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .service-card { padding: 1.5rem 1.2rem; }

  .realisations { padding: 5rem 1.2rem; }
  /* 2 photos côte à côte — jamais en colonne unique */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery-card { border-radius: 12px; }

  .devis { padding: 5rem 1.2rem; }
  .form-section { padding: 1.4rem 1.2rem; }
  .btn-submit { width: calc(100% - 2.4rem); margin: 0 1.2rem 1.2rem; }
  /* 2 colonnes maintenues sur mobile */
  .form-row { grid-template-columns: 1fr 1fr; gap: 0.6rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-legal { text-align: left; grid-column: 1; }
}

/* Petit mobile */
@media (max-width: 480px) {
  .hero-badge { font-size: 0.68rem; padding: 0.4rem 0.9rem; }

  .stats-bar { flex-direction: row; flex-wrap: nowrap; padding: 0.8rem 0.3rem; }
  .stat { padding: 0.3rem 0.4rem; flex: 1; min-width: 0; }
  .stat strong { font-size: 1rem; }
  .stat span { font-size: 0.52rem; letter-spacing: 0.04em; }
  .stat-divider { display: block; height: 20px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Les photos restent en 2 colonnes même sur 360px */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .gallery-card { border-radius: 8px; }

  .calc-box { padding: 1.4rem 1rem; }
  .calc-input { font-size: 1.6rem; }
  .calc-result-you { font-size: 1.6rem; }
}