@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap');

*{
margin: 0;
padding: 0;
}

/* --- SIDEBAR --- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 200px;
    background-color:#1E1514; 
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 10;
}
  
/* --- TITRE DU NOM --- */
.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #6B2B2C;
    padding-bottom: 10px;
    width: 100%;
}
  
/* --- LIENS --- */
.sidebar-item {
    color: #ddd;
    text-decoration: none;
    width: 100%;
    display: flex;              /* pour aligner icône + texte */
    align-items: center;        /* centre verticalement l'icône avec le texte */
    gap: 10px;                  /* espace entre l'icône et le texte */
    padding: 12px 15px;
    border-radius: 6px;
    text-align: left;
    transition: all 0.3s ease;
    font-weight: 500;
}
  
/* Effet au survol */
.sidebar-item:hover, 
.sidebar-item.active{
    background-color: #A94E4E;
    color: #fff;
    transform: translateX(4px);
}
  

.sidebar-icon {
    width: 24px;                /* taille uniforme des icônes */
    height: 24px;
    object-fit: contain;        /* conserve les proportions */
}
  
/* --- SCROLLBAR DISCRÈTE --- */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
  
.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
  

body {
  font-family: "Arimo", sans-serif;
  margin-left: 240px;
  margin-right: 0px;
  overflow-x: hidden; /* évite la barre de défilement horizontale */
}

/* --- SLIDER / ACCUEIL --- */
.slider {
    height: 100vh; /* occupe toute la hauteur de la fenêtre */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #1E1514, #371717);
    color: #fff;
    padding: 0 20px 30px 20px; /* corrige ici la syntaxe */
    overflow: hidden; /* Supprime les débordements éventuels */
    box-sizing: border-box; /* pour que padding ne dépasse pas */
}
  
  /* Titre principal */
.slider h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}
  
  /* Sous-titre */
.slider h4 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ddd;
}
  
  /* Optionnel : effet d’apparition douce */
.slider h1, 
.slider h4 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 2s ease forwards;
}
  
.slider h4 {
    animation-delay: 0.5    s;
}
  
/* Animation */
@keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
}
  

/* --- CONTENU PRINCIPAL --- */
.main-content {
    background: linear-gradient(135deg, #1E1514, #371717);
    min-height: 100vh;
    color: #f5f5f5;
    padding: 60px 40px;
}

/* --- TIMELINE (frise chronologique) --- */
.timeline {
    position: relative;
    margin: 60px auto;
    padding: 20px 0;
    width: 90%;
    max-width: 900px;
}
  
/* ligne centrale */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #823C3B;
    border-radius: 2px;
}
  
/* élément */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 40px;
    box-sizing: border-box;
}
  
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
  
.timeline-item:nth-child(even) {
    left: 50%;
}
  
/* point sur la ligne */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 40px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #fff; 
    border: 3px solid #7C3636; /* Contour du cercle */
    border-radius: 50%;
    z-index: 1;
}
  
.timeline-item:nth-child(even)::before {
    left: -10px;
    right: auto;
}
  
/* contenu */
.timeline-content {
    background: #7C3636;
    backdrop-filter: blur(6px);
    padding: 20px;
    border-radius: 8px;
    color: #EEEEF0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;              /* centre verticalement le contenu */
    flex-direction: column;
    justify-content: center;
    text-align: center;         /* texte centré horizontalement */
}
  
.timeline-content:hover {
    transform: translateY(-5px);    
    box-shadow: 0 6px 15px #270d0d;
}
  
/* Titre */
.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #ffffff;
}
  
.timeline-content .date {
    display: block;
    font-size: 0.95rem;
    color: #ffafac;
    margin-bottom: 10px;
}
  
.timeline-content p {
    font-size: 1rem;
    color: #6B2B2C;
    line-height: 1.6;
}
  
  
/* --- SECTIONS --- */
.content-section {
    margin-bottom: 80px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 10px #270d0d;
    backdrop-filter: blur(5px); 
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
/* Hover */
.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px #270d0d;
}
  
/* --- TITRES DES SECTIONS --- */
.content-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 2rem;
    color: #fff;
    border-bottom: 2px solid #6B2B2C;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
/* --- PARAGRAPHES --- */
.content-section p {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}
  
/* --- FICHES DE PROCÉDURES (CARRÉS COMPACTS) --- */
.fiches-sections {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.fiches-categorie h3 {
  font-size: 1.6rem;
  color: #FC9996;
  text-transform: uppercase;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 1px;
}

.fiches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  justify-items: center;
}

.fiche-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
  padding: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-align: center;
}

.fiche-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.fiche-card h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #fff;
}

.fiche-card p {
  font-size: 0.8rem;
  color: #ccc;
  line-height: 1.3;
}

/* Responsive : 2-3 par ligne sur petit écran */
@media (max-width: 800px) {
  .fiches-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}



/* === CERTIFICATIONS === */

.certif-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.certif-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px #270d0d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certif-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px #270d0d;
}

.certif-card h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.3rem;
  border-bottom: 2px solid #6B2B2C;
  padding-bottom: 6px;
}

.certif-card p {
  color: #ddd;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* === BOUTON === */

.certif-toggle summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  padding: 8px 15px;
  background-color: #7C3636;
  color: #fff;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size: 0.9rem;
}

.certif-toggle summary:hover {
  background-color: #6B2B2C;
  transform: scale(1.05);
}

/* Supprime la flèche par défaut */
.certif-toggle summary::-webkit-details-marker {
  display: none;
}

/* Diplôme */
.certif-diplome {
  margin-top: 20px;
  animation: fadeIn 0.3s ease;
}

.certif-diplome img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .certif-container {
    grid-template-columns: 1fr;
  }
}


/* --- VEILLE TECHNOLOGIQUE --- */
.veille-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.veille-part {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 30px;
  width: 420px;
  box-shadow: 0 4px 12px #270d0d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.veille-part:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px #270d0d;
}

.veille-part h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  border-bottom: 2px solid #6B2B2C;
  padding-bottom: 8px;
}

.veille-part p {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.6;
  text-align: justify;
}

.veille-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 15px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.veille-img:hover {
  opacity: 1;
}



/* From Uiverse.io by ubaidi10 */ 
.media {
  width: fit-content;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 15px;
  gap: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.055);
}

/* for all social containers*/
.socialContainer {
  width: 42px;
  height: 42px;
  background-color: rgb(44, 44, 44);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition-duration: 0.3s;
}
/* Github*/
.github:hover {
  background-color: #181717;
  transition-duration: 0.3s;
  transform: scale(1.5);
  border-radius: 15px;
}
/* Linkedin*/
.linkedin:hover {
  background-color: #0A66C2;
  transition-duration: 0.3s;
  transform: scale(1.5);
  border-radius: 15px;
}
/* Gmail*/
.gmail:hover {
  background-color: #EA4335;
  transition-duration: 0.3s;
  transform: scale(1.5);
  border-radius: 15px;
}
/* CV*/
.cv:hover {
  background-color: #6C63FF;
  transition-duration: 0.3s;
  transform: scale(1.5);
  border-radius: 15px;
}

.socialContainer:active {
  transform: scale(0.9);
  transition-duration: 0.3s;
}

.socialSvg {
  width: 17px;
}

.socialSvg path {
  fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


.back {
  position: fixed;
  bottom: 20px;
  right: 5%;
  transform: translateX(50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #7C3636;
  border: none;
  cursor: pointer;
  box-shadow: 0px 0px 0px 4px #371717;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flèche */
.svgIcon {
  width: 12px;
  fill: #fff;
  position: absolute; /* indépendant du texte */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Texte */
.back-text {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute; /* centre du bouton */
  text-align: center;
}

/* Hover : bouton s’élargit */
.back:hover {
  width: 140px;
  border-radius: 50px;
  background-color: #6B2B2C;
  justify-content: center;

}

/* Hover : flèche disparaît vers le haut */
.back:hover .svgIcon {
  transform: translateY(-150%);
  opacity: 0;
}

/* Hover : texte apparaît depuis le centre */
.back:hover .back-text {
  transform: scaleX(1);
  opacity: 1;
}




/* Conteneur du défilement */
.scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  box-shadow: 0 4px 15px #270d0d;
}

/* Dégradé sur les côtés */
.scroll-container::before,
.scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.scroll-container::before {
  left: 0;
  background: linear-gradient(to right, #1E1514, transparent);
}

.scroll-container::after {
  right: 0;
  background: linear-gradient(to left, #1E1514, transparent);
}

/* Ligne défilante */
.scroll-track {
  display: flex;
  gap: 80px;
  animation: scroll 20s linear infinite;
}

/* Animation continue infinie */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.scroll-track {
  width: max-content;  /* important pour éviter le saut */
  will-change: transform;
}

/* Pause au hover */
.scroll-container:hover .scroll-track {
  animation-play-state: paused;
}

/* Item */
.scroll-item {
  position: relative;
  cursor: pointer;
}

.scroll-item img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Hover */
.scroll-item:hover img {
  transform: scale(1.2);
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ⚡ Suppression du texte / tooltip */
.scroll-item::after {
  display: none;
}


/* === PROJETS === */
.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.projet-card {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.projet-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  border-color: #A94E4E;
}

.projet-thumb {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.projet-info {
  padding: 14px 16px 18px;
  text-align: left;
}

.projet-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.projet-info p {
  font-size: 0.82rem;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 10px;
  max-width: none;
}

.projet-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.ptag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(169,78,78,0.25);
  color: #FC9996;
  border: 1px solid rgba(169,78,78,0.4);
}

/* Overlay / Modale */
.projet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.projet-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.projet-modal {
  background: #1E1514;
  border: 1px solid #6B2B2C;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.projet-overlay.open .projet-modal {
  transform: scale(1);
}

.projet-modal-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  border-radius: 16px 16px 0 0;
}

.projet-modal-body { padding: 24px 28px 28px; text-align: left; }

.projet-modal-body h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.projet-modal-date {
  display: block;
  font-size: 0.85rem;
  color: #FC9996;
  margin-bottom: 16px;
}

.projet-modal-body p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: none;
}

.projet-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }

.projet-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.projet-close-btn {
  padding: 9px 20px;
  background: #7C3636;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.projet-close-btn:hover { background: #6B2B2C; }

.projet-link-btn {
  padding: 9px 20px;
  border: 1px solid #7C3636;
  color: #FC9996;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.projet-link-btn:hover { background: rgba(124,54,54,0.2); } 

/* === GALERIE MODALE === */
.projet-galerie {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.galerie-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.galerie-item img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  object-fit: cover;
}

.galerie-caption {
  font-size: 0.82rem;
  color: #FC9996;
  text-align: center;
  font-style: italic;
}

/* === CATÉGORIES PROJETS === */
.projets-categorie {
  margin-top: 40px;
}

.projets-categorie h3 {
  font-size: 1.4rem;
  color: #FC9996;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #6B2B2C;
  text-align: left;
}