body{
    background: linear-gradient(135deg, #015469, #0b1023);
    margin: 0;
    padding: 0;
}
#logo{
    height: 80px;
    border-radius: 70px;
}

.entete{
    display: flex;
    flex-direction: row; /* Côte à côte */
    align-items: center;
    justify-content: space-around;
    gap:80px; 
    padding: 20px;
    margin: 50px;
}

.ENT{
    text-align: center;
    color: white;
    font-size: xx-large;
    margin: 30px 0;
}

.projects-container {
    padding: 20px 50px;
}

#project-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== CARDS PROJETS ===== */
.project-card {
    border: 0px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    width: 300px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== IMAGES PERSONNES ===== */
.person-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 0px solid;
    box-shadow: 3px 3px 5px rgba(117, 117, 117, 0.489);
}

.person-info h3 {
    margin: 10px 0 5px;
    color: black;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.person-poste {
    color: black;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== BOUTONS ===== */
.btn-details {
    background-color: rgb(40, 97, 255);
    height: 50px;
    width: 100px;
    color: white;
    font-size: small;
    font-family: Arial, Helvetica, sans-serif;
    border: none;
    border-radius: 8px;
    text-align: center;
    box-shadow: 3px 3px 5px rgba(117, 117, 117, 0.489);
    cursor: pointer;
}

.btn-details:hover {
    background-color: rgb(230, 224, 224);
    color: black;
}

/* ===== MODAL ===== */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.open {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(183, 185, 204, 0.95), rgba(200, 200, 220, 0.95));
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* En-tête de la modal */
.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(500deg, #015469, #0b1023);
}

.modal-title {
    font-size: 40px;
    font-size: x-large;
    color: #ffffff;
    margin: 0;
    font-family:Georgia, 'Times New Roman', Times, serif;
}

#close-modal {
    cursor: pointer;
    font-size: 50px;
    color:white;
    font-weight:lighter;
    transition: all 0.2s;
    background: none;
    border: none;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-modal:hover {
    color: #d30418;
    transform: rotate(90deg);
}

/* Corps de la modal */
.modal-body {
    padding: 30px;
    display: flex;
    gap: 30px;
}

/* Conteneur de l'image */
.modal-image-section {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modal-img {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(111, 123, 255, 0.904);
    border: 0px solid rgba(78, 115, 223, 0.3);
    margin-bottom: 15px;
}

/* Section des informations */
.modal-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#modal-name {
    font-size: 28px;
    color: white;
    font-size: large;
    margin: 0 0 15px 0;
    font-family:Georgia, 'Times New Roman', Times, serif;
}

.modal-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-badge {
    background: #0a46ed;
    color: white;
    font-size: 0.85rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 50px;
    padding: 5px 15px;
    font-weight: 600;
}

.modal-info-block {
    margin-bottom: 15px;
}

.modal-info-label {
    font-weight: bold;
    color: #010101;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info-text {
    color: #ffffff;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* ===== NOUVEAU STYLE POUR LES COMPÉTENCES ===== */
.modal-skills-container {
    margin: 10px 0;
}

.modal-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid white;
    border-radius: 3px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c2c5c;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin: 2px; 
}

/* ===== BOUTONS RÉSEAUX SOCIAUX ===== */
.modal-social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.btn-linkedin {
    background: #0077b5;
    color: white;
}

.btn-linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.btn-github {
    background: #333;
    color: white;
}

.btn-github:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-btn i {
    font-size: 16px;
}


@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        flex-direction: column;
        padding: 20px;
    }
    
    .modal-image-section {
        flex: 0 0 auto;
        width: 100%;
    }
    
    #modal-img {
        height: 250px;
    }
    
    .modal-social-links {
        justify-content: center;
    }
    
    .social-btn {
        flex: 1;
        justify-content: center;
    }
}


.navbar {
    background: linear-gradient(500deg, #efefef, #015469,black);
    padding: 20px 5%;
    box-shadow: 0 3px 3px rgb(119, 189, 233);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo { 
    font-size: XX-large; 
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold; 
    color: #030303; 
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    font-size: large;
    color: white;
    font-family:Georgia, 'Times New Roman', Times, serif
}

.nav-links a:hover {
    color: #667eea;
}

/* ===== SETTINGS MENU ===== */
.settings-container{
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.settings-icon{
    font-size: 22px;
    cursor: pointer;
    color: #b5b5b4;
    transition: 0.2s;
}

.settings-icon:hover{
    color:white;
}

.param-deroulant{
    display: none;
    position: absolute;
    top: 28px;
    right: 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0px 6px 18px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 160px;
    z-index: 999;
}

.param-deroulant button{
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.param-deroulant button:hover{
    background: #f3f3f3;
}

.param-deroulant.open{
    display: block;
}

/* ===== MESSAGES ===== */
.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

.error-message {
    text-align: center;
    color: #dc3545;
    padding: 20px;
    font-weight: bold;
}

/* ===== SECTIONS (si besoin) ===== */
#cars1, #cars2 {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 20px;
}

#cars1 img, #cars2 img {
    height: 200px;
    width: 300px;
    object-fit: cover;
    display: block;
    margin-bottom: 5px;
    border-radius: 10px;
    border: 0px solid;
    box-shadow: 3px 3px 5px rgba(117, 117, 117, 0.489);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    #project-list {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    #project-list {
        flex-direction: column;
        align-items: center;
    }
    
    .project-card {
        width: 90%;
        max-width: 300px;
    }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #667eea;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.data-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
}

/* Style alternatif pour le loader (celui utilisé dans votre JS) */
.data-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.data-loader .loading-text {
    color: #667eea;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

footer{
    height: 40px;
    min-width: 100%;
    background: linear-gradient(500deg, #efefef, #015469,black);
    border: 0px solid ;
    align-content: center;
    border-radius: 0px 0px 6px 6px;
    box-shadow:  2px 0px 0px   rgb(119, 189, 233);
}

footer p {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 12px;
    text-align: center;
    justify-content: center;
    color: white;
    align-items: center;
    margin: 0px;
}
footer a{
    color: white;
}