/* === Design tokens === */
:root {
  --color-accent: #E8641C;
  --color-ink: #1A1A1A;
  --color-concrete: #7FA0F5;
  --color-surface: #F3F1ED;
  --color-white: #FFFFFF;
  --color-gray: #6B6B6B;
  --color-border: #E2DFD8;
  --color-blue: #1746D5;
  --color-blue-dark: #12379E;
  --color-blue-light: #7FA0F5;
  --color-red: #D91B11;
  --color-red-text: #A81109;
  --color-navy: #0E1B3D;
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(26,26,26,0.06), 0 8px 24px rgba(26,26,26,0.06);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 1rem; }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding-top: 4rem; padding-bottom: 4rem; }
.section-title {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-blue-dark); }
.btn-secondary {
  background: transparent;
  border-color: var(--color-blue);
  color: var(--color-blue);
  margin-top: 10px;
}
.btn-secondary:hover { background: var(--color-blue); color: var(--color-white); }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.site-header__brand {
  background: var(--color-white);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  line-height: 0;
}
.site-header__logo { height: 38px; width: auto; }
.site-nav {
  display: flex;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a { padding: 0.25rem 0; border-bottom: 2px solid transparent; color: var(--color-white); }
.site-nav a:hover, .site-nav a.is-active { border-color: var(--color-blue-light); }
.site-header__actions { display: flex; align-items: center; gap: 1.25rem; }
.site-header__phone { font-weight: 600; font-size: 0.9rem; white-space: nowrap; color: var(--color-white); }
.site-header__phone:hover { color: var(--color-blue-light); }
.cart-icon { position: relative; display: inline-flex; color: var(--color-white); }
.cart-icon:hover, .cart-icon.is-active { color: var(--color-blue-light); }
.cart-icon__badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* `display: flex` ci-dessus l'emporte sur le `display: none` que le navigateur
   applique à [hidden] : sans cette règle, le badge reste visible à « 0 ». */
.cart-icon__badge[hidden] { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  padding: 0.35rem;
  cursor: pointer;
}
@media (max-width: 780px) {
  .site-header__inner { justify-content: flex-start; }
  .nav-toggle { display: inline-flex; order: 3; }
  .site-header__actions { order: 2; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-navy);
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* === Footer === */
.site-footer { background: var(--color-navy); color: var(--color-white); margin-top: 4rem; padding-left: 10px;}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 1.5rem;
}
.site-footer a:hover { color: var(--color-blue-light); }
.site-footer__brand { font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-accent); margin-bottom: 0.5rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__copyright {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0;
}
@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* === Hero === */
.hero { position: relative; height: 220vh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-concrete);
}
.hero__svg { width: min(90vw, 700px); height: auto; }
.hero__svg #hero-tsv-text {
  font-family: var(--font-heading);
  font-size: 64px;
  fill: var(--color-accent);
}
.hero__svg #hero-word-travaux text {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  fill: var(--color-ink);
}
.hero__svg #hero-crane-arm,
.hero__svg #hero-crane-group,
.hero__svg [id^="letter-"] {
  transform-box: view-box;
}
.hero__products {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 0;
}
.hero__product-thumb {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 0.5rem;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; }
  .hero__products { opacity: 1; }
  .hero__scroll-hint { display: none; }
}
.hero__video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--color-ink);
}
.hero__video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}
.hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(243, 241, 237, 0.78);
}
.hero__foreground {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* === Value / category cards === */
.value-card, .category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.value-card h3, .category-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }

/* === Product cards === */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.product-card.is-clickable { cursor: pointer; }
.product-card.is-clickable:hover { transform: translateY(-4px); }
.product-card img { width: 100%; height: 180px; object-fit: contain; background: var(--color-white); padding: 1rem; }
.product-card__body { padding: 1rem 1.25rem 1.25rem; }
.product-card__ref { font-size: 0.75rem; color: var(--color-gray); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.product-card__title { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin: 0; }
.product-card__tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.product-card__tag--location { background: rgba(23,70,213,0.1); color: var(--color-blue); }
.product-card__tag--vente { background: rgba(217,27,17,0.1); color: var(--color-red-text); }

/* === Filters === */
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter-pill {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.filter-pill.is-active { background: var(--color-blue); color: var(--color-white); border-color: var(--color-blue); }

/* === Product dialog === */
dialog#product-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 560px;
  width: 92vw;
}
dialog#product-dialog::backdrop { background: rgba(26,26,26,0.6); }
.product-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  width: 32px;
  height: 32px;
}
#product-dialog-body { padding: 2rem; position: relative; }
.product-dialog__image { width: 100%; height: 220px; object-fit: contain; margin-bottom: 1rem; }
.product-dialog__ref { color: var(--color-gray); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 0.25rem; }
.product-dialog__title { margin-bottom: 1rem; }
.product-dialog__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.product-dialog__badge--rentable { background: rgba(23,70,213,0.1); color: var(--color-blue); }
.product-dialog__badge--vente { background: rgba(217,27,17,0.1); color: var(--color-red-text); }
.product-dialog__specs { margin-bottom: 1.5rem; }
.product-dialog__specs li { padding-left: 1.1rem; position: relative; margin-bottom: 0.4rem; font-size: 0.92rem; }
.product-dialog__specs li::before { content: '—'; position: absolute; left: 0; color: var(--color-blue); }
.product-dialog__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* === Forms === */
form label { display: block; font-weight: 600; font-size: 0.9rem; margin: 1rem 0 0.35rem; }
form input, form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
}
form input:focus, form textarea:focus { outline: 2px solid var(--color-blue); outline-offset: 1px; }
.form-status { margin-top: 1rem; font-weight: 600; }

/* === Devis page === */
.devis-recap__list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.devis-recap__item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.devis-recap__item img { width: 64px; height: 64px; object-fit: contain; }
.devis-recap__title { font-weight: 700; margin: 0; }
.devis-recap__ref { font-size: 0.8rem; color: var(--color-gray); margin: 0; }
.devis-recap__qty { display: flex; align-items: center; gap: 0.5rem; }
.devis-recap__qty button, .devis-recap__remove {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: 6px;
  width: 28px;
  height: 28px;
}
.devis-stepper { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; padding: 0; list-style: none; }
.devis-stepper__item { font-size: 0.85rem; font-weight: 600; color: var(--color-gray); }
.devis-stepper__item.is-active { color: var(--color-blue); font-weight: 700; }
.devis-stepper__item.is-done { color: var(--color-ink); }
.devis-step { display: none; }
.devis-step.is-active { display: block; }
.devis-step .btn { margin-top: 1.5rem; margin-right: 0.75rem; }

/* === Consent checkbox === */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
  color: var(--color-gray);
}
.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}
.form-consent a {
  text-decoration: underline;
  color: var(--color-ink);
}

/* === Pages légales : tableaux et listes === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--color-surface);
  font-weight: 700;
}
/* Les tableaux larges défilent dans leur propre conteneur plutôt que de
   forcer un défilement horizontal de toute la page sur mobile. */
@media (max-width: 700px) {
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
  .data-table td, .data-table th { white-space: normal; min-width: 9rem; }
}
.bullet-list { list-style: disc; padding-left: 1.4rem; margin: 0 0 1em; }
.bullet-list li { margin-bottom: 0.4rem; }
.form-notice {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--color-surface);
  border-left: 3px solid var(--color-blue);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-ink);
}

/* === Bandeau de consentement === */
.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: rgba(14, 27, 61, 0.35);
  backdrop-filter: blur(2px);
}
.consent__box {
  width: 100%;
  max-width: 720px;
  max-height: min(85vh, 640px);
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.28);
}
.consent__tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}
.consent__tab {
  flex: 1;
  padding: 0.9rem 0.5rem;
  border: 0;
  background: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gray);
  border-bottom: 3px solid transparent;
}
.consent__tab.is-active { color: var(--color-blue); border-bottom-color: var(--color-blue); }
.consent__view { padding: 1.5rem 1.75rem 0.5rem; }
.consent__title { font-size: 1.15rem; margin-bottom: 0.6rem; }
.consent__text { font-size: 0.9rem; line-height: 1.6; color: var(--color-ink); }
.consent__link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: underline;
  margin-bottom: 0.5rem;
}
.consent__panel { margin-top: 1.25rem; border-top: 1px solid var(--color-border); }
.consent__cat { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.consent__cat:last-child { border-bottom: 0; }
.consent__cat-head { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.consent__cat-head input { width: 1.05rem; height: 1.05rem; accent-color: var(--color-blue); }
.consent__cat-head input:disabled { cursor: not-allowed; }
.consent__cat-title { font-weight: 700; font-size: 0.95rem; }
.consent__badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue-dark);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.consent__cat-desc {
  margin: 0.5rem 0 0 1.65rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-gray);
}
.consent__table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.consent__table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.consent__table th, .consent__table td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.consent__table th { background: var(--color-surface); font-weight: 700; }
.consent__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.25rem 1.75rem 1.75rem;
}
/* Les trois actions ont volontairement le même poids visuel : la CNIL impose que
   refuser soit aussi simple qu'accepter. Seule la couleur distingue l'acceptation. */
.consent__btn {
  padding: 0.8rem 0.75rem;
  border: 1px solid var(--color-blue);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-blue);
  font-size: 0.9rem;
  font-weight: 700;
}
.consent__btn:hover { background: var(--color-surface); }
.consent__btn--accent {
  background: var(--color-blue);
  color: var(--color-white);
}
.consent__btn--accent:hover { background: var(--color-blue-dark); }
@media (max-width: 620px) {
  .consent { padding: 0; }
  .consent__box { max-width: none; border-radius: var(--radius) var(--radius) 0 0; max-height: 90vh; }
  .consent__view { padding: 1.25rem 1.15rem 0.5rem; }
  .consent__actions { grid-template-columns: 1fr; padding: 1rem 1.15rem 1.25rem; }
}

/* Bouton d'activation de la vidéo, affiché tant que le consentement fait défaut */
.hero__video-consent { position: absolute; bottom: 4.5rem; z-index: 3; }
.hero__video-activate {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--color-ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-ink);
  font-size: 0.8rem;
  font-weight: 600;
}
.hero__video-activate:hover { background: var(--color-white); }

/* === Ambiance sonore de chantier (page d'accueil) ========================== */
/*
   Bouton flottant permanent : le visiteur doit pouvoir couper le son en un geste,
   sans avoir à le chercher ni à remonter en haut de page. Codes du chantier —
   navy du bâti, orange de signalisation — pour qu'il se lise comme un élément du
   site et non comme un lecteur multimédia générique.
*/
.hero-sound {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  /* Sous le bandeau de consentement (z-index 1000), qui doit rester prioritaire. */
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero-sound[hidden] { display: none; }

/* Tant que le bandeau de consentement occupe le bas de l'écran, le bouton
   s'efface : deux éléments flottants superposés dans le même coin. */
:root.consent-open .hero-sound {
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
}

.hero-sound__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.1rem 0 0.9rem;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(14, 27, 61, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hero-sound__btn:hover {
  background: #16264f;
  box-shadow: 0 6px 20px rgba(14, 27, 61, 0.36);
  transform: translateY(-1px);
}
.hero-sound__btn:active { transform: translateY(0) scale(0.97); }
.hero-sound__btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.hero-sound__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex: none;
}

/* Vumètre : trois barres qui montent et descendent, signal immédiat que quelque
   chose est en train de jouer. Visible seulement à la lecture. */
.hero-sound__bars {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 18px;
}
.hero-sound__bars span {
  display: block;
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--color-accent);
}
/* Les barres ne s'agitent que si du son sort réellement. Pendant une pause non
   demandée — hors bannière, onglet en arrière-plan — elles restent figées :
   l'ambiance est armée, mais silencieuse ici. */
.hero-sound.is-audible .hero-sound__bars span {
  animation: hero-sound-bar 0.9s ease-in-out infinite;
}
.hero-sound__bars span:nth-child(2) { animation-delay: 0.15s; }
.hero-sound__bars span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hero-sound-bar {
  /* Le creux reste à 7px : plus bas, les trois barres se lisent comme trois points
     de chargement au lieu d'un vumètre. */
  0%, 100% { height: 7px; }
  50% { height: 17px; }
}

.hero-sound.is-playing .hero-sound__bars { display: flex; }
.hero-sound.is-playing .hero-sound__icon-muted { display: none; }

/* À l'arrêt, une pulsation lente du liseré signale que le son existe, sans
   agiter la page. */
.hero-sound:not(.is-playing) .hero-sound__btn {
  animation: hero-sound-pulse 3.2s ease-in-out infinite;
}
@keyframes hero-sound-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(14, 27, 61, 0.28), 0 0 0 0 rgba(232, 100, 28, 0.45); }
  55% { box-shadow: 0 4px 14px rgba(14, 27, 61, 0.28), 0 0 0 7px rgba(232, 100, 28, 0); }
}

/* Libellé affiché quelques secondes quand le son démarre sans que le visiteur
   l'ait demandé : il doit savoir d'où vient le bruit et comment l'arrêter. */
.hero-sound__hint {
  margin: 0;
  max-width: 15rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  color: var(--color-ink);
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-sound.is-hinting .hero-sound__hint { opacity: 1; transform: translateY(0); }

/* Mobile : pastille ronde de 48 px — cible tactile confortable, encombrement
   minimal sur un écran où chaque pouce carré sert à lire le catalogue. */
@media (max-width: 600px) {
  .hero-sound { right: 0.9rem; bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px)); }
  .hero-sound__btn {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .hero-sound__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .hero-sound__hint { max-width: calc(100vw - 2.5rem); font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sound,
  .hero-sound__btn,
  .hero-sound__hint { transition: none; }
  .hero-sound__bars span,
  .hero-sound:not(.is-playing) .hero-sound__btn { animation: none; }
  .hero-sound__bars span { height: 11px; }
}

/* === Corrections responsive sur écrans étroits ============================= */
/*
   Le logo était comprimé jusqu'à disparaître (largeur 0) en dessous de ~340 px :
   dans l'en-tête flex, le numéro de téléphone porte white-space: nowrap et refuse
   de se réduire, si bien que toute la compression retombait sur le logo, seul
   élément souple de la ligne. Le figer règle la cause ; les ajustements qui
   suivent libèrent la place nécessaire pour que tout tienne malgré tout.
*/
.site-header__brand { flex: none; }

@media (max-width: 400px) {
  .site-header__inner { gap: 0.75rem; }
  .site-header__actions { gap: 0.85rem; }
  .site-header__phone { font-size: 0.8rem; }
}
@media (max-width: 340px) {
  /* Dernier recours : sur les écrans les plus étroits, le numéro cède la place au
     logo. Il reste joignable en un geste depuis le menu et le pied de page. */
  .site-header__phone { display: none; }
}

/* Le bouton d'activation de la vidéo et celui de l'ambiance sonore occupent tous
   deux le bas de la bannière. À 320 px il ne restait que 6 px entre eux — un zoom
   du texte suffisait à les faire se toucher. On remonte franchement le premier. */
@media (max-width: 600px) {
  .hero__video-consent { bottom: 7rem; }
}
