   
   
   
   
   
   
   .card,.about,.contacts,.carousel,.contacts,.competence {
  opacity: 0; /* invisible au départ */
  transform: translateY(80px) scale(0.9) rotateX(15deg);
  transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);;  /* animation douce */

  
}


/* Quand la div devient visible */
.card.show,.about.show,.card.show,.carousel.show,.contacts.show,.competence.show {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
}


   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   *{
    margin: 0;
    padding: 0;
    box-sizing: content-box;
    text-decoration: none;
    list-style-type:none;
  

  font-family: 'Montserrat', sans-serif;


   }
   
   
.navbar {
      font-family: 'Montserrat', sans-serif;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050; /* plus haut que les modals bootstrap */
  width: 100%;
background-color: #f4f5f7;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* ombre élégante */
}
.marge{
    margin: 0 auto;
     max-width: 83%;;
}

.navbar-brand{
  margin-left: -8vh;
}
  .nav-item  .nav-link{
  transition: 10s ease-in;

  font-size: 20px;

}

.nav-link:hover{
border-bottom: 2px solid black;

}
    /* Conteneur principal */
    .banner {
          font-family: 'Montserrat', sans-serif;
      text-align: center;
      z-index: 1;
      height: 90vh;
    }
    .navbar .container{
        margin: 0 auto;
        max-width: 86%;

    }

    .banner a{
        background: linear-gradient(90deg, #0648e4, #2575fc);
        color:  white;
        padding: 15px;
        text-decoration: none;
        border-radius: 10px;

    }
    .banner a:hover{
color: white;
    }

    .banner h1 {
margin-top: 10%;
      font-size: 3.5rem;
      font-weight: bold;
          background: linear-gradient(90deg, #0648e4, #2575fc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-align: center;
    }

    p {
      font-size: 1.2rem;
      color: #333;
    }

/* Style de base pour tous les blobs */
.blob {
  position: fixed;            /* reste fixé par rapport à l’écran */
  width: 30vw;                /* largeur relative à l’écran */
  height: 40vh;               /* hauteur relative à l’écran */
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  z-index: -1;                /* reste derrière le contenu */
  animation: float 12s infinite alternate ease-in-out;
}

/* Couleurs */
.blob.purple { background: #0e63cb; top: 10vh; left: 5vw; }
.blob.pink   { background: #1250a5; top: 40vh; right: 5vw; }
.blob.green  { background: #3c90da; top: 70vh; left: 10vw; }
.blob.orange { background: #3864d1; top: 120vh; right: 5vw; }
.blob.cyan   { background: #2e7bf0; top: 160vh; left: 10vw; }
.blob.red    { background: #1b64da; top: 200vh; right: 5vw; }

/* Responsive tablette */
@media (max-width: 991px) {
  .blob {
    width: 40vw;
    height: 30vh;
    filter: blur(80px);
    opacity: 0.4;
  }
}

/* Responsive mobile */
@media (max-width: 767px) {
  .blob {
    width: 50vw;
    height: 25vh;
    filter: blur(60px);
    opacity: 0.35;
  }

  /* On simplifie et on en garde moins */
  .blob.orange, .blob.red { display: none; }
}

    /* Animation douce */
    @keyframes float {
      from {
        transform: translateY(0px) translateX(0px);
      }
      to {
        transform: translateY(40px) translateX(30px);
      }
    }
    .p1{
   display: block;  /* transforme l'élément en bloc */
  width: 70%;     /* prend toute la largeur disponible */
  margin: 0 auto;  
  white-space: normal;

}

.acceuil .btn{
    margin-top: 1vh;
    height:40px;
    width: 15%;
}
/* --------------------about------------------ */

.about .card{
  height: 70vh;


box-shadow: 10px 5px 20px rgb(200, 200, 200);
}


.about .propos{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 30px; ;
  

}
.about .card-title{
  text-align: center;
}
.about .col-md-4 img{
  height: 50vh;

  
}
.about .text{
  font-size: 17px;
  line-height: 6vh;
  padding: 20px;
}



/* ----------------projets------------00 */

.projects{
gap: 30px;

      /* espace entre les div internes */
 
 
    display: grid;
    grid-template-columns:  repeat(3,1fr);
}
.about h2{
  font-size: 5vh;
  font-weight: bold;

  background: linear-gradient(90deg, #0648e4, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Optionnel : centrage */
  text-align: center;
}
.project h2{
 
  font-size: 5vh;
  font-weight: bold;

  background: linear-gradient(90deg, #0648e4, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Optionnel : centrage */
  text-align: center;

}

.competence h2{
    font-size: 5vh;
  font-weight: bold;

  background: linear-gradient(90deg, #0648e4, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Optionnel : centrage */
  text-align: center;
}
.form h2{
  
    font-size: 5vh;
  font-weight: bold;

  background: linear-gradient(90deg, #0648e4, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Optionnel : centrage */
  text-align: center;
}

.projects .card{
  width: 100%;      
  
 


  transition: 0.3s ease;     /* prend toute la largeur de la div parent */
 
}
.projects .card:hover{
  scale: 1.05;

box-shadow: 10px 5px 20px rgb(200, 200, 200);
}
.card-title{
  font-weight: bold;
  color: black;
}
.card img{
  height: 30vh;
 
}

.card  .btn{
  background: linear-gradient(90deg, #0648e4, #2575fc);
}

.projects .card-text{
height:auto;
    font-size: 15px;
    
}

.list-group .list-group-item{
    margin: 10px;
}
.tech{
  
  display:flex;
  gap: 20px;
}
.tech li{
  background: linear-gradient(90deg, #cccdce, #73a6df);
padding: 5px;
  color: white;
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  width: 100px;
}

/* ------------competences------------ */
.c1 {
  background-color: rgb(244, 243, 243);
  border-radius: 5px;
  overflow: hidden; /* utile pour éviter un débordement */
}

.competence label {
  font-size: 3vh;
  font-weight: bold;
  background: linear-gradient(90deg, #0648e4, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* tes classes existantes, on ne change pas leur apparence */
.competence .c1 .volume1,
.competence .c1 .volume2,
.competence .c1 .volume3,
.competence .c1 .volume4,
.competence .c1 .volume5 ,
.competence .c1 .volume6 {
  font-weight: bold;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background: linear-gradient(90deg, #e1e4e5, #73a6df);
  width: 0;                 /* démarre vide */
  transition: width 2s ease; /* animation fluide */
}

/* Largeurs cibles stockées en attribut data (dans le HTML) */



/* -----contacts- */


.contacts{

  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 30px;;
}
.forumaire{
 
  border: 1px solid rgb(236, 236, 29);
  border-radius: 10px;
  padding: 60px;
}


   .col-12 .btn{
  background: linear-gradient(90deg, #0648e4, #2575fc);
  color: white;
}
.col-12 .btn:hover{
  scale: 1.1;
  color: white;
}

.info{
  color: black;
}
.info i{
   font-size: 3vh;
  font-weight: bold;

  background: linear-gradient(90deg, #0648e4, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* -----footer----- */


.footer{
    color:rgb(192, 203, 231);
  padding: 20px;
  height: 20vh;
  text-align: center;
  
  background: linear-gradient(90deg, #072c81, #2575fc , #4e7ed1);

}



.footer ul{
  padding-top: 2vh;
justify-content: center;
  display: flex;
  gap: 35px;
 border-bottom: 2px solid rgb(192, 203, 231);

}
ul li i {
  color:rgb(192, 203, 231);
  gap: 20px;
  font-size: 30px;
}



.modal-footer .btn{
  background: linear-gradient(90deg, #0648e4, #2575fc);
  color: white;
}



/* ===================== Responsive ===================== */

/* --- Tablettes (≤ 991px) --- */
@media (max-width: 991px) {
  .navbar-brand img {
    width: 150px;
    height: auto;
  }

  .banner h1 {
    font-size: 2.5rem;
    margin-top: 20%;
  }

  .p1 {
    width: 90%;
    font-size: 1rem;
  }

  .acceuil .btn {
    width: 40%;
  }

  .about .propos {
    grid-template-columns: 1fr;
  }

  .projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts {
    grid-template-columns: 1fr;
  }

  .footer ul {
    gap: 20px;
  }
}

/* --- Mobiles (≤ 767px) --- */
@media (max-width: 767px) {
  .navbar-brand img {
    width: 150px;
    margin-left: -8vh;

  }

  .banner {
    height: auto;
    padding: 100px 20px 50px;
  }

  .banner h1 {
    font-size: 1.8rem;
    margin-top: 15%;
  }

  .banner h4 {
    font-size: 1rem;
  }

  .p1 {
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.5rem;
  }

  .acceuil .btn {
    width: 70%;
    font-size: 0.9rem;
  }

  .about .card {
    height: auto;
  }

  .projects {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .projects .card img {
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }

  .competence label {
    font-size: 1.1rem;
  }

  .contacts {
    grid-template-columns: 1fr;
  }

  .contacts .info {
    font-size: 0.9rem;
  }

  .footer {
    height: auto;
    padding: 20px 10px;
    font-size: 0.8rem;
  }

  .footer ul li i {
    font-size: 22px;
  }

  /* Blobs : réduire la taille pour mobile */
  .blob {
    width: 250px;
    height: 300px;
    filter: blur(120px);
  }
}

/* --- Petits mobiles (≤ 480px) --- */
@media (max-width: 480px) {
  .banner h1 {
    font-size: 1.5rem;
  }

  .banner h4 {
    font-size: 0.9rem;
  }

  .p1 {
    font-size: 0.85rem;
  }

  .acceuil .btn {
    width: 80%;
    font-size: 0.85rem;
    height: auto;
  }

  .projects .card-body {
    padding: 15px;
  }

  .tech {
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
  }

  .tech li {
    font-size: 10px;
    padding: 4px 6px;
  }
  
}


/* ====== Fix "À propos" : background-image qui garde une vraie hauteur ====== */

/* Desktop par défaut : on garde ton 70vh */
.about .card[style*="background-image"] {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  /* border-radius: 16px; */
  overflow: hidden;
}

/* Tablettes */
@media (max-width: 991px) {
  /* On annule la hauteur forcée, et on impose une hauteur lisible */
  .about .card { height: auto !important; }
  .about .card[style*="background-image"] {
    aspect-ratio: 16 / 9;     /* prend la largeur dispo et calcule la hauteur */
    min-height: 360px;        /* garde de la hauteur si l’écran est étroit */
  }
}

/* Mobiles */
@media (max-width: 767px) {
  .about .propos {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne */
    gap: 20px;
  }

  .about .card { height: auto !important; }

  .about .card[style*="background-image"] {
    aspect-ratio: 4 / 3;      /* un peu plus haut pour mieux voir l’image */
    min-height: 340px;        /* évite l’effet “bandelette” */
  }

  /* Au cas où le navigateur ne gère pas aspect-ratio, on garantit la hauteur */
  @supports not (aspect-ratio: 1 / 1) {
    .about .card[style*="background-image"]::before {
      content: "";
      display: block;
      padding-top: 75%; /* ~4/3 */
    }
  }

  /* On centre/soigne le texte */
  .about .propos .card-body {
    text-align: justify;
    padding: 16px;
  }

}

/* ====== Petits ajustements d’en-tête ====== */

/* Évite que le contenu passe sous la navbar fixe */
body { padding-top: 90px; }
@media (max-width: 991px) { body { padding-top: 76px; } }

/* Les deux traits (<hr>) sous la navbar dans la bannière — on les masque sur mobile */
@media (max-width: 767px) {
  .banner hr { display: none; }
  .banner { height: auto; padding: 80px 16px 40px; }
  .navbar-brand { margin-left: 0; } /* corrige le -8vh sur petits écrans */
}






/* ===== Espacement entre le banner et la section "À propos" ===== */
.about {
  margin-top: 80px; /* espace standard sur grand écran */
}

@media (max-width: 991px) {
  .about {
    margin-top: 10px; /* espace un peu plus large sur tablette */
  }
}

@media (max-width: 767px) {
  .about {
    margin-top: 10px; /* espace bien net sur mobile */
  }
}


/* ===== Correction alignement image + texte dans "À propos" ===== */
@media (max-width: 767px) {
  /* La carte avec l'image prend toute la largeur */
  .about .card[style*="background-image"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 20px auto;
    border-radius: 15px;
  }

  /* Le texte aussi prend toute la largeur */
  .about .propos .card-body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 16px;
    text-align: justify;
  }

  /* On centre le bloc complet */
  .about .propos {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 15px;
  }
  
}




@media (max-width: 1024px) {
  .about-card {
    min-height: 400px;
    text-align: center;
    padding: 40px 20px;
  }

  .about .card{
  height: 70vh;


box-shadow: 10px 5px 20px rgb(200, 200, 200);
}

}


/* Liste des technologies responsive */
@media (max-width: 2000px) {
  .tech {
    display: block;          /* passe en colonne */
    padding-left: 0;
    text-align: center;      /* centre horizontalement */
  }
  .tech li {
    display: inline-block;   /* éléments centrés et empilables */
    width: auto;             /* largeur selon le contenu */
    margin: 5px 5px;         /* petit espace entre les li */
    font-size: 0.85rem;      /* réduit la taille du texte */
    text-align: center;
  }

  .about .card{
  height: 70vh;
font-size: 10px;

box-shadow: 10px 5px 20px rgb(200, 200, 200);
}

}

/* Pour les petits écrans ≤ 768px */
@media (max-width: 768px) {
  .tech li {
    font-size: 0.75rem;
    padding: 4px 6px;
  }
}

/* Optionnel : réduire la taille du texte About sur écrans ≤ 1024px */
@media (max-width: 1024px) {
  .about .text {
    font-size: 0.9rem;
  }
}
/* Texte About responsive */
.about .text {
  font-size: 1rem; /* taille par défaut pour PC */
  line-height: 1.5;
}

/* Tablettes et écrans ≤ 1024px */
@media (max-width: 1024px) {
  .about .text {
    font-size: 1rem; /* réduit légèrement */
  }
}

/* Petits écrans ≤ 768px */
@media (max-width: 768px) {
  .about .text {
    font-size: 0.8rem; /* encore plus petit pour mobiles */
    line-height: 1.2;
  }
}

/* Très petits écrans ≤ 480px */
@media (max-width: 480px) {
  .about .text {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}
