/* === BASE === */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

:root{
    --main-color: rgb(0, 38, 63);
  }
::selection{
    background-color: var(--main-color);
}

*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.banner{
    width: 100%;
    height: 100vh;
   background-image: linear-gradient(rgba(49, 49, 49, 0.75),rgba(34, 34, 34, 0.75)),url(/Image/pylone.png);
    background-size: cover;
    background-position: top;
}

.banner-moi{
    width: 100%;
    min-height: 80vh;
    background-image: linear-gradient(rgba(49, 49, 49, 0.75),rgba(34, 34, 34, 0.75)),url(/Image/pylone.png);
    background-size: cover;
    background-position: top;
}


.banner .content p {
    font-size: 20px; /* Augmenter la taille de la police ici */
    line-height: 1.6; /* Optionnel, améliore la lisibilité */
    color: #ffffff; /* Optionnel, pour ajuster la couleur si nécessaire */
}


.logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
    transform: translateY(20px); /* ← Remonte légèrement le titre */
}


.navbar{
    width: 85%;
    margin: auto;
    padding: 35px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-30px); /* ← Remonte légèrement le titre */
}

.contact-section {
    background-color: #ffffff;
    text-align: center;
    padding: 50px 20px;
    margin-top: 50px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgb(255, 255, 255);
}

.contact-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-icons {
    margin-bottom: 20px;
}

.contact-icons a {
    margin: 0 15px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-icons a:hover {
    transform: scale(1.1);
}

.contact-links p {
    margin: 5px 0;
    font-size: 1.1em;
}

.contact-info {
    display: flex;
    align-items: center; /* Alignement vertical parfait */
    justify-content: center;
    gap: 10px; /* Espace entre l’icône et le texte */
    margin: 15px 0; /* Plus de marge entre mail & LinkedIn */
    font-size: 18px;
    color: #000000;
}

.contact-info img {
    vertical-align: left; /* Assure que l’image est bien centrée */
}

.contact-info a, 
.contact-info span {
    line-height: 1; /* Aligne bien le texte avec l’icône */
}


.cv-button {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 20px;
    background-color: #0073e6;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cv-button:hover {
    background-color: #005bb5;
}




  
/* === NAVBAR HOVER EFFECT === */

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 40px;
    padding: 0;
    height: 2px;

  }
  
  .nav-links li {
    position: relative;
  }
  
  .nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
    display: inline-block;
    font-size: 16px;
    position: relative;
  }
  
  /* Trait invisible par défaut */
  .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--main-color);
    transition: width 0.3s ease;
  }
  
  /* Survol = trait blanc */
  .nav-links li a:hover::after {
    width: 100%;
  }
  
  /* Actif = trait blanc visible en permanence */
  .nav-links li.active a::after {
    width: 100%;
    background-color: var(--main-color);
  }
  
.cv-download {
    text-align: center;
    margin-top: 30px;
    transform: translateY(-50px); /* ← Remonte légèrement le titre */
}

.btn-cv {
    display: inline-block;
    background-color: var(--main-color);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-cv:hover {
    background-color: var(--main-color);
}


.hero {
  height: 100vh;
  background: url('/Image/ton-image.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 220px;
  padding-top: 30px; /* Ajoute de l'espace en haut si besoin */
  color: white;
  transform: translateY(-50px); /* ← Remonte légèrement le titre */
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 10px; /* Rapproche le trait */
  transform: translateY(-60px); /* ← Remonte légèrement le titre */
}

.hero-separator {
  width: 250px;
  border: none;
  height: 2px;
  background-color: white;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
  transform: translateY(-50px); /* ← Remonte légèrement le titre */
}


.hero p {
    font-family: 'Poppins', sans-serif;
    transform: translateY(-50px); /* ← Remonte légèrement le titre */
}

.hero-btn {
    background-color: var(--main-color);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    width: fit-content;
    transform: translateY(-20px); /* ← Remonte légèrement le titre */
  }
  
  .hero-btn:hover {
    background-color: var(--main-color);
  }


.conteneur{
    position: relative;
    width: 100%;
    max-width: 1000px;
    min-height: 1000px;
    background: #ffffff;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    box-shadow: 0 35px 55px rgba(0,0,0,0.1);
}

.conteneur .droite_cv{
    position: relative;
    background: #ffffff;
    padding: 40px;
}

.about{
    margin-bottom: 50px;
}
.about:last-child{
    margin-bottom: 0px;
}

.title2{
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

p1{
    color: black;
}

.about .box{
    display: flex;
    flex-direction: row;
    margin: 20px 0;
}

.about .box .year_company{
    min-width: 150px;
}

.about .box .year_company h5{
    text-transform: uppercase;
    color: #848c90;
    font-weight: 600;
}

.about .box .text h4{
    text-transform: uppercase;
    color: var(--main-color);
    font-size: 16px;
}

.compétences .box{
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 150px 1fr;
    justify-content: center;
    align-items: center;
}

.compétences .box h4{
    text-transform: uppercase;
    color: #848c90;
    font-weight: 500;
}

.compétences .box .percent{
    position: relative;
    width: 100%;
    height: 10px;
    background: #ffffff;
}

.compétences .box .percent div{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--main-color);
}

.interest ul{
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.interest ul li{
    list-style: none;
    color: #333;
    font-weight: 500;
    margin: 10px 0;
}

.interest ul li .fa{
    color: var(--main-color);
    font-size: 18px;
    width: 20px;
}

.conteneur .gauche_cv{
    position: relative;
    background: var(--main-color);
    padding: 40px;
}

.profileText{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.profileText .photo{
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
}

.profileText .photo img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profileText h2{
    color: #ffffff;
    font-size: 1.5em;
    margin-top: 20px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
    line-height: 1.4em;
}

.profileText h2 span{
    font-size: 0.8em;
    font-weight: 300;
}

.contactInfo{
    padding-top: 30px;
}

.contactInfo ul{
    position: relative;
}

.contactInfo ul li{
    position: relative;
    list-style: none;
    margin: 10px 0;
    cursor: pointer;
}

.contactInfo ul li .icon{
    display: inline-block;
    width: 30px;
    font-size: 18px;
    color: #ffffff;
}

.contactInfo ul li span{
    color: #ffffff;
    font-weight: 300;
}

.title{
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}

.contactInfo_Etude li{
    margin-bottom: 15px;
}

.contactInfo_Etude h5{
    color: #ffffff;
    font-weight: 500;
}

.contactInfo_Etude h4{
    color: #ffffff;
    font-weight: 300;
}

.contactInfo_Etude h4:nth-child(2){
    color: #ffffff;
    font-weight: 500;
}

.contactInfo_Langue span{
    color: #ffffff;
    font-weight: 400;
}

.contactInfo_Langue .percent{
    position: relative;
    width: 100%;
    height: 6px;
    background: rgb(0, 0, 0);
    display: block;
    margin-top: 5px;
}

.contactInfo_Langue .percent div{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ffffff;
}

.body{
    background: lightblue;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


.separateur{
    width: 550px;
    border: none;
    border-bottom: 2px solid #ffffff;
    margin: 1rem auto;
}


.Tableau_portfolio h1{
    width: 100%;
    position: absolute;
    top: 150px;
    transform: translateY(-50%);
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
}

.Tableau_portfolio h2{
    width: 100%;
    position: absolute;
    top: 300px;
    transform: translateY(-80%);
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
}

.Tableau_portfolio table{
    border-collapse: collapse;
    min-height: 700px;
    width: 80%;
    cursor: pointer;
    margin: 100px auto;
    border: 2px solid white;
}

.Tableau_portfolio td{
    border: 2px solid white;
    color: white;
    text-align: center;
    text-transform: uppercase;
}

.Tableau_portfolio table tr td .bar{
    width: 85%;
    margin: auto;
    background: white;
    border-radius: 5px;
}

.Tableau_portfolio table tr td .bar .bar-stat{
    border-radius: 5px;
}

.Tableau_portfolio table tr td .bar .bar-stat span{
    color: white;
    font-family: sans-serif;
}

#python{
    background: var(--main-color);
    animation: pythonslide 1.5s cubic-bezier(0.33, 1, 0.68, 1)forwards;
}

@keyframes pythonslide{
    0%{width: 0%;}
    100%{width: 55%;}
}

#syselec{
    background: var(--main-color);
    animation: syselecfoslide 1.5s cubic-bezier(0.33, 1, 0.68, 1)forwards;
}

@keyframes syselecfoslide{
    0%{width: 0%;}
    100%{width: 60%;}
}

#initiationinfo{
    background: var(--main-color);
    animation: initiationinfoslide 1.5s cubic-bezier(0.33, 1, 0.68, 1)forwards;
}

@keyframes initiationinfoslide{
    0%{width: 0%;}
    100%{width: 70%;}
}

#hygieneinfo{
    background: var(--main-color);
    animation: hygieneinfoslide 1.5s cubic-bezier(0.33, 1, 0.68, 1)forwards;
}

@keyframes hygieneinfoslide{
    0%{width: 0%;}
    100%{width: 80%;}
}

#windows{
    background: var(--main-color);
    animation: windowsslide 1.5s cubic-bezier(0.33, 1, 0.68, 1)forwards;
}

@keyframes windowsslide{
    0%{width: 0%;}
    100%{width: 75%;}
}

#linux{
    background: var(--main-color);
    animation: linuxslide 1.5s cubic-bezier(0.33, 1, 0.68, 1)forwards;
}

@keyframes linuxslide{
    0%{width: 0%;}
    100%{width: 50%;}
}

#htmlcss{
    background: var(--main-color);
    animation: htmlSlide 1.5s cubic-bezier(0.33, 1, 0.68, 1)forwards;
}

@keyframes htmlSlide{
    0%{width: 0%;}
    100%{width: 60%;}
}


.Tableau_portfolio tr .impaire{
    max-width: 25px;
}

.Tableau_portfolio table tr td{
    max-width: 25px;
}

.Tableau_portfolio .impaire{
    background: var(--main-color);
}

.Tableau_portfolio .paire{
    background: none;
}

.conteneurportfolio{
    position: relative;
    width: 100%;
    max-width: auto;
    min-height: 400px;
    background: #ffffff;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    box-shadow: 0 35px 55px rgba(0,0,0,0.1);
}

.conteneurportfolio h1{
    text-align: center;
    position: absolute;
    width: 100%;
}

.conteneurportfolio p{
    width: 100%;
    top: 100px;
    text-align: center;
    position: absolute;
    font-weight: 1000;
    text-transform: uppercase;
    line-height: 200%;
}

.conteneurhobby{
    position: relative;
    width: 100%;
    top: 100px;
    max-width: 1300px;
    min-height: 600px;
    background: #ffffff;
    margin: auto;
    display: grid;
    box-shadow: 0 35px 55px rgba(0,0,0,0.1);
    border: solid #000;
}

.conteneurhobby h1{
    text-align: center;
    text-transform: uppercase;
    color: var(--main-color);
}

.conteneurhobby img{
    width: 10%;
    margin: auto;
    display: block;
}

.conteneurhobby p{
    text-align: center;
    display: block;
    font-weight: 600;
    color: var(--main-color);
    line-height: 150%;
}

.conteneurhobby iframe{
    width: 50%;
    margin: auto;
    display: block;
    top: 5px;
    border: solid var(--main-color);
}

  
/* === Structure en 2 colonnes dans la bannière === */
.intro-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    padding-top: 250px;
    color: white;
  }
  
  .intro-left {
    flex: 1.8;
  }
  
  .intro-left h1 {
    font-size: 2.8rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
  }
  
  .intro-left p {
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
  }
  
  .intro-right {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .intro-right img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%; /* avatar rond */
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }
  
/* ===== SECTION HANDBALL ===== */
.section-handball {
  background-color: var(--main-color);
  padding: 120px 20px;
}

.handball-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.handball-text {
  flex: 1;
  min-width: 300px;
}

.handball-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.handball-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.handball-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.handball-img img {
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}


/* ===== SECTION FOOTBALL ===== */
.section-football {
  background: url('/Image/LENS2.JPEG') center/cover no-repeat;
  padding: 160px 30px;
  position: relative;
  color: white;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.football-overlay {
  background-color: rgba(0, 0, 0, 0.7); /* assombrit légèrement l'image */
  padding: 60px 30px;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
}

.football-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.football-overlay p {
  font-size: 1.2rem;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

/* === PARCOURS SCOLAIRE === */
.section-parcours {
    background-color: #fff;
    padding: 80px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
  }
  
  .section-parcours h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1e1e1e;
  }
  
  /* === LOGOS + INFOS ÉTABLISSEMENTS === */
  .school-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 30px 0 60px;
    flex-wrap: wrap;
    text-align: center;
  }
  
  .school-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    color: #333;
  }
  
  .school-item img {
    height: 70px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
  }
  
  .school-item img:hover {
    transform: scale(1.1);
  }
  
  .school-item p {
    font-weight: 600;
    margin: 0;
  }
  
  .school-item span {
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
  }
  
  /* === TIMELINE TEXTE === */
  .timeline {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 750px;
    font-size: 1rem;
    text-align: left;
  }
  
  .timeline li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
  }
  
  .timeline li::before {
    content: '📚';
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1rem;
  }

/* === CONTAINER GLOBAL POUR LES BLOCS ÉTABLISSEMENTS === */
.etablissement-section {
  background-color: var(--main-color);
  color: white;
  padding: 60px 10px;
}

.etablissement-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}



/* === BLOC COMMUN === */
.etablissement-bloc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0;
}

/* === TEXTE === */
/* Texte */
.etab-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
}

.etab-text h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: white;
}

.etab-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

/* === IMAGE === */
.etab-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Image */
.etab-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* === IBM bloc : image à droite === */
.bloc-ibm {
  flex-direction: row;
}

/* === COLLÈGE bloc : image à gauche === */
.bloc-college {
  flex-direction: row;
}

/* Cacher tous les blocs au départ */
.etab-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Bloc actif */
.etab-content.active {
  display: block;
  opacity: 1;
}

/* Logo cliquable */
.school-logos.interactive .school-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.school-logos.interactive .school-item:hover {
  transform: scale(1.05);
}