/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    color: #1f1f1f;
    line-height: 1.6;
    scroll-behavior: smooth;
  }
  main{
    margin-top: 100px;
  }
  /* Header */
  header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: top 0.4s ease-in-out;
  }
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-weight: bold;
    font-size: 1.4rem;
  }
  .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  .nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
  }
  
  /* Hero */
  .hero {
    margin-top: 100px;
    text-align: center;
    padding: 60px 20px;
  }
  .photo-profil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
  }
  
  /* Compétences */
  .skills {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
  }
  .skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  .skill-grid div {
    background-color: #f0f4f8;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
  }
  
  /* Biographie & BTS */
  .bio-bts {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
  }
  .bio, .bts {
    flex: 1;
    min-width: 280px;
  }
  
  /* Timeline */
  .timeline-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
  }
  .timeline {
    list-style: none;
    border-left: 3px solid #3498db;
    padding-left: 20px;
  }
  .timeline li {
    margin-bottom: 20px;
  }
  .timeline span {
    font-weight: bold;
    color: #3498db;
  }
  
  /* Expériences & Intérêts */
  .experience-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
  }
  .exp, .interets {
    flex: 1;
    min-width: 280px;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 30px 0;
    background-color: #f0f4f8;
    font-size: 0.9rem;
    color: #888;
  }
  
  /* Fade-in effect */
  .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  

  /* Formation cards */
.formation-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
  }
  .formation-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
  }
  .formation-card {
    background-color: #f7f9fc;
    padding: 20px;
    width: 240px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
  }
  .formation-card:hover {
    transform: translateY(-5px);
  }
  .formation-card img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
  }
  .formation-card .date {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .Lieu {
    color: #333333;
    font-weight: 600;
    margin-top: 6px;
  }
  
  .formation-card .desc {
    font-size: 0.95rem;
    color: #333;
  }
  
  /* Toggle sections */
  .toggle-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    margin: 10px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .toggle-btn:hover {
    background-color: #2980b9;
  }
  .toggle-content {
    display: none;
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #f0f4f8;
    border-radius: 6px;
    transition: all 0.3s ease;
  }
  /* Nouvelle section expériences / intérêts */
.experience-interests-alt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
  }
  .card-section {
    flex: 1;
    min-width: 320px;
  }
  .card-section h2 {
    text-align: center;
    margin-bottom: 30px;
  }
  
  /* Cartes toggle */
  .card-toggle {
    background-color: #f7f9fc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
  }
  .card-header span {
    font-weight: 600;
    font-size: 1.05rem;
  }
  .card-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #3498db;
    transition: transform 0.3s ease;
  }
  .card-btn.rotate {
    transform: rotate(45deg);
  }
  .card-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  .card-content p {
    padding: 10px 0;
    color: #333;
  }
  .card-toggle.active .card-content {
    max-height: 200px;
    padding-bottom: 15px;
  }

  .competences {
    padding: 60px 20px;
    text-align: center;
  }
  
  .competences-desc {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1rem;
    color: #444;
  }
  
  .competence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    justify-items: center;
  }
  
  .competence-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: default;
  }
  
  .competence-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  .competence-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
  }
  
  .competence-card p {
    margin: 0;
    font-weight: bold;
    color: #222;
  }
  .content {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
  }
  .navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 80px auto 60px auto;
    flex-wrap: wrap;
  }
  
  .navigation-buttons .fancy {
    float: none;
  }
  .fancy {
    background-color: transparent;
    border: 2px solid #3498db;
    border-radius: 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    float: right;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 1.25em 2em;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-size: 13px;
   }
   
   .fancy::before {
    content: " ";
    width: 1.5625rem;
    height: 2px;
    background: #3498db;
    top: 50%;
    left: 1.5em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
    transition: background 0.3s linear, width 0.3s linear;
   }
   
   .fancy .text {
    font-size: 1.125em;
    line-height: 1.33333em;
    padding-left: 2em;
    display: block;
    text-align: left;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    text-decoration: none;
    color: #3498db;
   }
   
   .fancy .top-key {
    height: 2px;
    width: 1.5625rem;
    top: -2px;
    left: 0.625rem;
    position: absolute;
    background: #e8e8e8;
    transition: width 0.5s ease-out, left 0.3s ease-out;
   }
   
   .fancy .bottom-key-1 {
    height: 2px;
    width: 1.5625rem;
    right: 1.875rem;
    bottom: -2px;
    position: absolute;
    background: #e8e8e8;
    transition: width 0.5s ease-out, right 0.3s ease-out;
   }
   
   .fancy .bottom-key-2 {
    height: 2px;
    width: 0.625rem;
    right: 0.625rem;
    bottom: -2px;
    position: absolute;
    background: #e8e8e8;
    transition: width 0.5s ease-out, right 0.3s ease-out;
   }
   
   .fancy:hover {
    color: white;
    background: #3498db;
   }
   
   .fancy:hover::before {
    width: 0.9375rem;
    background: white;
   }
   
   .fancy:hover .text {
    color: white;
    padding-left: 1.5em;
   }
   
   .fancy:hover .top-key {
    left: -2px;
    width: 0px;
   }
   
   .fancy:hover .bottom-key-1,
    .fancy:hover .bottom-key-2 {
    right: 0;
    width: 0;
   }




   /* HEADER ANIMÉ */
   #header {
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease;
  }
  
  #header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 30px;
    width: 100%;
  }
  
  
  
  #header .logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #3498db;
    transition: transform 0.3s ease;
  }
  
  #header .logo:hover {
    transform: scale(1.05);
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    position: relative;
    transition: color 0.3s ease;
    padding: 6px 0;
  }
  
  .nav-links li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #3498db;
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
  }
  
  .nav-links li a:hover {
    color: #3498db;
  }
  
  .nav-links li a:hover::after {
    width: 100%;
  }
.projets-container {
  padding: 40px 10%;
  background: #ffffff;
  text-align: center;
}

.projets-titre {
  font-size: 32px;
  font-weight: bold;
  color: #3498db;
  border-bottom: 2px solid #3498db;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.projets-description {
  font-size: 16px;
  color: #333;
  margin-bottom: 30px;
}

.projets-filtres {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.projets-filtre {
  background-color: #fff;
  border: 1px solid #3498db;
  color: #3498db;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.projets-filtre.active,
.projets-filtre:hover {
  background-color: #3498db;
  color: white;
}

.projets-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 2rem;
}

.projets-card {
  background-color: rgb(247, 247, 247);
  width: 280px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}
.projets-hide {
  display: none !important;
}

.projets-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.projets-img {
  width: 90%;
  height: 130px;
  margin: 10px auto 0;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.projets-contenu {
  padding: 15px;
}

.projets-categorie {
  font-size: 12px;
  color: #666;
  display: block;
  margin-bottom: 5px;
}

.projets-titre-card {
  font-size: 18px;
  margin-bottom: 8px;
  color: #111;
}

.projets-desc {
  font-size: 14px;
  color: #444;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
#footer {
  position: relative;
  width: 100%;
  background-color: #f2f7fb;
  color: #333;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

@keyframes fadeInScaleKikou {
  0% {
    opacity: 0;
    transform: scale(0.85) rotate(-3deg);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
    filter: blur(0);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.projets-card {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: transform, opacity;
}
.project-details {
  max-width: 1000px;
  margin: 100px auto 60px auto;
  padding: 0 20px;
}

.project-title {
  text-align: center;
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 40px;
  border-bottom: 2px solid #3498db;
  display: inline-block;
  padding-bottom: 6px;
}

.project-block {
  margin-bottom: 40px;
}

.project-block h2 {
  color: #222;
  margin-bottom: 10px;
}

.project-block p,
.project-block ul {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.project-block ul {
  padding-left: 20px;
  list-style: disc;
}

.btn-doc {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.btn-doc:hover {
  background-color: #2980b9;
}



.projet-gsb-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.projet-gsb-left {
  flex: 2;
  min-width: 300px;
}

.projet-gsb-right {
  flex: 1;
  min-width: 280px;
  background-color: #fafbfd;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 10px;
  height: fit-content;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.projet-gsb-right h2 {
  text-align: center;
  margin-bottom: 20px;
}

.logiciels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
  justify-items: center;
}

.logiciel-card {
  background: white;
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logiciel-card:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.15);
}

.logiciel-card img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.projets-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0078d4;
  border-bottom: 2px solid #0078d4;
  display: inline-block;
}

.projets-doc-button {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 18px;
  background-color: #0078d4;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.projets-doc-button:hover {
  background-color: #005ea8;
}


/* From Uiverse.io by gharsh11032000 */ 
.carde {
  width: 300px;
  height: 200px;
  background-color: #4158D0;
  background-image: linear-gradient(43deg, #3498db 0%, #3e86b6 46%, #085b92 100%);
  border-radius: 8px;
  color: white;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
}

.carde-content {
  padding: 20px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: white;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.carde-content .card-title {
  font-size: 24px;
  font-weight: 700;
  color: inherit;
  text-transform: uppercase;
}

.carde-content .card-para {
  color: inherit;
  opacity: 0.8;
  font-size: 14px;
}

.carde:hover {
  transform: rotateY(10deg) rotateX(10deg) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carde:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 1;
}

.carde:hover:before {
  transform: translateX(-100%);
}

.carde:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 1;
}

.carde:hover:after {
  transform: translateX(100%);
}




/* Conteneur */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;           /* évite l’alignement au centre qui fait "remonter" la carte de droite */
  justify-content: center;
  margin-top: 40px;
  box-sizing: border-box;
}

/* Colonne gauche (formulaire) */
.contact-form {
  flex: 1 1 460px;                   /* base 460px, s’adapte */
  max-width: 560px;
  min-width: 320px;
  background: #f7f9fc;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form .form-group { 
  margin-bottom: 18px; 
  text-align: left; 
}

.contact-form label { 
  display:block; 
  font-weight:600; 
  margin-bottom:6px; 
  color:#333; 
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font: inherit;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,.12);
}

.contact-form .form-actions {
  margin-top: 8px;                   /* évite que le bouton colle aux champs */
}

.contact-form .submit-btn {
  display: inline-flex;              /* empêche toute largeur étrange */
  align-items: center;
  gap: 10px;
}

/* Colonne droite (infos) – aération ++ */
.contact-infos {
  flex: 1 1 360px;                   /* base 360px */
  max-width: 520px;
  min-width: 280px;
  background: #fafbfd;
  padding: 34px;                     /* + de respiration interne */
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-infos h2 {
  margin: 0 0 22px;
  color: #3498db;
  font-size: 1.35rem;
  font-weight: 700;
  border-bottom: 2px solid #e9edf5;  /* séparation douce */
  padding-bottom: 10px;
}

.contact-infos ul {
  margin: 0;
  padding: 0;
  list-style: none;                  /* on supprime les puces "•" */
  display: grid;
  gap: 16px;                         /* espace entre lignes */
}

.contact-infos li {
  display: grid;
  grid-template-columns: 26px 1fr;   /* icône + contenu */
  align-items: center;
  column-gap: 12px;
  padding: 10px 12px;                /* petite carte légère par ligne */
  border-radius: 10px;
  background: #ffffff70;             /* léger voile blanc pour le relief */
}

.contact-infos .icon {
  font-size: 1.1rem;
  line-height: 1;
  color: #3498db;
  display: inline-block;
  text-align: center;
}

.contact-infos a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;            /* les emails longs ne débordent pas */
}

.contact-infos a:hover { text-decoration: underline; }

/* Responsive : on empile proprement */
@media (max-width: 860px) {
  .contact-container { gap: 28px; }
  .contact-form, .contact-infos { max-width: 100%; }
}
