/* ===== Design tokens ===== */
:root {
  --bg: #060a14;
  --bg-alt: #0a1120;
  --surface: #0d1626;
  --surface-2: #101b30;
  --border: #1c2940;
  --text: #e8edf7;
  --text-muted: #93a1bd;
  --text-faint: #5c6a87;

  --blue-900: #0a1f44;
  --blue-700: #14336b;
  --blue-500: #3b82f6;
  --cyan-400: #22d3ee;

  --gradient-accent: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 14px;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

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

.accent { color: var(--cyan-400); }

h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
p { color: var(--text-muted); margin: 0 0 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-400);
  margin-bottom: 10px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon { border-radius: 10px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.brand-tagline { font-size: 0.72rem; color: var(--text-faint); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--gradient-accent);
  color: #04101f !important;
  font-weight: 700 !important;
  padding: 9px 18px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: radial-gradient(ellipse at top, var(--blue-900) 0%, var(--bg) 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at top, black, transparent 70%);
}

.hero-inner { position: relative; text-align: center; }

.badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cyan-400);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 820px;
  margin: 0 auto 22px;
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #04101f;
  box-shadow: 0 10px 30px rgba(59,130,246,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(59,130,246,0.35); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

.btn-full { width: 100%; text-align: center; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { max-width: 640px; }

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--blue-500); transform: translateY(-3px); }
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

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

.strengths { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.strengths li { display: flex; gap: 10px; color: var(--text); font-weight: 500; }
.strengths li span { color: var(--cyan-400); font-weight: 700; }

.terminal {
  background: #060a12;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-body {
  margin: 0;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #b9c6de;
  overflow-x: auto;
}
.terminal-body .ok { color: #4ade80; }

/* ===== Certification ===== */
.cert-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 44px;
  align-items: center;
}
.cert-badge {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  background: var(--gradient-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #04101f;
  flex-shrink: 0;
  box-shadow: 0 20px 45px rgba(59,130,246,0.3);
}
.cert-badge-title { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.03em; }
.cert-badge-sub { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.cert-text h2 { max-width: none; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-email {
  display: inline-block;
  margin-top: 8px;
  color: var(--cyan-400);
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.contact-email:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.optional { color: var(--text-faint); font-weight: 400; }

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2393a1bd' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-row select option { background: var(--bg-alt); color: var(--text); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}

.form-note { font-size: 0.88rem; margin: 0; min-height: 1.2em; }
.form-note.success { color: #4ade80; }
.form-note.error { color: #f87171; }

/* ===== Consentement & mentions formulaire ===== */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--cyan-400);
  cursor: pointer;
}
.form-consent label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.required-mark { color: var(--cyan-400); font-weight: 700; }
.form-legal {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.6;
  margin: 0;
}
.form-legal a { color: var(--cyan-400); text-decoration: none; }
.form-legal a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-alt);
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-meta, .footer-copy {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 4px 0;
}
.footer-meta a { color: var(--cyan-400); text-decoration: none; }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.85rem;
}
.footer-legal a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--cyan-400); }
.footer-legal span { color: var(--text-faint); }

/* ===== Pages légales (mentions légales, confidentialité) ===== */
.legal-main { padding: 64px 0 80px; }
.legal-page { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal-updated { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 32px; }
.legal-intro { font-size: 1.05rem; margin-bottom: 8px; }

.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-section p { font-size: 0.98rem; }
.legal-section a { color: var(--cyan-400); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

.legal-list { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.legal-list li { color: var(--text-muted); font-size: 0.98rem; }
.legal-list li strong { color: var(--text); }

.legal-note {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
}

.legal-todo {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--blue-500);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.legal-todo strong { color: var(--cyan-400); }
.legal-todo code,
.legal-note code,
.legal-section code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text);
}

.legal-back { margin-top: 40px; }
.legal-back a { color: var(--cyan-400); text-decoration: none; font-weight: 600; }
.legal-back a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cert-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .about-visual { order: -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-cta { align-self: flex-start; }
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 56px; }
}
