
:root {
    --creme: #FFF9E5;
    --bleu: #19305B;
    --bordeaux1: #630217;
    --bordeaux2: #8B0429;
    --noir: #000;
    --blanc: #fff;
}


body {
    margin: 0;
    font-family: 'Roboto', serif;
    background-color: var(--creme);
    color: var(--noir);
}


h4 {
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
   color: #630217;
    text-align: center;
    font-size: 40px;
}

h2, h3, .section-title, .sub-title {
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
    color: var(--bleu);
    text-align: center;
    font-size: 50px;
}

p {
    font-family: "Roboto", sans-serif; 
    font-size: 20px; 
    line-height: 1.6; 
    color: #19305B;
}

strong {
    font-family: "Anton", sans-serif; 
    font-weight: 700; 
    color: #630217;
  }

section {
    padding: 60px 20px;
}


.main-header {
    background: var(--creme);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 9999;
}


nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--bleu);
    font-weight: 500;
    border: 1px solid var(--bleu);
    padding: 6px 12px;
    border-radius: 20px;
    transition: 0.3s;
}


nav a:hover {
    background: none;
    color: var(--bleu);
    border-color: var(--bleu);
}

nav a.active {
    border: 3px solid var(--bordeaux2);
    color: var(--bordeaux2);
    font-weight: 600;
}



.section-accueil {
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 100px;
    padding-left: 10px
}

.titre-hero {
    width: 100%;
    max-width: 1000px;
}


.section-apropos {
    margin-top: 20px;
    padding: 60px 0; 
    width: 100%;
}

.apropos-container {
    display: flex;
    gap: 40px;
    justify-content: center ;   
    align-items: center;        
    max-width: 1200px;              
    margin: 0 auto;                 
}

.photo-wrapper img {
    margin-left: -10px;
    width: 450px;
   
}

.text-wrapper {
    max-width: 700px;             
    flex: 1;                         
}


.hexa{
    border: 0px;
    float: left;
    text-align: center;
    height: 35px;
    width: 60px;
    font-size: 22px;
    background: #810000;
    color: #b60000;
    position: relative;
    margin-top: 15px;
  }
  
  .hexa:before{
    content: ""; 
    position: absolute; 
    left: 0; 
    width: 0; 
    height: 0;
    border-bottom: 15px solid #441a1a;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    top: -15px;
  }
  
  .hexa:after{
    content: ""; 
    position: absolute; 
    left: 0; 
    width: 0; 
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 15px solid #880000;
    bottom: -15px;
  }
  
  .timeline {
    position: relative;
    padding: 0;
    width: 100%;
    margin-top: 20px;
    list-style-type: none;
  }
  
  .timeline:before {
    position: absolute;
    left: 50%;
    top: 0;
    content: ' ';
    display: block;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    background: rgb(106, 0, 0);
    background: -moz-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(100%,rgba(125,185,232,1)));
    background: -webkit-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: -o-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: -ms-linear-gradient(top, rgba(213,213,213,0) 0%, rgb(213,213,213) 8%, rgb(213,213,213) 92%, rgba(213,213,213,0) 100%);
    background: linear-gradient(to bottom, rgba(45, 27, 81, 0) 0%, #19305B 8%, #19305B  92%, rgba(213,213,213,0) 100%);
    z-index: 5;
  }
  
  .timeline li {
    padding: 2em 0;
  }
  
  .timeline .hexa{
    width: 16px;
    height: 10px;
    position: absolute;
    background: #630217;
    z-index: 5;
    left: 0;
    right: 0;
    margin-left:auto;
    margin-right:auto;
    top: -30px;
    margin-top: 0;
  }
  
  .timeline .hexa:before {
    border-bottom: 4px solid #630217;
    border-left-width: 8px;
    border-right-width: 8px;
    top: -4px;
  }
  
  .timeline .hexa:after {
    border-left-width: 8px;
    border-right-width: 8px;
    border-top: 4px solid #630217;
    bottom: -4px;
  }
  
  .direction-l,
  .direction-r {
    float: none;
    width: 100%;
    text-align: center;
  }
  
  .flag-wrapper {
    text-align: center;
    position: relative;
  }
  
  .flag {
    position: relative;
    display: inline;
    
    font-weight: 600;
    z-index: 15;
    padding: 6px 10px;
    text-align: left;
    border-radius: 5px;
  }
  
  .direction-l .flag:after,
  .direction-r .flag:after {
    content: "";
    position: absolute;
    left: 50%;
    top: -15px;
    height: 0;
    width: 0;
    margin-left: -8px;
    border: solid transparent;
   
    border-width: 8px;
    pointer-events: none;
  }
  

  
  .time-wrapper {
    display: block;
    position: relative;
    margin: 4px 0 0 0;
    z-index: 14;
    line-height: 1em;
    color: #fff;
  }
  
  .direction-l .time-wrapper {
    float: none;
  }
  
  .direction-r .time-wrapper {
    float: none;
  }
  
  .time {
    background: #630217;
    display: inline-block;
    padding: 8px;
    border-radius: 5px;
  }
  
  .desc {
    position: relative;
    margin: 1em 0 0 0;
    padding: 1em;
    z-index: 15;
    font-family: 'Roboto', sans-serif;

    color: #19305B;
    font-size: 19.5px;
  }
  
  .direction-l .desc,
  .direction-r .desc {
    position: relative;
    margin: 1em 1em 0 1em;
    padding: 1em;
    z-index: 15;
  }
  
  @media(min-width: 768px){
    .timeline {
      width: 660px;
      margin: 0 auto;
      margin-top: 20px;
    }
  
    .timeline li:after {
      content: "";
      display: block;
      height: 0;
      clear: both;
      visibility: hidden;
    }
    
    .timeline .hexa {
      left: -28px;
      right: auto;
      top: 8px;
    }
  
    .timeline .direction-l .hexa {
      left: auto;
      right: -28px;
    }
  
    .timeline .direction-l,
    .timeline .direction-r {
      opacity: 0;
      transform: translateY(80px);
      transition: all 2s ease-out;
    }
    
  
    .timeline .direction-l.show,
    .timeline .direction-r.show {
      opacity: 2;
      transform: translateY(0);
    }
  
    .flag-wrapper {
      display: inline-block;
    }
    
    .flag {
      font-size: 18px;
    }
  
    .direction-l .flag:after {
      left: auto;
      right: -16px;
      top: 50%;
      margin-top: -8px;
      border: solid transparent;
      border-left-color: rgb(254,254,254);
      border-width: 8px;
    }
  
    .direction-r .flag:after {
      top: 50%;
      margin-top: -8px;
      border: solid transparent;
      border-right-color: rgb(254,254,254);
      border-width: 8px;
      left: -8px;
    }
  
    .time-wrapper {
      display: inline;
      vertical-align: middle;
      margin: 0;
    }
  
    .direction-l .time-wrapper {
      float: left;
    }
  
    .direction-r .time-wrapper {
      float: right;
    }
  
    .time {
      padding: 5px 10px;
    }
  
    .direction-r .desc {
      margin: 1em 0 0 0.75em;
    }
  }
  
  @media(min-width: 992px){
    .timeline {
      width: 800px;
      margin: 0 auto;
      margin-top: 20px;
    }
  
    .direction-l {
      position: relative;
      width: 380px;
      float: left;
      text-align: right;
    }
  
    .direction-r {
      position: relative;
      width: 380px;
      float: right;
      text-align: left;
    }
  }




.sub-title {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 40px;
  justify-content: center;
}


.exp-box {
  width: 210px;
  height: 150px;
  background-color: #630217;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.exp-box img {
  width: 95%;
  height: 90%;
  object-fit: contain;
}




.btn-cv {
    display: block;
    width: fit-content;
    margin: 40px auto 40px;
    padding: 10px 20px;
    background: var(--bleu);
    color: var(--blanc);
    border-radius: 30px;
    text-decoration: none;
}



.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 140px);
    gap: 20px;
    justify-content: center;
}

.skill-box {
    width: 120px;
    height: 120px;
    border-radius: 6px;
}
.skill-box {
  width: 120px;
  height: 120px;
  
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-box img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}




@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}


.skill-box {
  animation: float 4s ease-in-out infinite;
}


.skill-box:nth-child(2n) {
  animation-delay: 1s;
}

.skill-box:nth-child(3n) {
  animation-delay: 2s;
}

.skill-box:nth-child(4n) {
  animation-delay: 0.5s;
}


.skills-floating {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.section-title,
.projets-intro,
.projets-grid,
.continue {
  position: relative;
  z-index: 2;
}

.section-projets {
  position: relative;
  overflow: hidden; /* important */
}
.skills-floating {
  position: absolute;
  inset: 0;
  pointer-events: none; 
}

.float-icon {
  position: absolute;
  width: 55px;
  
  animation: float 6s ease-in-out infinite;
}

.i1 { top: 35%; left: 8%; animation-delay: 0s; }
.i2 { top: 50%; right: 10%; animation-delay: 1s; }
.i3 { top: 60%; left: 5%; animation-delay: 2s; }
.i4 { top: 38%; right: 5%; animation-delay: 2.5s; }
.i5 { bottom: 10%; left: 15%; animation-delay: 1.5s; }
.i6 { bottom: 30%; right: 3%; animation-delay: 3s; }
.i7 { top: 47%; left: 3%; animation-delay: 2s; }
.i8 { bottom: 22%; left: 3%; animation-delay: 0.8s; }
.i9 { bottom: 9%; left: 90%; animation-delay: 0.8s; }
.i10 { bottom: 20%; left: 80%; animation-delay: 0.8s; }

.projets-intro {
    max-width: 800px;        
    margin: 40px auto;      
    text-align: center;     
    line-height: 1.6;        
    color: #19305B;
    padding: 20px;          
    
    border-radius: 10px;    
   
}
.projets-grid {
  display: grid;
  grid-template-columns: repeat(4, 180px);
  gap: 25px;
  justify-content: center;
  margin-bottom: 40px;
}

.projet-box {
  position: relative;
  width: 180px;
  height: 180px;
  background: var(--bleu);
  border-radius: 6px;
  overflow: hidden;
}

.projet-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.projet-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 48, 91, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.4s ease;
  font-family: 'Anton', sans-serif;
  letter-spacing: 1px;
  font-size: 20px;
  cursor: pointer;
}

.projet-box:hover img {
  transform: scale(1.1);
}

.projet-box:hover .projet-hover {
  opacity: 1;
}

.continue {
    text-align: center;
    font-style: italic;
    margin-bottom: 90px;
}


.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.popup-contenu {
  background-color: #ffffff;
  color: white;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid rgb(0, 0, 0);
  width: 80%;
  max-width: 500px;
  position: relative;
  border-radius: 4px;
}

.fermer {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.site-footer {
  flex-shrink: 0;
  background-color: var(--bordeaux2);
  color: var(--creme);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Roboto', sans-serif;
}

.site-footer h2 {
  margin: 0;
  font-size: 16px;
  color: #FFF9E5;
}

.footer-icons a {
  color: var(--creme);
  text-decoration: none;
  margin-left: 50px;
  font-size: 20px;
}

.btn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 22px;
    border-radius: 25px;
    background-color: var(--bordeaux2);
    color: var(--blanc);
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-more:hover {
    background-color: var(--bleu);
}




.button-wrapper {
    display: flex;
    justify-content: center; 
    align-items: center;    
    margin: 40px 0;        
}

a.btn-back {
    display: inline-block;
    padding: 14px 28px;      
    font-size: 20px;        
    border-radius: 25px;
    background-color: var(--bordeaux2);
    color: var(--blanc);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

a.btn-back:hover {
    background-color: var(--bleu);
}

ul, li {
    list-style: none; 
    padding: 0;
    margin: 0;
}








.projets-grid {
  display: grid;
  grid-template-columns: repeat(4, 220px);
  gap: 40px;
  justify-content: center;
}

.projet-box {
  width: 220px;
  height: 220px;
  background: var(--bleu);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.projet-title {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: var(--bleu);
  text-align: center;
  margin: 12px 0 6px;
}

.projet-desc {
  font-size: 14px;
  color: #19305B;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}
















@media screen and (max-width: 768px) {
    
  /* --- RÉGLAGE DE SÉCURITÉ POUR LE SCROLL --- */
  html, body {
      overflow-x: hidden !important;
      position: relative;
      width: 100%;
  }

  /* --- BARRE DE NAVIGATION FIXE (VERROUILLÉE) --- */
  .main-header {
      position: fixed !important;
      top: auto !important; /* Annule le positionnement haut */
      bottom: 0 !important; /* Fixe au sol */
      left: 0 !important;
      width: 100% !important;
      height: 70px !important;
      background: #ffffff !important;
      z-index: 999999 !important; /* Passe au dessus de tout */
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  nav { width: 100%; }

  nav ul {
      display: flex !important;
      flex-direction: row !important; /* Horizontale */
      justify-content: space-around !important;
      margin: 0 !important;
      padding: 0 !important;
      list-style: none !important;
  }

  nav a {
      font-size: 13px !important;
      font-weight: 500;
      text-transform: uppercase;
      color: var(--bleu) !important;
      padding: 15px 10px !important;
      border: none !important;
  }

  nav a.active {
      color: var(--bordeaux2) !important;
      border-bottom: 3px solid var(--bordeaux2) !important;
      border-radius: 0 !important;
  }

  /* --- STYLE "AÉRÉ" TYPE APPLICATION --- */
  
  section {
      padding: 100px 25px !important; /* Beaucoup d'espace entre les sections */
  }

  /* Accueil */
  .section-accueil {
      padding-top: 40px !important;
      display: flex;
      justify-content: center;
  }

  .titre-hero {
      width: 100% !important;
      max-width: 320px !important;
      height: auto;
  }

  /* À Propos (Mise en page mobile) */
  .apropos-container {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 40px !important;
  }

  .photo-wrapper img {
      width: 220px !important;
      border-radius: 25px !important;
      margin: 0 !important;
  }

  .text-wrapper {
      text-align: center !important;
      width: 100% !important;
  }

  .text-wrapper p {
      font-size: 18px !important;
      line-height: 1.8 !important; /* Texte très aéré pour la lecture */
  }

  /* Grille de Projets (Cartes larges et espacées) */
  .projets-grid {
      display: flex !important;
      flex-direction: column !important;
      gap: 60px !important; /* Grosse respiration entre les projets */
  }

  .projet-item {
      width: 100% !important;
  }

  .projet-box {
      width: 100% !important;
      height: 250px !important;
      border-radius: 20px !important;
  }

  .projet-title {
      font-size: 24px !important;
      margin-top: 15px !important;
  }

  /* Masquer les éléments qui polluent (Icons flottantes) */
  .skills-floating {
      display: none !important;
  }

  /* FOOTER (Important : marge pour la nav) */
  .site-footer {
      padding-bottom: 120px !important; /* Empêche la barre de cacher le texte */
      text-align: center;
  }

  .footer-icons {
      margin-top: 30px;
      gap: 40px !important;
  }
  
  .footer-icons i {
      font-size: 35px !important;
  }
}