@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* =========================================================
   01 — VARIABLES GLOBALES
========================================================= */
:root {
  --wrap: min(1240px, calc(100vw - 48px));

  --font-body: "Inter", Arial, sans-serif;
  --font-title: "Playfair Display", Georgia, serif;

  --black: #0a0a0a;
  --black-soft: #151515;
  --black-card: #1b1b1b;

  --orange: #ff6a00;
  --orange-2: #ff8424;
  --orange-soft: #ffb37c;

  --brand-blue: #0b3b82;

  --white: #ffffff;
  --bg: #f6f3ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf8;

  --text: #1f1b19;
  --muted: #5e564f;
  --line: rgba(18, 18, 18, 0.10);

  --shadow-soft: 0 12px 30px rgba(10, 10, 10, 0.07);
  --shadow-card: 0 18px 42px rgba(10, 10, 10, 0.10);
  --shadow-strong: 0 24px 54px rgba(10, 10, 10, 0.16);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
}

/* =========================================================
   02 — RESET / BASE
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  overflow-x: hidden;
}

body.prest-page,
body.contact-page,
body.actualites-page,
body.legal-page {
  background: var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--wrap);
  margin: 0 auto;
}

.block-orange {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   03 — BANNIÈRE COMMUNE
========================================================= */
.hero-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--black);
  overflow: hidden;
  line-height: 0;
  border-bottom: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* =========================================================
   04 — MENU COMMUN
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid rgba(255, 106, 0, 0.28);
  box-shadow: 0 14px 30px rgba(10, 10, 10, 0.18);
}

.nav-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text__blue {
  color: var(--brand-blue);
}

.brand-text__orange {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1 1 auto;
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 1.02rem;
  font-weight: 800;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--orange);
  transition: transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--orange);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.btn-devis {
  min-height: 58px;
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 18px 34px rgba(255, 106, 0, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-devis:hover {
  transform: translateY(-2px);
  background: var(--orange-2);
  box-shadow: 0 22px 42px rgba(255, 106, 0, 0.32);
}

/* =========================================================
   05 — COMPOSANTS GLOBAUX
========================================================= */
.btn,
.btn-cta,
.btn-outline {
  min-height: 56px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn-cta:hover,
.btn-outline:hover {
  transform: translateY(-2px);
}

.btn--primary,
.btn-cta {
  background: var(--orange);
  color: #fff;
  border: 0;
  box-shadow: 0 16px 28px rgba(255, 106, 0, 0.18);
}

.btn--primary:hover,
.btn-cta:hover {
  background: var(--orange-2);
}

.btn--secondary,
.btn-outline {
  background: #fff;
  color: var(--black-soft);
  border: 1px solid rgba(18, 18, 18, 0.12);
}

.section {
  padding: 40px 0;
}

.section-head,
.section-heading {
  max-width: 860px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head h2,
.section-heading h2,
.section-title,
.page-title h1,
.intervention-title,
.cta-band h2,
.cta-title {
  font-family: var(--font-title);
  line-height: 1.08;
}

.section-head h2,
.section-heading h2 {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.section-head p,
.section-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-kicker,
.hero-kicker {
  display: inline-flex;
  min-height: 36px;
  padding: 0 15px;
  align-items: center;
  border-radius: var(--radius-pill);
  color: var(--orange);
  background: rgba(255, 106, 0, 0.10);
  border: 1px solid rgba(255, 106, 0, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* =========================================================
   06 — PAGE ACCUEIL : index.html
========================================================= */
body.home-page,
body.home-clean,
body:not(.prest-page):not(.contact-page):not(.actualites-page):not(.legal-page) {
  background: var(--bg);
}

.intro-strip {
  padding: 18px 0 35px;
}

.intro-strip__box {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 12px;
  text-align: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.intro-strip__box p {
  margin: 0 auto;
  max-width: 1180px;
  color: var(--text);
  font-size: 1.09rem;
}

.intro-strip__box strong {
  color: var(--orange);
}

.services-section {
  padding-top: 65px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-card__media {
  height: 250px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f6f3ef;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
}

.service-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 28px;
  text-align: left;
}

.service-card__body h3 {
  margin: 0 0 12px;
  color: var(--black-soft);
  font-family: var(--font-title);
  font-size: 1.55rem;
  line-height: 1.15;
  text-align: center;
}

.service-card__body p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  text-align: left;
}

.service-card__body .btn {
  margin-top: auto;
  align-self: center;
}

.about-section {
  padding-top: 48px;
  padding-bottom: 42px;
}

.about-section__stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}

.about-section__copy {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 12px;
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.about-section__copy h2 {
  margin: 0 auto 16px;
  max-width: 1100px;
  color: var(--orange);
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.about-section__copy p {
  max-width: 1060px;
  margin: 0 auto 28px;
  color: var(--text);
  font-size: 1.08rem;
}

.about-section__media {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.about-section__media img {
  width: 100%;
  height: auto;
}

.team-section {
  padding-top: 48px;
}

.team-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  padding: 34px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.team-card__avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10, 10, 10, 0.10);
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3,
.team-card__body strong {
  display: block;
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--black-soft);
}

.team-card__role,
.team-card__body span {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-weight: 800;
}

.team-card p,
.team-card__body p {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--muted);
}

.cta-contact {
  padding-top: 34px;
  padding-bottom: 84px;
}

.cta-contact__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cta-title {
  margin: 0 0 10px;
  color: var(--black-soft);
  font-size: clamp(2rem, 3vw, 3rem);
}

.cta-lead {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================================================
   07 — PAGES PRESTATIONS : STRUCTURE COMMUNE
   Assainissement, Surpression, Irrigation.
========================================================= */
.page-header {
  padding: 58px 0 28px;
}

.page-header--intro-only {
  padding-bottom: 22px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  color: #7a7068;
  font-weight: 700;
}

.page-title {
  max-width: 1040px;
  margin: 0 auto;
}

.page-title h1 {
  margin: 0 0 10px;
  color: var(--black-soft);
  font-size: clamp(2.3rem, 4vw, 3.65rem);
  letter-spacing: -0.03em;
}

.page-title__brand {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 1.12rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-intro {
  position: relative;
  max-width: 1040px;
  margin: 18px auto 0;
  padding-left: 36px;
  color: var(--text);
  font-size: 1.12rem;
}

.page-intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 8px;
  border-radius: 999px;
  background: var(--orange);
}

.page-intro p {
  margin-bottom: 0;
}

.content-section {
  padding: 34px 0 0;
}

.service-block {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}

.service-media {
  position: sticky;
  top: 118px;
  width: 430px;
  height: 660px;
  overflow: hidden;
  border-radius: 40px;
  background: linear-gradient(180deg, #2a2a2f 0%, #151518 100%);
  box-shadow: var(--shadow-strong);
}

.service-media__photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 660px;
  margin: 0;
  overflow: hidden;
}

.service-media__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 18, 0.02) 0%,
    rgba(15, 15, 18, 0.16) 45%,
    rgba(15, 15, 18, 0.82) 100%
  );
  pointer-events: none;
}

.service-media__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.service-media__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}

.service-media__tag {
  display: inline-flex;
  min-height: 38px;
  padding: 0 16px;
  align-items: center;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-column {
  padding-top: 20px;
}

.section-title {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: clamp(1.9rem, 3vw, 2.85rem);
}

.section-text {
  color: var(--text);
  font-size: 1.11rem;
}

.subheading {
  margin: 30px 0 10px;
  color: var(--black-soft);
  font-family: var(--font-title);
  font-size: 1.85rem;
  line-height: 1.2;
}

.arrow-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.arrow-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 1.06rem;
}

.arrow-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid var(--orange);
  border-right: 2.5px solid var(--orange);
  transform: rotate(45deg);
}

/* =========================================================
   08 — GALERIES PHOTOS DES PAGES PRESTATIONS
========================================================= */
.photo-gallery {
  margin: 54px auto 0;
}

.photo-gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 20px;
}

.photo-gallery__head h2 {
  margin: 0;
  color: var(--black-soft);
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.photo-gallery__head p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.photo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.photo-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: var(--shadow-soft);
}

.photo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

.photo-card__body {
  padding: 20px 22px 24px;
}

.photo-card__body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--black-soft);
  font-size: 1.08rem;
}

.photo-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* =========================================================
   09 — DOMAINES D’INTERVENTION
========================================================= */
intervention-section {
  padding: 70px 0 44px;
  background: var(--bg);
}

intervention-section {
  padding: 42px 0 44px;
  background: var(--bg);
}

.intervention-section {
  padding: 32px 0 44px;
  background: var(--bg);
}

.intervention-title {
  margin: 0 0 22px;
  color: var(--orange);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.1;
  font-weight: 700;
}

.intervention-intro {
  max-width: 1080px;
  margin: 0 0 34px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.intervention-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}

.intervention-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-left: 4px solid var(--orange);
  border-radius: 24px;
  padding: 24px 24px 22px;
  box-shadow: 0 10px 24px rgba(10, 10, 10, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intervention-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(10, 10, 10, 0.07);
}

.intervention-card h3 {
  margin: 0 0 10px;
  color: var(--black-soft);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
}

.intervention-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* =========================================================
   10 — CTA GLOBAL
========================================================= */
.cta-band {
  background: var(--orange);
  color: #fff;
  padding: 76px 0 82px;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
}

.cta-band p {
  max-width: 920px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.14rem;
}

.cta-band .btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-band .btn-cta,
.cta-band .btn--primary {
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cta-band .btn-outline,
.cta-band .btn--secondary {
  border: 2px solid #fff;
  background: #fff;
  color: var(--black-soft);
}

/* =========================================================
   11 — PAGE CONTACT : contact.html
========================================================= */
.contact-page .page-header {
  padding-bottom: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.contact-form,
.contact-info {
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: var(--black-soft);
  font-weight: 800;
  font-size: 0.96rem;
}

.field input,
.field select,
.field textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(18, 18, 18, 0.14);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 106, 0, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

.field--textarea textarea,
.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.consent input {
  width: auto;
  margin-top: 5px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-info__block {
  margin-bottom: 22px;
}

.contact-info h3 {
  margin: 12px 0 12px;
  color: var(--orange);
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.1;
}

.contact-info p {
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.info-item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-left: 4px solid var(--orange);
  border-radius: 20px;
}

.info-item strong {
  color: var(--black-soft);
}

.info-item a {
  color: var(--orange);
  font-weight: 800;
}

.map-wrap {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(18, 18, 18, 0.08);
}

.map {
  width: 100%;
  min-height: 330px;
  display: block;
}

.contact-page .btn--primary,
.contact-page button[type="submit"] {
  background: var(--orange) !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 18px 34px rgba(255, 106, 0, 0.26) !important;
}

.contact-page .btn--secondary {
  background: #fff;
  color: var(--black-soft);
  border: 1px solid rgba(18, 18, 18, 0.12);
}

/* =========================================================
   12 — PAGE ACTUALITÉS : actualites.php
========================================================= */
.actualites-listing,
.news-section {
  padding: 72px 0;
}

.actualites-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.actualite-card,
.news-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: var(--shadow-soft);
}

.actualite-card .photo-card__body,
.actualite-card__body,
.news-card__body {
  padding: 24px;
}

.actualite-date,
.news-date {
  display: inline-flex;
  min-height: 32px;
  padding: 0 12px;
  align-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 106, 0, 0.10);
  color: var(--orange);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.actualite-card h2,
.news-card h2,
.news-card h3 {
  margin: 0 0 10px;
  color: var(--black-soft);
  font-family: var(--font-title);
  font-size: 1.45rem;
  line-height: 1.15;
}

.actualite-card p,
.news-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.empty-state,
.actualites-empty,
.actualites-db-error {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 30px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   13 — PAGE MENTIONS LÉGALES
========================================================= */
.legal-page .contact-form h2 {
  margin-top: 28px;
}

.legal-page .contact-form h2:first-child {
  margin-top: 0;
}

/* =========================================================
   14 — FOOTER
========================================================= */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.90);
  padding: 26px 0;
  border-top: 1px solid rgba(255, 106, 0, 0.22);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-footer small,
.site-footer a {
  color: inherit;
}

/* =========================================================
   15 — RESPONSIVE
========================================================= */
@media (max-width: 1180px) {
  :root {
    --wrap: min(1240px, calc(100vw - 32px));
  }

  .nav-inner {
    gap: 16px;
  }

  .nav-menu {
    gap: 18px;
  }

  .btn-devis {
    padding: 0 24px;
  }

  .service-block,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-media {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  .cards-grid,
  .photo-gallery__grid,
  .intervention-grid,
  .actualites-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .photo-gallery__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .nav-inner {
    min-height: 74px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    font-size: 1.28rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: var(--black-card);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(10, 10, 10, 0.25);
  }

  .nav-menu.open {
    display: flex;
  }

  .btn-devis {
    width: 100%;
    max-width: 320px;
    min-height: 52px;
  }

  .page-header {
    padding-top: 40px;
  }

  .page-intro {
    padding-left: 24px;
    font-size: 1.02rem;
  }

  .section {
    padding: 62px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --wrap: min(100vw - 24px, 100%);
  }

  .service-media {
    height: 520px;
    border-radius: 32px;
  }

  .service-media__photo {
    min-height: 520px;
  }

  .section-head h2,
  .section-heading h2,
  .about-section__copy h2,
  .page-title h1,
  .intervention-title {
    font-size: 2rem;
  }

  .contact-form,
  .contact-info,
  .cta-contact__inner,
  .team-card,
  .service-card__body,
  .intervention-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .btn,
  .btn-cta,
  .btn-outline,
  .btn-devis,
  .contact-page button[type="submit"] {
    width: 100%;
  }

  .form-actions,
  .cta-band .btn-row {
    flex-direction: column;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}



/* =========================================================
   CORRECTIF CIBLÉ — IMAGE ASSAINISSEMENT NON COUPÉE
   Objectif :
   - garder la photo entière dans le bloc vertical ;
   - ne pas toucher à la page d'accueil ;
   - ne pas modifier le CTA orange ;
   - conserver image à gauche / texte à droite.
========================================================= */

.service-page-assainissement .service-media {
  background: #f5f5f5 !important;
}

.service-page-assainissement .service-media__photo {
  width: 100% !important;
  height: 640px !important;
  min-height: 640px !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
  border-radius: 28px !important;
}

.service-page-assainissement .service-media__photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

/* On enlève l'overlay sombre uniquement sur l'image de gauche de la page assainissement */
.service-page-assainissement .service-media__photo::after {
  display: none !important;
}

/* On garde l'image à gauche et le texte à droite */
.service-page-assainissement .service-block {
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr) !important;
  align-items: start !important;
}

.service-page-assainissement .service-media {
  order: 1 !important;
}

.service-page-assainissement .content-column {
  order: 2 !important;
}

/* Responsive mobile : l'image reste entière */
@media (max-width: 1180px) {
  .service-page-assainissement .service-block {
    grid-template-columns: 1fr !important;
  }

  .service-page-assainissement .service-media {
    max-width: 440px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 640px) {
  .service-page-assainissement .service-media__photo {
    height: 520px !important;
    min-height: 520px !important;
  }
}



/* =========================================================
   CORRECTIF CTA ORANGE — TEXTE À GAUCHE / BOUTON À DROITE
   Corrige la section "Une question ? Un projet ?"
   sans toucher au reste du site.
========================================================= */

.cta-band--split {
  text-align: left !important;
}

.cta-band--split .cta-band__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
}

.cta-band--split .cta-band__text {
  flex: 1 1 auto !important;
  max-width: 760px !important;
}

.cta-band--split .cta-band__text h2 {
  margin: 0 0 12px !important;
  color: #fff !important;
}

.cta-band--split .cta-band__text p {
  max-width: none !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.96) !important;
}

.cta-band--split .btn-row {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.cta-band--split .btn-cta {
  border: 2px solid #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.cta-band--split .btn-cta:hover {
  background: #fff !important;
  color: var(--orange) !important;
}

/* Version mobile */
@media (max-width: 768px) {
  .cta-band--split .cta-band__inner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .cta-band--split .btn-row {
    width: 100% !important;
    justify-content: flex-start !important;
  }
}


/* Bulle Coordonnées — page contact */
.contact-page .contact-info__block .section-kicker {
  display: flex;
  width: fit-content;
  margin: 0 auto 22px;
  padding: 0 24px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

/* =========================================================
   CORRECTIF — CENTRAGE DES TITRES PHOTO GALLERY
   Centre uniquement les titres des cartes photos.
========================================================= */

.photo-gallery__grid .photo-card__body strong,
.photo-gallery__grid .photo-card__title {
  display: block;
  text-align: center;
}

/* =========================================================
   CORRECTIF — PHRASE GALERIE SUR UNE SEULE LIGNE
========================================================= */

.photo-gallery__head > div {
  width: 100%;
}

.photo-gallery__head p {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .photo-gallery__head p {
    white-space: normal;
  }
}


/* =========================================================
   CORRECTIF CONTACT — RÉDUCTION ESPACE TITRE / BLOCS
   Réduit l'espace entre le texte d'introduction et les deux blocs
   formulaire + coordonnées, uniquement sur la page contact.
========================================================= */

.contact-page .page-header {
  padding-bottom: 0 !important;
}

.contact-page .content-section {
  padding-top: 8px !important;
}

.contact-page .page-title,
.contact-page .section-head,
.contact-page .section-heading {
  margin-bottom: 14px !important;
}

.contact-page .contact-layout {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .contact-page .content-section {
    padding-top: 4px !important;
  }
}

/* =========================================================
   CORRECTIF CONTACT — BLOCS FORMULAIRE / COORDONNÉES MÊME HAUTEUR
   Aligne les deux cartes de la page contact sur la même hauteur,
   sans toucher aux autres pages.
========================================================= */

.contact-page .contact-layout {
  align-items: stretch !important;
}

.contact-page .contact-card {
  height: 100% !important;
}

.contact-page .contact-form,
.contact-page .contact-info {
  height: 100% !important;
}

@media (max-width: 1180px) {
  .contact-page .contact-card,
  .contact-page .contact-form,
  .contact-page .contact-info {
    height: auto !important;
  }
}

/* =========================================================
   CORRECTIF RESPONSIVE FINAL — BANNIÈRE NON COUPÉE + CTA CENTRÉ
========================================================= */

@media (max-width: 768px) {
  body.home-page .hero-banner,
  body.home-clean .hero-banner {
    height: clamp(190px, 40vw, 290px);
    overflow: hidden;
    background: var(--black);
  }

  body.home-page .hero-banner img,
  body.home-clean .hero-banner img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 42% center !important;
  }

  .btn-devis {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .cta-band--split {
    text-align: center !important;
  }

  .cta-band--split .cta-band__inner {
    align-items: center !important;
    text-align: center !important;
  }

  .cta-band--split .cta-band__text {
    max-width: 100% !important;
    text-align: center !important;
  }

  .cta-band--split .cta-band__text h2,
  .cta-band--split .cta-band__text p {
    text-align: center !important;
  }

  .cta-band--split .btn-row {
    width: 100% !important;
    justify-content: center !important;
  }

  .cta-band--split .btn-cta {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* =========================================================
   03B — BANNIÈRES CSS HARMONISÉES
   Objectif : fond photo seul + titre/vagues/cadre orange en CSS.
========================================================= */
.hero-banner--css {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: min(37.5vw, 720px);
  min-height: 300px;
  overflow: hidden;
  line-height: normal;
  background: var(--black);
}

.hero-banner--css .hero-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-banner--css::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.45) 43%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.hero-banner--css::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.58;
  background-image: url("data:image/svg+xml,%3Csvg width='1600' height='620' viewBox='0 0 1600 620' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-80 430 C260 230 410 535 720 350 C1010 175 1210 260 1680 105' fill='none' stroke='white' stroke-width='3' stroke-opacity='.55'/%3E%3Cpath d='M-80 480 C320 275 455 575 790 385 C1070 225 1280 300 1680 150' fill='none' stroke='white' stroke-width='2' stroke-opacity='.45'/%3E%3Cpath d='M-80 520 C300 315 510 610 850 430 C1160 265 1350 340 1680 220' fill='none' stroke='white' stroke-width='2' stroke-opacity='.35'/%3E%3Cpath d='M-80 250 C270 120 520 240 780 150 C1040 60 1210 120 1680 30' fill='none' stroke='white' stroke-width='2' stroke-opacity='.28'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.hero-banner__overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner__content {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner__title {
  max-width: 1160px;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(2.6rem, 5.1vw, 5.7rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

.hero-banner--surpression .hero-banner__title {
  font-size: clamp(2.15rem, 4.4vw, 4.9rem);
}

.hero-banner__contact {
  position: absolute;
  top: 48px;
  right: 0px;
  min-width: 318px;
  min-height: 62px;
  padding: 0 24px 0 34px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  color: #ffffff;
  background: var(--orange);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 18px 34px rgba(255, 106, 0, 0.26);
}

.hero-banner__place {
  padding-right: 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero-banner__phone {
  padding-left: 16px;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero-banner--css {
    height: min(37.5vw, 720px);
    min-height: 260px;
  }

  .hero-banner__content {
    flex-direction: column;
    gap: 22px;
  }

  .hero-banner__contact {
    position: absolute;
    top: 28px;
    right: 18px;
    width: min(318px, calc(100% - 36px));
    min-width: 0;
    transform: none;
  }

  .hero-banner__title,
  .hero-banner--surpression .hero-banner__title {
    max-width: 760px;
    font-size: clamp(2rem, 6.4vw, 3.8rem);
  }
}

@media (max-width: 640px) {
  .hero-banner--css {
    height: min(37.5vw, 720px);
    min-height: 230px;
  }

  .hero-banner--css .hero-banner__bg {
    object-position: center center;
  }

  .hero-banner__overlay {
    width: min(100% - 32px, 520px);
  }

  .hero-banner__title,
  .hero-banner--surpression .hero-banner__title {
    font-size: clamp(1.55rem, 7.2vw, 2.55rem);
    letter-spacing: 0.025em;
  }

  .hero-banner__contact {
    top: 16px;
    right: 12px;
    min-height: 48px;
    padding: 0 14px 0 20px;
    grid-template-columns: 68px minmax(0, 1fr);
    border-radius: 14px;
    clip-path: none;
  }

  .hero-banner__place {
    font-size: 0.64rem;
  }

  .hero-banner__phone {
    padding-left: 11px;
    font-size: 0.78rem;
  }
}

/* =========================================================
   03C — DERNIERS AJUSTEMENTS RESPONSIVE VALIDÉS
========================================================= */
@media (max-width: 768px) {
  /* Contact : réduit l’espace entre le texte et les cartes blanches. */
  .contact-page .page-header {
    padding-bottom: 0 !important;
  }

  .contact-page .section-heading {
    margin-bottom: 6px !important;
  }

  .contact-page main > .section {
    padding-top: 12px !important;
  }

  /* Prestations : bannières plus présentes sur téléphone,
     sans étirer les images. */
  .hero-banner--css {
    height: clamp(260px, 68vw, 300px);
    min-height: 260px;
  }

  .hero-banner--css .hero-banner__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 420px) {
  .contact-page main > .section {
    padding-top: 8px !important;
  }
}

/* =========================================================
   16C — ACTUALITÉS : PRÉSENTATION ÉDITORIALE
========================================================= */

.actualites-page__header {
  padding-bottom: 18px;
}

.actualites-page .page-title h1,
.actualites-page .actualites-listing__head h2 {
  color: var(--orange);
}

.actualites-page .page-title h1 {
  font-size: clamp(2.35rem, 4vw, 3.7rem);
}

.actualites-page .page-intro {
  max-width: 1120px;
}

.actualites-listing {
  padding: 32px 0 78px;
  margin-top: 0;
}

.actualites-listing__head {
  margin-bottom: 26px;
}

.actualites-listing__head h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
}

.actualites-listing__head p {
  max-width: 760px;
  font-size: 1.04rem;
}

.actualites-page .actualites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 380px));
  justify-content: start;
  gap: 28px;
  margin-top: 0;
}

.actualites-page .actualite-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 18px 42px rgba(10, 10, 10, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.actualites-page .actualite-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(10, 10, 10, 0.16);
}

.actualite-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  background: #f4f1ed;
}

.actualite-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transition: none;
}

.actualite-card:hover .actualite-card__media img {
  transform: none;
}

.actualite-card__placeholder {
  width: 100%;
  min-height: 230px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.actualite-card__placeholder-icon {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: var(--orange);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}

.actualite-card__format {
  position: absolute;
  top: 18px;
  left: 18px;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.74);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.actualites-page .actualite-card__body {
  flex: 1;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.actualite-card__date {
  display: inline-flex;
  min-height: 32px;
  padding: 0 12px;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 106, 0, 0.10);
  border: 1px solid rgba(255, 106, 0, 0.16);
  font-size: 0.84rem;
  font-weight: 800;
}

.actualites-page .actualite-card h3 {
  margin: 0 0 12px;
  color: var(--black-soft);
  font-family: var(--font-title);
  font-size: 1.55rem;
  line-height: 1.2;
}

.actualites-page .actualite-card p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.72;
}

.actualite-card__link {
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 50px;
  margin-top: auto;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 22px;
  font-size: 0.94rem;
  align-items: center;
  justify-content: center;
}

.actualites-page .actualites-empty {
  margin-top: 10px;
  border: 1px solid rgba(255, 106, 0, 0.14);
}

.actualites-page .actualites-empty h3 {
  margin: 0 0 10px;
  color: var(--orange);
  font-family: var(--font-title);
  font-size: 1.7rem;
}

.actualites-cta h2 {
  color: #fff;
}

@media (max-width: 640px) {
  .actualites-listing {
    padding-top: 20px;
    padding-bottom: 54px;
  }

  .actualites-page .actualites-grid {
    grid-template-columns: 1fr;
  }

  .actualite-card__media {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .actualites-page .actualite-card__body {
    padding: 22px 20px 24px;
  }

  .actualite-card__link {
    width: max-content !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* FIN — ACTUALITÉS : PRÉSENTATION ÉDITORIALE */

/* =========================================================
   17 — CORRECTIF RESPONSIVE GLOBAL FINAL
   Objectifs :
   - afficher la bannière d’accueil en entier sur tablette/mobile ;
   - supprimer les débordements et bandes latérales ;
   - rendre le menu et le bouton "Demander un devis" adaptés
     aux tablettes, y compris iPad Pro ;
   - conserver le design ordinateur déjà validé.
========================================================= */

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body,
main,
.site-header,
.hero-banner,
.cta-band,
.site-footer {
  width: 100%;
  max-width: 100%;
}

.container {
  width: min(1240px, calc(100% - 48px));
  max-width: 100%;
}

img,
iframe,
video,
svg {
  max-width: 100%;
}

.site-header .nav-inner > *,
.cards-grid > *,
.contact-layout > *,
.actualites-grid > *,
.photo-gallery__grid > * {
  min-width: 0;
}

/* Tablettes et petits ordinateurs, iPad Pro compris */
@media (max-width: 1180px) {
  :root {
    --wrap: calc(100% - 32px);
  }

  .container {
    width: calc(100% - 32px);
  }

  /* Navigation tablette : logo + menu burger, puis CTA pleine largeur */
  .site-header .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: initial;
    gap: 12px 16px;
    min-height: auto;
    padding: 12px 0;
  }

  .site-header .brand {
    grid-column: 1;
    min-width: 0;
  }

  .site-header .brand img {
    width: 44px;
    height: 44px;
  }

  .site-header .brand-text {
    font-size: 1.28rem;
    white-space: nowrap;
  }

  .site-header .nav-toggle {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header .nav-menu {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: var(--black-card);
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(10, 10, 10, 0.25);
  }

  .site-header .nav-menu.open {
    display: flex;
  }

  .site-header .nav-menu li,
  .site-header .nav-menu a {
    width: 100%;
    max-width: 100%;
  }

  .site-header .btn-devis {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-height: 52px;
    margin: 0;
    padding: 0 24px;
    text-align: center;
  }

  /* Bannière d’accueil : image entière, sans recadrage */
  body.home-page .hero-banner,
  body.home-clean .hero-banner {
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    background: var(--black);
  }

  body.home-page .hero-banner img,
  body.home-clean .hero-banner img {
    position: static;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  /* Largeurs fluides pour Actualités et Contact */
  .actualites-page main,
  .contact-page main,
  .actualites-listing,
  .actualites-page .actualites-grid,
  .contact-layout,
  .contact-card,
  .contact-form,
  .contact-info {
    width: 100%;
    max-width: 100%;
  }

  .actualites-page .actualites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablettes en portrait */
@media (min-width: 981px) and (max-width: 1180px) {
  .cards-grid,
  .photo-gallery__grid,
  .intervention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablettes compactes et mobiles */
@media (max-width: 980px) {
  .actualites-page .actualites-grid {
    grid-template-columns: 1fr;
  }
}

/* Téléphones */
@media (max-width: 640px) {
  :root {
    --wrap: calc(100% - 24px);
  }

  .container {
    width: calc(100% - 24px);
  }

  .site-header .brand img {
    width: 40px;
    height: 40px;
  }

  .site-header .brand-text {
    font-size: 1.08rem;
  }

  .site-header .btn-devis {
    min-height: 50px;
    padding: 0 18px;
  }

  .contact-form,
  .contact-info,
  .actualites-page .actualite-card__body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Très petits écrans */
@media (max-width: 380px) {
  .site-header .brand-text {
    font-size: 0.98rem;
    letter-spacing: 0.02em;
  }

  .site-header .nav-toggle {
    width: 44px;
    height: 44px;
  }
}

/* =========================================================
   18 — CENTRAGE MOBILE STRICT DES BANNIÈRES PRESTATIONS
   Pages concernées uniquement :
   - Assainissement
   - Surpression
   - Irrigation

   Objectif :
   - même marge à gauche et à droite pour le cadre orange ;
   - même marge à gauche et à droite pour le titre ;
   - aucun décalage lié au positionnement absolu.
========================================================= */
@media (max-width: 768px) {
  .hero-banner--assainissement .hero-banner__overlay,
  .hero-banner--surpression .hero-banner__overlay,
  .hero-banner--irrigation .hero-banner__overlay {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-banner--assainissement .hero-banner__content,
  .hero-banner--surpression .hero-banner__content,
  .hero-banner--irrigation .hero-banner__content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-banner--assainissement .hero-banner__contact,
  .hero-banner--surpression .hero-banner__contact,
  .hero-banner--irrigation .hero-banner__contact {
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  .hero-banner--assainissement .hero-banner__title,
  .hero-banner--surpression .hero-banner__title,
  .hero-banner--irrigation .hero-banner__title {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }
}

/* =========================================================
   ACTUALITÉS — CENTRAGE RÉEL DU BOUTON PUBLICATION
========================================================= */
.actualites-page .actualite-card__body {
  display: flex;
  flex-direction: column;
}

.actualites-page .actualite-card__link {
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 50px;
  margin-top: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  .actualites-page .actualite-card__link {
    width: max-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* =========================================================
   ACTUALITÉS — BOUTON PUBLICATION CENTRÉ
   Objectif : centrer uniquement le bouton, sans centrer les textes.
========================================================= */
.actualites-page .actualite-card__body {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.actualites-page .actualite-card__link {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content !important;
  margin-top: 26px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  .actualites-page .actualite-card__link {
    width: auto !important;
    max-width: max-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
