/*
Theme Name: Blocksy Child
Description: Thème enfant pour Studio Recrutement
Author: Studio Recrutement
Template: blocksy
Version: 1.0.0
*/

/* Conteneur principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Grille des offres */
.offres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Cartes d'offres - état normal */
.offre-card {
  background: #fff;
  border: 2px solid #ccc; /* contour gris 2px */
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Cartes d'offres - état hover */
.offre-card:hover {
  border-color: #000; /* contour noir 2px */
  box-shadow: 0 8px 16px rgb(0 0 0 / 0.1);
}

/* Titre de la carte */
.offre-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #222;
}

/* Paragraphes de la carte */
.offre-card p {
  color: #555;
  margin: 0.25rem 0 1rem 0;
  font-size: 0.95rem;
}

/* Bouton Postulez - état normal */
.cta-postulez {
  display: inline-block;
  background-color: #fff; /* blanc */
  color: #000; /* texte noir */
  border: 2px solid #000; /* bordure noire 2px */
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Bouton Postulez - état hover */
.offre-card:hover .cta-postulez:hover {
  background-color: #ffdd00; /* jaune */
  color: #000; /* texte noir */
  border-color: #ffdd00; /* bordure jaune */
}

/* Titre de la carte */
.offre-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Localisation */
.offre-card .localisation {
  font-style: italic;
  margin-bottom: 0.5rem;
  color: #666;
}

/* Description tronquée */
.offre-card .description {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limite à 5 lignes */
  -webkit-box-orient: vertical;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.4;
}

/* Bouton CTA - état normal */
.offre-card .btn-hellowork {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 2px solid #000;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Bouton CTA - état hover */
.offre-card .btn-hellowork:hover {
  background-color: #ffd500; /* Jaune */
  border-color: #ffd500;
  color: #000;
}
