@tailwind base;
@tailwind components;
@tailwind utilities;
/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --font-playpen: 'Playpen Sans', cursive;
}

body {
  font-family: var(--font-playpen);
  background-color: #0f0f0f;
  color: #fff;
}

/* Navbar */
header {
  background-color: #121212;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar:hover{
  color: red;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00df9a;
}

.logo span {
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a {
  color: #00df9a!important;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    display: none;
  }

  /* Tu pourras ajouter un burger menu ici plus tard */
}
/* Classes utilitaires supplémentaires pour les arrondis */
.rounded-radius {
  border-radius: 12px; /* arrondi un peu plus marqué */
}

/* Couleurs personnalisées - à ajuster selon palette exacte de Nadir */
.bg-surface {
  background-color: #121212; /* gris très foncé, presque noir */
}
.bg-surface-alt {
  background-color: #1e1e1e; /* gris foncé */
}
.text-on-surface {
  color: #e0e0e0; /* gris clair pour le texte */
}
.text-on-surface-strong {
  color: #ffffff; /* blanc pur pour texte important */
}
.border-outline {
  border-color: #333333; /* gris foncé pour la bordure */
}
.text-primary {
  color: #00df9a; /* bleu tailwind "blue-600" */
}

/* Taille icônes svg */
.size-4 {
  width: 1rem;  /* 16px */
  height: 1rem;
}
.size-6 {
  width: 1.5rem; /* 24px */
  height: 1.5rem;
}
.size-10 {
  width: 2.5rem; /* 40px */
  height: 2.5rem;
}

/* Effet hover */
.hover-shadow-primary {
  transition: box-shadow 0.3s ease;
}
.hover-shadow-primary:hover {
  box-shadow: 0 8px 24px #00df9a;
  border-color: #00df9a; /* bleu un peu plus clair au hover */
}

/* Texte et espacement */
.text-xs {
  font-size: 0.75rem; /* 12px */
  line-height: 1rem;
}
.text-sm {
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.mb-4 {
  margin-bottom: 1rem;
}
.px-2_5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.py-1_5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

/* Flexbox personnalisé */
.flex-wrap-gap-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-gap-2 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Liste qualifications */
.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Bouton ou blocs interactifs */
.transition-all {
  transition: all 0.3s ease;
}

/* Pour la grille */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.lg\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gap-8 {
  gap: 2rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.max-w-lg {
  max-width: 32rem; /* 512px */
}
.w-full {
  width: 100%;
}

/* Text white space control */
.whitespace-nowrap {
  white-space: nowrap;
}

/* Autres ajustements */
.cursor-pointer {
  cursor: pointer;
}



    /* Container */
    .container1 {
      margin: 0px 200px 20px;
      padding: 0 20px;
    }

    /* Title */
    h1 {
      font-weight: 600;
      font-size: 2.5rem;
      margin-bottom: px;
      color: #111;
      text-align: center;
    }

    /* Skills grid */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
    }

    /* Single skill card */
    .skill-card {
      border: 1px solid #ddd;
      border-radius: 8px;
      color: white;
      padding: 30px 20px;
      text-align: center;
      box-shadow: 0 4px 10px rgb(0 0 0 / 0.05);
      transition: box-shadow 0.3s ease, transform 0.3s ease;
      background-color: #333333;
      cursor: default;
    }
    .skill-card:hover {
      box-shadow: 0 10px 20px rgb(0 0 0 / 0.15);
      transform: translateY(-6px);
    }

    /* Skill icon placeholder */
    .skill-icon {
      width: 60px;
      height: 60px;
      margin: 0 auto 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3rem;
      color: #6c63ff;
      background-color: #e0e0ff;
      border-radius: 50%;
      transition: background-color 0.3s ease, color 0.3s ease;
    }
    .skill-card:hover .skill-icon {
      background-color: #6c63ff;
      color: white;
    }

    /* Skill name */
    .skill-name {
      font-weight: 600;
      font-size: 1.2rem;
      color: #fff;
      margin-bottom: 12px;
    }

    /* Skill description */
    .skill-desc {
      font-weight: 400;
      font-size: 0.95rem;
      color: #cbcbcb;
      min-height: 60px;
    }

    /* Responsive */
    @media (max-width: 600px) {
      .container {
        margin: 20px auto 60px;
        padding: 0 15px;
      }
      h1 {
        font-size: 2rem;
        margin-bottom: 30px;
      }
      .skill-card {
        padding: 25px 15px;
      }
      .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 2.4rem;
      }
    }
.container-card {
  display: flex;
  flex-wrap: wrap; /* pour passer à la ligne sur petits écrans */
  gap: 10px; /* espace entre les cartes */
  justify-content: center; /* centrer les cartes */
  padding: 20px;
}
.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 350px;
  margin: 0px 50px;
  border-radius: 24px;
  line-height: 1.6;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: 22px;
  color: #ffffff;
  overflow: hidden;
  background: #333333;
  border: 2px solid white;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}
.content h2{
  padding: 0px 22px!important;
}
.content p{
  padding: 0px 22px!important;
}
.content .tech-badges{
  padding: 22px!important;
}
h2{
  font-weight: 800;
}

.content::before {
  position: absolute;
  content: "";
  top: -4%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%);
  background: #ced8ff;
  z-index: -1;
  transform-origin: bottom;

  border-radius: inherit;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.content::after {
  position: absolute;
  content: "";
  top: -8%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%);
  background: #e7ecff;
  z-index: -2;
  transform-origin: bottom;
  border-radius: inherit;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.content svg {
  width: 48px;
  height: 48px;
}

.content .para {
  z-index: 1;
  opacity: 1;
  font-size: 18px;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.content .link {
  z-index: 1;
  color: #fea000;
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.content .link:hover {
  text-decoration: underline;
}

.card:hover {
  transform: translate(0px, -16px);
}

.card:hover .content::before {
  rotate: -8deg;
  top: 0;
  width: 100%;
  height: 100%;
}

.card:hover .content::after {
  rotate: 8deg;
  top: 0;
  width: 100%;
  height: 100%;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  background-color: #00df9a20;
  color: #00df9a;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 500;
  border: 1px solid #00df9a40;
  transition: all 0.2s ease;
}

.badge:hover {
  background-color: #00df9a;
  color: #0f0f0f;
}
  
