body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* couleur finale choisie */
    color: #333;
}

.slider {
    width: 100%;
    height: 80vh;
    background: black;
    position: relative;
}

.slider-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

h1 {
    color: #adadad;
    font-size: 5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

p {
    font-size: 1.5rem;
    line-height: 1.5em;
}

.slider-content p {
    color: #adadad;
    font-size: 2rem;
    font-weight: 300;
}

.section {
    padding: 50px 0;
    background: #adadad;
    border-bottom: 1px solid #ddd;
}

.boxed {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.flex {
    display: flex;
}

.w40 {
    width: 40%;
}

.w60 {
    width: 60%;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
    font-size: 1.2rem;
}

h2 {
    color: #333;
}

.section#projets ul li {
    background: #adadad;
    padding: 10px;
    border-radius: 5px;
}

.section#projets ul li:hover {
    background: #adadad;
}

.section#contact ul li {
    margin: 10px 0;
}

.section#contact ul li a {
    color: #007BFF;
    text-decoration: none;
}

.section#contact ul li a:hover {
    text-decoration: underline;
}

button {
    background: #2b2b2b;
    color: #adadad;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

footer {
    text-align: center;
    padding: 20px;
    background: #adadad;
    color: #000000;
    position: relative;
    bottom: 0;
    width: 100%;
}

.download-cv {
    text-align: left;
    margin: 20px 0;
}

.cv-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2b2b2b;
    color: #FFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cv-button:hover {
    background-color: #2b2b2b;
}

.cv-button i {
    margin-right: 8px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.skill-category {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.skill-category h2 {
    margin-top: 0;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-item p {
    margin: 5px 0;
    font-weight: bold;
}

.skill-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    position: relative;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #00bcd4;
    border-radius: 5px;
}

.carte {
    width: 300px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
  }

  .contenu-cache {
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .carte.active .contenu-cache {
    max-height: 200px; /* adapte selon ton contenu */
    opacity: 1;
    margin-top: 10px;
  }

  .cartes-container {
    display: flex;
    flex-wrap: wrap; /* permet le retour à la ligne si l'écran est trop petit */
    gap: 20px; /* espace entre les cartes */
    justify-content: center; /* centre les cartes horizontalement */
}
    
    
.carte h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.carte p {
    margin: 10px 0;
    color: #666;
}

.carte:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.image-projet {
    width: 100%;
    height: auto;
    object-fit: contain; /* ou "cover", voir explication dessous */
    display: block;
    border-radius: 5px;
    margin-top: 10px;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
