/* ============================================================
   SESSE & CO — Process Section + Countdown Bar
   Sections : "Comment ça marche" + Bandeau compte à rebours
   ============================================================ */


/* ──────────────────────────────────────────────
   SECTION "COMMENT ÇA MARCHE"
   .process-section
   ────────────────────────────────────────────── */

.process-section {
  background: var(--cream);
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}

/* Subtile texture de fond */
.process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(184,147,74,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(184,147,74,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* En-tête de section */
.process-section .section-header {
  text-align: center;
  margin-bottom: 72px;
}

.process-section .section-eyebrow {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.process-section .section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
}

.process-section .section-header p {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grille des 4 étapes */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  align-items: start;
}

/* ── Ligne de connexion horizontale (timeline) ── */
/* Trait doré fin qui passe derrière les icônes */
.process-grid::before {
  content: '';
  position: absolute;
  top: 52px; /* aligné au centre des icônes */
  left: calc(12.5% + 28px);   /* commence au centre de la 1re icône */
  right: calc(12.5% + 28px);  /* finit au centre de la dernière icône */
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--gold) 15%,
    var(--gold) 85%,
    transparent 100%
  );
  opacity: 0.35;
  z-index: 0;
}

/* ── Chaque étape ── */
.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 40px;
  z-index: 1;
}

/* Numéro en arrière-plan typographique */
.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Icône dans un cercle */
.process-step-icon {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid rgba(184, 147, 74, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  box-shadow: 0 4px 20px rgba(184, 147, 74, 0.08);
}

.process-step-icon i {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.35s ease;
}

/* Hover de l'étape */
.process-step:hover .process-step-icon {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(184, 147, 74, 0.2);
  transform: translateY(-4px);
}

.process-step:hover .process-step-icon i {
  transform: scale(1.1);
}

/* Titre de l'étape */
.process-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

/* Description */
.process-step-desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 200px;
  position: relative;
  z-index: 2;
}

/* Connecteur visible entre étapes (optionnel, décoratif) */
.process-connector {
  display: none; /* géré par ::before sur .process-grid */
}


/* ──────────────────────────────────────────────
   BANDEAU COMPTE À REBOURS
   .countdown-bar
   ────────────────────────────────────────────── */

.countdown-bar {
  background: linear-gradient(
    135deg,
    #7E1515 0%,
    #9B1B1B 40%,
    #8A1818 100%
  );
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

/* Légère texture subtile sur le bandeau */
.countdown-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 150% at 50% 50%, rgba(184,147,74,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.countdown-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Accroche texte */
.countdown-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 220px;
}

.countdown-copy .countdown-label-top {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.countdown-copy .countdown-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
}

.countdown-copy .countdown-code {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}

/* Timer */
.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* Card chiffre */
.countdown-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  min-width: 54px;
  padding: 6px 8px;
  text-align: center;
  line-height: 1;
  letter-spacing: 1px;
  transition: background 0.2s ease;
}

/* Label sous le chiffre */
.countdown-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

/* Séparateur entre les unités */
.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  margin-bottom: 18px;
  align-self: center;
}

/* CTA */
.countdown-cta {
  flex-shrink: 0;
}

.countdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  padding: 12px 24px;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.countdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.countdown-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.countdown-btn:hover i {
  transform: translateX(3px);
}


/* ──────────────────────────────────────────────
   ANIMATIONS STAGGER (réutilisées par process-grid)
   ────────────────────────────────────────────── */

.stagger-grid .stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stagger-grid.in-view .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

/* Délais décalés */
.stagger-grid.in-view .stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-grid.in-view .stagger-item:nth-child(2) { transition-delay: 0.15s; }
.stagger-grid.in-view .stagger-item:nth-child(3) { transition-delay: 0.25s; }
.stagger-grid.in-view .stagger-item:nth-child(4) { transition-delay: 0.35s; }


/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */

@media (max-width: 900px) {

  /* Process : 2 colonnes sur tablette */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 0;
  }

  .process-grid::before {
    display: none; /* retire la ligne horizontale */
  }

  .process-step {
    padding: 0 28px 0;
  }
}

@media (max-width: 600px) {

  /* Process : 1 colonne sur mobile */
  .process-section {
    padding: 72px 0 80px;
  }

  .process-section .section-header h2 {
    font-size: 2rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }

  .process-step::before {
    font-size: 6rem;
    top: -12px;
  }

  /* Countdown : stack vertical */
  .countdown-bar {
    padding: 24px 0;
  }

  .countdown-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .countdown-copy {
    align-items: center;
    min-width: unset;
  }

  .countdown-num {
    font-size: 1.6rem;
    min-width: 44px;
    padding: 5px 6px;
  }

  .countdown-btn {
    width: 100%;
    justify-content: center;
  }
}
