* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: rgb(190, 255, 165);
}

::-webkit-scrollbar-thumb {
    background: rgb(13, 32, 0);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(7, 17, 0);
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: white;
    color: #0d2000;
}

p, h1, h2, h3 {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

/* Animation pour les éléments qui apparaissent */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classe de base pour les éléments à animer */
.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Délais différents pour chaque élément */
.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.4s; }
.reveal:nth-child(5) { animation-delay: 0.5s; }

/* Styles spécifiques pour la timeline */
.checkpoint {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.checkpoint.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animation pour les éléments de compétences */
.container-container-competence {
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.container-container-competence.active {
    transform: scale(1);
}

/* Reste de votre CSS existant */
header {
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    flex-grow: 1;
    margin: 300px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    text-align: center;
    color: #beffa5;
    width: 100%;
    z-index: 2;
    height: auto;
    position: relative;
    margin: 20px 0;
    display: flex;
    justify-content: space-evenly;
}

footer h1 {
    position: relative;
    z-index: 1;
    font-size: 35px;
    font-family: "Kaushan Script", cursive;
    margin-bottom: 10px;
}

nav {
    display: flex;
    align-items: center;
    background-color: #0d2000;
    padding: 25px;
    margin-top: 145px;
    border-radius: 20px;
    width: 90%;
    position: fixed;
    z-index: 100;
    transition: all 0.3s ease-in-out;
    overflow: hidden; /* Empêche le débordement */
}

nav.moved-down {
    margin-top: 500px;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav.hidden {
    transform: translateY(-100%);
}

nav h1 {
    color: #beffa5;
    font-size: 40px;
    font-family: "Kaushan Script", cursive;
}

nav a,
footer .colonne a[href="img/CV Zakrzewski Raphael.pdf"] {
    text-decoration: none;
    background-color: #beffa5;
    color: #0d2000;
    padding: 10px 15px 10px 10px;
    border-radius: 15px;
    border: 0;
    font-size: 25px;
    font-family: "Kaushan Script", cursive;
    font-weight: bold;
    transition: box-shadow, 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    align-content: center;
}

a[href="img/Tableau E5 de ZAKRZEWSKI Raphael.pdf"] {
    text-decoration: none;
    background-color: #efffe8;
    color: #0d2000;
    padding: 10px 15px 10px 10px;
    border-radius: 15px;
    border: 0;
    font-size: 25px;
    font-family: "Kaushan Script", cursive;
    font-weight: bold;
    transition: box-shadow, 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    align-content: center;
    margin: 30px;
    box-shadow: 0px 0px 10px 0px rgba(55, 138, 0, 0.7);
}

nav a:hover,
footer .colonne a[href="img/CV Zakrzewski Raphael.pdf"]:hover {
    box-shadow: 0 0 15px #beffa5;
    color: white;
}

a[href="img/Tableau E5 de ZAKRZEWSKI Raphael.pdf"]:hover {
    box-shadow: 0px 0px 20px 0px rgba(55, 138, 0, 0.7);
    scale: 1.05;
}

nav button a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bouton-space {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.svg-background-nav {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    overflow: hidden;
}

.svg-background-footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    margin-top: -26%;
}

.svg-background-nav svg,
.svg-background-footer svg {
    width: 100%;
    height: auto;
    display: block;
}

section[id="intro"] {
    color: #0d2000;
    margin-top: 100px;
    font-family: "Kaushan Script", cursive;
    font-size: 40px;
    width: 75%;
}

section[id="intro"] h1,
section[id="intro"] p {
    font-family: "Kaushan Script", cursive;
}

section[id="moi"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #efffe8;
    margin-top: 380px;
    padding-top: 30px;
    padding-bottom: 40px;
    scroll-margin-top: 15vh;
}

section[id="moi"] h1,
section[id="competence"] h1,
section[id="veille"] h1 {
    text-align: center;
    color: #0d2000;
    font-family: "Kaushan Script", cursive;
    font-size: 50px;
    margin-bottom: 50px;
    width: 100%;
}

section[id="competence"] {
    color: #0d2000;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 80px;
    width: 85%;
    scroll-margin-top: 10vh;
}

section[id="scolaire"],
section[id="pro"] {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: 140px;
    width: 85%;
    scroll-margin-top: 15vh;
}

section[id="scolaire"] h1,
section[id="pro"] h1 {
    margin-bottom: 50px;
    color: #0d2000;
    font-size: 50px;
    font-family: "Kaushan Script", cursive;
}

section[id="scolaire"] .content h1,
section[id="pro"] .content h1 {
    font-size: 26px;
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

section[id="scolaire"] .content p,
section[id="pro"] .content p {
    color: #0d2000;
    font-size: 18px;
}

.container-moi {
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 30px;
    background-color: #ffffff;
    width: 60%;
    padding: 10px;
    box-shadow: 0px 0px 20px -5px rgba(13,32,0,0.5);
}

/* Timeline Container */
.timeline-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Ajoutez une largeur max pour éviter que la timeline ne s'étende trop */
    margin: 0 auto; /* Centre la timeline */
}

/* Timeline Line */
.timeline {
    position: absolute;
    width: 3px;
    background-color: #0d2000;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Checkpoint Container */
.checkpoint {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 40px 0;
    padding: 0 30px; /* Ajoute un padding pour l'espacement */
    box-sizing: border-box;
}

/* Contenu des checkpoints */
.content {
    width: calc(50% - 45px); /* 50% moins 45px (30px de marge + 15px pour le point) */
    padding: 15px 20px;
    border-radius: 10px;
    background-color: #efffe8;
    box-shadow: 0px 0px 10px 0px rgba(55, 138, 0, 0.7);
    position: relative;
}

/* Alignement alterné gauche/droite */
.checkpoint:nth-child(odd) .content {
    margin-right: auto; /* Aligné à gauche */
    right: 15px; /* Compense la moitié du point (15px) */
    text-align: right;
}

.checkpoint:nth-child(even) .content {
    margin-left: auto; /* Aligné à droite */
    left: 15px; /* Compense la moitié du point (15px) */
    text-align: left;
}

/* Point sur la timeline */
.checkpoint::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #beffa5;
    border: 3px solid #0d2000;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

footer a {
    color: #beffa5;
}

footer a:hover {
    text-decoration: underline;
}

footer a img {
    width: 30px;
    transition: all 0.2s ease-in-out;
}

footer a img:hover {
    transform: scale(1.1);
}

footer .colonne {
    display: flex;
    flex-direction: column;
    width: 400px;
    justify-content: center;
    align-items: center;
}

.separation {
    width: 2px;
    background-color: #beffa5;
    padding: 20px 0;
}

footer .colonne a[href="img/CV Zakrzewski Raphael.pdf"] {
    margin-top: 20px;
    border-radius: 20px;
    font-size: 25px;
    padding: 10px 20px;
}

.colonne p span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 25px;
    margin-top: 2px;
}

.colonne .logo {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.titre h1 {
    font-family: "Kaushan Script", cursive;
}

sup {
    font-size: 17px;
}

.texte {
    margin: 20px 20px 0px 60px;
}

.texte p {
    margin-bottom: 30px;
    font-size: 23px;
    color: #0d2000;
}

.container-moi img {
    margin: 20px;
    height: 420px;
    border-radius: 30px;
}

.colonne .mail a {
    font-size: 20px;
}

.container-competence1 {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
    margin-top: 30px;
}

.container-competence2 {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
    margin-top: 60px;
}

.container-container-competence {
    background-color: #efffe8;
    border-radius: 30px;
    box-shadow: 0px 0px 10px 0px rgba(55, 138, 0, 0.7);
    padding: 30px;
    transition: all 0.3s ease;
    width: 330px;
    position: relative;
    overflow: hidden;
}

.container-container-competence:hover {
    scale: 1.05;
    box-shadow: 0px 0px 20px 0px rgba(55, 138, 0, 0.7);
}

.container-container-competence img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
}

.container-container-competence h2,
.container-container-competence p {
    position: relative;
    z-index: 1;
}

.container-container-competence h2 {
    text-align: center;
    margin-bottom: 10px;
    margin-top: -10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
}

.container-container-competence p {
    font-size: 20px;
}

section[id="veille"] {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 80px;
    scroll-margin-top: 15vh;
    flex-direction: column;
}

section[id="projet"] {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 80px;
    scroll-margin-top: 15vh;
    flex-direction: column;
    background-color: #efffe8;
    padding: 30px;
  }

.container-veille {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
    margin: 0 auto;
    padding: 20px;
}

.veille-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 0px rgba(55, 138, 0, 0.7);
    width: 400px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.veille-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 0px 20px 0px rgba(55, 138, 0, 0.7);
}

.veille-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    background-color: #efffe8;
}

.veille-image {
    height: 240px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.veille-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.veille-card:hover .veille-image img {
    transform: scale(1.05);
}

.veille-content {
    padding: 25px;
}

.veille-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #0d2000;
    font-family: Arial, Helvetica, sans-serif;
}

.veille-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.veille-source {
    display: flex;
    align-items: center;
    color: #0d2000;
    font-weight: bold;
}

.veille-source img {
    width: 20px;
    margin-right: 8px;
}

section[id="projet"] h1 {
    color: #0d2000;
    font-size: 50px;
    margin-bottom: 50px;
    width: 100%;
  }

section[id="projet"] .container-container-projet {
    width: 85%;
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
}

section[id="projet"] .container-container-projet h1{
    margin-bottom: 0px;
}

section[id="projet"] .container-container-projet h1 {
    font-size: 40px;
}

section[id="projet"] .container-container-projet h2 {
    font-size: 30px;
}

.container-projet {
    width: 100%;
    display: flex;
    justify-content: start;

}

.projet-texte {
    display: flex;
    align-items: center;
    margin: 15px 0 0 10px;
}

.projet{
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background-color: #ffffff;
    width: 280px;
    padding: 15px;
    box-shadow: 0px 0px 10px 0px rgba(55, 138, 0, 0.7);
    gap: 20px;
    text-align: center;
    align-items: center;
    margin: 17px;
}

.projet h3 {
    font-size: 25px;
}

/* Styles for the Learn More button */
a.learn-more {
    position: relative;
    width: 12rem;
    height: auto;
    margin-top: 10px;
    border: 0;
    background-color: white;
    cursor: pointer;
    text-decoration: none; /* Pour enlever le soulignement */
    display: inline-block;
}

a.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #efffe8;
    border-radius: 1.625rem;
    box-shadow: 0px 0px 5px 0px rgba(55, 138, 0, 0.7);
}

a.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

a.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

a.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #0d2000;
    border-right: 0.125rem solid #0d2000;
    transform: rotate(45deg);
}

a.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 0;
    margin: 0 0 0 1.85rem;
    color: #0d2000;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* Effets au survol */
a:hover .circle {
    width: 100%;
    background: #efffe8;
    z-index: 1;
}

a:hover .circle .icon.arrow {
    background: #0d2000;
    transform: translate(1rem, 0);
}

a:hover .button-text {
    color: #0d2000;
    z-index: 2;
}


/* Ajoutez ces media queries à la fin de votre fichier CSS */

/* Pour les écrans jusqu'à 1200px (petits écrans d'ordinateur) */
@media (max-width: 1200px) {
    .container-moi {
        width: 80%;
    }
    
    .container-competence1,
    .container-competence2 {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .container-container-competence {
        width: 45%;
        min-width: 300px;
    }
    
    nav {
        padding: 15px;
    }
    
    nav a {
        font-size: 20px;
        padding: 8px 12px;
    }
    
    .bouton-space {
        gap: 15px;
    }
}

/* Pour les tablettes (768px - 1024px) */
@media (max-width: 1024px) {

    
    section[id="intro"] {
        font-size: 30px;
        width: 90%;
    }
    
    .container-moi img {
        height: 350px;
    }
    
    footer .colonne {
        width: 300px;
    }
}

/* Pour les téléphones (jusqu'à 768px) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        margin-top: 120px;
        padding: 15px;
        width: 95%;
    }
    
    nav h1 {
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .bouton-space {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }
    
    nav a {
        font-size: 16px;
        padding: 6px 10px;
    }
    
    .container-moi {
        flex-direction: column;
        width: 90%;
        padding: 15px;
    }
    
    .container-moi img {
        height: 250px;
        margin: 10px 0;
    }
    
    .texte {
        margin: 10px;
    }
    
    .texte p {
        font-size: 18px;
    }
    
    section[id="intro"] {
        font-size: 24px;
        margin-top: 80px;
    }
    
    section h1 {
        font-size: 36px !important;
    }

    .content h1 {
        font-size: 22px !important;
    }

    .content p {
        font-size: 18px !important;
    }
    
    .container-container-competence {
        width: 100%;
        min-width: auto;
        padding: 20px;
    }
    
    .container-container-competence h2 {
        font-size: 24px;
    }
    
    .container-container-competence p {
        font-size: 16px;
    }
    
    section[id="footer"] {
        background-color: #0d2000;
    }

    footer {
        align-items: center;
        padding: 20px 0;
        bottom: 0;
    }

    .svg-background-footer {
        display: none;
    }

    footer h1 {
        font-size: 20px !important;
    }

    footer p {
        font-size: 12px !important;
    }

    .colonne .mail a,
    .colonne a[href="img/CV Zakrzewski Raphael.pdf"] {
        font-size: 10px !important;
    }

    .colonne a[href="img/CV Zakrzewski Raphael.pdf"] {
        padding: 5px 10px !important;
    }
    
    .separation {
        width: 1px;
        height: 80px;
        margin: 15px 0;
        padding: 0;
    }
    
    footer .colonne {
        width: 90%;
        margin: 10px 0;
    }
    
    footer a img {
        width: 20px;
    }

    .container-veille {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .veille-card {
        width: 90%;
    }
    
    .projet {
        width: 90%;
        margin: 10px 0;
    }
    
    .container-projet {
        flex-direction: column;
        align-items: center;
    }
    
    a[href="img/Tableau E5 de ZAKRZEWSKI Raphael.pdf"] {
        font-size: 18px;
        padding: 8px 12px;
        margin: 15px 0;
    }
    
    .svg-background-footer {
        margin-top: -40%;
    }
}

/* Pour les très petits téléphones (jusqu'à 480px) */
@media (max-width: 480px) {
    nav {
        padding: 15px;
        align-items: flex-start;
    }

    nav h1 {
        font-size: 24px;
    }
    
    nav a {
        font-size: 14px;
        padding: 5px 8px;
    }
    
    section[id="intro"] {
        font-size: 20px;
    }
    
    .container-moi img {
        height: 200px;
    }
    
    .texte p {
        font-size: 16px;
    }
    
    .container-container-competence h2 {
        font-size: 20px;
    }
    
    footer h1 {
        font-size: 24px;
    }
    
    .colonne .mail a {
        font-size: 16px;
    }
    
    footer .colonne a[href="img/CV Zakrzewski Raphael.pdf"] {
        font-size: 12px !important;
        padding: 8px 15px;
    }
    
    .svg-background-footer {
        margin-top: -50%;
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #beffa5;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .bouton-space {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(190, 255, 165, 0.3);
    }
    
    .bouton-space.show {
        display: flex;
    }
    
    /* Animation pour le hamburger */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}