/* ========================================================================= */
/* GLOBAL ANIMATION SYSTEM - PREMIUM REVEAL EFFECTS */
/* ========================================================================= */

[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

[data-reveal="up"] { transform: translateY(50px); }
[data-reveal="down"] { transform: translateY(-50px); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(0.9); }

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Hero Profile Photo - Ultra Premium */
#cool img[alt="Réjuste WENOUMI"], 
.premium-photo-img {
    position: relative;
    animation: pulse-glow 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cool img[alt="Réjuste WENOUMI"]:hover,
.premium-photo-img:hover {
    transform: scale(1.08) translateY(-5px) rotate(2deg);
    box-shadow: 0 0 40px rgba(247, 209, 56, 0.6),
        0 0 80px rgba(247, 209, 56, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ========================================================================= */
/* UI/UX SENIOR - RÉINITIALISATION ET STYLES DE BASE */
/* ========================================================================= */

/* Réinitialisation CSS (Reset) pour tous les éléments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style de base pour le corps de la page - AMÉLIORÉ */
body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle at center, transparent 0%, rgba(8, 9, 48, 0.03) 100%),
        linear-gradient(rgba(66, 97, 238, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 97, 238, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 45px 45px, 45px 45px;
    z-index: -1;
    pointer-events: none;
}

/* Typographie Premium */
h1,
h2,
h3,
h4,
h5,
h6,
.handwritten-title {

    font-family:  'century-gothic',  'Times New Roman', Times, serif, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.handwritten-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    animation: slideInUp 1s ease-out 0.3s forwards, fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Style de base pour les liens - AMÉLIORÉ */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    transform: translateY(-1px);
}

/* ========================================================================= */
/* BARRE DE NAVIGATION DESKTOP - ULTRA PREMIUM ARRONDIE & ANIMÉE */
/* ========================================================================= */

/* Navbar slide-in animation */
@keyframes slideInNav {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navbar Premium avec Glassmorphism Ultra et Border Radius */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* Fond glassmorphic sombre riche */
    background: linear-gradient(135deg, rgba(8,9,48,0.96) 0%, rgba(12,14,65,0.95) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    /* Bordure or subtile sur tout le tour */
    border: 1px solid rgba(247, 209, 56, 0.2);
    color: #ffffff;
    padding: 8px 40px;
    margin: 8px 20px;
    width: calc(100% - 40px);
    border-radius: 22px;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ombres multicouches profondes */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(247, 209, 56, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: none;
    animation: slideInNav 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ligne lumineuse or en haut */
    position: fixed;
}

/* Ligne dorée premium en haut de la navbar */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #f7d138, #ffe066, #f7d138, transparent);
    border-radius: 0 0 2px 2px;
    opacity: 0.8;
}

/* Navbar au scroll - effet de compactage */
.navbar.scrolled {
    padding: 6px 40px;
    margin: 4px 20px;
    background: linear-gradient(135deg, rgba(8,9,48,0.98) 0%, rgba(10,11,55,0.98) 100%);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(247, 209, 56, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    border-color: rgba(247, 209, 56, 0.3);
}

/* Container du menu principal - Amélioré */
.navbar .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar .menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}

.navbar .menu ul li {
    position: relative;
}

/* Language switcher in navbar */
.lang-switcher-nav {
    display: flex;
    gap: 6px;
    align-items: center;
    list-style: none;
}

/* Liens de navigation - Design Ultra Premium */
.navbar .menu ul li a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    padding: 8px 18px;
    display: block;
    font-family: 'century-gothic', 'Times New Roman', Times, serif, sans-serif;
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: 0.4px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
}

/* Soulignement doré animé */
.navbar .menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 1.5px;
    background: linear-gradient(90deg, #f7d138, #ffe066, #f7d138);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.navbar .menu ul li a:hover {
    background: rgba(247, 209, 56, 0.1);
    color: #f7d138;
    border-color: rgba(247, 209, 56, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 209, 56, 0.1);
}

.navbar .menu ul li a:hover::after {
    transform: scaleX(1);
}

/* Sous-menus (dropdowns) - Design Ultra Premium */
.navbar .menu ul li .submenu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    background: linear-gradient(135deg, rgba(8,9,48,0.98) 0%, rgba(10,11,55,0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 10px;
    border: 1px solid rgba(247, 209, 56, 0.2);
    border-radius: 14px;
    min-width: 220px;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Petit triangle pointer */
.navbar .menu ul li .submenu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 24px;
    width: 14px;
    height: 14px;
    background: rgba(10, 11, 55, 0.98);
    border-left: 1px solid rgba(247, 209, 56, 0.2);
    border-top: 1px solid rgba(247, 209, 56, 0.2);
    transform: rotate(45deg);
}

/* Afficher le sous-menu au survol */
.navbar .menu ul li:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}



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

.sidebar {
    width: 250px;
    background-color: #080930;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -250px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    color: #ffffff;
    z-index: 10001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

/* Section Profil dans la Sidebar - AMÉLIORÉ */
.sidebar .profile {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(247, 209, 56, 0.2);
}

.sidebar .profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #f7d138;
    box-shadow: 0 8px 20px rgba(247, 209, 56, 0.3);
    transition: all 0.3s ease;
}

.sidebar .profile img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(247, 209, 56, 0.5);
}

.sidebar .profile h2 {
    font-size: 18px;
    margin-top: 15px;
    font-family:  'century-gothic',  'Times New Roman', Times, serif, sans-serif;
    font-weight: 600;
}

/* 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: 12px;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #333a45;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(247, 209, 56, 0.2);
}

/* 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 - AMÉLIORÉ */
.icon-container {
    position: relative;
    display: inline-block;
}

/* Style de l'icône principale (partage) - ULTRA PREMIUM */
.main-icon {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.main-icon:hover {
    transform: scale(1.15) rotate(15deg);
    color: #f7d138;
    filter: drop-shadow(0 6px 12px rgba(247, 209, 56, 0.6));
    animation: pulse-icon 1s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1.15) rotate(15deg);
    }

    50% {
        transform: scale(1.2) rotate(15deg);
    }
}

/* 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 - ULTRA PREMIUM */
.social-icons a:hover {
    color: #f7d138;
    transform: scale(1.4) rotateY(15deg);
    filter: drop-shadow(0 8px 16px rgba(247, 209, 56, 0.7));
}


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

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

/* Titres/Sous-titres dactylographiés - ULTRA PREMIUM */
.handwritten-title {
    margin: 10px 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    font-family:  'century-gothic',  'Times New Roman', Times, serif, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f7d138 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    filter: drop-shadow(0 2px 8px rgba(247, 209, 56, 0.4));
}

.handwritten-title,
.handwritten-subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.handwritten-subtitle {
    color: rgba(255, 255, 255, 0.95);
}

/* Animation du texte dactylographié */
@keyframes animtext {
    from {
        width: 0;
        transition: all 2s ease-in-out;
    }
    to {
        width: 100%;
    }
}

/* 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;
}