/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5e60ce;
    --secondary-color: #64dfdf;
    --dark-color: #242424;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    scroll-behavior: smooth;
}

.dark-mode {
    --primary-color: #7371fc;
    --secondary-color: #48bfe3;
    --dark-color: #f8f9fa;
    --light-color: #242424;
    --text-color: #f8f9fa;
    --text-light: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.dark-mode #navbar {
    background-color: rgba(36, 36, 36, 0.9);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Section Accueil */
#accueil {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/api/placeholder/1920/1080') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.highlight {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Section À propos */
#a-propos {
    padding: 100px 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.skills {
    flex: 1;
    min-width: 300px;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Section Projets */
#projets {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.dark-mode #projets {
    background-color: #333;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
    background-color: white;
}

.dark-mode .project-info {
    background-color: #424242;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: #666;
    margin-bottom: 15px;
}

.dark-mode .project-info p {
    color: #ccc;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Section Contact */
#contact {
    padding: 100px 0;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary-color);
}

.social-links {
    margin-top: 30px;
}

.social-icon {
    margin-right: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--secondary-color);
}

form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--light-color);
    color: var(--text-color);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}


/* Media Queries */
@media screen and (max-width: 768px) {
    #navbar {
        padding: 15px 20px;
    }

    .nav-links {
        position: absolute;
        right: -100%;
        top: 70px;
        width: 60%;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding: 50px 0;
        transition: var(--transition);
    }

    .dark-mode .nav-links {
        background-color: var(--dark-color);
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }
}

/* Styles pour la modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
}

#modal-main-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 4px;
}

.image-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.image-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
}

.thumbnail.active {
    border-color: #007bff;
}

#modal-description {
    margin-top: 20px;
    line-height: 1.6;
}

/* Animation fade-in pour les projets */
.project-card {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card.fade-in {
    opacity: 1;
}


/* CSS final à ajouter à la fin de votre style.css */

/* Supprimer TOUT texte alt qui pourrait s'afficher */
.modal-gallery img {
    font-size: 0 !important;
    text-indent: -9999px !important;
}

/* Forcer la suppression du texte alt même si l'image ne se charge pas */
.modal-gallery img::before,
.modal-gallery img::after {
    content: '' !important;
    display: none !important;
}

/* Supprimer tout texte généré par le navigateur */
.thumbnails img[alt]::before,
.thumbnails img[alt]::after {
    content: none !important;
}

/* Cacher le texte alt de remplacement */
.modal-gallery img[alt] {
    text-indent: -9999px;
    overflow: hidden;
    display: block;
}

/* Style pour les images non chargées */
.modal-gallery img[alt]:not([src]) {
    display: none !important;
}

/* Alternative: masquer complètement le texte alt */
.thumbnail {
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
}

.thumbnail::after {
    content: '' !important;
}

/* Forcer l'affichage de l'image uniquement */
#modal-main-image,
.thumbnail {
    color: transparent !important;
    text-shadow: none !important;
}

/* Styles pour les logos de compétences */
.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.skill-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-header span {
    font-weight: 600;
    font-size: 1rem;
}

/* Ajustements pour le mode sombre */
.dark-mode .skill-icon {
    filter: brightness(1.2);
}

/* Animation au survol de la compétence */
.skill {
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.skill:hover {
    background-color: rgba(94, 96, 206, 0.05);
}

.dark-mode .skill:hover {
    background-color: rgba(115, 113, 252, 0.1);
}

/* Responsive pour les petits écrans */
@media screen and (max-width: 768px) {
    .skill-icon {
        width: 28px;
        height: 28px;
    }
    
    .skill-header {
        gap: 10px;
    }
}

/* Styles pour la photo de profil */
.profile-photo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.profile-photo {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(94, 96, 206, 0.5);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--light-color);
    transition: transform 0.3s ease;
}

.profile-photo:hover img {
    transform: scale(1.02);
}

/* Animation de pulsation */
.profile-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .profile-photo {
        width: 150px;
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .profile-photo {
        width: 120px;
        height: 120px;
    }
}