/* ===========================================================
   Gestion RD Consulting — feuille de style principale
   Palette dérivée du logo (bleu acier / bleu marine)
   =========================================================== */

:root {
  --brand-blue: #5B7299;
  --brand-blue-dark: #46628C;
  --brand-navy: #4A4768;
  --brand-navy-dark: #34324A;
  --bg: #FFFFFF;
  --bg-soft: #F4F6FA;
  --bg-soft-2: #ECEFF6;
  --text: #262538;
  --text-muted: #5B5C6B;
  --border: #E1E4EE;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(38, 37, 56, 0.06), 0 1px 2px rgba(38, 37, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(38, 37, 56, 0.08);
  --shadow-lg: 0 20px 50px rgba(38, 37, 56, 0.12);
  --max-width: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1A27;
    --bg-soft: #211F30;
    --bg-soft-2: #292739;
    --text: #ECEBF3;
    --text-muted: #B3B1C4;
    --border: #38364C;
    --white: #211F30;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg: #1B1A27;
  --bg-soft: #211F30;
  --bg-soft-2: #292739;
  --text: #ECEBF3;
  --text-muted: #B3B1C4;
  --border: #38364C;
  --white: #211F30;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

section { padding: 96px 0; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}

h2.section-title {
  font-size: clamp(28px, 4vw, 38px);
  text-align: center;
  margin-bottom: 12px;
}

p.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue-dark);
  background: var(--bg-soft-2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand img { height: 40px; width: 40px; }

.brand .brand-name { display: flex; flex-direction: column; line-height: 1.15; }

.brand .brand-name small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

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

nav.main-nav a.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

nav.main-nav a.nav-link:hover { color: var(--brand-blue-dark); }

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

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
}

.lang-switch button.active {
  background: var(--brand-navy);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

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

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue-dark); }

.btn-block { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */

.hero {
  padding: 110px 0 100px;
  background:
    radial-gradient(1100px 500px at 85% -10%, color-mix(in srgb, var(--brand-blue) 16%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 520px;
}

.hero-stats div { text-align: left; }
.hero-stats strong {
  display: block;
  font-size: 22px;
  color: var(--brand-navy-dark);
}
.hero-stats span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
}

.hero-visual .visual-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hero-visual .visual-row:last-child { border-bottom: none; }

.hero-visual .visual-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-soft-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-blue-dark);
}

.hero-visual .visual-text strong { display: block; font-size: 14.5px; }
.hero-visual .visual-text span { font-size: 13px; color: var(--text-muted); }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand-blue) 40%, var(--border));
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---------- Approach ---------- */

.approach {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.approach-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.approach-item .num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-soft-2);
  color: var(--brand-navy-dark);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-item h4 { font-size: 16.5px; margin-bottom: 6px; }
.approach-item p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* ---------- Clients ---------- */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.client-card {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.client-card .client-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-soft-2);
  color: var(--brand-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-card h3 { font-size: 17px; margin-bottom: 8px; }
.client-card span.tag {
  display: inline-block;
  font-size: 12.5px;
  color: var(--brand-blue-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.client-card p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-card {
  background: var(--brand-navy);
  color: var(--white);
  border-radius: 20px;
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.about-card img {
  height: 64px;
  width: 64px;
  margin-bottom: 22px;
  background: var(--white);
  border-radius: 50%;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 { color: var(--white); font-size: 20px; }
.about-card p { color: rgba(255,255,255,0.8); font-size: 14.5px; margin: 0; }

.about-text p { color: var(--text-muted); font-size: 16px; }

.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.badge {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  color: var(--brand-navy-dark);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.contact-info h3 { font-size: 20px; }
.contact-info p { color: var(--text-muted); font-size: 15px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
}

.contact-detail .c-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-soft-2);
  color: var(--brand-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail strong { display: block; font-size: 14.5px; }
.contact-detail span, .contact-detail a { font-size: 14px; color: var(--text-muted); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 20%, transparent);
}

.field textarea { resize: vertical; min-height: 120px; }

.hp-field { position: absolute; left: -9999px; }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: #2E7D5B; }
.form-status.err { color: #B3423E; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand img { height: 28px; width: 28px; }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-muted); }
.footer-links a:hover { color: var(--brand-blue-dark); }

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Language visibility ---------- */

[data-lang="en"] { display: none; }
html[lang="en"] [data-lang="en"] { display: revert; }
html[lang="en"] [data-lang="fr"] { display: none; }
html[lang="en"] span[data-lang="en"],
html[lang="en"] strong[data-lang="en"] { display: inline; }
html[lang="fr"] span[data-lang="fr"],
html[lang="fr"] strong[data-lang="fr"] { display: inline; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .services-grid,
  .approach-grid,
  .clients-grid { grid-template-columns: 1fr 1fr; }

  .hero-visual { order: -1; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }

  nav.main-nav { display: none; }

  .menu-toggle { display: block; }

  .site-header.nav-open nav.main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 18px;
  }

  .header-actions .btn-primary.header-cta { display: none; }

  .services-grid,
  .approach-grid,
  .clients-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
}
