/* ============================================================
   PMPC — Plomberie, chauffage, climatisation
   Mise en page du template Rebuild®, habillée aux couleurs
   et aux polices de la charte PMPC.
   ============================================================ */

@import url('../fonts/fonts.css');

/* ---------- Tokens ---------- */
:root {
  --cream:      #f7f5f2;  /* crème de la charte — fond général */
  --white:      #ffffff;  /* cartes et panneaux */
  --off-white:  #f7f5f2;  /* liens de nav posés sur l'image du hero */
  --black:      #1e0d0a;  /* brun noir de la charte */
  --ink:        #49372d;  /* brun du logo — titres et texte */
  --wine:       #49372d;  /* aplats pleins */
  --accent:     #ff3d17;  /* orange de la charte — kickers, bouton, survols */
  --brown:      #614d28;  /* bronze de la charte — second aplat */
  --grey:       #7a6455;
  --grey-light: #d6c9b9;
  --muted:      #7a6455;
  --star:       #e9a400;  /* étoiles des avis Google */

  --container: 1440px;
  --gutter: 40px;

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

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

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

/* La barre est fixe : les ancres s'arrêtent en dessous d'elle */
#about, #services, #projects, #qualifications, #avis, #contact { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

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

/* ---------- Échelle typographique ---------- */
.t-hero    { font-size: 120px; font-weight: 700; line-height: 100px; letter-spacing: -3.6px; }
.t-h2      { font-size: 64px;  font-weight: 600; line-height: 60px;  letter-spacing: -1.92px; }
.t-h2-word { font-size: 64px;  font-weight: 500; line-height: 80px;  letter-spacing: -1.92px; }
.t-project { font-size: 119px; font-weight: 400; line-height: 99px;  letter-spacing: -3.57px; }
.t-30      { font-size: 30px;  font-weight: 500; line-height: 30px;  letter-spacing: -0.9px; }
.t-30-600  { font-size: 30px;  font-weight: 600; line-height: 30px;  letter-spacing: -0.9px; }
.t-24      { font-size: 24px;  font-weight: 400; line-height: 24px;  letter-spacing: -0.72px; }
.t-40      { font-size: 40px;  font-weight: 400; line-height: 40px;  letter-spacing: -1.2px; }
.t-num     { font-size: 88px;  font-weight: 400; line-height: 64px;  letter-spacing: -2.64px; }
.t-stat    { font-size: 64px;  font-weight: 500; line-height: 1.2;   letter-spacing: -4.48px; }
/* Texte courant long (aides, labels, avis) : interlignage de lecture */
.t-body    { font-size: 20px;  font-weight: 400; line-height: 30px;  letter-spacing: -0.3px; }

.eyebrow {
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.6px;
  color: var(--accent);
}

.c-ink   { color: var(--ink); }
.c-muted { color: var(--muted); }
.c-grey  { color: var(--grey); }
.c-white { color: var(--white); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.nav__bg {
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: 1;
}
/* Un filet apparaît une fois le hero dépassé */
.nav__bg::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--grey-light);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.nav.is-stuck .nav__bg::after { opacity: 1; }

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  padding: 0 34px 0 40px;
}

.nav__logo {
  flex: 0 0 auto;
  display: block;
  color: var(--ink);
}
.nav__logo img { width: auto; height: 54px; }

/* Le logo clair ne sert que tant que la barre est posée sur l'image du hero */
.nav__logo .logo--clair { display: none; }

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 26px;
  padding-left: 40px;
}

.nav__group { display: flex; align-items: center; gap: 22px; }

/* Téléphone et bouton devis, toujours visibles */
.nav__actions { display: flex; align-items: center; gap: 18px; }

.nav__tel {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.nav__tel:hover { color: var(--accent); }

.nav__quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  background: var(--accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  transition: background 0.4s var(--ease);
}
.nav__quote svg { flex: none; width: 18px; height: 18px; }
.nav__quote:hover { background: #e02f0c; }
.nav__quote svg { transition: transform 0.45s var(--ease-out); }
.nav__quote:hover svg { transform: translateX(4px); }

/* Effet "text roll" au survol */
.nav__link {
  position: relative;
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.5px;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.nav__link:hover { color: var(--accent); }

.nav__link span { display: block; }

.nav__link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.45s var(--ease-out);
}
.nav__link:hover::before { width: 100%; }

/* Texte réservé aux lecteurs d'écran */
.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;
}

/* Libellé court du bouton devis et menu mobile : masqués au-dessus de 810 px */
.nav__quote-court,
.nav__menu,
.nav__panel { display: none; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: var(--container);
  height: 100vh;
  min-height: 700px;
  margin-inline: auto;
  overflow: clip;
  will-change: transform;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 43.34%;   /* 624 / 1440 */
  height: 100%;
  padding: 16px 40px 24px;
}

.hero__title-wrap { padding-top: 96px; }

/* Logo complet (avec sa phrase) et labels officiels, dans le blanc sous le titre.
   La hauteur suit celle de l'écran pour ne jamais chevaucher le pied du hero. */
.hero__brand {
  display: flex;
  align-items: center;
  gap: 28px;
}
.hero__logo { flex: none; width: auto; height: clamp(96px, 17vh, 170px); }
.hero__labels {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 28px;
  border-left: 1px solid var(--grey-light);
}
.hero__labels img { width: auto; height: clamp(58px, 10vh, 96px); }

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero__foot p { max-width: 440px; }

.hero__scroll {
  flex: none;
  width: 15px;
  color: var(--ink);
  animation: bob 2.4s var(--ease) infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.hero__right {
  position: relative;
  flex: 1 1 auto;
  height: 100%;
  overflow: clip;
}
.hero__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toutes les sections qui suivent recouvrent le hero */
.after-hero {
  position: relative;
  z-index: 2;
  background: var(--cream);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 110px;
  padding: 110px 0 78px;
  overflow: clip;
}

.about__head { display: flex; flex-direction: column; gap: 40px; }

.about__split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: var(--container);
  padding: 0 45px 0 50px;
}

.about__split h3 { max-width: 550px; }
/* Saut de paragraphe de 36 px, comme sur l'original */
.gap36 { display: block; height: 36px; }

.about__media {
  flex: 0 0 549px;
  height: 503px;
  border-radius: 16px;
  overflow: clip;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

/* Bande d'images défilante */
.strip { width: 100%; overflow: clip; }

.strip__track {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: strip-scroll var(--strip-duration, 36s) linear infinite;
}

/* Trois copies du jeu d'images : translater d'un tiers reboucle sans couture */
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(var(--strip-shift, 0px) * -1)); }
}

.strip:hover .strip__track { animation-play-state: paused; }

.strip__item {
  flex: none;
  width: 227px;
  overflow: clip;
}
.strip__item img { width: 100%; height: 100%; object-fit: cover; }
.strip__item--tall  { height: 290px; }
.strip__item--short { height: 235px; }

/* Compteurs */
.stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--gutter);
}

.stat { display: flex; flex-direction: column; gap: 24px; }
.stat__num { display: flex; align-items: center; }
.stat__label { white-space: pre-line; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 73px 40px 0;
  overflow: clip;
}

.services__head {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 32px 0 128px;
}
.services__head h2 { max-width: 785px; text-align: center; }

.tabs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Sept services : la rangée passe sur deux lignes plutôt que d'écraser
   les libellés. Chaque onglet garde sa hauteur et son comportement. */
.tabs__row { display: flex; flex-wrap: wrap; gap: 20px; }
.tabs__row .tab { flex: 1 1 calc(25% - 15px); }

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  height: 89px;
  background: var(--white);
  color: var(--black);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.tab.is-active { background: var(--wine); color: var(--white); }

.panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 575px;
  padding: 37px 30px 32px 27px;
  background: var(--white);
}

.panel__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  flex: 0 1 40%;
  align-self: stretch;
}

.panel__feats { display: flex; flex-direction: column; gap: 16px; }

.feat { display: flex; align-items: center; gap: 24px; }
.feat svg { flex: none; width: 22px; height: 22px; }

.panel__media {
  position: relative;
  flex: 0 0 50%;
  align-self: stretch;
  overflow: clip;
}

/* Diaporama : les photos de l'album se superposent et passent en fondu */
.panel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.panel__slide.is-active { opacity: 1; }

/* Légende, compteur et flèches, posés sur le bas de la photo */
.panel__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 72px 20px 20px 24px;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  color: var(--white);
}
.panel__caption { font-size: 18px; font-weight: 500; line-height: 22px; letter-spacing: -0.4px; }
.panel__nav { display: flex; align-items: center; gap: 5px; flex: none; }
.panel__count {
  margin-right: 12px;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.panel__nav .testi__btn { color: var(--black); }
.panel--une-photo .panel__nav { display: none; }

/* Service sans photo : le descriptif seul, sur une colonne plus large */
.panel--texte .panel__media { display: none; }
.panel--texte .panel__left { flex-basis: 62%; }

.panel__bottom { display: flex; flex-direction: column; gap: 28px; }
.panel__labels { display: flex; align-items: center; gap: 12px; }
.panel__labels:empty { display: none; }
.panel__labels img { width: auto; height: 64px; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 187px 40px 145px;
  overflow: clip;
}

.projects__head {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 32px 0 97px;
}
.projects__head h2 { max-width: 860px; text-align: center; }

.projects__list {
  display: flex;
  flex-direction: column;
  gap: 190px;
  width: 100%;
}

.project { display: flex; flex-direction: column; gap: 14px; }

.project__banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 388px;
  padding-bottom: 40px;
  border-radius: 16px;
  overflow: clip;
}
.project__banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project__banner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 158px;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
}
.project__banner h3 {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  color: var(--white);
}

/* Labels officiels posés sur la photo (chantiers chaudière et pompe à chaleur) */
.project__labels {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--white);
  border-radius: 12px;
}
.project__banner .project__labels img {
  position: static;
  width: auto;
  height: 64px;
  transform: none;
}

.project__row { display: flex; gap: 20px; }

.project__desc {
  flex: 0 0 690px;
  min-height: 398px;
  padding: 38px 57px 38px 58px;
  border-radius: 16px;
  color: var(--white);
}
.project__desc p { max-width: 575px; }
.project__desc--wine  { background: var(--wine); }
.project__desc--brown { background: var(--brown); }

.project__quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  flex: 1 1 auto;
  min-height: 398px;
  padding: 38px 42px 30px 33px;
  background: var(--white);
  border-radius: 16px;
}
.project__quote blockquote { max-width: 575px; }

.project__author { display: flex; gap: 19px; }
.project__author img {
  flex: none;
  width: 63px;
  height: 77px;
  object-fit: cover;
}
.project__author-txt { display: flex; flex-direction: column; gap: 3px; }

/* ============================================================
   BANNIÈRES PLEINE LARGEUR
   ============================================================ */
/* La bannière reste collée en haut pendant que la section suivante
   remonte par-dessus ; son cadre interne se dézoome de 1.2 à 1.0. */
.banner {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: clip;
}
.banner__inner {
  width: 100%;
  height: 100%;
  overflow: clip;
  transform: scale(1.2);
  transform-origin: center center;
  will-change: transform;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Les sections encadrant une bannière doivent la recouvrir */
.projects, .process, .cta, .faq, .testimonials, .reviews, .about, .services,
.contact, .footer { position: relative; z-index: 1; background: var(--cream); }
.contact { background: var(--black); }

/* La bannière basse est plus haute que le viewport : l'image deborde
   dans un cadre clippe, ce qui produit l'effet de parallaxe. */
.banner--tall { height: 100vh; min-height: 640px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 145px 84px 191px;
  overflow: clip;
}

.process__head {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 32px 0 106px;
}
.process__head h2 { max-width: 880px; text-align: center; }

.process__row {
  display: flex;
  gap: 48px;
  width: 100%;
  max-width: var(--container);
}

.step {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 350px;
  padding: 38px 92px 38px 29px;
  background: var(--white);
  border-radius: 8px;
}
.step__title { padding: 24px 0 36px; }
.step p { max-width: 290px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px 157px;
  overflow: clip;
}

.testimonials__head {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 32px 0 145px;
}
.testimonials__head h2 { max-width: 880px; text-align: center; }

.testi {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  padding-left: 232px;
}

.testi__media {
  flex: 0 0 323px;
  height: 435px;
  overflow: clip;
}
.testi__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease);
}

.testi__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-height: 435px;
}

.testi__quote { max-width: 607px; }

.testi__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.testi__who { display: flex; flex-direction: column; gap: 8px; }

.testi__nav { display: flex; gap: 5px; }

.testi__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 100px;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.testi__btn:disabled { opacity: 0.5; cursor: default; }
.testi__btn:not(:disabled):hover { transform: scale(1.06); }
.testi__btn svg { width: 18px; height: 18px; }

.testi.is-fading .testi__quote,
.testi.is-fading .testi__who,
.testi.is-fading .testi__media img { opacity: 0; }

.testi__quote, .testi__who { transition: opacity 0.35s var(--ease); }

/* Labels officiels et aides, sous le carrousel des qualifications */
.quali-suite {
  display: flex;
  flex-direction: column;
  gap: 140px;
  width: 100%;
  max-width: var(--container);
  padding-top: 140px;
}

.labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.label {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 38px 36px 36px;
  background: var(--white);
  border-radius: 16px;
}
.label__logo { width: auto; height: 96px; margin-bottom: 12px; align-self: flex-start; }
.label .t-body { color: var(--muted); }
.label__note {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.label__doc { align-self: flex-start; margin-top: auto; }

.aides {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

/* La phrase de synthèse reste à l'écran pendant la lecture du texte */
.aides__side {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 0 1 420px;
}

.aides__body {
  display: flex;
  flex-direction: column;
  flex: 0 1 780px;
}

.aides__part {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 0;
  border-top: 1px solid var(--grey-light);
}
.aides__part:first-child { padding-top: 0; border-top: 0; }
.aides__part h3 { padding-bottom: 6px; }
.aides__part .t-body { max-width: 680px; color: var(--ink); }

/* ============================================================
   AVIS GOOGLE
   ============================================================ */
.reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 40px 0;
  overflow: clip;
}

.reviews__head {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 32px 0 72px;
}
.reviews__head h2 { max-width: 880px; text-align: center; }

.reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
  margin-bottom: 64px;
}
.reviews__score {
  font-size: 88px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.reviews__meta { display: flex; flex-direction: column; gap: 10px; }
.reviews__link { margin: 0 0 0 16px; }

.review__stars { display: flex; gap: 3px; color: var(--star); }
.review__stars svg { width: 20px; height: 20px; }

/* Colonnes « maçonnées » : chaque avis garde sa hauteur naturelle */
.reviews__grid {
  width: 100%;
  max-width: var(--container);
  columns: 3 320px;
  column-gap: 20px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 20px;
  padding: 28px 28px 24px;
  background: var(--white);
  border-radius: 16px;
  break-inside: avoid;
}
.review__text {
  font-size: 18px;
  line-height: 27px;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.review__text--vide { color: var(--muted); font-style: italic; }

.review__who { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}
.review__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--black);
}
.review__name span { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* Neuf avis d'abord (quatre sur téléphone), les autres au clic */
.reviews__grid--replie .review:nth-child(n+10) { display: none; }

.reviews__more {
  height: 52px;
  margin-top: 28px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.reviews__more:hover { background: var(--ink); color: var(--white); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 40px 120px;
  overflow: clip;
}

.cta__text {
  width: 100%;
  max-width: 1140px;
  text-align: left;
}

.cta__text .word {
  display: inline-block;
  opacity: 0.18;
  transition: opacity 0.5s var(--ease);
}
.cta__text .word.is-lit { opacity: 1; }

/* Le bouton est posé au centre de la bannière, par-dessus l'image */
.cta__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 446px;
  height: 76px;
  padding: 0 42px 0 45px;
  background: var(--accent);
  color: var(--white);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 30px;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: -1.02px;
  transition: background 0.4s var(--ease);
}
.cta__btn:hover { background: #e02f0c; }
.cta__btn:hover { transform: translate(-50%, -50%); }
.cta__btn svg {
  flex: none;
  width: 30px;
  height: 29px;
  transition: transform 0.45s var(--ease-out);
}
.cta__btn:hover svg { transform: translateX(6px); }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 164px 40px 60px;
  overflow: clip;
}

.faq__head {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 32px 0 115px;
}
.faq__head h2 { max-width: 785px; text-align: center; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
  max-width: 900px;
}

.faq__item {
  padding: 28px 42px 28px 28px;
  background: var(--white);
  overflow: clip;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  text-align: left;
}

.faq__icon {
  flex: none;
  width: 24px;
  height: 14px;
  transform: rotate(180deg);
  transition: transform 0.45s var(--ease-out);
}
.faq__item.is-open .faq__icon { transform: rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a-inner { overflow: hidden; min-height: 0; }
.faq__a p { max-width: 600px; padding-top: 54px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: flex;
  justify-content: center;
  padding: 104px 40px 85px;
  background: var(--black);
  overflow: clip;
}

.contact__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: var(--container);
}

.contact__left {
  display: flex;
  flex-direction: column;
  flex: 0 1 535px;
  gap: 39px;
}

.contact__intro { padding: 59px 0 53px; }
.contact__intro p { max-width: 375px; }

.contact__details { display: flex; flex-direction: column; gap: 24px; }
.contact__block { display: flex; flex-direction: column; }
.contact__block p { max-width: 375px; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 670px;
  padding: 37px 23px 42px 34px;
  background: var(--white);
}

.field { display: flex; flex-direction: column; gap: 19px; }

.field > span {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--black);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--grey-light);
  border-radius: 0;
  font-size: 18px;
  color: var(--black);
  transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 200px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--black); }
.field input::placeholder,
.field textarea::placeholder { color: #b3b3b3; }

.form__submit {
  height: 40px;
  margin-top: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
  transition: opacity 0.3s var(--ease);
}
.form__submit:hover { opacity: 0.85; }
.form__submit:disabled { opacity: 0.6; cursor: default; }

/* Piège à robots : invisible et hors du parcours clavier */
.form__piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Message au retour de l'envoi (?envoye=1 ou ?erreur=1) */
.form__retour {
  margin-bottom: 12px;
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.3px;
  background: var(--cream);
  border-left: 3px solid var(--ink);
  color: var(--black);
}
.form__retour--erreur { border-left-color: var(--accent); }
.form__retour a { text-decoration: underline; }

/* Lien vers la fiche Google, posé sous le carrousel des qualifications */
.testi__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.testi__link svg { flex: none; width: 20px; height: 20px; }
.testi__link:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 73px 40px 30px;
  overflow: clip;
}

.footer__inner { width: 100%; max-width: var(--container); }

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer__top h3 { max-width: 480px; }

.footer__cols { display: flex; gap: 160px; }
.footer__col { display: flex; flex-direction: column; gap: 36px; }
.footer__col-links { display: flex; flex-direction: column; gap: 2px; }
.footer__col-links a { transition: color 0.4s cubic-bezier(0.44, 0, 0.56, 1); }
.footer__col-links a:hover { color: var(--grey); }

.footer__wordmark { padding: 95px 0 25px; }
.footer__wordmark img,
.footer__wordmark svg { width: 100%; height: auto; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.72px;
}

/* ============================================================
   SURVOLS
   Mesuré sur l'original : liens du footer (color 0.4s -> #535353).
   Les autres reprennent la même courbe et la même durée, les
   variantes Framer n'étant pas lisibles depuis le DOM.
   ============================================================ */
.tab { cursor: pointer; }
.tab:not(.is-active):hover { background: #ede6dc; }

.project__banner img { transition: transform 0.7s var(--ease-out); }
.project__banner:hover img { transform: scale(1.04); }

.strip__item img { transition: transform 0.7s var(--ease-out); }
.strip__item:hover img { transform: scale(1.05); }

.faq__q { cursor: pointer; }
.faq__q h4 { transition: color 0.4s cubic-bezier(0.44, 0, 0.56, 1); }
.faq__item:not(.is-open) .faq__q:hover h4 { color: var(--accent); }

.feat svg { transition: transform 0.45s var(--ease-out); }
.feat:hover svg { transform: translateX(4px); }

.nav__logo { transition: opacity 0.4s cubic-bezier(0.44, 0, 0.56, 1); }
.nav__logo:hover { opacity: 0.6; }

.contact__block a { transition: color 0.4s cubic-bezier(0.44, 0, 0.56, 1); }
.contact__block a:hover { color: var(--grey-light); }

/* ============================================================
   APPARITION AU SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.char {
  display: inline-block;
  opacity: 0.001;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.char.is-in { opacity: 1; transform: none; }

@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;
  }
  [data-reveal], .char { opacity: 1; transform: none; }
  .hero { transform: none !important; }
  .strip__track { animation: none !important; }
  .cta__text .word { opacity: 1; }
  .banner img { transform: none; }
}

/* ============================================================
   RESPONSIVE — < 1200
   ============================================================ */
@media (max-width: 1200px) {
  .t-hero    { font-size: 84px; line-height: 76px; letter-spacing: -2.4px; }
  .t-h2      { font-size: 48px; line-height: 48px; letter-spacing: -1.4px; }
  .t-h2-word { font-size: 48px; line-height: 60px; letter-spacing: -1.4px; }
  .t-project { font-size: 64px; line-height: 60px; letter-spacing: -1.9px; }
  .t-40      { font-size: 30px; line-height: 34px; }
  .t-30, .t-30-600 { font-size: 24px; line-height: 28px; letter-spacing: -0.6px; }

  .nav__logo img { height: 40px; }
  .nav__links { gap: 18px; padding-left: 20px; }
  .nav__group { gap: 16px; }
  .nav__link { font-size: 17px; }
  .nav__tel { font-size: 15px; }
  .nav__quote { height: 42px; padding: 0 16px; font-size: 15px; }
  .tabs__row .tab { flex: 1 1 calc(50% - 10px); }

  .about__split { flex-direction: column; padding-inline: var(--gutter); }
  .about__media { flex: 1 1 auto; width: 100%; height: 420px; }
  .stats { flex-wrap: wrap; gap: 40px 24px; }
  .stat { flex: 1 1 40%; }

  .tabs__row { flex-wrap: wrap; }
  .tab { flex: 1 1 45%; height: 72px; }
  .panel { flex-direction: column; gap: 32px; height: auto; }
  .panel__left, .panel__media { flex: 1 1 auto; width: 100%; }
  .panel--texte .panel__left { flex-basis: auto; }
  .panel__media { min-height: 380px; }

  .project__row { flex-direction: column; }
  .project__desc { flex: 1 1 auto; padding: 32px; }
  .project__quote { padding: 32px; }

  .process { padding-inline: var(--gutter); }
  .process__row { flex-direction: column; }
  .step { padding: 32px; }

  .testi { flex-direction: column; padding-left: 0; }
  .quali-suite { gap: 100px; padding-top: 100px; }
  .labels { grid-template-columns: 1fr; }
  .aides { flex-direction: column; gap: 40px; }
  .aides__side { position: static; flex: none; }
  .aides__body { flex: none; }
  .testi__media { flex: 1 1 auto; width: 100%; height: 320px; }

  .contact__inner { flex-direction: column; align-items: stretch; }
  .contact__left, .contact__form { flex: 1 1 auto; }

  .footer__top { flex-direction: column; }
  .footer__cols { gap: 60px; }
}

/* ============================================================
   RESPONSIVE — < 810
   ============================================================ */
@media (max-width: 809px) {
  :root { --gutter: 20px; }

  .t-hero    { font-size: 52px; line-height: 50px; letter-spacing: -1.4px; }
  .t-h2      { font-size: 34px; line-height: 36px; letter-spacing: -0.9px; }
  .t-h2-word { font-size: 34px; line-height: 44px; letter-spacing: -0.9px; }
  .t-project { font-size: 34px; line-height: 34px; letter-spacing: -1px; }
  .t-24      { font-size: 18px; line-height: 24px; letter-spacing: -0.4px; }
  .t-num     { font-size: 56px; line-height: 48px; }
  .t-stat    { font-size: 46px; letter-spacing: -2.4px; }

  .nav { padding: 12px 0; }
  .nav__inner { padding-inline: var(--gutter); }
  .nav__logo img { height: 34px; }
  .nav__group { display: none; }
  .nav__links { flex: 1 1 auto; justify-content: flex-end; padding-left: 14px; gap: 12px; }
  .nav__tel { font-size: 14px; }
  .nav__quote { height: 38px; padding: 0 13px; font-size: 14px; gap: 7px; }
  .nav__quote svg { width: 15px; height: 15px; }
  .nav__actions { gap: 12px; }

  /* Bouton menu : même hauteur que le bouton devis, en contour */
  .nav__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--ink);
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
  }
  .nav__menu:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav__menu-traits,
  .nav__menu-traits::before {
    position: relative;
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.35s var(--ease-out);
  }
  .nav__menu-traits { transform: translateY(-3px); }
  .nav__menu-traits::before { content: ''; position: absolute; left: 0; top: 6px; }
  /* Ouvert : les deux traits forment une croix */
  .nav__menu[aria-expanded="true"] .nav__menu-traits { transform: rotate(45deg); }
  .nav__menu[aria-expanded="true"] .nav__menu-traits::before { top: 0; transform: rotate(-90deg); }

  /* Panneau déroulé sous la barre */
  .nav__panel {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 4px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--grey-light);
    max-height: calc(100svh - 62px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out);
  }
  .nav__panel[hidden] { display: none; }
  .nav__panel.is-open { opacity: 1; transform: none; }
  .nav__panel-liens > li + li { border-top: 1px solid var(--grey-light); }
  .nav__panel-liens a {
    display: block;
    padding: 14px 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -0.8px;
    color: var(--ink);
  }
  .nav__panel-liens a:hover,
  .nav__panel-liens a:focus-visible { color: var(--accent); }

  .tabs__row .tab { flex: 1 1 100%; }

  .hero {
    flex-direction: column;
    height: auto;
    min-height: 0;
    position: relative;
    padding-top: 90px;
  }
  .hero__left { flex: 1 1 auto; width: 100%; height: auto; gap: 40px; padding-inline: var(--gutter); }
  .hero__title-wrap { padding-top: 24px; }
  .hero__brand { gap: 18px; }
  .hero__logo { height: 118px; }
  .hero__labels { gap: 10px; padding-left: 18px; }
  .hero__labels img { height: 62px; }
  .hero__right { width: 100%; height: 440px; }

  .about { gap: 60px; padding: 60px 0 50px; gap: 60px; }
  .about__head { gap: 24px; }
  .stat { flex: 1 1 100%; }

  .services  { padding: 50px 20px 0; }
  .projects  { padding: 80px 20px 70px; }
  .process   { padding: 70px 20px 80px; }
  .faq       { padding: 70px 20px 40px; }
  .contact   { padding: 60px 20px 50px; }
  .footer    { padding: 50px 20px 24px; }

  .services__head, .projects__head, .process__head,
  .testimonials__head, .faq__head { padding: 24px 0 50px; }

  .tab { flex: 1 1 100%; height: 60px; }
  .panel { padding: 24px; }
  .panel__media { min-height: 380px; }
  .panel__bar { padding: 56px 12px 12px 16px; }
  .panel__caption { font-size: 15px; line-height: 18px; }
  .panel__count { margin-right: 6px; font-size: 14px; }
  .panel__labels img { height: 54px; }

  .projects__list { gap: 80px; }
  .project__banner { height: 240px; padding-bottom: 20px; }
  .project__labels { top: 12px; right: 12px; gap: 8px; padding: 6px 8px; border-radius: 10px; }
  .project__banner .project__labels img { height: 44px; }
  .project__desc, .project__quote { padding: 24px; }
  .project__author img { width: 50px; height: 62px; }

  .banner, .banner--tall { height: 60vh; min-height: 340px; }

  .testimonials { padding: 0 20px 70px; }
  .testi__media { height: 260px; }
  .testi__foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .t-body { font-size: 17px; line-height: 26px; letter-spacing: -0.2px; }
  .quali-suite { gap: 70px; padding-top: 70px; }
  .label { padding: 26px 22px 24px; gap: 16px; }
  .label__logo { height: 76px; margin-bottom: 4px; }
  .aides__part { padding: 28px 0; gap: 14px; }

  .cta { padding: 70px 20px 0; }

  .reviews { padding: 20px 20px 0; }
  .reviews__head { padding: 24px 0 40px; }
  .reviews__summary { justify-content: flex-start; margin-bottom: 36px; }
  .reviews__score { font-size: 64px; }
  .reviews__link { margin: 0; }
  .review { padding: 22px 20px 20px; }
  .review__text { font-size: 17px; line-height: 26px; }
  .reviews__grid--replie .review:nth-child(n+5) { display: none; }
  .cta__btn {
    min-width: 0;
    width: calc(100% - 40px);
    max-width: 360px;
    height: 62px;
    padding: 0 22px;
    font-size: 22px;
    gap: 16px;
  }

  .faq__item { padding: 20px; }
  .faq__a p { padding-top: 24px; }

  .contact__intro { padding: 32px 0 28px; }
  .contact__form { padding: 24px 20px 28px; }

  .footer__cols { flex-direction: column; gap: 32px; }
  .footer__wordmark { padding: 50px 0 20px; }
  .footer__bottom { font-size: 16px; letter-spacing: -0.4px; }
}

/* ============================================================
   RESPONSIVE — < 481 : le bouton devis prend son libellé court
   pour laisser la place au bouton menu (vérifié à 360 px)
   ============================================================ */
@media (max-width: 480px) {
  .nav__quote-long { display: none; }
  .nav__quote-court { display: inline; }
}
