body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: lightgray;
    background-color: #1a1a1a; /* Gris très foncé */
    overflow-x: hidden;
    line-height: 1.8; /* valeur classique : 1.6 à 2 pour une bonne lisibilité */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

p {
    font-size: 18px;
    line-height: 1.7;
}  

/* Style de l'en tête*/ 

header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background-color: rgba(255, 255, 255, 0.123);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px #72a1de68;
    z-index: 999;
}

/* Style du logo + titre */

.left {
    display: flex;
    align-items: center;
}

/* Style de l'image */
.left img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

/* Navigation */
header ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 25px;
    border-radius: 50px;
    background-color: rgba(0, 0, 69, 0.30);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #727fde65;
    list-style: none;
}

/* Liens dans la nav */
header ul li {
    list-style: none;
}

header ul a {
    text-decoration: none;
    color: white;
    font-weight: 700;
}

.box-icons {
    display: flex;
    gap: 40px;
}

.box-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid #933bf8;
    text-decoration: none;
    color: lightgray;
    border-radius: 50%;
}

.box-icons a:hover {
    background-color: #933bf8;
    color: black;
    box-shadow: 0 0 15px #727fde6f;
}

.box-icons a img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre complètement le cercle sans déformation */
    border-radius: 50%; /* Ajoute cette ligne pour garantir la forme circulaire de l'image */
}



/* === HERO SECTION === */
/* Texte Titre */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100vh;
    padding: 0 5%;
    box-sizing: border-box;
    background-color: #141518;
}

.hero-info {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-info .hero-info-title {
    color: #727fde;
    padding: 8px 15px;
    border: 1px solid #727fde;
    width: fit-content;
    background-color: #2200493d;
    box-shadow: 0 0 5px #727fde88;
    border-radius: 50px;
}

.hero-info h1 {
    font-size: 60px;
    max-width: 700px;
    font-weight: 700;
    line-height: 70px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.hero-info p {
    max-width: 550px;
    line-height: 1.8;
    font-size: 20px;
    margin-bottom: 40px;
}

.hero-info button {
    color: white;
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid #727fdeB4;
    background-color: #2200493d;
    box-shadow: 0 0 5px #727fde86;
    cursor: pointer;
    transition: 0.3s;
}

.hero-info button:hover {
    box-shadow: 0 0 15px #727fde86;
}

/* PHOTOOOOO */

.hero-photo {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo img {
    width: 60%;
    height: 60%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #933bf8;
    box-shadow: 0 0 10px #933bf8;
}

/* Gradient Animation */

.gradient {
    background: linear-gradient(to right, #008baa, #7e42a7, #6600c5, #6070fd, #2a46ff, #0099ff, #008eaa);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

/* Scroll-down Animation */

.scroll-down {
    height: 50px;
    width: 30px;
    border: 2px solid lightgray;
    position: absolute;
    left: 49%;
    bottom: 8%;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(211, 211, 211, 0.477);
}

.scroll-down::before,
.scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 49%;
    height: 10px;
    width: 10px;
    border: 2px solid lightgray;
    transform: translate(-50%, -100%) rotate(45deg);
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 1.5s ease-in-out infinite;
}

.scroll-down::before {
    top: 30%;
    animation-delay: 0.5s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
    }
    30%, 60% {
        opacity: 1;
    }
    100% {
        top: 90%;
        opacity: 0;
    }
}

#scroll-progress {
  position: fixed;               /* ← se fixe à l’écran */
  bottom: 0;                        /* ← ou bottom: 0; pour la mettre en bas */
  left: 0;
  height: 4px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(to right, #008baa, #7e42a7, #6600c5, #6070fd, #2a46ff, #0099ff, #008eaa);
  transition: width 0.25s ease-out;
}


/* Section principale */
.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1300px;   /* limite la largeur */
    margin: 100px auto;  /* centre horizontalement */
    padding: 0 20px;     /* petit padding */
}


/* Titre de la section */
.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}  

/* Conteneur de cartes */
.presentation-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 4 colonnes fixes */
    gap: 30px;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
}

/* Style général de chaque carte */
.card {
    display: flex;
    flex-direction: column;
    align-items: center; /* centrage horizontal de tous les éléments */
    justify-content: flex-start;
    border: 1px solid gray;
    background-color: #080020b7;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px; /* Ajoute un peu d’espace interne global */
    height: auto; /* on laisse la hauteur s’adapter au contenu */
}

/* Image */
.card img {
    width: 90%;
    height: auto; /* Laisse l’image garder ses proportions */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px; /* Espace avec le titre */
}


/* Titre dans la carte */
.card h1 {
    position: static;
    margin: 0;
    bottom: 40%;
    left: 5%;
    font-size: 25px;
    z-index: 1;
    color: lightgray;
}

/* Paragraphe dans la carte */
.card p {
    position: s;
    text-align: justify;
    bottom: 3%;
    z-index: 1;
    max-width: 100%;
    color: gray;
    font-size: 18px;
    line-height: 1.8;
    padding: 0 5%; /* Espace intérieur gauche et droite */
}

/* Effet global au survol de la carte */
.card:hover {
    box-shadow: 0 0 15px rgba(211, 211, 211, 0.5);
}

.card:nth-child(3) h1 {
    bottom: 35%;
}

.card:nth-child(4) h1 {
    bottom: 35%;
}

.card:nth-child(1),
.card:nth-child(2),
.card:nth-child(3) {
  grid-column: span 2;
}

.card.occupations,
.card.natation {
    grid-column: span 3; /* chacune prend 2 colonnes => 50% */
}


/* Bilan : carte qui s'étend sur toute la largeur */

.bilan-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1300px;   /* limite la largeur */
    margin: 100px auto;  /* centre horizontalement */
    padding: 0 20px;     /* petit padding */
}

.bilan-card {
    grid-column: 1 / -1; /* prend toute la ligne */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px;
    background-color: #080020b7;
    border: 1px solid gray;
    border-radius: 20px;
    gap: 20px;
    height: auto; /* ← laisse s’adapter au contenu */
    position: relative;
}

.bilan-card h1 {
    font-size: 25px;
    color: lightgray;
    margin: 0;
    position: static; /* ← retire tout positionnement spécial */
}

.bilan-card p {
    font-size: 18px;
    color: gray;
    text-align: justify;
    line-height: 1.8;
    margin: 0;
    position: static; /* ← très important ici */
}

/* Lien correctement placé en flux normal */
.bilan-link {
    font-size: 18px;
    font-weight: bold;
    color: #66b3ff;
    text-decoration: none;
}

.bilan-link:hover {
    text-decoration: underline;
}

/* Bilan : carte qui s'étend sur toute la largeur */

.CV-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1300px;   /* limite la largeur */
    margin: 100px auto;  /* centre horizontalement */
    padding: 0 20px;     /* petit padding */
}

.cv-card {
    grid-column: 1 / -1; /* prend toute la ligne */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 30px;
    background-color: #080020b7;
    border: 1px solid gray;
    border-radius: 20px;
    gap: 20px;
    height: auto; /* ← laisse s’adapter au contenu */
    position: relative;
}

.cv-card h1 {
    font-size: 25px;
    color: lightgray;
    margin: 0;
    position: static; /* ← retire tout positionnement spécial */
}

.cv-card p {
    font-size: 18px;
    color: gray;
    text-align: justify;
    line-height: 1.8;
    margin: 0;
    position: static; /* ← très important ici */
}

/* Lien correctement placé en flux normal */
.bilan-link {
    font-size: 18px;
    font-weight: bold;
    color: #66b3ff;
    text-decoration: none;
}

.bilan-link:hover {
    text-decoration: underline;
}

/* Fond commun pour les sections bilan et CV */
.bilan-section-wrapper,
.cv-section-wrapper {
    background-color: #111215;  /* Fond uniforme */
    width: 100%;
    padding: 100px 0;  /* Espace haut/bas */
}

/* Contenu centré à l'intérieur */
.bilan-section,
.CV-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}



/* SECTION - Timeline */

/* Style Timeline pour "Mon Parcours" */

.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-row {
    position: relative;
}

.timeline-box {
    display: flex;
    flex-direction: column;
}

.timeline-content {
    position: relative;
    width: 50%;
    padding: 40px 50px; /* <-- Plus d'espace intérieur */
    box-sizing: border-box;
    margin-bottom: 80px; /* <-- Plus d'espace entre chaque étape */
}

.timeline-content .contenu {
    padding: 24px;
    background-color: #0d0d24;
    border: 2px solid #727fde;
    border-radius: 15px;
    color: white;
    text-align: justify;
    box-shadow: 0 0 10px rgba(114, 127, 222, 0.2);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 40px;
    width: 20px;
    height: 20px;
    background: #727fde;
    border-radius: 50%;
    z-index: 1;
}

.timeline-row::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #727fde;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content.left {
    left: 0;
}

.timeline-content.left::before {
    right: -10px;
}

.timeline-content.right {
    left: 50%;
}

.timeline-content.right::before {
    left: -10px;
}


/* SECTION - My Projects */

.my-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 20px;
    gap: 80px;
}

/* CARTE */
.project-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

/* VIDÉO */
.project-vidbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    position: relative;
    cursor: pointer;
    min-width: 400px;
    transition: 0.5s;
    mix-blend-mode: exclusion;
}

.project-vidbox video {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 10px lightgray;
    transition: 0.5s;
}

.project-vidbox video:hover {
    box-shadow: 0 0 20px lightgray;
}

/* TEXTE */
.project-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    padding-left: 10%;
    gap: 10px;
}

/* TITRE */
.project-info h1 {
    width: 90%;
    font-size: 25px;
    font-weight: bold;
    text-wrap: nowrap;
    margin: 0 0 10px 0;
    max-width: 450px;
}

/* DESCRIPTION */
.project-info p {
    width: 100%;
    max-width: 700px;
    min-width: 300px;
    margin: 0 0 5px 0;
    font-size: 18px;
    text-align: justify;
    line-height: 1.8;
}

/* BOUTON */
.project-info button {
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #727fdeB4;
    background-color: #2200493d;
    box-shadow: 0 0 5px #727fde86;
    cursor: pointer;
    transition: 0.3s;
}

/* Fond commun sur toute la largeur */
.projects-section-wrapper,
.bilan-section-wrapper {
    background-color: #111215;
    width: 100%;
    padding: 100px 0;
}

/* Contenu centré à l'intérieur */
.my-projects,
.bilan-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/********************************************
   MODAL (modifiée avec animation)
********************************************/
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

/********************************************
   MODALE – Apparence, Scroll & Animation
********************************************/
.modal-content {
    position: relative;
    background: #1f1f1f;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    width: 95%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ne pas dépasser */
    padding: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Scroll interne de la modale */
.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 1rem;
    max-height: 65vh;
}

.modal.active .modal-content {
    transform: translateY(0); /* Rétablissement de la position normale */
    opacity: 1; /* Rendre visible */
    animation: fadeInZoom 0.5s ease-in-out; /* Animation de l'apparition avec zoom */
}

@keyframes fadeInZoom {
    0% {
        transform: scale(0.8) translateY(50px); /* Partir d'une petite taille et légèrement décalé */
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0); /* Fin à la taille normale et sans décalage */
        opacity: 1;
    }
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* Bouton de fermeture */
.modal .close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    color: #aaa;
    background: none; /* supprime tout fond blanc */
    border: none;     /* supprime tout cadre */
    padding: 0;       /* retire les espaces internes */
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal .close:hover {
    color: #fff;
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-body {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Projet 1 */

#modal-body h3, #modal-body h4 {
    margin-top: 1.5rem;
    color: #fff;
}
#modal-body p, #modal-body li {
    color: #ccc;
}
#modal-body ul {
    padding-left: 1.2rem;
}

/********************************************
   TITRES ET PARAGRAPHES
********************************************/
#modal-body h3 {
    font-size: 1.7rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    color: #4FB5EA;
    font-weight: 700;
    border-left: 4px solid #4FB5EA;
    padding-left: 0.75rem;
}

#modal-body h4 {
    font-size: 1.4rem;
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
    color: #CA7EED;
    font-weight: 600;
}

#modal-body p,
#modal-body li {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 0.5rem;
}

#modal-body ul {
    margin-left: 1.5rem;
    list-style-type: disc;
}

hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #444;
}

/********************************************
   TABLEAU MODERNE
********************************************/
#modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 1rem;
    color: #eee;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

#modal-body th,
#modal-body td {
    border: 1px solid #555;
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

#modal-body th {
    background-color: #333;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#modal-body tr:nth-child(even) {
    background-color: #2b2b2b;
}

#modal-body tr:hover {
    background-color: #3a3a3a;
}

/* Empêcher le soulignement et autres effets de la balise <a> */
.download-link {
    text-decoration: none; /* Enlever le soulignement */
    display: inline-block; /* Rendre le lien un élément de type block, donc on peut l'utiliser avec le bouton */
}

/* Style du bouton */
.download-btn {
    background-color: #6c5ce7; /* Couleur de fond */
    color: white; /* Texte en blanc */
    padding: 10px 20px;
    border: none;
    border-radius: 6px; /* Bord arrondi */
    cursor: pointer; /* Curseur en forme de main pour indiquer que c'est cliquable */
    font-size: 1rem;
    text-align: center;
    display: inline-block; /* Pour que le bouton se comporte comme un élément en ligne */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Ombre pour l'effet visuel */
    transition: background-color 0.3s ease; /* Effet au survol */
}

/* Effet au survol du bouton */
.download-btn:hover {
    background-color: #4e3d9e; /* Changer la couleur du fond au survol */
}

.download-btn:focus {
    outline: none; /* Retirer le contour lors de la mise au point (focus) */
}

.download-btn {
    z-index: 1000; /* S'assurer que le bouton est au-dessus des autres éléments */
    pointer-events: auto; /* Assurer que le bouton reste cliquable */
}

/* ------------------------------------------
   LIVRABLES SECTION
------------------------------------------- */
.livrables-section {
   padding: 120px 2rem 4rem;
   min-height: 100vh;
   background-color: #111215;
   text-align: center;
   font-size: 2rem;
}

.livrables-container {
   max-width: 1400px;
   margin: 0 auto;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 2rem;
   padding: 2rem;
}

.livrable-card {
   background: #1f1f1f;
   border-radius: 15px;
   padding: 2rem;
   display: flex;
   align-items: flex-start;
   gap: 1.5rem;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.livrable-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.livrable-info {
   flex-grow: 1;
}

.livrable-info h3 {
   color: var(--text-light);
   margin: 0 0 0.5rem;
   font-size: 1.6rem;
}

.livrable-info p {
   color: var(--text-muted);
   margin: 0 0 1rem;
   font-size: 1.2rem;
}

@media (max-width: 768px) {
   .livrables-container {
      grid-template-columns: 1fr;
      padding: 1rem;
   }

   .livrable-card {
      padding: 1.5rem;
   }
}






/* TITRE DE SECTION */
.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
}

.hover-sign {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 100px;
}

.hover-sign::before,
.hover-sign::after {
    content: "👆";
    text-align: center;
    position: absolute;
    font-size: 50px;
    top: 20%;
    left: 40%;
    border-radius: 50%;
    animation: hoverAnimation 1s ease-in-out infinite;
}

@keyframes hoverAnimation {
    0% {
        box-shadow: 0 0 5px lightgray;
        transform: translate(100%, 50%) rotate(30deg);
    }
    100% {
        box-shadow: 0 0 15px lightgray;
        transform: translateX(80%) rotate(0deg);
    }
}

.hover-sign.active {
    display: none;
}

.contact-section {
	background: #111215;
	padding: 4rem 2rem;
}

.contact-section .section-title {
	font-size: 2.5rem;
	margin-bottom: 3rem;
	text-align: center;
	color: #fff;
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 3rem;
	max-width: 1200px;
	margin: 0 auto;
}

.contact-info {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}


.contact-card i {
	font-size: 2rem;
	margin-bottom: 1rem;
	position: relative;
	z-index: 1;
}

.contact-card h3 {
	margin-bottom: 0.5rem;
	color: #fff;
	position: relative;
	z-index: 1;
}

.contact-card p {
	color: #fff;
	margin: 0;
	opacity: 0.8;
	position: relative;
	z-index: 1;
}

.contact-card a {
	color: inherit;
	text-decoration: none;
}

.contact-card a:hover {
	color: inherit;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 1rem;
	color: lightgray;
	border: 1px solid #2f2f2f;
	border-radius: 6px; /* Bord arrondi */
	color: #000000;
	font-family: 'Montserrat', sans-serif;
	transition: border-color 0.3s ease;
}

.form-group textarea {
	min-height: 150px;
	resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #4FB5EA;
}

.download-cv-container {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	width: 100%;
}

.cv-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
	background: #6c5ce7;
	border: none;
	border-radius: 4px;
	color: #fff;
	text-decoration: none;
	transition: transform 0.3s ease, background-color 0.3s ease;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.cv-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #6c5ce7;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.cv-btn:hover {
	transform: translateY(-2px);
}

.cv-btn:hover::before {
	opacity: 1;
}

.cv-btn i,
.cv-btn span {
	position: relative;
	z-index: 1;
}

.submit-btn {
	width: 100%;
	padding: 1rem;
	background: #2f2f2f;
	border: none;
	border-radius: 4px;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.submit-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #6c5ce7;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.submit-btn:hover {
	transform: translateY(-2px);
}

.submit-btn:hover::before {
	opacity: 1;
}

.submit-btn span {
	position: relative;
	z-index: 1;
}

@media (max-width: 768px) {
	.contact-container {
		grid-template-columns: 1fr;
	}

	.contact-info {
		gap: 1.5rem;
	}

	.contact-card {
		padding: 1.5rem;
	}
}


/* === FOOTER === */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.128);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.356);
  z-index: 999;
}

footer h1 {
  font-size: 20px;
}

.menu-icon {
    font-size: 35px;
    cursor: pointer;
    display: none;
}
  
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 70%;
    width: 0%;
    background-color: #000000b8;
    backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: 0 0 20px rgba(211, 211, 211, 0.411);
    border-bottom-left-radius: 100%;
    opacity: 0;
}
  
  .close-icon {
    font-size: 50px;
    color: lightgray;
    padding-left: 10px;
    cursor: pointer;
}
  
  .sidebar ul {
    padding-left: 20px;
}
  
  .sidebar ul li {
    list-style: none;
    margin-bottom: 30px;
}
  
  .sidebar ul li a {
    text-decoration: none;
    color: lightgray;
    font-size: 30px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(128, 128, 128, 0.256);
}
  
  .sidebar .box-icons {
    padding-left: 20px;
    margin-top: 60px;
}

/* Open Sidebar Animation */
.sidebar.open-sidebar {
    animation: openSidebarAnimation 1.5s forwards;
}
  
  @keyframes openSidebarAnimation {
    to {
      width: 80%;
      opacity: 1;
      bottom: 0;
      border-radius: 0;
    }
}

/* Close Sidebar Animation */
.sidebar.close-sidebar {
    animation: closeSidebarAnimation 1.5s forwards;
  }
  
  @keyframes closeSidebarAnimation {
    from {
      width: 80%;
      opacity: 1;
      bottom: 0;
      border-radius: 0;
    }
  
    to {
      width: 0;
      opacity: 0;
      bottom: 70%;
      border-bottom-left-radius: 50%;
    }
}

/* AUTO DISPLAY ANIMATION */

.autoDisplay {
    animation: autoDisplayAnimation both;
    animation-timeline: view();
  }
  
  @keyframes autoDisplayAnimation {
    from {
      filter: blur(10px);
      transform: translateY(-200px) scale(0);
      opacity: 0.2;
    }
  
    50% {
      opacity: 1;
      filter: blur(0);
      transform: translateX(0) scale(1);
    }
  }
  
/* FADEIN-RIGHT */

.fadeInRight {
    animation: fadeInAnimation both;
    animation-timeline: view();
  }
  
  @keyframes fadeInAnimation {
    0% {
      opacity: 0;
      transform: translateX(-500px) scale(0.2);
      filter: blur(10px);
    }
  
    35%, 65% {
      opacity: 1;
      transform: translateX(0px) scale(1);
      filter: blur(0);
    }
  }

/* TABLET RESPONSIVE */
@media screen and (max-width: 1000px) {

    header ul, .nav ul,
    header .box-icons {
      display: none;
    }
 
    .hero-info h1 {
      font-size: 40px;
      max-width: 90%;
      line-height: 40px;
    }
  
    .hero-info p {
      max-width: 90%;
    }
  
    .section-title {
      font-size: 30px;
    }

   .presentation-cards {
        grid-template-columns: repeat(2, 1fr); /* grille à 2 colonnes */
    }

    .presentation-cards .card {
        grid-column: span 1 !important; /* par défaut : 1 colonne */
    }

    .presentation-cards .card:nth-child(5) {
        grid-column: span 2 !important;
    }

    .project-vidbox video {
      width: 70%;
      margin-left: -100px;
    }
  
    .project-info {
      padding-left: 0;
      margin-left: -50px;
      flex: 1;
      width: 100%;
      max-width: none; /* retire la limite */
    }
  
    .project-info h1 {
      font-size: 20px;
      max-width: 100%;
      text-wrap: wrap;
      word-break: break-word;
    }
  
    .project-info p {
      font-size: 15px;
      text-wrap: wrap;
      max-width: 100%;
      min-width: 0;
    }

    .hover-sign {
        width: 50%;
        height: 80px;
      }
    
      .hover-sign::before,
      .hover-sign::after {
        font-size: 30px;
        top: 10%;
        left: 30%;
        animation: hoverAnimationTablet 1.5s ease-in-out infinite;
      }
    
      @keyframes hoverAnimationTablet {
        0% {
          box-shadow: 0 0 3px lightgray;
          transform: translate(100%, 50%) rotate(30deg);
        }
        100% {
          box-shadow: 0 0 10px lightgray;
          transform: translateX(80%) rotate(0deg);
        }
    }
  
    footer h1 {
      font-size: 20px;
    }

    .menu-icon {
      display: inline;
    }
  }
  
/* MOBILE RESPONSIVE */
@media screen and (max-width: 700px) {
    * {
      box-sizing: border-box;
    }
  
    body {
      padding-top: 50px;
      overflow-x: hidden;
    }
  
    header {
      position: fixed;
      height: 50px;
    }
  
    header ul, .nav ul,
    header .box-icons {
      display: none;
    }
  
    header h1 {
      font-size: 25px;
    }
  
    .hero {
      display: flex;
      flex-direction: column;
      padding: 40px 20px 30px 20px;
      height: auto;
      min-height: auto;
      overflow: visible;
    }
  
    .hero-info {
      position: relative !important;
      padding: 20px;
      top: 0;
      left: 0;
      width: 100%;
    }
  
    .hero-info h1 {
        font-size: 40px;
        max-width: 100%;
        line-height: 40px;
    }
  
    .hero-info p {
      line-height: 1.8;
      max-width: 100%;
    }
  
    .scroll-down {
      position: relative;
      display: flex;
      justify-content: center;
      margin: 30px 0 60px 0;
    }

    /* INFOS SECTION */

    .presentation-cards {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }

    .presentation-cards > .card {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* TIMELINE SECTION */

    .timeline {
        padding: 20px 0;
      }
    
      .timeline-content {
        width: 100%; /* Plus large pour téléphone */
        padding: 30px 40px;
      }
    
      .timeline-content.left {
        left: 0;
      }
    
      .timeline-content.right {
        left: 0;
      }
    
      .timeline-row::after {
        left: 20px; /* Ligne déplacée sur la gauche */
      }
    
      .timeline-content::before {
        left: 10px; /* Point placé correctement */
        transform: translateX(0);
      }
    
      .timeline-content.left::before,
      .timeline-content.right::before {
        left: 10px;
        right: auto;
      }

    /* PROJECT SECTION */
    
    .project-card {
        display: flex; /* important */
        flex-direction: column;
        align-items: center;
        justify-content: center; /* centrage horizontal */
        gap: 30px;
        width: 100%; /* prend toute la largeur disponible */
        margin: 0 auto;
        padding: 0 5%; /* marge intérieure pour respirer */
        box-sizing: border-box;
    }

    .project-vidbox {
        width: 100%;
        min-width: 200px;
    }

    .project-vidbox video {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        margin: 0 auto;
    }

    .project-info {
        width: 100%; /* largeur que tu veux */
        margin: 0 auto; /* <-- Centre ton texte sous la vidéo */
        text-align: center;
        box-sizing: border-box;
    }

    .project-info h1 {
        font-size: 24px;
        margin: 0 auto; /* <-- Centre ton texte sous la vidéo */
        word-break: break-word;
    }

    .project-info p {
        text-align: justify;
        font-size: 18px;
        max-width: 100%;
    }

    .project-info button {
        margin-top: 20px;
    }

  
    /* CONTACT SECTION */

    .contact-container {
        flex-direction: column; /* mettre social-box et contact-box l'un sous l'autre */
        width: 90%;
        gap: 40px; /* plus d'espace entre les deux */
    }

    .social-box,
    .contact-box {
        width: 100%; /* chaque bloc prend toute la largeur */
    }

    .contact-section h1 {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .social-box a {
        font-size: 18px;
    }

    .contact-box p {
        font-size: 16px;
    }

    .contact-box input,
    .input-message {
        width: 100%; /* continue à prendre toute la largeur */
    }
  
    footer h1 {
      font-size: 17px;
    }
  
    .menu-icon {
      display: inline;
    }
  }
  

  