/* ===========================================================
   KLYMA SOLUTIONS — Feuille de style commune
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0B1524;
  --navy-2: #0F1D30;
  --light: #F5F7FA;
  --white: #FFFFFF;
  --cyan: #29ABE2;
  --cyan-dark: #1C86B8;
  --orange: #D98B3F;
  --orange-dark: #B76F28;
  --text-dark: #1A1F2B;
  --text-muted: #5B6472;
  --footer-text: #C9D2DC;
  --border-light: #E3E8EF;
  --radius: 10px;
  --max-width: 1180px;
  --shadow: 0 10px 30px rgba(11, 21, 36, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}
.section-dark .eyebrow { color: var(--cyan); }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 8px 20px rgba(217,139,63,0.35); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-light:hover { border-color: var(--cyan); background: rgba(41,171,226,0.1); }
.btn-cyan { background: var(--cyan); color: var(--white); }
.btn-cyan:hover { background: var(--cyan-dark); box-shadow: 0 8px 20px rgba(41,171,226,0.35); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.93rem;
  opacity: 0.85;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a.active { opacity: 1; color: var(--cyan); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
}
.header-phone svg { flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(41,171,226,0.18) 0%, rgba(41,171,226,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -15%;
  bottom: -35%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(217,139,63,0.14) 0%, rgba(217,139,63,0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  padding: 72px 0 60px;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); color: var(--white); }
.hero h1 .accent-cyan { color: var(--cyan); }
.hero h1 .accent-orange { color: var(--orange); }
.hero-sub { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 30px; }
.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.8); }
.hero-badge svg { color: var(--cyan); flex-shrink: 0; }

.hero-visual {
  position: relative;
  background: linear-gradient(160deg, #12233A 0%, #0B1524 100%);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-k {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zone-chip {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--text-dark);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

/* ---------- Section base ---------- */
.section { padding: 84px 0; }
.section-light { background: var(--light); }
.section-white { background: var(--white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-dark .section-head h2 { color: var(--white); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon.icon-cyan { background: rgba(41,171,226,0.12); color: var(--cyan-dark); }
.service-icon.icon-orange { background: rgba(217,139,63,0.14); color: var(--orange-dark); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 14px; }
.service-link { font-size: 0.86rem; font-weight: 600; color: var(--cyan-dark); }
.service-link:hover { color: var(--orange-dark); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-item { display: flex; gap: 16px; }
.why-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(41,171,226,0.14);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.why-item h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: 0.88rem; }

/* ---------- Zone d'intervention ---------- */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.dept-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.dept-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.94rem; }
.dept-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cyan);
  color: var(--cyan-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.map-visual {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ---------- CTA split ---------- */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.cta-split > div { padding: 56px 48px; }
.cta-left { background: var(--navy); color: var(--white); }
.cta-right { background: var(--cyan); color: var(--white); }
.cta-split h3 { font-size: 1.4rem; margin-bottom: 10px; }
.cta-contact-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: var(--footer-text); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-logo img { height: 38px; margin-bottom: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Breadcrumb (service pages) ---------- */
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Simple page hero (service pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 64px;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero .hero-sub { margin-top: 10px; }

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.info-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-light);
}
.info-card h4 { font-size: 1rem; margin-bottom: 14px; }
.info-card ul { padding-left: 20px; margin: 0 0 18px; }
.info-card li { margin-bottom: 8px; font-size: 0.92rem; color: var(--text-muted); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.96rem;
  color: var(--text-dark);
}
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--cyan-dark); }

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}
.faq-item h4 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p { margin: 0; font-size: 0.94rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cta-split { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav ul, .header-phone span { display: none; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .dept-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
