/* ============================================
   ZONES DE TEXTE ÉDITORIALES PREMIUM V2
   Design 2025 - Glassmorphism & Micro-interactions
   Inspiration Apple/Tesla - Ultra-clean & Modern
   ============================================ */

.editorial-zone {
  padding: 40px 20px 80px 20px;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

@media (min-width: 768px) {
  .editorial-zone {
    padding: 30px 30px 80px 20px;
  }
}

/* Background subtil avec grain */
.editorial-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.editorial-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================
   CARTE GLASSMORPHISM PREMIUM
   ============================================ */

.editorial-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 32px;
  padding: 28px 64px;

  /* Border subtil avec gradient */
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(0, 0, 0, 0.02);

  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: default;
}

/* Effet 3D subtil au hover */
.editorial-card:hover {
  transform: translateY(-8px) translateZ(20px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border-color: rgba(212, 175, 55, 0.2);
}

/* Glow doré subtil au hover */
.editorial-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 50%,
    rgba(212, 175, 55, 0.1) 100%
  );
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  filter: blur(20px);
}

.editorial-card:hover::before {
  opacity: 1;
}

@media (min-width: 768px) {
  .editorial-card {
    padding: 56px 64px;
  }
}

/* ============================================
   LIGNE DÉCORATIVE MODERNE
   ============================================ */

.editorial-accent {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, #d4af37 0%, #e8c968 100%);
  border-radius: 2px;
  margin: 0 auto 32px;
  position: relative;
  overflow: hidden;
}

.editorial-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 200%;
  }
}

/* ============================================
   TYPOGRAPHIE MODERNE
   ============================================ */

.editorial-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin-bottom: 24px;
  text-align: center;
  position: relative;

  /* Text gradient subtil */
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  transition: all 0.4s ease;
}

.editorial-card:hover .editorial-title {
  letter-spacing: -0.01em;
}

/* ============================================
   CONTENU TEXTUEL OPTIMISÉ
   ============================================ */

.editorial-content {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 400;
  letter-spacing: -0.011em;
}

.editorial-content p {
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.editorial-content p:last-child {
  margin-bottom: 0;
}

/* Effet subtil au hover des paragraphes */
.editorial-card:hover .editorial-content p {
  color: rgba(0, 0, 0, 0.8);
}

/* Mise en valeur moderne des mots-clés */
.editorial-content strong {
  color: #0a0a0a;
  font-weight: 600;
  position: relative;
  padding-bottom: 1px;
}

.editorial-content strong::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #d4af37, #e8c968);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.editorial-card:hover .editorial-content strong::after {
  width: 100%;
}

.editorial-content em {
  color: #d4af37;
  font-style: normal;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.editorial-card:hover .editorial-content em {
  color: #b8941f;
}

/* ============================================
   ANIMATIONS D'ENTRÉE FLUIDES
   ============================================ */

.editorial-zone {
  opacity: 0;
  transform: translateY(40px);
  animation: editorialFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.editorial-zone:nth-of-type(1) {
  animation-delay: 0.1s;
}

.editorial-zone:nth-of-type(2) {
  animation-delay: 0.2s;
}

.editorial-zone:nth-of-type(3) {
  animation-delay: 0.3s;
}

@keyframes editorialFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE ULTRA-SOIGNÉ
   ============================================ */

@media (max-width: 768px) {
  .editorial-zone {
    padding: 60px 20px;
  }

  .editorial-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .editorial-accent {
    margin-bottom: 24px;
  }

  .editorial-title {
    margin-bottom: 20px;
  }

  .editorial-content {
    line-height: 1.7;
  }

  .editorial-content p {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .editorial-zone {
    padding: 48px 16px;
  }

  .editorial-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .editorial-accent {
    width: 50px;
    height: 2px;
    margin-bottom: 20px;
  }

  .editorial-content {
    font-size: 0.9375rem;
    line-height: 1.65;
  }
}

@media (max-width: 375px) {
  .editorial-zone {
    padding: 40px 12px;
  }

  .editorial-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

/* ============================================
   MODE SOMBRE (BONUS)
   ============================================ */

@media (prefers-color-scheme: dark) {
  .editorial-card {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 1px 0 rgba(255, 255, 255, 0.05) inset;
  }

  .editorial-card:hover {
    box-shadow:
      0 24px 64px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(212, 175, 55, 0.2),
      0 1px 0 rgba(255, 255, 255, 0.1) inset;
  }

  .editorial-title {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .editorial-content {
    color: rgba(255, 255, 255, 0.7);
  }

  .editorial-card:hover .editorial-content p {
    color: rgba(255, 255, 255, 0.85);
  }

  .editorial-content strong {
    color: #ffffff;
  }
}

/* Section Hero Introduction */
.hero-intro-section {
  position: relative;
  padding: 0 20px;
  background: linear-gradient(180deg, #f8f8f6 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-intro-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0px 0 60px;
  position: relative;
}

/* Éléments décoratifs */
.hero-intro-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: decorationPulse 8s ease-in-out infinite;
}

@keyframes decorationPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

.hero-intro-grid {
  display: grid;
  grid-template-columns: 1fr; /* par défaut mobile */
  gap: 40px;
  align-items: start;
}

.hero-intro-text {
  order: 1; /* texte toujours premier */
}

.hero-intro-divider {
  order: 2; /* séparateur toujours après texte */
}

.hero-intro-stats {
  order: 3; /* stats toujours après le séparateur */
}

/* Desktop : texte et stats côte à côte, séparateur vertical */
@media (min-width: 968px) {
  .hero-intro-grid {
    grid-template-columns: 1fr auto 1fr; /* texte | séparateur | stats */
    align-items: center;
  }

  .hero-intro-divider {
    width: 1px;
    height: 100%;
    margin: 0;
  }
}

/* Colonne gauche - Texte */
.hero-intro-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sd-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-intro-badge svg {
  width: 14px;
  height: 14px;
}

.hero-intro-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sd-text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-intro-title .highlight {
  color: var(--sd-accent);
  position: relative;
  display: inline-block;
}

.hero-intro-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--sd-accent), var(--sd-accent-light));
  opacity: 0.3;
}

.hero-intro-description {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--sd-text-secondary);
  margin: 0;
}

/* Colonne droite - Stats circulaires */
.hero-intro-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.8s ease forwards;
  animation-delay: 0.4s;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-intro-stat-item {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-intro-stat-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sd-accent), var(--sd-accent-light));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-intro-stat-item:hover {
  background: rgba(212, 175, 55, 0.05);
  transform: translateX(8px);
}

.hero-intro-stat-item:hover::before {
  width: 100%;
}

.hero-intro-stat-circle {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.hero-intro-stat-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hero-intro-stat-circle-bg {
  fill: none;
  stroke: rgba(212, 175, 55, 0.1);
  stroke-width: 6;
}

.hero-intro-stat-circle-progress {
  fill: none;
  stroke: url(#goldGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-intro-stat-item:nth-child(1) .hero-intro-stat-circle-progress {
  animation: fillCircle1 1.5s ease forwards;
  animation-delay: 0.6s;
}

.hero-intro-stat-item:nth-child(2) .hero-intro-stat-circle-progress {
  animation: fillCircle2 1.5s ease forwards;
  animation-delay: 0.8s;
}

.hero-intro-stat-item:nth-child(3) .hero-intro-stat-circle-progress {
  animation: fillCircle3 1.5s ease forwards;
  animation-delay: 1s;
}

@keyframes fillCircle1 {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fillCircle2 {
  to {
    stroke-dashoffset: 23;
  }
}

@keyframes fillCircle3 {
  to {
    stroke-dashoffset: 45;
  }
}

.hero-intro-stat-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sd-accent);
}

.hero-intro-stat-content {
  flex: 1;
}

.hero-intro-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sd-text-primary);
  margin-bottom: 4px;
}

.hero-intro-stat-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sd-text-secondary);
}

.hero-intro-reviews-link {
  margin-top: -8px;
  padding-left: 8px;
}

.hero-intro-reviews-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sd-text-primary);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: all 0.25s ease;
}

.hero-intro-reviews-link a::after {
  content: '↗';
  font-size: 0.9rem;
  color: var(--sd-accent);
  transition: transform 0.25s ease;
}

.hero-intro-reviews-link a:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}

.hero-intro-reviews-link a:hover::after {
  transform: translateX(2px);
}

/* Ligne décorative entre stats et texte */
.hero-intro-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.3) 20%,
    var(--sd-accent) 50%,
    rgba(212, 175, 55, 0.3) 80%,
    transparent 100%
  );
  position: relative;
  margin: 32px 0;
}

.hero-intro-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--sd-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
}

@media (min-width: 968px) {
  .hero-intro-divider {
    width: 1px;
    height: 100%;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(212, 175, 55, 0.3) 20%,
      var(--sd-accent) 50%,
      rgba(212, 175, 55, 0.3) 80%,
      transparent 100%
    );
    margin: 30px;
  }
}

/* CTA Section */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-intro-container {
    padding: 60px 0 40px;
  }

  .hero-intro-grid {
    gap: 40px;
  }

  .hero-intro-text {
    gap: 20px;
    text-align: center;
  }

  .hero-intro-badge {
    margin: 0 auto;
  }

  .hero-intro-stats {
    gap: 28px;
  }

  .hero-intro-stat-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero-intro-stat-circle {
    width: 100px;
    height: 100px;
  }

  .hero-intro-stat-number {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-intro-section {
    padding: 0 16px;
  }

  .hero-intro-container {
    padding: 48px 0 32px;
  }

  .hero-intro-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .hero-intro-stat-circle {
    width: 80px;
    height: 80px;
  }

  .hero-intro-stat-number {
    font-size: 1.5rem;
  }

  .hero-intro-stat-label {
    font-size: 0.8rem;
  }

  .hero-intro-stat-description {
    font-size: 0.8rem;
  }
}
