/* ============================================================
   ChantierWeb.CA — Modèles métiers (11 pages)
   Mobile-first · Space Grotesk + DM Sans · Orange #FF5E18
   ============================================================ */

:root {
  --orange: #FF5E18;
  --orange-deep: #E14B0B;
  /* Accent par métier — surchargé via une classe .t-* sur <body>.
     Par défaut : l'orange ChantierWeb. */
  --accent: #FF5E18;
  --accent-deep: #E14B0B;
  --accent-rgb: 255, 94, 24;
  --ink: #0B0F14;
  --ink-2: #131A22;
  --ink-3: #1B2430;
  --paper: #FFFFFF;
  --frost: #F4F6F8;
  --line: #E3E8ED;
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #25313D;
  --muted: #5E6F80;
  --text-on-dark: #B6C2CE;
  --radius: 10px;
  --container: 1100px;
  --header-h: 64px;
}

/* ---------- Accent par métier ----------
   Une classe sur <body> suffit à recolorer toute la page.
   Choisi pour évoquer le métier tout en gardant un texte blanc lisible sur les boutons. */
.t-plombier              { --accent: #1C6DD0; --accent-deep: #1556A8; --accent-rgb: 28, 109, 208; }   /* bleu — eau */
.t-paysagiste            { --accent: #2F9E44; --accent-deep: #26803A; --accent-rgb: 47, 158, 68; }     /* vert — gazon */
.t-electricien           { --accent: #C7820A; --accent-deep: #A86C00; --accent-rgb: 199, 130, 10; }    /* or — courant */
.t-couvreur              { --accent: #C0392B; --accent-deep: #9E2D22; --accent-rgb: 192, 57, 43; }     /* brique — toiture */
.t-charpentier           { --accent: #8A5A2B; --accent-deep: #6F4720; --accent-rgb: 138, 90, 43; }     /* bois */
.t-peintre               { --accent: #7B3FE4; --accent-deep: #6831C4; --accent-rgb: 123, 63, 228; }    /* violet — couleur */
.t-paveur                { --accent: #4A5560; --accent-deep: #384049; --accent-rgb: 74, 85, 96; }      /* ardoise — pierre */
.t-excavation            { --accent: #A8671E; --accent-deep: #8A5316; --accent-rgb: 168, 103, 30; }    /* terre */
.t-entrepreneur-general  { --accent: #23489E; --accent-deep: #1A376F; --accent-rgb: 35, 72, 158; }     /* marine — pro */
.t-renovateur            { --accent: #0E8A8A; --accent-deep: #0B6E6E; --accent-rgb: 14, 138, 138; }    /* sarcelle */
.t-clotures-patios       { --accent: #4F7A3A; --accent-deep: #3E5F2D; --accent-rgb: 79, 122, 58; }     /* vert forêt — cèdre */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Accessibilité ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn svg { flex: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line-dark);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand img { height: 34px; width: auto; }
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-call {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.95rem;
}
.btn-call .call-label { display: none; }
@media (min-width: 420px) {
  .btn-call .call-label { display: inline; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(11, 15, 20, 0.08);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; padding: 8px 20px 16px; }
.site-nav a {
  display: block;
  padding: 14px 4px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--frost);
}
.site-nav a:hover { color: var(--accent); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 10px 14px; font-size: 0.95rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  padding: 64px 0 0;
}
/* Photo du métier — un <img class="hero-bg"> placé en 1er enfant du <section class="hero">.
   Sans cette image, le hero reste simplement sombre (comportement d'origine). */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Voile sombre directionnel + lueur orange : le texte reste à gauche, la photo respire à droite. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 340px at 88% -10%, rgba(var(--accent-rgb), 0.20), transparent 70%),
    linear-gradient(180deg, transparent 52%, rgba(11, 15, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 15, 20, 0.97) 0%, rgba(11, 15, 20, 0.92) 52%, rgba(11, 15, 20, 0.5) 100%);
}

.eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 7.5vw, 3.5rem);
  max-width: 18ch;
}

.hero-sub {
  margin-top: 18px;
  color: var(--text-on-dark);
  font-size: 1.06rem;
  max-width: 56ch;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 17px; height: 17px; fill: currentColor; }

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 520px) {
  .hero-cta { flex-direction: row; }
}

/* Bandeau de confiance (dans le hero) */

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-dark);
  margin-top: 48px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 8px;
}
.trust-item + .trust-item { border-left: 1px solid var(--line-dark); }
.trust-item:nth-child(3) { border-left: 0; }
.trust-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
.trust-item svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.trust-item strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: #fff;
}
.trust-item span { font-size: 0.83rem; color: var(--text-on-dark); }

@media (min-width: 900px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust-item:nth-child(3) { border-left: 1px solid var(--line-dark); }
  .trust-item:nth-child(n+3) { border-top: 0; }
}

/* ---------- Sections génériques ---------- */

.section { padding: 64px 0; background: var(--paper); }
@media (min-width: 900px) { .section { padding: 96px 0; } }

.section-head { margin-bottom: 40px; max-width: 640px; }
.kicker {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.65rem, 5vw, 2.4rem); }
.section-head p { margin-top: 12px; color: var(--muted); }

/* ---------- Pourquoi nous ---------- */

.why-list { border-top: 1px solid var(--line); }
.why-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.why-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
  padding-top: 3px;
}
.why-item h3 { font-size: 1.15rem; }
.why-item p { grid-column: 2; color: var(--muted); font-size: 0.97rem; margin-top: 4px; }

@media (min-width: 900px) {
  .why-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 64px;
  }
}

/* ---------- Services ---------- */

.svc-section { background: var(--frost); }

.svc {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  padding: 28px 0;
  border-top: 2px solid var(--ink);
}
.svc-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  padding-top: 4px;
}
.svc h3 { font-size: 1.3rem; }
.svc p { grid-column: 2; color: var(--muted); margin-top: 8px; max-width: 64ch; }
.svc-link {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  width: fit-content;
}
.svc-link:hover { color: var(--accent-deep); }
.svc-link svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.svc-link:hover svg { transform: translateX(3px); }

/* ---------- Bande d'appel ---------- */

.midband { background: var(--ink-2); color: #fff; padding: 56px 0; }
.midband-kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.midband-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 10px 0 24px;
  max-width: 24ch;
}

/* ---------- Témoignages ---------- */

.quotes { display: grid; gap: 36px; }
.quote { border-left: 3px solid var(--accent); padding-left: 20px; }
.quote blockquote {
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 500;
  margin-top: 10px;
}
.quote figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* ---------- FAQ ---------- */

.faq-section { background: var(--frost); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 28px 22px 0; color: var(--muted); }

/* ---------- Soumission ---------- */

.cta-section {
  background:
    radial-gradient(500px 280px at 10% 0%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    var(--ink);
  color: #fff;
}
.cta-section .section-head h2 { color: #fff; }
.cta-section .section-head p { color: var(--text-on-dark); }

.cta-grid { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .cta-grid { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid #2C3947;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  min-height: 50px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #6B7B8C; }
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.form-help { font-size: 0.83rem; color: var(--text-on-dark); margin-top: 6px; }
.form-note { font-size: 0.8rem; color: #7A8A9B; margin-top: 14px; }
.cta-form .btn { width: 100%; }

.cta-aside h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.cta-phone:hover { color: #fff; }
.cta-mail {
  display: block;
  margin-top: 10px;
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.cta-mail:hover { color: #fff; }

.cta-points { list-style: none; margin-top: 28px; border-top: 1px solid var(--line-dark); }
.cta-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
  color: var(--text-on-dark);
}
.cta-points svg { flex: none; width: 18px; height: 18px; color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  border-top: 1px solid var(--line-dark);
  padding: 48px 0 32px;
  font-size: 0.93rem;
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.footer-grid p { margin-top: 10px; max-width: 44ch; }
.footer-grid h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 5px 0; }
.footer-grid a { color: var(--text-on-dark); text-decoration: none; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: #7A8A9B;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Barre CTA mobile ---------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 15, 20, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-dark);
}
.sticky-cta .btn { min-height: 48px; font-size: 0.95rem; padding: 10px 12px; }

body { padding-bottom: 76px; }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}
