/* ==========================================================
   VALDEC — feuille de styles
   Conception : Stratégie Média +
   ========================================================== */

:root {
  --main: #125D74;
  --teal: #1C979E;
  --green: #77B82A;
  --green-btn: #6fb92c;
  --green-dark: #5fa322;
  --orange: #F06C00;
  --dark: #343A40;
  --footer: #0F1218;
  --bottom: #14171F;
  --text: #212121;
  --muted: #6c757d;
  --border: #e9ecef;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font-family: 'Roboto', Arial, sans-serif; color: var(--text); background: #fff; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.03); }
::-webkit-scrollbar-thumb { background: var(--dark); }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, h5, h6, .h1 {
  color: var(--main); font-family: 'Montserrat', sans-serif; font-weight: 800;
  text-transform: uppercase; line-height: 1.2; margin: 0 0 .6em;
}
h1, .h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p { font-size: 1.1em; line-height: 1.6em; margin: 0 0 1rem; }
.black-title { color: #000 !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.lead { padding: 1rem 0; }
.uppercase-note { text-transform: uppercase; margin: 2rem 0 1.5rem; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.section { padding: 4.5rem 15px; }
.section-title { margin: 3rem 0 1.5rem; }

/* ---------- Navigation ---------- */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; background: var(--dark); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: .5rem 1rem; min-height: 56px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu a {
  display: block; padding: .5rem .8rem; color: #fff; text-decoration: none;
  font-family: 'Oswald', sans-serif; font-size: 18px;
  transition: color .3s ease-in-out, transform .3s ease;
}
.menu a:hover, .menu .active a { color: orange; transform: scale(1.1); }
.nav-phone {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--green);
  color: #fff; text-decoration: none; padding: .3rem .7rem;
  font-family: 'Oswald', sans-serif; font-size: 20px; white-space: nowrap;
}
.nav-phone svg { width: 22px; height: 22px; fill: currentColor; }
.burger { display: none; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 8px 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- En-têtes (hero) ---------- */
.hero {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-size: cover; background-position: center; color: #fff; padding: 90px 15px 40px;
}
.hero-full {
  min-height: 100vh;
  background-image: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.6)), url('../../images/web/bennes/2.JPG');
}
.hero-page { min-height: 60vh; }
.hero h1, .hero h5, .hero h6 { color: #fff; }
.hero-content { width: 100%; max-width: 1140px; }
.hero-logo { margin: 0 auto; width: min(560px, 85%); }
.hero-address { color: #fff; margin: 1.2rem 0; }
.hero-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 620px; margin: 0 auto; }
.hero-services-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-top: 2rem; }
.hero-service { display: block; text-decoration: none; padding: .5rem; }
.hero-service img { margin: 0 auto .6rem; max-width: 90px; transition: transform .2s ease-in-out; }
.hero-services-2 .hero-service img { max-width: 120px; }
.hero-service:hover img { transform: rotate(15deg); }
.hero-service h6, .hero-service h5 { color: #fff; transition: color .3s ease-in-out; margin: 0; }
.hero-service:hover h6, .hero-service:hover h5 { color: orange; }
.hero-services-2 h5 { padding: 1rem 0; }

/* ---------- Contenus ---------- */
.icons-strip { margin: 0 auto; }
.gallery { display: grid; gap: 1rem; margin: 1rem 0; }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.gallery a { display: block; }
.img-acc { box-shadow: -1px 5px 10px -4px rgba(0,0,0,.4); transition: box-shadow .3s ease-in-out; width: 100%; }
.img-acc:hover { box-shadow: -1px 5px 10px -4px rgba(0,0,0,.8); }
.wide-img { display: block; margin-top: 1.5rem; }
.wide-img img { width: 100%; }

.split { display: grid; gap: 2rem; align-items: center; }
.split-8-4 { grid-template-columns: 2fr 1fr; }
.split-6-6 { grid-template-columns: 1fr 1fr; }
.volumes { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.volumes li { background: var(--main); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; padding: .35rem .8rem; border-radius: 4px; }

.features .feature { display: flex; gap: 1.2rem; align-items: center; padding: .6rem 0; }
.features .feature img { flex: 0 0 60px; }
.features .feature p { margin: 0; }

.img-item { height: 25vh; background-size: cover; background-position: center;
  box-shadow: -1px 5px 10px -4px rgba(0,0,0,.4); transition: box-shadow .3s ease-in-out; }
.img-item:hover { box-shadow: -1px 5px 10px -4px rgba(0,0,0,.8); }

.banner-img { margin: 1rem 0; }

/* ---------- Tarifs granulés ---------- */
.price-section { margin: 3rem 0 2.5rem; }
.price-title { text-align: center; margin-bottom: 8px; }
.price-subtitle { text-align: center; color: var(--muted); margin-bottom: 30px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.price-card {
  position: relative; padding: 32px 24px 28px; text-align: center; background: #fff;
  border: 2px solid var(--border); border-radius: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.price-card-delivery { border-color: var(--green-btn); }
.price-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef3f4; color: var(--teal); }
.price-card-delivery .price-icon { background: #edf7e3; color: var(--green-dark); }
.price-icon svg { width: 32px; height: 32px; }
.price-label { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.price-where { color: var(--muted); font-size: 14px; min-height: 40px; margin-bottom: 14px; }
.price-amount { font-family: 'Montserrat', sans-serif; font-size: 46px; font-weight: 800; line-height: 1; color: var(--bottom); }
.price-card-delivery .price-amount { color: var(--green-dark); }
.price-unit { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.price-actions { text-align: center; margin-top: 30px; }
.btn-order, .btn-submit {
  display: inline-block; padding: 14px 36px; border: none; border-radius: 10px; background: var(--green-btn);
  color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .5px;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s ease, transform .15s ease;
}
.btn-order:hover, .btn-submit:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.price-note { text-align: center; margin-top: 18px; color: var(--muted); }

/* ---------- Formulaires ---------- */
.form-control {
  width: 100%; border: none; border-radius: 10px; padding: 14px 18px; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: box-shadow .25s ease, transform .25s ease;
}
.form-control:focus { outline: none; box-shadow: 0 0 0 3px rgba(28,151,158,.4), 0 2px 10px rgba(0,0,0,.2); transform: translateY(-1px); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { appearance: auto; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rgpd { display: flex; gap: .6rem; align-items: flex-start; font-size: 13px; line-height: 1.4; margin: 14px 0 4px; cursor: pointer; }
.rgpd input { margin-top: 2px; flex: 0 0 auto; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.alert-ok { background: #edf7e3; color: #3d6d12; border: 1px solid #b9de93; }
.alert-err { background: #fdecea; color: #8a1f11; border: 1px solid #f5c2bb; }

.order-section { padding: 3rem 0; }
.order-form label:not(.rgpd) { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 6px 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.grid-2 .full { grid-column: 1 / -1; }
.order-form .rgpd { margin: 0; }
.btn-inline { width: auto; }

/* ---------- Tableau comparatif ---------- */
.compare-section { padding: 2rem 0 1rem; }
.table-responsive { overflow-x: auto; }
.table-striped { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table-striped th, .table-striped td { padding: .75rem; border-top: 1px solid #dee2e6; text-align: left; vertical-align: middle; }
.table-striped thead th { border-bottom: 2px solid #dee2e6; }
.table-striped thead img { max-height: 60px; width: auto; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(0,0,0,.05); }

/* ---------- Déchetterie ---------- */
.waste-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; justify-items: center; align-items: center; }
.box { border-radius: .25rem; padding: 1rem; text-align: center; }
.box-lg { padding: 3rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.box h5 { color: #fff; margin: 0; }
.bg-main { background: var(--main); }
.bg-orange { background: var(--orange); }
.bg-orange a { color: var(--main); }
.site-card { height: 100%; padding: 24px; background: #fff; border: 2px solid var(--border); border-radius: 12px; text-align: center; }
.site-card h5 { color: var(--bottom); margin-bottom: 8px; }
.site-card p { margin-bottom: 12px; color: #495057; }
.map-link { font-weight: 600; color: var(--teal); text-decoration: none; }
.map-link:hover { text-decoration: underline; }

/* ---------- Mentions légales ---------- */
.legal h3 { margin-top: 2rem; }
.legal h5 { margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #fff; padding: 5rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.footer h5 { color: #fff; margin-bottom: 1.5rem; }
.footer .hours, .footer p { color: #fff; }
.map-box { position: relative; border-radius: 10px; overflow: hidden; margin: 1.5rem 0; background: #1b2029; aspect-ratio: 16 / 9; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.map-placeholder p { font-size: .95rem; }
.btn-map { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 8px; padding: 8px 18px; cursor: pointer; font-family: inherit; }
.btn-map:hover { background: rgba(255,255,255,.1); }
.fb-link { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; background: #1877F2; padding: 10px 16px; border-radius: 8px; font-weight: 500; }
.fb-link svg { width: 22px; height: 22px; fill: currentColor; }
.fb-link:hover { background: #0f63d1; }
.contact-form .form-row { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-form textarea { margin-bottom: 4px; }
.contact-form .rgpd { color: #ccc; }
.contact-form .rgpd a { color: #fff; }
.contact-form .btn-submit { width: 100%; margin-top: 12px; }

.footer-bottom { background: var(--bottom); padding: 1.5rem 0; }
.footer-bottom p { color: #fff; text-align: center; font-size: .95rem; margin: 0; }
.footer-bottom a { color: #fff; }

/* ---------- Bandeau cookies ---------- */
.cookie-bar { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 500; background: #252958; padding: .8rem 0; }
.cookie-inner { display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; }
.cookie-inner p { color: #fff; margin: 0; font-size: .9rem; }
.cookie-actions { display: flex; gap: .5rem; flex: 0 0 auto; }
.cookie-actions button { border: none; border-radius: .25rem; padding: .45rem .9rem; cursor: pointer; font-family: inherit; font-size: .95rem; color: #fff; }
.btn-cookie-ok { background: var(--green); font-weight: 700; }
.btn-cookie-no { background: var(--dark); }

/* ---------- Lightbox ---------- */
.lbx { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; }
.lbx img { max-width: 92vw; max-height: 86vh; border: 4px solid #fff; border-radius: 3px; }
.lbx button { position: absolute; background: rgba(0,0,0,.4); border: none; color: #fff; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lbx button:hover { background: rgba(255,255,255,.2); }
.lbx-close { top: 16px; right: 16px; }
.lbx-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lbx-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lbx-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .burger { display: block; }
  .navbar-inner { flex-wrap: wrap; }
  .menu { display: none; order: 3; width: 100%; flex-direction: column; padding: .5rem 0; }
  .menu.open { display: flex; }
  .menu a:hover, .menu .active a { transform: none; }
  .nav-phone { font-size: 18px; }
}
@media (max-width: 767px) {
  .split-8-4, .split-6-6, .footer-grid, .price-grid, .grid-2 { grid-template-columns: 1fr; }
  .gallery-4, .waste-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-services { grid-template-columns: repeat(2, 1fr); }
  .hero-full, .hero-page { min-height: auto; padding-top: 100px; padding-bottom: 50px; }
  .contact-form .form-row { flex-direction: column; gap: 18px; }
  .cookie-inner { flex-direction: column; text-align: center; gap: .7rem; }
  .price-where { min-height: 0; }
  .box-lg { padding: 2rem 1rem; }
  .section { padding: 3rem 15px; }
}
