@import url('https://fonts.googleapis.com/css2?family=Fuggles&family=Source+Sans+3:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* Variables pour les couleurs */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #e3e3e3;
    --text-secondary: #888888;
    --accent: #F8F8F8; /* Blanc plus lumineux */
    --accent-dark: #E0E0E0; /* Version légèrement plus sombre */
    --danger: #ff0033;
    --card-bg: rgba(16, 16, 16, 0.95);
    --terminal-green: #64ffda;
    --glitch-color: #ff0033;
}

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

body {
    overflow: hidden; /* Empêche le scroll par défaut */
    background: var(--bg-primary);
}

/* Structure principale */
main {
    height: 100vh;
    position: relative;
}

/* Style des sections */
section, header {
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    padding: 80px 20px 20px;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Conteneurs de section */
.section-content {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    overflow-y: auto;
}

/* Navigation des sections */
.section-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

*{
    font-family: "Source Sans 3", serif;
}
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    overflow: hidden;
}

/* Effet de scan sur le body */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    animation: scan 2s linear infinite;
    opacity: 0.1;
    z-index: 1000;
}

@keyframes scan {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* Style de la navbar supérieure */
.navbar {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(248, 248, 248, 0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: normal;
}

.nav-buttons {
    display: flex;
    gap: 30px;
}

.nav-buttons .btn {
    padding: 8px 12px;
    font-size: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    position: relative;
}

.nav-buttons .btn:hover {
    color: var(--terminal-green);
    transform: translateY(-2px);
}

.nav-buttons .btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terminal-green);
    transition: width 0.3s ease;
}

.nav-buttons .btn:hover::after {
    width: 100%;
}

.nav-buttons .btn.active {
    color: var(--terminal-green);
}

.nav-buttons .btn.active::after {
    width: 100%;
}

.container {
    margin-top: 15vh;
    padding: 20px;
}

.intro {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 20px 0;
    margin-top: -50px;
}

.text-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
    width: 100%;
}

.text-content .name {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    font-size: 3rem;
    margin-top: -80px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
    white-space: nowrap;
    width: 100%;
    padding: 0 10px;
}

.text-content .title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 1rem 0 25px;
    opacity: 0.9;
    line-height: 1.6;
}

.text-content .whoami {
    font-size: 1.1rem;
    color: var(--terminal-green);
    margin-bottom: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    opacity: 0.9;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
}

.text-content .description {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    opacity: 0.9;
    padding: 0;
}

.profile-image {
    display: none;
}

section {
    min-height: 100vh;
    width: 100vw;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    padding: 0 15px;
}

.project-card {
    min-width: calc(100% - 40px);
    padding: 20px;
    margin: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 10px;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(50%) contrast(120%);
    transition: all 0.3s ease;
}

.card-content {
    padding: 20px;
}

.badge {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    color: #495057;
}

.card-content h3 {
    margin: 15px 0;
    color: #212529;
}

.card-footer {
    margin-top: 20px;
}

.btn-project {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.prev-btn, .next-btn {
    background: #007bff;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
}

.dot.active {
    background: #007bff;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.skill-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateX(10px);
    border-color: var(--terminal-green);
}

.skill-card h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
}

.skill-bar {
    background: var(--bg-secondary);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: var(--terminal-green);
    border-radius: 2px;
    width: 0; /* Commence à 0 */
    transition: width 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* Classe pour l'animation */
.skill-progress.animate {
    width: 0; /* Animation vers 0 */
}

.characteristics {
    padding: 15px;
    border-radius: 10px;
    margin: 5px 0;
    border: 1px solid var(--accent);
}

.characteristics h3 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Share Tech Mono', monospace;
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.char-item {
    padding: 15px;
    transition: all 0.3s ease;
}

.char-item:hover {
    transform: translateY(-5px);
    color: var(--accent);
}

.char-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.char-item h4 {
    color: #ccd6f6;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .char-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.projects-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: 100px;
    position: relative;
}

.project-card:nth-of-type(2n+1) .project-content {
    grid-column: 7 / -1;
    text-align: right;
}

.project-card:nth-of-type(2n+1) .project-tech-list {
    justify-content: flex-end;
}

.project-card:nth-of-type(2n+1) .project-links {
    justify-content: flex-end;
}

.project-card:nth-of-type(2n) .project-content {
    grid-column: 1 / 7;
}

.project-card:nth-of-type(2n+1) .project-image {
    grid-column: 1 / 8;
}

.project-card:nth-of-type(2n) .project-image {
    grid-column: 6 / -1;
}

.project-content {
    position: relative;
    grid-area: 1 / 1 / -1 / 7;
    z-index: 2;
    text-align: left;
}

.project-overline {
    color: var(--terminal-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    text-align: left;
}

.project-title {
    color: var(--text-primary);
    font-size: 28px;
    margin: 10px 0;
    font-family: 'Share Tech Mono', monospace;
    text-align: left;
}

.project-description {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    border-left: 2px solid var(--accent);
    text-align: left;
    margin: 15px 0;
}

.project-description p {
    text-align: left;
    line-height: 1.6;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 15px 0;
    justify-content: flex-start;
}

.project-tech-list li {
    color: var(--terminal-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    padding: 3px 8px;
    border: 1px solid var(--terminal-green);
    border-radius: 4px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.project-tech-list li:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.project-links a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--accent);
}

.project-links svg {
    width: 22px;
    height: 22px;
}

.project-image {
    grid-area: 1 / 6 / -1 / -1;
    position: relative;
    z-index: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(100%) brightness(50%) contrast(120%);
    transition: all 0.3s ease;
}

.project-image:hover img {
    filter: grayscale(0%) brightness(100%);
}

@media (max-width: 768px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-card:nth-of-type(n) .project-content,
    .project-card:nth-of-type(n) .project-image {
        grid-column: 1 / -1;
    }

    .project-card:nth-of-type(n) .project-content {
        text-align: left;
        padding: 20px 0;
    }

    .project-card:nth-of-type(n) .project-tech-list,
    .project-card:nth-of-type(n) .project-links {
        justify-content: flex-start;
    }

    .project-image {
        opacity: 0.25;
    }

    .project-description {
        padding: 20px;
    }
}

/* Nouveau style pour le slider */
.projects-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.projects-track {
    display: flex;
    transition: transform 0.5s ease;
    transform: translateX(calc(-100% * var(--slide-index)));
}

.project-card {
    min-width: calc(100% - 40px);
    padding: 20px;
    margin: 0 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 10px;
}

.project-content {
    flex: 1;
    text-align: left;
}

.project-image {
    flex: 1;
    max-width: 500px;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid var(--accent);
}

.project-card:nth-of-type(2n+1) .project-content,
.project-card:nth-of-type(2n) .project-content,
.project-card:nth-of-type(2n+1) .project-image,
.project-card:nth-of-type(2n) .project-image {
    grid-column: unset;
}

.project-card:nth-of-type(2n) {
    flex-direction: row-reverse;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Ajustements responsive */
@media (max-width: 768px) {
    .projects-slider-container {
        padding: 0 40px;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
    }
    
    .slider-btn svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
        display: block;
    }

    .project-card {
        flex-direction: column !important;
        padding: 15px;
    }

    .project-content,
    .project-image {
        width: 100%;
    }

    .project-image {
        margin-top: 20px;
    }
}

/* Ajout de styles responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-buttons {
        justify-content: center;
        width: 100%;
    }

    .nav-buttons .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .intro {
        flex-direction: column-reverse;
        text-align: center;
        padding: 30px;
        gap: 30px;
    }

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

    .profile-image img,
    .profile-image::before {
        width: 200px;
        height: 200px;
    }
}

/* Style du formulaire de contact */
.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 30px;
}

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--accent);
    border-radius: 5px;
    position: relative;
    overflow: visible;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    animation: scan 2s linear infinite;
    opacity: 0.5;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    line-height: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    caret-color: transparent; /* Cache le curseur par défaut */
}

.form-group textarea {
    min-height: 150px;
    max-height: 150px;
    resize: none;
    line-height: 1.5;
    padding: 12px 20px;
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 10px var(--accent);
    border-color: var(--accent);
}

/* Affichage du curseur au focus */
.form-group input:focus ~ .cursor,
.form-group textarea:focus ~ .cursor {
    display: block;
}

/* Style du curseur pour les inputs */
.form-group input ~ .cursor {
    position: absolute;
    left: 20px;
    top: calc(50% + 15px);
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    display: none;
    transition: left 0.1s ease;
    opacity: 0.8;
    pointer-events: none;
}

/* Style spécifique du curseur pour le textarea */
.form-group textarea ~ .cursor {
    position: absolute;
    left: 20px;
    top: 45px;
    transform: none;
    width: 3px;
    height: 20px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    display: none;
    transition: left 0.1s ease;
    opacity: 0.8;
    pointer-events: none;
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    margin-top: 20px;
    margin-bottom: 10px;
    display: inline-block;
    width: auto;
}

.submit-btn .btn-text {
    position: relative;
    z-index: 11;
    color: var(--accent);
    transition: color 0.3s ease;
}

.submit-btn:hover .btn-text {
    color: var(--bg-primary);
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9;
}

.submit-btn:hover .btn-glitch {
    transform: translateX(0);
}

@media (max-width: 1100px) {
    .contact-container {
        max-width: 95%;
        padding: 15px;
    }
    
    .contact-form {
        padding: 30px;
        width: 100%;
    }
}

/* Animation du curseur clignotant */
@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

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

section > * {
    animation: fadeIn 0.5s ease forwards;
}

/* Ajustement des transitions */
.section-transition {
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

/* Responsive */
@media (max-width: 768px) {
section {
        padding: 60px 15px;
    }

    .section-nav {
        right: 15px;
    }

    .section-dot {
        width: 12px;
        height: 12px;
    }

    .contact-container {
        padding: 10px;
        padding-top: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Style de la barre de progression */
.progress-bar-container {
    width: calc(100% - 40px);
    height: 3px;
    background: var(--bg-secondary);
    margin: 30px auto 0;
    position: relative;
    overflow: visible;
    border: 1px solid var(--accent);
    border-radius: 2px;
    opacity: 0.7;
}

.progress-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(0, -50%);
    box-shadow: 0 0 10px var(--accent);
}

/* Style de la section formation */
.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.formation-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.formation-card:hover {
    transform: translateY(-5px);
    border-color: var(--terminal-green);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.formation-year {
    font-family: 'Share Tech Mono', monospace;
    color: var(--terminal-green);
    font-size: 1.1rem;
    min-width: 60px;
}

.formation-content {
    flex: 1;
}

.formation-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Share Tech Mono', monospace;
}

.formation-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.formation-type {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 3px;
    background: var(--bg-primary);
    color: var(--terminal-green);
    display: inline-block;
}

.formation-card.cert {
    border-left: 3px solid var(--terminal-green);
}

/* Style des titres de section */
section h2,
.section-content h2 {
    font-family: 'Share Tech Mono', monospace;
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

section h2::after,
.section-content h2::after {
    content: "_";
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

/* Ajustement responsive */
@media (max-width: 768px) {
    section h2,
    .section-content h2 {
        font-size: 1.8rem;
    }
}

/* Style du slider de projets */
.projects-track {
    display: flex;
    transition: transform 0.5s ease;
    transform: translateX(calc(-100% * var(--slide-index)));
}

.project-card {
    min-width: calc(100% - 40px);
    padding: 20px;
    margin: 0 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 10px;
}

/* Ajustement du conteneur du slider */
.projects-slider {
    overflow: hidden;
    position: relative;
    padding: 0 20px;
}

/* Style de la barre de progression */
.progress-bar-container {
    width: calc(100% - 40px);
    height: 3px;
    background: var(--bg-secondary);
    margin: 30px auto 0;
    position: relative;
    overflow: visible;
    border: 1px solid var(--accent);
    border-radius: 2px;
    opacity: 0.7;
}

/* Ajustement responsive */
@media (max-width: 768px) {
    header .section-content {
        padding: 0 20px;
        height: 100vh;
    }

    .intro {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .profile-image {
        flex: 0 0 auto;
    }

    .text-content {
        padding-right: 0;
    }
}

/* Style de la barre de navigation des réseaux sociaux */
.social-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 25px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.5);
    padding: 12px 18px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
}

.social-link {
    width: 22px;
    height: 22px;
    opacity: 0.5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px var(--accent));
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
    transition: all 0.3s ease;
}

.social-link:hover svg {
    fill: var(--accent);
    transform: translateY(-3px);
}

/* Style spécifique pour le logo RootMe */
.rootme-icon {
    width: 30px;
    height: 30px;
    filter: invert(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
    margin-top: -2px;
}

/* Style spécifique pour le logo TryHackMe */
.social-link[aria-label="TryHackMe"] svg {
    width: 30px;
    height: 30px;
    margin-top: 3px;
    transform: translateY(2px);
}

.social-link:hover .rootme-icon {
    opacity: 1;
    filter: invert(100%) drop-shadow(0 0 8px var(--accent));
    transform: scale(1.1);
}

/* Style spécifique pour l'icône GitHub */
.social-link[aria-label="GitHub"] svg {
    width: 22px;
    height: 22px;
}

.social-link[aria-label="GitHub"]:hover svg {
    filter: drop-shadow(0 0 8px var(--accent));
}

/* Style général pour les listes de technologies */
.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 15px 0;
    justify-content: flex-start;
}

/* Style spécifique pour le projet Compression Huffman */
.project-card:last-child .project-tech-list {
    flex-wrap: nowrap; /* Empêche le retour à la ligne */
    overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
    padding-bottom: 5px; /* Espace pour la barre de défilement */
    -ms-overflow-style: none; /* Cache la barre de défilement sur IE/Edge */
    scrollbar-width: none; /* Cache la barre de défilement sur Firefox */
}

/* Cache la barre de défilement sur Chrome/Safari */
.project-card:last-child .project-tech-list::-webkit-scrollbar {
    display: none;
}

/* Ajustement des éléments de la liste pour le projet Compression Huffman */
.project-card:last-child .project-tech-list li {
    flex-shrink: 0; /* Empêche la compression des éléments */
    white-space: nowrap; /* Empêche le retour à la ligne du texte */
}

/* Style du bouton CV */
.cv-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 200px;
}

.cv-button:hover {
    background: var(--terminal-green);
    color: var(--bg-primary);
    border-color: var(--terminal-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.cv-button .material-symbols-outlined {
    font-size: 1.2rem;
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .cv-button {
        min-width: 180px;
        padding: 10px 20px;
    }
}

/* Style de la section compétences */
#competences {
    min-height: 100vh;
    padding: 80px 0;
}

#competences .section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.skill-card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--terminal-green);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.skill-card h3 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-family: 'Share Tech Mono', monospace;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--terminal-green);
    border-radius: 2px;
    width: 0; /* Commence à 0 */
    transition: width 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

/* Classe pour l'animation */
.skill-progress.animate {
    width: 0; /* Animation vers 0 */
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        padding: 20px;
    }
}

/* Style des profils CTF dans la section compétences */
.ctf-profiles-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ctf-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.ctf-card:hover {
    transform: translateY(-5px);
    border-color: var(--terminal-green);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.ctf-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ctf-header img {
    width: 30px;
    height: 30px;
}

.ctf-header h3 {
    font-size: 1rem;
}

.ctf-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.stat-value {
    color: var(--terminal-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.ctf-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.ctf-link:hover {
    color: var(--terminal-green);
}

.ctf-link .material-symbols-outlined {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .ctf-profiles-mini {
        grid-template-columns: 1fr;
    }
}

/* Style du bouton CV */
.cv-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.cv-button {
    min-width: 250px;
    max-width: 300px;
}

/* Ajustement des marges et espacements */
#competences h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Media queries pour les écrans plus larges */
@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Suppression des styles des sections CTF et certifications */
#ctf-profiles, #certifications {
    display: none;
}

/* Style des profils CTF dans la section formation */
.ctf-title {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-primary);
    margin: 40px 0 20px;
    font-size: 1.5rem;
    text-align: center;
}

.ctf-profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.ctf-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    visibility: visible;
    opacity: 1;
    z-index: 1;
}

.ctf-card:hover {
    transform: translateY(-5px);
    border-color: var(--terminal-green);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.ctf-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ctf-header img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ctf-header h3 {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.ctf-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-value {
    color: var(--terminal-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
}

.ctf-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ctf-link:hover {
    color: var(--terminal-green);
}

@media (max-width: 768px) {
    .ctf-profiles-grid {
        grid-template-columns: 1fr;
    }
}

/* Style des logos CTF */
.ctf-header img.rootme-icon,
.ctf-header img.tryhackme-icon {
    width: 30px;
    height: 30px;
}

.ctf-header svg {
    width: 30px;
    height: 30px;
    fill: var(--text-primary); /* Blanc */
}

/* Suppression de l'effet de survol */
/* .ctf-card:hover .ctf-header svg {
    fill: var(--terminal-green);
} */
