/* ========================================================================= */
/* RÉINITIALISATION ET STYLES DE BASE */
/* ========================================================================= */

/* Réinitialisation CSS (Reset) pour tous les éléments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* S'assure que le padding et la bordure sont inclus dans la largeur/hauteur */
}

/* Style de base pour le corps de la page */
body {
    font-family:  'century-gothic',  'Times New Roman', Times, serif, sans-serif;
    margin: 0;
    padding: 0;
}

/* Style de base pour les liens */
a {
    text-decoration: none; /* Supprime le soulignement par défaut */
}

/* ========================================================================= */
/* BARRE DE NAVIGATION (navbar) - DESKTOP */
/* ========================================================================= */

/* Styles de base pour la barre de navigation */
.navbar {
    position: fixed; /* Fixe la barre en haut de la page */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #080930; /* Bleu foncé */
    color: #ffffff;
    padding: 10px 20px;
    z-index: 1000;
    transition: background-color 0.3s ease;
    display: none; /* Masquer par défaut (sera affiché via media query sur mobile/petit écran) */
}

/* Styles pour les éléments du menu principal */
.navbar .menu {
    display: flex;
    justify-content: center; /* Centre le menu horizontalement */
    align-items: center;
    height: 100%;
}

.navbar .menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar .menu ul li {
    position: relative;
    margin: 0 15px;
}

.navbar .menu ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    display: block;
}

.navbar .menu ul li a:hover {
    background-color: #333a45; /* Gris foncé au survol */
}

/* Styles pour les sous-menus (desktop) */
.navbar .menu ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333a45;
    padding: 10px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar .menu ul li .submenu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #333a45 transparent; /* Petite flèche */
}

/* Affiche le sous-menu lors du survol (desktop) */
.navbar .menu ul li:hover .submenu {
    display: block;
}


/* ========================================================================= */
/* SIDEBAR (Menu Latéral/Mobile) */
/* ========================================================================= */

.sidebar {
    width: 250px;
    background-color: #080930;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -250px; /* Cache la sidebar par défaut */
    transition: right 0.3s ease;
    padding: 20px;
    color: #ffffff;
    z-index: 10001;
}

.sidebar.active {
    right: 0; /* Affiche la sidebar lorsqu'elle est active */
}

/* Section Profil dans la Sidebar */
.sidebar .profile {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar .profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #f7d138; /* Bordure jaune */
}

.sidebar .profile h2 {
    font-size: 18px;
    margin-top: 10px;
}

/* Menu de navigation dans la Sidebar */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 10px 0;
    position: relative;
    border-bottom: 1px solid #333a45;
}

nav ul li:last-child {
    border-bottom: none;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 10px;
    position: relative;
}

nav ul li a:hover {
    background-color: #333a45;
}

/* Bouton/Lien pour le sous-menu (menu-toggle) dans la Sidebar */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    /* Styles spécifiques pour le mobile/petit écran appliqués via media query */
}

.menu-toggle .arrow {
    margin-left: 8px;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
    /* Styles supplémentaires pour le mobile/petit écran appliqués via media query */
}

/* Sous-menus dans la Sidebar */
.submenu {
    display: none;
    list-style-type: none;
    padding-left: 20px;
    background-color: #333a45;
}

.submenu li {
    margin: 0;
}

.submenu li a {
    font-size: 14px;
    padding: 10px;
    display: block;
    color: #ffffff;
    text-decoration: none;
}

.submenu li a:hover {
    background-color: #444c56;
}

/* Sélécteur de langue dans la Sidebar */
.language-switcher {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.language-switcher select {
    padding: 5px;
    background-color: #ffffff;
    color: #20232a;
    border: none;
    font-size: 14px;
    border-radius: 5px;
}


/* ========================================================================= */
/* GESTION DE L'AFFICHAGE (DESKTOP vs MOBILE) */
/* ========================================================================= */

/* Masquer l'élément pour le mobile/petit écran (ou l'inverse) */
#no_desktop {
    display: none; /* Masqué par défaut (desktop) */
}

/* ========================================================================= */
/* MEDIA QUERIES (ADAPTATION RESPONSIVE) */
/* ========================================================================= */

@media (max-width: 767px) {
    /* Afficher la barre de navigation sur les petits écrans (si un élément devait persister) */
    .navbar {
        display: block;
    }
}

@media (max-width: 768px) {
    
    /* Masquer certains éléments spécifiques sur les petits écrans */
    #specific {
        display: none;
    }

    /* Masquer la navbar desktop sur les petits écrans (si elle est affichée) */
    .navbar {
        display: none;
    }

    /* Afficher le bouton/lien menu-toggle (pour la sidebar) */
    .menu-toggle {
        display: flex;
    }

    /* Afficher l'élément `#no_desktop` sur les petits écrans */
    #no_desktop {
        display: flex;
    }

    /* Gérer la sidebar sur mobile */
    .sidebar {
        right: -250px;
    }
    .sidebar.active {
        right: 0;
    }

    /* Styles spécifiques pour la flèche du menu-toggle sur mobile */
    .menu-toggle .arrow {
        margin-left: 8px;
        font-size: 14px;
        line-height: 1;

        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        background-color: #333a45;
        color: #ffffff;
        border: 2px solid #ffffff;
        border-radius: 4px;
        transition: transform 0.3s ease;
        font-size: 14px;
        text-align: center;
    }

    /* Styles pour les icônes sociales (partage) sur mobile */
    .icon-wrapper {
        display: flex;
        align-items: center;
    }

    .trigger-icon {
        font-size: 2rem;
        cursor: pointer;
        color: white !important;
    }

    .social-media-icons {
        display: none;
        flex-direction: row;
    }

    .social-media-icons a {
        font-size: 1.5rem;
        color:white !important;
        text-decoration: none;
        margin-right: 20px;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .show-icons {
        display: flex; /* Afficher les icônes sociales en ligne */
    }

    .social-media-icons a:hover {
        color: #0077b5;
        transform: scale(1.2);
    }
    
    /* Adaptations pour les sections de compétences (skills-section) */
    .skill-item {
        flex: 0 0 50%; /* 2 colonnes sur petits écrans */
        max-width: 50%;
    }

    /* Adaptations pour le carrousel */
    .carousel-item {
        text-align: center;
    }
    
    .text-overlay {
        padding: 10px;
    }

    /* Adaptations pour la Timeline 2 */
    .main-timeline2:before {
        left: 0;
        right: auto;
    }

    .main-timeline2 .timeline,
    .main-timeline2 .timeline:nth-child(even),
    .main-timeline2 .timeline:nth-child(odd) {
        width: 100%;
        float: none;
        padding: 20px 30px;
        margin: 0 0 30px;
        border-right: none;
        border-left: 7px solid #084772;
        border-radius: 30px 0 0;
        right: auto;
        left: 0;
    }

    .main-timeline2 .icon {
        left: auto;
        right: 0;
    }

    /* Adaptations pour la Timeline 7 */
    .main-timeline7 .timeline {
        width: 100%;
    }
    .main-timeline7 .timeline:nth-child(even),
    .main-timeline7 .timeline:nth-child(odd) {
        margin: 0;
    }
    .main-timeline7 .timeline:before,
    .main-timeline7 .timeline:nth-child(2n):before {
        width: 30px;
        height: 100%;
        left: 25px;
    }
    .main-timeline7 .timeline-icon,
    .main-timeline7 .timeline:nth-child(2n) .timeline-icon {
        left: 0;
    }
    .main-timeline7 .timeline:nth-child(2n) .year,
    .main-timeline7 .year {
        text-align: left;
        padding: 0 30px 0 100px;
    }
    .main-timeline7 .timeline:nth-child(2n) .year:before,
    .main-timeline7 .year:before {
        left: auto;
        right: 4px;
    }
    .main-timeline7 .year:after {
        left: auto;
        right: 50px;
        border-right: 10px solid #303a3b;
        border-left: none;
    }
    .main-timeline7 .timeline-content .description {
        color: #666;
    }
    .main-timeline7 .timeline-content,
    .main-timeline7 .timeline:nth-child(2n) .timeline-content {
        text-align: left;
        padding: 18px 40px 18px 100px;
    }
    .main-timeline7 .timeline-content:after,
    .main-timeline7 .timeline-content:before {
        width: 0;
        height: 0;
    }

    /* Adaptations pour la Timeline 3 */
    .main-timeline3:before {
        width: 8px;
        top: 0;
        left: 12px;
        transform: translateX(0);
    }
    .main-timeline3 .timeline,
    .main-timeline3 .timeline:nth-child(even),
    .main-timeline3 .timeline:nth-child(odd) {
        width: 100%;
        float: none;
        text-align: left;
        padding: 0 0 0 60px;
        margin: 0 0 30px;
    }
    .main-timeline3 .timeline:before,
    .main-timeline3 .timeline:nth-child(2n):before {
        width: 20px;
        height: 20px;
        border: 3px solid #fff;
        top: 38px;
        left: 6px;
    }
    .main-timeline3 .timeline:nth-child(2n) .year {
        right: auto;
        left: -20px;
        border-radius: 10px 10px 10px 0;
    }
    .main-timeline3 .timeline:nth-child(2n) .year:before {
        border-left: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-right: none;
        right: auto;
        left: 0;
    }
}

@media only screen and (max-width:480px) {
    /* Taille de police réduite pour la Timeline 2 sur les très petits écrans */
    .main-timeline2 .title {
        font-size: 18px;
    }
}

@media only screen and (max-width:576px) {
    /* Ajustement du padding des cartes de compétences sur très petits écrans */
    .skill-card {
        padding: 10px;
    }
}

@media only screen and (max-width:990px) {
    /* Adaptations pour la Timeline 3 */
    .main-timeline3:before {
        top: 8%;
    }
    .main-timeline3 .timeline {
        padding: 10px 10px 10px 100px;
    }
    .main-timeline3 .timeline:nth-child(2n) {
        padding: 10px 100px 10px 10px;
    }
}


/* ========================================================================= */
/* ICÔNES SOCIALES AVEC EFFET (DESKTOP) */
/* ========================================================================= */

/* Container pour l'icône principale et les icônes sociales */
.icon-container {
    position: relative;
    display: inline-block;
}

/* Style de l'icône principale (partage) */
.main-icon {
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* Conteneur des icônes sociales */
.social-icons {
    position: absolute;
    top: 0;
    left: 0;
    display: none; /* Masqué par défaut */
}

/* Icônes sociales individuelles avec position en escalier (desktop) */
.social-icons a {
    position: absolute;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Position décalée pour l'effet d'escalier */
.social-icons a:nth-child(1) { top: 40px; left: 40px; }
.social-icons a:nth-child(2) { top: 80px; left: 80px; }
.social-icons a:nth-child(3) { top: 120px; left: 120px; }
.social-icons a:nth-child(4) { top: 160px; left: 160px; }

/* Afficher les icônes avec l'effet de rebond (lorsque la classe `.show` est active) */
.show a {
    opacity: 1;
    transform: scale(1);
    animation: bounce 0.6s ease-out forwards;
}

/* Keyframes pour l'effet de rebond (bounce) */
@keyframes bounce {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Effet au survol pour les icônes sociales */
.social-icons a:hover {
    color: #0077b5;
    transform: scale(1.2);
}


/* ========================================================================= */
/* STYLES DES SECTIONS SPÉCIFIQUES */
/* ========================================================================= */

/* Section avec image de fond */
section {
    background: transparent;
}

/* Titres/Sous-titres dactylographiés */
.handwritten-title {
    margin: 10px 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

@keyframes animtext {
    from {
        width: 0;
        transition: all 2s ease-in-out;
    }
}

.handwritten-title, .handwritten-subtitle {
    color: white;
}

/* Carrousel et Overlay de Texte */
.carousel-item {
    position: relative;
}

#spe img {
    width: 100%;
    height: auto;
}

.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
}

/* Section Compétences (Skills) */
.skills-section {
    padding: 50px 0;
    text-align: center;
    background-color: #f8f9fa; /* Light background for the section */
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-item {
    flex: 0 0 25%; /* 4 colonnes sur desktop */
    max-width: 25%;
    padding: 15px;
    box-sizing: border-box;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.skill-item img {
    border: 2px solid black;
    border-radius: 15px;
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.5s ease;
}

/* Animation au survol/focus */
.skill-item:hover img,
.skill-item:focus img {
    transform: scale(1.1) rotate(15deg);
}

/* Animation au clic */
.skill-item:active img {
    transform: scale(0.9) rotate(-15deg);
}

/* Carte de Compétence spécifique (utilisée dans la section skills-section) */
.skill-card {
    background: #fff;
    border: 2px solid #58b25e; /* Bordure verte */
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.skill-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.skill-card img {
    max-width: 100%;
    height: auto;
}

/* Footer (Pied de page) */
.footer {
    background-color: #080930;
    color: white;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 1em;
    z-index: 1;
}

.footer p {
    margin: 0;
}

/* Keyframes pour l'effet 'boom' (non utilisé directement dans les éléments précédents) */
@keyframes boom {
    0% {
        transform: scale(0.5) rotate(-15deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(15deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Personnalisation des Cartes (Bootstrap) */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-body {
    text-align: center;
}

.card img {
    border-radius: 10px 10px 0 0;
}

/* Style pour l'Accordion (Bootstrap) */
.btn-link {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Carrousel "About Me" */
#aboutMeCarousel .carousel-item {
    transition: transform 1.5s ease, opacity 1s ease;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 15px;
}

#aboutMeCarousel img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#aboutMeCarousel img:hover {
    transform: scale(1.05);
}

#aboutMeCarousel h4 {
    font-weight: 700;
    color: #343a40;
}

#aboutMeCarousel p.lead {
    font-size: 1.1rem;
    color: #555;
}

#aboutMeCarousel p {
    font-size: 1rem;
    color: #666;
}

#aboutMeCarousel .carousel-indicators [data-bs-target] {
    background-color: #343a40;
}

#aboutMeCarousel .carousel-indicators [data-bs-target].active {
    background-color: #007bff;
}

#aboutMeCarousel .carousel-inner {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

#aboutMeCarousel .carousel-control-prev-icon,
#aboutMeCarousel .carousel-control-next-icon {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

/* Style pour les informations de contact */
.list-unstyled li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.list-unstyled i {
    color: #007bff;
    margin-right: 10px;
}

/* Style des boutons sociaux */
.btn-outline-primary, .btn-outline-info, .btn-outline-danger {
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-outline-primary i,
.btn-outline-info i,
.btn-outline-danger i {
    font-size: 1.2em;
}

/* Bordure jaune */
.yellow-border {
    border: 5px solid rgb(225, 225, 37);
    padding: 5px;
}

/* Section Parallax */
.parallax-section {
    background-image: url('https://via.placeholder.com/1920x800');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 200px 0;
    text-align: center;
}

.parallax-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.parallax-content p {
    font-size: 24px;
}

.text-white {
    color: #fff;
}

/* Témoignages (Testimonials) */
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #ddd;
}

/* Badges de catégorie pour les cartes */
.position-relative {
    position: relative;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ========================================================================= */
/* TIMELINES (CHRONOLOGIES) */
/* ========================================================================= */

/* --- Timeline Demo - 2 --- */
.main-timeline2 {
    padding-top: 50px;
    overflow: hidden;
    position: relative;
}

.main-timeline2:before {
    content: "";
    width: 7px;
    height: 100%;
    background: #084772;
    margin: 0 auto;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
}

.main-timeline2 .timeline {
    width: 50%;
    float: left;
    padding: 20px 60px;
    border-top: 7px solid #084772;
    border-right: 7px solid #084772;
    border-radius: 0 30px 0 0;
    position: relative;
    right: -3.5px;
    opacity: 0;
    animation: fade-in 0.5s forwards;
}

.main-timeline2 .icon {
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: #e84c47;
    border: 1px solid #fff;
    text-align: center;
    font-size: 25px;
    color: #fff;
    box-shadow: 0 0 0 2px #e84c47;
    position: absolute;
    top: -30px;
    left: 0;
}

.main-timeline2 .timeline-content {
    display: block;
    padding: 30px 10px 10px;
    border-radius: 20px;
    background: #e84c47;
    color: #fff;
    position: relative;
}

.main-timeline2 .timeline-content:hover {
    text-decoration: none;
    color: #fff;
}

.main-timeline2 .timeline-content:after,
.main-timeline2 .timeline-content:before {
    content: "";
    display: block;
    width: 10px;
    height: 50px;
    border-radius: 10px;
    background: #e84c47;
    border: 1px solid #fff;
    position: absolute;
    top: -35px;
    left: 50px;
}

.main-timeline2 .timeline-content:after {
    left: auto;
    right: 50px;
}

.main-timeline2 .title {
    font-size: 24px;
    margin: 0;
}

.main-timeline2 .description {
    font-size: 15px;
    letter-spacing: 1px;
    margin: 0 0 5px;
}

/* Alternance des côtés */
.main-timeline2 .timeline:nth-child(2n) {
    border-right: none;
    border-left: 7px solid #084772;
    border-radius: 30px 0 0;
    right: auto;
    left: -3.5px;
}

.main-timeline2 .timeline:nth-child(2n) .icon {
    left: auto;
    right: 0;
    box-shadow: 0 0 0 2px #4bd9bf;
}

.main-timeline2 .timeline:nth-child(2) {
    margin-top: 130px;
}

.main-timeline2 .timeline:nth-child(odd) {
    margin: -130px 0 30px;
}

.main-timeline2 .timeline:nth-child(even) {
    margin-bottom: 80px;
}

.main-timeline2 .timeline:first-child,
.main-timeline2 .timeline:last-child:nth-child(even) {
    margin: 0 0 30px;
}

/* Couleurs alternées */
.main-timeline2 .timeline:nth-child(2n) .icon,
.main-timeline2 .timeline:nth-child(2n) .timeline-content,
.main-timeline2 .timeline:nth-child(2n) .timeline-content:after,
.main-timeline2 .timeline:nth-child(2n) .timeline-content:before {
    background: #4bd9bf;
}

.main-timeline2 .timeline:nth-child(3n) .icon,
.main-timeline2 .timeline:nth-child(3n) .timeline-content,
.main-timeline2 .timeline:nth-child(3n) .timeline-content:after,
.main-timeline2 .timeline:nth-child(3n) .timeline-content:before {
    background: #ff9e09;
}

.main-timeline2 .timeline:nth-child(3n) .icon {
    box-shadow: 0 0 0 2px #ff9e09;
}

.main-timeline2 .timeline:nth-child(4n) .icon,
.main-timeline2 .timeline:nth-child(4n) .timeline-content,
.main-timeline2 .timeline:nth-child(4n) .timeline-content:after,
.main-timeline2 .timeline:nth-child(4n) .timeline-content:before {
    background: #3ebae7;
}

.main-timeline2 .timeline:nth-child(4n) .icon {
    box-shadow: 0 0 0 2px #3ebae7;
}

/* Animation et délai pour la Timeline 2 */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-timeline2 .timeline:nth-child(1) {
    animation-delay: 0.2s;
}

.main-timeline2 .timeline:nth-child(2) {
    animation-delay: 0.4s;
}

.main-timeline2 .timeline:nth-child(3) {
    animation-delay: 0.6s;
}

.main-timeline2 .timeline:nth-child(4) {
    animation-delay: 0.8s;
}

/* --- Timeline Demo - 7 --- */
.main-timeline7 {
    overflow: hidden;
    position: relative;
}

.main-timeline7 .timeline {
    width: 50%;
    float: left;
    z-index: 1;
    position: relative;
}

.main-timeline7 .timeline:after,
.main-timeline7 .timeline:before {
    content: "";
    display: block;
    clear: both;
}

.main-timeline7 .timeline:before {
    content: "";
    width: 40px;
    height: 90%;
    background: #727cb6;
    position: absolute;
    top: 10%;
    right: -20px;
}

.main-timeline7 .timeline:last-child:before {
    height: 0;
}

.main-timeline7 .timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #727cb6;
    overflow: hidden;
    text-align: center;
    position: absolute;
    top: 0;
    right: -40px;
    z-index: 3;
}

.main-timeline7 .timeline-icon:before {
    content: "";
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #727cb6;
    box-shadow: 0 0 0 4px #a5afe4;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.main-timeline7 .timeline-icon i {
    font-size: 35px;
    color: #303a3b;
    line-height: 80px;
    z-index: 1;
    position: relative;
}

.main-timeline7 .year {
    display: block;
    padding: 0 60px 0 30px;
    font-size: 30px;
    color: #303a3b;
    text-align: right;
    border-bottom: 2px solid #303a3b;
    z-index: 2;
    position: relative;
}

.main-timeline7 .year:before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #727cb6;
    border: 5px solid #fff;
    box-shadow: 0 0 0 4px #727cb6;
    margin: auto;
    position: absolute;
    bottom: -15px;
    left: 4px;
}

.main-timeline7 .year:after {
    content: "";
    border-left: 10px solid #303a3b;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    position: absolute;
    bottom: -11px;
    left: 50px;
}

.main-timeline7 .timeline-content {
    padding: 18px 60px 18px 40px;
    text-align: right;
    position: relative;
    z-index: 1;
}

.main-timeline7 .timeline-content:after,
.main-timeline7 .timeline-content:before {
    content: "";
    width: 80px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: -7%;
    right: 15px;
    z-index: -1;
}

.main-timeline7 .timeline-content:after {
    left: auto;
    right: -95px;
}

.main-timeline7 .timeline:last-child .timeline-content:after,
.main-timeline7 .timeline:last-child .timeline-content:before {
    width: 0;
    height: 0;
}

.main-timeline7 .title {
    font-size: 22px;
    font-weight: 700;
    color: #727cb6;
    margin-top: 0;
}

.main-timeline7 .description {
    font-size: 15px;
    color: #7f8386;
    line-height: 25px;
}

/* Alternance des côtés et des couleurs pour Timeline 7 */
.main-timeline7 .timeline:nth-child(2) {
    margin-top: 140px;
}

.main-timeline7 .timeline:nth-child(even) {
    margin-bottom: 80px;
}

.main-timeline7 .timeline:nth-child(odd) {
    margin: -140px 0 0;
}

.main-timeline7 .timeline:first-child,
.main-timeline7 .timeline:last-child:nth-child(even) {
    margin: 0 !important;
}

.main-timeline7 .timeline:nth-child(2n) .timeline-icon,
.main-timeline7 .timeline:nth-child(2n):before {
    right: auto;
    left: -20px;
    background: #e77e21;
}

.main-timeline7 .timeline:nth-child(2n) .timeline-icon {
    left: -40px;
}

.main-timeline7 .timeline:nth-child(2n) .year {
    padding: 0 30px 0 60px;
    text-align: left;
}

.main-timeline7 .timeline:nth-child(2n) .year:before {
    left: auto;
    right: 3px;
}

.main-timeline7 .timeline:nth-child(2n) .year:after {
    border-left: none;
    border-right: 10px solid #303a3b;
    right: 50px;
}

.main-timeline7 .timeline:nth-child(2n) .timeline-content {
    padding: 18px 40px 18px 60px;
    text-align: left;
}

.main-timeline7 .timeline:nth-child(2n) .timeline-content:before {
    left: -95px;
}

.main-timeline7 .timeline:nth-child(2n) .timeline-content:after {
    left: 15px;
}

.main-timeline7 .timeline:nth-child(2n) .timeline-icon:before {
    border-color: #e77e21;
    box-shadow: 0 0 0 4px #f1a563;
}

.main-timeline7 .timeline:nth-child(2n) .year:before {
    background: #e77e21;
    box-shadow: 0 0 0 4px #e77e21;
}

.main-timeline7 .timeline:nth-child(2n) .title {
    color: #e77e21;
}

/* 3n couleurs */
.main-timeline7 .timeline:nth-child(3n) .timeline-icon,
.main-timeline7 .timeline:nth-child(3n):before {
    background: #008b8b;
}

.main-timeline7 .timeline:nth-child(3n) .timeline-icon:before {
    border-color: #008b8b;
    box-shadow: 0 0 0 4px #50b5b4;
}

.main-timeline7 .timeline:nth-child(3n) .year:before {
    background: #008b8b;
    box-shadow: 0 0 0 4px #008b8b;
}

.main-timeline7 .timeline:nth-child(3n) .title {
    color: #008b8b;
}

/* 4n couleurs */
.main-timeline7 .timeline:nth-child(4n) .timeline-icon,
.main-timeline7 .timeline:nth-child(4n):before {
    background: #ed687c;
}

.main-timeline7 .timeline:nth-child(4n) .timeline-icon:before {
    border-color: #ed687c;
    box-shadow: 0 0 0 4px #f798a8;
}

.main-timeline7 .timeline:nth-child(4n) .year:before {
    background: #ed687c;
    box-shadow: 0 0 0 4px #ed687c;
}

.main-timeline7 .timeline:nth-child(4n) .title {
    color: #ed687c;
}

/* --- Timeline Demo - 3 --- */
.main-timeline3 {
    overflow: hidden;
    position: relative;
}

.main-timeline3:before {
    content: "";
    width: 10px;
    height: 100%;
    border: 3px solid #959595;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.main-timeline3 .timeline {
    width: 50%;
    padding: 10px 60px 10px 100px;
    float: right;
    position: relative;
}

.main-timeline3 .timeline:before {
    content: "";
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c47c48;
    border: 5px solid #fff;
    box-shadow: 0 0 1px 5px #c47c48;
    position: absolute;
    top: 42px;
    left: -20px;
}

.main-timeline3 .timeline-content {
    display: block;
    background: #e9e9e7;
    padding: 70px 30px 20px;
    box-shadow: 0 0 10px rgba(0,0,0,.2) inset;
    position: relative;
}

.main-timeline3 .timeline-content:hover {
    text-decoration: none;
}

.main-timeline3 .year {
    display: block;
    width: 80%;
    height: 50px;
    background: #c47c48;
    padding: 0 0 0 50px;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 50px;
    box-shadow: 0 0 20px rgba(0,0,0,.4) inset;
    border-radius: 10px 10px 10px 0;
    position: absolute;
    top: 20px;
    left: -20px;
}

.main-timeline3 .year:before {
    content: "";
    border-top: 40px solid #c47c48;
    border-left: 20px solid transparent;
    border-bottom: 20px solid transparent;
    position: absolute;
    bottom: -60px;
    left: 0;
}

.main-timeline3 .title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: #4a4a4a;
}

.main-timeline3 .description {
    font-size: 14px;
    color: #6f6f6f;
    margin: 0 0 5px;
}

/* Alternance des côtés et des couleurs pour Timeline 3 */
.main-timeline3 .timeline:nth-child(2n) {
    padding: 10px 100px 10px 60px;
    text-align: right;
}

.main-timeline3 .timeline:nth-child(2n):before {
    left: auto;
    right: -20px;
    background: #bf3fc8;
    box-shadow: 0 0 1px 5px #bf3fc8;
}

.main-timeline3 .timeline:nth-child(2n) .year {
    padding-right: 50px;
    border-radius: 10px 10px 0;
    left: auto;
    right: -20px;
    background: #bf3fc8;
}

.main-timeline3 .timeline:nth-child(2n) .year:before {
    border-left: none;
    border-right: 20px solid transparent;
    left: auto;
    right: 0;
    border-top-color: #bf3fc8;
}

.main-timeline3 .timeline:nth-child(2) {
    margin-top: 140px;
}

.main-timeline3 .timeline:nth-child(odd) {
    margin: -140px 0 0;
}

.main-timeline3 .timeline:nth-child(even) {
    margin-bottom: 60px;
}

.main-timeline3 .timeline:first-child,
.main-timeline3 .timeline:last-child:nth-child(even) {
    margin: 0;
}

/* Couleurs 3n */
.main-timeline3 .timeline:nth-child(3n):before {
    background: #ce3c41;
    box-shadow: 0 0 1px 5px #ce3c41;
}

.main-timeline3 .timeline:nth-child(3n) .year {
    background: #ce3c41;
}

.main-timeline3 .timeline:nth-child(3n) .year:before {
    border-top-color: #ce3c41;
}

/* Couleurs 4n */
.main-timeline3 .timeline:nth-child(4n):before {
    background: #8cc43d;
    box-shadow: 0 0 1px 5px #8cc43d;
}

.main-timeline3 .timeline:nth-child(4n) .year {
    background: #8cc43d;
}

.main-timeline3 .timeline:nth-child(4n) .year:before {
    border-top-color: #8cc43d;
}