/* ==========================================================================
   CyberSecuritas — Design system
   ========================================================================== */

:root {
  /* Brand colors (extraits du logo) */
  --navy-950: #010e1f;
  --navy-900: #011631;
  --navy-800: #022857;
  --navy-700: #03356e;
  --navy-600: #0a4a8f;
  --cyan-500: #01b7d5;
  --cyan-400: #2fd0e8;
  --cyan-300: #7fe3f2;
  --cyan-050: #e8fbfd;

  --ink: #0c1b2e;
  --slate-700: #3d4a5c;
  --slate-500: #6b7a8d;
  --slate-300: #c3ccd6;
  --slate-100: #eef2f6;
  --white: #ffffff;

  --success: #1fbf75;
  --warning: #f5a524;
  --danger: #e5484d;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(1, 22, 49, 0.06);
  --shadow-md: 0 12px 32px rgba(1, 22, 49, 0.10);
  --shadow-lg: 0 24px 60px rgba(1, 22, 49, 0.16);

  --container: 1180px;
  --nav-h: 76px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
img, picture, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan-500);
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--slate-700); margin-top: 14px; font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  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 svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--cyan-500);
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(1, 183, 213, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(1, 183, 213, 0.45); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-dark {
  background: var(--navy-800);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-900); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-700);
  padding: 8px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--cyan-500);
  transition: width 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy-800); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 11px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-outline-inline { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--slate-100);
  }
  body.nav-open .nav-links a { width: 100%; padding: 12px 0; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: radial-gradient(circle at 15% 20%, rgba(1,183,213,0.18), transparent 45%),
              linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  opacity: 0.5;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge span.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(47, 208, 232, 0.25);
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .accent { color: var(--cyan-400); }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-trust {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-trust div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--white);
}
.hero-trust div span { font-size: 0.82rem; color: rgba(255,255,255,0.62); }

.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-panel .panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-panel .panel-row:last-child { border-bottom: none; }
.hero-panel .panel-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(1,183,213,0.15);
  color: var(--cyan-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-panel .panel-icon svg { width: 20px; height: 20px; }
.hero-panel .panel-text strong { display: block; font-size: 0.95rem; color: var(--white); }
.hero-panel .panel-text span { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.hero-panel .panel-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(31,191,117,0.16);
  color: #4de3a0;
  white-space: nowrap;
}

/* ---- Logos bar / clients ---- */
.logos-bar { padding: 40px 0; border-bottom: 1px solid var(--slate-100); }
.logos-bar p { text-align: center; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 26px; font-weight: 600; }

.clients-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.client-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.client-group-label {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--navy-700);
  min-width: 190px;
}
.client-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.client-chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--slate-700);
  background: var(--slate-100);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.client-chip:hover {
  border-color: var(--cyan-500);
  color: var(--navy-800);
}
@media (max-width: 700px) {
  .client-group { flex-direction: column; align-items: flex-start; gap: 8px; }
  .client-group-label { min-width: 0; }
}

/* ---- Cards / Services ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--cyan-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate-700); font-size: 0.95rem; margin-bottom: 18px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.88rem; color: var(--navy-800);
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card-link:hover svg { transform: translateX(3px); }

.service-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: var(--slate-700); margin-top: 10px;
}
.service-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--success); }

.service-clients {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-100);
  font-size: 0.82rem;
  color: var(--slate-500);
}
.service-clients strong {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-800);
}

/* ---- Alt background section ---- */
.bg-slate { background: var(--slate-100); }
.bg-navy { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .eyebrow { color: var(--cyan-400); }

/* ---- Process / steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 22px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--slate-100); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--cyan-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--slate-700); }

/* ---- Stats ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--cyan-400);
}
.stat span { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ---- Testimonials ---- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-100);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: var(--warning); margin-bottom: 16px; letter-spacing: 2px; }
.testimonial p.quote { font-size: 1rem; color: var(--slate-700); margin-bottom: 22px; }
.testimonial .person { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--cyan-500));
  color: var(--white); font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.testimonial .person strong { display: block; font-size: 0.92rem; color: var(--ink); }
.testimonial .person span { font-size: 0.82rem; color: var(--slate-500); }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(120deg, var(--cyan-500), #0891b8);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--navy-950); margin-bottom: 10px; }
.cta-banner p { color: rgba(1,22,49,0.75); max-width: 480px; }
.cta-banner .btn-dark { background: var(--navy-950); }
.cta-banner .btn-dark:hover { background: var(--navy-900); }

/* ---- Page header (sub-pages) ---- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--cyan-400); }
.page-hero h1 { color: var(--white); max-width: 720px; }
.page-hero p.lead { color: rgba(255,255,255,0.75); max-width: 620px; margin-top: 18px; font-size: 1.08rem; }

/* ---- Service detail blocks ---- */
.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--slate-100);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
@media (max-width: 900px) { .service-block, .service-block.reverse { grid-template-columns: 1fr; direction: ltr; } }
.service-visual {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
}
.service-visual svg { width: 120px; height: 120px; }
.service-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--cyan-050);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.service-block h2 { margin-bottom: 14px; }
.service-block p.desc { color: var(--slate-700); margin-bottom: 20px; }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--slate-100);
  padding: 22px 0;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  color: var(--navy-800);
}
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--cyan-500); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { color: var(--slate-700); padding-top: 14px; font-size: 0.95rem; }

/* ---- Values / about ---- */
.value-card { text-align: center; padding: 30px 20px; }
.value-card .card-icon { margin-inline: auto; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid; grid-template-columns: 100px 1fr; gap: 24px;
  padding: 24px 0; border-left: 2px solid var(--slate-100); position: relative; padding-left: 28px; margin-left: 50px;
}
.timeline-item::before {
  content: ""; position: absolute; left: -7px; top: 28px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--cyan-500);
  box-shadow: 0 0 0 4px var(--cyan-050);
}
.timeline-item .year { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); margin-left: -78px; margin-top: 24px; }
@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; margin-left: 10px; }
  .timeline-item .year { margin-left: 0; margin-top: 0; }
}

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--cyan-400);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
}
.team-card strong { display: block; color: var(--navy-800); font-family: var(--font-head); }
.team-card span { font-size: 0.85rem; color: var(--slate-500); }

.cert-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cert-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--slate-100);
  border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 700; color: var(--navy-800);
}
.cert-chip svg { width: 16px; height: 16px; color: var(--cyan-500); }

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-item .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(1,183,213,0.15); color: var(--cyan-400);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item .icon svg { width: 20px; height: 20px; }
.contact-info-item strong { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.55); font-weight: 600; margin-bottom: 4px; }
.contact-info-item span, .contact-info-item a { font-size: 1rem; font-weight: 600; }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.social-row a svg { width: 16px; height: 16px; }
.social-row a:hover { background: var(--cyan-500); color: var(--navy-950); }

.form-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px var(--cyan-050);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.error input, .field.error textarea { border-color: var(--danger); }
.field-error-msg { display: none; color: var(--danger); font-size: 0.8rem; margin-top: 6px; }
.field.error .field-error-msg { display: block; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--slate-700); }
.checkbox-field input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: #eafbf2;
  color: #0d8a4f;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

.map-block {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--slate-100);
  height: 220px;
}
.map-block iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    repeating-linear-gradient(0deg, var(--slate-100) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--slate-100) 0 1px, transparent 1px 28px);
  color: var(--navy-800);
}
.map-placeholder svg { width: 32px; height: 32px; color: var(--cyan-500); }
.map-placeholder span { font-size: 0.85rem; font-weight: 600; color: var(--slate-700); }

/* ---- Footer ---- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img {
  height: 40px;
  margin-bottom: 18px;
  background: var(--white);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.footer-brand p { font-size: 0.9rem; max-width: 280px; color: rgba(255,255,255,0.55); }
.site-footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 12px; font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--cyan-400); }
.footer-newsletter input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05);
  color: var(--white); margin-bottom: 10px; font-size: 0.9rem;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input.error { border-color: #ff8787; }
.newsletter-success {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #4de3a0;
  margin-top: 10px;
}
.newsletter-success.show { display: flex; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .legal-links a:hover { color: var(--cyan-400); }

/* ---- Reveal animation ----
   Progressive enhancement: elements are visible by default so content
   never depends on JavaScript running (no-JS users, ad-blockers, search
   crawlers that don't execute scripts). JS opts elements into the
   hidden-then-fade-in state via the .js-reveal-ready class on <body>. */
.reveal { opacity: 1; transform: none; }
body.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-reveal-ready .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---- Misc utility ---- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   Chat IA — widget de qualification de prospects
   ========================================================================== */

.ai-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(155deg, var(--navy-800), var(--cyan-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(1, 22, 49, 0.28);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(1, 22, 49, 0.34); }
.ai-chat-launcher svg { width: 26px; height: 26px; }
.ai-chat-launcher .ai-chat-launcher-close { display: none; }
.ai-chat-launcher .ai-chat-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--cyan-400);
  border: 2px solid #fff;
}
body.ai-chat-open .ai-chat-launcher .ai-chat-launcher-chat { display: none; }
body.ai-chat-open .ai-chat-launcher .ai-chat-launcher-close { display: block; }

.ai-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 94px;
  width: 372px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 998;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
body.ai-chat-open .ai-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ai-chat-header {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ai-chat-header-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-chat-header-avatar svg { width: 20px; height: 20px; }
.ai-chat-header-text { line-height: 1.3; min-width: 0; }
.ai-chat-header-text strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.ai-chat-header-text span { font-size: 0.78rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 6px; }
.ai-chat-header-text span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4de3a0; display: inline-block;
}
.ai-chat-close {
  margin-left: auto;
  background: none; border: none; color: rgba(255,255,255,0.75); cursor: pointer;
  padding: 4px; line-height: 0;
}
.ai-chat-close:hover { color: #fff; }
.ai-chat-close svg { width: 18px; height: 18px; }

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--slate-100);
}
.ai-chat-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.48;
  white-space: pre-wrap;
}
.ai-chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--slate-300);
  border-bottom-left-radius: 4px;
}
.ai-chat-msg.user {
  align-self: flex-end;
  background: var(--navy-800);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-chat-msg.system-note {
  align-self: center;
  background: var(--cyan-050);
  color: var(--navy-800);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: flex; align-items: center; gap: 6px;
}
.ai-chat-msg.system-note svg { width: 14px; height: 14px; flex-shrink: 0; }
.ai-chat-typing {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  display: flex;
  gap: 4px;
}
.ai-chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--slate-500);
  animation: aiChatTyping 1.2s infinite ease-in-out;
}
.ai-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiChatTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat-form {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--slate-300);
  background: #fff;
}
.ai-chat-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  max-height: 90px;
  line-height: 1.4;
}
.ai-chat-form textarea:focus { outline: none; border-color: var(--cyan-500); }
.ai-chat-form button {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--navy-800);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ai-chat-form button:disabled { opacity: 0.5; cursor: default; }
.ai-chat-form button svg { width: 18px; height: 18px; }
.ai-chat-disclaimer {
  font-size: 0.68rem;
  color: var(--slate-500);
  text-align: center;
  padding: 0 14px 10px;
  background: #fff;
}

@media (max-width: 640px) {
  .ai-chat-panel {
    right: 10px; left: 10px; bottom: 88px;
    width: auto;
    height: min(72vh, 620px);
  }
  .ai-chat-launcher { right: 16px; bottom: 16px; }
}
