/* ==========================================================================
   Interaction Lab — Groupe Interaction
   Design system & landing page styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs */
  --color-bg: #FAFAF9;
  --color-surface: #FFFFFF;
  --color-ink: #0B0F1A;
  --color-ink-2: #1E293B;
  --color-muted: #64748B;
  --color-line: #E7E5E4;
  --color-line-soft: #F1F5F9;

  --color-accent: #4F46E5;
  --color-accent-2: #7C3AED;
  --color-accent-soft: #EEF2FF;

  --color-success: #10B981;
  --color-warn: #F59E0B;
  --color-danger: #EF4444;

  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);

  /* Typographie */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Rayons */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .03);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, .08), 0 4px 8px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .12), 0 8px 16px rgba(15, 23, 42, .04);
  --shadow-cta: 0 4px 14px rgba(15, 23, 42, .18);
  --shadow-cta-hover: 0 8px 24px rgba(15, 23, 42, .25);
  --shadow-accent: 0 4px 12px rgba(79, 70, 229, .25);

  /* Spacing */
  --space-section: 100px;
  --space-section-sm: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Layout */
  --container-max: 1180px;
  --container-pad: 24px;
  --nav-height: 68px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button { font: inherit; color: inherit; cursor: pointer; }

a { color: inherit; }

ul, ol { list-style: none; }

/* Icônes utilitaires */
.icon-xs { width: 14px; height: 14px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-section);
}

.section--surface {
  background: var(--color-surface);
  border-block: 1px solid var(--color-line);
}

.section--form {
  background: linear-gradient(180deg, var(--color-bg) 0%, #F5F3FF 100%);
}

.section__head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section__tag {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section__head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-muted);
}

.section__head p + p { margin-top: 12px; }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.15; }

h1 {
  margin: 0 auto 24px;
  max-width: 900px;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}

h1 em, h2 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.02em;
}

h1 em {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}

h2 em { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s var(--ease-out), border-color .15s var(--ease-out);
}

.btn--primary {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.btn--primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-cta);
}

.btn--ghost {
  padding: 14px 22px;
  background: var(--color-surface);
  color: var(--color-ink-2);
  border-color: var(--color-line);
}

.btn--ghost:hover {
  border-color: var(--color-ink);
  transform: translateY(-2px);
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. NAV
   -------------------------------------------------------------------------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease-out);
}

#nav.is-scrolled { border-bottom-color: var(--color-line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.logo__mark svg { width: 16px; height: 16px; }

.logo__img {
  height: 32px;
  width: auto;
  display: block;
}

.logo__divider {
  width: 1px;
  height: 26px;
  background: var(--color-line);
  flex-shrink: 0;
}

.logo__text {
  white-space: nowrap;
}

.logo__text small {
  display: block;
  margin-top: -2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s var(--ease-out), background-color .15s var(--ease-out);
}

.nav__cta:hover {
  background: #000;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   7. HERO — split layout (visuel + contenu)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 88px 112px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, .08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 72px;
  align-items: center;
}

/* ----- Colonne contenu ----- */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__content h1 {
  margin: 0;
  max-width: none;
  text-align: left;
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.04;
}

.hero__intro {
  position: relative;
  margin: 0;
  padding-left: 18px;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-muted);
}

.hero__intro::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--gradient-accent);
}

.hero__ctas {
  justify-content: flex-start;
  margin-top: 4px;
}

/* ----- Colonne visuelle ----- */
.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
}

.hero__visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(circle at 80% 90%, rgba(124, 58, 237, .14), transparent 55%),
    radial-gradient(circle at 18% 14%, rgba(79, 70, 229, .12), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, var(--color-accent-soft) 100%);
  isolation: isolate;
}

.hero__lottie {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* ----- Floating cards (chiffres clés) ----- */
.hero__floating {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation: floatIn .8s var(--ease-spring) backwards;
}

.hero__floating--top {
  top: 36px;
  right: -32px;
  animation-delay: .35s;
}

.hero__floating--bottom {
  bottom: 40px;
  left: -32px;
  animation-delay: .55s;
}

/* Tags compacts (chips) — capability badges */
.hero__floating--tag {
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-pill);
  gap: 8px;
}

.hero__floating--tag .hero__floating-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.hero__floating--tag .hero__floating-icon svg {
  width: 14px;
  height: 14px;
}

.hero__floating-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--color-ink);
}

.hero__floating--tl {
  top: 64px;
  left: -28px;
  animation-delay: .25s;
}

.hero__floating--br {
  bottom: 88px;
  right: -28px;
  animation-delay: .45s;
}

.hero__floating-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, #F5F3FF 100%);
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero__floating-icon svg { width: 18px; height: 18px; }

.hero__floating-dot {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .15);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero__floating-meta strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--color-ink);
  line-height: 1.1;
}

.hero__floating-meta small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, .08); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   8. PROJETS
   -------------------------------------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.project-card:hover::after { transform: scaleX(1); }

.project-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, #F5F3FF 100%);
  color: var(--color-accent);
}

.project-card__icon svg { width: 22px; height: 22px; }

.project-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.project-card p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
}

.status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status--prod   { background: rgba(16, 185, 129, .1);  color: #047857; }
.status--deploy { background: rgba(59, 130, 246, .1);  color: #1D4ED8; }
.status--test   { background: rgba(6, 182, 212, .12);  color: #0E7490; }
.status--wip    { background: rgba(245, 158, 11, .12); color: #B45309; }
.status--soon   { background: rgba(139, 92, 246, .12); color: #6D28D9; }
.status--done   { background: rgba(100, 116, 139, .12); color: #475569; }
.status--fail   { background: rgba(239, 68, 68, .1);   color: #B91C1C; }

/* Card CTA — "Décrire mon besoin" */
.project-card--cta {
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: 1px dashed rgba(79, 70, 229, .45);
  cursor: pointer;
}

.project-card--cta::after {
  transform: scaleX(1);
  opacity: .35;
}

.project-card--cta:hover {
  background: linear-gradient(180deg, #fff 0%, var(--color-accent-soft) 100%);
  border-style: solid;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card--cta:hover::after { opacity: 1; }

.project-card__icon--cta {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.project-card--cta h3 { color: var(--color-accent); }

.project-card__cta-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
}

.project-card__cta-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s var(--ease-out);
}

.project-card--cta:hover .project-card__cta-link svg {
  transform: translateX(4px);
}

/* Filtre des projets */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  color: var(--color-ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out), transform .18s var(--ease-out);
}

.filter-chip:hover:not(.is-active):not(:disabled) {
  border-color: var(--color-ink);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

.filter-chip.is-empty {
  opacity: .45;
}

.filter-chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-line-soft);
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out);
}

.filter-chip.is-active .filter-chip__count {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.project-card.is-hidden {
  display: none;
}

.projects__empty {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);
  font-style: italic;
}

.projects__outro {
  margin-top: 48px;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-ink-2);
}

.projects__outro em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   9. STEPS
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step__num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 48px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step h3 {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 600;
}

.step__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
}

.step__badge svg { width: 13px; height: 13px; }

.step__deliverable {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

.step__deliverable-label {
  display: inline-block;
  margin-right: 6px;
  font-weight: 600;
  color: var(--color-ink-2);
}

.step__deliverable-label::after {
  content: ' :';
}

/* --------------------------------------------------------------------------
   9b. L'ÉQUIPE
   -------------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .team {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 5px var(--color-line);
  filter: saturate(.88) contrast(1.02);
  transition: box-shadow .25s var(--ease-out), filter .25s var(--ease-out);
}

.team-card:hover .team-card__photo {
  filter: saturate(1) contrast(1.02);
}

.team-card:hover .team-card__photo {
  box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 5px var(--color-accent);
}

.team-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.team-card__role {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: -.005em;
}

.team-card__role:has(+ .team-card__role-sub) {
  margin-bottom: 4px;
}

.team-card__role-sub {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: -.005em;
}

.team-card__bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 280px;
}

/* --------------------------------------------------------------------------
   9c. LE MOT DE ZALINA (éditorial)
   -------------------------------------------------------------------------- */
.section--zalina {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-accent-soft) 100%);
  border-block: 1px solid var(--color-line);
}

.zalina {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}

.zalina__visual {
  position: relative;
}

.zalina__visual::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: -28px;
  bottom: -28px;
  border-radius: var(--radius-lg);
  background: var(--gradient-accent);
  opacity: .14;
  z-index: 0;
}

.zalina__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
  box-shadow: var(--shadow-lg);
}

.zalina__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.zalina__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.zalina__quote {
  position: relative;
  margin: 0;
  padding-left: 44px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--color-ink);
}

.zalina__quote::before {
  content: '\201C';
  position: absolute;
  left: -2px;
  top: -18px;
  font-family: var(--font-serif);
  font-size: 84px;
  font-style: normal;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zalina__quote em {
  font-style: italic;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.zalina__quote-secondary {
  margin: 0;
  padding-left: 44px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-muted);
}

.zalina__attribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0 44px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.zalina__attribution strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--color-ink);
}

.zalina__attribution span {
  font-size: 13px;
  color: var(--color-muted);
}

@media (max-width: 880px) {
  .zalina {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .zalina__visual {
    max-width: 320px;
    margin: 0 auto;
  }
  .zalina__visual::before {
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
  }
  .zalina__quote,
  .zalina__quote-secondary,
  .zalina__attribution {
    padding-left: 36px;
  }
  .zalina__attribution {
    margin-left: 36px;
  }
}

/* --------------------------------------------------------------------------
   10. CATÉGORIES
   -------------------------------------------------------------------------- */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.cat {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  text-align: left;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}

.cat:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cat__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-line);
  color: var(--color-accent);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}

.cat:hover .cat__icon {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.cat__icon svg { width: 20px; height: 20px; }

.cat h4 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.cat__verbatim {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.4;
  color: var(--color-muted);
}

.cat__verbatim::before { content: '« '; color: var(--color-accent); }
.cat__verbatim::after  { content: ' »'; color: var(--color-accent); }

.cats__outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  text-align: center;
}

.cats__outro p {
  max-width: 580px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   11. FORMULAIRE
   -------------------------------------------------------------------------- */
.form-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-accent);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink-2);
}

.field .req { margin-left: 2px; color: var(--color-accent); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: inherit;
  font-size: 14px;
  color: var(--color-ink);
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder { color: #94A3B8; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

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

.field select {
  padding-right: 36px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

/* Mention RGPD */
.form__rgpd {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--color-line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}

.form__rgpd a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.form__rgpd a:hover { text-decoration: underline; }

.form__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn--primary[type="submit"] {
  padding-inline: 32px;
}

.form__note {
  font-size: 13px;
  text-align: center;
  color: var(--color-muted);
}

.form__note strong { color: var(--color-ink-2); }

/* État de succès */
.form-success {
  padding: 32px 16px;
  text-align: center;
  animation: fadeUp .5s var(--ease-out);
}

.form-success[hidden] { display: none; }

.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .12);
  color: var(--color-success);
  animation: scaleIn .4s var(--ease-spring);
}

.form-success__icon svg { width: 30px; height: 30px; }

.form-success h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.form-success p {
  max-width: 420px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--color-muted);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding-block: 48px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-muted);
}

.footer__inner strong { color: var(--color-ink-2); }

.footer__contact a {
  color: var(--color-ink-2);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-line);
  transition: color .15s var(--ease-out), border-color .15s var(--ease-out);
}

.footer__contact a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   13. ANIMATIONS (reveal on scroll)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--d1 { transition-delay: .08s; }
.reveal--d2 { transition-delay: .16s; }
.reveal--d3 { transition-delay: .24s; }
.reveal--d4 { transition-delay: .32s; }

/* --------------------------------------------------------------------------
   14. RESPONSIVE
   -------------------------------------------------------------------------- */
/* Hero — collapse split layout */
@media (max-width: 960px) {
  .hero { padding-block: 64px 80px; }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero__content { gap: 24px; }
  .hero__visual {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    aspect-ratio: 5/4;
  }
  .hero__floating--top    { top: 18px;  right: -10px; }
  .hero__floating--bottom { bottom: 22px; left: -10px; }
  .hero__floating--tl     { top: 18px;  left: -10px; }
  .hero__floating--br     { bottom: 22px; right: -10px; }
  .hero__intro            { max-width: none; }
}

@media (max-width: 720px) {
  :root {
    --space-section: var(--space-section-sm);
  }

  .hero            { padding-block: 48px 64px; }
  .form-wrapper    { padding: 32px 22px; border-radius: var(--radius-md); }
  .form__grid      { grid-template-columns: 1fr; gap: 14px; }
  .logo__divider   { display: none; }
  .logo            { gap: 10px; }
  .nav__cta        { padding: 8px 14px; }

  /* Crop le logo pour ne montrer que le badge rond (icon-only) */
  .logo__img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    object-position: 0 center;
    border-radius: 50%;
  }

  .hero__floating  { padding: 11px 14px; gap: 10px; }
  .hero__floating-meta strong { font-size: 14px; }
  .hero__floating-meta small  { font-size: 10px; }
  .hero__floating-icon        { width: 30px; height: 30px; }
  .hero__floating-icon svg    { width: 15px; height: 15px; }
}

/* Très petit mobile : CTA en icon-only pour libérer la place du brand */
@media (max-width: 520px) {
  .logo__img            { width: 30px; height: 30px; }
  .logo__text           { font-size: 14px; }
  .nav__cta             { padding: 9px; border-radius: 50%; gap: 0; }
  .nav__cta-label       { display: none; }
  .nav__cta .icon-xs    { width: 16px; height: 16px; }
}

/* --------------------------------------------------------------------------
   15. ACCESSIBILITÉ
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
