/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS */
:root {
    --primary-color: #87CEEB;
    --primary-hover: #6CB4EE;
    --text-color: rgb(46, 46, 44);
    --background-color: #fafafa;
    --animation-duration: 0.6s;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations modernes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(135, 206, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(135, 206, 235, 0.6);
    }
}

/* Classes d'animation */
.animate-fade-in-up {
    animation: fadeInUp var(--animation-duration) var(--animation-timing) forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft var(--animation-duration) var(--animation-timing) forwards;
}

.animate-fade-in-right {
    animation: fadeInRight var(--animation-duration) var(--animation-timing) forwards;
}

.animate-scale-in {
    animation: scaleIn var(--animation-duration) var(--animation-timing) forwards;
}

.animate-slide-in-top {
    animation: slideInFromTop var(--animation-duration) var(--animation-timing) forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-border-glow {
    animation: borderGlow 2s infinite;
}

/* États initiaux pour les animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--animation-duration) var(--animation-timing);
}

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

.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all var(--animation-duration) var(--animation-timing);
}

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

.animate-on-scroll-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all var(--animation-duration) var(--animation-timing);
}

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

.animate-on-scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--animation-duration) var(--animation-timing);
}

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

/* Animation du curseur pour le texte */
.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    overflow-x: hidden;
    position: relative;
    color: var(--text-color);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

body.background-visible::before {
    opacity: 1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid white;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav-left, 
.nav-right {
    display: flex;
    gap: 40px;
    position: relative;
    flex: 1;
}

.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-left a, 
.nav-right a {
    color: rgb(255, 255, 255);
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    padding: 0 10px;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

header.scrolled .nav-left a,
header.scrolled .nav-right a {
    color: var(--text-color);
}

/* Logo */
.logo {
    margin: 0;
    position: relative;
    padding: 0 30px;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    margin: 0 auto;
    width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Container principal */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    background-image: url('images/desk.jpg');
    background-size: cover;
    background-position: center;
}

.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
}

.background-slide {
    min-width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
}

.intro {
    text-align: left;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    max-width: 50%;
    margin-left: 10%;
}

.intro h1 {
    font-size: 3.5rem;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    padding: 20px 0;
}

/* Sections */
.presentation {
    width: 100%;
    min-height: 10vh;
    padding: 60px 30px;
    position: relative;
    background: #ffffff;
}

.presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
}

.presentation-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3.5em;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.text {
    flex: 1;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.text h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #333;
}

.text p {
    font-size: 1.2em;
    color: #333;
}

/* Compétences */
.competences-container {
    width: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
    border-top: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    margin: 20px 0;
    height: 100px;
    display: flex;
    align-items: center;
}

.competences-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    position: absolute;
    justify-content: space-around;
    min-width: 200%;
}

.competence {
    color: var(--text-color);
    font-size: 2em;
    padding: 0 20px;
    font-weight: 500;
}

.separator {
    color: var(--text-color);
    font-size: 2em;
    padding: 0 20px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.competences-scroll:hover {
    animation-play-state: paused;
}

/* Timeline */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-lightbox:hover {
    color: #bbb;
}

@keyframes zoom {
    from { transform: translate(-50%, -50%) scale(0.1); }
    to { transform: translate(-50%, -50%) scale(1); }
}

/* Menu mobile */
#mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    height: 24px;
    justify-content: center;
}

#mobile-menu-toggle .bar {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
}

/* Media Queries */
@media (max-width: 1024px) {
    header { padding: 20px; }
    .nav-left, .nav-right { gap: 20px; }
    .intro h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    #mobile-menu-toggle { 
        display: flex;
        top: 45px;
    }
    
    header {
        flex-direction: column;
        padding: 10px;
        background: rgba(250, 250, 250, 0.95);
        height: 100px;
        overflow: hidden;
    }

    header.mobile-open {
        height: auto;
        min-height: 100vh;
    }

    .logo {
        position: fixed;
        top: 10px;
        left: 20px;
        padding: 0;
        height: 80px;
        z-index: 1002;
    }

    .nav-left, .nav-right {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        margin-top: 100px;
    }

    header.mobile-open .nav-left,
    header.mobile-open .nav-right {
        display: flex;
        margin-top: 0;
    }

    header.mobile-open {
        display: flex;
        flex-direction: column;
    }

    header.mobile-open nav {
        margin: 0;
    }

    header.mobile-open .nav-left {
        margin-top: 100px;
        margin-bottom: 10px;
    }

    .nav-left a, .nav-right a {
        color: var(--text-color);
        font-size: 1.2rem;
        padding: 8px 20px;
        text-align: center;
    }

    .logo img {
        width: 70px;
        max-height: 100%;
    }

    .intro {
        max-width: 80%;
        margin-left: 5%;
    }

    .intro h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5em;
    }

    .competence {
        font-size: 1.5em;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .timeline-dot {
        position: static !important;
        margin: 0 0 10px 0;
        left: auto !important;
        transform: none !important;
        display: flex;
        align-self: flex-start;
    }
    .timeline-content {
        width: 100%;
        margin: 0 !important;
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .intro h1 { font-size: 2rem; }
    .section-title { font-size: 2em; }
    .competence { font-size: 1.2em; }
}

.presentation a {
    color: #2e2e2c;
    text-decoration: underline;
    transition: color 0.3s;
}

.presentation a:hover {
    color: #555;
}

/* Bouton Dark Mode */
#dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

@media (max-width: 768px) {
    #dark-mode-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

/* Mode sombre */
body.dark-mode {
    background: #1e1e1e;
    color: #f4f4f4;
}

body.dark-mode header,
body.dark-mode .presentation,
body.dark-mode .container {
    background: #1e1e1e;
    color: #f4f4f4;
}

body.dark-mode a {
    color: #f4f4f4;
}

/* Wave Separator Animation */
.wave-separator {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-container {
    position: relative;
    width: 100%;
    height: 60px;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
}

.wave svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave path {
    fill: none;
    stroke: #37405d;
    stroke-width: 2;
    animation: oscillate 4s ease-in-out infinite;
}

.wave:nth-child(1) path {
    opacity: 1;
    animation-delay: 0s;
}

.wave:nth-child(2) path {
    opacity: 0.7;
    animation-delay: -1.33s;
}

.wave:nth-child(3) path {
    opacity: 0.4;
    animation-delay: -2.66s;
}

@keyframes oscillate {
    0%, 100% {
        d: path('M 0 30 C 150 30 150 30 300 30 C 450 30 450 30 600 30 C 750 30 750 30 900 30');
    }
    50% {
        d: path('M 0 30 C 150 0 150 60 300 30 C 450 0 450 60 600 30 C 750 0 750 60 900 30');
    }
}

/* About Section Specific */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #2e2e2c;
}

.profile-photo-container {
    position: relative;
    width: 280px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 240px;
    height: 360px;
    border-radius: 20px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.photo-border {
    display: none;
}

.photo-border svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.photo-border path {
    fill: none;
    stroke: #37405d;
    stroke-width: 2;
    animation: borderWave 4s ease-in-out infinite;
}

@keyframes borderWave {
    0%, 100% {
        d: path('M 20,20 L 260,20 L 260,380 L 20,380 L 20,20');
    }
    50% {
        d: path('M 10,10 L 270,10 L 270,390 L 10,390 L 10,10');
    }
}

.download-cv, .voir-plus-outils {
    display: inline-block;
    margin: 20px auto;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.download-cv:hover, .voir-plus-outils:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.voir-plus-outils {
    display: none;
    width: fit-content;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .profile-photo-container {
        width: 200px;
        height: 300px;
    }

    .profile-photo {
        width: 180px;
        height: 260px;
    }

    .about-text {
        text-align: center;
    }
}

/* Timeline styles */
.timeline-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    z-index: 100;
    overflow: visible;
}

/* Timeline Moderne */
.modern-timeline {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Ligne verticale */
.modern-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 70px;
    height: 70px;
    background: #87CEEB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 2;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: white;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Positionnement des cartes */
.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

/* Positionnement des boutons d'année */
.timeline-item:nth-child(odd) .timeline-dot {
    left: 55%;
    transform: translateX(-50%);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: 39%;
    transform: translateX(-50%);
}

.timeline-content h3 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    color: #666;
    margin-bottom: 8px;
    position: relative;
    padding-left: 0;
}

.timeline-content li::before {
    display: none;
}

/* Ajustement de la ligne centrale */
.modern-timeline::before {
    left: 50%;
    transform: translateX(-50%);
}

/* Clearfix pour gérer le float */
.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-timeline {
        padding: 40px 10px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .modern-timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px !important;
        transform: translateX(-50%);
    }
}

/* Section Diplômes */
.diplomes-container {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.diplomes-image {
    flex: 0 0 300px;
}

.toge-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.diplome-item {
    margin-bottom: 30px;
}

.diplome-item h3 {
    color: #2e2e2c;
    font-size: 1.4em;
    margin-bottom: 8px;
}

.diplome-titre {
    font-size: 1.2em;
    color: #2e2e2c;
    margin-bottom: 5px;
}

.diplome-annee {
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .diplomes-container {
        flex-direction: column;
        gap: 20px;
    }

    .diplomes-image {
        flex: 0 0 auto;
        width: 200px;
    }

    .diplome-item {
        margin-bottom: 25px;
        text-align: center;
    }
}

/* Section Outils */
.outils-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.outil-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.outil-item:hover {
    transform: translateY(-5px);
}

.outil-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.outil-item h3 {
    color: #37405d;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.outil-item p {
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 992px) {
    .outils-grid, .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .outil-item:nth-child(n+5) {
        display: none;
    }
    
    .outil-item.visible {
        display: flex;
    }
    
    .voir-plus-outils {
        display: block;
    }
    
    .voyage-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .voyage-text-block, .voyage-photo {
        flex: 100%;
        min-width: 100%;
    }
    
    .voyage-content .voyage-photo:nth-last-child(2) {
        order: 1;
    }
    
    .voyage-content .voyage-text-block:last-child {
        order: 0;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.4em;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
}

@media (max-width: 576px) {
    .outils-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Section Compétences */
.competences-container {
    width: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
    border-top: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    margin: 20px 0;
    height: 100px;
    display: flex;
    align-items: center;
}

.competences-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    position: absolute;
    justify-content: space-around;
    min-width: 200%;
}

.competence {
    color: var(--text-color);
    font-size: 2em;
    padding: 0 20px;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.separator {
    color: var(--text-color);
    font-size: 2em;
    padding: 0 20px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplication pour un défilement continu */
.competences-scroll {
    content: "";
}

.competences-container:hover .competences-scroll {
    animation-play-state: paused;
}

/* Titres */
h1, h2, h3, .section-title {
    color: var(--text-color);
}

/* Texte normal */
p, .text, .timeline-title, .timeline-date, .timeline-company {
    color: var(--text-color);
}

/* Exception pour le bouton CV */
.download-cv {
    color: #f4f4f4 !important;
}

/* Contact Section */
.social-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.linkedin-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.linkedin-link:hover {
    transform: translateY(-3px);
}

.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .social-icon {
        width: 35px;
        height: 35px;
    }
}

/* Section Voyage - Mise en page améliorée */
.voyage-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Style pour les blocs de texte */
.voyage-text-block {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.voyage-text-block h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2e2e2c;
    position: relative;
    padding-bottom: 10px;
}

.voyage-text-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.voyage-text-block p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

/* Styles pour les photos */
.voyage-photo {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
}

.voyage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.voyage-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.voyage-photo:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voyage-photo:hover .photo-caption {
    opacity: 1;
}

/* Styles pour les statistiques */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    justify-items: center;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: transform 0.3s ease;
    width: 100%;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.4em;
}

.stat-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 1.6em;
    font-weight: bold;
    color: #2e2e2c;
}

.stat-label {
    font-size: 1em;
    color: #666;
    text-align: center;
}

/* Responsive design */
@media (max-width: 992px) {
    .voyage-content {
        gap: 15px;
        padding: 15px;
    }

    .voyage-text-block, 
    .voyage-photo {
        flex: 100%;
        min-width: 100%;
    }

    .voyage-text-block {
        padding: 30px;
    }

    .voyage-text-block h3 {
        font-size: 1.8em;
    }

    .voyage-text-block p {
        font-size: 1.1em;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.4em;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    /* Sélecteur pour cibler l'avant-dernière image (Huayna Potosí) */
    .voyage-content .voyage-photo:nth-last-child(2) {
        order: 1;  /* Déplacer après le texte "Et maintenant ?" */
    }
    
    /* Sélecteur pour le dernier bloc de texte (Et maintenant ?) */
    .voyage-content .voyage-text-block:last-child {
        order: 0;  /* S'affiche avant l'image Huayna Potosí */
    }
    
    /* S'assurer que le conteneur utilise l'ordre */
    .voyage-content {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .voyage-content {
        gap: 10px;
        padding: 10px;
    }

    .voyage-text-block {
        padding: 20px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Section Langues */
.langues-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.langue-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    min-width: 250px;
}

.langue-item:hover {
    transform: translateY(-5px);
}

.langue-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.langue-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.langue-info h3 {
    font-size: 1.4em;
    color: #2e2e2c;
    margin: 0;
}

.progress-container {
    width: 150px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}

/* Suppression des styles du texte de progression */
.progress-text {
    display: none;
}

@media (max-width: 768px) {
    .langues-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .langue-item {
        width: 100%;
        max-width: 300px;
    }
}

/* Protection des images */
.protection-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.protection-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Protection de la sélection de texte */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Styles pour le lien des mentions légales */
.legal-link {
    margin-top: 10px;
    font-size: 0.8em;
}

.legal-link a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link a:hover {
    color: #666;
    text-decoration: underline;
}

/* Styles pour la section des crédits */
.credits-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateY(100%);
}

.credits-section.show {
    transform: translateY(0);
}

.credits-section h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.credits-section ul {
    margin: 10px 0;
}

.credits-section li {
    margin: 5px 0;
    line-height: 1.3;
}

.credits-section a {
    color: #666;
    text-decoration: none;
}

.credits-section a:hover {
    text-decoration: underline;
}

#hide-credits {
    margin-top: 10px;
    padding: 5px 15px;
    background: #666;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#hide-credits:hover {
    background: #555;
}

@media (max-width: 768px) {
    .credits-section {
        font-size: 0.75em;
        padding: 15px;
    }
    
    .credits-section li {
        margin: 3px 0;
    }
}

/* Animation des outils avec délai */
.outil-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.outil-item.tool-animated {
    opacity: 1;
    transform: scale(1);
}

/* Animation des barres de progression */
.progress-bar {
    transition: width 1.5s ease-in-out;
}

/* Animation du lightbox */
.lightbox {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lightbox-content {
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

/* Animation des photos de voyage */
.voyage-photo {
    transition: transform 0.3s ease-in-out;
}

.voyage-photo:hover {
    transform: scale(1.05);
}

/* Animation du header */
header {
    transition: all 0.3s ease;
}

/* Animation des statistiques */
.stat-number {
    transition: all 0.3s ease-in-out;
}

/* Animation d'entrée de la page */
.intro {
    transition: all 1s ease-out;
}

/* Animation des éléments de navigation */
.nav-left a, .nav-right a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.nav-left a::before, .nav-right a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: left 0.3s ease-in-out;
}

.nav-left a:hover::before, .nav-right a:hover::before {
    left: 0;
}

.nav-left a:hover, .nav-right a:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animation du logo */
.logo img {
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Animation des boutons */
.download-cv, .voir-plus-outils {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.download-cv::before, .voir-plus-outils::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease-in-out;
}

.download-cv:hover::before, .voir-plus-outils:hover::before {
    left: 100%;
}

.download-cv:hover, .voir-plus-outils:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Animation des icônes sociales */
.social-icon {
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.social-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Animation des drapeaux */
.flag-icon {
    transition: transform 0.3s ease-in-out;
}

.flag-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Animation des éléments de timeline */
.timeline-dot {
    transition: all 0.3s ease-in-out;
}

.timeline-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.6);
}

.timeline-content {
    transition: all 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Animation des compétences */
.competence {
    transition: all 0.3s ease-in-out;
}

.competence:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animation des séparateurs */
.separator {
    transition: all 0.3s ease-in-out;
}

.competences-scroll:hover .separator {
    transform: scale(1.5);
    color: var(--primary-color);
}

/* Animation des titres de section */
.section-title {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.5s ease-in-out;
}

.section-title:hover::after {
    width: 100%;
}

.section-title:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

/* Animation des éléments de diplôme */
.diplome-item {
    transition: all 0.3s ease-in-out;
    padding: 15px;
    border-radius: 8px;
}

.diplome-item:hover {
    background: rgba(135, 206, 235, 0.1);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animation des éléments de langue */
.langue-item {
    transition: all 0.3s ease-in-out;
}

.langue-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Animation des éléments de contact */
#contact a {
    transition: all 0.3s ease-in-out;
    position: relative;
}

#contact a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

#contact a:hover::before {
    width: 100%;
}

#contact a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Animation du menu mobile */
#mobile-menu-toggle .bar {
    transition: all 0.3s ease-in-out;
}

#mobile-menu-toggle:hover .bar {
    background-color: var(--primary-color);
}

/* Animation des éléments de navigation mobile */
header.mobile-open .nav-left a,
header.mobile-open .nav-right a {
    transition: all 0.3s ease-in-out;
}

header.mobile-open .nav-left a:hover,
header.mobile-open .nav-right a:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

/* Animation des outils */
.outil-item {
    transition: all 0.3s ease-in-out;
}

.outil-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.outil-logo {
    transition: all 0.3s ease-in-out;
}

.outil-item:hover .outil-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Animation des statistiques */
.stat-item {
    transition: all 0.3s ease-in-out;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    transition: all 0.3s ease-in-out;
}

.stat-item:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Animation des photos de voyage */
.voyage-photo {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.voyage-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.voyage-photo img {
    transition: all 0.3s ease-in-out;
}

.voyage-photo:hover img {
    transform: scale(1.1);
}

.photo-caption {
    transition: all 0.3s ease-in-out;
}

.voyage-photo:hover .photo-caption {
    transform: translateY(-5px);
}

/* Animation du texte de voyage */
.voyage-text-block {
    transition: all 0.3s ease-in-out;
}

.voyage-text-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.voyage-text-block h3 {
    transition: all 0.3s ease-in-out;
}

.voyage-text-block:hover h3 {
    color: var(--primary-color);
}

/* Animation du footer */
footer {
    transition: all 0.3s ease-in-out;
}

footer:hover {
    background: rgba(135, 206, 235, 0.05);
}

/* Animation des mentions légales */
.legal-link a {
    transition: all 0.3s ease-in-out;
}

.legal-link a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Animation des crédits */
.credits-section {
    transition: all 0.3s ease-in-out;
}

.credits-section.show {
    transform: translateY(0);
    opacity: 1;
}

/* Animation du bouton fermer les crédits */
#hide-credits {
    transition: all 0.3s ease-in-out;
}

#hide-credits:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}
