/* ==========================================================================
   STIM Guyot Béton - distributeur automatique de béton
   Mobile-first
   ========================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --green: #3d8b17;        /* boutons : contraste AA avec le blanc */
  --green-dark: #2f6d11;
  --green-light: #7ac943;  /* accents sur fond sombre */
  --ink: #1b1f22;
  --anthracite: #23282c;
  --anthracite-2: #2e3439;
  --navy: #243142;         /* bleu anthracite : navigation */
  --grey-bg: #f1f2f3;
  --grey-line: #d9dcdf;
  --text: #2a2f33;
  --muted: #5b646c;
  --white: #ffffff;
  --radius: 6px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: "Oswald", "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.7em 1.2em;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn--green {
  background: var(--green);
  color: var(--white);
}

.btn--green:hover {
  background: var(--green-dark);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--anthracite-2);
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn--lg {
  min-height: 52px;
  padding: 0.85em 1.5em;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Titres de section
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  flex: 0 0 32px;
  width: 32px;
  height: 3px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--green-light);
}

.section-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 7vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-title .accent,
.accent {
  color: var(--green);
}

.section {
  padding: 56px 0;
}

.section--grey {
  background: var(--grey-bg);
}

.section__head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section__intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.lead {
  max-width: 48em;
  font-size: 1.08rem;
}

/* En-tête
   ========================================================================== */

.site-header {
  background: var(--white);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand__logo {
  flex: 0 0 auto;
  width: auto;
  height: 52px;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.brand__accent {
  color: var(--green);
}

.brand__tagline {
  color: var(--muted);
  font-size: 0.85rem;
}

.topbar__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  width: 100%;
}

.topbar__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__link .icon {
  color: var(--green);
}

.topbar__address {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.topbar__address .icon {
  width: 1.6em;
  height: 1.6em;
  color: var(--green);
}

.topbar__contact .btn {
  margin-left: auto;
}

/* Navigation */

.mainnav {
  background: var(--navy);
  color: var(--white);
}

.mainnav__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mainnav__burger,
.mainnav__burger::before,
.mainnav__burger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}

.mainnav__burger {
  position: relative;
}

.mainnav__burger::before,
.mainnav__burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.mainnav__burger::before {
  top: -7px;
}

.mainnav__burger::after {
  top: 7px;
}

.mainnav__toggle[aria-expanded="true"] .mainnav__burger {
  background: transparent;
}

.mainnav__toggle[aria-expanded="true"] .mainnav__burger::before {
  transform: translateY(7px) rotate(45deg);
}

.mainnav__toggle[aria-expanded="true"] .mainnav__burger::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mainnav__menu {
  display: none;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
}

.mainnav__menu.is-open {
  display: block;
}

.mainnav__link {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.mainnav__link:hover {
  color: var(--green-light);
}

.mainnav__link.is-active {
  padding-left: 12px;
  box-shadow: inset 4px 0 0 var(--green-light);
}

/* Fil d'Ariane */

.breadcrumb {
  border-bottom: 1px solid var(--grey-line);
  font-size: 0.88rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
  list-style: none;
  color: var(--muted);
}

.breadcrumb__list li + li::before {
  content: "›";
  margin-right: 8px;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

/* Hero d'accueil
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  color: var(--white);
  background: var(--ink);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14, 16, 18, 0.9) 0%, rgba(14, 16, 18, 0.75) 60%, rgba(14, 16, 18, 0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: clamp(2.3rem, 10vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
}

.hero__title .accent {
  color: var(--green-light);
}

.hero__text {
  max-width: 32em;
  margin: 0 0 28px;
  font-size: 1.1rem;
}

.stamp {
  display: none;
}

/* Étapes
   ========================================================================== */

/* Bande d'informations pratiques */

.info-strip {
  display: grid;
  gap: 1px;
  margin: 32px 0 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  list-style: none;
}

.info-strip li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.9);
}

.info-strip .icon {
  width: 30px;
  height: 30px;
  color: var(--green-light);
}

.info-strip a {
  color: var(--green-light);
  font-weight: 700;
}

/* Recettes
   ========================================================================== */

.recipes {
  width: 100%;
  border-collapse: collapse;
}

.recipes thead {
  display: none;
}

.recipes tr {
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--white);
}

.recipes th[scope="row"],
.recipes td {
  display: grid;
  grid-template-columns: 7.4em 1fr;
  gap: 8px;
  padding: 8px 14px;
  text-align: left;
}

.recipes th[scope="row"] {
  background: var(--anthracite);
  color: var(--white);
}

.recipes td + td,
.recipes th + td {
  border-top: 1px solid #eceef0;
}

.recipes [data-label]::before {
  content: attr(data-label);
  color: var(--muted);
  font-weight: 600;
}

.recipes th[scope="row"]::before {
  color: rgba(255, 255, 255, 0.7);
}

.note {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--grey-bg);
  color: var(--muted);
}

.note .icon {
  margin-top: 2px;
  color: var(--green);
}

.recipes-actions {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

/* Cartes de matériaux */

.cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  overflow: hidden;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--white);
}

.card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: var(--anthracite);
  color: var(--green-light);
}

.card__visual .icon {
  width: 64px;
  height: 64px;
}

.card__body {
  padding: 16px 18px 18px;
}

.card__title {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
}

.card__body p {
  margin: 0;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--green);
  font-weight: 700;
}

/* Installation : photo + panneau sombre */

.split {
  display: grid;
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.9);
}

.split__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.split__content {
  padding: 40px 16px 48px;
}

.split .section-title {
  color: var(--white);
}

.split .eyebrow {
  color: var(--green-light);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
}

.check-list .icon {
  width: 22px;
  height: 22px;
  color: var(--green-light);
}

/* Accès */

.locate {
  display: grid;
  gap: 24px;
}

.locate__address {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--ink);
  font-weight: 600;
}

.locate__address .icon {
  width: 26px;
  height: 26px;
  color: var(--green);
}

.locate__map {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--grey-bg);
}

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--grey-bg);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.locate__maplink {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.locate__maplink a {
  color: var(--green);
  font-weight: 600;
}

/* Bandeau d'appel sur photo */

.call-band {
  padding: 40px 0;
  color: var(--white);
  background-color: var(--ink);
  background-image: linear-gradient(rgba(16, 18, 20, 0.86), rgba(16, 18, 20, 0.86)), url("../img/distributeur-automatique-beton-chaumont-en-vexin-800.webp");
  background-size: cover;
  background-position: center 40%;
}

.call-band__inner {
  display: grid;
  gap: 20px;
}

.call-band__title {
  margin: 0 0 4px;
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 700;
}

.call-band p {
  margin: 0;
}

/* Pages intérieures
   ========================================================================== */

.inner-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  color: var(--white);
  background: var(--ink);
}

.inner-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14, 16, 18, 0.92) 0%, rgba(14, 16, 18, 0.72) 70%, rgba(14, 16, 18, 0.55) 100%);
}

.inner-hero__content {
  position: relative;
  z-index: 2;
}

.inner-hero__title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
}

.inner-hero__title .accent {
  color: var(--green-light);
}

.inner-hero__text {
  max-width: 40em;
  margin: 0;
  font-size: 1.08rem;
}

.prose {
  max-width: 50em;
}

.prose h2,
.prose h3 {
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--text);
}

.prose a {
  color: var(--green);
  font-weight: 600;
}

.two-cols {
  display: grid;
  gap: 32px;
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.material {
  display: grid;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--grey-line);
}

.material__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: var(--anthracite);
  color: var(--green-light);
}

.material__icon .icon {
  width: 40px;
  height: 40px;
}

.material h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.7rem;
}

.material p {
  margin: 0 0 8px;
}

.facts {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--grey-line);
}

.facts .icon {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.facts h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.facts p {
  margin: 0;
  color: var(--muted);
}

.facts a {
  color: var(--green);
  font-weight: 700;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.9);
}

.contact-card h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.6rem;
}

.contact-card ul {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.contact-card li {
  display: flex;
  gap: 10px;
}

.contact-card .icon {
  width: 22px;
  height: 22px;
  color: var(--green-light);
}

.contact-card a {
  color: var(--white);
  font-weight: 700;
  word-break: break-word;
}

.form {
  display: grid;
  gap: 16px;
}

.form h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.6rem;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 600;
}

.field__opt {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #a9b0b6;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: #b3261e;
}

.field__error {
  margin: 6px 0 0;
  color: #b3261e;
  font-size: 0.92rem;
  font-weight: 600;
}

.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form__privacy a,
.notice a {
  color: var(--green);
  font-weight: 600;
}

.notice {
  scroll-margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid;
  border-radius: var(--radius);
}

.notice:focus {
  outline: none;
}

.notice--success {
  border-color: var(--green);
  background: #eef6e9;
}

.notice--error {
  border-color: #b3261e;
  background: #fbeceb;
}

.notice h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.notice p,
.notice ul {
  margin: 0;
}

.notice ul {
  margin-top: 8px;
  padding-left: 20px;
}

/* Pied de page
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green-light);
}

.site-footer__brand {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
}

.site-footer .brand__accent {
  color: var(--green-light);
}

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__title {
  color: var(--white);
  font-weight: 700;
}

.site-footer__list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li {
  display: flex;
  gap: 10px;
}

.site-footer__list .icon {
  color: var(--green-light);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-footer__bottom-inner p {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.site-footer .site-footer__copy,
.site-footer .site-footer__fr,
.site-footer .site-footer__credit {
  margin: 0;
}

.site-footer__fr {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.site-footer__fr strong,
.site-footer__credit strong {
  color: var(--white);
}

.site-footer__fr-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.site-footer__flag {
  flex-shrink: 0;
  width: 20px;
  height: 14px;
  border-radius: 2px;
}

@media (min-width: 960px) {
  .site-footer__bottom-inner {
    align-items: center;
  }
}

@media (min-width: 1200px) {
  /* Une seule ligne : copyright | liens légaux (centre) | mentions de confiance */
  .site-footer__bottom-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }

  .site-footer__legal {
    justify-content: center;
    gap: 6px 16px;
  }

  .site-footer__badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Page 404 */

.error-page {
  padding: 72px 0;
  text-align: center;
}

.error-page .btn-row {
  justify-content: center;
}

/* ==========================================================================
   Tablette
   ========================================================================== */

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .eyebrow::after {
    flex-basis: 40px;
    width: 40px;
  }

  .section {
    padding: 72px 0;
  }

  .info-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .recipes-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .recipes-actions .note {
    margin: 0;
  }

  .split__content {
    padding: 48px 32px 56px;
  }

  .material {
    grid-template-columns: 72px 1fr;
    gap: 24px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .call-band__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Ordinateur
   ========================================================================== */

@media (min-width: 960px) {
  .container {
    padding: 0 32px;
  }

  .topbar {
    flex-wrap: nowrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    gap: 20px;
  }

  .brand__logo {
    height: 78px;
  }

  .brand__name {
    font-size: 1.9rem;
  }

  .topbar__contact {
    width: auto;
    flex-wrap: nowrap;
    gap: 28px;
  }

  .topbar__phones {
    flex-direction: column;
    gap: 0;
  }

  .topbar__address {
    display: flex;
  }

  .mainnav__toggle {
    display: none;
  }

  .mainnav__menu,
  .mainnav__menu.is-open {
    display: flex;
    justify-content: space-between;
    padding: 0;
  }

  .mainnav__link {
    padding: 16px 12px 13px;
    border-top: 0;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
  }

  .mainnav__link.is-active {
    padding-left: 12px;
    box-shadow: none;
    border-bottom-color: var(--green-light);
  }

  .hero {
    min-height: 620px;
    padding: 96px 0;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(14, 16, 18, 0.92) 0%, rgba(14, 16, 18, 0.78) 35%, rgba(14, 16, 18, 0.25) 62%, rgba(14, 16, 18, 0.1) 100%);
  }

  .hero__img {
    object-position: center 35%;
  }

  .hero__content > * {
    max-width: 640px;
  }

  .stamp {
    position: absolute;
    top: 48px;
    right: 32px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 170px;
    padding: 18px;
    border: 4px solid var(--green);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 6px var(--green);
    color: var(--green-dark);
    font-family: var(--font-title);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.05;
    transform: rotate(-10deg);
  }

  .stamp__small {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }

  .stamp__big {
    margin: 2px -6px;
    padding: 3px 0;
    border-top: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    font-size: 1.3rem;
    text-transform: none;
    white-space: nowrap;
  }

  .stamp__stars {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
  }

  .section__head {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
  }

  .section__head .section__intro {
    max-width: 26em;
    text-align: right;
  }

  .recipes thead {
    display: table-header-group;
  }

  .recipes thead th {
    padding: 12px 16px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.9rem;
    text-align: left;
  }

  .recipes tr {
    display: table-row;
    border: 0;
  }

  .recipes th[scope="row"],
  .recipes td {
    display: table-cell;
    padding: 12px 16px;
    border-bottom: 1px solid var(--grey-line);
  }

  .recipes th[scope="row"] {
    background: var(--white);
    color: var(--ink);
  }

  .recipes td + td,
  .recipes th + td {
    border-top: 0;
  }

  .recipes [data-label]::before {
    content: none;
  }

  .recipes tbody tr:nth-child(even) {
    background: #f7f8f9;
  }

  .recipes tbody tr:nth-child(even) th {
    background: #f7f8f9;
  }

  .table-wrap {
    overflow: hidden;
    border: 1px solid var(--grey-line);
    border-radius: var(--radius);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split__media img {
    aspect-ratio: auto;
  }

  .split__content {
    align-self: center;
    max-width: 600px;
    padding: 64px 48px;
  }

  .locate {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }

  .inner-hero {
    padding: 80px 0;
  }

  .two-cols {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
    gap: 48px;
  }

  .contact-grid {
    grid-template-columns: 360px 1fr;
    gap: 48px;
  }

  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .mainnav__menu,
  .mainnav__menu.is-open {
    justify-content: flex-start;
    gap: 28px;
  }
}

.link-arrow--light {
  color: var(--green-light);
}

.nowrap,
.info-strip a {
  white-space: nowrap;
}

.table-title {
  margin: 32px 0 14px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.4rem;
}

@media (min-width: 640px) {
  .facts--single {
    grid-template-columns: 1fr;
  }
}

/* Photo de petite taille : jamais agrandie au-delà de sa résolution */
.photo {
  max-width: 300px;
  justify-self: center;
}

/* Catalogue « Granulats et matériaux »
   ========================================================================== */

html:not(.js) .js-only {
  display: none !important;
}

.catalog [hidden],
.catalog-search [hidden] {
  display: none !important;
}

.btn--sm {
  min-height: 40px;
  padding: 0.5em 0.9em;
  font-size: 0.88rem;
}

.btn--line {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--white);
}

/* En-tête et recherche */

.catalog-hero {
  padding: 36px 0 32px;
}

.catalog-hero__tel {
  color: var(--green-light);
  font-weight: 700;
  white-space: nowrap;
}

.catalog-search {
  max-width: 40rem;
  margin-top: 22px;
}

.catalog-search__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.catalog-search__field {
  position: relative;
}

.catalog-search__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 22px;
  height: 22px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  min-height: 54px;
  padding: 12px 52px 12px 46px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.catalog-search input:focus {
  border-color: var(--green-light);
  outline: 3px solid rgba(122, 201, 67, 0.45);
  outline-offset: 1px;
}

.catalog-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.catalog-search__clear {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--grey-bg);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.catalog-search__clear:hover {
  background: var(--grey-line);
}

.catalog-search__status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 10px 0 0;
  font-weight: 700;
}

.catalog-search__status a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-light);
}

.catalog-search__status .icon {
  width: 18px;
  height: 18px;
}

/* Gammes */

.ranges-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.ranges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.range {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 10px 14px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}

.range__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.range::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 16, 18, 0.88) 0%, rgba(14, 16, 18, 0.62) 100%);
  transition: background-color 0.2s;
}

.range:hover .range__img,
.range:focus-visible .range__img {
  transform: scale(1.06);
}

.range__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
}

.range__icon .icon {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.range__text {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
}

.range__title {
  font-family: var(--font-title);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.range__count {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.range__chevron {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--green-light);
  transition: transform 0.2s;
}

.range:hover .range__chevron {
  transform: translateX(3px);
}

.range.is-active {
  box-shadow: inset 0 0 0 3px var(--green-light);
}

.range.is-active::before {
  background: linear-gradient(90deg, rgba(47, 109, 17, 0.92) 0%, rgba(14, 16, 18, 0.7) 100%);
}

.range.is-active .range__icon {
  background: var(--ink);
}

/* Outils : filtres, compteur, réinitialisation */

.catalog {
  padding-top: 32px;
  scroll-margin-top: 8px;
}

.catalog-tools {
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--white);
}

.catalog-tools__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.catalog-tools__title .icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.catalog-tools__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalog-filter label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.catalog-filter select {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #8a939b;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.catalog-filter select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(61, 139, 23, 0.35);
}

.catalog-tools__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
}

.catalog-tools__count {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.catalog-tools__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.catalog-empty {
  margin-bottom: 28px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--grey-line);
  text-align: center;
}

.catalog-empty__title {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.3rem;
}

.catalog-empty p {
  margin-top: 0;
}

/* Groupes par gamme */

.catalog-group {
  scroll-margin-top: 8px;
}

.catalog-group + .catalog-group {
  margin-top: 40px;
}

.catalog-group__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.catalog-group__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}

.catalog-group__icon .icon {
  width: 22px;
  height: 22px;
}

.catalog-group__title {
  margin: 4px 0 4px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.catalog-group__head p {
  margin: 0;
  color: var(--muted);
}

/* Cartes produits */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--white);
}

/* Cadre 3:2 identique pour toutes les photos, image recadrée sans déformation */
.product__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--grey-bg);
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px;
}

.product__cat {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product__name {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.product__desc {
  display: none;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product__facts {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  font-size: 0.82rem;
}

.product__facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}

.product__facts dt {
  color: var(--muted);
}

.product__facts dt::after {
  content: " :";
}

.product__facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.product__actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.product__actions .btn {
  width: 100%;
}

.product__contact {
  justify-self: center;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

.catalog-note {
  margin-top: 36px;
  background: var(--white);
}

.catalog-note a {
  color: var(--green);
  font-weight: 700;
}

/* Fiche produit (fenêtre modale) */

.product-dialog {
  width: min(100% - 24px, 760px);
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.product-dialog::backdrop {
  background: rgba(14, 16, 18, 0.72);
}

.product-dialog__inner {
  position: relative;
  display: grid;
}

.product-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.product-dialog__close:hover {
  background: var(--green);
}

.product-dialog__media {
  aspect-ratio: 3 / 2;
  max-height: 46vh;
  background: var(--grey-bg);
}

.product-dialog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-dialog__body {
  padding: 18px 18px 22px;
}

.product-dialog__title {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.6rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.product-dialog__body .product__facts {
  font-size: 0.95rem;
}

.product-dialog__note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 4px solid var(--green);
  background: var(--grey-bg);
  font-size: 0.92rem;
}

.product-dialog__alt {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-dialog__alt a {
  color: var(--green);
  font-weight: 700;
}

@media (min-width: 480px) {
  .ranges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .catalog-hero {
    padding: 56px 0 48px;
  }

  .products {
    gap: 16px;
  }

  .product__body {
    padding: 14px 16px 16px;
  }

  .product__desc {
    display: block;
  }

  .catalog-tools {
    padding: 20px 24px;
  }
}

@media (min-width: 760px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-dialog__inner {
    grid-template-columns: 1fr 1fr;
  }

  .product-dialog__media {
    aspect-ratio: auto;
    max-height: none;
    min-height: 100%;
  }

  .product-dialog__body {
    padding: 28px 28px 28px 24px;
  }
}

@media (min-width: 960px) {
  .ranges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .range {
    min-height: 110px;
  }

  .catalog-tools__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .products .product__cat {
    display: none;
  }

  .products .product__facts div {
    flex-direction: column;
  }
}

/* Bandeau de cookies
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  max-height: 85vh;
  overflow-y: auto;
  padding: 18px 0;
  border-top: 3px solid var(--green);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: grid;
  gap: 14px;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner__title {
  margin-bottom: 4px !important;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cookie-banner a {
  color: var(--green-light);
  font-weight: 600;
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cookie-banner__actions .btn {
  padding: 0.6em 0.4em;
  font-size: 0.85rem;
}

/* Les trois choix ont exactement le même aspect */
.btn--cookie {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
  white-space: normal;
}

.btn--cookie:hover {
  border-color: var(--green-light);
  background: var(--green-light);
  color: var(--ink);
}

@media (min-width: 640px) {
  .cookie-banner__actions {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 10px;
  }

  .cookie-banner__actions .btn {
    padding: 0.65em 1.1em;
    font-size: 0.95rem;
  }
}

@media (min-width: 960px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 32px;
  }
}

/* Accueil : cartes de granulats cliquables vers le catalogue */

.card--link {
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card--link:hover {
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card--link .card__title a {
  color: inherit;
  text-decoration: none;
}

.card--link .card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card--link .card__title a:focus-visible {
  outline: none;
}

.card--link:focus-within {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.92rem;
}

.card__more .icon {
  width: 18px;
  height: 18px;
}

.cards-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-top: 20px;
}

.cards-actions p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 960px) {
  .cards-actions {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Accès : deux numéros */

.locate__phones {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.locate__phones li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.locate__phones .icon {
  color: var(--green);
}

.locate__phones a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* Recettes : tableau complet (10 recettes) et poids indicatifs */

.recipes__use-mobile td {
  background: var(--grey-bg);
}

.recipes--full .recipes__use {
  display: none;
}

.recipes--full tbody.recipes__pair {
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--white);
}

.recipes--full tbody.recipes__pair tr {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.recipes--full tbody.recipes__pair tr + tr {
  border-top: 1px solid var(--grey-line);
}

.recipes__retarder {
  font-weight: 700;
}

/* Mobile : « Oui / Non » en clair, le type figure déjà dans la désignation */
.recipes__x,
.recipes--full td[data-label="Type"] {
  display: none !important;
}

.weights-block {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.weights {
  width: 100%;
  max-width: 420px;
  border-collapse: collapse;
  background: var(--white);
}

.weights caption {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: left;
}

.weights th,
.weights td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--grey-line);
  text-align: left;
}

.weights thead th {
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
}

.weights tbody td + td {
  font-weight: 700;
}

.weights-block .note {
  margin: 0;
  background: var(--white);
}

@media (min-width: 960px) {
  .recipes--full tbody.recipes__pair {
    display: table-row-group;
    border: 0;
  }

  .recipes--full tbody.recipes__pair tr + tr {
    border-top: 0;
  }

  .recipes--full .recipes__use {
    display: table-cell;
    vertical-align: middle;
    border-left: 1px solid var(--grey-line);
  }

  .recipes__use-mobile {
    display: none !important;
  }

  .recipes--full td[data-label="Type"] {
    display: table-cell !important;
  }

  .recipes__x {
    display: inline !important;
  }

  .recipes__yn {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .recipes--full .recipes__retarder,
  .recipes--full th[scope="col"]:nth-child(-n+3),
  .recipes--full td[data-label="Type"] {
    text-align: center;
  }

  .weights-block {
    grid-template-columns: 420px 1fr;
    align-items: center;
  }

  .recipes th[scope="row"],
  .recipes td[data-label="Type"],
  .recipes td[data-label="Dosage"] {
    white-space: nowrap;
  }
}

/* Accueil : « Comment ça marche ? » en photos
   ========================================================================== */

.photo-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-step {
  position: relative;
}

/* Dernière étape centrée sur deux colonnes */
.photo-step:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 7px);
}

.photo-step__media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  background: var(--grey-line);
}

.photo-step__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.photo-step__num {
  position: absolute;
  top: -12px;
  left: -8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.photo-step__text {
  margin: 12px 0 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
}

.practical-band {
  display: grid;
  margin: 32px 0 0;
  padding: 6px 20px;
  border-radius: var(--radius);
  background: var(--anthracite);
  color: var(--white);
  list-style: none;
}

.practical-band li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.practical-band li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.practical-band .icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--white);
}

@media (min-width: 640px) {
  .photo-steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 20px;
  }

  /* 3 étapes puis 2, centrées */
  .photo-step,
  .photo-step:last-child {
    grid-column: span 2;
    justify-self: stretch;
    width: auto;
  }

  .photo-step:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 960px) {
  .practical-band {
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 0;
  }

  .practical-band li {
    justify-content: center;
    padding: 14px 24px;
  }

  .practical-band li + li {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (min-width: 1100px) {
  .photo-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 36px;
  }

  .photo-step,
  .photo-step:last-child,
  .photo-step:nth-child(4) {
    grid-column: auto;
  }

  /* Petite flèche verte entre deux étapes */
  .photo-step + .photo-step .photo-step__media::before {
    content: "";
    position: absolute;
    top: calc(50% - 6px);
    left: -26px;
    width: 10px;
    height: 10px;
    border-top: 3px solid var(--green);
    border-right: 3px solid var(--green);
    transform: rotate(45deg);
  }
}

/* Accueil : dernières sections alignées sur la maquette
   ========================================================================== */

.section--light {
  background: #f7f7f6;
}

.material-cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.material-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.material-card:hover {
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.material-card:focus-within {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.material-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.material-card__title {
  margin: 0;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.material-card__title a {
  color: inherit;
  text-decoration: none;
}

.material-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.material-card__title a:focus-visible {
  outline: none;
}

/* L'installation : 50/50, photo sur toute la hauteur */
.split__media {
  position: relative;
  min-height: 260px;
}

.split__media img {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.split__content p {
  font-size: 1.05rem;
}

.split .check-list li {
  font-size: 1.02rem;
}

/* Bandeau de contact : photo plus visible */
.call-band {
  background-image: linear-gradient(90deg, rgba(16, 18, 20, 0.9) 0%, rgba(16, 18, 20, 0.72) 55%, rgba(16, 18, 20, 0.55) 100%), url("../img/distributeur-automatique-beton-chaumont-en-vexin-800.webp");
}

/* Pied de page clair, logo à gauche */
.site-footer {
  border-top: 1px solid var(--grey-line);
  background: var(--white);
  color: var(--text);
}

.site-footer a {
  color: var(--ink);
}

.site-footer a:hover {
  color: var(--green);
}

.site-footer__logo img {
  display: block;
  width: auto;
  height: 90px;
  margin-bottom: 10px;
}

.site-footer__brand {
  color: var(--navy);
  margin-bottom: 0 !important;
}

.site-footer__tagline {
  color: var(--muted);
}

.site-footer__about {
  color: var(--muted);
}

.site-footer__title {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-footer__list .icon {
  color: var(--green);
}

.site-footer__bottom {
  border-top-color: var(--grey-line);
  background: var(--grey-bg);
}

.site-footer__fr strong,
.site-footer__credit strong {
  color: var(--ink);
}

.site-footer__fr-sub {
  color: var(--muted);
}

@media (min-width: 640px) {
  .material-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .split {
    min-height: 460px;
  }

  .split__content {
    max-width: 640px;
    padding: 56px 56px;
  }

  .split .section-title {
    font-size: 2.6rem;
  }

  .site-footer__grid {
    gap: 0;
  }

  .site-footer__grid > * + * {
    padding-left: 40px;
    border-left: 1px solid var(--grey-line);
  }

  .site-footer__grid > * {
    padding-right: 40px;
  }
}

/* Le padding horizontal de .container ne doit pas annuler les marges verticales du pied de page */
.site-footer .site-footer__grid {
  padding-top: 48px;
  padding-bottom: 40px;
}

/* En-tête fixe en haut de l'écran
   ========================================================================== */

html {
  /* Les ancres ne passent pas sous l'en-tête fixe (hauteur mesurée par le script) */
  scroll-padding-top: calc(var(--header-h, 120px) + 12px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

@media (max-width: 959px) {
  /* Menu mobile ouvert : défilement interne si l'écran est trop court */
  .mainnav__menu.is-open {
    max-height: calc(100vh - var(--header-h, 120px));
    max-height: calc(100dvh - var(--header-h, 120px));
    overflow-y: auto;
  }
}

/* STIM, mobile : en-tête compact (logo, nom et deux boutons d'appel sur une ligne) */
@media (max-width: 639px) {
  .topbar {
    flex-wrap: nowrap;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand__logo {
    height: 44px;
  }

  .brand__name {
    font-size: 1.15rem;
  }

  .brand__tagline {
    font-size: 0.75rem;
  }

  .topbar__contact {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  /* L'itinéraire reste accessible dans le hero, l'accès et le pied de page */
  .topbar__contact .btn {
    display: none;
  }

  .topbar__phones {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .topbar__link {
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: var(--green);
  }

  .topbar__link .icon {
    color: var(--white);
  }

  .topbar__num {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.eyebrow--center {
  justify-content: center;
}
