@import url(fristPart.css);
@import url(skills.css);

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root {
    --blue: #263d88c7;
    --dark-blue: #284bc0;
    --dark-gray: #1e1e1e;
    --background: #e2e2e2;
    --black:#000000;
    --font-size: 1rem;
}

html {
    scroll-behavior: smooth;
}

body, section {
    height: 100dvh;
    min-height: max-content;
    font-size: var(--font-size);
}

body {
    background-color: var(--background);
}


section:nth-child(even) {
    background-color: var(--background);
    color: var(--dark-gray);
}

section:nth-child(odd) {
    background-color: var(--dark-gray);
    color: var(--background);
}




.title {
    text-align: center;
    color: var(--background);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    margin-bottom: 1rem;
    font-size: 3rem;
}




.aboutContainer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
}

.education {
    background-color: var(--dark-gray);
    max-width: 35%;
    color: var(--background);
}
.titleAbout {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin: 2rem;
    color: var(--background);
}

.educationCard {
    background-color: var(--blue);
    padding: 15px;
    margin: 1rem;
    line-height: 1.3;
    
}

.educationCard .diploma {
    font-weight: bold;
}

.education .univ { 
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 5px;
}

.animated-bg-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}


.icon {
    position: absolute;
    font-size: calc(1.5rem + 1vw);
    font-weight: bold;
    color: var(--black);

    opacity: 1;
    animation: floatIcon 4s ease-in-out infinite;
    transform: scale(1);
    filter: grayscale(100%);
}

@keyframes floatIcon {
    0%, 100% { opacity: 0; transform: scale(0.9); }
    50% { opacity: 0.5; transform: scale(1.05); }
}
#home,
#skills,
#about,
nav,
footer {
    position: relative;
    z-index: 1; /* ← plus haut que le fond animé */
}
.animated-bg-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

.animated-bg-icons .icon {
    position: absolute;
    font-size: calc(1.2rem + 0.8vw);
    font-weight: bold;
    color: #aaa; /* gris clair pour bon contraste */
    opacity: 0;
    filter: grayscale(100%);
    animation-name: floatIcon;
    animation-duration: 6s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;



    will-change: transform, opacity;
}

@keyframes floatIcon {
    0%, 100% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

#animated-math-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  pointer-events: none;
  overflow: visible;
}
section:nth-child(even) {
  background-color: rgba(226, 226, 226, 0.85); /* ← léger transparent */
}



.math-bubble {
    position: absolute;
    font-family: monospace;
    opacity: 0;
    animation: floatFade 2s ease-in-out forwards;
    white-space: nowrap;
    pointer-events: none;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.3); /* couleur visible */
    z-index: 9999;
    pointer-events: none;

}

@keyframes floatFade {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    20%, 80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(1.05);
    }
}

