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

body {
    margin-top: 70px;
    font-family: "Barlow Condensed", sans-serif;
    line-height: 1.8;
    color: #131212;
    background-image: url(cercle.png);
    background-position: 712px -585px;
    background-size: 76%;
    background-repeat: no-repeat;
}

h2 {
    color: #3F8EE8;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 300;
}
section, footer {
    padding: 80px;
}
footer {
    background: linear-gradient(to bottom,  #4f4f4f 0%,#191919 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    color: #ffffff;
    font-size: 10px;
    padding-top: 40px;
}

/* barre de navigation */
.nav {
    width: 97%;
    background-color: rgba(255, 255, 255, 0.8); /* Transparence */
    border-color: #40393a77;
    border-radius: 7%;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 25px;
    right: 25px;
    z-index: 10;
    backdrop-filter: blur(10px); /* Flou de la barre */
    padding: 10px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* ombre autour */
}

/* Logo */

.nav img {
    width: 120px; 
    height: auto; 
    margin-right: 15px; 
    align-self: center;
}  
.nav-logo {
    margin-left: 25px;
    display: flex;
    align-items: center;
}

/* Boutons */
.nav-button {
    margin: auto;
    margin-right: 10px;
    display: flex;
    gap: 20px;
}

.nav-button li {
    list-style: none;
}

.nav-button li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-button li a:hover {
    color: #6c63ff; /* survol */
}

/* floute le contenu */
.content {
    position: relative;
    z-index: 1;
    transition: filter 0.3s ease; /* animation du flou */
}

/* la navigation se superpose */
.nav.scrolled + .content {
    filter: blur(5px); /* flou */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

header h1 {
    font-size: 24px;
}

header ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header ul li a {
    text-decoration: none;
    color: #333;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-style: normal;
}

header ul li a:focus {
    color: #019ADD;
    font-weight: bold;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 50px;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
    margin-left: 30px;
}
.hero-content img {
    width: 70%;
    margin-left: 90px;
}
.hero-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
 
.hero-content h3 {
    color: #3F8EE8;
    margin-bottom: 35px;
    margin-left: 120px;
    margin-top: 40px;
    font-family: "Amatic SC", sans-serif;
}

/* Conteneur de texte animé */

h3.animated-text {
    font-family: "Amatic SC", sans-serif;
    font-size: 60px;
}
.animated-text {
    display: inline-block;
    position: relative;
    width: 460px;
    height: 160px;
    overflow: hidden; /* Cache les mots hors de la zone visible */
    text-align: center;
}

.animated-text span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    animation: slideText 15s infinite; /* Animation avec une durée et une boucle infinie */
    opacity: 0; /* Le texte est invisible avant d'entrer */
}

.animated-text span:nth-child(1) {
    animation-delay: 0s; /* 1 mot */
}

.animated-text span:nth-child(2) {
    animation-delay: 3s; /* 2 mot */
}

.animated-text span:nth-child(3) {
    animation-delay: 6s; /* 3 mot */
}

.animated-text span:nth-child(4) {
    animation-delay: 9s; /* 4 mot */
}

.animated-text span:nth-child(5) {
    animation-delay: 12s; /* 5 mot */
}

/* Animation Keyframes */
@keyframes slideText {
    0%, 20% {
        transform: translateY(0); /* Le mot est visible */
        opacity: 1; /* Le mot est complètement visible */
    }
    25%, 100% {
        transform: translateY(-100%); /* Le mot quitte la vue */
        opacity: 0; /* Le mot disparaît */
    }
}

.contact-info p {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
}

.contact-info img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

}

.hero-image img {
    width: 400px;
    height: 400px;
    margin-top: -200px;
    border-radius: 50%;
    object-fit: cover;
   
}
.slogan {
    position: relative;
    top: -100px;
    left: 150px;
    font-style: italic;
}
#about {
    background-color: #edf1f9;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#about > div {
    padding: 50px;
    padding-top: 0;
}
.about-img-container {
    width: 100%;
background-image: url("about-img.png");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
height: 350px;
}
#competences {
  background-color: #a4c9f4;  
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.competences-tile {
    background-repeat: no-repeat;
    background-size: 80px;
    background-position: top left;
    height: 200px;
    padding-top: 30px;
    padding-left: 100px;
}
.web {
    background-image: url(icn-purpose.png);
}
.test {
    background-image: url(icn-rocket.png);
}
.admin {
    background-image: url(icn-skill.png);
}
.competences-tile p {
    position: relative;
    top: 30px;
    left: -90px;
}
.container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.dropdown {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-header {
    width: 100%;
    padding: 10px 15px;
    background-color: #a4c9f4;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.dropdown-header .arrow {
    font-size: 12px;
}

.dropdown-content {
    display: none;
    padding: 10px 15px;
    background: #f9f9f9;
    border-top: 1px solid #ccc;
    font-size: 14px;
    color: #333;
}

.dropdown-content p {
    margin: 0;
}

/* Pour afficher/masquer le contenu */
.dropdown-header:focus + .dropdown-content{
        display: block;
}

.portfolio-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.portfolio-container > a {
    padding: 10px;
    min-width: 100px;
    height: 250px;
    margin: 10px;
    background-color: #ebebeb;
    transition: all 0.4s ease;
    position: relative;
    top: 0;
    border: 0 solid #ebebeb;
}
.portfolio-container > a:hover {
    top: -10px;
}
.project-phobie {
    background-image:url(portfolio-project-phobie.png);
    background-repeat: no-repeat;
    background-size: cover;
}
#easter-egg {
    position: fixed;
    top: 70px;
    left: 5%;
    bottom: 5%;
    right: 5%;
    z-index: 2;
    text-align: center;
}
.invisible {
    display: none;
}
.visible {
    display: block;
}
.cta-button {
    background: linear-gradient(to bottom, #FFD700, #FFA500); /* dégradé jaune-orange */
    border: 2px solid #F4A460; /* bordure légèrement foncée */
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 12px; /* coins arrondis */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* ombre */
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* ombre sur le texte */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: fixed;
    z-index: 3;
    right: 20px;
    bottom: 60px;
}

.cta-button:hover {
    transform: scale(1.1); /* effet de zoom au survol */
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.4); /* ombre accentuée */
}

.cta-button:active {
    transform: scale(0.95); /* effet de pression */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* ombre réduite */
}
.footer-grid h2 {
    text-align: left;
    font-size: 16px;
    color: #afabe4;
    border-color: 1px solid #b3afe9;
}
.google-maps {
    background-image:url(contact.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 370px;
    height: 200px;
    display: inline-block;
    padding: 20px;
    border-radius: 5px;
    opacity: 0.7;
    margin-top: 33px;
    transition: all 0.4s ease;
}
.google-maps:hover {
    opacity: 1;
}
.footer-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
footer ul {
    list-style-type: none;
}
footer ul li {
    display: flex;
    padding: 10px;
}
footer ul img {
    width: 25px;
    margin-right: 15px;
}

.footer-grid h2 img {
    width: 32px;
}
.footer-grid li {
    font-size: 14px;
}

/* Style de base */


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-grid p {
    font-size: 18px;

}
/* Champs de formulaire */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2DCDED;
    box-shadow: #2DCDED;
}

/* Bouton */
.contact-form button {
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    background-color: #6c63ff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.contact-form button:hover {
    background-color: #5147d9;
}

/* Ajustements pour petits écrans */
@media (max-width: 768px) {
    .footer-grid {
        padding: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    .contact-form button {
        font-size: 14px;
    }
}


/* @media only screen and */