/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --sidebar-width: 80px;
    --sidebar-expanded-width: 250px;
    --navbar-text-color: #ffffff;
    --navbar-hover-color: #e0e0e0;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Particles.js Background */
#particles-js-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
}

/* Styles de fallback pour les éléments manquants */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        width: 48px;
        height: 48px;
        aspect-ratio: 1/1;
        right: 1rem;
        left: auto;
        top: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    }
    .menu-toggle i {
        font-size: 2rem;
        margin: 0;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar Navigation */
header {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    width: var(--sidebar-width);
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    overflow: hidden;
}

header.expanded {
    width: var(--sidebar-expanded-width);
}

.profile {
    text-align: center;
    margin-bottom: 2rem;
    white-space: nowrap;
    overflow: hidden;
}

.profile-nav {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.profile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--navbar-text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 1rem;
}

.profile-nav a:hover {
    color: var(--navbar-hover-color);
    background-color: rgba(255, 255, 255, 0.1);
}

header:not(.expanded) .profile-nav span {
    display: none;
}

header:not(.expanded) .profile-circle {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.profile h2, .profile p {
    opacity: 0;
    transition: var(--transition);
    transform: translateX(-20px);
}

header.expanded .profile h2,
header.expanded .profile p {
    opacity: 1;
    transform: translateX(0);
}

nav {
    width: 100%;
    margin-top: 2rem;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 0.5rem 0;
    width: 100%;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

nav ul li a {
    text-decoration: none;
    color: var(--navbar-text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 1rem;
    display: flex;
    align-items: center;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    gap: 0.75rem;
}

nav ul li a i {
    min-width: 20px;
    text-align: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

nav ul li a span {
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition);
    white-space: normal;
    overflow: visible;
    flex: 1;
    word-wrap: break-word;
}

header.expanded nav ul li a span {
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: inline !important;
}

@media (max-width: 768px) {
    nav ul li a span {
        display: inline !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
}

nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--secondary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover::before,
nav ul li a.active::before {
    transform: scaleY(1);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--navbar-hover-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links {
    margin-top: auto;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 1;
    transition: var(--transition);
}

header.expanded .social-links {
    opacity: 1;
}

.social-links a {
    color: var(--navbar-text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--navbar-hover-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .social-links {
        opacity: 1 !important;
        display: flex !important;
    }
}

/* Main Content */
main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: var(--transition);
    flex: 1;
    position: relative;
    z-index: 3;
    min-height: 100vh;
}

header.expanded + main {
    margin-left: var(--sidebar-expanded-width);
    width: calc(100% - var(--sidebar-expanded-width));
}

/* Section Hero */
.hero {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    min-width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    overflow: hidden;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0 4vw;
    gap: 2rem;
    box-sizing: border-box;
    overflow: visible;
}
.hero-left {
    flex: 1 1 0;
    max-width: 48vw;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(30, 58, 138, 0.18);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
}
.hero-left h1 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}
.hero-left p {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    max-width: 95%;
}
.hero-right {
    flex: 1 1 0;
    max-width: 52vw;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}
.hero-avatar {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: 95vh;
    max-height: 95vh;
    max-width: 120%;
    min-width: 0;
    min-height: 0;
    display: block;
    object-fit: contain;
    border-radius: 0;
    background: none;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    pointer-events: none;
}
@media (max-width: 900px) {
    .hero {
        width: 100vw;
        height: auto;
        min-height: 100vh;
    }
    .hero-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 2.5rem;
        padding: 2rem 1rem 1rem 1rem;
        width: 100vw;
        height: auto;
        overflow: visible;
    }
    .hero-left, .hero-right {
        max-width: 100vw;
        width: 100vw;
    }
    .hero-avatar {
        position: static;
        width: auto;
        height: 40vh;
        max-width: 95vw;
        max-height: 40vh;
        pointer-events: none;
    }
    .hero-left {
        padding: 1.5rem 1rem;
    }
    .hero-left h1 {
        font-size: 2.1rem;
    }
    .hero-left p {
        font-size: 1.05rem;
    }
}

/* Sections générales */
.section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin: 1rem 0;
    border-radius: 15px;
    position: relative;
    z-index: 4;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Grille de compétences */
.competences-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.competence-card-group {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(44,62,80,0.10);
    padding: 2rem 1.5rem;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.competence-card-group:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 32px rgba(44,62,80,0.18);
}

.competence-card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.competence-card-group h3 {
    margin-bottom: 1rem;
    color: #1e4a8a;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 600;
}

.competence-card-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.competence-card-group ul li {
    margin-bottom: 0.7rem;
    font-size: 1rem;
    color: #444;
    padding-left: 1.2rem;
    position: relative;
}

.competence-card-group ul li::before {
    content: '\2022';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    top: 0;
}

@media (max-width: 900px) {
    .competences-cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .competence-card-group {
        max-width: 100%;
        width: 100%;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.timeline-content h3 {
    color: #1e4a8a;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.timeline-content h4 {
    color: #3498db;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.date {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.experience-details,
.education-details {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.experience-details li,
.education-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.experience-details li::before,
.education-details li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.experience-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.experience-section:first-of-type {
    margin-top: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.experience-intro {
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Responsive pour le contact */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-info {
        gap: 0.8rem;
    }
    
    .contact-item {
        padding: 0.8rem;
    }
    
    .contact-item i {
        font-size: 1.3rem;
    }
}



/* Media Queries */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    header {
        transform: translateX(-100%);
        width: 280px;
        transition: transform 0.3s ease;
    }

    header.active {
        transform: translateX(0);
        --sidebar-width: 280px;
    }

    main {
        margin-left: 0;
        width: 100%;
        padding-top: 80px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--white);
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        cursor: pointer;
    }

    .menu-toggle i {
        font-size: 1.5rem;
        color: var(--primary-color);
    }

    /* Navigation mobile */
    nav ul li a {
        padding: 1rem;
        font-size: 1rem;
    }

    nav ul li a i {
        font-size: 1.2rem;
        min-width: 40px;
    }

    .sub-nav li a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Hero section mobile - avatar centré au-dessus du texte */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        max-width: 100%;
        width: 100%;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-left, .hero-right {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-avatar {
        order: -1;
        width: 180px;
        height: 180px;
        margin: 0 auto 2rem;
        display: block;
    }

    .hero-left h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        text-align: center;
    }

    .hero-left p {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    /* Sections mobile */
    .section {
        padding: 2.5rem 0;
        margin: 0.5rem 0;
    }

    .section h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    /* Timeline mobile */
    .timeline-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    /* Compétences mobile */
    .competence-card-group {
        min-width: auto;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .competence-card-group h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .competence-card-group ul li {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    /* Logos mobile */
    .timeline-content img {
        height: 80px !important;
        width: auto !important;
    }

    /* Contact mobile */
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        text-align: center;
    }

    .contact-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 1.8rem;
    }

    .hero-left p {
        font-size: 0.95rem;
    }

    .hero-avatar {
        width: 140px;
        height: 140px;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .timeline-item {
        padding: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .competence-card-group {
        padding: 1rem;
    }

    .competence-card-group h3 {
        font-size: 1.1rem;
    }

    .competence-card-group ul li {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        top: 0.5rem;
        left: 0.5rem;
    }

    .menu-toggle i {
        font-size: 1.3rem;
    }
}

/* Tablette - avatar centré au-dessus du texte */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        max-width: 800px;
        width: 100%;
        gap: 2.5rem;
        padding: 0 2rem;
    }
    
    .hero-left, .hero-right {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-avatar {
        order: -1;
        width: 220px;
        height: 220px;
        margin: 0 auto 2.5rem;
        display: block;
    }
    
    .hero-left h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .hero-left p {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .section h2 {
        font-size: 2.5rem;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .competence-card-group {
        min-width: 300px;
        max-width: 350px;
    }

    .timeline-content img {
        height: 120px !important;
        width: auto !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 1s ease-out;
}

/* Animation des liens de navigation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-group {
    position: relative;
}

.nav-group > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Suppression des flèches du menu */
/* .nav-group > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-10px);
}

header.expanded .nav-group > a::after {
    opacity: 1;
    transform: translateX(0);
}

.nav-group.active > a::after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .nav-group > a::after {
        display: none !important;
        opacity: 0 !important;
    }
} */

.sub-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 2rem;
}

.nav-group.active .sub-nav {
    max-height: 400px;
}

.sub-nav li {
    margin: 0.3rem 0;
    animation: none;
    opacity: 1;
}

.sub-nav li a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    color: #d0d0d0;
    transition: var(--transition);
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.sub-nav li a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sub-nav li a i {
    font-size: 1rem;
}

header.expanded .sub-nav {
    display: block;
}

header:not(.expanded) .sub-nav {
    display: none;
}

/* Correction pour les sous-navigations sur mobile */
@media (max-width: 768px) {
    header.active .sub-nav {
        display: block !important;
    }
    
    header.active .nav-group.active .sub-nav {
        max-height: 400px !important;
    }
}

/* Formulaire de contact */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
    text-align: center;
    color: #1e4a8a;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Responsive pour le formulaire de contact */
@media (max-width: 768px) {
    .contact-form {
        max-width: 100%;
        margin: 2rem auto;
        padding: 1.5rem;
    }
    
    .contact-form h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.submit-btn i {
    font-size: 1.1rem;
}

/* Animation du formulaire */
.contact-form {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: transparent;
}

#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#competences {
    position: relative;
    overflow: hidden;
}

#competences .container {
    position: relative;
    z-index: 2;
} 

/* Surbrillance carte expérience/éducation */
.highlight-card {
    box-shadow: 0 0 0 5px #3498db, 0 8px 32px rgba(52,152,219,0.25);
    border-radius: 16px;
    background: rgba(52,152,219,0.08);
    transition: box-shadow 0.3s, background 0.3s;
    z-index: 10;
    position: relative;
} 

@media (min-width: 769px) {
    header,
    header nav a,
    header .profile-nav a,
    header .social-links a,
    header nav ul li a,
    header .sub-nav li a {
        color: #fff !important;
        --navbar-text-color: #fff !important;
        --navbar-hover-color: #e0e0e0 !important;
    }
    header nav a:hover,
    header .profile-nav a:hover,
    header .social-links a:hover,
    header nav ul li a:hover,
    header .sub-nav li a:hover {
        color: #e0e0e0 !important;
    }
} 

/* Toggle switch langue */
#lang-toggle {
    user-select: none;
    background: #D9D9D9;
    border-radius: 12px;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 58px;
    min-width: 160px;
    min-height: 58px;
    max-width: 160px;
    max-height: 58px;
    border: none;
    gap: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
#lang-toggle:hover {
    opacity: 1;
}
.flag-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 3px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 73px;
    height: 50px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    transition: background 0.18s, border 0.18s;
}
.flag-btn:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.flag-btn:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
.flag-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    border: none;
    background: none;
    transition: border 0.18s, background 0.18s;
    opacity: 1;
}
.flag-btn.active {
    background: #fff;
    border: 1.5px solid #ccc;
    z-index: 2;
    opacity: 0.9;
}
.flag-btn.active .flag-img {
    border: none;
    background: none;
    opacity: 1;
}
.flag-btn:not(.active):hover {
    background: #8a8a8a;
}
@media (max-width: 600px) {
    #lang-toggle {
        width: 100px;
        height: 36px;
        min-width: 100px;
        min-height: 36px;
        max-width: 100px;
        max-height: 36px;
        border-radius: 8px;
    }
    .flag-btn {
        width: 44px;
        height: 28px;
        border-radius: 6px;
        margin: 0 2px;
    }
    .flag-img {
        width: 18px;
        height: 18px;
        border-radius: 3px;
    }
} 

/* Ajustement pour les tablettes - avatar au-dessus du texte */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 800px;
        width: 100%;
        gap: 2rem;
    }
    
    .hero-left, .hero-right {
        width: 100%;
        text-align: center;
    }
    
    .hero-avatar {
        order: -1; /* Place l'avatar en premier */
        width: 200px;
        height: 200px;
        margin: 0 auto 2rem;
    }
    
    .hero-left h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-left p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

/* Ajustement pour les mobiles - avatar au-dessus du texte */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 100%;
        width: 100%;
        gap: 1.5rem;
    }
    
    .hero-left, .hero-right {
        width: 100%;
        text-align: center;
    }
    
    .hero-avatar {
        order: -1; /* Place l'avatar en premier */
        width: 150px;
        height: 150px;
        margin: 0 auto 1.5rem;
    }
    
    .hero-left h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-left p {
        font-size: 1rem;
        line-height: 1.5;
    }
} 

/* HERO SECTION - Responsive parfait */
@media (max-width: 1024px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .hero-right {
    order: -1; /* Avatar en haut */
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .hero-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    display: block;
  }
  .hero-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-left h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .hero-left p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .hero-avatar {
    width: 120px;
    height: 120px;
  }
  .hero-left h1 {
    font-size: 1.3rem;
  }
  .hero-left p {
    font-size: 0.95rem;
  }
}

/* NAVIGATION & LANG TOGGLE */
@media (max-width: 600px) {
  #lang-toggle {
    width: 80px;
    height: 32px;
    min-width: 80px;
    min-height: 32px;
    max-width: 80px;
    max-height: 32px;
    border-radius: 8px;
  }
  .flag-btn {
    width: 36px;
    height: 24px;
    border-radius: 6px;
    margin: 0 1px;
  }
  .flag-img {
    width: 14px;
    height: 14px;
    border-radius: 3px;
  }
  .menu-toggle {
    width: 40px;
    height: 40px;
    top: 0.5rem;
    left: 0.5rem;
  }
}

/* SECTIONS & PADDINGS */
@media (max-width: 600px) {
  .section {
    padding: 1.2rem 0;
    margin: 0.2rem 0;
  }
  .section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
}

/* LOGOS/IMAGES */
@media (max-width: 600px) {
  .timeline-content img,
  .competence-card-group img {
    max-width: 80px;
    max-height: 40px;
    margin: 0 auto 0.5rem;
    display: block;
  }
}

/* CONTACT - Responsive */
@media (max-width: 600px) {
  .contact-info {
    flex-direction: column;
    gap: 1.2rem;
  }
  .contact-item {
    padding: 0.7rem;
    text-align: center;
  }
  .contact-item i {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }
}

/* TABLETTE - Ajustements */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero-avatar {
    width: 180px;
    height: 180px;
  }
  .hero-left h1 {
    font-size: 2.2rem;
  }
  .hero-left p {
    font-size: 1.1rem;
  }
  .section h2 {
    font-size: 1.6rem;
  }
  .timeline-content img,
  .competence-card-group img {
    max-width: 120px;
    max-height: 60px;
  }
} 

/* Carte principale harmonisée */
.main-card {
  background: rgba(30, 58, 138, 0.28) !important;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  color: #fff;
  text-align: left;
  margin-bottom: 2rem;
  border: none;
}
.main-card h3, .main-card h4, .main-card p, .main-card ul, .main-card li {
  color: #fff;
}

/* Appliquer .main-card à toutes les cartes */
.timeline-item,
.competence-card-group,
.portfolio-card,
.contact-item,
.contact-form {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}
.timeline-item > .timeline-content,
.competence-card-group,
.portfolio-card,
.contact-item,
.contact-form {
  padding: 0;
}
.timeline-item > .timeline-content,
.competence-card-group,
.portfolio-card,
.contact-item,
.contact-form {
  /* Ajoute la classe main-card via CSS pour harmoniser */
  background: rgba(30, 58, 138, 0.28) !important;
  border-radius: 24px !important;
  padding: 2.5rem 2rem !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10) !important;
  color: #fff !important;
  border: none !important;
}

/* Ajuster les titres et textes pour la lisibilité */
.timeline-content h3, .competence-card-group h3, .portfolio-card h3, .contact-form h3 {
  color: #fff !important;
  font-weight: 700;
}
.timeline-content h4, .competence-card-group h4, .portfolio-card h4 {
  color: #cce3ff !important;
}
.timeline-content p, .competence-card-group p, .portfolio-card p, .contact-form p, .contact-item p {
  color: #fff !important;
}

/* Supprimer le blur et le fond blanc sur les sections */
.section {
  background: transparent !important;
  backdrop-filter: none !important;
}

/* Harmoniser les boutons portfolio */
.btn-portfolio {
  background: #fff;
  color: #1e3a8a;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-portfolio:hover {
  background: #cce3ff;
  color: #1e3a8a;
} 

/* Formulaire de contact harmonisé */
.contact-form label {
  color: #fff !important;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border: 2px solid #cce3ff !important;
  border-radius: 8px !important;
  font-size: 1rem;
  transition: border 0.2s, background 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #e0eaff !important;
  opacity: 1;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #fff !important;
  background: rgba(255,255,255,0.22) !important;
  outline: none;
}
.contact-form h3 {
  color: #fff !important;
} 

/* Forcer le texte en blanc dans les cartes contact et compétences */
.contact-item, .contact-item p, .contact-item a, .contact-item i {
  color: #fff !important;
}
.competence-card-group, .competence-card-group h3, .competence-card-group ul, .competence-card-group li, .competence-card-group a, .competence-card-icon {
  color: #fff !important;
}
.competence-card-group ul li::before {
  color: #fff !important;
}
.competence-card-group a {
  text-decoration: underline;
} 

.btn-action-hero {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(90deg, #3498db 0%, #1e4a8a 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(30,58,138,0.13);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.btn-action-hero:hover {
  background: linear-gradient(90deg, #1e4a8a 0%, #3498db 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(30,58,138,0.18);
} 