/* Home Clean 37 · homeclean37.com
   Feuille de style unique. Aucune ressource externe, polices système. */

:root {
  --sauge: #A3B18A;
  --sauge-fonce: #5F7161;
  --vert-texte: #2F3B30;
  --sauge-clair: #EEF1EA;
  --blanc: #FFFFFF;
  --fond: #FBFBF8;
  --nuit: #232C24;

  --texte-doux: #4A574B;
  --texte-clair: #C9D2BD;          /* 8:1 sur --vert-texte */
  --bordure-champ: #7F8B80;
  --filet: rgba(47, 59, 48, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  --vp-wide: 1280px;
  --header-h: 52px;
  --gutter: 24px;
  --section-y: clamp(88px, 6rem + 5vw, 160px);
  --radius: 14px;
  --radius-tile: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--fond);
  color: var(--vert-texte);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.2rem + 6.2vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 1.1rem + 3.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p, ul, ol, figure, blockquote { margin: 0; }

a {
  color: var(--sauge-fonce);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--vert-texte); }

:focus-visible {
  outline: 2px solid var(--sauge-fonce);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id],
.notice { scroll-margin-top: calc(var(--header-h) + 16px); }

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

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--vert-texte);
  color: var(--blanc);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; color: var(--blanc); }

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

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sauge-fonce);
}

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

.lead {
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--texte-doux);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.btn-primary { background: var(--sauge-fonce); color: var(--blanc); }
.btn-primary:hover { background: #4A5A4C; color: var(--blanc); }
.btn-primary:active { transform: scale(0.98); }

.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 0.875rem; }
.header-cta { white-space: nowrap; }
@media (max-width: 400px) {
  .header-cta { padding-inline: 12px; font-size: 0.8125rem; }
}
@media (max-width: 350px) {
  .header .brand-name, .site-header .brand-name { display: none; }
}
.btn-lg { min-height: 56px; padding: 14px 34px; font-size: 1.1875rem; }
.btn-block { display: flex; width: 100%; }

.section-dark .btn-primary,
.quote .btn-primary { background: var(--sauge); color: var(--vert-texte); }
.section-dark .btn-primary:hover { background: #B6C29F; color: var(--vert-texte); }
.form-card .btn-primary { background: var(--vert-texte); color: var(--blanc); }
.form-card .btn-primary:hover { background: #1F2820; color: var(--blanc); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--sauge-fonce);
  text-decoration: none;
}

.link-arrow::after {
  content: "›";
  font-size: 1.5em;
  line-height: 1;
  transform: translateY(-0.04em);
  transition: transform 200ms var(--ease-out);
}

.link-arrow:hover { color: var(--vert-texte); text-decoration: underline; }
.link-arrow:hover::after { transform: translate(3px, -0.04em); }
.link-arrow-light { color: var(--sauge); }
.link-arrow-light:hover { color: var(--blanc); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(251, 251, 248, 0.94);
  transition: box-shadow 200ms var(--ease-out);
}

.site-header.is-scrolled,
.header-simple { box-shadow: 0 1px 0 var(--filet); }

/* Page d'accueil : en-tête transparent sur la photo, plein une fois la page défilée ou le menu ouvert */
.header-over-hero:not(.is-scrolled) { background: transparent; }
html.menu-open .header-over-hero { background: rgba(251, 251, 248, 0.94); }
.header-over-hero:not(.is-scrolled) .nav-list a { color: #323D36; font-weight: 500; }

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: auto;
  color: var(--vert-texte);
  text-decoration: none;
}

.brand:hover { color: var(--vert-texte); }
.brand-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { color: var(--vert-texte); }
.brand-light, .brand-light:hover { color: var(--blanc); }
.brand-light .brand-mark { color: var(--blanc); }

.menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vert-texte);
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 250ms var(--ease-out);
}

.menu-toggle-bars { position: relative; transform: translateY(-3px); }
.menu-toggle-bars::before { content: ""; position: absolute; top: 6px; left: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

/* Menu mobile plein écran */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: none;
  padding: 24px var(--gutter) 48px;
  background: var(--fond);
  overflow-y: auto;
}

.site-nav.is-open { display: block; }
html.menu-open { overflow: hidden; }

.nav-list { display: grid; padding: 0; margin: 0; list-style: none; }

.nav-list a {
  display: flex;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--filet);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--vert-texte);
  text-decoration: none;
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    overflow: visible;
    margin-inline: auto;
  }

  .brand { margin-right: 0; flex: 1 1 0; }
  .header-cta { flex: 0 0 auto; }

  .nav-list { display: flex; gap: 4px; }

  .nav-list a {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: -0.005em;
    color: var(--texte-doux);
  }

  .nav-list a:hover { color: var(--vert-texte); }
  .header-inner { gap: 0; }
  .header-cta { margin-left: auto; }
}

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #ebeae7;
  --p: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-h) + clamp(28px, 9vh, 96px));
  padding-bottom: 48px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #ebeae7;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

/* Seul un léger fondu en haut, pour l'en-tête : le texte repose sur le mur clair de la photo, sans voile */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 243, 240, 0.55) 0%, rgba(244, 243, 240, 0) 14%);
}

.hero-content {
  display: grid;
  justify-items: start;
  gap: 22px;
  max-width: 560px;
  margin-inline: 0;
  text-align: left;
  opacity: calc(1 - var(--p) * 1.4);
  transform: translateY(calc(var(--p) * -28px));
}

.hero h1 {
  color: var(--nuit);
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero h1 .h1-kicker { display: block; margin-bottom: 18px; text-wrap: wrap; color: var(--sauge-fonce); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; }
.hero h1 .h1-main { display: block; }

.hero-sub {
  max-width: 40ch;
  font-size: clamp(0.9375rem, 0.9rem + 0.22vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--texte-doux);
  text-wrap: pretty;
}

.hero-sub strong { font-weight: 500; color: var(--vert-texte); }

.hero .actions { justify-content: flex-start; margin-top: 4px; }
.hero .btn-lg { min-height: 46px; padding: 10px 26px; font-size: 1rem; font-weight: 500; }
.hero-note { display: none; }

/* Écrans en hauteur (mobile, tablette portrait) : photo recadrée, texte sur le mur dégagé en haut */
@media (max-aspect-ratio: 1/1) {
  .hero-img { object-position: 50% 100%; }
  .hero-content { max-width: 440px; }
}

@media (max-aspect-ratio: 1/1) and (max-width: 599.98px) {
  .hero-content { max-width: none; }
}

/* Écrans larges mais peu hauts : on retire la ligne de réassurance pour ne rien poser sur le canapé */
@media (min-aspect-ratio: 1001/1000) and (max-height: 760px),
       (min-aspect-ratio: 1001/1000) and (max-aspect-ratio: 8/5) {
  .hero-note { display: none; }
}

.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  opacity: calc(1 - var(--p) * 4);
}

.scroll-hint span {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--nuit);
  border-bottom: 2px solid var(--nuit);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 6px rgba(252, 248, 240, 0.9));
}

/* Texte d'ouverture sur fond sombre ----------------------------------- */

.statement {
  padding-block: var(--section-y);
  background: var(--vert-texte);
  color: var(--blanc);
}

.statement-inner { display: grid; gap: 28px; justify-items: start; max-width: 1100px; }

.statement-text {
  font-size: clamp(2rem, 1rem + 4.4vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: pretty;
  color: var(--blanc);
}


.statement-sub {
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--texte-clair);
}

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

.section { padding-block: var(--section-y); }
.section:not(.section-dark) + .section:not(.section-dark) { padding-top: calc(var(--section-y) * 0.35); }
.section-dark { background: var(--vert-texte); color: var(--blanc); }
.section-dark h2, .section-dark h3 { color: var(--blanc); }

.section-head { display: grid; gap: 14px; max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }

/* Bento des prestations */
.bento { display: grid; gap: 16px; }

.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-tile);
  background: var(--sauge-clair);
  color: var(--vert-texte);
}

.tile p { max-width: 38ch; color: var(--texte-doux); line-height: 1.45; }
.tile-icon { width: 56px; height: 56px; margin-bottom: auto; color: var(--sauge-fonce); }
.tile h3 { margin-top: 36px; }

.tile-dark { background: var(--vert-texte); }
.tile-dark h3 { color: var(--blanc); }
.tile-dark p { color: var(--texte-clair); }
.tile-dark .tile-icon { color: var(--sauge); }

.tile-sage { background: var(--sauge); }
.tile-sage p, .tile-sage .tile-icon { color: var(--vert-texte); }

.tile-light { background: var(--blanc); box-shadow: inset 0 0 0 1px var(--filet); }

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .tile { grid-column: span 3; min-height: 420px; }
  .tile-wide { grid-column: span 4; }
  .tile:not(.tile-wide) { grid-column: span 2; }
}

/* Bandeau devis intermédiaire */
.cta-strip {
  display: grid;
  gap: 24px;
  justify-items: start;
  margin-top: clamp(56px, 8vw, 112px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--filet);
}

.cta-strip-text {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (min-width: 900px) {
  .cta-strip { grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
}

/* Méthode : titre collant à gauche, étapes à droite */
.method { display: grid; gap: 48px; }
.method-head { display: grid; gap: 14px; align-content: start; justify-items: start; }

.steps { display: grid; gap: 0; padding: 0; list-style: none; }

.step {
  display: grid;
  gap: 10px;
  padding-block: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.step-num {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sauge);
}

.step p { max-width: 42ch; color: var(--texte-clair); line-height: 1.45; }

@media (min-width: 900px) {
  .method { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
  .method-head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
  .step { padding-block: 48px; }
  .step:first-child { padding-top: 0; border-top: 0; }
  .step h3 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
}

/* Pour qui */
.audiences { display: grid; gap: 16px; }

.audience {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-tile);
  background: var(--sauge-clair);
}

.audience p { max-width: 44ch; color: var(--texte-doux); line-height: 1.5; }

.audience-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blanc);
  color: var(--sauge-fonce);
}

@media (min-width: 900px) {
  .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* Engagements */
.band { padding-block: clamp(56px, 8vw, 104px); background: var(--sauge-clair); }

.commitments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; padding: 0; list-style: none; }
.commitments li { display: grid; gap: 4px; align-content: start; }
.commitments svg { margin-bottom: 12px; color: var(--sauge-fonce); }

.commitments strong {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.commitments span { color: var(--texte-doux); font-size: 0.9375rem; line-height: 1.4; }

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

/* Avis */
.reviews { display: grid; gap: 16px; }

.review {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-tile);
  background: var(--blanc);
  box-shadow: inset 0 0 0 1px var(--filet);
}

.stars { display: inline-flex; gap: 3px; color: var(--sauge-fonce); }

.review blockquote p {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.review blockquote { flex: 1 1 auto; }
.review figcaption { display: grid; gap: 2px; }
.review-name { font-weight: 600; }
.review-role { font-size: 0.9375rem; color: var(--texte-doux); }

@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .review blockquote p { font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.375rem); }
}

.google-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
}
.google-score { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--texte-doux); }
.google-score strong { font-size: 1.5rem; font-weight: 600; color: var(--vert-texte); }

/* Devis ---------------------------------------------------------------- */

.quote { padding-block: var(--section-y); }
.quote-grid { display: grid; gap: 48px; }
.quote-intro { display: grid; gap: 20px; align-content: start; justify-items: start; }
.quote-intro .lead { color: var(--texte-clair); }

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

.quote-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.0625rem;
  color: var(--blanc);
}

.quote-steps span {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sauge);
  color: var(--vert-texte);
  font-size: 0.9375rem;
  font-weight: 600;
}

.contact-list { display: grid; gap: 2px; padding: 0; list-style: none; font-weight: 500; }
.contact-list li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-list svg { color: var(--sauge); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; color: var(--blanc); }
.contact-list a:hover { color: var(--sauge); }

.sep { color: var(--sauge); }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-tile);
  background: var(--blanc);
  color: var(--vert-texte);
}

@media (min-width: 1100px) {
  .quote-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 48px); }
}

.form { display: grid; gap: 24px; }
.form-required { font-size: 0.875rem; color: var(--texte-doux); }
.form-grid { display: grid; gap: 22px; }

@media (min-width: 768px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
}

.field { display: grid; align-content: start; gap: 8px; min-width: 0; }
fieldset.field { margin: 0; padding: 0; border: 0; }

.field label,
.field legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vert-texte);
}

.field legend { margin-bottom: 8px; }
.req { color: var(--sauge-fonce); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--bordure-champ);
  border-radius: var(--radius);
  background: var(--blanc);
  color: var(--vert-texte);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { min-height: 148px; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgba(95, 113, 97, 0.35);
  outline-offset: 0;
  border-color: var(--sauge-fonce);
}

.field [aria-invalid="true"] { border-width: 2px; border-color: var(--vert-texte); padding: 13px 15px; }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--vert-texte);
}

.field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--vert-texte);
  color: var(--blanc);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.field-error[hidden] { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); }
.choices-grid .choice span { flex: 1; justify-content: center; text-align: center; }

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--bordure-champ);
  border-radius: 999px;
  background: var(--blanc);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--vert-texte);
  transition: background-color 150ms var(--ease-out);
}

.choice input:hover + span { border-color: var(--sauge-fonce); }
.choice input:checked + span { background: var(--vert-texte); border-color: var(--vert-texte); color: var(--blanc); }
.choice input:focus-visible + span { outline: 3px solid rgba(95, 113, 97, 0.35); outline-offset: 2px; }
.choice-group.is-invalid .choice span { border-color: var(--vert-texte); }

.consent { display: flex; align-items: flex-start; gap: 12px; }

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--vert-texte);
  cursor: pointer;
}

.consent label { font-size: 0.875rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.consent-link { padding-left: 34px; font-size: 0.875rem; }
.consent-link a { display: inline-flex; align-items: center; min-height: 44px; }

.form-note { font-size: 0.875rem; color: var(--texte-doux); text-align: center; }

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

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  color: var(--vert-texte);
  line-height: 1.5;
}

.notice[hidden] { display: none; }
.notice:target { display: flex; }
.notice svg { margin-top: 1px; color: var(--sauge-fonce); }
.notice-ok { background: var(--sauge-clair); border: 1px solid var(--sauge-fonce); }
.notice-error { background: var(--blanc); border: 2px solid var(--vert-texte); }
.notice-error svg { color: var(--vert-texte); }
.notice:focus-visible { outline-offset: 2px; }

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

.site-footer { padding-block: 36px 20px; background: var(--nuit); color: var(--texte-clair); font-size: 0.875rem; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.footer-top .brand-name { font-size: 0.9375rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--texte-clair); text-decoration: none; overflow-wrap: anywhere; transition: color 150ms var(--ease-out); }
.footer-links a:hover { color: var(--blanc); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--blanc); }

.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: inherit; text-decoration: none; }
.to-top:hover { color: var(--blanc); }

/* Pages secondaires (mentions, confidentialité, 404) ----------------------- */

.page-main { padding-top: calc(var(--header-h) + 64px); padding-bottom: var(--section-y); }
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); margin-bottom: 16px; }
.prose h2 { margin-top: 48px; margin-bottom: 12px; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; }
.prose p, .prose ul { margin-bottom: 16px; color: var(--texte-doux); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 600; color: var(--vert-texte); }
.prose .updated { font-size: 0.875rem; }
.prose .eyebrow { margin-bottom: 8px; }

.a-remplir { padding: 2px 6px; border-radius: 4px; background: var(--sauge); color: var(--vert-texte); font-weight: 600; }

.not-found { display: grid; gap: 24px; justify-items: start; max-width: 640px; }
.not-found .lead { margin-bottom: 8px; }
.not-found h1 { color: var(--vert-texte); }

.header-simple .header-cta { display: inline-flex; }

@media (max-width: 420px) {
  .header-simple .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .hero-content, .scroll-hint { transform: none !important; opacity: 1 !important; }
    .btn, .link-arrow::after, .menu-toggle-bars, .menu-toggle-bars::before { transition: none; }
  .btn:active { transform: none; }
}

@media (max-width: 599.98px) {
  .hero-note { display: none; }
  .hero-inner { padding-top: calc(var(--header-h) + 28px); }
}

/* Micro-interactions ---------------------------------------------------
   Réactions discrètes au survol, uniquement avec une souris
   et seulement si le visiteur n'a pas demandé à réduire les animations. */

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {

  /* Boutons : léger soulèvement et ombre douce */
  .btn { transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(35, 44, 36, 0.45); }
  .btn:active { transform: translateY(0) scale(0.98); box-shadow: 0 4px 10px -6px rgba(35, 44, 36, 0.4); }

  /* Cartes services, clients et avis : relief au survol */
  .tile, .audience, .review {
    transition: translate 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  }
  .tile:hover, .audience:hover { translate: 0 -4px; box-shadow: 0 22px 44px -24px rgba(35, 44, 36, 0.35); }
  .tile-light:hover, .review:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--filet), 0 22px 44px -24px rgba(35, 44, 36, 0.3); }

  /* Icônes des cartes : petit mouvement */
  .tile-icon, .audience-icon { transition: transform 220ms var(--ease-out); }
  .tile:hover .tile-icon { transform: translateY(-3px) scale(1.05); }
  .audience:hover .audience-icon { transform: scale(1.08); }

  /* Étapes du devis : la pastille réagit */
  .quote-steps span { transition: transform 300ms var(--ease-out), background-color 300ms var(--ease-out); }
  .quote-steps li:hover span { transform: scale(1.1); background: #B6C29F; }

  /* Champs du formulaire : bordure qui s'affirme au survol */
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { transition: border-color 200ms var(--ease-out); }
  .field input:hover, .field textarea:hover { border-color: var(--sauge-fonce); }
  .choice span { transition: background-color 150ms var(--ease-out), border-color 200ms var(--ease-out), transform 250ms var(--ease-out); }
  .choice input:hover + span { transform: translateY(-1px); }

  /* Logo, flèche de défilement et retour en haut */
  .brand-mark { transition: transform 220ms var(--ease-out); }
  .brand:hover .brand-mark { transform: translateY(-2px); }
  .scroll-hint span { transition: transform 300ms var(--ease-out); }
  .scroll-hint:hover span { transform: translateY(4px) rotate(45deg); }
  .to-top { transition: color 150ms var(--ease-out), transform 300ms var(--ease-out); }
  .to-top:hover { transform: translateY(-2px); }
}

/* Menu sur ordinateur : soulignement qui se dessine depuis le centre */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .nav-list a { position: relative; transition: color 200ms var(--ease-out); }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 10px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 300ms var(--ease-out);
  }
  .nav-list a:hover::after { transform: scaleX(1); }
}

/* Micro-interactions au toucher (mobile et tablette) -------------------
   Même esprit qu'au survol : un retour discret au moment où le doigt appuie. */

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .btn, .tile, .audience, .review, .choice span, .nav-list a, .link-arrow, .to-top, .scroll-hint {
    -webkit-tap-highlight-color: transparent;
  }

  .btn { transition: background-color 150ms var(--ease-out), transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
  .btn:active { transform: scale(0.97); box-shadow: 0 6px 16px -8px rgba(35, 44, 36, 0.45); }

  .tile, .audience, .review { transition: scale 160ms var(--ease-out); }
  .tile:active, .audience:active, .tile-light:active, .review:active { scale: 0.985; }

  .tile-icon, .audience-icon { transition: transform 200ms var(--ease-out); }
  .tile:active .tile-icon { transform: translateY(-3px) scale(1.05); }
  .audience:active .audience-icon { transform: scale(1.08); }

  .choice span { transition: background-color 150ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .choice input:active + span { transform: scale(0.96); border-color: var(--sauge-fonce); }

  .quote-steps span { transition: transform 250ms var(--ease-out); }
  .quote-steps li:active span { transform: scale(1.1); }

  .nav-list a { transition: color 150ms var(--ease-out), transform 200ms var(--ease-out); }
  .nav-list a:active { color: var(--sauge-fonce); transform: translateX(4px); }

  .link-arrow:active::after { transform: translate(3px, -0.04em); }
  .to-top { transition: transform 200ms var(--ease-out); }
  .to-top:active { transform: translateY(-2px); }
  .scroll-hint span { transition: transform 250ms var(--ease-out); }
  .scroll-hint:active span { transform: translateY(4px) rotate(45deg); }
}

/* Lévitation des cartes (services, « Pour qui ? », avis) ----------------
   Flottement lent et décalé. Utilise la propriété translate pour se cumuler
   avec les effets de survol et de toucher (transform). */

@keyframes levitation {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -7px, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .tile, .audience, .review {
    animation: levitation 3.2s ease-in-out infinite alternate;
    will-change: transform;
    backface-visibility: hidden;
  }

  .tile:not(.tile-light):not(.tile-dark), .audience { box-shadow: 0 18px 34px -26px rgba(35, 44, 36, 0.3); }
  .tile-dark { box-shadow: 0 20px 38px -24px rgba(35, 44, 36, 0.45); }
  .tile-light, .review { box-shadow: inset 0 0 0 1px var(--filet), 0 18px 34px -26px rgba(35, 44, 36, 0.28); }

  /* Décalage pour un mouvement naturel, jamais synchronisé */
  .bento > :nth-child(2), .audiences > :nth-child(2), .reviews > :nth-child(2) { animation-delay: -1.1s; }
  .bento > :nth-child(3), .reviews > :nth-child(3) { animation-delay: -2.2s; }
  .bento > :nth-child(4) { animation-delay: -0.6s; }
  .audiences > :nth-child(2) { animation-duration: 3.6s; }
  .reviews > :nth-child(3), .bento > :nth-child(3) { animation-duration: 3.5s; }
}

@media (max-width: 599.98px) and (prefers-reduced-motion: no-preference) {
  @keyframes levitation-mobile {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, -5px, 0); }
  }
  .tile, .audience, .review { animation-name: levitation-mobile; }
}

/* Accueil sur ordinateur : la photo est calée pour que le canapé reste toujours
   sous le bouton, quelle que soit la hauteur de l'écran (sans couper la suspension). */
@media (min-aspect-ratio: 1093/1000) {
  .hero-inner { padding-top: calc(var(--header-h) + clamp(20px, 5vh, 56px)); }
  .hero-img {
    object-position: 50% clamp(calc(100vh - 91.5vw), max(calc(70px - 24.7vw), calc(490px + clamp(20px, 5vh, 56px) - 50.3vw)), 0px);
  }
}
