/* stylev2.css */

/* HEADER */
header {
  border-bottom: 1px solid #e5e7eb;
}

/* CARDS COMMON */
.card, .card-tech, .card-project, .card-cert {
  border-radius: 1rem;
  background-color: white;
  /* Ombre subtile par défaut */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.card-tech:hover, .card-project:hover, .card-cert:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #e0e7ff;
}

/* SPECIFIC CARD: PROJECT */
.card-project {
  display: flex;
  flex-direction: column;
  height: 100%; /* Force la hauteur pour s'aligner sur la grille */
}

.card-project h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #111827;
}

.card-project p {
    color: #4b5563;
    flex-grow: 1; /* Pousse le contenu vers le bas pour aligner les boutons */
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-project .cadreProjet {
  height: 200px;
  overflow: hidden;
  border-radius: 0.75rem;
  width: 100%;
}

.card-project .cadreProjet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-project:hover .cadreProjet img {
  transform: scale(1.05);
}

/* SPECIFIC CARD: TECH */
.card-tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-tech img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* TAGS */
.tag {
  display: inline-block;
  background-color: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px; /* Pill shape */
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* MODAL STYLES (NOUVEAU) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
}
.modal-close:hover { color: #111827; }

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}