:root {
  --primary-color: #86efac;
  --background-color: #1e1e1e;
  --second-background-color: #27272a;
  --text-color: #FFF;
  --font-family: 'Courier New', monospace;
}

.badges {
    display: inline-block;
    width: 100%;
    align-items: center;
    padding:  0px 1% 0px 1%;
    gap: 10px;
}
.badges > span {
    padding:  0px 1% 0px 1%;
    border-radius: 15px;
    border: 2px solid;
    background-color: var(--second-background-color);
}
.badges .lv3 { border-color: #6b0f0f; }
.badges .lv2 { border-color: #713f12; }
.badges .lv1 { border-color: #056522; }

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
/*Formation*/
.list-formation > div {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--second-background-color);
    padding-left: 1.5rem;
    gap: 2rem;
    margin-left: 1rem;
}

.formation-card {
    position: relative;
    display: flex;
    gap: 1rem;
}

.formation-dot {
    position: absolute;
    left: -2.15rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color, #fff);
    border: 2px solid var(--second-background-color);
}

.formation-contenu {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.formation-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

.formation-contenu h2 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.formation-date {
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 0;
}
.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7)
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Projet */
.list-projet {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1%;
}
.list-projet > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    
}

/* les deux divs (vedettes et reste) */
.list-projet > div {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    
}

/* chaque carte */
.list-projet > div > article {
    flex: 1 1 300px;
    max-width: 400px;
    background-color: var(--second-background-color);
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    padding-bottom: 1%;
}
.carte-btns {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto; /* pousse vers le bas */
    padding: 0.5rem;
}

.btn-projet {
    border-radius: 25px;
    max-width: 150px;
    flex: 1;
    text-align: center;
    background-color: #056522;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
}
/* Badge pour les vedettes */
.badge-vedette {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-family: var(--font-family);
    font-size: 12px;
    padding: 0.2rem 0.6rem;
    background-color: #27272a83;
    border-radius: 350px;
    color: #ffff0072;
}

/* image dans la carte */
.list-projet > div > article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
/* Charger les images en grand */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}

/* Contact */
.parent {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
#list-contact {
    width: 25%;
    max-width: 500px;
    height: 500px;
    
}


.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}