/* ===================================================================
   Ets Payen — Couverture & Zinguerie
   Palette carte de visite : rouge #E31E24 · navy #004A99 · jaune #FFD700
   Typo : Bebas Neue (titres) · Inter (texte) · Caveat (accent script)
   =================================================================== */

:root {
  --black: hsl(220 40% 10%);
  --dark: hsl(214 100% 22%);      /* navy profond (bandeau carte) */
  --gray: hsl(214 14% 36%);
  --muted: hsl(214 8% 45%);
  --light: hsl(214 20% 96%);      /* gris clair teinté navy */
  --cream: hsl(214 16% 95%);
  --border: hsl(214 18% 88%);
  --white: hsl(0 0% 100%);

  --blue: hsl(214 100% 30%);      /* navy marque #004A99 */
  --red: hsl(358 78% 50%);        /* rouge marque #E31E24 */
  --red-deep: hsl(358 78% 42%);
  --yellow: hsl(48 100% 50%);     /* jaune accent #FFD700 */
  --yellow-deep: hsl(48 95% 42%);

  /* Alias utilisés dans le CSS existant */
  --lime: var(--red);             /* CTA principaux → rouge */
  --lime-deep: var(--red-deep);
  --gold: var(--yellow);          /* highlights → jaune */
  --gold-hover: var(--yellow-deep);

  --display: "Bebas Neue", sans-serif;
  --body: "Inter", sans-serif;
  --script: "Caveat", cursive;

  --radius: 1rem;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

section[id], #services, #footer-contact, #diagnostic {
  scroll-margin-top: 4.5rem;
}

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

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; }

/* ------------------------------------------------ boutons */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem 1.6rem;
  border-radius: calc(var(--radius) - 0.25rem);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-lg { padding: 1rem 2.1rem; font-size: 0.95rem; }

.btn-gold {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.btn-outline {
  border-color: hsl(0 0% 100% / 0.6);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: hsl(0 0% 100% / 0.1);
}

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

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

/* ------------------------------------------------ header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 76rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.45rem var(--pad-x);
}

.header .btn { padding: 0.6rem 1.3rem; font-size: 0.82rem; }

.logo, .footer-logo {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1;
  color: var(--black);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img,
.logo-mark {
  display: block;
  height: clamp(3.75rem, 8vw, 5.25rem);
  width: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  mix-blend-mode: normal;
}

.nav {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.nav a:hover { color: var(--black); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
}

/* ------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: hsl(214 100% 16% / 0.78);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad-x) clamp(3.5rem, 8vw, 6rem);
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yellow);
}

.hero-stars {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(0 0% 100% / 0.85);
  background: hsl(0 0% 100% / 0.08);
  border: 1px solid hsl(0 0% 100% / 0.15);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

.hero-stars span { color: var(--gold); letter-spacing: 0.1em; }

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(3.25rem, 9vw, 6rem);
  max-width: 14ch;
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: 36rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: hsl(0 0% 100% / 0.85);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid hsl(0 0% 100% / 0.18);
}

.hero-trust li {
  font-size: 0.88rem;
  font-weight: 500;
  color: hsl(0 0% 100% / 0.85);
  white-space: nowrap;
}

.hero-trust li + li::before {
  content: "";
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--yellow);
  margin: 0 1rem;
  vertical-align: middle;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid hsl(0 0% 100% / 0.18);
}

.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold);
}

.hero-stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: hsl(0 0% 100% / 0.75);
}

/* ------------------------------------------------ sections */

.section-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad-x);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.section-label-light { color: var(--yellow); }

h2 { font-size: clamp(2.5rem, 6vw, 4rem); }

/* ------------------------------------------------ expertise */

.expertise {
  background: var(--light);
  color: var(--black);
  position: relative;
}



.expertise .section-inner {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.expertise-inner { text-align: center; }

.expertise-inner > .btn {
  display: block;
  width: fit-content;
  margin: 2.5rem auto 0;
}

/* ------------------------------------------------ services */

.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  text-align: left;
}

.service-num {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--red);
}

.service-card h3 {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  text-transform: uppercase;
  line-height: 1;
}

.service-card p {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--gray);
}

.service-card ul {
  list-style: none;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.55rem;
}

.service-card li {
  font-size: 0.9rem;
  font-weight: 500;
  padding-left: 1.4rem;
  position: relative;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* ------------------------------------------------ diagnostic drone */

.diagnostic {
  background: var(--white);
  color: var(--black);
}

.diagnostic-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.diagnostic-copy .section-label { margin-bottom: 1rem; }

.diagnostic-copy h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  max-width: 12ch;
}

.diagnostic-lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--gray);
  font-size: 1.02rem;
  line-height: 1.7;
}

.diagnostic-points {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.diagnostic-points li {
  font-size: 0.95rem;
  font-weight: 500;
  padding-left: 1.4rem;
  position: relative;
}

.diagnostic-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.diagnostic-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: clamp(16rem, 36vw, 26rem);
  background: var(--light);
}

.diagnostic-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 780px) {
  .diagnostic-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .diagnostic-copy h2 { max-width: none; }

  .diagnostic-media {
    min-height: 16rem;
    order: 2;
  }

  .diagnostic-copy { order: 1; }
}

/* ------------------------------------------------ avis google */

.reviews {
  background: var(--light);
  color: var(--black);
  text-align: center;
}

.reviews-inner { text-align: center; }

.reviews-summary {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.reviews-score strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--black);
}

.reviews-stars {
  color: var(--yellow-deep);
  font-size: 1.35rem;
  letter-spacing: 0.15em;
}

.reviews-score p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
}

.reviews-grid {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-stars {
  color: var(--yellow-deep);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.review-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.review-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--gray);
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ------------------------------------------------ partenaires */

.partners { background: var(--white); }

.partners-inner {
  max-width: 60rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x);
  text-align: center;
}

/* titre léger et centré, comme la référence */
.partners h2 {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
  color: var(--black);
}

.partners-grid {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 8vw, 6rem);
  place-items: center;
}

/* Logos fournisseurs. Remplacer par les fichiers officiels haute résolution
   dès que le client les transmet (mêmes dimensions, hauteur 180px). */
.partner {
  display: block;
  height: clamp(3.2rem, 6vw, 4.6rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}



@media (max-width: 40rem) {
  .partners-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ localisation */

.location {
  background: var(--light);
  color: var(--black);
}

.location-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.location-info h2 {
  margin-top: 0.5rem;
  font-size: clamp(2.25rem, 5vw, 3.4rem);
}

.location-lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--gray);
  font-size: 1.02rem;
  line-height: 1.7;
}

.location-details {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.location-details li {
  display: grid;
  gap: 0.2rem;
}

.location-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
}

.location-details a { font-weight: 600; }

.location-info > .btn { margin-top: 2rem; }

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1.5rem 3rem hsl(220 40% 10% / 0.12);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: clamp(20rem, 42vw, 30rem);
  border: 0;
}

@media (max-width: 780px) {
  .location-inner { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ contact */

.contact {
  position: relative;
  background: url("https://images.unsplash.com/photo-1632759145351-1d592919f522?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat, var(--dark);
  color: var(--white);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: hsl(214 100% 22% / 0.86);
}

.contact-inner {
  position: relative;
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-info { text-align: center; }

.contact-info h2 {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--white);
}

.contact-info .lines { margin-top: 1.75rem; display: grid; gap: 0.5rem; }

.contact-info a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1rem;
}

.contact-info a:hover { color: var(--white); }

.contact-info .addr {
  margin-top: 1.25rem;
  color: hsl(0 0% 100% / 0.85);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* carte formulaire blanche */
.contact-form {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.field { margin-bottom: 1.1rem; }

.field > label,
.field-group > legend {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.field .opt { font-weight: 400; color: var(--gray); font-size: 0.85rem; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--blue);
  border-radius: calc(var(--radius) - 0.6rem);
  padding: 0.75rem 0.9rem;
  min-height: 2.9rem;
}

.field textarea { min-height: 6rem; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 1px;
}

.field-group {
  border: 0;
  padding: 0;
  margin: 0 0 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--gray);
}

.contact-form .btn { margin-top: 0.5rem; }

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--gray);
}

@media (max-width: 52rem) {
  .contact-inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ footer */

.footer {
  background: var(--dark);
  color: hsl(0 0% 100% / 0.75);
}

.footer-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 5rem) var(--pad-x) 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  font-size: 0.9rem;
}

.footer-logo { color: var(--white); }

.footer-brand p {
  margin-top: 1rem;
  max-width: 24rem;
  font-weight: 300;
  line-height: 1.7;
}

.footer-brand .footer-logo { margin-top: 0; }

.footer-rating {
  font-size: 0.82rem;
  color: hsl(0 0% 100% / 0.55);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: hsl(0 0% 100% / 0.85);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-phone {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--yellow);
}

.footer-col p {
  font-weight: 300;
  line-height: 1.7;
}

.footer-col p + p { margin-top: 0.75rem; }

.footer-bottom { border-top: 1px solid hsl(0 0% 100% / 0.12); }

.footer-bottom p {
  max-width: 76rem;
  margin-inline: auto;
  padding: 1.25rem var(--pad-x);
  font-size: 0.78rem;
  color: hsl(0 0% 100% / 0.5);
}

/* ------------------------------------------------ responsive */

@media (max-width: 960px) {
  .nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
  .hero-trust li { white-space: normal; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    margin: 0;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 1rem var(--pad-x);
    border-top: 1px solid var(--border);
  }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-inner { gap: 1rem; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 560px) {
  .hero-cta .btn, .cta-buttons .btn { width: 100%; }
  .hero-stats { gap: 1.75rem 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .btn { font-size: 0.82rem; padding: 0.75rem 1.2rem; }
  .btn-lg { padding: 0.95rem 1.5rem; font-size: 0.88rem; }

  /* Cartes services plus compactes sur mobile : on masque la description,
     on garde le titre et les points clés. */
  .service-card { padding: 1.35rem 1.4rem; }
  .service-card p { display: none; }
  .service-card ul { margin-top: 0.9rem; padding-top: 0.9rem; }

  /* On masque les cartes d'avis sur mobile, on garde la note globale. */
  .reviews-grid { display: none; }
}
