/* ============================================================
   KD Recyclage — Feuille de styles principale
   Mobile-first | CSS Variables | Accessibilité
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --primary:       #2d6a4f;
  --primary-light: #40916c;
  --primary-dark:  #1b4332;
  --accent:        #e8a020;
  --accent-hover:  #c8881a;
  --text:          #212529;
  --text-muted:    #6c757d;
  --bg:            #f4f6f4;
  --bg-dark:       #1b2e23;
  --white:         #ffffff;
  --border:        #d8e4dc;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 24px rgba(0,0,0,.12);
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    .25s ease;
  --nav-h:         72px;
  --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-light); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

ul { list-style: none; }

/* ── Helpers ─────────────────────────────────────────────── */
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,160,32,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: .9rem 2rem;
  font-size: 1rem;
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.hamburger { margin-left: auto; }

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.navbar-logo img {
  height: 50px;
  width: auto;
}
.navbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}
.navbar-brand span { color: var(--accent); }

/* Nav links */
.navbar-menu {
  display: none;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .9rem;
  color: var(--text);
  font-weight: 500;
  font-size: .93rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] {
  color: var(--primary);
  background: var(--bg);
}

.nav-link svg { transition: transform var(--transition); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem .75rem .75rem;
  display: none;
  grid-template-columns: 1fr;
  gap: .25rem;
}
.dropdown.open,
.nav-item:hover .dropdown { display: grid; }

.dropdown-group {
  background: var(--bg);
  border-radius: var(--radius);
  padding: .75rem 1rem;
}
.dropdown-group-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .2rem;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  border-radius: 4px;
  transition: color var(--transition), padding-left var(--transition);
}
.dropdown-item:hover {
  color: var(--primary);
  padding-left: .4rem;
}
.dropdown-item::before {
  content: '›';
  color: var(--primary-light);
  font-size: 1rem;
}

/* CTA navbar */
.navbar-cta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 1rem 1.5rem 2rem;
}
.mobile-menu.open { display: block; }

.mobile-nav-link {
  display: block;
  padding: .85rem .5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-link:hover { color: var(--primary); }

.mobile-submenu { padding-left: 1rem; }
.mobile-submenu-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  padding: .75rem .5rem .3rem;
}
.mobile-submenu-item {
  display: block;
  padding: .5rem .5rem;
  color: var(--text-muted);
  font-size: .9rem;
  border-bottom: 1px solid var(--bg);
}
.mobile-submenu-item:hover { color: var(--primary); }
.mobile-cta { margin-top: 1.5rem; display: block; text-align: center; }

/* Offset pour le contenu sous le nav */
.page-offset { padding-top: var(--nav-h); }

/* Desktop nav */
@media (min-width: 768px) {
  .navbar-menu { display: flex; }
  .hamburger { display: none; }
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: cover;
  background-position: center;
  opacity: .18;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 3rem 0;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  opacity: .9;
}
.hero-badge svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   SECTIONS GENERIQUES
══════════════════════════════════════════════════════════ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg); }
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,.7); }

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.card p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary);
}
.card-link:hover { gap: .6rem; }

/* Card service – image */
.card-service {
  padding: 0;
  overflow: hidden;
}
.card-service-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.card-service-body { padding: 1.5rem; }

/* ══════════════════════════════════════════════════════════
   ZONES D'INTERVENTION
══════════════════════════════════════════════════════════ */
.zones-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.zones-split .section-header {
  text-align: left;
  margin-bottom: 1.5rem;
}
.zones-cards {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.zone-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: background var(--transition), transform var(--transition);
}
.zone-card:hover {
  background: rgba(255,255,255,.13);
  transform: translateX(4px);
}
.zone-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  min-width: 2.5rem;
  flex-shrink: 0;
}
.zone-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .15rem;
}
.zone-dept {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.zones-map-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 320px;
}
.zones-map-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}
@media (max-width: 820px) {
  .zones-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .zones-split .section-header { text-align: center; }
  .zones-map-panel { min-height: 220px; padding: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-val {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}
.section-dark .stat-val { color: var(--accent); }
.stat-label {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: .3rem;
}
.section-dark .stat-label { color: rgba(255,255,255,.65); }

/* ══════════════════════════════════════════════════════════
   CONFIANCE FEATURE CARDS (3 images)
══════════════════════════════════════════════════════════ */
.confiance-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 840px;
  margin: 0 auto 2rem;
}
.confiance-feature {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.confiance-feature:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.confiance-feature-img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
}
.confiance-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .35rem;
}
.confiance-feature p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 640px) {
  .confiance-features {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* ══════════════════════════════════════════════════════════
   TRUST / ARGUMENTS
══════════════════════════════════════════════════════════ */
.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .trust-list { grid-template-columns: 1fr; }
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.trust-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.trust-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.trust-item p { font-size: .85rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   SERVICE PAGE HERO (interne)
══════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.page-hero p {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 600px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  opacity: .75;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { opacity: .85; }
.breadcrumb-sep { opacity: .5; }

/* ══════════════════════════════════════════════════════════
   SERVICE DETAILS (grille de sous-services)
══════════════════════════════════════════════════════════ */
.sub-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .sub-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sub-services-grid { grid-template-columns: 1fr; }
}
/* 5 cards: center last 2 on PC using a 6-virtual-column grid */
@media (min-width: 901px) {
  .sub-services-grid--5 {
    grid-template-columns: repeat(6, 1fr);
  }
  .sub-services-grid--5 .sub-service-card {
    grid-column: span 2;
  }
  .sub-services-grid--5 .sub-service-card:nth-child(4) {
    grid-column: 2 / 4;
  }
  .sub-services-grid--5 .sub-service-card:nth-child(5) {
    grid-column: 4 / 6;
  }
}
.sub-service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.sub-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.sub-service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.sub-service-body { padding: 1.5rem; }
.sub-service-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .4rem;
}
.sub-service-body p { color: var(--text-muted); font-size: .9rem; }

/* Intro 2 colonnes (texte + image + bouton) */
.intro-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3rem;
}
.intro-2col-text {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.intro-2col-img {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: stretch;
}
.intro-2col-btn {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: start;
}
@media (max-width: 767px) {
  .intro-2col {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
  }
  .intro-2col-text { grid-column: 1; grid-row: 1; text-align: center; }
  .intro-2col-img  { grid-column: 1; grid-row: 2; }
  .intro-2col-btn  { grid-column: 1; grid-row: 3; justify-self: center; }
}

/* 2-col layout with text + image */
.responsive-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 767px) {
  .responsive-2col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .responsive-2col > div:first-child {
    text-align: center;
  }
  .responsive-2col > div:first-child .trust-list,
  .responsive-2col > div:first-child .trust-item,
  .responsive-2col > div:first-child .trust-item * {
    text-align: left;
  }
}

/* Déchets acceptés/non acceptés grid */
.dechets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.dechets-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}
.dechets-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dechets-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .92rem;
}
.dechets-card ul li {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.dechets-card .dechets-note {
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .dechets-grid {
    grid-template-columns: 1fr;
  }
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  counter-increment: step;
}
.process-step::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 1.5rem;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: .9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.process-step p { font-size: .88rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.cta-banner p {
  font-size: 1.05rem;
  opacity: .85;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 1.5rem;
  transition: opacity var(--transition);
}
.cta-phone:hover { opacity: .8; color: var(--white); }

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.contact-info-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: .2rem;
}
.contact-info-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.contact-info-val a {
  color: var(--text);
  font-weight: 700;
}
.contact-info-val a:hover { color: var(--primary); }

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--primary-dark);
}
.form-card .form-sub {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.1rem;
}
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
label .required { color: #e53e3e; margin-left: 2px; }

input, textarea, select {
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
textarea { resize: vertical; min-height: 130px; }

.form-submit { width: 100%; justify-content: center; margin-top: .5rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--primary-dark);
}
.form-success svg { margin: 0 auto 1rem; }
.form-success h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }

/* Zones map placeholder */

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo img { height: 48px; margin-bottom: 1rem; }
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-desc { font-size: .88rem; line-height: 1.7; }

.footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.1rem;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
  font-size: .88rem;
}
.footer-contact-item a { color: rgba(255,255,255,.65); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ══════════════════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover { background: var(--primary-dark); }

/* ══════════════════════════════════════════════════════════
   GALERIE / IMAGE GRID
══════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: .75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); }
}
.gallery-item { overflow: hidden; }
.gallery-item:first-child {
  grid-row: 1 / 3;
  grid-column: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ══════════════════════════════════════════════════════════
   BENNES TABLE (location)
══════════════════════════════════════════════════════════ */
.benne-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.benne-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.benne-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.benne-size {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.benne-unit {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.benne-desc { font-size: .85rem; color: var(--text-muted); }
@media (max-width: 600px) {
  .benne-cards {
    grid-template-columns: 1fr 1fr;
  }
  .benne-cards .benne-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - .5rem);
    margin: 0 auto;
  }
}

/* ══════════════════════════════════════════════════════════
   MÉTAUX TABLE
══════════════════════════════════════════════════════════ */
.metaux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 901px) {
  .metaux-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .metaux-grid .metal-card:nth-child(6) { grid-column: 2; }
  .metaux-grid .metal-card:nth-child(7) { grid-column: 3; }
  .metaux-grid .metal-card:nth-child(8) { grid-column: 4; }
}
.metal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.metal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.metal-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #c8881a 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
}
.metal-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); }
.metal-card p { font-size: .85rem; color: var(--text-muted); margin-top: .2rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════════════════════════ */

/* ── Tablette ≤ 767px ─────────────────────────────────── */
@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }

  /* Hero : centrer le contenu */
  .hero-content { text-align: center; padding: 2.5rem 0; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; gap: 1rem; }

  /* Galerie */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
  }
  .gallery-item:first-child { grid-row: auto; grid-column: auto; }
  /* Dernière image seule : même format, centrée, coins bas arrondis */
  .gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - .375rem);
    height: 200px;
    margin: 0 auto;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
  }

  /* Trust list : 2 colonnes sur tablette */
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Cards & footer */
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile ≤ 480px ────────────────────────────────────── */
@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }

  /* Hero : boutons pleine largeur */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges { flex-direction: column; align-items: center; gap: .75rem; }

  /* Confiance features : pleine largeur, pas de max-width restrictif */
  .confiance-features { max-width: 100%; grid-template-columns: 1fr; }

  /* Trust list : 1 colonne */
  .trust-list { grid-template-columns: 1fr; }

  /* CTA : boutons empilés */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Galerie : hauteurs réduites */
  .gallery-grid { grid-template-rows: repeat(3, 160px); }
  .gallery-item:last-child:nth-child(odd) { height: 160px; }
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════════ */
@media print {
  .navbar, .mobile-menu, #back-to-top, .hero-bg { display: none !important; }
  .page-offset { padding-top: 0 !important; }
  .hero { min-height: auto; padding: 2rem 0; }
}
