/* ========================================
   HERO SECTION - RESPONSIVE IMPROVEMENTS
   Mobile First Approach
   ======================================== */

/* Hero Base Styles */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: white;
  padding: 6rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Text Styles */
.hero-text {
  animation: fadeInLeft 1s ease;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-text .subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  font-weight: 600;
  line-height: 1.3;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.85;
  line-height: 1.8;
  max-width: 550px;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  background: #f0f0f0;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* Hero Image */
.hero-image {
  animation: fadeInRight 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.stat-item .number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-item .label {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.3;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ========================================
   RESPONSIVE - TABLETTES (≤ 968px)
   ======================================== */
@media (max-width: 968px) {
  .hero {
    min-height: auto;
    padding: 5rem 2rem 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
  }

  .hero-text .subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero-buttons {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .btn {
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1rem;
  }

  .profile-card {
    max-width: 380px;
  }

  .profile-stats {
    padding: 1.8rem;
    gap: 1.2rem;
  }

  .stat-item .number {
    font-size: 1.8rem;
  }

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

/* ========================================
   RESPONSIVE - SMARTPHONES (≤ 576px)
   ======================================== */
@media (max-width: 576px) {
  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 2.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-text {
    animation: fadeInUp 1s ease;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.7rem;
    line-height: 1.15;
  }

  .hero-text .subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1rem;
    width: 100%;
  }

  .profile-card {
    max-width: 100%;
    max-width: 350px;
    width: 100%;
  }

  .profile-stats {
    padding: 1.5rem;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 0.8rem;
  }

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

  .stat-item .label {
    font-size: 0.75rem;
  }
}

/* ========================================
   RESPONSIVE - TRÈS PETITS ÉCRANS (≤ 375px)
   ======================================== */
@media (max-width: 375px) {
  .hero {
    padding: 3.5rem 1rem 2rem;
  }

  .hero-text h1 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
  }

  .hero-text .subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }

  .hero-text p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .hero-buttons {
    gap: 0.8rem;
    width: 100%;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
  }

  .profile-card {
    max-width: 300px;
  }

  .profile-stats {
    padding: 1.2rem;
    gap: 0.8rem;
  }

  .stat-item .number {
    font-size: 1.3rem;
  }

  .stat-item .label {
    font-size: 0.7rem;
  }
}

/* ========================================
   LANDSCAPE MODE (Small screens)
   ======================================== */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 2rem 2rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
  }

  .hero-text .subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .hero-text p {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: none;
  }

  .hero-buttons {
    gap: 0.8rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .profile-stats {
    grid-template-columns: repeat(4, 1fr);
    padding: 1rem;
    gap: 0.5rem;
  }

  .stat-item .number {
    font-size: 1rem;
  }

  .stat-item .label {
    font-size: 0.6rem;
    display: none;
  }
}

/* ========================================
   DARK MODE
   ======================================== */
body.dark-mode .hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .btn-primary {
  background: #0066ff;
  color: white;
}

body.dark-mode .btn-primary:hover {
  background: #0052cc;
}

body.dark-mode .btn-outline {
  border-color: white;
}

body.dark-mode .btn-outline:hover {
  background: white;
  color: #0052cc;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-text,
  .hero-text h1,
  .hero-image,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus visible pour keyboard navigation */
.btn:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

/* ========================================
   PRINT
   ======================================== */
@media print {
  .hero {
    page-break-inside: avoid;
    min-height: auto;
  }

  .hero-image {
    display: none;
  }

  .btn {
    color: black;
    border: 1px solid black;
  }
}
