/* GENERAL */

body{
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6{
    font-weight: bold;
}

img{
    max-width: 100%;
    height: auto;
}
section{
    padding: 45px 0 80px 0;
}

ul, ol{
    list-style: none;
}

section .heading{
    text-align: center;
    padding-bottom: 40px;

}

section .heading h2 {
    text-transform: uppercase;

}

.blue-divider{
    width: 100px;
    height: 2px;
    background: #646E9E;
    margin: 0 auto;

}
.white-divider{
    width: 100px;
    height: 2px;
    background: #fff;
    margin: 0 auto;
}

/* MENU */


.navbar{
    background: #646E9E;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.navbar .navbar-nav{
    display: inline-block;
    float: none;
    vertical-align: top;
}

.navbar .navbar-collapse{
    text-align: center;
}

.navbar li a{
    color: #fff !important;
}

.navbar li a:hover, .navbar li.active a{
    color: #646E9E !important;
    background: #fff !important;
}

/* ABOUT */

#about{
    background: #646E9E;
    color: #fff;
    padding-top: 100px;
    padding-bottom: 20px;
}

.profile-picture{
    margin: 0 auto;
    text-align: center;
}

.profile-picture img.img-circle{
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: top;
}

.heading h1, .heading h3{
    font-weight: normal;
}

.button1{
    background: #fff;
    color: #646E9E;
    border-radius: 50px;
    padding: 10px 15px;
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* SKILLS */

#skills{
    background: #fff;
}

#skills .heading h2{
    color: #646E9E;
}

.progress{
    height: 30px;
}

.progress-bar{
    background: #646E9E;
}

.progress-bar h5{
    text-shadow: 1px 1px 1px #000;
}


/* EXPERIENCE */
#experience{
    background: #646E9E;
    color: #fff;
}

#experience .heading h2{
    color: #fff;
}

.timeline{
    position: relative;
    padding: 0;
    list-style: none;
}
.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    left: 50%;
    margin-left: -1px;
}

.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: #fff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -20px;
    background-color: #ddd;
    z-index: 100;
    border-radius: 50%;
}

.timeline-badge .glyphicon {
    font-size: 1.2em;
    top: 0;
}

.timeline-panel-container {
    width: 50%;
    float: left;
}

.timeline-panel-container-inverted {
    width: 50%;
    float: right;
}

.timeline-panel {
    padding: 20px;
    background: #fff;
    color: #646E9E;
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.17);
}


.timeline-panel-container .timeline-panel {
    float: right;
    margin-right: 30px;
}

.timeline-panel-container-inverted .timeline-panel:after {
    left: -14px;
    border-width: 14px 14px 14px 0;
    border-color: transparent #fff transparent transparent;
}

.timeline-year{
    display: block;
    font-weight: bold;
    font-size: 0.7em;
    margin-bottom: -15px;
}

/* EDUCATION */

#education{
    background: #fff;
}

#education .heading h2{
    color: #646E9E;
}
.education-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.education-col {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
}

.education-block{
    text-align: center;
    padding: 30px;
    background: #ddd;
    border-radius: 10px;
    border: 2px solid #ccc;
    margin: 0 auto 20px auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.education-block h5{
    color: #888;
    font-size: 15px;
    margin-bottom: 15px;
}

.education-block .glyphicon{
    font-size: 40px;
}

.education-block h3{
    color: #646E9E;
}

.education-block h4{
    margin-bottom: 20px;
}

.education-block p{
    font-weight: bold;
}

.education-block .blue-divider{
    margin-bottom: 20px;
}

/* PORTFOLIO */

#portfolio{
    background: #646E9E;
}


#portfolio .heading h2{
    color: #fff;
}

#portfolio .thumbnail img{
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}



#portfolio .thumbnail img:hover{

    filter: none;
    -webkit-filter: none;
}


/* FOOTER */

footer{
    background: #646E9E;
    color: #fff;
    padding: 20px;
}

footer .glyphicon{
    font-size: 20px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .timeline-badge {
        font-size: 1.2em;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .timeline-year {
        font-size: 0.7em;
    }
}

@media (max-width: 767px) {
    .timeline-panel-container, .timeline-panel-container-inverted {
        width: 100%;
        float: none;
        margin: 0;
    }
    .timeline:before {
        left: 20px;
    }
    .timeline > li .timeline-badge {
        left: 20px;
        margin-left: -25px;
    }
    .timeline-panel {
        float: none;
        margin: 0 0 0 50px;
    }
    .timeline-panel:after {
        right: auto;
        left: -14px;
        border-left: 0 solid #fff;
        border-right: 14px solid #fff;
    }

    .education-col {
        display: flex;
    }

    .education-block {
        flex: 1;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .heading h1 {
        font-size: 1.5em;
    }
    .heading h3 {
        font-size: 1em;
    }
    .button1 {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}


/* Language Selector */
.language-selector-container {
    position: fixed;
    top: 15px; /* Ajustez la position verticale si nécessaire */
    right: 15px; /* Ajustez la position horizontale si nécessaire */
    z-index: 1000; /* Assurez-vous qu'il soit au-dessus des autres éléments */
}

.language-selector {
    display: flex;
    gap: 5px; /* Espace entre les boutons */
}

.language-selector button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.language-selector button:hover {
    opacity: 1;
}

.language-selector img {
    border: 1px solid #ccc; /* Ajoute une petite bordure aux drapeaux */
    border-radius: 3px;
}