/* app/home.module.css */

/* --- CONFIGURATION GLOBALE --- */
.home_container__eduTK {
  width: 100%;
  /* Important pour le mobile : évite le scroll horizontal indésirable */
  overflow-x: hidden;
  background-color: transparent; /* Laisse le layout.tsx gérer le fond */
  position: relative;
}

/* --- BOUTONS (RESPONSIVE) --- */
.home_btn__f_D1_ {
  height: 56px;
  padding: 0 2rem;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-tech);
  border: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Pleine largeur sur mobile */
}

/* Sur Desktop/Tablette : retour à la largeur auto */
@media (min-width: 640px) {
  .home_btn__f_D1_ {
    width: auto;
    height: 60px;
    padding: 0 2.5rem;
  }
}

.home_btnPrimary__vF88c {
  background: #F59E0B;
  color: black;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.home_btnPrimary__vF88c:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
}

.home_btnSecondary__EEzcp {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(5px);
}

.home_btnSecondary__EEzcp:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* --- HERO SECTION --- */
.home_heroSection__0qyIh {
  width: 100%;
}

.home_heroSubtitle__KJe1X {
  font-family: var(--font-body);
  font-size: 1rem; /* Texte lisible sur mobile */
  color: #a1a1aa;
  max-width: 600px;
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 300;
  padding: 0 1rem; /* Marges de sécurité */
}

@media (min-width: 768px) {
  .home_heroSubtitle__KJe1X {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
}

.home_heroButtons__KG1xr {
  display: flex;
  flex-direction: column; /* Stack vertical sur mobile */
  gap: 16px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 350px; /* Limite la largeur des boutons sur mobile */
}

@media (min-width: 640px) {
  .home_heroButtons__KG1xr {
    flex-direction: row; /* Côte à côte sur desktop */
    width: auto;
    gap: 20px;
    max-width: none;
  }
}

/* --- SECTIONS GÉNÉRIQUES --- */
.home_section__bCaaS {
  width: 100%;
  position: relative;
}

.home_sectionTitle__6Zerm {
  font-family: var(--font-heading);
  font-size: 2.25rem; /* Taille mobile sécurisée */
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .home_sectionTitle__6Zerm {
    font-size: 3rem;
  }
}

.home_sectionSubtitle__LGRQV {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: #F59E0B;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .home_sectionSubtitle__LGRQV {
    font-size: 0.9rem;
  }
}

.home_sectionText__RDoJn {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #a1a1aa;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .home_sectionText__RDoJn {
    font-size: 1.1rem;
  }
}

/* --- HOW IT WORKS : ICONES & ANIMATIONS --- */
.home_hiwIconBox__9Xc1w {
  width: 50px;
  height: 50px;
  background: #0a0a0a; 
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 20; 
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
  .home_hiwIconBox__9Xc1w {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
}

/* KEYFRAMES PULSE */
.home_pulseAnim1__rwU1u { animation: home_syncPulse__k9mns 4s infinite 0s; }
.home_pulseAnim2__qTndo { animation: home_syncPulse__k9mns 4s infinite 1.2s; }
.home_pulseAnim3__mBT_A { animation: home_syncPulse__k9mns 4s infinite 2.4s; }

@keyframes home_syncPulse__k9mns {
  0%, 15% { 
    border-color: #F59E0B; 
    color: white; 
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5); 
    transform: scale(1.1);
    background: rgba(245, 158, 11, 0.1);
  }
  30%, 100% { 
    border-color: rgba(255, 255, 255, 0.1); 
    color: rgba(255, 255, 255, 0.4); 
    box-shadow: none;
    transform: scale(1);
    background: #0a0a0a;
  }
}

/* --- CERCLE VERTUEUX --- */
.home_cycleWrapper__5rCWz {
  display: flex;
  flex-direction: column; /* Mobile first : vertical */
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 2rem;
  width: 100%;
}

@media (min-width: 992px) { 
  .home_cycleWrapper__5rCWz { 
    flex-direction: row; /* Desktop : horizontal */
    align-items: center; 
    text-align: left;
    gap: 4rem;
  }
  .home_cycleText__IxeQb { 
    flex: 1;
    max-width: 550px;
    text-align: left;
  }
  .home_cycleVisual__j_hAQ { 
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
}

/* STYLE DES ICÔNES DU CERCLE */
.home_fwIconCircle__lyNuA { 
  fill: #1a1a1a; 
  stroke: #F59E0B; 
  stroke-width: 1px; 
  opacity: 1; 
}

.home_fwIconPath__RC60m { 
  fill: none; 
  stroke: #FFFFFF; 
  stroke-width: 1.2px; 
  stroke-linecap: round; 
}

.home_fwText__6D3t_ { 
  font-family: 'Space Grotesk', sans-serif; 
  fill: #FFFFFF; 
  font-weight: bold; 
  font-size: 14px;
  dominant-baseline: central; 
  text-anchor: middle;
}

/* ANIMATION ROTATION */
.home_spinSlow__lZWMs {
    animation: home_spin__fj708 12s linear infinite;
    transform-origin: center;
}

@keyframes home_spin__fj708 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
