/* ============================================================
   AMBIZ — Home Hero
   Première section de la page d'accueil.
   Layout 2 colonnes desktop (contenu + visuel décoratif),
   1 colonne mobile. Fond navy avec dégradé subtil.
   ============================================================ */


/* ════════════════════════════════════════════════════════════
   1. SECTION CONTAINER
   ════════════════════════════════════════════════════════════ */

.ambiz-hero {
  position: relative;
  background: var(--ambiz-navy);
  color: var(--ambiz-text-inverse);
  overflow: hidden;
  isolation: isolate;
}

.ambiz-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top right, rgba(200, 16, 46, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(74, 138, 184, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--ambiz-navy) 0%, var(--ambiz-navy-dark) 100%);
}

.ambiz-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  min-height: clamp(520px, 75vh, 720px);
}


/* ════════════════════════════════════════════════════════════
   2. CONTENT (gauche)
   ════════════════════════════════════════════════════════════ */

.ambiz-hero__content {
  max-width: 640px;
}

.ambiz-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5.5vw, var(--text-6xl));
  font-weight: var(--font-black);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--ambiz-text-inverse);
  margin: var(--space-sm) 0 var(--space-md);
}

.ambiz-hero__title em {
  font-style: italic;
  color: var(--ambiz-red-light);
  font-weight: var(--font-bold);
  display: inline-block;
  position: relative;
}

.ambiz-hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 6px;
  background: var(--ambiz-red);
  opacity: 0.55;
  border-radius: 2px;
}

.ambiz-hero__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 var(--space-lg);
  max-width: 560px;
}


/* ════════════════════════════════════════════════════════════
   3. ACTIONS (CTAs)
   ════════════════════════════════════════════════════════════ */

.ambiz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.ambiz-hero .ambiz-btn--primary {
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35);
}

.ambiz-hero .ambiz-btn--primary .ambiz-btn__icon {
  transition: transform var(--duration-base) var(--ease-out);
}

.ambiz-hero .ambiz-btn--primary:hover .ambiz-btn__icon {
  transform: translateX(3px);
}


/* ════════════════════════════════════════════════════════════
   4. TRUST BAR (chiffres clés)
   ════════════════════════════════════════════════════════════ */

.ambiz-hero__trust {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  padding: var(--space-md) 0 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ambiz-hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  list-style: none;
}

.ambiz-hero__trust-item::marker {
  content: none;
}

.ambiz-hero__trust-value {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--ambiz-text-inverse);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.ambiz-hero__trust-value sup {
  color: var(--ambiz-red-light);
  font-size: 0.6em;
  margin-left: 2px;
}

.ambiz-hero__trust-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}


/* ════════════════════════════════════════════════════════════
   5. VISUAL (droite — décor géométrique placeholder)
   ════════════════════════════════════════════════════════════ */

.ambiz-hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  width: 100%;
  margin-left: auto;
}

.ambiz-hero__shape {
  position: absolute;
  border-radius: var(--radius-full);
}

.ambiz-hero__shape--outline {
  width: 80%;
  height: 80%;
  bottom: 4%;
  left: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
}

.ambiz-hero__shape--dot {
  width: 14px;
  height: 14px;
  top: 22%;
  left: 18%;
  background: var(--ambiz-red-light);
  box-shadow: 0 0 0 6px rgba(255, 107, 122, 0.18);
  z-index: 2;
}


/* ════════════════════════════════════════════════════════════
   5.b. PHOTO FRAME (cercle photo qui remplace l'ancien shape--red)
   ════════════════════════════════════════════════════════════ */

.ambiz-hero__photo-frame {
  position: absolute;
  top: 8%;
  right: 0;
  width: 65%;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  overflow: hidden;
  /* fallback rouge si l'image met du temps à charger */
  background: radial-gradient(circle at 30% 30%, var(--ambiz-red) 0%, var(--ambiz-red-dark) 100%);
  box-shadow: 0 24px 60px rgba(200, 16, 46, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.ambiz-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Overlay rouge très léger pour cohérence avec la palette de marque */
.ambiz-hero__photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.16) 0%, transparent 45%),
    linear-gradient(225deg, rgba(27, 42, 78, 0.20) 0%, transparent 50%);
  pointer-events: none;
}


/* ════════════════════════════════════════════════════════════
   5.c. BADGE FLOTTANT (chiffre clé en superposition)
   "30+ ans d'expertise" — ancrage marketing fort
   ════════════════════════════════════════════════════════════ */

.ambiz-hero__badge {
  position: absolute;
  bottom: 12%;
  left: -2%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--ambiz-bg);
  color: var(--ambiz-navy);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 130px;
  text-align: center;
}

.ambiz-hero__badge-value {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--font-black);
  line-height: 1;
  color: var(--ambiz-red);
  letter-spacing: var(--tracking-tight);
}

.ambiz-hero__badge-value sup {
  font-size: 0.6em;
  margin-left: 2px;
}

.ambiz-hero__badge-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--ambiz-text-muted);
  white-space: nowrap;
}


/* ════════════════════════════════════════════════════════════
   6. RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* Tablet : le visuel se réduit fortement */
@media (max-width: 1023px) {
  .ambiz-hero__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-lg);
    min-height: clamp(480px, 65vh, 640px);
  }
  .ambiz-hero__visual {
    max-width: 340px;
  }
  .ambiz-hero__badge {
    padding: var(--space-2xs) var(--space-sm);
    min-width: 110px;
  }
  .ambiz-hero__badge-value {
    font-size: var(--text-2xl);
  }
  .ambiz-hero__badge-label {
    font-size: 10px;
  }
}

/* Mobile : single column, visuel masqué (décoratif) */
@media (max-width: 768px) {
  .ambiz-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    min-height: 0;
  }
  .ambiz-hero__visual {
    display: none;
  }
  .ambiz-hero__title {
    font-size: clamp(var(--text-2xl), 9vw, var(--text-4xl));
  }
  .ambiz-hero__subtitle {
    font-size: var(--text-base);
  }
  .ambiz-hero__actions .ambiz-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .ambiz-hero__trust {
    gap: var(--space-md);
    flex-wrap: wrap;
  }
  .ambiz-hero__trust-item {
    flex: 1 1 calc(50% - var(--space-md));
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .ambiz-hero__trust {
    gap: var(--space-sm);
  }
  .ambiz-hero__trust-value {
    font-size: var(--text-xl);
  }
}


/* ════════════════════════════════════════════════════════════
   7. PRÉFÉRENCES UTILISATEUR
   ════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .ambiz-hero .ambiz-btn--primary .ambiz-btn__icon,
  .ambiz-hero .ambiz-btn--primary:hover .ambiz-btn__icon {
    transition: none;
    transform: none;
  }
}


/* ════════════════════════════════════════════════════════════
   8. RTL — préparation pour la langue arabe (Polylang)
   ════════════════════════════════════════════════════════════ */

[dir="rtl"] .ambiz-hero__visual {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .ambiz-hero__photo-frame {
  right: auto;
  left: 0;
}

[dir="rtl"] .ambiz-hero__shape--outline {
  left: auto;
  right: 0;
}

[dir="rtl"] .ambiz-hero__shape--dot {
  left: auto;
  right: 18%;
}

[dir="rtl"] .ambiz-hero__badge {
  left: auto;
  right: -2%;
}

/* L'icône flèche du CTA doit pointer dans le sens de lecture */
[dir="rtl"] .ambiz-hero .ambiz-btn--primary .ambiz-btn__icon {
  transform: scaleX(-1);
}

[dir="rtl"] .ambiz-hero .ambiz-btn--primary:hover .ambiz-btn__icon {
  transform: scaleX(-1) translateX(3px);
}

/* L'underline rouge sous l'<em> reste sur toute la largeur (left/right: 0 OK) */
