/* ============================================================
   Desens Plomberie — V2 (sobre, pro, sérieux)
   Palette : blanc + bleu nuit + accent bleu corporate
   ============================================================ */

:root {
  --navy:     #0c2340;
  --navy-2:   #14365c;
  --blue:     #1d5fbf;
  --blue-dark:#164a96;
  --ink:      #14233a;
  --muted:    #56677e;
  --muted-2:  #8294ab;
  --bg:       #ffffff;
  --bg-soft:  #f4f7fb;
  --border:   #e4eaf2;
  --shadow:   0 14px 34px -16px rgba(12, 35, 64, .22);
  --shadow-sm:0 4px 14px -6px rgba(12, 35, 64, .14);
  --radius:   16px;
  --radius-sm:11px;
  --maxw:     1160px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.center { text-align: center; }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Header flottant (pilule glassmorphism) ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0 0; }
.navbar {
  display: flex; align-items: center; gap: 18px;
  padding: 9px 9px 9px 20px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(12, 35, 64, .08);
  border-radius: 100px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 34px -16px rgba(12, 35, 64, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.header.scrolled .navbar {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(12, 35, 64, .1);
  box-shadow: 0 16px 42px -14px rgba(12, 35, 64, .3), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__logo { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.brand__text { font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); }
.brand__text strong { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: .94rem; font-weight: 600; color: var(--muted); transition: color .2s; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--blue); transition: width .25s; }
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { width: 100%; }

.nav__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .94rem; color: #fff; background: var(--blue); padding: 11px 19px; border-radius: 100px; transition: background .2s, transform .2s; white-space: nowrap; }
.nav__cta:hover { background: var(--blue-dark); transform: translateY(-1px); color: #fff; }
.nav__cta svg { width: 16px; height: 16px; fill: currentColor; }
.nav__cta--mobile { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: 2px; }
.burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font); font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent; transition: background .2s, color .2s, transform .2s, border-color .2s; white-space: nowrap; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 124px 0 80px; background: var(--bg-soft); overflow: hidden; }

/* Carrousel auto en fond (crossfade, sans contrôle) */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: heroFade 21s infinite; }
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 7s; }
.hero__slide:nth-child(3) { animation-delay: 14s; }
@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  29%  { opacity: 1; }
  37%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Voile de lisibilité par-dessus le carrousel */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.8) 30%, rgba(255,255,255,.4) 56%, rgba(255,255,255,.1) 82%, rgba(255,255,255,0) 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: 1; right: -120px; top: -100px; width: 520px; height: 520px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(56, 189, 248, .14), transparent 70%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 600px; }
.kicker { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); background: rgba(29,95,191,.08); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 20px; }
.hero__lead { font-size: 1.16rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Puces de réassurance (compactes, sous les boutons) */
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--navy);
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(12, 35, 64, .1); padding: 8px 14px; border-radius: 999px; }
.hero__chips svg { width: 15px; height: 15px; color: var(--blue); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }

/* Texture : quadrillage de points en fond de section (visible partout) */
.section--light {
  background-color: var(--bg-soft);
  background-image: radial-gradient(circle, rgba(12, 35, 64, .11) 1.5px, transparent 1.7px);
  background-size: 22px 22px;
  position: relative; overflow: hidden;
}
.section--light::after {
  content: ""; position: absolute; top: -180px; right: -140px; width: 520px; height: 520px;
  pointer-events: none; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 95, 191, .07), transparent 70%);
}
.section--light > .container { position: relative; z-index: 1; }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.eyebrow--light { color: #7fb6ff; }
.section__head h2, .section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section__head h2 { margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 1.06rem; }
.stars { color: #f5a623; letter-spacing: 2px; }

/* ---------- Cartes ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
.service { padding: 26px 24px; border-left: 3px solid transparent; transition: border-color .25s, transform .25s, box-shadow .25s; }
.service:hover { border-left-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.service__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: rgba(29, 95, 191, .09); color: var(--blue); margin-bottom: 16px; transition: background .25s, color .25s, transform .25s; }
.service__ico svg { width: 26px; height: 26px; }
.service:hover .service__ico { background: var(--blue); color: #fff; transform: translateY(-2px) rotate(-4deg); }
.service h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--navy); }
.service p { color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.grid--steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow-sm); }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- Avis ---------- */
.grid--avis { grid-template-columns: repeat(3, 1fr); margin-bottom: 40px; }
.avis { padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.avis .stars { font-size: 1.05rem; }
.avis blockquote { color: var(--ink); font-size: 1rem; line-height: 1.7; }
.avis figcaption { color: var(--muted-2); font-size: .9rem; font-weight: 700; margin-top: auto; }

/* ---------- Zone ---------- */
.zone__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.zone__text h2 { margin: 14px 0 16px; }
.zone__text .btn { margin-top: 14px; }
.zone__card { display: grid; place-items: center; align-content: center; gap: 18px; padding: 34px; background: linear-gradient(160deg, #fff, var(--bg-soft)); }
.zone__map-svg { width: 100%; max-width: 320px; height: auto; display: block; }
.zone__outline { fill: rgba(29, 95, 191, .05); stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.zone__dot { fill: var(--blue); }
.zone__dot-core { fill: #fff; }
.zone__dot-pulse { fill: var(--blue); transform-box: fill-box; transform-origin: center; animation: zonePulse 2.4s ease-out infinite; }
@keyframes zonePulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(2.6); opacity: 0; } 100% { opacity: 0; } }
.zone__label { font-weight: 700; color: var(--navy); letter-spacing: .03em; }

/* ---------- FAQ ---------- */
.faq__container { max-width: 800px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 22px; box-shadow: var(--shadow-sm); }
.faq__item[open] { border-color: var(--blue); }
.faq__item summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1.04rem; color: var(--navy); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); line-height: 1; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 20px; }

/* ---------- Contact ---------- */
.section--contact {
  background-color: var(--navy); color: #e7eef8;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1.5px, transparent 1.7px);
  background-size: 22px 22px;
  position: relative; overflow: hidden;
}
.section--contact::after {
  content: ""; position: absolute; top: -160px; left: -120px; width: 560px; height: 560px;
  pointer-events: none; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .12), transparent 70%);
}
.section--contact > .container { position: relative; z-index: 1; }
.section--contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-info h2 { margin: 6px 0 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-info > p { color: #b6c6dd; margin-bottom: 26px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 15px; padding: 15px 17px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .2s; }
.contact-item:hover { background: rgba(255,255,255,.1); }
.contact-item svg { width: 24px; height: 24px; fill: #38bdf8; flex: none; }
.contact-item strong { display: block; color: #fff; }
.contact-item small { color: #9fb3cf; font-size: .85rem; }

.form { padding: 30px; display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea { font-family: var(--font); font-size: .98rem; color: var(--ink); background: #fff; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,191,.14); }
.form__note { font-size: .85rem; color: var(--muted-2); text-align: center; }
.form__note a { color: var(--blue); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #08182c; color: #b6c6dd; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { width: 52px; height: 52px; border-radius: 10px; margin-bottom: 14px; }
.footer__brand p { font-size: .94rem; max-width: 340px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col a { display: block; color: #9fb3cf; font-size: .93rem; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; font-size: .85rem; color: #8294ab; }

/* ---------- FAB ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center; background: var(--blue); box-shadow: var(--shadow); }
.fab svg { width: 25px; height: 25px; fill: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  /* Navigation : bascule en menu burger flottant (évite le débordement de la pilule) */
  .nav { position: fixed; top: 82px; left: 16px; right: 16px; flex-direction: column; gap: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border: 1px solid var(--border); border-radius: 18px; padding: 8px 22px 18px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .28s, transform .28s, visibility .28s; align-items: stretch; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta { display: none; }
  .nav__cta--mobile { display: inline-flex; justify-content: center; margin-top: 14px; }
  .burger { display: flex; }
  .fab { display: grid; }

  .grid--services { grid-template-columns: repeat(3, 1fr); }
  .zone__inner { grid-template-columns: 1fr; gap: 32px; }
  .grid--steps { grid-template-columns: repeat(2, 1fr); }
  .grid--avis { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .grid--steps { grid-template-columns: 1fr; }
  .grid--services { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .section { padding: 66px 0; }
  .hero { min-height: 86vh; }
  .hero__content { max-width: 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.76) 45%, rgba(255,255,255,.35) 100%); }
}
@media (max-width: 400px) {
  .grid--services { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__slide { opacity: 0; }
  .hero__slide:first-child { opacity: 1; }
  html { scroll-behavior: auto; }
}
