/* ============================================
   PAGE ACCUEIL - Design Asymétrique Signature
   Compositions visuelles uniques et modernes
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-white-soft) 100%);
}

/* Élément décoratif background */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(0, 82, 165, 0.08) 0%,
    transparent 70%
  );
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 147, 51, 0.06) 0%,
    transparent 70%
  );
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.hero__content {
  max-width: 640px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-fire-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-orange);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--color-black);
}

.hero__title-highlight {
  background: var(--gradient-fire);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero__description {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--color-gray-700);
  margin-bottom: var(--space-8);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Image Hero avec effet offset */
.hero__image {
  position: relative;
  transform: translateY(-2%) rotate(-1deg);
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero__image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-fire);
  opacity: 0.08;
  z-index: 1;
}

.hero__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Statistiques flottantes */
.hero__stat-float {
  position: absolute;
  bottom: var(--space-1);
  left: var(--space-6);
  background: var(--color-white);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: var(--backdrop-blur-md);
  z-index: 2;
  transform: translateX(-50%) translateY(50%);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-top: var(--space-2);
}

/* ============================================
   SECTION SERVICES (Grille asymétrique)
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  margin-top: var(--space-9);
}

.services-grid .card--service:nth-child(1) {
  transform: translateY(-20px);
}

.services-grid .card--service:nth-child(3) {
  transform: translateY(-20px);
}

/* ============================================
   SECTION À PROPOS (Split layout inversé)
   ============================================ */

.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-11);
  align-items: center;
}

.about-split__image {
  position: relative;
}

.about-split__image-main {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-split__image-main img {
  width: 100%;
  height: auto;
  display: block;
}

/* Image secondaire décalée */
.about-split__image-secondary {
  position: absolute;
  bottom: -var(--space-7);
  right: -var(--space-7);
  width: 240px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 4px solid var(--color-white);
}

.about-split__image-secondary img {
  width: 100%;
  height: auto;
  display: block;
}

/* Accent décoratif */
.about-split__accent {
  position: absolute;
  top: -var(--space-5);
  left: -var(--space-5);
  width: 120px;
  height: 120px;
  background: var(--gradient-fire);
  opacity: 0.15;
  border-radius: var(--radius-full);
  z-index: -1;
}

/* ============================================
   SECTION CHIFFRES CLÉS
   ============================================ */

.stats-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0L0 30 30 60 60 30z' fill='%23fff' fill-opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  max-width: 100%;
  overflow: visible;
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
  min-width: 0;
}

.stat-item__value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(255,255,255,0.8) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: keep-all;
}

.stat-item__label {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.92);
  font-weight: var(--weight-medium);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ============================================
   SECTION PROCESSUS (Layout en Z)
   ============================================ */

.process-steps {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-top: var(--space-9);
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
  position: relative;
}

.process-step:nth-child(even) {
  direction: rtl;
}

.process-step:nth-child(even) > * {
  direction: ltr;
}

.process-step__number {
  counter-increment: step-counter;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: var(--weight-extrabold);
  line-height: 1;
  background: var(--gradient-fire-subtle);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
  position: absolute;
  top: -2rem;
  left: -1rem;
  z-index: -1;
}

.process-step__number::before {
  content: "0" counter(step-counter);
}

.process-step__content {
  position: relative;
}

.process-step__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-fire);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-glow-fire);
}

.process-step__icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-white);
}

/* ============================================
   SECTION CTA FINALE
   ============================================ */

.cta-section {
  background: var(--gradient-fire);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  margin: var(--space-13) auto;
  max-width: var(--container-xl);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: var(--radius-full);
}

.cta-section__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-12) var(--space-8);
}

.cta-section__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
  color: var(--color-white);
}

.cta-section__description {
  font-size: var(--text-lg);
  max-width: 64ch;
  margin: 0 auto var(--space-8);
  color: rgba(255, 255, 255, 0.95);
}

.cta-section__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero__image {
    transform: none;
  }

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

  .services-grid .card--service:nth-child(1),
  .services-grid .card--service:nth-child(3) {
    transform: none;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: var(--space-9);
  }

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

  .process-step {
    grid-template-columns: 1fr;
  }

  .process-step:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .hero__inner {
    padding: var(--space-9) 0;
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero__content {
    order: 1;
  }

  .hero__image {
    order: 2;
    transform: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero__image-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero__image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .hero__stat-float {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: var(--space-4) auto 0;
    display: table;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .about-split__image-secondary {
    width: 180px;
    bottom: -var(--space-5);
    right: -var(--space-5);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: 0;
    width: 100%;
  }

  .stat-item {
    padding: var(--space-4) var(--space-2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .stat-item__value {
    font-size: var(--text-3xl);
    white-space: nowrap;
  }

  .stat-item__label {
    font-size: var(--text-sm);
    max-width: 100%;
  }

  .process-step__number {
    font-size: 5rem;
  }

  .cta-section__inner {
    padding: var(--space-9) var(--space-6);
  }

  .cta-section__title {
    font-size: var(--text-3xl);
  }

  .cta-section__actions {
    flex-direction: column;
  }

  .cta-section__actions .btn {
    width: 100%;
  }
}
