/* GENERAL */
body {
    font-family: 'Roboto', sans-serif;
}

a:visited, a:link {
    text-decoration: none;
}

img{
    max-width: 100%;
    height: auto;
}
section{
    padding: 65px 0 80px 0;
}
section .heading{
    text-align: center;
    padding-bottom: 40px;
}

.divider{
    width: 150px;
    height: 3px;
    background-color:#B0371C;
    margin: 0 auto 40px;
}

.divider.whit {
    background-color: #B0371C;
    margin: 0 auto 40px;
}

ul {
    list-style: none;
}


h1 {
    font-size: 36px; 
}

h2 {
    font-size: 34px; 
}

h3 {
    font-size: 26px; 
}

h4 {
    font-size: 22px; 
}

h5 {
    font-size: 20px; 
}

p {
    font-size: 16px; 
}


/* NAVBAR */
.navbar {
    background-color:   #FBF5F4;
    letter-spacing: 2px;
    font-weight: bold;
}

.navbar-nav {
    margin: 0 auto;
    text-align: center;
}

.nav-link {
    color: rgb(0, 0, 0) !important; 
    margin: 0 6px;
}

.nav-link.active,
.nav-link:hover {
    color:  #B0432B!important;
}

.nav-link {
    display: flex;
    align-items: center; 
}

.nav-link i {
    margin-right: 10px; 
}

/* Style général pour le lien GitHub */
.github-link {
    font-size: 1.2rem; 
    display: flex;
    align-items: center;
    padding: 10px 20px; 
    border: 2px solid #000000; 
    border-radius: 5px; 
    transition: box-shadow 0.3s ease-in-out;
}

/* Style pour l'icône GitHub */
.github-link i {
    font-size: 2rem; 
    margin-right: 8px; 
}


/* A PROPOS */
#aPropos{
    background-color: #FBF5F4 ;
}

.profile-picture{
    text-align: center;
    margin: 0px auto 30px;
}

.rounded-circle {
    width: 250px; 
    height: 250px;
    border: 2px solid#000000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
    margin: 20px auto; 
    display: block; 
    
}

#aPropos .heading h1 { 
    margin-bottom: 20px;
    font-style: italic;
    
}

#aPropos .heading h3 {
    color: #333333; 
    font-weight: bold;
    font-size: 1.40rem;
    line-height: 1.6; 
}

#aPropos .button1 {
    font-weight: bold;
    background-color: #B0371C;
    color: #FBF5F4;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    transition: all 0.3s ease; 
}

#aPropos .button1:hover {
    background-color: #FBF5F4; 
    color: #B0371C; 
    transform: scale(1.05); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

/* COMPETENCES */
#competences {
    background-color:  #F7ECE9; 
    color: #333333; 
    padding: 50px 0;
}

#competences.heading h2 {
    color: #333333;
}

#competences .progress {
    height: 45px;
    margin: 30px 20px;
}

#competencesls .progress:last-child {
    margin-bottom: 0px;
}

#competences .progress-bar {
    background-color:#B0432B;;
}

#competences .progress-bar h5 {
    text-shadow: 1px 1px 1px black;
    margin-bottom: 3px;
}

/* EXPERIENCE */
.timeline-body {
    text-align: justify;
}
#experience {
    background-color: #FBF5F4;
}

#experience .heading h2 {
    color: #333333 !important;
    
}
.timeline {
    padding: 30px 10px;
    position: relative;
}

.timeline::before {
    content: " ";
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 5px;
    background-color: #333;
    left: 50%;
    margin-left: -2.5px;
}

.timeline > li {
    margin-bottom: 20px;
    position: relative;
}

.timeline > li:before, .timeline > li:after {
    content: " ";
    display: table;
}

.timeline > li:after {
    clear: both;
}

.timeline li .timeline-badge {
    color: #333333 ;
    width: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -25px;
    background-color:  #F7ECE9;
    border-radius: 50%;
}

.timeline-panel-container {
    width: 50%;
    float: left;
}

.timeline-panel-container-inverted {
    width: 50%;
    float: right;
}

.timeline-panel{
    width: 90%;
    float: right;
    margin-right: 40px;
    border: 1px solid  #FBF5F4;
    border-radius: 7px;
    padding: 20px 25px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0,0,0, 0.175);
    background-color:  #F7ECE9;
    
}

.timeline-panel-container-inverted .timeline-panel {
    float: left;
    margin-left: 40px;
}

.timeline-panel:after{
    position: absolute;
    top: 27px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-right: 14px solid #F7ECE9;
    border-bottom: 14px solid transparent;
    content: " ";
}

.timeline-panel-container-inverted .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}

.timeline-heading h3 {
    margin-top: 5px;
    font-size: 20px;
}

.timeline-heading h4 {
    color:#B0432B ;
}

.timeline .text-muted {
    color: #B0432B !important; 
}

/* FORMATION */
#formation {
background-color:  #F7ECE9;
}
#formation.heading h2 {
    color: #333333;
    margin: 15px 0px;
}

#formation .col-md-6 {
    display: flex;
    align-items: stretch;
}

.education-block {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    background:  #FBF5F4;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2); 
    transition: box-shadow 0.3s ease;
}

.justified-text {
    text-align: justify; 
} 

.education-block:hover {
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.4); 
}

.education-block h5 {
    color:#B0432B;
    margin-bottom: 15px;
}

.education-block span {
    font-size: 35px;
}

.education-block h3 {
    color: #B0432B;
    margin: 15px 0px;
}

.education-block h4{
    margin-bottom: 20px;
    font-weight: normal;
}

/* PORTFOLIO */
#portfolio{
    background-color: #FBF5F4 ;
}

#portfolio .heading h2{
    color: #333333;
}

#portfolio img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

#portfolio img:hover{
    filter: none;
    -webkit-filter: none;
}

#portfolio .col-md-4 {
    margin-bottom: 20px;
}

.image-container {
    position: relative;
    width: 100%; 
    height: 230px; 
    overflow: visible; 
}

.img-thumbnail {
    display: block;
    height: 100%; 
    transition: transform 0.3s ease-in-out;
    filter: brightness(0.95) contrast(1.05); 
    transition: filter 0.3s ease-in-out;
    box-shadow: 5px 5px 5px rgba(50, 10, 5, 0.3); 

}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(50, 10, 5, 0.7);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color:#FBF5F4;
    font-size: 18px;
    text-align: center;
    padding: 10px;
}

.image-container:hover .overlay {
    opacity: 1;
}

.overlay p {
    text-align: justify;
    margin-top: 10px;
}

/* Mes ATOUTS*/
#mesAtous {
    background-color:  #F7ECE9;
}
#mesAtous .heading h2{
    color: #333333;
}

#mesAtous p{
    font-size: 22px;
    font-weight: bold;
}

#myCarousel .carousel-item {
    padding: 30px 30px 90px;
}

#myCarousel .carousel-item h3 {
    color:#B0432B;
    font-style: italic;
}

.carousel-control-prev,
.carousel-control-next {
    top: 50%; 
    transform: translateY(-50%); 
    width: 5%; 
}

.carousel-control-prev {
    left: -55px; 
}

.carousel-control-next {
    right: -55px; 
}

/*FOOTER */
footer {
    background-color: #FBF5F4;
    padding: 20px 0px 40px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

footer span {
    color: #000000;
    font-size: 25px;
    line-height: 35px;
}

.footer-info p {
    margin: 0 0 10px;
    color: #000000;
}

.footer-info a {
    color: #000000;
    text-decoration: none;
}

.footer-info a[href^="tel:"],
.footer-info a[href^="mailto:"] {
    font-weight: bold;
    color: #000000;
    text-decoration: none;
}

.footer-links {
    text-align: center;
    margin-top: 20px;
}

.footer-links a {
    display: inline-block;
    margin: 0 10px;
    font-size: 30px; 
    
    transition: transform 0.3s ease, color 0.3s ease;
    border: none; 
    background: none; 
    padding: 0; 
    text-decoration: none; 
}

.footer-links a .bi {
    display: inline; 
    vertical-align: middle; 
}

.linkedin-link {
    color: #0077B5; 
}

.github-link {
    color: #181717; 
}

.footer-links a:hover {
    transform: scale(1.2); 
}

.footer-links .download-cv {
    display: inline-block;
    margin: 0 10px;
    color: #B0563D; 
    text-decoration: none;
    font-size: 16px; 
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links .download-cv:hover {
    color: #B0371C; 
    transform: scale(1.1);
}

.footer-links .download-cv i {
    margin-right: 5px; 
}

/*RESPONSIVE*/
@media (max-width: 768px) {
    .heading h1 {
        font-size: 1.5rem;
    }
    .heading h3 {
        font-size: 1rem; 
        text-align: justify; 
        letter-spacing: -0.5px; 
        hyphens: auto;
        word-wrap: break-word;
    }
    .footer-links a {
        display: block; 
        margin: 10px 0; 
        transition: color 0.3s ease, opacity 0.3s ease;
    }

    /*EXPERIENCE*/
    #experience h4, h3  {
        font-size: 1.1rem; 
    }

    #experience .timeline-body p {
        font-size: 1rem; 
        text-align: justify; 
        hyphens: auto; 
        overflow-wrap: break-word; 
        word-break: break-word; 
        letter-spacing: normal; 
    }

    /* Cacher la ligne verticale de la timeline */
    .timeline::before {
    display: none;
    }

    /* Cacher les badges de la timeline */
    .timeline .timeline-badge {
    display: none;
    }

    /* Appliquer une structure verticale à tous les conteneurs */
    .timeline-panel-container-inverted, 
    .timeline-panel-container {
    float: none !important; 
    width: 100% !important; 
    margin: 0 auto !important; 
    padding: 0 !important; 
    box-sizing: border-box; 
    }

    /* Rendre chaque élément de la timeline vertical */
    .timeline-panel {
    margin: 15px 0 !important; 
    padding: 15px !important; 
    width: 100% !important; 
    border-radius: 7px;
    background-color: #F7ECE9;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
    border: 1px solid #FBF5F4;
    box-sizing: border-box;
}

    .timeline-heading h4 {
    font-size: 1.2rem !important;
    color: #B0432B;
    margin: 0 !important; 
    }

    .timeline-heading h3 {
    font-size: 1rem !important;
    margin: 5px 0 !important; 
}   

    /* Ajuster les paragraphes dans la timeline-body */
    .timeline-body p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important; 
    text-align: justify !important; 
    hyphens: auto;
    word-wrap: break-word;
    margin: 0 auto !important; 
    padding: 0 !important; 
    }

    /*EDUCATION*/
    #education .justified-text p {
    word-spacing: -0.5px !important; 
    letter-spacing: -0.1px !important; 
    line-height: 1.6; 
    text-align: justify !important; 
    hyphens: auto;
    word-wrap: break-word;
    margin: 0; 
    padding: 0; 
    }
    
    #experience {
    margin-bottom: -70px; 
    }

    @media (min-width: 768px) and (max-width: 1024px) {
    
    #experience .timeline-body p {
        text-align: justify; 
        letter-spacing: -0.5px !important; 
        word-spacing: -0.5px !important; 
        }
    }
}

