@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Orbitron:wght@400..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    min-height: 100vh;
    cursor: none; /* Masque le curseur par défaut */
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(167, 139, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}
/* Responsive*/

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        
    }
}
/*Curseur*/
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #a78bfa;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(167, 139, 250, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}


/* topnav */
.topnav {
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    
}
.topnav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: inline-block;
}
.topnav a:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    transform: translateY(-2px);
    cursor: none;
}
.topnav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    margin-top: 100px;
    
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    font-size: 100px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
}
.hero h2 {
    font-family: 'Inconsolata', sans-serif;
    color: #4d4c9e;
    font-size: 50px;
    opacity: 70%;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #4d4c9e;
    width: 0;
    margin: 0 auto;
    animation: 
        typeLoop 5s steps(11) infinite;
}

@keyframes typeLoop {
     40%, 80% /*Temps du typewritting*/ { 
        width: 11ch; 
    }
}

@keyframes blink {
    50% { 
        border-color: transparent; 
    }
}
.hero h3 {
    font-family: 'Inconsolata', sans-serif;
    font-size: 21px;
    animation: slideDown 2s ease;

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

/* Réseaux sociaux */
.social-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
}
.social-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 2rem;
    cursor: none; /* Masque le curseur par défaut */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: white;
}

.social-btn:hover {
    transform: translateY(-5px);
    background: rgba(167, 139, 250, 0.2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.contact-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 2rem;
    cursor: none; 
    transition: all 0.3s ease;
    text-decoration: none;
    color: #c4b5fd;
    font-family: 'Inconsolata', sans-serif;
    font-size: 25px;
}
.contact-btn:hover {
    transform: translateY(-5px);
    background: rgba(167, 139, 250, 0.2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.social-btn img {
    width: 30px;
    height: 30px;
}

.social-btn:last-child img {
    filter: brightness(0) invert(1);
}
/* Sections de contenu */
.section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
.content-card {
    background: rgba(186, 13, 255, 0.02);
    background: transparent 1;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(247, 115, 207, 0.2);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;   /* OBLIGATOIRE */
    overflow: hidden;     /* coupe l’effet au carré */

}

.content-card h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #a78bfa;
    text-align: center;
    font-family: 'Orbitron', sans-serif;

}
.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}
.content-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: rotate(0deg);
  transition: left 0.6s ease;
    pointer-events: none;
}

/* Animation hover */
.content-card:hover::before {
  left: 130%;
}

.presquare {
    background: rgba(219, 160, 253, 0.02);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(247, 109, 212, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s ease;
}
.presquare h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #a78bfa;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}
.presentationp{
    color: #e2dafc;
    text-align: center;
    font-family: 'Inconsolata', sans-serif;
    font-size: 20px; 
}

#formation {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
    position: relative;
}

#formation h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #a78bfa;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

/* Timeline container */
.formation-timeline {
    position: relative;
    padding: 2rem 0;
}

/* Ligne centrale verticale */
.formation-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(167, 139, 250, 0.5) 10%, 
        rgba(167, 139, 250, 0.8) 50%, 
        rgba(167, 139, 250, 0.5) 90%, 
        transparent 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
}

/* Animation de scan */
.formation-timeline::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(167, 139, 250, 1) 0%, transparent 70%);
    transform: translateX(-50%);
    border-radius: 50%;
    animation: scan 4s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.8);
}

@keyframes scan {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Item de formation */
.formation-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

/* Alternance gauche/droite */
.formation-item:nth-child(odd) {
    flex-direction: row;
    justify-content: flex-start;
}

.formation-item:nth-child(even) {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* Point central (nœud) */
.formation-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #a78bfa);
    border: 3px solid rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.8),
                inset 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.formation-item:hover .formation-node {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 40px rgba(167, 139, 250, 1),
                inset 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Ligne de connexion horizontale */
.formation-connector {
    position: absolute;
    left: 50%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(167, 139, 250, 0.8), 
        rgba(167, 139, 250, 0.2));
    z-index: 5;
}

.formation-item:nth-child(odd) .formation-connector {
    transform: translateX(-100%);
}

.formation-item:nth-child(even) .formation-connector {
    transform: scaleX(-1);
}

/* Carte de contenu */
.formation-content {
    width: calc(50% - 100px);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.formation-item:nth-child(odd) .formation-content {
    margin-left: 0;
}

.formation-item:nth-child(even) .formation-content {
    margin-right: 0;
}

.formation-content:hover {
    transform: translateY(-5px);
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

/* Effet de brillance */
.formation-content::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.formation-content:hover::before {
    left: 200%;
}

/* Header avec année */
.formation-year {
    display: inline-block;
    font-size: 0.85rem;
    color: #667eea;
    font-family: 'Inconsolata', sans-serif;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.formation-diplome {
    display: inline-block;
    font-size: 0.85rem;
    color: #ffffff;
    font-family: 'Inconsolata', sans-serif;
    background: rgba(255, 234, 43, 0.25);
    border: 1px solid rgba(225, 226, 158, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* Titre du diplôme */
.formation-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

/* Établissement */
.formation-school {
    font-size: 0.95rem;
    color: #c4b5fd;
    font-family: 'Inconsolata', sans-serif;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description */
.formation-description {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-family: 'Inconsolata', sans-serif;
    line-height: 1.7;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tags de compétences */
.formation-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.formation-skill {
    font-size: 0.75rem;
    color: #a78bfa;
    font-family: 'Inconsolata', sans-serif;
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.formation-skill:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.6);
    color: #c4b5fd;
}

/* Responsive */
@media screen and (max-width: 968px) {
    .formation-timeline::before {
        left: 30px;
    }
    
    .formation-timeline::after {
        left: 30px;
    }
    
    .formation-item,
    .formation-item:nth-child(odd),
    .formation-item:nth-child(even) {
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 80px;
    }
    
    .formation-node {
        left: 30px;
    }
    
    .formation-connector {
        left: 30px;
        transform: none !important;
    }
    
    .formation-content {
        width: 100%;
        margin: 0 !important;
    }
}

@media screen and (max-width: 768px) {
    #formation h2 {
        font-size: 2.5rem;
    }
    
    .formation-content {
        padding: 1.5rem;
    }
    
    .formation-title {
        font-size: 1.1rem;
    }
    
    .formation-school {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 500px) {
    #formation {
        padding: 0 1rem;
    }
    
    #formation h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .formation-item {
        padding-left: 60px;
        margin-bottom: 3rem;
    }
    
    .formation-timeline::before {
        left: 20px;
    }
    
    .formation-timeline::after {
        left: 20px;
    }
    
    .formation-node {
        left: 20px;
        width: 16px;
        height: 16px;
    }
    
    .formation-connector {
        left: 20px;
        width: 40px;
    }
    
    .formation-content {
        padding: 1.2rem;
    }
    
    .formation-year {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }
       .formation-diplome {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }
    .formation-title {
        font-size: 1rem;
    }
    
    .formation-school {
        font-size: 0.8rem;
    }
    
    .formation-description {
        font-size: 0.85rem;
    }
    
    .formation-skill {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
}
.forsquare h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #a78bfa;
    text-align: center;
    font-family: 'Orbitron', sans-serif;

}
.forsquare {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s ease;
}
.comsquare h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-align: center;
    font-family: 'Orbitron', sans-serif;

}
.comsquare h4 {
    font-size: 1.3rem;
    color: #ffffff;
    text-align: center;
    font-family: 'Orbitron', sans-serif;

}
.python {
    display: flex;
    justify-content: center; 
    align-items: center;
}
.competence-logo img {
    transition: transform 0.3s ease;
    justify-content: center;
    align-items: center;
    width: 95%;
}
.competences-container {
    display: flex;
    gap: 1.5rem; /* Réduit le gap */
    justify-content: center;
    flex-wrap: nowrap; /* Empêche le retour à la ligne */
    margin-top: 3rem;
}
#competences h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #a78bfa;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}
.comsquare {
    width: 400px;
    height: 550px;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 3rem;
    transition: all 0.8s ease;
    position: relative;
    overflow: hidden; 
}
        .comsquare::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -75%;
            width: 50%;
            height: 200%;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.15), transparent);
            transform: rotate(0deg);
            transition: left 0.6s ease;
            pointer-events: none;
        }

        .comsquare:hover::before {
            left: 130%;
        }
.comsquare:hover {
    transform: translateY(-15px) scale(1.10);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.12);
}
.expsquare h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #a78bfa;
    text-align: center;
    font-family: 'Orbitron', sans-serif;

}
.expsquare {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s ease;
}
.expsquare:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}
.content-card p, .content-card h3 {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}
.content-card h3 {
    margin-top: 1.5rem;
    color: #c4b5fd;
}

/* Divider moderne */
.divider {
    height: 2px;
    max-width: 800px;
    margin: 5rem auto;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
}
/* Image diplôme */
.diploma-img {
    display: block;
    max-width: 500px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
/* Scrall*/
.section, .content-card {
    transform: translateY(50px);
    transition: all 0.5s ease;
}




  #experience {
            max-width: 1200px;
            margin: 5rem auto;
            padding: 0 2rem;
        }

        #experience h2 {
            font-size: 3rem;
            margin-bottom: 3rem;
            color: #a78bfa;
            text-align: center;
            font-family: 'Orbitron', sans-serif;
        }

        /* Container des cartes */
        .experience-grid {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        /* Carte d'expérience */
        .experience-card {
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 0;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .experience-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
        }

        /* Effet brillant */
        .experience-card::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -75%;
            width: 50%;
            height: 200%;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.15), transparent);
            transform: rotate(0deg);
            transition: left 0.6s ease;
            pointer-events: none;
        }

        .experience-card:hover::before {
            left: 130%;
        }

        /* Header de la carte */
        .experience-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 2rem 2.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .experience-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .experience-period {
            font-size: 0.9rem;
            color: #a78bfa;
            font-family: 'Inconsolata', sans-serif;
            border: 1px solid rgba(167, 139, 250, 0.3);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            text-transform: uppercase;
        }

        /* Body de la carte */
        .experience-body {
            padding: 2rem 2.5rem;
        }

        .experience-company {
            font-size: 1rem;
            color: #c4b5fd;
            font-family: 'Inconsolata', sans-serif;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .experience-company span {
            color: #fff;
        }

        .experience-description-label {
            font-size: 0.85rem;
            color: #a78bfa;
            font-family: 'Inconsolata', sans-serif;
            text-transform: uppercase;
            margin-bottom: 0.8rem;
            letter-spacing: 1px;
        }

        .experience-description {
            font-size: 1rem;
            color: #e0e0e0;
            font-family: 'Inconsolata', sans-serif;
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        /* Tags de compétences */
        .experience-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-top: 1.5rem;
        }

        .experience-tag {
            font-size: 0.85rem;
            color: #c4b5fd;
            font-family: 'Inconsolata', sans-serif;
            border: 1px solid rgba(167, 139, 250, 0.3);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            text-transform: uppercase;
            transition: all 0.3s ease;
        }

        .experience-tag:hover {
            background: rgba(0, 0, 0, 0.5);
            border-color: rgba(255, 255, 255, 0.6);
        }

        /* ==================================
   ANIMATIONS AU SCROLL
   ================================== */

/* État initial des éléments avant animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* État visible quand l'élément entre dans le viewport */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes d'animations */
.fade-left {
    transform: translateX(-50px);
}

.fade-left.visible {
    transform: translateX(0);
}

.fade-right {
    transform: translateX(50px);
}

.fade-right.visible {
    transform: translateX(0);
}

.zoom-in {
    transform: scale(0.8);
}

.zoom-in.visible {
    transform: scale(1);
}

/* Délais pour effet cascade */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
















































































        /* Responsive */
        @media screen and (max-width: 768px) {
            .experience-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
                padding: 1.5rem;
            }

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

            .experience-body {
                padding: 1.5rem;
            }

            .experience-tags {
                gap: 0.5rem;
            }

            .experience-tag {
                font-size: 0.75rem;
                padding: 0.4rem 0.8rem;
            }
            .presentationp {
                width: 100%;
                font-size: 17px;
            }
        }

        @media screen and (max-width: 500px) {
            #experience h2 {
                font-size: 30px;
            }

            .experience-header {
                padding: 1.2rem;
            }

            .experience-title {
                font-size: 1rem;
            }
            .experience-company {
                font-size: 0.8rem;
            }

            .experience-period {
                font-size: 0.75rem;
            }

            .experience-body {
                padding: 1.2rem;
            }

            .experience-description {
                font-size: 0.8rem;
            }
        }

        @media screen and (max-width: 500px) {
    .hero h1 {
        font-size: 50px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero h2 {
        margin-top: -150px;
        font-size: 30px;
    }
    .hero h3 {
        font-size: 20px;
    }
    .topnav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.4rem;
    margin: 0.1rem;
    position: relative;
    right: 0;
    top: 0;
    float: none;
    text-align: left;
  }
  .content-card h2 {
    font-size: 30px;
  }
  .forsquare h2 {
    font-size: 30px;
  }
  .presquare h2 {
    font-size: 30px;
  }

  .comsquare h2 {
    font-size: 30px;
  }
    .expsquare h2 {
    font-size: 25px;
  }
    #competences h2 {
        font-size: 30px;
    }}

@media screen and (max-width: 768px) {
    .competences-container {
        flex-direction: column;
        align-items: center;
    }

    .comsquare {
        width: 90%;
        height: auto;
    }
}