/* F.F.G — Ferforages Géothermie — site vitrine démo */

:root {
  --ink: #0a1113;
  --anthracite: #161f23;
  --anthracite-2: #1e2b30;
  --petrole: #0f3a42;
  --petrole-2: #175867;
  --stone: #eee9df;
  --stone-2: #cfc7b6;
  --paper: #f6f3ec;
  --copper: #b9702f;
  --copper-2: #d68a45;
  --green: #3f6b45;
  --line: rgba(238, 233, 223, 0.14);
  --shadow: 0 18px 40px rgba(5, 10, 12, 0.35);
  --radius: 14px;
  --header-h: 72px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 0.9em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: var(--header-h); }

/* reveal-on-scroll (gated by .js so no-JS still shows content) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- signature motif : strates géologiques ---------- */
.strata-rule {
  height: 10px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--copper) 0px, var(--copper) 2px,
    transparent 2px, transparent 4px
  );
  opacity: .55;
}
.strata-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}
.strata-divider::before,
.strata-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, currentColor 0 6px, transparent 6px 11px);
  opacity: .4;
}
.strata-divider span {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper);
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper); color: #1a0e04; }
.btn-primary:hover { background: var(--copper-2); }
.btn-ghost { border-color: rgba(238,233,223,.5); color: var(--stone); background: transparent; }
.btn-ghost:hover { border-color: var(--stone); background: rgba(238,233,223,.08); }
.btn-dark { border-color: var(--anthracite); color: var(--anthracite); background: transparent; }
.btn-dark:hover { background: var(--anthracite); color: var(--stone); }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 17, 19, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--stone); }
.brand-badge {
  width: 40px; height: 40px; border-radius: 8px; background: var(--stone);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.brand-name { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1rem; line-height: 1.1; }
.brand-name small { display: block; font-family: "Work Sans", sans-serif; font-weight: 500; font-size: 0.66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-2); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 0.86rem;
  color: var(--stone-2); white-space: nowrap;
}
.main-nav a:hover { color: var(--stone); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; position: relative; flex: none;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--stone);
}
.burger span { top: 50%; transform: translateY(-50%); }
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); flex-direction: column;
    justify-content: flex-start; padding: 30px 24px; gap: 22px; transform: translateX(100%);
    transition: transform .3s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .burger { display: block; }
  .header-cta .btn-ghost span.long { display: none; }
}
@media (max-width: 560px) {
  .header-cta .btn { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, var(--petrole-2) 0%, var(--petrole) 32%, var(--anthracite) 62%, var(--ink) 100%);
  color: var(--stone);
  padding: 46px 0 40px;
  overflow: hidden;
}
.hero-motif {
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper-2); margin-bottom: 14px;
}
.hero-eyebrow svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.15rem); color: #fff; }
.hero h1 em { font-style: normal; color: var(--copper-2); }
.hero-lead { font-size: 1.05rem; color: var(--stone-2); max-width: 46ch; margin-bottom: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 22px; font-size: .88rem; color: var(--stone-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; flex: none; color: var(--copper-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-rating {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(238,233,223,.08);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: .86rem;
}
.hero-rating .stars { color: var(--copper-2); letter-spacing: 1px; font-size: .95rem; }
.hero-rating strong { color: #fff; }
.hero-card {
  position: relative; z-index: 1; background: var(--paper); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); text-align: center;
}
.hero-card img { max-width: 220px; margin: 0 auto 14px; }
.hero-card p { font-size: .82rem; color: var(--anthracite-2); margin: 0; font-family: "Archivo", sans-serif; font-weight: 600; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 280px; margin: 0 auto; }
}

/* ---------- sections generic ---------- */
.section { padding: 46px 0; }
.section-dark { background: var(--anthracite); color: var(--stone); }
.section-dark .strata-divider span { color: var(--copper-2); }
.section-mineral { background: var(--stone); }
.eyebrow {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 8px; display: block;
}
.section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.section-lead { max-width: 62ch; color: var(--anthracite-2); margin-bottom: 24px; }
.section-dark .section-lead { color: var(--stone-2); }

/* ---------- qui sommes-nous ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.about-text p { color: var(--anthracite-2); }
.about-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.about-facts li {
  display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--anthracite-2);
  background: #fff; border: 1px solid rgba(20,30,33,.08); border-radius: 8px; padding: 10px 12px;
}
.about-facts svg { width: 18px; height: 18px; flex: none; color: var(--petrole-2); margin-top: 1px; }
.about-visual { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- expertise / prestations ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid rgba(20,30,33,.08); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 8px 20px rgba(10,17,19,.06);
}
.card .icon {
  width: 44px; height: 44px; border-radius: 9px; background: var(--petrole);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.card .icon svg { width: 24px; height: 24px; color: var(--stone); }
.card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.card p { font-size: .88rem; color: var(--anthracite-2); margin: 0; }
@media (max-width: 860px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards-grid { grid-template-columns: 1fr; } }

/* clients bandeau */
.clients-band {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.client-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(238,233,223,.08);
  border: 1px solid var(--line); border-radius: 30px; padding: 9px 16px; font-size: .88rem; color: var(--stone);
}
.client-pill svg { width: 16px; height: 16px; color: var(--copper-2); }

/* ---------- avis ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.review-card {
  background: #fff; border: 1px solid rgba(20,30,33,.08); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 8px 20px rgba(10,17,19,.06);
}
.review-stars { color: var(--copper); font-size: .95rem; letter-spacing: 1px; margin-bottom: 8px; }
.review-text { font-size: .92rem; color: var(--anthracite-2); margin-bottom: 12px; }
.review-foot { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--stone-2); }
.review-foot strong { color: var(--ink); font-family: "Archivo", sans-serif; }
.google-g { display: inline-flex; align-items: center; gap: 5px; font-family: "Archivo", sans-serif; font-weight: 700; font-size: .78rem; color: #757575; }
.google-g svg { width: 14px; height: 14px; }
.reviews-link { margin-top: 16px; text-align: center; }
.reviews-link a { font-family: "Archivo", sans-serif; font-weight: 700; font-size: .88rem; color: var(--petrole-2); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (max-width: 700px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- pourquoi nous ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-item { text-align: left; }
.why-item .num { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--copper-2); display: block; margin-bottom: 4px; }
.why-item h3 { font-size: .95rem; margin-bottom: 5px; }
.why-item p { font-size: .85rem; color: var(--stone-2); margin: 0; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--anthracite); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.is-illustration img { object-fit: contain; padding: 14px; background: #fff; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 8px;
  background: linear-gradient(to top, rgba(10,17,19,.88), transparent);
  color: var(--stone); font-size: .74rem; font-family: "Archivo", sans-serif; font-weight: 600;
}
.gallery-item.is-illustration .gallery-caption { background: linear-gradient(to top, rgba(20,30,33,.9), transparent); }
.badge-illustration {
  display: inline-block; background: var(--copper); color: #1a0e04; font-size: .62rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; margin-bottom: 3px;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- déroulement ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { text-align: left; }
.step .step-num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--petrole); color: var(--stone);
  display: flex; align-items: center; justify-content: center; font-family: "Archivo", sans-serif; font-weight: 800;
  margin-bottom: 12px; font-size: 1rem;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .88rem; color: var(--anthracite-2); margin: 0; }
@media (max-width: 780px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-section { background: var(--ink); color: var(--stone); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; }
.contact-info h2 { color: #fff; }
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.contact-list svg { width: 20px; height: 20px; color: var(--copper-2); flex: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-hours { margin-top: 20px; font-size: .85rem; color: var(--stone-2); }
.contact-hours dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0 0; }
.contact-hours dt { color: var(--stone); font-weight: 600; }

.contact-form {
  background: var(--stone); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: .78rem; font-weight: 700; font-family: "Archivo", sans-serif; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; color: var(--anthracite-2); }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid rgba(20,30,33,.22); border-radius: 7px; padding: 11px 12px;
  font-family: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-consent { display: flex; align-items: flex-start; gap: 9px; font-size: .78rem; color: var(--anthracite-2); margin-bottom: 16px; }
.form-consent input { margin-top: 3px; flex: none; }
.form-note { font-size: .74rem; color: var(--anthracite-2); opacity: .75; margin-top: 10px; }
.form-status { font-size: .82rem; margin-top: 10px; display: none; }
.form-status.is-visible { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--stone-2); border-top: 1px solid var(--line); padding: 26px 0; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-links a:hover { color: var(--stone); text-decoration: underline; }
.footer-credit a { color: var(--copper-2); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.wa-float svg { width: 28px; height: 28px; color: #fff; }
.wa-float:hover { filter: brightness(1.06); }

/* ---------- legal page ---------- */
.legal-page { background: var(--paper); }
.legal-hero { background: var(--anthracite); color: var(--stone); padding: 34px 0; }
.legal-body { padding: 36px 0 60px; max-width: 780px; }
.legal-body h2 { font-size: 1.15rem; margin-top: 34px; color: var(--petrole); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--anthracite-2); font-size: .94rem; }
.legal-body a { color: var(--petrole-2); text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 18px; font-family: "Archivo", sans-serif; font-weight: 700; font-size: .85rem; color: var(--stone-2); }
.back-link:hover { color: #fff; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
