/* ============================================================
   Encyclie Construction — refonte 2026
   Palette : orange signature (logo), encre marine, ivoire chaud
   ============================================================ */

:root {
  --orange: #f28c00;
  --orange-dark: #d97b00;
  --orange-soft: #fdf1e0;
  --ink: #131a24;
  --ink-2: #223041;
  --slate: #55636f;
  --paper: #faf8f4;
  --white: #ffffff;
  --line: #e8e2d8;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(19, 26, 36, 0.09);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.lead { color: var(--slate); font-size: 1.08rem; max-width: 62ch; }

section { padding: 84px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 24px rgba(242, 140, 0, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a.nav-item:hover,
.nav-links a.nav-item.active { background: var(--orange-soft); color: var(--orange-dark); }
.nav-links .caret { width: 12px; height: 12px; transition: transform 0.2s ease; }
li.has-sub.open .caret { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 330px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
li.has-sub:hover .sub-menu,
li.has-sub.open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-2);
}
.sub-menu a small { display: block; color: var(--slate); font-weight: 400; font-size: 0.8rem; }
.sub-menu a:hover { background: var(--orange-soft); color: var(--orange-dark); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .login { font-weight: 600; font-size: 0.93rem; color: var(--ink-2); padding: 10px 12px; }
.nav-cta .login:hover { color: var(--orange-dark); }
.nav-cta .btn { padding: 11px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(19, 26, 36, 0.94) 22%, rgba(19, 26, 36, 0.55) 60%, rgba(19, 26, 36, 0.25));
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 110px;
  max-width: 640px;
}
.hero .kicker { color: var(--orange); }
.hero .kicker::before { background: var(--orange); }
.hero p.lead { color: rgba(255, 255, 255, 0.82); margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 16px; height: 16px; color: var(--orange); }

/* Hero interne (pages produits) */
.page-hero { background: var(--ink); }
.page-hero .hero-inner { padding: 90px 0 80px; }

/* ---------- Bandeau chiffres ---------- */
.stats { padding: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(-46px);
  overflow: hidden;
}
.stat {
  padding: 34px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  font-family: var(--font-head);
  font-size: 2.3rem;
  color: var(--orange-dark);
  display: block;
}
.stat span { color: var(--slate); font-size: 0.95rem; }

/* ---------- Cartes produits ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(242, 140, 0, 0.45);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: grid;
  place-items: center;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--slate); font-size: 0.96rem; flex: 1; }
.card .link {
  font-weight: 600;
  color: var(--orange-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
}
.card .link svg { width: 15px; height: 15px; transition: transform 0.18s ease; }
.card:hover .link svg { transform: translateX(4px); }

/* ---------- Split (image + texte) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
.split-media .tag {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(19, 26, 36, 0.85);
  color: #fff;
  backdrop-filter: blur(6px);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.split-body h2 { margin-bottom: 18px; }
.split-body .lead { margin-bottom: 26px; }

.checklist { list-style: none; display: grid; gap: 13px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 0.99rem;
}
.checklist svg {
  flex: 0 0 auto;
  width: 21px; height: 21px;
  color: var(--orange);
  margin-top: 2px;
}
.checklist b { font-weight: 600; }
.checklist span { display: block; color: var(--slate); font-size: 0.92rem; }

/* ---------- Bande sombre avantages ---------- */
.dark-band {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 64px 56px;
}
.dark-band .kicker { color: var(--orange); }
.dark-band h2 { margin-bottom: 10px; }
.dark-band .lead { color: rgba(255, 255, 255, 0.72); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-top: 44px;
}
.feature h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.feature p { color: rgba(255, 255, 255, 0.68); font-size: 0.93rem; }
.feature .num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  border: 1px solid rgba(242, 140, 0, 0.5);
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

/* ---------- Témoignage ---------- */
.quote-wrap {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.quote-wrap blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.45;
}
.quote-wrap blockquote::before { content: "« "; color: var(--orange); }
.quote-wrap blockquote::after { content: " »"; color: var(--orange); }
.quote-wrap cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  color: var(--slate);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--orange-dark);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--slate); font-size: 0.97rem; }

/* ---------- Actualités ---------- */
.post-card { padding: 0; overflow: hidden; gap: 0; }
.post-card img { aspect-ratio: 16 / 9.5; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-dark); }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  background: var(--ink);
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  padding: 70px 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.cta-final::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 140, 0, 0.45), transparent 70%);
}
.cta-final h2 { margin-bottom: 14px; }
.cta-final p { color: rgba(255, 255, 255, 0.75); margin-bottom: 28px; }
.cta-contact { position: relative; display: grid; gap: 14px; font-size: 0.97rem; }
.cta-contact a, .cta-contact span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
}
.cta-contact svg { width: 18px; height: 18px; color: var(--orange); flex: 0 0 auto; }
.cta-contact a:hover { color: var(--orange); }

/* ---------- Formulaire ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 42px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 140, 0, 0.18);
}
.form-note { font-size: 0.83rem; color: var(--slate); margin-top: 14px; }
.field.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.form-status.is-success { background: #e8f6ee; color: #136c3a; }
.form-status.is-error { background: #fdecec; color: #a12020; }

/* ---------- Pages légales / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 0.98rem; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose address { font-style: normal; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 14px 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 90px;
  padding: 70px 0 0;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand img { width: 46px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a:hover { color: var(--orange); }

/* ---------- Reveal animation (active uniquement si JS présent) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-final { grid-template-columns: 1fr; padding: 50px 36px; }
  .dark-band { padding: 48px 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav-open .nav-links { display: flex; }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--paper);
    display: none;
    min-width: 0;
  }
  li.has-sub.open .sub-menu { display: block; }
  .nav-cta .login { display: none; }
  .stats-grid { grid-template-columns: 1fr; transform: translateY(-24px); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .stat:last-child { border-bottom: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 84px 0 76px; }
  section { padding: 60px 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 28px 22px; }
}
