/* ========================================
   AAWEB Design & Développement
   Static Site — Custom Styles
   ======================================== */

:root {
  --primary: #005da5;
  --primary-dark: #004a85;
  --primary-light: #e8f2fb;
  --secondary: #f08800;
  --secondary-dark: #d97a00;
  --text: #1a1a2e;
  --text-muted: #4a5568;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: 0.25s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--secondary);
}

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

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--secondary);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- Sections ---- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card-icon.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.card-icon.orange {
  background: #fef3e2;
  color: var(--secondary);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Project Feature Card ---- */
.project-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.project-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 12px;
}

.project-placeholder i {
  font-size: 2.5rem;
  opacity: 0.4;
}

.project-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-info .badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.badge-demo {
  background: #dcfce7;
  color: #166534;
}

.project-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tech-tag {
  padding: 5px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---- Features list ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.feature-item i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Stats ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---- Services page ---- */
.service-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition);
}

.service-block:hover {
  box-shadow: var(--shadow-md);
}

.service-block .service-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.service-block h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-block p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-list li {
  padding: 4px 12px;
  background: var(--bg-alt);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-info-item i {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 93, 165, 0.1);
}

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

/* ---- Footer ---- */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 320px;
}

.footer h4 {
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* ---- Card link variant ---- */
a.card {
  color: inherit;
}
a.card:hover {
  color: inherit;
  border-color: var(--primary);
}
a.card:hover span[style*="color:var(--primary)"] {
  color: var(--secondary) !important;
}

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    list-style: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .nav-links.open {
    max-height: 360px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .hero {
    padding: 130px 0 70px;
  }

  .project-hero-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-block .service-icon {
    margin: 0 auto;
  }

  .service-list {
    justify-content: center;
  }
}

/* ========================================
   AAWEB — couche additive 2026
   ------------------------------------------------------------------
   Composants ajoutés pour la page Services et l'accueil.
   Aucune règle ci-dessous ne redefine une classe existante :
   projets / contact / espace-* continuent de fonctionner à l'identique.

   Échelle de formes (verrouillée) :
     panneaux 16px · tuiles 12px · puces 999px · boutons 8px (hérité)
   ======================================== */

:root {
  --ink: #0b1220;
  --tint-blue: #f2f7fc;
  --tint-amber: #fdf6ec;
  --amber-ink: #9a5400;
  --radius-lg: 16px;
  --radius-md: 12px;
  --pill: 999px;
  --hairline: rgba(11, 18, 32, 0.09);
  /* Variantes calibrées pour le contraste (WCAG AA) */
  --secondary-on-dark: #ffa726; /* texte ambre sur fond bleu : 3.5:1 */
  --secondary-cta: #b05e00; /* bouton ambre + texte blanc : 4.7:1 */
  --secondary-cta-hover: #965000; /* survol : 6.1:1 */
}

/* ---- Accent lisible sur les surfaces bleu foncé ---- */
.hero h1 .accent {
  color: var(--secondary-on-dark);
}

/* ---- CTA : ambre assez profond pour tenir du texte blanc ---- */
.btn-primary {
  background: var(--secondary-cta);
  border-color: var(--secondary-cta);
}

.btn-primary:hover {
  background: var(--secondary-cta-hover);
  border-color: var(--secondary-cta-hover);
}

/* ---- Focus visible (accessibilité) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Eyebrow : 1 par tranche de 3 sections, jamais plus ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
  flex-shrink: 0;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Hero partagé (accueil resserré) ---- */
.hero--tight {
  padding: 132px 0 84px;
}

.hero--tight h1 {
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}

.hero--tight p {
  max-width: 58ch;
}

/* ---- Hero scindé (Services) ---- */
.hero--split {
  text-align: left;
  padding: 128px 0 84px;
  background:
    radial-gradient(880px 420px at 88% -12%, rgba(240, 136, 0, 0.24), transparent 62%),
    radial-gradient(760px 400px at 4% 116%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero--split .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero--split h1 {
  max-width: 16ch;
  margin-bottom: 18px;
}

.hero--split p {
  max-width: 48ch;
  margin: 0 0 32px;
  opacity: 0.92;
}

/* Panneau de capacités : composition d'icônes, pas de fausse interface */
.cap-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}

.cap-panel__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cap-tile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.cap-tile:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.cap-tile i {
  font-size: 1.25rem;
  color: var(--secondary-on-dark);
}

.cap-tile strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.cap-tile span {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Navigation rapide en puces ---- */
.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--pill);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.pill-nav a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.pill-nav a i {
  font-size: 0.8rem;
  color: var(--secondary);
}

/* ---- En-tête de groupe (aligné à gauche, pas centré) ---- */
.group {
  padding: 88px 0;
}

.group--alt {
  background: var(--bg-alt);
}

.group-head {
  max-width: 660px;
  margin-bottom: 48px;
}

.group-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.group-head p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Lignes numérotées (famille 01) ---- */
.num-rows {
  border-top: 1px solid var(--border);
}

.num-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.num-row:hover {
  background: linear-gradient(90deg, var(--tint-blue), transparent 72%);
}

.num-row__index {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(0, 93, 165, 0.28);
}

.num-row h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.num-row h3 i {
  color: var(--secondary);
  font-size: 1.05rem;
}

.num-row p {
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 68ch;
  margin-bottom: 18px;
}

/* ---- Puces de détail ---- */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--tint-blue);
  border: 1px solid rgba(0, 93, 165, 0.14);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary-dark);
}

.chip i {
  font-size: 0.68rem;
  color: var(--secondary);
}

.chip--amber {
  background: var(--tint-amber);
  border-color: rgba(240, 136, 0, 0.22);
  color: var(--amber-ink);
}

/* ---- Bento asymétrique (famille 02) : 2x2 fractionnaire, sans trou ---- */
.bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.bento--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bento-cell {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.bento-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 93, 165, 0.35);
}

.bento-cell--lead {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--tint-blue) 0%, #fff 68%);
  padding: 40px 36px;
}

.bento-cell--tint {
  background: var(--tint-amber);
  border-color: rgba(240, 136, 0, 0.18);
}

.bento-cell--tint:hover {
  border-color: rgba(240, 136, 0, 0.45);
}

.bento-cell__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  background: var(--tint-blue);
  color: var(--primary);
}

.bento-cell--tint .bento-cell__icon {
  background: rgba(240, 136, 0, 0.14);
  color: var(--secondary-dark);
}

.bento-cell--lead .bento-cell__icon {
  background: var(--primary);
  color: #fff;
}

.bento-cell h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.bento-cell p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 62ch;
  margin-bottom: 18px;
}

.bento-cell--lead h3 {
  font-size: 1.5rem;
}

.bento-cell--lead p {
  font-size: 1rem;
}

/* ---- Duo 1+2 (famille 03) ---- */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.duo__lead {
  background: linear-gradient(150deg, var(--ink) 0%, #1b2a45 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.duo__lead .bento-cell__icon {
  background: rgba(240, 136, 0, 0.16);
  color: var(--secondary);
}

.duo__lead h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.duo__lead p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 52ch;
}

.duo__lead .chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.duo__side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.duo__side .bento-cell {
  padding: 28px 26px;
}

.duo__side .bento-cell h3 {
  font-size: 1.05rem;
}

/* ---- Étapes (frise horizontale) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid var(--border);
}

.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--secondary);
}

.step__num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-ink);
  display: block;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Bandeau d'appel final ---- */
.band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 72px 0;
}

.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
  line-height: 1.7;
}

/* ---- Rangées de familles (aperçu accueil) ---- */
.fam-list {
  border-top: 1px solid var(--border);
}

.fam-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.fam-row:hover {
  background: linear-gradient(90deg, var(--tint-blue), transparent 72%);
}

.fam-row__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--tint-blue);
  color: var(--primary);
}

.fam-row__icon--amber {
  background: var(--tint-amber);
  color: var(--secondary-dark);
}

.fam-row h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.fam-row p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 60ch;
}

.fam-row .chips {
  margin-top: 14px;
}

.fam-row__go {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: gap var(--transition), color var(--transition);
}

.fam-row:hover .fam-row__go {
  gap: 14px;
  color: var(--secondary-dark);
}

/* ---- Mouvement réduit ---- */
@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;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* ---- Repli mobile (couche additive) ---- */
@media (max-width: 900px) {
  .bento,
  .bento--3,
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-cell--lead {
    grid-column: span 1;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero--split .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero--split,
  .hero--tight {
    padding: 118px 0 64px;
  }

  .hero--split h1,
  .hero--tight h1 {
    max-width: none;
  }

  .hero--split p,
  .hero--tight p {
    max-width: none;
  }

  .group {
    padding: 64px 0;
  }

  .num-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 28px 0;
  }

  .num-row__index {
    font-size: 1.6rem;
  }

  .bento-cell,
  .bento-cell--lead,
  .duo__lead {
    padding: 26px 22px;
  }

  .bento-cell--lead h3,
  .duo__lead h3 {
    font-size: 1.2rem;
  }

  .cap-panel {
    padding: 18px;
  }

  .cap-grid {
    gap: 10px;
  }

  .cap-tile {
    padding: 14px 12px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .band {
    padding: 56px 0;
  }

  .fam-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
  }

  .fam-row__go {
    grid-column: 2;
  }

  .pill-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .pill-nav a {
    scroll-snap-align: start;
    white-space: nowrap;
  }
}
