/* ==========================================================================
   DARCONSULT — stylesheet
   Palette basée sur le logo (bleu marine) + gris neutre + blanc
   ========================================================================== */

:root {
  --navy-900: #081a3d;
  --navy-800: #0e2a5e;
  --navy-700: #15386f;
  --blue-accent: #2f6fed;
  --blue-accent-dark: #1f56c9;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f8f9fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 26, 61, 0.06), 0 1px 3px rgba(8, 26, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 26, 61, 0.10);
  --shadow-lg: 0 20px 50px rgba(8, 26, 61, 0.18);
  --max-width: 1180px;
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }

p { margin: 0 0 1em; color: var(--gray-700); }

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

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-accent-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--navy-900);
}

.section-intro {
  max-width: 640px;
  margin: 0 0 48px;
  color: var(--gray-700);
  font-size: 17px;
}

.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }
.text-center { text-align: center; }

section { padding: 88px 0; }
section.tight { padding: 64px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-accent-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--gray-300);
}
.btn-outline-dark:hover { border-color: var(--navy-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-100);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-main a {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  padding: 8px 0;
  position: relative;
}
.nav-main a:hover { color: var(--blue-accent-dark); }
.nav-main-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
}
.lang-switch a {
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--gray-500);
}
.lang-switch a.active { color: var(--blue-accent-dark); background: var(--gray-100); }
.lang-switch a:hover { color: var(--blue-accent-dark); }
.lang-switch span { color: var(--gray-300); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/cyberspace-g037c3c72f_1920.jpg");
  background-size: cover;
  background-position: center;
  opacity: .16;
  mix-blend-mode: luminosity;
}
.hero .container {
  position: relative;
  padding-top: 96px;
  padding-bottom: 104px;
  display: grid;
  gap: 24px;
  max-width: 760px;
}
.hero .eyebrow { color: #9fc0ff; }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 54px);
  letter-spacing: -.02em;
}
.hero p.lead {
  font-size: 19px;
  color: rgba(255,255,255,.86);
  max-width: 600px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats div strong {
  display: block;
  font-size: 22px;
  color: var(--white);
}
.hero-stats div span {
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  color: var(--blue-accent-dark);
}

.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 15px; margin-bottom: 0; }

/* ---------- Why us ---------- */
.why-section { background: var(--gray-50); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.why-item .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-accent-dark);
  letter-spacing: .06em;
  margin-bottom: 10px;
  display: block;
}
.why-item h3 { font-size: 18px; }
.why-item p { font-size: 15px; }

/* ---------- Expertise / approach ---------- */
.approach-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gray-100);
}
.approach-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: start;
}
.approach-item .step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.approach-item h3 { font-size: 17px; margin-bottom: 6px; }
.approach-item p { font-size: 15px; margin-bottom: 0; }

.expertise-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.expertise-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-100);
}
.contact-info-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); margin-bottom: 18px;}
.contact-detail { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-detail .ico {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--white); border: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-accent-dark); flex-shrink: 0; font-size: 17px;
}
.contact-detail strong { display: block; font-size: 14px; color: var(--navy-900); }
.contact-detail span, .contact-detail a { font-size: 14.5px; color: var(--gray-700); }
.contact-detail a:hover { color: var(--blue-accent-dark); }

.map-embed {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 700; color: var(--navy-900); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy-900);
  background: var(--white);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(47,111,237,.15);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--gray-500); margin-top: 14px; }

.cf-turnstile {
  margin: 4px 0 18px;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 1.4em;
}
.form-status-pending { color: var(--gray-500); }
.form-status-success { color: #157a4a; font-weight: 600; }
.form-status-error { color: #b3261e; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 24px;
}
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.62); font-size: 14px; max-width: 280px; }
.site-footer h4 {
  color: var(--white); font-size: 13px; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 16px;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .expertise-layout, .contact-layout { grid-template-columns: 1fr; }
  .expertise-media { order: -1; min-height: 240px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-main {
    position: fixed; top: 76px; left: 0; right: 0;
    height: calc(100vh - 76px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav-main a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
  body.nav-open .nav-main { transform: translateX(0); }
  .nav-toggle { display: block; }
  .header-actions { gap: 10px; }
  .header-actions > .btn { display: none; }
  .nav-main a.nav-main-cta {
    display: inline-flex;
    margin-top: 10px;
    width: 100%;
    padding: 14px 28px;
    border-bottom: none;
  }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
