:root {
    --primary-color: #27ae60; /* Vert principal : un peu plus profond et élégant */
    --orange-color: #e67e22; /* Orange doux et moderne pour "en dev" */
    --red-color: #c0392b; /* Rouge plus sobre pour "abandonné" */
    --dark-color: #1e272e; /* Gris anthracite profond et moderne */
    --bg-color: white; /* Fond blanc unifié pour toute la page */
    --bg-light: #f9fafb; /* Blanc très doux pour les éléments de contraste (cartes, etc.) */
    --text-color: #222f3e; /* Gris-noir légèrement bleuté pour un bon contraste */
    --light-text: #576574; /* Gris moyen lisible pour le texte secondaire */
    --navbar-bg: rgba(255, 255, 255, 0.95); /* Fond de la barre de navigation */
    --card-bg: white; /* Fond des cartes */
    --border-color: #ecf0f1; /* Couleur des bordures */
}

/* Styles pour le mode sombre */
[data-theme="dark"] {
    --primary-color: #2ecc71; /* Vert plus clair pour le mode sombre */
    --orange-color: #f39c12; /* Orange plus lumineux */
    --red-color: #e74c3c; /* Rouge plus vif */
    --dark-color: #f8f9fa; /* Texte clair pour le mode sombre */
    --bg-color: #1a1a1a; /* Fond sombre */
    --bg-light: #2d2d2d; /* Fond légèrement plus clair pour les cartes */
    --text-color: #e9ecef; /* Texte principal clair */
    --light-text: #adb5bd; /* Texte secondaire plus discret */
    --navbar-bg: rgba(26, 26, 26, 0.95); /* Fond de la barre de navigation sombre */
    --card-bg: #2d2d2d; /* Fond des cartes sombres */
    --border-color: #495057; /* Bordures plus sombres */
}


html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-color); color: var(--text-color); margin: 0; padding-top: 70px; }
.navbar { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--navbar-bg); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 15px 10%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; box-sizing: border-box; }
.nav-logo { font-weight: 700; font-size: 24px; color: var(--dark-color); text-decoration: none; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 600; font-size: 16px; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
section { padding: 100px 10%; }
.section-title { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 30px; color: var(--dark-color); position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--primary-color); border-radius: 2px; }
.section-title span { color: var(--primary-color); }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ======== SECTIONS AVEC FOND UNIFIÉ ======== */
#hero, #projets, #interets, #certifications, #stack, #avantages, #contact, #parcours, #competences {
    background-color: var(--bg-color);
}

/* Styles pour le bouton de bascule de thème */
.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle-btn:hover {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--primary-color);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background-color: rgba(46, 204, 113, 0.2);
}

#hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 5px 10%;
    position: relative;
    background-color: var(--bg-color);
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out forwards;
}

.hero-badge i {
    margin-right: 8px;
    font-size: 16px;
}

.hero-text h3 {
    font-size: 22px;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-text h1 {
    font-size: 68px;
    margin: 5px 0 15px 0;
    color: var(--dark-color);
    font-weight: 800;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
    animation-delay: 0.4s;
    position: relative;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary-color), #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 30px;
    font-weight: 600;
    color: var(--primary-color);
    min-height: 40px;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.hero-description {
    font-size: 18px;
    color: var(--light-text);
    line-height: 1.7;
    margin: 30px 0;
    max-width: 550px;
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1s;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--light-text);
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 32px;
    background-color: var(--primary-color);
    animation: blink 0.7s infinite;
    margin-left: 5px;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-buttons {
    margin-top: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.2s;
    display: flex;
    gap: 20px;
}

.cta-button {
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.primary {
    background: linear-gradient(135deg, var(--primary-color), #2ecc71);
    color: white;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.primary:hover::before {
    left: 100%;
}

.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.4);
}

.secondary {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.3);
}

.hero-image-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInRight 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-color), #2ecc71);
    transform: rotate(6deg);
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.2);
}

.hero-image {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 4px solid var(--card-bg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-social {
    position: absolute;
    bottom: 30px;
    left: 0;
    display: flex;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 1.4s;
}

.hero-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--card-bg);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3);
}

[data-theme="dark"] .hero-social a {
    background-color: rgba(45, 45, 45, 0.9);
    border: 1px solid var(--border-color);
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.skill-category {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), #2ecc71);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.15);
}

.skill-category h4 {
    color: var(--dark-color);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(39, 174, 96, 0.2);
    display: flex;
    align-items: center;
}

.skill-category h4 i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 24px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.skill-category li:hover {
    background-color: rgba(39, 174, 96, 0.05);
}

[data-theme="dark"] .skill-category li:hover {
    background-color: rgba(39, 174, 96, 0.15);
}

.skill-category li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.language-skill {
    margin-bottom: 25px;
}

.language-skill p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

.language-skill p::after {
    content: attr(data-level);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

.progress-bar-container {
    width: 100%;
    background-color: rgba(39, 174, 96, 0.1);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #2ecc71);
    border-radius: 10px;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.2) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Animation pour les barres de progression */
.skill-category.show .progress-bar {
    animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
    0% { width: 0 !important; }
}
.projects-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 -5%;
    padding: 0 70px;
    overflow: hidden;
}

.projects-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 30px 15px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.projects-wrapper::-webkit-scrollbar {
    display: none;
}

.projects-wrapper.grabbing {
    scroll-snap-type: none;
    cursor: grabbing;
}

.project-card {
    flex: 0 0 380px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    scroll-snap-align: start;
    transform-origin: center bottom;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #2ecc71);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.2);
}

.project-media-container {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.project-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover .project-media {
    transform: scale(1.12);
    filter: brightness(1.05);
}

.project-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover .project-media-overlay {
    opacity: 1;
}

.project-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-content h4 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: var(--dark-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h4 {
    color: var(--primary-color);
}

.project-content p {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tags {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.1));
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(39, 174, 96, 0.2);
    transition: all 0.3s ease;
}

.project-tags span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.2);
}

.project-links {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.project-links a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.project-links a:hover {
    color: #1abc9c;
    transform: translateX(5px);
}

.project-links a i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.project-links a:hover i {
    transform: translateX(3px);
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.status-completed {
    background: linear-gradient(135deg, var(--primary-color), #2ecc71);
}

.status-in-progress {
    background: linear-gradient(135deg, var(--orange-color), #f39c12);
}

.status-abandoned {
    background: linear-gradient(135deg, var(--red-color), #e74c3c);
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--card-bg), rgba(255,255,255,0.9));
    backdrop-filter: blur(10px);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.scroll-arrow:hover {
    background: linear-gradient(135deg, var(--primary-color), #2ecc71);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.scroll-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

.scroll-arrow.prev { left: 15px; }
.scroll-arrow.next { right: 15px; }

/* Indicateurs de défilement */
.scroll-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Animation d'apparition des cartes */
.projects-wrapper .project-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpProject 0.6s ease-out forwards;
}

.projects-wrapper .project-card:nth-child(1) { animation-delay: 0.1s; }
.projects-wrapper .project-card:nth-child(2) { animation-delay: 0.2s; }
.projects-wrapper .project-card:nth-child(3) { animation-delay: 0.3s; }
.projects-wrapper .project-card:nth-child(4) { animation-delay: 0.4s; }
.projects-wrapper .project-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUpProject {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de brillance au survol */
.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Styles pour l'accessibilité */
.scroll-arrow:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.scroll-dot:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

.project-card:focus-within {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.3);
}

/* Styles pour l'état "grabbing" */
.projects-wrapper.grabbing {
    cursor: grabbing;
}

.projects-wrapper.grabbing .project-card {
    transition: none;
}

/* Animation de pulsation pour les flèches */
@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.05); }
    100% { transform: translateY(-50%) scale(1); }
}

.scroll-arrow.pulse {
    animation: pulse 2s infinite;
}

/* Effet de masque pour les extrémités du carrousel */
.projects-container::before,
.projects-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 5;
    pointer-events: none;
}

.projects-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.projects-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

/* Styles pour le mode sombre spécifiques aux projets */
[data-theme="dark"] .projects-container::before {
    background: linear-gradient(to right, var(--bg-color), transparent);
}

[data-theme="dark"] .projects-container::after {
    background: linear-gradient(to left, var(--bg-color), transparent);
}

[data-theme="dark"] .project-tags span {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15));
    border-color: rgba(46, 204, 113, 0.3);
}

/* Animation de chargement pour les images */
.project-media {
    animation: mediaLoad 0.8s ease-out;
}

@keyframes mediaLoad {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Effet de parallaxe subtil pour les images au survol */
.project-card:hover .project-media {
    animation: parallaxEffect 0.6s ease-out forwards;
}

@keyframes parallaxEffect {
    0% {
        transform: scale(1.12) translateY(0);
    }
    100% {
        transform: scale(1.12) translateY(-5px);
    }
}

/* Styles pour les vidéos */
.project-media[controls] {
    object-fit: cover;
}

/* Amélioration du contraste pour les statuts en mode sombre */
[data-theme="dark"] .project-status {
    backdrop-filter: blur(8px);
}

/* Animation d'apparition pour les indicateurs de défilement */
.scroll-indicators {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
/* Section Avantages - Design amélioré */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
    perspective: 1000px;
}

.advantage-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    border: 1px solid rgba(39, 174, 96, 0.1);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #2ecc71);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.2);
}

.advantage-card-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(46, 204, 113, 0.05));
}

.advantage-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1.05);
}

.advantage-card:hover .advantage-card-image {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.1);
}

.advantage-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(39, 174, 96, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.advantage-card:hover .advantage-card-overlay {
    opacity: 1;
}

.advantage-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 3;
}

.advantage-card-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.advantage-card:hover .advantage-card-icon {
    transform: scale(1);
}

.advantage-card-content {
    padding: 35px 30px;
    text-align: center;
    position: relative;
}

.advantage-card-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.advantage-card-content h4 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    transition: color 0.3s ease;
}

.advantage-card:hover .advantage-card-content h4 {
    color: var(--primary-color);
}

.advantage-card-content h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #2ecc71);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.advantage-card:hover .advantage-card-content h4::after {
    width: 80px;
}

.advantage-card-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--light-text);
    margin: 20px 0 0 0;
    transition: color 0.3s ease;
}

.advantage-card:hover .advantage-card-content p {
    color: var(--text-color);
}

/* Animation d'apparition pour les cartes d'avantages */
.advantages-grid.show .advantage-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpAdvantage 0.6s ease-out forwards;
}

.advantages-grid.show .advantage-card:nth-child(1) { animation-delay: 0.1s; }
.advantages-grid.show .advantage-card:nth-child(2) { animation-delay: 0.2s; }
.advantages-grid.show .advantage-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUpAdvantage {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de brillance au survol */
.advantage-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
    pointer-events: none;
    z-index: 1;
}

.advantage-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Icônes spécifiques pour chaque carte */
.advantage-card:nth-child(1) .advantage-card-icon i::before { content: '\f0c0'; } /* Utilisateurs */
.advantage-card:nth-child(2) .advantage-card-icon i::before { content: '\f3d1'; } /* Euro */
.advantage-card:nth-child(3) .advantage-card-icon i::before { content: '\f19d'; } /* Graduation */

/* Responsive pour la section avantages */
@media screen and (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .advantage-card {
        border-radius: 15px;
    }
    
    .advantage-card-image-container {
        height: 180px;
    }
    
    .advantage-card-content {
        padding: 25px 20px;
    }
    
    .advantage-card-content h4 {
        font-size: 20px;
    }
    
    .advantage-card-content p {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .advantage-card-image-container {
        height: 160px;
    }
    
    .advantage-card-content {
        padding: 20px 15px;
    }
    
    .advantage-card-content h4 {
        font-size: 18px;
    }
    
    .advantage-card-content p {
        font-size: 14px;
    }
}
.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), #2ecc71);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.2);
}

.timeline-event {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-event.show {
    opacity: 1;
    transform: translateX(0);
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: 10px;
    top: 8px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1), 0 0 15px rgba(39, 174, 96, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-event:hover .timeline-node {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.2), 0 0 20px rgba(39, 174, 96, 0.5);
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(39, 174, 96, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--card-bg);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.2);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

.timeline-content h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.timeline-content h4 i {
    margin-right: 8px;
    font-size: 14px;
}

.timeline-content p {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

/* Styles pour les types d'événements */
.timeline-event:nth-child(odd) .timeline-node {
    background-color: var(--primary-color);
}

.timeline-event:nth-child(even) .timeline-node {
    background-color: #2ecc71;
}

/* Animation pour la timeline */
.timeline-wrapper.show .timeline-event {
    animation: slideIn 0.6s ease-out forwards;
}

.timeline-wrapper.show .timeline-event:nth-child(1) { animation-delay: 0.1s; }
.timeline-wrapper.show .timeline-event:nth-child(2) { animation-delay: 0.2s; }
.timeline-wrapper.show .timeline-event:nth-child(3) { animation-delay: 0.3s; }
.timeline-wrapper.show .timeline-event:nth-child(4) { animation-delay: 0.4s; }
.timeline-wrapper.show .timeline-event:nth-child(5) { animation-delay: 0.5s; }
.timeline-wrapper.show .timeline-event:nth-child(6) { animation-delay: 0.6s; }
.timeline-wrapper.show .timeline-event:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive pour la timeline */
@media screen and (max-width: 768px) {
    .timeline-wrapper {
        padding: 20px 0;
    }
    
    .timeline-wrapper::before {
        left: 15px;
    }
    
    .timeline-event {
        padding-left: 50px;
        margin-bottom: 30px;
    }
    
    .timeline-node {
        left: 5px;
        top: 5px;
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 18px;
    }
    
    .timeline-content h4 {
        font-size: 14px;
    }
    
    .timeline-content p {
        font-size: 14px;
    }
}
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.interest-card {
    background: var(--card-bg);
    border: 1px solid rgba(39, 174, 96, 0.1);
    padding: 35px 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), #2ecc71);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.interest-card:hover::before {
    transform: scaleX(1);
}

.interest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.2);
}

.interest-card i {
    font-size: 54px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.interest-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #1abc9c;
}

.interest-card h4 {
    margin: 0;
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.interest-card:hover h4 {
    color: var(--primary-color);
}

/* Animation pour les cartes d'intérêt */
.interests-grid.show .interest-card {
    animation: fadeInScale 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

.interests-grid.show .interest-card:nth-child(1) { animation-delay: 0.1s; }
.interests-grid.show .interest-card:nth-child(2) { animation-delay: 0.2s; }
.interests-grid.show .interest-card:nth-child(3) { animation-delay: 0.3s; }
.interests-grid.show .interest-card:nth-child(4) { animation-delay: 0.4s; }
.interests-grid.show .interest-card:nth-child(5) { animation-delay: 0.5s; }
.interests-grid.show .interest-card:nth-child(6) { animation-delay: 0.6s; }
.interests-grid.show .interest-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Icônes spécifiques avec des couleurs différentes */
.interest-card:nth-child(1) i { color: #3498db; } /* Construction PC - Bleu */
.interest-card:nth-child(2) i { color: #9b59b6; } /* Développement - Violet */
.interest-card:nth-child(3) i { color: #e74c3c; } /* Jeu Vidéo - Rouge */
.interest-card:nth-child(4) i { color: #f39c12; } /* Tennis - Orange */
.interest-card:nth-child(5) i { color: #d35400; } /* Histoire - Orange foncé */
.interest-card:nth-child(6) i { color: #16a085; } /* Bowling - Turquoise */
.interest-card:nth-child(7) i { color: #2980b9; } /* Géographie - Bleu foncé */

.interest-card:hover i {
    color: var(--primary-color);
}

/* Responsive pour les centres d'intérêt */
@media screen and (max-width: 768px) {
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .interest-card {
        padding: 25px 20px;
    }
    
    .interest-card i {
        font-size: 42px;
        margin-bottom: 15px;
    }
    
    .interest-card h4 {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .interest-card {
        padding: 20px 15px;
    }
    
    .interest-card i {
        font-size: 36px;
    }
    
    .interest-card h4 {
        font-size: 14px;
    }
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), #2ecc71);
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
}

.contact-info p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 25px;
}

.contact-info .contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-info .contact-detail:hover {
    background-color: rgba(39, 174, 96, 0.05);
    transform: translateX(5px);
}

[data-theme="dark"] .contact-info .contact-detail:hover {
    background-color: rgba(39, 174, 96, 0.15);
}

.contact-info .contact-detail i {
    color: var(--primary-color);
    font-size: 22px;
    margin-right: 20px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-info .contact-detail:hover i {
    transform: scale(1.2);
    color: #1abc9c;
}

.contact-info .contact-detail span {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), #2ecc71);
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(39, 174, 96, 0.1);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--bg-light);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--light-text);
    font-weight: 400;
}

.contact-form .cta-button {
    width: 100%;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.contact-form .cta-button::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;
}

.contact-form .cta-button:hover::before {
    left: 100%;
}

/* Animation pour les champs du formulaire */
.contact-form.show .form-group {
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-form.show .form-group:nth-child(1) { animation-delay: 0.1s; }
.contact-form.show .form-group:nth-child(2) { animation-delay: 0.2s; }
.contact-form.show .form-group:nth-child(3) { animation-delay: 0.3s; }
.contact-form.show .form-group:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour la section contact */
@media screen and (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info, .contact-form {
        padding: 30px;
    }
    
    .contact-info h3 {
        font-size: 24px;
    }
}

@media screen and (max-width: 568px) {
    .contact-info, .contact-form {
        padding: 25px;
    }
    
    .contact-info h3 {
        font-size: 22px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 15px;
        font-size: 15px;
    }
    
    .contact-form .cta-button {
        padding: 15px 20px;
        font-size: 15px;
    }
}
footer {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    text-align: center;
    padding: 20px 10%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(39, 174, 96, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
}

footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    background-color: white;
    border-radius: 50%;
    font-size: 22px;
    transition: all 0.4s ease;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.social-links a i {
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: rotate(15deg);
}

footer p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animation pour les icônes sociales */
footer.show .social-links a {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

footer.show .social-links a:nth-child(1) { animation-delay: 0.1s; }
footer.show .social-links a:nth-child(2) { animation-delay: 0.2s; }

footer.show p {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 0.9; }
}

/* Responsive pour le footer */
@media screen and (max-width: 768px) {
    footer {
        padding: 30px 8%;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    footer p {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    footer {
        padding: 25px 5%;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    footer p {
        font-size: 13px;
    }
}
.hidden { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.show { opacity: 1; transform: translateY(0); }

/* Responsive pour la nouvelle section hero */
@media screen and (max-width: 1024px) {
    #hero {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding: 80px 5%;
    }
    
    .hero-image-wrapper {
        width: 400px;
        height: 400px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .navbar { padding: 15px 5%; } .nav-links { display: none; }
    .theme-toggle { margin-left: auto; }
    section { padding: 80px 5%; }
    #hero {
        padding: 40px 5%;
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
    #hero::before, #hero::after {
        display: none;
    }
    
    .hero-text {
        max-width: 100%;
        order: 2;
    }
    
    .hero-image-container {
        order: 1;
        margin-bottom: 20px;
    }
    
    .hero-badge {
        font-size: 13px;
        padding: 6px 14px;
        margin-bottom: 15px;
    }
    
    .hero-text h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .hero-text h1 {
        font-size: 42px;
        line-height: 1.1;
        margin: 5px 0 10px 0;
    }
    
    .hero-text h2 {
        font-size: 22px;
        min-height: 30px;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 16px;
        margin: 15px 0 20px 0;
        line-height: 1.6;
    }
    
    .hero-stats {
        gap: 15px;
        margin: 20px 0 25px 0;
        justify-content: center;
    }
    
    .hero-stat-number {
        font-size: 26px;
    }
    
    .hero-stat-label {
        font-size: 12px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 25px;
        gap: 15px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .hero-image-bg {
        transform: rotate(3deg);
        border-radius: 20px;
    }
    
    .hero-image {
        top: 15px;
        left: 15px;
        width: calc(100% - 30px);
        height: calc(100% - 30px);
        border-radius: 15px;
    }
    
    .contact-container { grid-template-columns: 1fr; }
    .projects-container { padding: 0 20px; }
    .scroll-arrow { width: 40px; height: 40px; font-size: 20px; }
}

@media screen and (max-width: 568px) {
    #hero {
        padding: 30px 5%;
        gap: 25px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }
    
    .hero-text h3 {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .hero-text h1 {
        font-size: 36px;
        line-height: 1.1;
        margin: 3px 0 8px 0;
    }
    
    .hero-text h2 {
        font-size: 20px;
        min-height: 28px;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 15px;
        margin: 12px 0 18px 0;
        line-height: 1.6;
    }
    
    .hero-stats {
        gap: 12px;
        margin: 18px 0 20px 0;
        flex-wrap: wrap;
    }
    
    .hero-stat {
        flex: 1;
        min-width: 80px;
    }
    
    .hero-stat-number {
        font-size: 22px;
    }
    
    .hero-stat-label {
        font-size: 11px;
    }
    
    .hero-buttons {
        margin-top: 20px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 250px;
    }
    
    .hero-image-wrapper {
        width: 240px;
        height: 240px;
    }
    
    .hero-image-bg {
        transform: rotate(2deg);
        border-radius: 15px;
    }
    
    .hero-image {
        top: 12px;
        left: 12px;
        width: calc(100% - 24px);
        height: calc(100% - 24px);
        border-radius: 12px;
    }
    
    .hero-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    #hero {
        padding: 25px 5%;
        gap: 20px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }
    
    .hero-text h3 {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .hero-text h1 {
        font-size: 32px;
        line-height: 1.1;
        margin: 2px 0 6px 0;
    }
    
    .hero-text h2 {
        font-size: 18px;
        min-height: 26px;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 14px;
        margin: 10px 0 15px 0;
        line-height: 1.5;
    }
    
    .hero-stats {
        gap: 10px;
        margin: 15px 0 18px 0;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stat {
        flex: 1;
        min-width: 70px;
        max-width: 90px;
    }
    
    .hero-stat-number {
        font-size: 20px;
    }
    
    .hero-stat-label {
        font-size: 10px;
    }
    
    .hero-buttons {
        margin-top: 18px;
        gap: 10px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .cta-button {
        padding: 10px 18px;
        font-size: 13px;
        width: 100%;
        max-width: 220px;
    }
    
    .hero-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .hero-image-bg {
        transform: rotate(2deg);
        border-radius: 12px;
    }
    
    .hero-image {
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        border-radius: 10px;
    }
    
    .typing-cursor {
        height: 24px;
        width: 2px;
    }
}

.notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translate(-50%, -20px);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.notification.success { background-color: var(--primary-color); }
.notification.error { background-color: var(--red-color); }

.hero-profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#certifications .section-title span {
    color: var(--primary-color);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.certification-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.certif-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.certif-icon-container {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.certif-icon-container i {
    font-size: 24px;
    color: var(--primary-color);
}

.certif-title h4 {
    margin: 0;
    font-size: 20px;
    color: var(--dark-color);
}
certif-title p {
    margin: 0;
    font-size: 14px;
    color: var(--light-text);
}

.certif-body {
    flex-grow: 1;
}

.certif-body p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 15px;
}

.certif-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.certif-date {
    font-size: 14px;
    color: var(--light-text);
}

.certif-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.certif-link:hover {
    color: var(--primary-color);
}

.certif-link i {
    margin-left: 5px;
}

/* Améliorations supplémentaires pour la section compétences */
.skill-category::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(39, 174, 96, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.skill-category:nth-child(1)::after {
    content: '\f233';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: rgba(39, 174, 96, 0.2);
    font-size: 18px;
}

.skill-category:nth-child(2)::after {
    content: '\f0c1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: rgba(39, 174, 96, 0.2);
    font-size: 18px;
}

.skill-category:nth-child(3)::after {
    content: '\f121';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: rgba(39, 174, 96, 0.2);
    font-size: 18px;
}

/* Effet de survol pour les barres de progression */
.progress-bar-container:hover .progress-bar {
    background: linear-gradient(to right, var(--primary-color), #1abc9c);
    filter: brightness(1.1);
}

/* Animation pour les icônes dans les listes de compétences */
.skill-category li i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-category li:hover i {
    transform: scale(1.2);
    color: #1abc9c;
}

/* Styles pour les compétences sur mobile */
@media screen and (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .skill-category h4 {
        font-size: 18px;
    }
    
    .skill-category h4 i {
        font-size: 20px;
    }
}

/* Responsive pour la section projets */
@media screen and (max-width: 1024px) {
    .projects-container {
        padding: 0 50px;
    }
    
    .project-card {
        flex: 0 0 340px;
    }
    
    .scroll-arrow {
        width: 45px;
        height: 45px;
    }
    
    .scroll-arrow.prev { left: 5px; }
    .scroll-arrow.next { right: 5px; }
}

@media screen and (max-width: 768px) {
    .projects-container {
        padding: 0 40px;
        margin: 0 -2%;
    }
    
    .projects-wrapper {
        gap: 20px;
        padding: 20px 10px;
    }
    
    .project-card {
        flex: 0 0 300px;
    }
    
    .project-media-container {
        height: 240px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-content h4 {
        font-size: 20px;
    }
    
    .project-content p {
        font-size: 14px;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .scroll-arrow.prev { left: 0; }
    .scroll-arrow.next { right: 0; }
    
    .scroll-indicators {
        bottom: 5px;
    }
    
    .scroll-dot {
        width: 6px;
        height: 6px;
    }
}

@media screen and (max-width: 568px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .projects-container {
        padding: 0 35px;
    }
    
    .project-card {
        flex: 0 0 260px;
    }
    
    .project-media-container {
        height: 220px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-content h4 {
        font-size: 18px;
    }
    
    .project-content p {
        font-size: 13px;
    }
    
    .project-tags span {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .project-status {
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .scroll-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .scroll-indicators {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .projects-container {
        padding: 0 30px;
    }
    
    .project-card {
        flex: 0 0 240px;
    }
    
    .project-media-container {
        height: 200px;
    }
    
    .project-content {
        padding: 12px;
    }
    
    .project-content h4 {
        font-size: 16px;
    }
    
    .project-content p {
        font-size: 12px;
    }
    
    .project-tags span {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .project-links a {
        font-size: 13px;
    }
    
    .scroll-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .scroll-arrow.prev { left: -5px; }
    .scroll-arrow.next { right: -5px; }
}

/* Styles pour la section Stack Technique */
.stack-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--light-text);
}

.stack-categories {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.stack-category {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(39, 174, 96, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stack-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #2ecc71);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.stack-category:hover::before {
    transform: scaleX(1);
}

.stack-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.2);
}

.stack-category h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stack-category h3 i {
    color: var(--primary-color);
    font-size: 28px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.2);
    background-color: var(--card-bg);
}

.tech-logo {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.tech-logo i {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.tech-logo .custom-logo {
    font-weight: 700;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
}

.tech-item:hover .tech-logo i {
    transform: scale(1.1);
}

.tech-info {
    flex: 1;
}

.tech-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 5px 0;
    transition: color 0.3s ease;
}

.tech-item:hover .tech-info h4 {
    color: var(--primary-color);
}

.tech-info p {
    font-size: 15px;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

/* Animation d'apparition pour les catégories de stack */
.stack-categories.show .stack-category {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpStack 0.6s ease-out forwards;
}

.stack-categories.show .stack-category:nth-child(1) { animation-delay: 0.1s; }
.stack-categories.show .stack-category:nth-child(2) { animation-delay: 0.2s; }
.stack-categories.show .stack-category:nth-child(3) { animation-delay: 0.3s; }
.stack-categories.show .stack-category:nth-child(4) { animation-delay: 0.4s; }
.stack-categories.show .stack-category:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUpStack {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de brillance au survol */
.stack-category::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
    pointer-events: none;
    z-index: 1;
}

.stack-category:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Responsive pour la section Stack Technique */
@media screen and (max-width: 768px) {
    .stack-intro {
        font-size: 16px;
        margin: 0 auto 40px;
    }
    
    .stack-categories {
        gap: 30px;
    }
    
    .stack-category {
        padding: 25px;
        border-radius: 15px;
    }
    
    .stack-category h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .stack-category h3 i {
        font-size: 24px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .tech-item {
        padding: 15px;
        gap: 15px;
    }
    
    .tech-logo {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    
    .tech-logo i {
        font-size: 28px;
    }
    
    .tech-logo .custom-logo {
        font-size: 16px;
    }
    
    .tech-info h4 {
        font-size: 18px;
    }
    
    .tech-info p {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .stack-intro {
        font-size: 15px;
        margin: 0 auto 30px;
    }
    
    .stack-categories {
        gap: 25px;
    }
    
    .stack-category {
        padding: 20px;
        border-radius: 12px;
    }
    
    .stack-category h3 {
        font-size: 18px;
        margin-bottom: 15px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .stack-category h3 i {
        font-size: 22px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tech-item {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .tech-logo {
        width: 45px;
        height: 45px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .tech-logo i {
        font-size: 24px;
    }
    
    .tech-logo .custom-logo {
        font-size: 14px;
    }
    
    .tech-info h4 {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .tech-info p {
        font-size: 13px;
    }
}