/* ==========================================================================
   Softypack — style.css (v2, refonte)
   Système : un seul accent (ambre), base neutre froide (encre / brume),
   typographie à deux rôles (Space Grotesk / IBM Plex Sans), Plex Mono
   réservé aux données réelles (chiffres). Icônes : Phosphor (officielles,
   jamais dessinées à la main) — voir /assets/icons/.
   Cadrans (skill design-taste-frontend) : VARIANCE 8 / MOTION 6 / DENSITY 4
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* Couleurs — base neutre froide + un seul accent verrouillé */
  --ink: #041526; /* extrait du logo fourni (navy de fond) */
  --ink-soft: #0f2438;
  --ink-border: rgba(237, 239, 236, 0.12);
  --surface: #eef1f0;
  --surface-raised: #f8faf9;
  --surface-line: #dde3e1;
  --amber: #dda951; /* extrait du logo fourni (or / laiton) */
  --amber-strong: #b5883f;
  --amber-ink: #885f1a; /* variante foncée : texte/icônes ambre sur fond clair (contraste WCAG AA) */
  --amber-wash: rgba(221, 169, 81, 0.14);
  --text-ink: #1a2126;
  --text-muted: #5b6870;
  --text-on-ink: #edefec;
  --text-on-ink-muted: #a3b0b5;
  --danger: #b3462c;
  --danger-wash: rgba(179, 70, 44, 0.1);

  /* Typo — deux registres + un accent mono réservé aux données */
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.75rem + 2.3vw, 3.4rem);

  /* Verrou de formes : pill = interactif, 16px = panneaux, 8px = petits éléments */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-pill: 999px;
  --container: 1180px;
  --shadow-soft: 0 1px 2px rgba(18, 26, 32, 0.06), 0 10px 28px -14px rgba(18, 26, 32, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
.icon { width: 1em; height: 1em; flex: none; }

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(40px, 5vw, 60px); }
.section--ink { background: var(--ink); color: var(--text-on-ink); }
.section--raised { background: var(--surface-raised); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.section--ink .eyebrow { color: var(--amber); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--text-muted); max-width: 46ch; }
.section--ink .lede { color: var(--text-on-ink-muted); }

/* ---------- Boutons (verrou de forme : pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-strong); transform: translateY(-1px); }

.btn--ghost { background: transparent; border-color: var(--surface-line); color: var(--text-ink); }
.btn--ghost:hover { border-color: var(--text-ink); }
.section--ink .btn--ghost { border-color: rgba(237, 239, 236, 0.3); color: var(--text-on-ink); }
.section--ink .btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn--block { width: 100%; justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Révélation au défilement (MOTION_INTENSITY: 6) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s cubic-bezier(.2,.7,.3,1), transform 0.65s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ==========================================================================
   En-tête / navigation
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ink); border-bottom: 1px solid var(--ink-border); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding-block: 12px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--text-on-ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 9px 13px; border-radius: var(--radius-s); font-size: 0.93rem; color: var(--text-on-ink-muted); transition: color 0.15s ease, background-color 0.15s ease; }
.site-nav a:hover { color: var(--text-on-ink); background: rgba(237, 239, 236, 0.06); }
.site-nav a.is-active { color: var(--amber); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(237, 239, 236, 0.3); border-radius: var(--radius-s); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text-on-ink); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }

.hero__title {
  margin-top: 16px;
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-ink);
  max-width: 15ch;
}
.hero__title strong { font-weight: 700; color: var(--amber-ink); }
.hero__lede { margin-top: 20px; font-size: var(--step-1); color: var(--text-muted); max-width: 42ch; }

.hero__figure { border-radius: var(--radius-m); background: var(--surface-raised); border: 1px solid var(--surface-line); padding: clamp(18px, 3vw, 30px); }
.hero__figure figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-align: center; letter-spacing: 0.03em; }
.hero__figure--image { background: none; border: none; padding: 0; overflow: hidden; }
.hero__figure--image img { width: 100%; height: auto; border-radius: var(--radius-m); display: block; }

@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-enter { opacity: 0; animation: hero-in 0.7s cubic-bezier(.2,.7,.3,1) forwards; }
.hero-enter--1 { animation-delay: .05s; }
.hero-enter--2 { animation-delay: .15s; }
.hero-enter--3 { animation-delay: .25s; }
.hero-enter--4 { animation-delay: .35s; }
.hero-enter--5 { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .hero-enter { opacity: 1; animation: none; } }

/* ==========================================================================
   Bandeau statistiques (bande pleine largeur — famille de mise en page distincte)
   ========================================================================== */
.stat-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { border-left: 2px solid var(--amber); padding-left: 18px; }
.stat__value { font-family: var(--font-mono); font-size: var(--step-2); font-weight: 600; color: var(--text-on-ink); }
.stat__label { margin-top: 6px; font-size: 0.92rem; color: var(--text-on-ink-muted); max-width: 30ch; }

/* ==========================================================================
   Section "équipe" (image + texte — une seule occurrence de cette famille)
   ========================================================================== */
.team-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.team-split__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-line);
  border: 1px solid var(--surface-line);
}
.team-split__media img { width: 100%; height: 100%; object-fit: cover; }
.team-split h2 { font-size: var(--step-3); color: var(--text-ink); letter-spacing: -0.015em; line-height: 1.15; max-width: 16ch; }
.team-split p { margin-top: 16px; color: var(--text-muted); max-width: 52ch; }
.team-split .cta-row { margin-top: 26px; }

/* ==========================================================================
   Expertises — grille espacée (DENSITY: 4, cartes non jointives)
   ========================================================================== */
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: var(--step-3); letter-spacing: -0.015em; color: var(--text-ink); line-height: 1.12; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--surface-raised);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.service-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.service-card__icon { width: 30px; height: 30px; color: var(--amber-ink); }
.service-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; color: var(--text-ink); letter-spacing: -0.005em; }
.service-card p { color: var(--text-muted); font-size: 0.93rem; }

/* Carte vedette : diversité visuelle réelle (pas juste un texte sur fond clair) */
.service-card--featured {
  grid-column: span 2;
  background: var(--ink);
  border-color: var(--ink);
}
.service-card--featured .service-card__icon { color: var(--amber); }
.service-card--featured h3 { color: var(--text-on-ink); }
.service-card--featured p { color: var(--text-on-ink-muted); }
.service-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.service-card--featured .service-card__badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--amber);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================================
   Étapes (processus réel — libellés = les verbes eux-mêmes, pas "Étape 1/2/3")
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 44px; border-top: 1px solid var(--surface-line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.7em;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-ink);
  background: var(--surface);
  padding-right: 10px;
}
.step h3 { font-size: 1.08rem; font-weight: 600; color: var(--text-ink); margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Bandeaux CTA compacts (assistance / contact)
   ========================================================================== */
.cta-split { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(28px, 4vw, 38px); border-radius: var(--radius-m); }
.cta-split--paper { background: var(--surface-raised); border: 1px solid var(--surface-line); }
.cta-split h3 { font-size: var(--step-2); color: var(--text-ink); letter-spacing: -0.01em; }
.cta-split p { margin-top: 8px; color: var(--text-muted); max-width: 52ch; }
.cta-split--ink { background: var(--ink); }
.cta-split--ink h3 { color: var(--text-on-ink); }
.cta-split--ink p { color: var(--text-on-ink-muted); }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--text-on-ink-muted); padding-block: 56px 28px; }
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--ink-border);
}
.footer__brand { max-width: 400px; }
.footer__contact { min-width: 260px; }
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { font-size: 0.96rem; line-height: 1.6; }
.footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-ink-muted); margin-bottom: 18px; font-weight: 500; }
.footer a:hover { color: var(--amber); }
.footer__info-list { display: flex; flex-direction: column; gap: 16px; }
.footer__info-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.94rem; line-height: 1.5; }
.footer__info-list .icon { width: 19px; height: 19px; color: var(--amber); margin-top: 2px; flex: none; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 0.82rem; }

/* ==========================================================================
   Page Assistance
   ========================================================================== */
.assist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.assist-panel { background: var(--surface-raised); border: 1px solid var(--surface-line); border-radius: var(--radius-m); padding: clamp(24px, 3vw, 34px); }
.assist-panel__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 18px;
}
.assist-panel__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-wash); }
.assist-panel h3 { font-size: 1.3rem; color: var(--text-ink); margin-bottom: 10px; }
.assist-panel p { color: var(--text-muted); margin-bottom: 22px; }

.assist-steps { display: flex; flex-direction: column; gap: 18px; }
.assist-step { display: flex; gap: 14px; }
.assist-step__num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--surface); font-family: var(--font-mono); font-size: 0.82rem; display: flex; align-items: center; justify-content: center; }
.assist-step h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; color: var(--text-ink); margin-bottom: 4px; }
.assist-step p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.trust-list { display: flex; flex-direction: column; gap: 16px; }
.trust-item { display: flex; gap: 14px; }
.trust-item .icon { width: 22px; height: 22px; color: var(--amber-ink); margin-top: 2px; }
.trust-item h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; color: var(--text-ink); margin-bottom: 4px; }
.trust-item p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.alt-contact { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--surface-line); display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Page Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text-ink); margin-bottom: 7px; }
.form-field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }
.form-field .req { color: var(--amber-ink); }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--surface-line); background: var(--surface-raised); color: var(--text-ink);
  transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--amber-ink); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { margin-top: 4px; font-size: 0.84rem; color: var(--text-muted); }
.form-msg { padding: 14px 16px; border-radius: var(--radius-s); font-size: 0.92rem; margin-bottom: 22px; }
.form-msg--ok { background: var(--amber-wash); color: var(--amber-ink); border: 1px solid rgba(226, 165, 48, 0.35); }
.form-msg--error { background: var(--danger-wash); color: var(--danger); border: 1px solid rgba(179, 70, 44, 0.28); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.info-card { background: var(--ink); color: var(--text-on-ink); border-radius: var(--radius-m); padding: clamp(24px, 3vw, 32px); }
.info-card h3 { font-size: 1.1rem; margin-bottom: 18px; }
.info-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.info-list li { display: flex; gap: 12px; font-size: 0.92rem; color: var(--text-on-ink-muted); }
.info-list .icon { width: 20px; height: 20px; color: var(--amber); margin-top: 1px; }
.info-list a:hover { color: var(--amber); }
.info-card__map { border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--ink-border); }
.info-card__map iframe { width: 100%; height: 200px; border: 0; display: block; filter: grayscale(0.4) contrast(1.05); }

/* ==========================================================================
   Page Mentions légales
   ========================================================================== */
.legal { max-width: 76ch; }
.legal h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1.2rem; color: var(--text-ink); margin-top: 36px; margin-bottom: 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal .fill { background: var(--amber-wash); border: 1px dashed var(--amber-ink); padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.86em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .assist-grid, .contact-grid { grid-template-columns: 1fr; }
  .stat-band__grid { grid-template-columns: 1fr; gap: 22px; }
  .team-split { grid-template-columns: 1fr; }
  .team-split__media { order: -1; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); padding: 10px 24px 18px; border-bottom: 1px solid var(--ink-border);
  }
  .site-header.is-open .site-nav a { padding: 13px 13px; width: 100%; }
  .header__actions .btn--primary { display: none; }
  .site-header.is-open .header__actions .btn--primary { display: inline-flex; margin-top: 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-top: 40px; }
  .cta-split { grid-template-columns: 1fr; text-align: left; }
  .cta-split .btn { width: 100%; justify-content: center; }
  .footer__grid { flex-direction: column; gap: 36px; }
  .footer__brand, .footer__contact { max-width: none; }
  .form-row { grid-template-columns: 1fr; }
}
