/* ==========================================================================
   CyberCLM — main.css
   Design system : teal de marque (#008081) + neutrals slate du site actuel
   Polices : Space Grotesk (display) + Inter (texte), auto-hébergées
   ========================================================================== */

:root {
  --brand: #008081;
  --brand-dark: #00696a;
  --brand-bright: #2dd4bf;
  --violet: #9078f0;

  --ink: #0f172a;
  --h: #1e293b;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-soft: #f9fafb;

  --dark-1: #060d13;
  --dark-2: #0a1822;
  --dark-3: #050b10;
  --ink-inv: #e8eef5;
  --muted-inv: #9aa8b8;
  --line-dark: rgba(255, 255, 255, .09);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(45, 212, 191, .28); }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

[id] { scroll-margin-top: 84px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 0;
  font: 600 .95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--brand-bright);
  color: #04231f;
}
.btn-primary:hover {
  background: #43e6cf;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45, 212, 191, .25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-inv);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(6, 13, 19, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-dark); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand img { width: 34px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: .01em;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav > a {
  color: #b9c5d1;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: color .15s ease;
}
.main-nav > a:hover { color: #fff; }
.main-nav .header-cta { color: #04231f; }
.main-nav .header-cta:hover { color: #04231f; }
.link-accueil { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px; top: 17px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: none; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 120px;
  text-align: center;
  color: var(--ink-inv);
  background:
    radial-gradient(52rem 30rem at 50% -8%, rgba(45, 212, 191, .16), transparent 62%),
    linear-gradient(to bottom, var(--dark-2), var(--dark-1) 70%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(46rem 26rem at 50% 0%, #000 40%, transparent 78%);
  mask-image: radial-gradient(46rem 26rem at 50% 0%, #000 40%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
}
.hero h1 .hl { color: var(--brand-bright); }

.lede {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #b9c5d1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  list-style: none;
  padding: 0;
  margin: 52px auto 0;
  color: var(--muted-inv);
  font-size: .9rem;
}
.trust li { display: flex; align-items: center; }
.trust li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  margin: 0 18px;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  color: var(--ink-inv);
  background:
    radial-gradient(48rem 26rem at 85% 0%, rgba(45, 212, 191, .1), transparent 60%),
    linear-gradient(to bottom, var(--dark-1), var(--dark-3));
}

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--h);
}
.section-head .kicker { margin-bottom: 12px; }
.section-sub { margin-top: 14px; font-size: 1.05rem; color: var(--muted); }

.kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-dark .kicker { color: var(--brand-bright); }
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: var(--muted-inv); }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  border-color: #cbd5e1;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: var(--h);
  margin-bottom: 10px;
}
.card p { font-size: .95rem; line-height: 1.6; color: var(--body); }

.card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 128, 129, .09);
  color: var(--brand);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

.card-n {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(100, 116, 139, .35);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--brand);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.offer { display: flex; flex-direction: column; }
.offer .card-link { margin-top: auto; padding-top: 20px; }
.card-link span { transition: transform .15s ease; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-link:hover span { transform: translateX(3px); }

.addr { font-size: .95rem; line-height: 1.55; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 { margin-top: 12px; }
.contact-copy .section-sub { margin-top: 14px; }
.alt-contact { margin-top: 30px; color: #b9c5d1; }
.alt-contact a { color: var(--brand-bright); text-decoration: none; }
.alt-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: #b9c5d1;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink-inv);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #6b7a8c; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .18);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { margin-top: 14px; font-size: .78rem; line-height: 1.5; color: var(--muted-inv); }

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-3);
  color: var(--muted-inv);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .8fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: .9rem;
  line-height: 1.6;
}
.footer-brand .brand img { width: 30px; }
.footer-brand .brand-name { font-size: 1.05rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--muted-inv);
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s ease;
}
.footer-nav a:hover { color: #fff; }

.footer-contact a {
  color: var(--brand-bright);
  text-decoration: none;
  font-size: .95rem;
}
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-places {
  list-style: none;
  padding: 0;
  margin-top: 14px;
}
.footer-places li { font-size: .88rem; padding: 2px 0; }

.footer-bottom { border-top: 1px solid var(--line-dark); padding: 18px 0; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}
.footer-bottom-inner a { color: inherit; text-decoration: none; }
.footer-bottom-inner a:hover { color: #fff; text-decoration: underline; }

/* ---------- Animations ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #050b10;
    border-bottom: 1px solid var(--line-dark);
    padding: 18px 24px 26px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav > a {
    width: 100%;
    padding: 11px 4px;
    font-size: 1rem;
    color: #d5dee8;
    border-bottom: 1px solid var(--line-dark);
  }
  .main-nav .link-accueil { display: flex; }
  .main-nav > a:last-of-type { border-bottom: 0; }
  .main-nav .header-cta {
    display: inline-flex;
    width: auto;
    margin-top: 14px;
    border-bottom: 0;
  }
}
@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero { padding: 140px 0 84px; }
  .section-head { margin-bottom: 36px; }
  .hero-actions .btn { width: 100%; }
  .trust { flex-direction: column; align-items: center; gap: 10px; }
  .trust li { flex-direction: column; }
  .trust li + li::before { width: 4px; height: 4px; margin: 6px auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .card-link span { transition: none; }
}

/* ---------- Impression : tout doit être visible ---------- */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}
