/* =====================================================================
   Artisan Maillard — Serrurier
   Refonte chaleureuse : crème, terracotta, miel, brun chocolat
   ===================================================================== */

:root {
  /* Palette */
  --cream: #fbf5ec;
  --cream-deep: #f3e8d8;
  --sand: #e9d9c3;
  --terracotta: #c9553a;
  --terracotta-deep: #a8402a;
  --honey: #e6a23c;
  --honey-soft: #f6dcae;
  --cocoa: #3a2a22;
  --cocoa-deep: #2b1e18;
  --bark: #6b5245;
  --ink: #2f241f;
  --muted: #7a6659;
  --white: #fffdf9;

  /* Typo */
  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  /* Formes */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 45px -22px rgba(58, 42, 34, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(58, 42, 34, 0.3);

  --container: 1140px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-family: var(--font-display); font-weight: 800; color: var(--cocoa); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--cocoa); color: var(--cream);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 100;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; letter-spacing: .3px;
  border-radius: 999px; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn--small { padding: 10px 18px; font-size: 15px; }
.btn--large { padding: 16px 30px; font-size: 18px; }
.btn--large .btn__icon { width: 22px; height: 22px; }

.btn--primary {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
  color: var(--white);
  box-shadow: 0 12px 28px -12px rgba(201, 85, 58, 0.75);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(201, 85, 58, 0.8); }
.btn--primary:active { transform: translateY(0); }

.btn--light {
  background: var(--honey);
  color: var(--cocoa-deep);
  box-shadow: 0 12px 28px -14px rgba(230, 162, 60, 0.9);
}
.btn--light:hover { transform: translateY(-2px); background: #f0b04d; }

.btn:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 236, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 42, 34, 0.08);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 13px; display: block; flex: none;
  box-shadow: 0 6px 14px -8px rgba(58, 42, 34, 0.6);
}
.brand__text { font-family: var(--font-display); font-weight: 900; font-size: 21px; line-height: 1.05; color: var(--cocoa); letter-spacing: .2px; }
.brand__text em { font-style: normal; font-weight: 700; color: var(--terracotta); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
}
.hero__glow--1 { width: 520px; height: 520px; right: -140px; top: -120px; background: rgba(246, 220, 174, 0.75); }
.hero__glow--2 { width: 380px; height: 380px; left: -160px; bottom: -120px; background: rgba(201, 85, 58, 0.16); }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}

.hero__title {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900; letter-spacing: -1px; line-height: 1.05;
  margin-bottom: 26px;
}
.hero__city {
  display: inline-block; position: relative; color: var(--terracotta); font-weight: 900;
}
.hero__city::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; z-index: -1;
  background: var(--honey-soft); border-radius: 6px; transform: rotate(-1.2deg);
}

.hero__lead {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid rgba(58, 42, 34, 0.08);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}
.hero__lead-icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--honey-soft), #fbe9c8); color: var(--terracotta);
}
.hero__lead-icon svg { width: 28px; height: 28px; }
.hero__lead-title { font-size: 22px; margin-bottom: 6px; }
.hero__lead-text { color: var(--muted); font-size: 16px; }

.checks { display: grid; gap: 14px; margin-bottom: 30px; }
.checks__item { display: flex; gap: 14px; align-items: flex-start; }
.checks__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--terracotta); color: var(--white);
  box-shadow: 0 6px 14px -6px rgba(201, 85, 58, 0.7);
}
.checks__icon svg { width: 16px; height: 16px; }
.checks__title { display: block; font-weight: 800; color: var(--cocoa); font-size: 17px; }
.checks__text { color: var(--muted); font-size: 15.5px; }

/* Illustration hero (porte stylisée) */
.hero__visual { display: flex; justify-content: center; }
.hero__card {
  position: relative; width: min(100%, 380px); aspect-ratio: 4 / 4.6;
  border-radius: 34px;
  background: linear-gradient(160deg, #f6dcae 0%, #edc389 55%, #e0a95f 100%);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  overflow: visible;
}
.hero__door { width: 46%; height: 68%; }
.hero__door-frame {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(180deg, #5a3f31, #3a2a22);
  border-radius: 90px 90px 10px 10px;
  box-shadow: inset 0 0 0 8px #7a5a48, 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 14px;
}
.hero__door-panel {
  flex: 1; border-radius: 14px;
  background: linear-gradient(180deg, #4a3529, #3a2a22);
  box-shadow: inset 0 0 0 3px rgba(230, 162, 60, 0.35);
}
.hero__door-panel:first-child { border-radius: 60px 60px 14px 14px; }
.hero__door-knob {
  position: absolute; right: 26px; top: 56%; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe4a8, #c98a2b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.hero__badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--cocoa);
  padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(58, 42, 34, 0.08);
}
.hero__badge svg { width: 20px; height: 20px; color: var(--terracotta); }
.hero__badge--a { left: -18px; top: 42px; }
.hero__badge--b { right: -22px; bottom: 54px; }
.hero__key {
  position: absolute; right: -10px; top: -14px;
  width: 74px; height: 74px; border-radius: 22px;
  background: var(--cocoa); color: var(--honey);
  display: grid; place-items: center; transform: rotate(12deg);
  box-shadow: var(--shadow);
}
.hero__key svg { width: 40px; height: 40px; }

/* ---------- Sections génériques ---------- */
.section { padding: 84px 0; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__title { font-size: clamp(30px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.6px; }
.section__line {
  display: block; width: 64px; height: 6px; margin: 16px auto 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--terracotta), var(--honey));
}
.section__head--light .section__title { color: var(--cream); }
.section__cta { text-align: center; margin-top: 46px; }

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

/* ---------- 2. Pourquoi nous choisir ---------- */
.why { background: var(--cream-deep); position: relative; }
.why::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 70%);
}
.why .container { position: relative; }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 26px 30px; text-align: center;
  border: 1px solid rgba(58, 42, 34, 0.07); box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--honey-soft), #fbe9c8); color: var(--terracotta);
  transform: rotate(-4deg);
}
.card__icon svg { width: 32px; height: 32px; transform: rotate(4deg); }
.card__title { font-size: 21px; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 15.5px; }

/* ---------- 3. Notre Fonctionnement ---------- */
.process {
  background: var(--cocoa) radial-gradient(70% 60% at 80% 10%, rgba(230, 162, 60, 0.18), transparent 70%);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.process::after {
  content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(201, 85, 58, 0.22); filter: blur(60px); pointer-events: none;
}
.process .container { position: relative; z-index: 1; }
.process .section__line { background: linear-gradient(90deg, var(--honey), var(--terracotta)); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: rgba(255, 253, 249, 0.06);
  border: 1px solid rgba(255, 253, 249, 0.12);
  border-radius: var(--radius); padding: 28px 22px 26px;
  transition: background .2s ease, transform .2s ease;
}
.step:hover { background: rgba(255, 253, 249, 0.1); transform: translateY(-4px); }
.step__num {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.step__num span {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 22px;
  background: var(--honey); color: var(--cocoa-deep);
  box-shadow: 0 10px 20px -10px rgba(230, 162, 60, 0.9);
}
.step__num svg { width: 30px; height: 30px; color: var(--honey-soft); opacity: .85; }
.step__title { font-size: 19px; color: var(--cream); margin-bottom: 10px; }
.step__text { color: rgba(251, 245, 236, 0.74); font-size: 15px; }

/* ---------- 4. Notre Expertise ---------- */
.expertise { background: var(--cream); }
.service {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px 30px;
  border: 1px solid rgba(58, 42, 34, 0.07); box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--terracotta), var(--honey));
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service__icon {
  width: 72px; height: 72px; border-radius: 24px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--cocoa); color: var(--honey);
}
.service__icon svg { width: 36px; height: 36px; }
.service__title { font-size: 24px; margin-bottom: 18px; }
.service__list { display: grid; gap: 10px; }
.service__list li {
  position: relative; padding-left: 30px; font-weight: 600; color: var(--bark); font-size: 16px;
}
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--honey-soft);
}
.service__list li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px;
  border-right: 2.5px solid var(--terracotta); border-bottom: 2.5px solid var(--terracotta);
  transform: rotate(-45deg);
}

/* ---------- 5. Depuis 2003 ---------- */
.about { background: var(--cream-deep); }
.about__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about__ornament { position: relative; display: flex; justify-content: center; }
.about__year {
  position: relative; z-index: 1;
  width: min(100%, 300px); aspect-ratio: 1;
  border-radius: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--cocoa); color: var(--cream); transform: rotate(-3deg);
  box-shadow: var(--shadow);
}
.about__year-label { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--honey); }
.about__year-value { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 8vw, 96px); line-height: 1; letter-spacing: -2px; }
.about__key {
  position: absolute; width: 150px; height: 150px; right: 0; bottom: -30px;
  color: var(--terracotta); opacity: .25; transform: rotate(18deg);
}
.about__title { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 22px; }
.about__copy p { color: var(--bark); margin-bottom: 14px; font-size: 17px; }
.about__copy p strong { color: var(--cocoa); }
.about__cta { margin-top: 28px; }

/* ---------- 6. Appel à l'action ---------- */
.contact { background: var(--cream); padding-top: 60px; }
.contact__box {
  position: relative; overflow: hidden;
  text-align: center; padding: 60px 30px;
  border-radius: 34px;
  background: linear-gradient(160deg, #f6dcae 0%, #f0c98c 100%);
  box-shadow: var(--shadow);
}
.contact__box::before, .contact__box::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.contact__box::before { width: 260px; height: 260px; left: -90px; top: -110px; background: rgba(255, 255, 255, 0.35); }
.contact__box::after { width: 320px; height: 320px; right: -120px; bottom: -160px; background: rgba(201, 85, 58, 0.14); }
.contact__box > * { position: relative; z-index: 1; }
.contact__icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px;
  display: grid; place-items: center; background: var(--cocoa); color: var(--honey);
}
.contact__icon svg { width: 34px; height: 34px; }
.contact__title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.contact__text { max-width: 640px; margin: 0 auto 30px; color: var(--bark); font-size: 17px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--cocoa-deep); color: rgba(251, 245, 236, 0.7); font-size: 14.5px; padding: 26px 0 96px; }
.footer__inner { text-align: center; }
.footer a { color: var(--honey); font-weight: 700; }
.footer a:hover { text-decoration: underline; }

/* ---------- Bouton flottant ---------- */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
  color: var(--white); font-weight: 800; font-size: 16px;
  box-shadow: 0 16px 34px -12px rgba(201, 85, 58, 0.9);
}
.float-call svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.float-call__label { position: relative; z-index: 1; }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal--delay  { transition-delay: .1s; }
.reveal--delay2 { transition-delay: .2s; }
.reveal--delay3 { transition-delay: .3s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .service, .step { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .float-call {
    right: auto; left: 50%; bottom: 14px; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 480px;
    justify-content: center; padding: 16px 20px; font-size: 17px;
  }
  .hero { padding: 40px 0 60px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__cta { text-align: center; }
  .section { padding: 64px 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__ornament { order: -1; }
  .about__year { width: min(100%, 220px); border-radius: 32px; }
  .about__key { width: 110px; height: 110px; bottom: -20px; right: 10px; }
  .about__copy { text-align: center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__inner { height: 62px; }
  .brand__text { font-size: 18px; }
  .btn--small { padding: 9px 14px; font-size: 14px; }
  .btn--small .btn__icon { width: 18px; height: 18px; }
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__lead { padding: 18px; gap: 12px; }
  .hero__lead-icon { width: 44px; height: 44px; border-radius: 14px; }
  .hero__lead-icon svg { width: 24px; height: 24px; }
  .hero__lead-title { font-size: 20px; }
  .btn--large { padding: 15px 24px; font-size: 17px; width: 100%; justify-content: center; }
  .contact__box { padding: 44px 20px; border-radius: 26px; }
  .footer { padding-bottom: 92px; }
}

/* ---------- Pages légales (mentions-legales, politique-de-confidentialite) ---------- */
.legal-page .footer { padding-bottom: 26px; }
.legal {
  max-width: 800px; margin: 40px auto 72px;
  background: var(--white); border: 1px solid rgba(58, 42, 34, 0.07);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 44px 48px 48px;
}
.legal__head { padding-bottom: 22px; margin-bottom: 6px; border-bottom: 1px solid rgba(58, 42, 34, 0.1); }
.legal h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 6px; }
.legal__date { color: var(--muted); font-size: 15px; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--bark); font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 8px; }
.legal strong { color: var(--cocoa); font-weight: 800; }
.legal a { color: var(--terracotta); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal__back {
  display: inline-flex; align-items: center; margin-top: 36px; padding: 12px 22px;
  border-radius: 999px; background: var(--cream-deep); color: var(--cocoa);
  font-weight: 800; font-size: 15px; text-decoration: none; transition: background .18s ease;
}
.legal__back:hover { background: var(--sand); }
 (max-width: 600px) {
  .legal { margin: 20px auto 48px; padding: 28px 20px 32px; border-radius: 18px; }
  .legal h2 { margin-top: 26px; }
}

/* ---------- Pages plomberie : illustration du hero (goutte) ---------- */
.hero__plumb { width: 54%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgba(58, 42, 34, 0.28)); }

/* ---------- Page électricien : illustration du hero (éclair) ---------- */
.hero__elec { width: 50%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgba(58, 42, 34, 0.28)); }

/* ---------- Page débouchage : illustration du hero (canalisation) ---------- */
.hero__drain { width: 54%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgba(58, 42, 34, 0.28)); }
