/* ============================================
   ASSISTUP - CSS PRINCIPAL PROFESSIONNEL
   Mobile-First Approach | BEM Methodology
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import './variables.css';

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f9fafb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* ============================================
   LAYOUT - CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 3rem 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 4rem 2.5rem;
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #374151;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: color 0.2s ease;
}

.header__menu-toggle:hover {
  color: #6366f1;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__menu-item {
  position: relative;
}

.header__menu-link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.header__menu-link:hover,
.header__menu-link--active {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.header__menu-link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: #6366f1;
  border-radius: 1px;
}

.header__menu-button {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
  transition: all 0.2s ease;
}

.header__menu-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* Mobile Menu */
@media (max-width: 950px) {
  .header__menu-toggle {
    display: block;
  }

  .header__menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .header__menu--open {
    transform: translateX(0);
  }

  .header__menu-item {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
  }

  .header__menu-link {
    width: 100%;
    padding: 1rem 0.75rem;
    font-size: 1.125rem;
  }

  .header__menu-button {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    height: 600px;
  }
}

.hero__slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  padding: 1.5rem;
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.hero__button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
}

/* ============================================
   SECTION
   ============================================ */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

.section__title {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title h2 {
  margin-bottom: 0.75rem;
}

.section__title p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (min-width: 768px) {
  .card__image {
    height: 240px;
  }
}

.card:hover .card__image {
  transform: scale(1.05);
}

.card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid #6366f1;
  color: #6366f1;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  width: fit-content;
}

.card__link:hover {
  background: #6366f1;
  color: #fff;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr;
}

.grid--5 {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid--5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   FILTER CARDS
   ============================================ */
.filter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  min-height: 140px;
}

.filter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #6366f1;
}

.filter-card__image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .filter-card__image {
    width: 64px;
    height: 64px;
  }
}

.filter-card:hover .filter-card__image {
  transform: scale(1.1);
}

.filter-card__text {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .filter-card__text {
    font-size: 1rem;
  }
}

/* ============================================
   FEATURED CARD
   ============================================ */
.featured-card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.featured-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .featured-card__image {
    height: 340px;
  }
}

.featured-card__body {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .featured-card__body {
    padding: 2rem;
  }
}

.featured-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.featured-card__text {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.featured-card__link {
  display: inline-block;
  color: #6366f1;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.featured-card__link:hover {
  color: #4f46e5;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 2px solid #6366f1;
  color: #6366f1;
}

.btn--outline:hover {
  background: #6366f1;
  color: #fff;
}

.btn--center {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ============================================
   SWIPER CUSTOMIZATION
   ============================================ */
.swiper-button-next,
.swiper-button-prev {
  width: 56px !important;
  height: 56px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: #6366f1 !important;
  margin-top: -28px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #6366f1 !important;
  color: #fff !important;
  transform: scale(1.05) !important;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.swiper-button-next:active,
.swiper-button-prev:active {
  transform: scale(0.95) !important;
}

.swiper-button-next {
  right: 20px !important;
}

.swiper-button-prev {
  left: 20px !important;
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    margin-top: -24px !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 18px !important;
  }

  .swiper-button-next {
    right: 12px !important;
  }

  .swiper-button-prev {
    left: 12px !important;
  }
}

@media (max-width: 480px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px !important;
  }

  .swiper-button-next {
    right: 8px !important;
  }

  .swiper-button-prev {
    left: 8px !important;
  }
}

/* Boutons désactivés */
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Pagination */
.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  opacity: 0.7 !important;
  transition: all 0.3s ease !important;
  margin: 0 6px !important;
}

.swiper-pagination-bullet:hover {
  opacity: 0.9 !important;
  transform: scale(1.2);
}

.swiper-pagination-bullet-active {
  background: #fff !important;
  opacity: 1 !important;
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

