/* =========================================================
   NOWA DÉPANNAGE — Feuille de style principale
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* `clip` empêche le menu mobile hors-écran de rendre le body scrollable latéralement */
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

html { scroll-behavior: smooth; }

:root {
  /* Couleurs de marque */
  --anthracite-900: #12141a;
  --anthracite-800: #1b1e26;
  --anthracite-700: #262a34;
  --anthracite-600: #383d4a;
  --anthracite-500: #545a68;

  --gold: #d4af37;
  --gold-light: #ecd27f;
  --gold-dark: #a9861f;

  --orange: #ff6a1a;
  --orange-dark: #e2540a;

  /* Barre d'appel fixe (mobile) */
  --bleu-nuit: #12233f;
  --bleu-nuit-dark: #0b1728;

  --white: #ffffff;
  --off-white: #f6f3ec;
  --text-dark: #1b1e26;
  --text-muted: #656b78;
  --border-light: #e7e3d8;

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-md: 0 10px 30px rgba(18, 20, 26, 0.15);
  --shadow-lg: 0 20px 50px rgba(18, 20, 26, 0.25);

  --header-height: 114px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Retour tactile discret plutôt que le flash gris par défaut sur mobile */
a, button, summary {
  -webkit-tap-highlight-color: rgba(255, 106, 26, 0.15);
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--anthracite-900);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 106, 26, 0.1);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
}

.section-header {
  text-align: center;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-header .section-desc { text-align: center; }

.accent { color: var(--orange); }
.accent-gold { color: var(--gold-dark); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 16px 30px;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-call {
  background: var(--orange);
  color: var(--white);
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(255, 106, 26, 0.4);
}
.btn-call:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 106, 26, 0.5); }

/* Tous les boutons qui portent le numéro : bleu nuit + liseré doré.
   Le liseré les détache aussi bien sur fond clair que sur fond anthracite. */
a.btn-call[href^="tel:"] {
  background: var(--bleu-nuit);
  border: 2px solid var(--gold);
  box-shadow: 0 10px 25px rgba(11, 23, 40, 0.35);
}
a.btn-call[href^="tel:"]:hover {
  background: var(--bleu-nuit-dark);
  border-color: var(--gold-light);
  box-shadow: 0 14px 30px rgba(11, 23, 40, 0.45);
}
a.btn-call[href^="tel:"] svg { color: var(--gold); }

.btn-outline {
  background: transparent;
  color: var(--anthracite-900);
  border: 2px solid var(--anthracite-900);
}
.btn-outline:hover { background: var(--anthracite-900); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: var(--white); color: var(--anthracite-900); }

.btn-gold {
  background: var(--gold);
  color: var(--anthracite-900);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 12px 22px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 20, 26, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-link img { height: 98px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--gold-light); background: rgba(255,255,255,0.05); }
.main-nav a.active { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.header-phone svg {
  width: 40px; height: 40px;
  padding: 9px;
  background: var(--gold);
  border-radius: 50%;
  color: var(--anthracite-900);
  flex-shrink: 0;
}
.header-phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.header-phone-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-light); }
.header-phone-number { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 19px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1300;
}
.burger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
}
.nav-overlay-backdrop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #1b1e26 0%, #12141a 55%, #0c0d11 100%);
}
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212,175,55,0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 75%, rgba(255,106,26,0.14) 0%, transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 60px);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Repli si le JavaScript ne s'exécute pas : une photo reste en fond */
  background: var(--anthracite-900) url('../images/realisations/remorquage-1.jpg') center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-video.is-active { opacity: 1; }

/* Si le visiteur a demandé moins d'animations, on coupe le fondu */
@media (prefers-reduced-motion: reduce) {
  .hero-video { transition: none; }
}
.hero-photo-note {
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(0,0,0,0.55);
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px dashed rgba(212,175,55,0.5);
  z-index: 2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12,13,17,0.45) 0%, rgba(12,13,17,0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold-light);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero-tag .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc73;
  box-shadow: 0 0 0 rgba(61,220,115,0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,115,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(61,220,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,115,0); }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 30px;
}
.hero h1 strong { color: var(--gold); }

.hero-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 620px;
}
.hero-panel p {
  font-size: 17px;
  color: var(--anthracite-800);
}
.hero-panel p strong { color: var(--orange); font-weight: 700; }
.hero-panel .btn-call { font-size: 18px; padding: 20px 40px; }
/* Sur ordinateur le libellé reste sur une ligne : « Appeler maintenant — 06 … » */
.hero-panel .btn-call .btn-sub::after { content: ' —'; }
.hero-panel .btn-call .btn-sub { color: var(--gold-light); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ---------- Atouts ---------- */
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.atout-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.atout-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.atout-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--anthracite-900), var(--anthracite-700));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.atout-icon svg { width: 28px; height: 28px; color: var(--gold); }
.atout-card h3 { font-size: 19px; margin-bottom: 10px; }
.atout-card p { color: var(--text-muted); font-size: 15px; }

.section-dark {
  background: var(--anthracite-900);
  color: var(--white);
}
.section-dark .section-desc { color: rgba(255,255,255,0.65); }
.section-dark h2, .section-dark h3 { color: var(--white); }

/* ---------- Zones desservies (home) ---------- */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.zone-chip {
  background: var(--anthracite-800);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.zone-chip svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.zone-chip span { font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--anthracite-900), var(--anthracite-700));
  border-radius: var(--radius-lg);
  padding: 56px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(212,175,55,0.25) 0%, transparent 70%);
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.7); }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Services (page réalisations, haut) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--anthracite-700);
}
.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.service-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,20,26,0.05) 0%, rgba(18,20,26,0.95) 100%);
}
.service-card-content {
  position: relative;
  z-index: 1;
  padding: 30px;
  color: var(--white);
}
.service-card-content h3 { color: var(--white); font-size: 22px; margin-bottom: 8px; }
.service-card-content p { color: rgba(255,255,255,0.8); font-size: 14.5px; }
.service-photo-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 1;
  background: rgba(0,0,0,0.55);
  color: var(--gold-light);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px dashed rgba(212,175,55,0.5);
}

/* placeholder gradients per service (couleurs distinctes, à remplacer par vraies photos) */
.bg-ph-1 { background: linear-gradient(135deg, #2b3040, #12141a); }
.bg-ph-2 { background: linear-gradient(135deg, #3a2f1f, #12141a); }
.bg-ph-3 { background: linear-gradient(135deg, #232b26, #12141a); }
.bg-ph-4 { background: linear-gradient(135deg, #34222a, #12141a); }
.bg-ph-5 { background: linear-gradient(135deg, #22303a, #12141a); }
.bg-ph-6 { background: linear-gradient(135deg, #302a3a, #12141a); }

/* ---------- Réalisations (catégories + carrousel) ---------- */
.realisation-category {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}
.realisation-category:last-child { border-bottom: none; }

.category-head {
  margin-bottom: 30px;
  max-width: 720px;
}
.category-head h3 {
  font-size: 26px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-head h3 .cat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--anthracite-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.category-head h3 .cat-icon svg { width: 22px; height: 22px; color: var(--gold); }
.category-head p { color: var(--text-muted); font-size: 15.5px; }

.carousel {
  position: relative;
  margin-bottom: 26px;
}
/* Défilement natif : glissement au doigt avec inertie sur mobile,
   et accrochage automatique sur chaque photo. */
.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--radius-md);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* Edge ancien */
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-viewport:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.carousel-track {
  display: flex;
  gap: 24px;
}
.carousel-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  /* 4/5 plutôt que le carré : les photos sont en portrait, on en montre davantage */
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--anthracite-700);
}
.carousel-slide img,
.carousel-slide .slide-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  background: linear-gradient(135deg, var(--anthracite-700), var(--anthracite-900));
  text-align: center;
  padding: 16px;
}
.slide-placeholder svg { width: 34px; height: 34px; color: var(--gold); }
.slide-placeholder span { font-size: 12.5px; letter-spacing: 0.3px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.carousel-arrow:hover { background: var(--gold); }
.carousel-arrow svg { width: 20px; height: 20px; color: var(--anthracite-900); }
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }
.carousel-arrow[disabled] { opacity: 0.35; pointer-events: none; }

.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.carousel-pagination button {
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--off-white);
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.carousel-pagination button.active,
.carousel-pagination button:hover { background: var(--anthracite-900); color: var(--white); }

.category-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.carousel.single-photo .carousel-arrow,
.carousel.single-photo .carousel-pagination { display: none; }
.carousel.single-photo .carousel-slide { flex-basis: calc((100% - 36px) / 3); }

/* ---------- FAQ ---------- */
.faq-theme { margin-bottom: 54px; }
.faq-theme h2 {
  font-size: 24px;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--orange);
  margin-bottom: 26px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s, transform 0.3s;
}
.faq-item summary .faq-plus::before,
.faq-item summary .faq-plus::after {
  content: '';
  position: absolute;
  background: var(--anthracite-900);
  border-radius: 2px;
}
.faq-item summary .faq-plus::before { width: 12px; height: 2px; }
.faq-item summary .faq-plus::after { width: 2px; height: 12px; }
.faq-item[open] summary .faq-plus { background: var(--orange); transform: rotate(45deg); }
.faq-item[open] summary .faq-plus::before,
.faq-item[open] summary .faq-plus::after { background: var(--white); }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 800px;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--anthracite-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}
.contact-info-card h3 { color: var(--white); font-size: 20px; margin-bottom: 22px; }
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-row-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-light); margin-bottom: 4px; }
.contact-row-value { font-size: 15.5px; }
.contact-row-value a { text-decoration: underline; text-underline-offset: 3px; }

.contact-map {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-map iframe { width: 100%; height: 320px; border: 0; display: block; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form-note {
  background: rgba(255, 106, 26, 0.08);
  border: 1px solid rgba(255,106,26,0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--anthracite-800);
  margin-bottom: 26px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.contact-form-note svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; margin-top: 1px; }

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.footer-top {
  background: var(--off-white);
  padding: 64px 0;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
/* Le logo a un fond sombre : sur le beige du footer on l'assoit sur un bloc anthracite */
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  background: var(--anthracite-900);
  padding: 10px 16px;
  border-radius: var(--radius-md);
}
.footer-logo img { height: 72px; width: auto; }
.footer-about p { color: var(--text-muted); font-size: 14.5px; max-width: 340px; }
.footer-col h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: var(--text-muted); font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span, .footer-contact-item a { font-size: 14.5px; color: var(--text-muted); }

.footer-bottom {
  background: var(--anthracite-900);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  padding-bottom: 36px;
}
.footer-links-grid h4 { color: var(--gold); font-size: 13.5px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links-grid a { color: rgba(255,255,255,0.6); font-size: 13.5px; line-height: 2; display: block; transition: color 0.2s; }
.footer-links-grid a:hover { color: var(--white); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Barre d'appel permanente (mobile) ---------- */
.float-call-btn {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1250;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bleu-nuit);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  /* respecte la zone sûre des iPhone à encoche */
  padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(11, 23, 40, 0.4);
  border-top: 2px solid var(--gold);
}
.float-call-btn svg {
  width: 26px; height: 26px;
  color: var(--gold);
  flex-shrink: 0;
  animation: ringShake 2.4s infinite;
}
.float-call-btn .call-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  align-items: flex-start;
}
.float-call-btn .call-label small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.float-call-btn:active { background: var(--bleu-nuit-dark); }

@keyframes ringShake {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(-14deg); }
  90% { transform: rotate(12deg); }
  94% { transform: rotate(-8deg); }
}

/* ---------- Page banner (pages internes) ---------- */
.page-banner {
  background: linear-gradient(160deg, #1b1e26 0%, #12141a 100%);
  padding: 150px 0 80px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(212,175,55,0.15) 0%, transparent 55%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: var(--white); font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.page-banner p { color: rgba(255,255,255,0.65); max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--gold-light); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .atouts-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .zones-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-slide { flex-basis: calc((100% - 24px) / 2); }
  .carousel.single-photo .carousel-slide { flex-basis: calc((100% - 24px) / 2); }
  .footer-top-grid { grid-template-columns: 1fr 1fr; }
  .footer-links-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 900px) {
  /* Le numéro reste lisible : on compacte au lieu de masquer */
  .header-phone-label { display: none; }
  .header-phone-number { font-size: 17px; }
  .header-phone svg { width: 38px; height: 38px; padding: 8px; }
}

/* Sous 768px la barre d'appel fixe affiche déjà le numéro en permanence :
   l'en-tête se contente de l'icône pour éviter de le répéter trois fois. */
@media (max-width: 768px) {
  .header-phone-text { display: none; }
  .header-phone svg { width: 44px; height: 44px; padding: 10px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  :root { --header-height: 84px; }

  .burger { display: flex; }
  .main-nav {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--anthracite-900);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 110px 30px 30px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
    z-index: 1200;
    border-left: 1px solid rgba(212,175,55,0.25);
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s ease, visibility 0s;
  }
  .main-nav a { width: 100%; padding: 16px 10px; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,0.06); border-radius: 0; }
  .main-nav .btn { margin-top: 20px; width: 100%; }

  .logo-link img { height: 64px; }

  .atouts-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .zones-grid { grid-template-columns: 1fr; }
  .service-card { height: 320px; }

  .carousel-slide { flex-basis: 100%; }
  .carousel.single-photo .carousel-slide { flex-basis: 100%; }
  .carousel-arrow.prev { left: 4px; }
  .carousel-arrow.next { right: 4px; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-banner { flex-direction: column; text-align: center; padding: 40px 26px; }
  .cta-banner-actions { justify-content: center; }
  .cta-banner .btn { width: 100%; }

  .form-grid-2 { grid-template-columns: 1fr; }

  .float-call-btn { display: flex; }
  /* Réserve la place de la barre d'appel pour ne pas masquer le bas de page */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  /* Zones tactiles : minimum 44px (recommandation Apple / Google) */
  .carousel-pagination button { min-width: 44px; height: 44px; font-size: 14px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .header-phone { min-height: 44px; }
  .faq-item summary { padding: 18px 20px; min-height: 60px; }

  .hero-panel { padding: 24px 20px; gap: 16px; }
  .hero-panel p { font-size: 15.5px; line-height: 1.5; }
  /* dvh suit la barre d'URL mobile ; vh sert de repli */
  .hero { min-height: 100vh; min-height: 100dvh; padding: 24px 0; }
  .hero h1 { font-size: 27px; margin-bottom: 20px; }
  /* Le titre annonce déjà 24h/24 : le bandeau ferait doublon */
  .hero-tag { display: none; }

  /* Le bouton du hero devient le numéro lui-même, en très gros */
  .hero-panel .btn-call {
    width: 100%;
    flex-direction: column;
    gap: 2px;
    font-size: 25px;
    padding: 16px 20px;
    letter-spacing: 0.5px;
    line-height: 1.15;
  }
  .hero-panel .btn-call svg { display: none; }
  .hero-panel .btn-call .btn-sub {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.92;
  }
  .hero-panel .btn-call .btn-sub::after { content: none; }

  .hero-trust { gap: 10px 20px; margin-top: 24px; font-size: 13px; }

  .page-banner { padding: 60px 0 50px; }
  .contact-form-card { padding: 26px 20px; }
  .contact-info-card { padding: 30px 24px; }
  .realisation-category { padding: 40px 0; }
  .category-head h3 { font-size: 22px; }
}

/* Petits téléphones (iPhone SE, etc.) */
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .hero-panel .btn-call { font-size: 22px; }
  .float-call-btn { font-size: 18px; gap: 10px; }
  .logo-link img { height: 62px; }
  .header-phone-number { font-size: 15px; }
}

/* Téléphone en mode paysage : le hero plein écran devient illisible */
@media (max-width: 900px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 50px 0 40px; }
}

@media (max-width: 480px) {
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .header-phone-label { display: none; }
}

/* ---------- Carrousel : confort de défilement ---------- */
/* Indicateur de page actif plus lisible pendant le glissement */
.carousel-pagination button {
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.carousel-pagination button.active { transform: scale(1.08); }

/* Les flèches disparaissent en bout de course plutôt que de rester inertes */
.carousel-arrow { transition: background 0.2s, opacity 0.25s, visibility 0.25s; }
.carousel-arrow.is-hidden { opacity: 0; visibility: hidden; }

/* Les photos ne doivent pas être « attrapées » comme des images à déplacer */
.carousel-slide img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* Sur mobile, un aperçu de la photo suivante indique qu'on peut faire glisser */
@media (max-width: 768px) {
  /* Une seule photo à la fois, entière et centrée : aucun morceau
     de la suivante ne dépasse dans le cadre. */
  .carousel-slide { flex-basis: 100%; }
  .carousel.single-photo .carousel-slide { flex-basis: 100%; }
  .carousel-track { gap: 16px; }
}

/* Respecte le réglage système « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  .carousel-viewport { scroll-behavior: auto; }
  .carousel-pagination button.active { transform: none; }
}
