:root {
  --ink: #09070d;
  --night: #12081f;
  --purple: #5b2cff;
  --purple-deep: #2b0d4f;
  --purple-soft: #f3efff;
  --white: #ffffff;
  --muted: #6e6878;
  --line: rgba(18, 8, 31, 0.14);
  --glass: rgba(255, 255, 255, 0.08);
  --radius: 8px;
  --shadow: 0 24px 80px rgba(18, 8, 31, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 7, 13, 0.88);
  backdrop-filter: blur(18px);
  color: var(--white);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
}

.nav-item {
  position: relative;
  padding: 25px 0;
}

.dropdown {
  position: absolute;
  top: 68px;
  left: -20px;
  display: grid;
  min-width: 280px;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #160d22;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 180ms ease;
  box-shadow: var(--shadow);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 720;
  transition: 180ms ease;
}

.button.primary {
  background: var(--white);
  color: var(--ink);
}

.button.dark {
  background: var(--ink);
  color: var(--white);
}

.button.purple {
  background: var(--purple);
  color: var(--white);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(91, 44, 255, 0.42), transparent 30%),
    linear-gradient(135deg, #09070d 0%, #180b28 54%, #2b0d4f 100%);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #cbbcff;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.7rem, 3vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  text-align: justify;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions, .section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.mockup {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.mockup-panel {
  min-height: 170px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 78% 22%, rgba(91, 44, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(243, 239, 255, 0.88));
  color: var(--ink);
  padding: 22px;
}

.mockup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mini-card {
  min-height: 128px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section {
  padding: 90px 0;
}

.section.alt {
  background: #f8f6fb;
}

.section.dark {
  background: var(--night);
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 42px;
}

.section-head p, .muted {
  color: var(--muted);
}

.dark .section-head p, .dark .muted {
  color: rgba(255, 255, 255, 0.7);
}

/* --- BLOC LOGOS (RÉFÉRENCES) --- */

.logo-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem 0;
  background: transparent !important;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4.5rem;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.55;
}

.logo-link:hover {
  transform: scale(1.06);
  filter: grayscale(0%);
  opacity: 1;
}

.logo-link img {
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 65px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-row {
    gap: 2.5rem;
  }
  .logo-link img {
    max-height: 45px;
    max-width: 140px;
  }
}

/* --- FIN BLOC LOGOS --- */

.grid {
  display: grid;
  gap: 20px;
}

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

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.grid.five {
  grid-template-columns: repeat(5, 1fr);
}

/* --- ALIGNEMENT ET HOVER DES CARTES SERVICES --- */

/* 1. On transforme la carte en conteneur Flex vertical */
.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  /* Optionnel : transition douce si vous voulez un effet sur toute la carte */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet optionnel au survol de la carte elle-même pour un rendu premium */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(18, 8, 31, 0.06);
}

/* 2. On pousse le CTA tout en bas et on ajoute l'effet hover */
.card-link {
  display: inline-block;
  margin-top: auto; /* Pousse magiquement le lien tout en bas de la carte */
  color: var(--purple);
  font-weight: 760;
  width: max-content; /* Évite que le lien prenne toute la largeur pour le hover */
  
  /* Transition pour l'effet au survol */
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Effet au survol du lien (il se décale légèrement vers la droite) */
.card-link:hover {
  color: var(--purple-deep); /* Change légèrement de couleur selon votre charte */
  transform: translateX(5px); /* Petit effet de glissement vers la droite très moderne */
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.project-image {
  display: grid;
  min-height: 230px;
  place-items: end start;
  padding: 20px;
  background:
    radial-gradient(circle at 80% 18%, rgba(91, 44, 255, 0.38), transparent 32%),
    linear-gradient(135deg, #14091f, #f1ecff);
  color: var(--white);
}

.project-image span {
  border-radius: 999px;
  background: rgba(9, 7, 13, 0.72);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 740;
}

.project-body {
  padding: 24px;
  color:#000;
}

.project-meta {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- HOVER AVEC LOGO CLIENT CENTRÉ --- */

.project-image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 250px;
  background: #14091f;
}

/* L'image du mockup en fond */
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}

/* Le voile qui s'active au survol */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 7, 13, 0.4); /* Léger voile noir par défaut pour lier le logo au fond */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

/* Le logo du client au centre */
.project-client-logo {
  max-width: 140px; /* Largeur maximale pour ne pas étouffer le mockup */
  max-height: 55px; /* Hauteur maximale pour harmoniser les logos */
  width: auto;
  height: auto;
  object-fit: contain;
  
  /* Look initial : semi-transparent et net */
  opacity: 0.85;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25)); /* Donne du relief au logo sur l'image */
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

/* --- INTERACTIONS AU SURVOL (HOVER) --- */

/* 1. L'image de fond zoom très légèrement */
.portfolio-card:hover .portfolio-img {
  transform: scale(1.04);
}

/* 2. Le voile s'assombrit pour faire ressortir le logo */
.portfolio-card:hover .project-overlay {
  background-color: rgba(9, 7, 13, 0.65);
}

/* 3. Le logo du client réagit (léger scale up + opacité max) */
.portfolio-card:hover .project-client-logo {
  transform: scale(1.08);
  opacity: 1;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  color: #000;
  padding-left: 58px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--purple);
  font-weight: 820;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 46px;
  align-items: start;
}

.list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  text-align: left;
}

.faq-panel {
  display: none;
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-item.is-open .faq-panel {
  display: block;
}

.cta-band {
  padding: 58px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 12%, rgba(91, 44, 255, 0.48), transparent 34%),
    linear-gradient(135deg, #09070d, #2b0d4f);
  color: var(--white);
}

/* --- DESIGN FOOTER V2 --- */

.footer {
  padding: 80px 0 40px;
  background: #07050a;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}

.footer-brand {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-brand:hover {
  transform: scale(1.03);
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-tagline {
  max-width: 460px;
  margin: 20px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 50px 0;
  text-align: center;
}

.footer-col-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-v2 h3 {
  font-size: 0.85rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbbcff;
  margin-bottom: 8px;
}

.footer-col-v2 a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
  align-self: center;
}

.footer-col-v2 a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.whatsapp-link {
  color: #25D366 !important;
  font-weight: 600;
}

.whatsapp-link:hover {
  opacity: 0.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .copyright {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-meta {
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 30px;
  }
  
  .footer-header {
    margin-bottom: 40px;
  }

  .footer-grid-v2 {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 40px 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- FIN DESIGN FOOTER V2 --- */

.page-hero {
  padding: 86px 0;
  background: linear-gradient(135deg, #09070d, #2b0d4f);
  color: var(--white);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
}

.filter-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #332b3d;
  font-weight: 720;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus,
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(91, 44, 255, 0.32);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 76px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 16px 24px;
    background: #09070d;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-item {
    padding: 12px 0;
  }

  .dropdown {
    position: static;
    display: grid;
    min-width: 0;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .hero-grid, .section-head, .split {
    grid-template-columns: 1fr;
  }

  .grid.three, .grid.four, .grid.five {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero, .page-hero, .section {
    padding: 64px 0;
  }

  .grid.three, .grid.four, .grid.five, .form-grid, .mockup-row, .footer-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .cta-band {
    padding: 34px 22px;
  }
}
/* --- ALIGNEMENT STRICT DES CARTES ET DES CTA DISCOVER --- */

/* La grille doit forcer toutes les cartes d'une même ligne à avoir la même hauteur */
.grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch; /* Force l'égalisation de la hauteur des cartes sur une même ligne */
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* Permet à la carte d'occuper toute la hauteur de sa ligne de grille */
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

/* Zone textuelle : C'est elle qui pousse le bouton en bas */
.project-body p {
    margin: 20px 0 10px 0;
    color: var(--muted);
    flex-grow: 1;
}

/* Le paragraphe de description */
.project-body p {
  margin: 10px 0 10px 0;
  color: var(--muted);
  flex-grow: 1; /* Pousse tout ce qui se trouve en dessous (le bouton) vers le bas */
}

/* Alignement et justification du bouton tout en bas */
.project-body .card-link {
  display: inline-block;
  margin-top: auto; /* Sécurité ultime pour forcer le bouton au ras du bas de la carte */
  color: var(--purple);
  font-weight: 760;
  width: max-content;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Effet au survol du lien */
.project-body .card-link:hover {
  color: var(--purple-deep);
  transform: translateX(6px); /* Glissement fluide de 6px vers la droite */
}

/* --- ADAPTATION RESPONSIVE POUR LE PORTFOLIO (1 SEULE COLONNE) --- */

@media (max-width: 920px) {
  /* ... vos autres styles de navigation (nav-toggle, nav-links...) ... */

  /* CORRECTION DE LA GRILLE : On passe à 1 seule colonne au lieu de 2 */
  .grid.three, 
  .grid.four, 
  .grid.five {
    grid-template-columns: 1fr; /* Force 1 seule réalisation par ligne */
    gap: 30px; /* On augmente un peu l'espace pour que ça respire entre les blocs */
  }

  /* On ajuste la hauteur du mockup pour qu'il soit bien proportionné sur mobile */
  .project-image-container {
    height: 220px; 
  }
}

.method-section {
  background: var(--white);
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 20px 0;
}

/* La ligne verticale centrale */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
  z-index: 1;
  transition: background 0.4s ease;
}

/* Structure de chaque bloc d'étape */
.timeline-item {
  position: relative;
  width: 50%; /* Occupe la moitié de l'espace */
  padding: 20px 40px;
  box-sizing: border-box;
  z-index: 2;
}

/* Aligne une étape sur deux à droite */
.timeline-item:nth-child(even) {
  left: 50%;
}

/* Les points lumineux sur la ligne */
.timeline-dot {
  position: absolute;
  top: 40px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--muted);
  z-index: 3;
  transition: all 0.3s ease;
}

/* Positionnement des points selon le côté */
.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

/* Style des cartes textuelles */
.timeline-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(18, 8, 31, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
}

/* Les numéros géants et discrets (01, 02...) */
.step-number {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2.5rem;
  font-weight: 850;
  color: rgba(91, 44, 255, 0.08); /* Violet très transparent */
  line-height: 1;
  font-feature-settings: "tnum";
}

.timeline-card h3 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- ANIMATIONS & INTERACTIONS (HOVER) --- */

/* Au survol d'une étape, la ligne centrale s'illumine subtilement */
.timeline:has(.timeline-item:hover) .timeline-line {
  background: linear-gradient(to bottom, var(--line), var(--purple), var(--line));
}

/* Le point prend votre couleur violette emblématique */
.timeline-item:hover .timeline-dot {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 0 5px rgba(91, 44, 255, 0.2);
  transform: scale(1.1);
}

/* La carte se soulève et s'illumine */
.timeline-item:hover .timeline-card {
  transform: translateY(-5px);
  border-color: rgba(91, 44, 255, 0.25);
  box-shadow: 0 20px 40px rgba(18, 8, 31, 0.08);
}

/* Le numéro passe en violet plus prononcé */
.timeline-item:hover .step-number {
  color: rgba(91, 44, 255, 0.16);
}

/* --- RESPONSIVE MOBILE & TABLETTE --- */

@media (max-width: 768px) {
  /* On décale la ligne sur le bord gauche */
  .timeline-line {
    left: 20px;
  }

  /* Toutes les cartes prennent la largeur complète */
  .timeline-item {
    width: 100%;
    padding: 15px 10px 15px 45px;
  }

  /* On annule le décalage pour les étapes paires */
  .timeline-item:nth-child(even) {
    left: 0;
  }

  /* Tous les points s'alignent à gauche sur la ligne */
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
    top: 35px;
  }
  
  .step-number {
    font-size: 2rem;
  }
}

/* --- ANIMATION DES 3 BLOCS DU HERO (MOCKUP) --- */

/* Alignement et dimensionnement des conteneurs du mockup */
.mockup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Style commun au repos pour les 3 blocs (Sombre et Épuré) */
.hero-interactive-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px;
  padding: 24px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  cursor: pointer;
  
  /* Transitions fluides pour le fond et les dimensions */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* Ajustement de la hauteur du grand bloc du haut pour respirer */
.mockup-panel.hero-interactive-card {
  min-height: 180px;
}

/* Forcer les textes en blanc/gris au repos sur fond sombre */
.hero-interactive-card .eyebrow {
  color: rgba(255, 255, 255, 0.4) !important;
  margin-bottom: 8px;
  font-size: 0.7rem;
}

.hero-interactive-card h3 {
  color: var(--white) !important;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
}

/* Le texte de description caché par défaut (opacité 0 et hauteur 0) */
.hero-interactive-card .mockup-desc {
  margin: 0;
  padding-top: 0;
  font-size: 0.85rem;
  color: rgba(9, 7, 13, 0.7); /* Texte sombre car le fond devient clair au hover */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

/* --- EFFET AU SURVOL (HOVER) SUR CHAQUE BLOC --- */

.hero-interactive-card:hover {
  /* Fond dégradé clair haut de gamme (l'ancien style de Brand Ecosystem) */
  background: 
    radial-gradient(circle at 78% 22%, rgba(91, 44, 255, 0.15), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 239, 255, 0.92)) !important;
    
  border-color: var(--white) !important;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(91, 44, 255, 0.12);
}

/* Changement de couleur des textes au survol du bloc */
.hero-interactive-card:hover .eyebrow {
  color: var(--purple) !important; /* L'eyebrow passe en violet */
}

.hero-interactive-card:hover h3 {
  color: var(--ink) !important; /* Le titre passe en noir d'encre pour le contraste */
  margin-bottom: 10px;
}

/* Révélation fluide de la description correspondante */
.hero-interactive-card:hover .mockup-desc {
  opacity: 1;
  max-height: 100px; /* Permet le déploiement fluide vers le bas */
  padding-top: 5px;
}

/* Responsive : On empile les deux petits blocs du bas sur mobile */
@media (max-width: 640px) {
  .mockup-row {
    grid-template-columns: 1fr;
  }
}

/* --- SECTION SECTEURS D'ACTIVITÉ (ABOUT) --- */

.section-sectors {
  background: var(--bg-alt); /* Teinte claire ou foncée selon votre section alt */
}

.text-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur desktop */
  gap: 24px;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.sector-icon {
  font-size: 1.2rem;
  color: var(--purple);
  font-weight: bold;
}

.sector-card h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0;
}

.sector-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* Alignement des badges de secteurs */
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sector-tags span {
  background: rgba(91, 44, 255, 0.05); /* Violet très transparent */
  color: var(--purple);
  border: 1px solid rgba(91, 44, 255, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

/* --- EFFETS DE SURVOL (HOVER) --- */

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(18, 8, 31, 0.04);
  border-color: rgba(91, 44, 255, 0.15);
}

.sector-card:hover .sector-tags span {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* --- RESPONSIVE TABLETTE & MOBILE --- */

@media (max-width: 768px) {
  .sectors-grid {
    grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    gap: 16px;
  }
  
  .sector-card {
    padding: 25px;
  }
}

/* --- ALIGNEMENT HAUT BLOC VISION --- */

/* Force les deux colonnes à s'aligner rigoureusement par le haut */
.container.split.vertical-start {
  display: flex;
  align-items: flex-start; /* Aligne le haut du texte avec le haut du titre/eyebrow */
  gap: 60px; /* Espace équilibré entre le titre et le texte descriptif */
}

/* Répartition des largeurs sur ordinateur */
.container.split.vertical-start > div:first-child {
  flex: 1;
  max-width: 55%;
}

.container.split.vertical-start .vision-text {
  flex: 1;
  max-width: 45%;
  /* Optionnel : supprime la marge haute du tout premier paragraphe pour un alignement au pixel près */
  padding-top: 28px; /* Ajustement visuel pour s'aligner sur la baseline du gros titre */
}

.container.split.vertical-start .vision-text p:first-child {
  margin-top: 0;
}

/* Responsive mobile et tablette */
@media (max-width: 820px) {
  .container.split.vertical-start {
    flex-direction: column;
    gap: 24px;
  }
  
  .container.split.vertical-start > div:first-child,
  .container.split.vertical-start .vision-text {
    max-width: 100%;
  }
  
  .container.split.vertical-start .vision-text {
    padding-top: 0;
  }
}

/* --- ALIGNEMENT PARFAIT DU BLOC VISION UNIQUEMENT --- */

.container.vision-split {
  display: flex;
  align-items: flex-start; /* Aligne rigoureusement le haut du titre et du texte */
  gap: 60px;
}

.container.vision-split > div:first-child {
  flex: 1;
  max-width: 55%;
}

.container.vision-split .vision-text {
  flex: 1;
  max-width: 45%;
  text-align: justify;
  padding-top: 26px; /* Ajustement précis sur la ligne du gros titre */
}

.container.vision-split .vision-text p:first-child {
  margin-top: 0;
}

/* Version mobile et tablette */
@media (max-width: 820px) {
  .container.vision-split {
    flex-direction: column;
    gap: 24px;
  }
  
  .container.vision-split > div:first-child,
  .container.vision-split .vision-text {
    max-width: 100%;
  }
  
  .container.vision-split .vision-text {
    padding-top: 0;
  }
}

/* --- BOUTON CTA RELATED WORK --- */
.services-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 45px; /* Espace équilibré sous les 3 cartes */
}

/* Si tu veux qu'il se soulève légèrement au survol comme tes autres boutons */
.services-cta-wrapper .button.ghost {
  transition: transform 0.3s ease, background 0.3s ease;
}

.services-cta-wrapper .button.ghost:hover {
  transform: translateY(-2px);
}

/* --- ANIMATION DES ICÔNES DE LA SECTION DIFFERENCE --- */

/* --- AJUSTEMENT DESPACEMENT DE LA SECTION DIFFERENCE --- */

.difference-card {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;  
  gap: 12px; /* Réduit légèrement l'espace entre l'icône, le titre et le texte */
  padding: 30px 24px; /* Un padding vertical de 30px constant pour éviter le vide en bas */
  height: auto; /* Force la carte à s'adapter au contenu plutôt que de s'étirer à l'infini */
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Supprime la marge par défaut du paragraphe pour éviter le vide sous la carte */
.difference-card p {
  margin-bottom: 0; 
  font-size: 0.95rem;
  line-height: 1.5;
}

.difference-card h3 {
  margin-top: 4px;
  margin-bottom: 4px;
}

/* Modificateur d'animation pour la flèche (Card 3) pour qu'elle s'élance vers le haut tout en restant équilibrée au centre */
.difference-card:nth-child(3):hover .card-icon-container svg {
  transform: translate(2px, -2px) scale(1.05);
}

/* Le conteneur de l'icône */
.card-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(91, 44, 255, 0.06); /* Fond violet très subtil */
  border-radius: 8px;
  color: var(--purple); /* Couleur principale violette */
  transition: background 0.3s ease, color 0.3s ease;
}

.card-icon-container svg {
  width: 22px;
  height: 22px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- EFFETS HOVER --- */

.difference-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 44, 255, 0.15);
  box-shadow: 0 15px 30px rgba(91, 44, 255, 0.03);
}

/* Changement de couleur du fond de l'icône au survol */
.difference-card:hover .card-icon-container {
  background: var(--purple);
  color: var(--white);
}

/* Animation propre à chaque icône lors du survol de sa carte */
.difference-card:nth-child(1):hover .card-icon-container svg {
  transform: rotate(15deg) scale(1.1); /* Légère bascule pour le cerveau */
}

.difference-card:nth-child(2):hover .card-icon-container svg {
  transform: scale(1.15); /* Effet d'impulsion pour les touchpoints */
}

.difference-card:nth-child(3):hover .card-icon-container svg {
  transform: translate(3px, -3px) scale(1.05); /* La flèche s'élance vers le haut à droite */
}

/* --- STYLISATION DES CHIFFRES DE LA SECTION METHOD --- */

/* On isole le conteneur de la carte pour gérer le positionnement des chiffres */
.card.dark-card.step {
  position: relative;
  overflow: hidden;
  padding-top: 40px; /* Ajoute un peu d'espace en haut pour laisser respirer le gros chiffre */
}

/* Ciblage et design du chiffre au repos */
.card.dark-card.step::before, 
.card.dark-card.step .step-number,
.card.dark-card.step h3::before {
  /* Note : remplacez par le sélecteur exact si vous utilisez une balise span.step-number */
  font-size: 2.2rem; /* Augmente significativement la taille */
  font-weight: 800;  /* Rend le chiffre très épais/impactant */
  color: #5b2cff !important; /* Force votre violet de charte */
  opacity: 1 !important; /* Opacité maximale (100% opaque) */
  display: inline-block;
  margin-bottom: 12px;
  
  /* Transition ultra fluide pour l'effet d'agrandissement au survol */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- EFFET AU SURVOL (HOVER) --- */

/* Quand l'utilisateur survole la CARTE, le CHIFFRE s'agrandit */
.card.dark-card.step:hover::before,
.card.dark-card.step:hover .step-number {
  transform: scale(1.2); /* Grandit de 25% proprement */
  color: #7b52ff !important; /* Optionnel : léger coup de boost lumineux sur le violet au survol */
}

/* --- SECTION DELIVERABLES PREMIUM AVEC FOND EN DÉGRADÉ --- */

.section-deliverables {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

/* Grille asymétrique moderne */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Carte de base avec dégradé similaire au Hero de l'accueil */
.deliverable-card {
  position: relative;
  /* Dégradé de fond au repos : du noir de jais vers un violet très profond et sombre */
  background: linear-gradient(135deg, #0d0814 0%, #160d29 100%);
  
  /* Bordure subtile et lumineuse pour détacher la carte du fond */
  border: 1px solid rgba(91, 44, 255, 0.15);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Carte 5 en pleine largeur */
.deliverable-card.full-width {
  grid-column: span 2;
}

/* Ajustement des textes au repos (Blanc & Muted pour ressortir sur le dégradé sombre) */
.deliverable-card h3 {
  font-size: 1.35rem;
  margin: 0 0 10px 0;
  color: #ffffff; /* Texte blanc natif */
  transition: color 0.3s ease;
}

.deliverable-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #b3a7cc; /* Teinte claire mais douce pour la lisibilité */
  margin: 0;
  max-width: 90%;
  transition: color 0.3s ease;
}

/* Chiffres géants adaptés au fond sombre */
.card-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.4s ease;
  z-index: 2;
}

.card-content {
  flex-grow: 1;
  z-index: 2;
}

/* Flèche */
.card-arrow {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.4);
  transform: translateX(-5px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

/* Halo lumineux néon au survol (Glow) */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dégradé d'action plus intense et lumineux quand on survole */
  background: linear-gradient(135deg, #5b2cff 0%, #7b52ff 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* --- MICRO-INTERACTIONS AU SURVOL (HOVER) --- */

.deliverable-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(91, 44, 255, 0.25);
  border-color: #7b52ff;
}

/* Activation du fond coloré au survol */
.deliverable-card:hover .card-glow {
  opacity: 1;
}

.deliverable-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Le numéro s'illumine en blanc pur */
.deliverable-card:hover .card-num {
  background: #ffffff;
  color: #5b2cff;
  transform: scale(1.05);
}

/* La flèche apparaît */
.deliverable-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #ffffff;
}

/* --- ANIMATION D'AFFICHAGE EN CASCADE --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.deliverable-card {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.deliverable-card:nth-child(1) { animation-delay: 0.1s; }
.deliverable-card:nth-child(2) { animation-delay: 0.2s; }
.deliverable-card:nth-child(3) { animation-delay: 0.3s; }
.deliverable-card:nth-child(4) { animation-delay: 0.4s; }
.deliverable-card:nth-child(5) { animation-delay: 0.5s; }

/* RESPONSIVE */
@media (max-width: 868px) {
  .deliverables-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .deliverable-card.full-width {
    grid-column: span 1;
  }
  .deliverable-card {
    padding: 30px;
    gap: 16px;
  }
  .card-arrow {
    display: none;
  }
}