/* ============================================
   SEED I.T - Carte avec effet de déchirure papier
   ============================================ */

/* Variables CSS Seed I.T (obligatoires) */
:root {
  --seedit-primary: #037CFB;
  --seedit-primary-light: #4DB6FF;

  --seedit-bg-dark: #1a1a2e;
  --seedit-bg-darker: #16213e;

  --seedit-radius: 12px;
  --seedit-transition: 0.25s ease;
  --seedit-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

  /* Variables spécifiques au composant */
  --seedit-torn-card-bg: rgba(3, 124, 251, 0.1);
  --seedit-torn-card-border: rgba(77, 182, 255, 0.3);
  --seedit-torn-card-shadow: 0 8px 32px rgba(3, 124, 251, 0.2);
  --seedit-torn-card-shadow-hover: 0 16px 48px rgba(3, 124, 251, 0.4);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Gradient de fond Seed I.T (obligatoire) */
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #ffffff;
  min-height: 100vh;
  padding: 40px 20px;
  line-height: 1.6;
}

/* Conteneur principal */
.seedit-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Titre principal */
.seedit-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--seedit-primary) 0%, var(--seedit-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

/* Sous-titre */
.seedit-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 3rem;
}

/* ============================================
   CARTE AVEC EFFET DE DÉCHIRURE
   ============================================ */

.seedit-torn-card {
  /* Application du clip-path pour l'effet de déchirure */
  clip-path: url(#torn-edges);

  /* Fond avec gradient Seed I.T */
  background: linear-gradient(135deg,
    rgba(3, 124, 251, 0.15) 0%,
    rgba(77, 182, 255, 0.1) 100%
  );

  /* Bordure subtile */
  border: 1px solid var(--seedit-torn-card-border);

  /* Ombre portée */
  box-shadow: var(--seedit-torn-card-shadow);

  /* Dimensions et espacement */
  padding: 2.5rem;
  margin-bottom: 2rem;

  /* Transition fluide pour l'animation */
  transition:
    transform var(--seedit-transition),
    box-shadow var(--seedit-transition);

  /* Préparation pour l'effet 3D */
  transform-style: preserve-3d;

  /* Curseur interactif */
  cursor: pointer;
}

/* Animation au survol - élévation 3D */
.seedit-torn-card:hover {
  /* Soulèvement et légère rotation */
  transform: translateY(-8px) rotateX(2deg);

  /* Intensification de l'ombre */
  box-shadow: var(--seedit-torn-card-shadow-hover);
}

/* Animation au focus (accessibilité clavier) */
.seedit-torn-card:focus {
  outline: 2px solid var(--seedit-primary);
  outline-offset: 4px;
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--seedit-torn-card-shadow-hover);
}

/* Contenu de la carte */
.seedit-torn-card__content {
  position: relative;
  z-index: 1;
}

/* Icône */
.seedit-torn-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  color: var(--seedit-primary-light);
  opacity: 0.9;
  transition: transform var(--seedit-transition);
}

.seedit-torn-card:hover .seedit-torn-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.seedit-torn-card__icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(3, 124, 251, 0.3));
}

/* Titre de la carte */
.seedit-torn-card__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--seedit-primary-light);
  letter-spacing: -0.02em;
}

/* Description */
.seedit-torn-card__description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Tags */
.seedit-torn-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.seedit-torn-card__tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(3, 124, 251, 0.2);
  border: 1px solid rgba(77, 182, 255, 0.3);
  border-radius: var(--seedit-radius);
  font-size: 0.875rem;
  color: var(--seedit-primary-light);
  font-weight: 500;
  transition: all var(--seedit-transition);
}

.seedit-torn-card__tag:hover {
  background: rgba(3, 124, 251, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   GRILLE RESPONSIVE
   ============================================ */

.seedit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */

/* Tablettes et petits écrans */
@media (max-width: 768px) {
  .seedit-title {
    font-size: 2rem;
  }

  .seedit-subtitle {
    font-size: 1rem;
  }

  .seedit-torn-card {
    padding: 2rem;
  }

  .seedit-torn-card__title {
    font-size: 1.5rem;
  }

  .seedit-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Smartphones */
@media (max-width: 375px) {
  body {
    padding: 20px 15px;
  }

  .seedit-title {
    font-size: 1.75rem;
  }

  .seedit-torn-card {
    padding: 1.5rem;
  }

  .seedit-torn-card__icon {
    width: 48px;
    height: 48px;
  }

  .seedit-torn-card__title {
    font-size: 1.3rem;
  }

  .seedit-torn-card__description {
    font-size: 0.95rem;
  }
}

/* ============================================
   ANIMATIONS SUPPLÉMENTAIRES
   ============================================ */

/* Animation d'apparition au chargement */
@keyframes seedit-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.seedit-torn-card {
  animation: seedit-fade-in 0.6s ease-out;
}

/* Délai d'animation pour la grille */
.seedit-grid .seedit-torn-card:nth-child(1) {
  animation-delay: 0.1s;
}

.seedit-grid .seedit-torn-card:nth-child(2) {
  animation-delay: 0.2s;
}

.seedit-grid .seedit-torn-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

/* Préférences utilisateur : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .seedit-torn-card:hover {
    transform: none;
  }
}

/* Support du mode contraste élevé */
@media (prefers-contrast: high) {
  .seedit-torn-card {
    border: 2px solid var(--seedit-primary);
  }

  .seedit-torn-card__title {
    color: var(--seedit-primary-light);
  }
}
