/* =============== */
/* VARIABLES GLOBALES */
/* =============== */
:root {
    --primary: #0a192f;
    --primary-light: #112240;
    --secondary: #020c1b;
    --light: #f8fafc;
    --gray: #8892b0;
    --dark-gray: #495670;
    --silver: #ccd6f6;
    --gold: #d4af37;
    --gold-light: #e6c567;
    --gold-dark: #b8860b;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --radius: 8px;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

/* ============= */
/* RÉINITIALISATION */
/* ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--silver);
    background: var(--gradient-primary);
    overflow-x: hidden;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

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

section {
    scroll-margin-top: 100px;
    padding: 80px 0;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

/* ============= */
/* TYPOGRAPHIE */
/* ============= */
.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--silver);
    margin-bottom: 60px;
    max-width: 800px;
}

/* ============= */
/* BOUTONS */
/* ============= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-gold);
    color: var(--secondary);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    color: var(--light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gradient-gold);
    color: var(--secondary);
    border-color: transparent;
}

.read-more-btn {
    background: var(--gradient-gold);
    color: var(--secondary);
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

/* ============= */
/* HEADER */
/* ============= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.95);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.logo span {
    color: var(--silver);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
    color: var(--silver);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--gold);
}

/* Sélecteur de langue */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--silver);
}

.language-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 25, 47, 0.95);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
    width: 140px;
    overflow: hidden;
    display: none;
    z-index: 100;
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.language-dropdown.active {
    display: block;
}

.language-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    color: var(--silver);
}

.language-option:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.language-option.disabled {
    color: var(--gray);
    pointer-events: none;
    opacity: 0.5;
}


.main-content-wrapper {
background-image: url('https://mrdib.com/assets/images/vertical_background.png');
background-size: cover;
background-position: center;
background-attachment: fixed;
position: relative;

}

.main-content-wrapper::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5); /* overlay semi-transparent pour améliorer la lisibilité */
z-index: 0;
}

.main-content-wrapper {
position: relative;
z-index: 1;
}  



/* ============= */
/* HERO SECTION */
/* ============= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(2, 12, 27, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://mrdib.com/assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(1.2);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--silver);
}

.hero-text h1 span {
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--silver);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-img {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #d4af37;
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
    position: relative;
    z-index: 2000000;
}

.hero-shape {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.2;
    filter: blur(20px);
}

/* ============= */
/* À PROPOS */
/* ============= */
.about-section {
    background: rgba(10, 25, 47, 0.7);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-text {
    position: relative;
}

.about-text-content {
    margin-bottom: 20px;
    color: var(--silver);
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.about-text-content.collapsed {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.about-text-content.expanded {
    max-height: 2000px;
}

.about-text-content p {
    margin-bottom: 15px;
}

/* ============= */
/* TIMELINE */
/* ============= */
.timeline-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(17, 34, 64, 0.7);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.timeline-slider {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    transition: transform 0.5s ease;
}

.timeline-item {
    min-width: 320px;
    max-width: 350px;
    background: rgba(10, 25, 47, 0.8);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.timeline-item:hover {
/*  transform: translateY(-10px); */
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-gold);
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.timeline-icon img {
    max-width: 30px;
    max-height: 30px;
    display: block;
    margin: 0 auto;
}

.timeline-date {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.timeline-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--silver);
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

.timeline-description {
    color: var(--silver);
    margin-bottom: 20px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
    font-size: 12px;
}

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

.timeline-description li {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 500;
    position: relative;
}

.timeline-description li::before {
    content: "✔";
    color: #d4af37;
    margin-right: 10px;
    font-weight: bold;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.slider-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow);
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.timeline-item.active {
    transform: scale(1.05);
    border: 1px solid var(--gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    z-index: 2;
    background: rgba(17, 34, 64, 0.9);
    text-align: center;
}

/* ============= */
/* COMPÉTENCES */
/* ============= */
.skills {
    margin-top: 40px;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category h3 {
    margin-bottom: 15px;
    color: var(--gold);
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-item {
    background-color: rgba(17, 34, 64, 0.7);
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--silver);
    box-shadow: var(--shadow);
}

.skill-item:hover {
    transform: translateY(-5px);
    background: var(--gradient-gold);
    color: var(--secondary);
    border-color: var(--gold);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

/* ============= */
/* EXPÉRIENCES */
/* ============= */
.experience-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(10, 25, 47, 0.9) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.experience-card {
    perspective: 1000px;
    height: 100%;
    overflow: visible;
    position: relative;
}

.experience-card-inner {
    position: relative;
    width: 100%;
    min-height: 460px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.experience-card:hover .experience-card-inner {
    transform: rotateY(180deg);
}

.experience-card-front,
.experience-card-back {
    position: absolute;
    min-width: 100px;
    min-height: 100px;
    backface-visibility: hidden;
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 12px;
}

.experience-card-back {
    transform: rotateY(180deg);
    background: var(--primary-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Personnalisation des puces dans les cartes d'expérience */
.experience-card-back ul {
    list-style: none;
    padding-left: 0;
    width: 100%;
}

.experience-card-back li {
    padding: 10px 15px;
    margin-bottom: 10px;
/*   border-left: 5px solid #d4af37;*/
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 500;
    position: relative;
    text-align: left;
    background: rgba(17, 34, 64, 0.5);
}

.experience-card-back li::before {
    content: "✔";
    color: #d4af37;
    margin-right: 10px;
    font-weight: bold;
}

.exp-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.exp-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.exp-company {
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 15px;
    display: block;
}

.exp-date {
    color: var(--gray);
    margin-bottom: 15px;
    font-style: italic;
}

.exp-description {
    color: var(--silver);
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enhanced Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}


/* ============= */
/* PORTFOLIO */
/* ============= */
.portfolio-section {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(2, 12, 27, 0.95) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 30px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-gold);
    border-color: transparent;
    color: var(--secondary);
    transform: translateY(-3px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-title {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: center;
}

.portfolio-category {
    color: var(--silver);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ============= */
/* ARTICLES */
/* ============= */
.featured-articles {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(10, 25, 47, 0.9) 100%);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.swiper {
    width: 100%;
    height: 100%;
    padding: 20px 0 50px;
}

.swiper-slide {
    background: rgba(17, 34, 64, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(5px);
}

.swiper-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    border: 1px solid #d4af37;
    background: rgba(17, 34, 64, 0.9);
}

.swiper-button-prev,
.swiper-button-next {
    width: 32px;
    height: 32px;
    font-size: 18px;
/*  background-color: rgba(0, 0, 0, 0.4); */
    border-radius: 50%;
    color: #fff;
    display: none !important;
}

.swiper-pagination {
    margin-top: 50px;
}

.swiper-button-prev {
    left: 15px;
}

.swiper-button-next {
    right: 15px;
}

.article-img {
    width: 100%;
    height: 125px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #8892b0;
}

.article-category {
    color: #d4af37;
    font-weight: 600;
}

.article-title {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #ccd6f6;
}

.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
    font-size: 12px;
    margin-bottom: 15px;
}

/* ============= */
/* CONTACT */
/* ============= */
.contact-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.contact .section-title {
    color: var(--gold);
}

.contact .section-subtitle {
    color: var(--silver);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-details h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--gold);
}

.contact-details p,
.contact-details a {
    color: var(--silver);
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--silver);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-link:hover {
    background: var(--gradient-gold);
    transform: translateY(-5px);
    color: var(--secondary);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: rgba(17, 34, 64, 0.5);
    color: var(--silver);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(204, 214, 246, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(17, 34, 64, 0.7);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact-form label {
    color: var(--silver);
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

input:invalid,
textarea:invalid {
    border-color: #ff6b6b;
}

input:invalid+.error-message,
textarea:invalid+.error-message {
    display: block;
}

#formMessage {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--radius);
    display: none;
}

#formMessage.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    display: block;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

#formMessage.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    display: block;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ============= */
/* SECTION SEO */
/* ============= */
.seo-section {
    background: rgba(10, 25, 47, 0.7);
    border-radius: var(--radius);
    padding: 40px;
    /*margin: 50px 0;*/
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.seo-title {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.seo-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.seo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.seo-text {
    color: var(--silver);
    line-height: 1.8;
}

.seo-text ul {
    list-style-type: disc !important;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

.seo-text li {
    margin-bottom: 8px;
}

.seo-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(17, 34, 64, 0.7);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--silver);
    font-size: 1.1rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.faq-item.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 22px 25px;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover, .faq-question:focus {
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

.faq-question i {
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--gold);
    font-size: 1.1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: rgba(15, 23, 42, 0.5);
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Valeur suffisamment grande pour contenir le texte */
}

.answer-content {
    padding: 0 25px 25px;
    color: var(--silver);
    line-height: 1.7;
    font-size: 1.05rem;
    text-align: left;
}

.answer-content p {
    margin-bottom: 15px;
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.faq-answer li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    color: var(--silver);
    line-height: 1.6;
    font-size: 1.05rem;
}

.faq-answer li::before {
   content: "✔";
   color: #d4af37;
   margin-right: 10px;
   position: absolute;
   left: 0;
   top: 0;
   font-weight: bold;
}

.highlight-box {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--gold);
    padding: 18px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.faq-answer table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    color: var(--silver);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.faq-answer th,
.faq-answer td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-align: left;
}

.faq-answer th {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer td {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-answer tr:hover td {
    background-color: rgba(212, 175, 55, 0.08);
}

.tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 5px 5px 5px 0;
    font-weight: 500;
}

.contact-note {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-note h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.contact-note p {
    color: var(--silver);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--darker-bg);
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    margin-top: 10px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}


.calculator-container {
    background: rgba(17, 34, 64, 0.7);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.calculator-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(10, 25, 47, 0.7);
    border-radius: var(--radius);
    text-align: center;
    display: none;
}

.calculator-value {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    margin: 10px 0;
}

.calculator-chart-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}

.chart-wrapper {
    width: 250px;
    height: 250px;
}

.chart-legend {
    flex: 1;
    min-width: 200px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 10px;
    border-radius: 3px;
}

/* ============= */
/* FOOTER */
/* ============= */
footer {
    background-color: var(--secondary);
    color: var(--gray);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-about p {
    margin-bottom: 20px;
    color: var(--silver);
}

.footer-links h3,
.footer-newsletter h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    transition: var(--transition);
    color: var(--silver);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: var(--silver);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background-color: rgba(17, 34, 64, 0.5);
    color: var(--silver);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(17, 34, 64, 0.7);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--radius);
    display: none;
}

.newsletter-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    display: block;
}

.newsletter-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    display: block;
}

.newsletter-notification {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 10000;
    transform: translateX(120%);
    animation: slideIn 0.5s forwards, fadeOut 0.5s forwards 4.5s;
}

.notification-content {
    display: flex;
    padding: 20px;
    gap: 15px;
    align-items: center;
}

.notification-icon {
    width: 35px;
    height: 35px;
    fill: #4CAF50;
    flex-shrink: 0;
}

.newsletter-notification h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.newsletter-notification p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95em;
    line-height: 1.4;
}

.notification-progress {
    height: 4px;
    background: linear-gradient(to right, #4CAF50, #2E7D32);
    animation: progressBar 5s linear forwards;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--silver);
}

/* ============= */
/* CHATBOT */
/* ============= */
#chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 110px;
    background: var(--gradient-gold);
    color: var(--secondary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

#chatbot-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

#chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 320px;
    height: 400px;
    background: rgba(10, 25, 47, 0.95);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(2, 12, 27, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

#chatbot-container.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#chatbot-header {
    background: rgba(17, 34, 64, 0.9);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.chatbot-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--gold);
}

.chatbot-info p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    color: var(--silver);
}

#chatbot-close {
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    color: var(--silver);
}

#chatbot-close:hover {
    opacity: 1;
    color: var(--gold);
}

#chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(10, 25, 47, 0.7);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--silver);
}

.user-message {
    background: var(--gradient-gold);
    color: var(--secondary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

#chatbot-input {
    padding: 15px;
    background: rgba(17, 34, 64, 0.9);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    background: rgba(10, 25, 47, 0.7);
    color: var(--silver);
}

#user-input:focus {
    border-color: var(--gold);
}

#send-btn {
    background: var(--gradient-gold);
    color: var(--secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    box-shadow: var(--shadow);
}

#send-btn:hover {
    transform: scale(1.1);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 18px;
    align-self: flex-start;
    margin-top: 5px;
    border-bottom-left-radius: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ============= */
/* THÈME */
/* ============= */
.theme-switch {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.theme-switch:hover {
    transform: scale(1.1);
}

/* Mode sombre */
body.dark-mode {
    --primary: #121212;
    --primary-light: #1e1e1e;
    --secondary: #000000;
    --light: #f0f0f0;
    --gray: #8892b0;
    --dark-gray: #495670;
    --silver: #d0d0d0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.dark-mode .section-title {
    color: var(--gold-light);
}

.dark-mode .btn {
    color: var(--secondary);
}

/* Ajustements spécifiques pour le mode sombre */
.dark-mode header {
    background-color: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.dark-mode .nav-link {
    color: var(--silver);
}

.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
    color: var(--gold);
}

.dark-mode .hero {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.dark-mode .about-section,
.dark-mode .timeline-slider-container,
.dark-mode .portfolio-item,
.dark-mode .swiper-slide,
.dark-mode .contact-section,
.dark-mode footer {
    background: rgba(18, 18, 18, 0.9);
    border-color: rgba(212, 175, 55, 0.1);
}

.dark-mode .skill-item,
.dark-mode .experience-card-front,
.dark-mode .experience-card-back,
.dark-mode .stat-card {
    background: rgba(30, 30, 30, 0.7);
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea,
.dark-mode .contact-form select,
.dark-mode .newsletter-form input {
    background-color: rgba(30, 30, 30, 0.5);
    color: var(--silver);
}

.dark-mode #chatbot-container,
.dark-mode #chatbot-header,
.dark-mode #chatbot-messages,
.dark-mode #chatbot-input {
    background: rgba(18, 18, 18, 0.95);
}

/* ============= */
/* ANIMATIONS */
/* ============= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(0) translateY(-50px);
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
}

.animate {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-text {
    animation-delay: 0.2s;
    margin-top: 120px;
}

.hero-img {
    animation-delay: 0.4s;
}

.experience-card {
    animation-delay: 0.3s;
}

.portfolio-item {
    animation-delay: 0.2s;
}

/* ============= */
/* RESPONSIVE */
/* ============= */
@media (max-width: 992px) {

    .hero-content,
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about-timeline {
        margin-bottom: 40px;
    }

    .timeline-item {
        min-width: 85%;
    }

    .hero-text {
        order: 2;
        text-align: center;
    }

    .hero-img {
        order: 1;
    }

    .hero-btns {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .about-section {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-shape {
        width: 250px;
        height: 250px;
    }

    .about-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .timeline-slider {
        gap: 15px;
    }

    .timeline-item {
        padding: 20px;
    }

    .swiper {
        padding: 10px 0 40px;
    }

    .article-img {
        height: 150px;
    }

    .article-content {
        padding: 15px;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(10, 25, 47, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
    }

    .hero-img .hero-shape .profile-img {
        width: 175px;
        height: 175px;
    }

/*    .timeline-item { */
/*        min-width: 85vw; */
/*        padding: 20px;
/*    }     */

    .experience-card {
        height: auto;
        min-height: 300px;
    }

    .input-group {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
}

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 0;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .hamburger {
        font-size: 1.3rem;
    }

    .language-selector {
        margin-left: 10px;
        
    }

    .language-btn {
        padding: 6px 10px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text {
        order: 2;
        text-align: center;
        margin-top: 0px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-img {
        order: 1;
        margin: 0 auto;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }

    .hero-shape {
        width: 280px;
        height: 280px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .about-section {
        padding: 25px 15px;
    }

    .about-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .skill-list {
        justify-content: center;
    }

    .skill-item {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    #chatbot-container {
        width: 90%;
        height: 70vh;
        bottom: 70px;
        right: 5%;
    }


    .about-timeline {
        background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(2, 12, 27, 0.95) 100%);
        backdrop-filter: blur(5px);
        border-top: 1px solid rgba(212, 175, 55, 0.1);
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        padding: 100px 0;
    }

    .timeline-swiper {
        padding: 20px 0 50px;
    }

    .timeline-slide {
        background: rgba(17, 34, 64, 0.7);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        border: 1px solid rgba(212, 175, 55, 0.1);
        backdrop-filter: blur(5px);
        height: auto;
        padding: 25px;
    }

    .timeline-slide:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
        border: 1px solid #d4af37;
        background: rgba(17, 34, 64, 0.9);
    }

    .timeline-item {
        color: #ccd6f6;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 15px;
        border: 2px solid rgba(212, 175, 55, 0.3);
    }

    .timeline-date {
        color: #d4af37;
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .timeline-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: #ccd6f6;
    }

    .timeline-location {
        color: #8892b0;
        margin-bottom: 15px;
        font-style: italic;
    }

    .timeline-description ul {
        list-style: none;
        padding-left: 0;
    }
    
    .timeline-description li {
        padding: 10px 15px;
        margin-bottom: 10px;
/*        border-left: 5px solid #d4af37; */
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        font-weight: 500;
        position: relative;
    }
    
    .timeline-description li::before {
        content: "✔";
        color: #d4af37;
        margin-right: 5px;
        font-weight: bold;
    }
    
    .timeline-slide {
        padding: 20px;
    }

    .timeline-title {
        font-size: 1.1rem;
    }


    .seo-text ul {
        list-style-type: disc !important;
        margin-left: 1.5rem;
        padding-left: 1rem;
    }

    .seo-text li {
        margin-bottom: 8px;
    }

    .seo-title {
        font-size: 2rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }
    
    .answer-content {
        padding: 0 20px 20px;
    }
    
    .faq-answer th, 
    .faq-answer td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
    
  .faq-container,
  .contact-note {
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
  }
}


@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }

    .section {
        padding: 70px 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .experience-card-inner {
        min-height: 400px;
    }

    .experience-card-front,
    .experience-card-back {
        padding: 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-img {
        height: 200px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        order: -1;
    }
        /* Header mobile */
    .header-container {
        flex-wrap: wrap;
    }

    .input-group {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .seo-content {
        grid-template-columns: 1fr;
    }

    .seo-stats {
        grid-template-columns: 1fr 1fr;
    }

    .calculator-chart-container {
        flex-direction: column;
    }

    .chart-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .theme-switch {
        bottom: 20px;
        left: 20px;
    }
    
  .faq-container,
  .contact-note {
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
  }
    
}

@media (max-width: 480px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        margin-top: 80px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }

    .profile-img {
        width: 175px;
        height: 175px;
    }

    .hamburger {
        display: block;
    }

    .skills .skill-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .seo-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .seo-content {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .seo-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .skill-category h3 {
        font-size: 1.1rem;
    }

    .skill-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .experience-card {
        perspective: none;
    }

    .experience-card-inner {
        transform: none !important;
        min-height: auto;
    }

    .experience-card-front,
    .experience-card-back {
        position: relative;
        min-height: auto;
        backface-visibility: visible;
        transform: none !important;
    }

    .experience-card-back {
        display: none;
    }

    .newsletter-notification {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        top: 15px;
    }

    .theme-switch {
        bottom: 20px;
        left: 20px;
    }
    
    .seo-title {
        font-size: 1.8rem;
    }
    
    .faq-question {
        font-size: 1.05rem;
        padding: 16px 18px;
    }
    
    .faq-answer table {
        display: block;
        overflow-x: auto;
    }    
    
/*
  #chatbot-container {
    width: 90%;
    right: 5%;
  }
  
  #chatbot-button {
    right: 80px;
    bottom: 20px;
  }
*/

    
}

/* Classes utilitaires */
.grabbing {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.gold-accent {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0.3;
    z-index: -1;
}

.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 1;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.section-divider .shape-fill {
    fill: var(--primary);
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0px, transparent 50px), radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0px, transparent 50px);
    z-index: -1;
    pointer-events: none;
}