/* ==========================================================================
   LP Bâtiment — feuille de style
   Couleurs : noir, blanc et rouge du logo
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101114;
  --ink-2: #181A1F;
  --paper: #ECEEF1;
  --white: #FFFFFF;
  --red: #DC1A22;
  --red-dark: #B01218;
  --red-bright: #FF3A3F;

  --text-on-dark: #F4F4F6;
  --muted-on-dark: #D9D9DE;
  --text-on-light: #1F2024;
  --muted-on-light: #3A3B41;

  --line-on-dark: rgba(255, 255, 255, 0.24);
  --line-on-light: rgba(16, 17, 20, 0.22);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 2px;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a[href^="tel:"] { white-space: nowrap; }
[hidden] { display: none !important; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.icon {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Typographie ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.12em;
  line-height: 1.4; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; flex: none; width: 10px; height: 10px; background: var(--red);
}
.eyebrow--dark { color: var(--ink); }
.eyebrow--light { color: var(--white); }

.h2,
.h1-page {
  margin: 0;
  font-stretch: 125%; font-weight: 800; line-height: 1.05;
  text-transform: uppercase; text-wrap: balance;
}
.h2 { font-size: clamp(28px, 3.6vw, 48px); }
.h1-page { font-size: clamp(30px, 4.2vw, 56px); }

.h3 { margin: 12px 0 0; font-size: 18px; font-weight: 700; }
.h3--display {
  margin: 0;
  font-stretch: 125%; font-weight: 800; font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.15; text-transform: uppercase;
}

.muted { color: var(--muted-on-light); }
.small { font-size: 15px; color: var(--muted-on-light); }
.section--dark .muted,
.section--dark .small { color: var(--muted-on-dark); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn .icon--arrow { transition: transform 0.25s ease; }
.btn:hover .icon--arrow { transform: translateX(5px); }

.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; white-space: nowrap; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
.btn--block { width: 100%; }

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

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn--outline-dark { background: transparent; color: var(--ink); border-color: rgba(16, 17, 20, 0.5); }
.btn--outline-dark:hover { background: var(--red); border-color: var(--red); color: var(--white); }

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

.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; transform: none; }

.label-short { display: none; }

/* ---------- Barre de progression ---------- */

.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left center;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--header-h); padding-block: 14px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none;
}
.brand__logo { width: 56px; height: 44px; object-fit: contain; }
.brand__name {
  font-stretch: 125%; font-weight: 800; font-size: 17px;
  letter-spacing: 0.04em; line-height: 1.1; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a {
  position: relative; padding: 10px 0;
  color: var(--text-on-dark); text-decoration: none; transition: color 0.25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.nav a:hover,
.nav a:focus-visible { color: var(--white); }
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-tel {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-size: 15px; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: color 0.2s ease;
}
.header-tel .icon { color: var(--red-bright); width: 18px; height: 18px; }
.header-tel:hover { color: var(--red-bright); }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: transparent; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon--close { display: none; color: var(--red-bright); }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

.mobile-nav {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  animation: drop 0.28s var(--ease) both;
}
.mobile-nav .container { padding-block: 4px 22px; }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 58px; color: var(--white); text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-stretch: 125%; font-weight: 800; font-size: 17px;
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.mobile-nav__link .icon { color: var(--red-bright); width: 20px; height: 20px; transition: transform 0.25s ease; }
.mobile-nav__link:hover,
.mobile-nav__link:active { color: var(--red-bright); }
.mobile-nav__link:hover .icon { transform: translateX(4px); }
.mobile-nav__actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 20px;
}
.mobile-nav__actions .btn { padding: 0 10px; font-size: 15px; white-space: nowrap; }

/* ---------- Haut de page ---------- */

.hero { background: var(--ink); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: clamp(40px, 6vw, 80px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 104px);
}
.hero__text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__title { margin: 0; display: flex; flex-direction: column; gap: 26px; }

.hero__badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  font-size: clamp(13px, 1.25vw, 17px); font-weight: 800;
  letter-spacing: 0.03em; line-height: 1.3; text-transform: uppercase;
}
.hero__badge .icon { width: 22px; height: 22px; }

.hero__headline {
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(36px, 5.1vw, 68px); line-height: 1.04;
  letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance;
}
.hero__headline em { font-style: normal; color: var(--red-bright); }

.hero__lead {
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-on-dark);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__points {
  list-style: none; margin: 12px 0 0; padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 18px; font-size: 15px; line-height: 1.4; color: var(--text-on-dark);
}
.hero__points li { display: flex; align-items: flex-start; gap: 10px; }
.hero__points .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--red-bright); stroke-width: 2.4; }

.hero__badge, .hero__headline, .hero__lead, .hero__actions, .hero__points, .wall {
  animation: rise 0.9s var(--ease) both;
}
.hero__headline { animation-delay: 0.1s; }
.hero__lead { animation-delay: 0.2s; }
.wall { animation-delay: 0.2s; }
.hero__actions { animation-delay: 0.32s; }
.hero__points { animation-delay: 0.46s; }

/* Schéma du mur */
.wall {
  margin: 0; min-height: 520px;
  display: flex; align-items: stretch; justify-content: center; gap: 10px;
}
.wall__slats {
  flex: 0 0 clamp(48px, 9vw, 110px);
  background: repeating-linear-gradient(to bottom, var(--red) 0, var(--red) 18px, transparent 18px, transparent 32px);
  clip-path: polygon(100% 0%, 100% 100%, 0% 94%, 0% 38%);
}
.wall__panel {
  position: relative; flex: 1 1 auto; max-width: 440px; overflow: hidden;
  color: var(--ink);
  background-color: #E9EBEE;
  background-image:
    linear-gradient(rgba(16, 17, 20, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 17, 20, 0.14) 1px, transparent 1px);
  background-size: 100% 46px, 92px 46px;
}
.wall__damp {
  position: absolute; left: 0; right: 0; bottom: 0; height: 76%;
  transform: scaleY(0.2); transform-origin: center bottom;
  background: linear-gradient(to top, rgba(16, 17, 20, 0.78) 0%, rgba(16, 17, 20, 0.42) 55%, rgba(16, 17, 20, 0) 100%);
  animation: dry 10s cubic-bezier(0.6, 0, 0.2, 1) 1.2s infinite both;
}
.wall__caption,
.wall__ground {
  position: absolute; left: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.wall__caption { top: 18px; color: #3A3C42; }
.wall__ground { bottom: 16px; color: var(--white); }
.wall__healthy {
  position: absolute; left: 20px; right: 20px; top: 30%;
  display: flex; flex-direction: column; gap: 4px;
}
.wall__healthy strong {
  font-stretch: 125%; font-weight: 800; font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1; text-transform: uppercase;
}
.wall__healthy span { max-width: 240px; font-size: 14px; line-height: 1.45; color: var(--text-on-light); }
.wall__barrier {
  position: absolute; left: 0; right: 0; bottom: 21%;
  display: flex; flex-direction: column; gap: 8px;
}
.wall__tag {
  align-self: flex-end; margin-right: 16px; padding: 5px 10px;
  background: var(--red); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.wall__line {
  height: 4px; background: var(--red);
  display: flex; align-items: center; justify-content: space-around;
  transform-origin: left center; animation: line 1.1s var(--ease) 0.7s both;
}
.wall__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
.wall__dot:nth-child(2) { animation-delay: 0.3s; }
.wall__dot:nth-child(3) { animation-delay: 0.6s; }
.wall__dot:nth-child(4) { animation-delay: 0.9s; }
.wall__dot:nth-child(5) { animation-delay: 1.2s; }
.wall__dot:nth-child(6) { animation-delay: 1.5s; }

/* ---------- Bande défilante ---------- */

.ticker {
  position: relative; overflow: hidden; padding: 20px 0;
  background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.ticker::before,
.ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 1;
  width: 9%; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink), rgba(16, 17, 20, 0)); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--ink), rgba(16, 17, 20, 0)); }
.ticker__track {
  display: flex; align-items: center; gap: 30px;
  width: max-content; padding-left: 30px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; white-space: nowrap; color: var(--muted-on-dark);
  animation: slide 60s linear infinite;
}
.ticker__track i { flex: none; width: 6px; height: 6px; background: var(--red); }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section--light { background: var(--paper); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section--dark {
  background: var(--ink-2); color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.section--white { color-scheme: light; }

.section-head {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head--split {
  flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; max-width: none;
}
.section-head__main { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.section-head__aside { max-width: 400px; color: var(--muted-on-light); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: clamp(40px, 6vw, 88px);
}
.split--faq { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: clamp(32px, 6vw, 88px); }
.split--contact { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(40px, 6vw, 80px); }
.split__col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.split__col > .btn { align-self: flex-start; }
.split--faq > .split__col { gap: 16px; align-self: start; }

/* ---------- Cartes prestations ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  padding: 34px 30px 30px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-on-light); border-radius: var(--radius);
}
.card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(16, 17, 20, 0.16); }
.card:hover::before { transform: scaleX(1); }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: 0.1em; color: var(--red-dark); }
.card__arrow { width: 26px; height: 26px; stroke-width: 1.8; transition: transform 0.3s ease; }
.card:hover .card__arrow { transform: translate(5px, -5px); }
.card__title { margin: 0; font-stretch: 125%; font-weight: 800; font-size: 24px; line-height: 1.15; text-transform: uppercase; }
.card__text { color: var(--text-on-light); }
.card__link {
  margin-top: auto; padding-top: 12px;
  font-size: 16px; font-weight: 700; color: var(--red-dark); text-decoration: none;
}
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.project { margin: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-on-light); border-radius: var(--radius); overflow: hidden; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project figcaption { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px 24px; }
.project figcaption span { font-size: 15px; color: var(--muted-on-light); }

/* ---------- Humidité ---------- */

.section--dark p { color: var(--text-on-dark); }

.signs { list-style: none; margin: 0; padding: 0; }
.signs li {
  position: relative; padding: 16px 0 16px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.26); color: var(--text-on-dark);
}
.signs li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.26); }
.signs li::before { content: ""; position: absolute; left: 0; top: calc(16px + 0.55em); width: 10px; height: 10px; background: var(--red); }
.signs strong { color: var(--white); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex; gap: 22px; padding: 24px;
  background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.26); border-radius: var(--radius);
}
.step__num { flex: none; font-stretch: 125%; font-weight: 800; font-size: 30px; line-height: 1; color: var(--red-bright); }
.step strong { display: block; font-size: 18px; color: var(--white); }
.step p { margin-top: 6px; }

/* ---------- Questions fréquentes ---------- */

.faq { border-top: 1px solid rgba(16, 17, 20, 0.3); }
.faq__item { border-bottom: 1px solid rgba(16, 17, 20, 0.3); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 700; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 22px; height: 22px; stroke-width: 2.2; transition: transform 0.25s ease, color 0.25s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--red); }
.faq__item p { padding: 0 44px 26px 0; color: var(--text-on-light); }
.faq__item[open] p { animation: rise 0.4s var(--ease) both; }

/* ---------- Contact et formulaire ---------- */

.contact-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid rgba(16, 17, 20, 0.24); }
.contact-list li { border-bottom: 1px solid rgba(16, 17, 20, 0.24); }
.contact-item {
  display: flex; align-items: center; gap: 18px; padding: 20px 0;
  color: var(--ink); text-decoration: none; transition: transform 0.25s ease;
}
a.contact-item:hover { transform: translateX(6px); }
.contact-item .icon { width: 24px; height: 24px; color: var(--red); stroke-width: 1.8; }
.contact-item span { display: flex; flex-direction: column; min-width: 0; }
.contact-item small { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-light); }
.contact-item b { font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.contact-item em { font-size: 15px; font-style: normal; color: var(--muted-on-light); }

.form-card {
  background: var(--paper); color: var(--ink);
  border: 1px solid rgba(16, 17, 20, 0.24); border-top: 4px solid var(--red); border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 44px);
}
.quote-form { display: flex; flex-direction: column; gap: 20px; position: relative; }
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.req { color: var(--red-dark); }

.field input,
.field select,
.field textarea {
  width: 100%; min-height: 54px; padding: 0 16px;
  background: var(--white); color: var(--ink);
  border: 1px solid rgba(16, 17, 20, 0.5); border-radius: var(--radius);
  font: inherit; font-size: 18px;
  transition: border-color 0.2s ease;
}
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6B6B70; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; border-color: var(--ink); }
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: var(--red-dark); }

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

.consent { display: flex; align-items: flex-start; gap: 12px; }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); }
.consent label { font-size: 14px; line-height: 1.5; color: var(--text-on-light); }
.consent a { color: var(--ink); text-underline-offset: 3px; }
.consent a:hover { color: var(--red-dark); }

.form-error {
  padding: 12px 16px; font-size: 15px; line-height: 1.5;
  color: #7A0C10; background: #FDECEC; border: 1px solid var(--red-dark); border-radius: var(--radius);
}
.form-error a { color: inherit; font-weight: 700; }

.form-success {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  min-height: 360px; padding: 24px 0;
}
.form-success:focus { outline: none; }
.form-success > .btn { align-self: flex-start; }
.form-success__icon {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; background: var(--red); color: var(--white);
}
.form-success__icon .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.form-success p { color: var(--text-on-light); }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.site-footer > .container {
  display: flex; flex-direction: column; gap: 48px;
  padding-block: clamp(48px, 6vw, 80px) 32px;
}
.site-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px;
}
.site-footer__brand img { width: 96px; height: 75px; object-fit: contain; }
.site-footer__brand p { margin-top: 16px; max-width: 300px; font-size: 15px; color: var(--muted-on-dark); }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-on-dark); }
.site-footer__title { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
.site-footer__col a { color: var(--text-on-dark); text-decoration: none; overflow-wrap: anywhere; transition: color 0.2s ease, transform 0.25s ease; }
.site-footer__col a:hover { color: var(--red-bright); transform: translateX(5px); }
.site-footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding: 24px 84px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px; color: var(--muted-on-dark);
}
.site-footer__legal a { color: var(--text-on-dark); }
.site-footer__legal a:hover { color: var(--red-bright); }
.site-footer--compact > .site-footer__legal { padding: 28px var(--gutter); border-top: 0; }

/* ---------- WhatsApp flottant et barre mobile ---------- */

.fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(220, 26, 34, 0.9);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.fab .icon { width: 30px; height: 30px; stroke-width: 1.9; }
.fab:hover { transform: translateY(-2px); background: var(--red); color: var(--white); }

.action-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 68px; color: var(--white); text-decoration: none;
  font-size: 13px; font-weight: 700;
}
.action-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.action-bar .icon { width: 22px; height: 22px; color: var(--red-bright); }
.action-bar__main { background: var(--red); }
.action-bar .action-bar__main .icon { color: var(--white); }
.action-bar a:active { opacity: 0.8; }

/* ---------- Page mentions légales ---------- */

.legal { background: var(--paper); color: var(--ink); padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.legal__head {
  display: flex; flex-direction: column; gap: 16px;
  padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 3px solid var(--red);
}
.legal__body { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); padding-top: clamp(32px, 4vw, 56px); }
.legal__toc { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; align-self: flex-start; font-size: 15px; }
.legal__toc-title { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.legal__toc a { color: var(--text-on-light); text-decoration: none; }
.legal__toc a:hover { color: var(--red-dark); }
.legal__content { flex: 999 1 560px; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 48px; }
.legal__content section { display: flex; flex-direction: column; gap: 14px; }
.legal__content h2 { margin: 0; font-stretch: 125%; font-weight: 800; font-size: 22px; line-height: 1.2; text-transform: uppercase; }
.legal__content p,
.legal__content li { color: var(--text-on-light); }
.legal__content a { color: var(--ink); text-underline-offset: 3px; }
.legal__content a:hover { color: var(--red-dark); }
.legal__facts {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0 32px; border-top: 1px solid rgba(16, 17, 20, 0.24);
}
.legal__facts div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(16, 17, 20, 0.24); }
.legal__facts dt { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-light); }
.legal__facts dd { margin: 0; font-weight: 600; }
.legal__box {
  padding: clamp(24px, 3vw, 40px); background: var(--white);
  border: 1px solid var(--line-on-light); border-top: 4px solid var(--red); border-radius: var(--radius);
}
.legal__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(16, 17, 20, 0.24); }
.legal__list li { padding: 14px 0; border-bottom: 1px solid rgba(16, 17, 20, 0.24); }
.legal__list strong { color: var(--ink); }

@media (min-width: 900px) {
  .legal__toc { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Pages message (merci, 404) ---------- */

.message { background: var(--ink); }
.message__inner {
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px;
  max-width: 820px; padding-block: clamp(64px, 10vw, 140px);
}
.message__inner p { color: var(--text-on-dark); max-width: 560px; }
.message__inner .muted { color: var(--muted-on-dark); }
.message__inner a:not(.btn) { color: var(--white); }
.message__icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: var(--red); }
.message__icon .icon { width: 30px; height: 30px; stroke: var(--white); stroke-width: 2.6; fill: none; }

/* ---------- Apparition au défilement ---------- */

.reveal { transition: opacity 0.75s var(--ease), translate 0.75s var(--ease); }
.reveal.is-pending { opacity: 0; translate: 0 30px; }
.card.reveal {
  transition: opacity 0.75s var(--ease), translate 0.75s var(--ease), transform 0.3s ease, box-shadow 0.3s ease;
}
.cards > .reveal:nth-child(2) { transition-delay: 0.1s, 0.1s, 0s, 0s; }
.cards > .reveal:nth-child(3) { transition-delay: 0.2s, 0.2s, 0s, 0s; }
.split > .reveal:nth-child(2) { transition-delay: 0.12s, 0.12s; }

/* ---------- Animations ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: 0.45; } }
@keyframes dry {
  0% { transform: scaleY(1); opacity: 0; }
  6% { transform: scaleY(1); opacity: 1; }
  20% { transform: scaleY(1); }
  68% { transform: scaleY(0.2); }
  93% { transform: scaleY(0.2); opacity: 1; }
  100% { transform: scaleY(0.2); opacity: 0; }
}

/* ---------- Adaptations écran ---------- */

@media (max-width: 1180px) {
  .nav, .header-tel { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1181px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 700px) {
  .fab { display: none; }
  .action-bar { display: grid; }
  .site-footer:not(.site-footer--compact) { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .site-footer__legal { padding-right: 0; }
  .site-footer__col a { padding-block: 7px; }
  .site-footer__col { gap: 6px; }
  .wall { min-height: 400px; }
  .hero__actions .btn,
  .split__col > .btn--black { width: 100%; }
}

@media (max-width: 520px) {
  .label-long { display: none; }
  .label-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .ticker__track { animation: none !important; }
  .wall__damp { animation: none !important; transform: scaleY(0.2); }
  .progress { display: none; }
}

@media print {
  .site-header, .ticker, .fab, .action-bar, .progress, .wall { display: none !important; }
  .section, .hero, .site-footer { background: #FFFFFF !important; color: #000000 !important; }
  .reveal.is-pending { opacity: 1; translate: none; }
}
