/* Variables de couleurs thématique cybersécurité */
:root {
    --primary-dark: #0a192f;      /* Bleu marine professionnel */
    --primary-blue: #1e6feb;      /* Bleu vif IT */
    --accent-cyan: #00d4aa;       /* Cyan pour accents */
    --neutral-light: #f8f9fa;
    --neutral-gray: #6c757d;
    --neutral-dark: #343a40;
}

/* Navigation améliorée */
.navbar {
    background-color: var(--primary-dark);
    border-bottom: 3px solid var(--accent-cyan);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: white !important;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-cyan) !important;
}

.text-cyan {
    color: var(--accent-cyan);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-cyan) !important;
    background-color: rgba(0, 212, 170, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent-cyan) !important;
    background-color: rgba(0, 212, 170, 0.15);
}

.nav-link i {
    margin-right: 8px;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* Dropdown amélioré */
.dropdown-menu {
    background-color: var(--primary-dark);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 212, 170, 0.1);
    color: var(--accent-cyan);
    padding-left: 2rem;
}

.dropdown-divider {
    border-color: rgba(0, 212, 170, 0.3);
    margin: 0.5rem 1.5rem;
}

/* Bouton toggler personnalisé */
.navbar-toggler {
    border: 2px solid var(--accent-cyan);
    padding: 0.375rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 212, 170, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Header - Section d'accueil */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a365d 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 0 0 20px 20px;
    margin-bottom: 3rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Boutons améliorés */
.btn-cv {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cv:hover {
    background-color: #00b894;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

.btn-objectifs {
    background-color: transparent;
    color: white;
    border: 2px solid var(--accent-cyan);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-objectifs:hover {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-danger {
    background-color: #e63946;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #d62839;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.btn-linkedin {
    background-color: #0077b5;
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-linkedin:hover {
    background-color: #005582;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

/* Sections "À propos" et "Projets" */
.about-me-section, .projects-section {
    padding: 3rem 0;
}

.about-me-section h2, .projects-section h2 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-cyan);
    display: inline-block;
}

.about-me-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-dark);
    max-width: 900px;
}

/* Cartes de projets améliorées */
.project-card .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.project-card .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-cyan);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-text {
    flex-grow: 1;
    color: var(--neutral-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card .btn-primary {
    background-color: var(--primary-blue);
    border: none;
    font-weight: 500;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.card .btn-primary:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

/* Footer amélioré */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .welcome-section {
        padding: 3rem 1rem;
    }
    
    .welcome-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        margin: 0.2rem 0;
        padding: 0.75rem 1rem !important;
    }
    
    .about-me-section, .projects-section {
        padding: 2rem 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        border: none;
        border-left: 3px solid var(--accent-cyan);
        margin: 0.5rem 0 0.5rem 1rem;
        box-shadow: none;
    }
}

/* Animation subtile pour les sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-me-section, .projects-section, .project-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Modal améliorée */
.modal-content {
    background: var(--primary-dark);
    color: white;
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    max-width: 500px;
    margin: 1rem;
}

.modal-content .btn-primary {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
}

.modal-content .btn-primary:hover {
    background-color: #00b894;
}

/* Indicateur de page active pour la navigation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Effet de flou au scroll pour navbar */
.navbar.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(10, 25, 47, 0.95);
}

/* Styles pour la page "À propos de moi" */

/* Sections profil et expériences */
.about-me-section h2 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-cyan);
}

.about-me-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-dark);
    margin-bottom: 1.5rem;
}

/* Section qualités */
.timeline-section h2 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 2rem;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.timeline-content {
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.bg-purple-600 { background-color: #6f42c1 !important; }
.bg-indigo-600 { background-color: #6610f2 !important; }
.bg-blue-600 { background-color: var(--primary-blue) !important; }

/* Barres de progression améliorées */
.progress {
    height: 25px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--neutral-light);
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: width 0.8s ease-in-out;
}

/* Carousel OS */
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    background: var(--neutral-light);
    border-radius: 15px;
    padding: 2rem 0;
    margin: 2rem 0;
}

.carousel-track {
    display: flex;
}

.carousel-slide {
    display: flex;
    gap: 40px;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.carousel-slide img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.carousel-slide img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Section certifications */
.certifications-section h2 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 2rem;
}

.certifications-section .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.certifications-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.certifications-section .card-img-top {
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-cyan);
}

.certifications-section .card-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.certifications-section .card-text {
    color: var(--neutral-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Boutons CV */
#CV .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

#CV .btn-primary {
    background-color: var(--primary-blue);
    border: none;
}

#CV .btn-success {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
    border: none;
}

#CV .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Visualiseur d'image amélioré */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(230, 57, 70, 0.8);
    transform: rotate(90deg);
}

/* Style pour les titres de compétences */
h1#skills, h2.text-2xl {
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

h1#skills::after, h2.text-2xl::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-cyan);
}

/* Conteneur principal */
.container.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
/* Styles pour la version compacte */

/* Mini-graphiques donut */
.donut-chart {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent-cyan) calc(var(--percent, 0) * 1%),
        #e9ecef 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.donut-chart::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

.donut-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
    z-index: 1;
}

.mini-chart {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mini-chart:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Accordéon */
.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    padding: 1rem;
    font-size: 0.95rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 212, 170, 0.1);
    color: var(--primary-dark);
}

.accordion-body {
    padding: 1rem;
    background-color: white;
}

/* Badges de couleur */
.bg-purple {
    background-color: #6610f2 !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .donut-chart {
        width: 60px;
        height: 60px;
    }
    
    .donut-chart::before {
        width: 45px;
        height: 45px;
    }
    
    .donut-value {
        font-size: 0.85rem;
    }
    
    .mini-chart h6 {
        font-size: 0.85rem;
    }
    
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}