/* GENERAL */
body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #1e3a8a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #1e3a8a;
    bottom: -10px;
    left: 25%;
}

.btn-primary {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #fff;
    color: #1e3a8a;
    border-color: #1e3a8a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

.text-primary {
    color: #1e3a8a !important;
}

/* NAVBAR */
.navbar {
    background-color: #1e3a8a;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff !important;
}

.navbar-nav {
    margin: 0 auto;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    margin: 0 15px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: all 0.3s ease;
}

.nav-link:hover:before,
.nav-link.active:before {
    width: 100%;
}

/* HERO SECTION */
#hero {
    background-color: #1e3a8a;
    color: #fff;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

#hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}


.profile-picture {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.profile-picture img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    transition: all 0.3s ease;
    
    /* Propriétés ajoutées pour la netteté */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.profile-picture img:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}


.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-text h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

/* ABOUT SECTION */
#about {
    background-color: #fff;
}

.about-content {
    margin-top: 30px;
}

.about-text {
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-highlight {
    font-weight: 700;
    color: #1e3a8a;
}

/* SKILLS SECTION */
#skills {
    background-color: #f8f9fa;
}

.skill-item {
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon i {
    font-size: 40px;
    color: #1e3a8a;
}

.skill-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.skill-level {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.skill-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #1e3a8a;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

.skill-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-top: 5px;
}

/* PROJECTS SECTION */
#projects {
    background-color: #fff;
}

.project-card {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #fff;
    color: #1e3a8a;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background-color: #1e3a8a;
    color: #fff;
    transform: translateY(-3px);
}

.project-content {
    padding: 20px;
    background-color: #fff;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e3a8a;
}

.project-category {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* EXPERIENCE SECTION */
#experience {
    background-color: #f8f9fa;
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
    margin: 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    min-height: 150px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:after {
    content: '';
    display: table;
    clear: both;
}

.timeline-panel {
    position: relative;
    float: left;
    width: 46%;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(even) .timeline-panel {
    float: right;
}

.timeline-item:nth-child(odd) .timeline-panel:before {
    content: '';
    position: absolute;
    top: 26px;
    right: -15px;
    border-top: 15px solid transparent;
    border-left: 15px solid #fff;
    border-bottom: 15px solid transparent;
}

.timeline-item:nth-child(even) .timeline-panel:before {
    content: '';
    position: absolute;
    top: 26px;
    left: -15px;
    border-top: 15px solid transparent;
    border-right: 15px solid #fff;
    border-bottom: 15px solid transparent;
}

.timeline-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.4em;
    line-height: 50px;
    background-color: #1e3a8a;
    color: #fff;
    z-index: 100;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e3a8a;
}

.timeline-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 15px;
    display: block;
}

.timeline-description {
    font-size: 1rem;
    line-height: 1.6;
}

/*education*/
#education{
    background-color:#fff ;
}

.education-block{
    width: 90%;
    margin:0 auto;
    text-align: center;
    padding:30px;
    background-color: #e9e9e9;
    border-radius: 5px;
    border:1px solid #ccc;
    margin-bottom: 20px;
}

.education-block h5{
    color:#888;
    font-size:20px;
    margin-bottom: 15px;
    font-style: italic;
}
.education-block h3{
    color:#007bff;
    margin:15px 0px;
}
.education-block span{
    font-size: 35px;
}
.education-block h4{
    margin-bottom: 20px;
    font-weight: normal;
}
.divider {
    height: 2px;
    width: 100px;
    background: #007bff;
    margin: 0 auto 20px;
    
}


/* CONTACT SECTION */
#contact {
    background-color: #f8f9fa;;
}

.contact-info {
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: #fff;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-details p, .contact-details a {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #1e3a8a;
}

.contact-form .form-control {
    height: 55px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form textarea.form-control {
    height: 180px;
    resize: none;
}

.contact-form .form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.contact-form .btn {
    width: 100%;
}

/* FOOTER */
footer {
    background-color: #1e3a8a;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #fff;
    color: #1e3a8a;
    transform: translateY(-3px);
}

.footer-text {
    font-size: 1rem;
}

.footer-text a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}




/* RESPONSIVE */
@media (max-width: 991px) {
    .navbar-nav {
        background-color: #1e3a8a;
        padding: 20px;
        border-radius: 5px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text h3 {
        font-size: 1.3rem;
    }
    
    .profile-picture img {
        width: 220px;
        height: 220px;
    }
    
    .timeline:before {
        left: 40px;
    }
    
    .timeline-badge {
        left: 40px;
        margin-left: 0;
    }
    
    .timeline-panel {
        width: calc(100% - 90px);
        float: right;
    }
    
    .timeline-item:nth-child(odd) .timeline-panel:before {
        left: -15px;
        right: auto;
        border-right: 15px solid #fff;
        border-left: 0;
    }
}

/* ANIMATIONS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* TYPING EFFECT */
.typing-text {
    border-right: 3px solid #fff;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff }
}

/* PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
