/* ============================
   KRExperts — styles.css
   Charte graphique officielle
   ============================ */

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

:root {
  --green:       #4a8c3f;
  --green-dark:  #2d5a27;
  --green-light: #7dc870;
  --green-pale:  #f0f7ee;
  --black:       #1a1a1a;
  --gray:        #5a5a5a;
  --gray-light:  #e0e0e0;
  --white:       #ffffff;
  --dark-bg:     #0f1f0f;
  --radius:      10px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.11);
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: Arial, 'Helvetica Neue', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.green { color: var(--green); }

/* Green bar signature under titles */
.title-bar {
  width: 52px; height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 12px 0 20px;
}
.section-header .title-bar { margin: 12px 0 16px; }

/* ===================== NAV ===================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.logo-svg { height: 50px; width: auto; }

/* SVG text color switch on scroll */
.nav-experts { transition: fill 0.3s; fill: white; }
#navbar.scrolled .nav-experts { fill: var(--black); }

.nav-links { list-style: none; display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
#navbar.scrolled .nav-links a { color: var(--gray); }
.nav-links a:hover { color: var(--green-light) !important; }

.btn-nav {
  background: var(--green) !important;
  color: white !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
  color: white !important;
}
.btn-nav:hover { background: var(--green-dark) !important; color: white !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
#navbar.scrolled .hamburger span { background: var(--black); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  list-style: none; display: none; flex-direction: column;
  background: white; border-top: 2.5px solid var(--green);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 300px; }
.mobile-menu li a {
  display: block; padding: 14px 24px;
  color: var(--gray); font-weight: 500; font-size: 0.92rem;
  border-bottom: 1px solid var(--gray-light);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu li a:hover { color: var(--green); padding-left: 32px; }

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh;
  background: var(--dark-bg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 130px 24px 90px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 80% 25%, rgba(74,140,63,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 75%, rgba(74,140,63,0.07) 0%, transparent 60%);
}
/* Decorative hexagons */
.hex-deco {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(74,140,63,0.06);
}
.hd1 { width: 360px; height: 415px; top: -120px; right: -80px; }
.hd2 { width: 200px; height: 230px; bottom: 5%; left: -70px; background: rgba(74,140,63,0.04); }
.hd3 { width: 110px; height: 127px; top: 35%; right: 18%; background: rgba(74,140,63,0.09); }

.hero-content { position: relative; text-align: center; max-width: 750px; }

/* Hero logo */
.hero-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 28px;
}
.hero-hex-svg { width: 96px; height: 96px; }
.hero-brand-text { text-align: left; }
.hero-experts-word {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-size: 2rem; font-weight: 800; letter-spacing: 5px;
  color: white; display: block;
}
.hero-green-bar { width: 100%; height: 4px; background: var(--green); border-radius: 2px; margin-top: 6px; }

.hero-category {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--green-light); margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; color: white; margin-bottom: 18px;
}
.hero-typed {
  font-size: 1.1rem; color: rgba(255,255,255,0.65); margin-bottom: 16px;
}
#typed-word { color: var(--green-light); font-weight: 700; }
.cursor { display: inline-block; color: var(--green-light); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 0.97rem; color: rgba(255,255,255,0.55);
  max-width: 580px; margin: 0 auto 40px; line-height: 1.8;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--green); color: white;
  padding: 13px 28px; border-radius: 6px;
  font-weight: 700; font-size: 0.93rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-ghost-light {
  border: 1.5px solid rgba(255,255,255,0.28); color: white;
  padding: 13px 28px; border-radius: 6px;
  font-weight: 600; font-size: 0.93rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-ghost-light:hover { border-color: var(--green-light); background: rgba(74,140,63,0.12); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.35); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollp 2s ease-in-out infinite;
}
@keyframes scrollp { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ===================== STATS ===================== */
#stats { background: var(--green-dark); padding: 56px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-n {
  font-size: 2.8rem; font-weight: 800;
  color: white; line-height: 1; margin-bottom: 8px;
}
.stat-n span { color: var(--green-light); }
.stat-l { color: rgba(255,255,255,0.65); font-size: 0.86rem; }

/* ===================== SERVICES ===================== */
#services { padding: 96px 0; background: var(--white); }
.section-header { margin-bottom: 52px; }
.section-tag {
  display: block; font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--green); margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--black); }
.section-sub { color: var(--gray); font-size: 0.93rem; margin-top: 6px; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: white; position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, opacity 0.5s, translate 0.5s;
}
.service-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.service-card--wide { grid-column: span 1; }

/* Hexagonal icon */
.hex-icon {
  width: 54px; height: 62px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background 0.2s;
}
.hex-icon--accent { background: var(--green-dark); }
.service-card:hover .hex-icon { background: var(--green-dark); }
.hex-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 0.97rem; font-weight: 700;
  color: var(--black); margin-bottom: 10px; line-height: 1.35;
}
.service-card > p { font-size: 0.87rem; color: var(--gray); line-height: 1.65; }

.service-badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--green); color: white;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ===================== CLIENTS ===================== */
#clients { padding: 96px 0; background: var(--green-pale); }
.clients-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.client-badge {
  background: white; border: 1.5px solid var(--gray-light);
  border-radius: 8px; padding: 10px 18px;
  font-size: 0.86rem; font-weight: 600; color: var(--gray);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.client-badge:hover { border-color: var(--green); color: var(--green-dark); box-shadow: var(--shadow-sm); }
.client-badge--partner { border-color: var(--green); color: var(--green-dark); font-weight: 700; }

/* ===================== ABOUT ===================== */
#about { padding: 96px 0; background: white; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.about-text h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 800; color: var(--black); }
.about-text p { color: var(--gray); margin-bottom: 16px; font-size: 0.95rem; }

.about-values { margin: 28px 0; display: flex; flex-direction: column; gap: 18px; }
.value-row { display: flex; gap: 14px; align-items: flex-start; }
.value-hex {
  width: 12px; height: 14px; flex-shrink: 0; margin-top: 5px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--green);
}
.value-row strong { display: block; font-size: 0.92rem; color: var(--black); margin-bottom: 3px; }
.value-row p { font-size: 0.85rem; color: var(--gray); }

.btn-primary-green {
  display: inline-block; margin-top: 4px;
  background: var(--green); color: white;
  padding: 12px 26px; border-radius: 6px;
  font-weight: 700; font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary-green:hover { background: var(--green-dark); transform: translateY(-2px); }

.team-section { display: flex; flex-direction: column; gap: 0; }
.team-section > .section-tag { margin-bottom: 16px; }
.team-cards { display: flex; flex-direction: column; gap: 16px; }
.team-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--green-pale); border: 1.5px solid rgba(74,140,63,0.2);
  border-radius: var(--radius); padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.team-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.team-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800; color: white; letter-spacing: 0.5px;
}
.team-info h4 { font-size: 0.97rem; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.team-role { font-size: 0.8rem; color: var(--green-dark); font-weight: 600; margin-bottom: 10px; }
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.team-tags span {
  background: white; border: 1px solid rgba(74,140,63,0.3);
  color: var(--green-dark); font-size: 0.73rem;
  padding: 3px 10px; border-radius: 50px; font-weight: 500;
}

/* ===================== CONTACT ===================== */
#contact { padding: 96px 0; background: var(--green-pale); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 800; color: var(--black); }
.contact-info > p { color: var(--gray); margin-bottom: 32px; font-size: 0.93rem; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); margin-top: 5px; flex-shrink: 0;
}
.contact-item strong { font-size: 0.86rem; font-weight: 700; color: var(--black); display: block; margin-bottom: 2px; }
.contact-item p { font-size: 0.86rem; color: var(--gray); }

.contact-form {
  background: white; border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.83rem; font-weight: 700; color: var(--black); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-light);
  border-radius: 8px; padding: 11px 14px;
  font-family: Arial, sans-serif; font-size: 0.9rem; color: var(--black);
  background: white; resize: vertical;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); }
.btn-submit {
  width: 100%; background: var(--green); color: white;
  border: none; padding: 13px; border-radius: 6px;
  font-family: Arial, sans-serif; font-size: 0.93rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.form-note { margin-top: 12px; font-size: 0.86rem; text-align: center; min-height: 20px; }

/* ===================== FOOTER ===================== */
footer { background: var(--dark-bg); padding: 64px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 72px; margin-bottom: 52px;
}
.footer-logo-svg { height: 52px; width: auto; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.87rem; margin-top: 16px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col h4 {
  font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: white; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.45); font-size: 0.86rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.28); font-size: 0.8rem; }

/* ===================== ANIMATIONS ===================== */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-logo-wrap { flex-direction: column; }
  .hero-experts-word { font-size: 1.6rem; letter-spacing: 4px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost-light { width: 100%; text-align: center; }
  .contact-form { padding: 24px 18px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
