/* style.css – Feuille de style unique du site KCLY ELEC
   Palette "arbre de vie doré" sur fond vert forêt. Responsive mobile-first. */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: #F5F1E8;
  background: #0D2818;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: #D4A574;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover, a:focus { color: #F5F1E8; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 .6em;
  color: #F5F1E8;
  line-height: 1.2;
  font-weight: 600;
}

p { margin: 0 0 1em; color: #B8B0A0; }
p strong { color: #F5F1E8; font-weight: 500; }

ul { margin: 0; padding: 0; list-style: none; }

/* Focus visible accessible */
:focus-visible {
  outline: 2px solid #D4A574;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.gold { color: #D4A574; }

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 2px;
  border: 1px solid #D4A574;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .15s ease;
  text-align: center;
}
.btn-primary {
  background: #D4A574;
  color: #0D2818;
}
.btn-primary:hover,
.btn-primary:focus {
  background: transparent;
  color: #D4A574;
}
.btn:active { transform: translateY(1px); }

/* ---------- Animations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 40, 24, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.12);
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(13, 40, 24, 0.95);
  border-bottom-color: rgba(212, 165, 116, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: #F5F1E8;
}
.brand-mark { color: #F5F1E8; }
.brand-mark--gold { color: #D4A574; margin-left: 4px; }

.main-nav { position: relative; }

.nav-list {
  display: flex;
  gap: 28px;
}
.nav-list a {
  color: #F5F1E8;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 0;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #D4A574;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-list a:hover::after,
.nav-list a:focus::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #D4A574;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(212, 165, 116, 0.12), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(212, 165, 116, 0.10), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(74, 124, 90, 0.12), transparent 60%),
    linear-gradient(180deg, #0D2818 0%, #1A3A28 100%);
  z-index: -1;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(105deg, transparent 48%, rgba(212, 165, 116, 0.08) 49%, transparent 51%),
    linear-gradient(75deg, transparent 62%, rgba(212, 165, 116, 0.06) 63%, transparent 65%),
    linear-gradient(135deg, transparent 30%, rgba(212, 165, 116, 0.05) 31%, transparent 33%);
  background-size: 600px 600px, 800px 800px, 500px 500px;
  opacity: 0.9;
}

.hero-content { position: relative; max-width: 820px; }
.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
}
.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: #D4A574;
  letter-spacing: 0.05em;
  margin-bottom: 1.2em;
}
.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #B8B0A0;
  max-width: 640px;
  margin-bottom: 2.2em;
}

/* ---------- Sections génériques ---------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt {
  background: #1A3A28;
  position: relative;
}
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(212, 165, 116, 0.05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 165, 116, 0.04), transparent 50%);
  pointer-events: none;
}
.section > .container { position: relative; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.03em;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #D4A574;
  margin: 24px auto 0;
}
.section-subtitle {
  color: #D4A574;
  font-family: 'Montserrat', sans-serif;
  margin-top: 0.6em;
}
.section-intro {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ---------- Grilles ---------- */
.grid-3 {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.grid-2 {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

/* ---------- Cards (expertise) ---------- */
.card {
  background: rgba(26, 58, 40, 0.5);
  border: 1px solid rgba(212, 165, 116, 0.3);
  padding: 36px 28px;
  border-radius: 4px;
  transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 165, 116, 0.6);
  background: rgba(26, 58, 40, 0.8);
}
.card-icon {
  color: #D4A574;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #F5F1E8;
}
.card p { margin: 0; color: #B8B0A0; font-size: 0.95rem; }

/* ---------- Panels (prestations) ---------- */
.panel {
  background: rgba(13, 40, 24, 0.55);
  border: 1px solid rgba(212, 165, 116, 0.3);
  padding: 40px 32px;
  border-radius: 4px;
}
.panel-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}
.panel-sub {
  color: #B8B0A0;
  font-weight: 400;
  font-size: 0.9em;
  margin-left: 4px;
}

/* ---------- Listes à puces ---------- */
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #B8B0A0;
  font-size: 0.98rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 6px;
  border-left: 2px solid #D4A574;
  border-bottom: 2px solid #D4A574;
  transform: rotate(-45deg);
}
.check-list--gold li { color: #F5F1E8; }

/* ---------- Pro ---------- */
.pro-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.pro-content .check-list {
  text-align: left;
  display: inline-block;
  margin: 24px auto 36px;
  columns: 1;
}

/* ---------- Formulaire ---------- */
.contact-form {
  background: rgba(13, 40, 24, 0.55);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 4px;
  padding: 40px 32px;
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  color: #F5F1E8;
  letter-spacing: 0.03em;
}
.form-row label span { color: #D4A574; }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(13, 40, 24, 0.8);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 2px;
  color: #F5F1E8;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #D4A574;
  background: rgba(13, 40, 24, 1);
}
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23D4A574' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-row select option {
  background: #1A3A28;
  color: #F5F1E8;
}

.form-row--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.form-row--check input { margin-top: 4px; accent-color: #D4A574; }
.form-row--check label {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #B8B0A0;
  font-size: 0.92rem;
  letter-spacing: 0;
}

/* Honeypot invisible */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  margin-top: 28px;
  text-align: center;
}
.form-feedback {
  margin: 20px 0 0;
  text-align: center;
  font-weight: 500;
  min-height: 1.4em;
}
.form-feedback.is-success { color: #6FB889; }
.form-feedback.is-error   { color: #E8837A; }

button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0A1F12;
  border-top: 1px solid rgba(212, 165, 116, 0.2);
  padding: 48px 0 36px;
  text-align: center;
}
.footer-inner p {
  margin: 0 0 10px;
  color: #B8B0A0;
  font-size: 0.92rem;
}
.footer-brand strong { color: #F5F1E8; }
.footer-copy {
  margin-top: 20px !important;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 165, 116, 0.15);
  font-size: 0.85rem;
  color: #8A8377;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: rgba(26, 58, 40, 0.5);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 4px;
  padding: 24px 28px;
  transition: border-color .3s ease, background-color .3s ease;
}
.faq-item:hover {
  border-color: rgba(212, 165, 116, 0.6);
  background: rgba(26, 58, 40, 0.8);
}
.faq-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #D4A574;
  margin: 0 0 0.6em;
}
.faq-item p {
  margin: 0;
  color: #B8B0A0;
  font-size: 0.98rem;
}
.faq-item p strong { color: #F5F1E8; font-weight: 500; }

/* ---------- Mentions légales ---------- */
.legal-main { padding: 140px 0 80px; }
.legal-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  margin-bottom: 0.8em;
}
.legal-main h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #D4A574;
  margin-top: 20px;
}
.legal-main h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #D4A574;
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.legal-main p, .legal-main li { color: #B8B0A0; }
.legal-main .check-list { margin-top: 1em; }
.back-link { display: inline-block; margin-top: 2em; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .pro-content .check-list { columns: 2; column-gap: 40px; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .section { padding: 70px 0; }
  .hero { padding: 110px 0 70px; }

  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    width: min(260px, 85vw);
    flex-direction: column;
    gap: 0;
    background: rgba(13, 40, 24, 0.98);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav-list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    padding: 14px 22px;
  }
  .nav-list a::after { display: none; }

  .card, .panel, .contact-form { padding: 28px 22px; }
  .pro-content .check-list { columns: 1; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}
