/* ============================================================
   Plomberie Martin — Site vitrine
   Mobile-first · accessible · sans dépendance externe
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #062036;
  --navy-900: #0a2c49;
  --navy-800: #0e3a60;
  --navy-700: #134a7a;
  --navy-600: #1b5a8f;

  --accent: #f27c1d;
  --accent-dark: #d96a0d;
  --accent-soft: #fdeee0;
  --accent-pale: #fff4e8;

  --ink: #16242f;
  --muted: #5b6e7d;
  --line: #dde7ee;
  --bg: #ffffff;
  --bg-soft: #f2f7fb;

  --success: #1f7a4d;
  --success-soft: #e6f4ec;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 44, 73, .06), 0 4px 14px rgba(10, 44, 73, .07);
  --shadow-md: 0 10px 28px rgba(10, 44, 73, .12);
  --shadow-lg: 0 24px 56px rgba(10, 44, 73, .18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1140px;
  --header-h: 68px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
button { font: inherit; }

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

::selection { background: var(--accent-soft); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn .icon { font-size: 1.15em; }

.btn-phone {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(242, 124, 29, .35);
  white-space: nowrap;
}
.btn-phone:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--navy-800);
  box-shadow: 0 8px 24px rgba(6, 32, 54, .25);
}
.btn-light:hover { background: var(--accent-pale); color: var(--navy-800); transform: translateY(-1px); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.btn-primary {
  background: var(--navy-800);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }

.btn-lg { padding: 1rem 1.7rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(10, 44, 73, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--navy-900);
  margin-right: auto;
}
.brand:hover { color: var(--navy-900); }

.brand-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-800));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-logo .icon { font-size: 1.5rem; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 1.05rem;
  line-height: 1.15;
  font-weight: 500;
}
.brand-text strong { font-weight: 800; }
.brand-text small {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Navigation desktop */
.site-nav ul { display: flex; gap: .25rem; }
.site-nav a:not(.btn) {
  display: block;
  padding: .5rem .8rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--navy-700); background: var(--bg-soft); }

.nav-phone { display: none; }

/* Bouton burger — mobile uniquement */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--navy-900);
  cursor: pointer;
}
.nav-toggle .icon { font-size: 1.4rem; }
.nav-toggle .icon-close { display: none; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(27, 90, 143, .55), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(242, 124, 29, .18), transparent 60%),
    var(--navy-900);
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--navy-900);
  margin-bottom: .9rem;
}
.section-dark .section-head h2 { color: #fff; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.section-sub-light { color: rgba(255, 255, 255, .78); }

.overline {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .8rem;
}
.overline-light { color: #f8b26b; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 85% -20%, rgba(27, 90, 143, .65), transparent 60%),
    radial-gradient(760px 480px at -15% 115%, rgba(242, 124, 29, .22), transparent 55%),
    linear-gradient(155deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  color: #fff;
  padding: 4.25rem 0 4.5rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .35;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 1.4rem;
}
.hero-badge .icon { font-size: 1rem; color: #f8b26b; }

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #57d68d;
  box-shadow: 0 0 0 0 rgba(87, 214, 141, .55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 214, 141, .5); }
  70% { box-shadow: 0 0 0 9px rgba(87, 214, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 214, 141, 0); }
}

.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.accent-word {
  color: #f8b26b;
  position: relative;
  white-space: nowrap;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.4rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  font-size: .95rem;
}
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust .icon { font-size: 1.2rem; color: #f8b26b; }

/* Illustration hero */
.hero-visual {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.hero-emblem { width: 100%; height: auto; }

.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .6rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  color: var(--navy-900);
  font-size: .85rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}
.hero-chip .icon { font-size: 1.05rem; color: var(--accent); }
.chip-top { top: 6%; left: -2%; animation-delay: .4s; }
.chip-bottom { bottom: 8%; right: -2%; animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Cartes services ---------- */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(242, 124, 29, .45);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 1.2rem;
}
.service-icon .icon { font-size: 1.7rem; }

.service-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--navy-900);
  margin-bottom: .6rem;
}
.service-card p {
  color: var(--muted);
  font-size: .96rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--accent-dark);
  text-decoration: none;
}
.card-link .icon { font-size: 1em; transition: transform .15s ease; }
.card-link:hover { color: var(--accent-dark); }
.card-link:hover .icon { transform: translateX(4px); }

/* ---------- Bandeau urgence ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, #f59a45 100%);
  color: #fff;
  padding: 2.6rem 0;
}
.cta-band-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: flex-start;
}
.cta-band h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: .4rem;
  letter-spacing: -.01em;
}
.cta-band p { font-weight: 500; opacity: .95; }

/* ---------- Zone ---------- */
.zone-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 2rem;
}
.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
  font-size: .97rem;
}
.zone-chip .icon { font-size: 1.05rem; color: var(--success); }

.zone-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  text-align: center;
  color: var(--muted);
  max-width: 46rem;
  margin-inline: auto;
}
.zone-note .icon { color: var(--accent); }
.zone-note a { font-weight: 700; color: var(--accent-dark); }

/* ---------- Pourquoi nous ---------- */
.why-grid {
  display: grid;
  gap: 1.25rem;
}
.why-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: background-color .18s ease, transform .18s ease;
}
.why-card:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }

.why-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(242, 124, 29, .22);
  color: #f8b26b;
  margin-bottom: 1rem;
}
.why-icon .icon { font-size: 1.5rem; }

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: #fff;
}
.why-card p { font-size: .94rem; color: rgba(255, 255, 255, .78); }

/* ---------- Avis clients (structure en attente de vrais avis) ---------- */
.reviews-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 900px;
  margin-inline: auto;
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
  padding: 2.2rem 1.6rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.review-quote {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--line);
  margin-bottom: .4rem;
}

.review-empty {
  font-weight: 700;
  color: var(--muted);
  font-size: 1rem;
}
.review-author {
  color: var(--line);
  font-weight: 700;
  font-size: 1.05rem;
}

.reviews-note {
  text-align: center;
  color: var(--muted);
  font-size: .93rem;
  max-width: 42rem;
  margin: 2rem auto 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.form-card { padding: 1.8rem; }

.form-row {
  display: grid;
  gap: 1.1rem;
}

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy-900);
  margin-bottom: .4rem;
}
.req { color: var(--accent-dark); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(19, 74, 122, .12);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9db0be; }

.form-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
}
.form-hint a { font-weight: 700; color: var(--accent-dark); }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  background: var(--success-soft);
  border: 1px solid rgba(31, 122, 77, .35);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: .95rem 1.1rem;
  margin-bottom: 1.1rem;
  font-size: .95rem;
}
.form-success .icon { font-size: 1.3rem; margin-top: .15rem; }

/* Carte coordonnées */
.contact-card {
  background:
    radial-gradient(480px 300px at 100% 0%, rgba(27, 90, 143, .5), transparent 60%),
    var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-lg);
}
.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  color: #fff;
}
a.contact-line:hover { color: #f8b26b; }

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #f8b26b;
  flex: none;
}
.contact-icon .icon { font-size: 1.3rem; }

.contact-line span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contact-line small {
  font-size: .78rem;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.contact-line strong {
  font-size: 1.02rem;
  word-break: break-word;
}
.contact-phone strong { font-size: 1.35rem; letter-spacing: .01em; }

.contact-note {
  margin-top: 1.2rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .7);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .75);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding-bottom: 2.8rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-logo .brand-text strong { font-weight: 800; }

.footer-brand p:not(.footer-logo) {
  font-size: .93rem;
  margin-bottom: 1.3rem;
  max-width: 24rem;
}

.footer-col h3 {
  color: #fff;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: .55rem; }
.footer-col li { font-size: .94rem; }
.footer-col a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}
.footer-col a:hover { color: #f8b26b; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.3rem 0;
  font-size: .85rem;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  text-align: center;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .section { padding: 6rem 0; }

  .site-nav { display: block; }
  .site-nav ul { margin-right: .5rem; }
  .nav-phone { display: inline-flex; }
  .header-phone { display: none; }
  .nav-toggle { display: none; }

  .hero { padding: 6rem 0 7rem; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 2rem; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.15fr .85fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Navigation mobile (menu déroulant) */
@media (max-width: 899.98px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.25rem 1.4rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .15rem; }
  .site-nav a:not(.btn) { padding: .7rem .8rem; font-size: 1rem; }
  .nav-phone { display: inline-flex; margin-top: .9rem; width: 100%; }

  .site-header.is-open .icon-menu { display: none; }
  .site-header.is-open .icon-close { display: block; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
