/* =========================================================================
   Vitrine — Valentin Eveno · Infrastructure & DevOps
   CSS pur, mobile-first, sans dépendance externe (conforme CSP script-src 'self')
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette — encre + émeraude (identité neuve, distincte de l'ancien bleu) */
  --bg:        #0b0f10;
  --bg-soft:   #11171a;
  --bg-card:   #141b1e;
  --line:      #243034;
  --text:      #e7eef0;
  --muted:     #93a4a8;
  --faint:     #6b7c80;

  --accent:    #2dd4a7;
  --accent-2:  #38bdf8;
  --accent-ink:#04201a;

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1120px;

  --shadow:    0 18px 50px -20px rgba(0,0,0,0.7);
  --ring:      0 0 0 3px rgba(45,212,167,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ── Boutons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.97rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); background: #36e6b6; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,15,16,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 800; letter-spacing: -0.3px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(45,212,167,0.45);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.4px; }
.brand-accent { color: var(--accent); }
.brand-text small { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-size: 0.92rem; color: var(--muted); transition: color 0.18s ease; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--accent); font-weight: 700;
  border: 1px solid var(--line); padding: 0.5rem 0.95rem; border-radius: var(--radius-sm);
}
.nav .nav-cta:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 38px; padding: 9px; background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4rem; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% -8%, rgba(45,212,167,0.18) 0%, transparent 62%),
    radial-gradient(ellipse 50% 45% at 85% 30%, rgba(56,189,248,0.12) 0%, transparent 60%);
}
.hero-inner { position: relative; max-width: 760px; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.4rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -1.5px; margin-bottom: 1.3rem;
}
.grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 620px; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.75rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chips li {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 0.32rem 0.8rem; border-radius: 100px;
}

/* ── Stats ───────────────────────────────────────────── */
.stats { border-block: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; padding-block: 2.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat strong { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.stat span { font-size: 0.88rem; color: var(--muted); }

/* ── Sections ────────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.6px; line-height: 1.15; margin-bottom: 0.85rem; }
.section-sub { color: var(--muted); font-size: 1.02rem; }

/* ── Cartes services ─────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(45,212,167,0.5); box-shadow: var(--shadow); }
.card-ico {
  width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 1.4rem; border-radius: 11px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(45,212,167,0.16), rgba(56,189,248,0.12));
  border: 1px solid var(--line);
}
.card h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.1rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-size: 0.72rem; font-weight: 600; color: var(--accent); background: rgba(45,212,167,0.08); border: 1px solid rgba(45,212,167,0.2); padding: 0.18rem 0.55rem; border-radius: 5px; }

/* ── Features (approche) ─────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.feature { display: flex; flex-direction: column; gap: 0.55rem; }
.feature-ico {
  width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.15rem;
  border-radius: 10px; background: var(--bg-card); border: 1px solid var(--line); color: var(--accent);
}
.feature h3 { font-size: 1.02rem; font-weight: 700; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* ── Missions ────────────────────────────────────────── */
.missions { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; }
.mission { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.mission-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); background: rgba(45,212,167,0.08); border: 1px solid rgba(45,212,167,0.22);
  padding: 0.25rem 0.7rem; border-radius: 100px; margin-bottom: 0.9rem;
}
.mission h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.5rem; }
.mission p { font-size: 0.9rem; color: var(--muted); }

/* ── Steps (process) ─────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; counter-reset: step; }
.step { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-n { display: block; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem; }
.step h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ── Contact ─────────────────────────────────────────── */
.contact { text-align: center; }
.contact-inner { max-width: 620px; margin-inline: auto; }
.contact .section-sub { margin: 0 auto 2rem; }
.contact-note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--faint); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: 1.8rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.84rem; color: var(--faint); }

/* ── Responsive ──────────────────────────────────────── */
@media (min-width: 560px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    clip-path: inset(0 0 100% 0); opacity: 0;
    transition: clip-path 0.25s ease, opacity 0.2s ease;
  }
  .nav.open { clip-path: inset(0 0 0 0); opacity: 1; }
  .nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: none; }
  .nav .nav-cta { margin-top: 0.6rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
