/* GENERAL*/

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Kanit", sans-serif;
    background-color: rgba(0, 0, 0, 0.3); 
    min-height: 100vh;
    padding-top: 50px; /* Espace pour la navbar fixe */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./assets/Fond.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(6px); /* Ajuste le flou ici */
  z-index: -1;
}

html{
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85);
}

/* TRANSITIONS */

a, 
.btn{
    transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 6vh;
}

#desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: beige;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  padding: 0 10px;
  transition: all 0.3s ease;
}

 #desktop-nav > div {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 45px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav-links{
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  justify-content: flex-end; 
}

.nav-links li {
  position: relative;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(181, 181, 181);
}


.lang {
    margin-right: 0;
}

/* HAMBURGER MENU*/

#hamburger-nav {
  display: none;
  position: fixed;
  justify-content: flex-end;
  top: 0;
  left: 0;
  width: 100%;
  background: beige;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  padding: 0 20px;
}

.hamburger-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 45px;
  position: relative;
}

.hamburger-lang {
    margin-right: 0;
    width: 4rem;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    margin-right: 4rem;
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    border-radius: 10px;
    background-color: black;
    transition: .4s  cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background: beige;
  backdrop-filter: blur(20px);
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
}

.menu-links.open {
  max-height: 600px;
  padding-bottom: 10px;
}

.menu-links li {
  padding: 0 15px;
}

.menu-links a {
  display: block;
  padding: 12px 15px;
  border-radius: 10px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  margin: 2px 0;
  transition: all 0.3s ease;
}

.menu-links a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
  transform: translateX(5px);

}

.hamburger-icon.open span:first-child {
    transform-origin:bottom;
    transform:rotatez(45deg) translate(6px,1px)
}

.hamburger-icon.open span:nth-child(2) {
    transform-origin:top;
    transform:rotatez(-45deg)
}

.hamburger-icon.open span:last-child {
    transform-origin:bottom;
    width:50%;
    transform: translate(13px,-6px) rotatez(45deg);
  
}

.hamburger-icon span:first-child {
    width: 50%;
}

.hamburger-icon span:nth-child(2) {
    width: 100%;
}

.hamburger-icon span:last-child{
    width: 75%;
}

/* Animation au scroll */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* SECTIONS */

section {
    height: auto; 
    min-height: 100vh; 
    margin: 0 3rem;
    box-sizing: border-box;
    min-height: fit-content;
    padding: 10px;
    margin-bottom: 20px;
}


.section-container {
    display: flex;
}

#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
}

.section_infos {
    align-self: center;
    text-align: center;
    justify-content: center;
    padding: 40px;
    margin-bottom: 30px;
}

.section_pic-container {
    display: flex;
    height: 350px;
    width: 350px;
    margin: auto 0;
}

#social-media {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1.25rem;
}




.icon {
    cursor: pointer;
    height: 2.5rem;
    transition: all 0.3s ease;
}

.icon:hover {
    transform: translateY(-4px) scale(1.1);
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(90, 108, 125, 0.3));
}



/* ICONS 
.icon {
    cursor: pointer;
    height: 2.5rem;
    transition: all 0.3s ease;
}

.icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 108, 125, 0.15);
}
*/
.section_about {
    align-self: center;
    text-align: center;
}

.section h1 {
  color: black;
  font-size: 2.25rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.section h3 {
  color: black;
  font-size: 1.4rem;
  text-align: center;
}


.section p {
  color: rgba(244, 244, 244, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}

.section_summary {
    align-self: center;
    text-align: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.section_summary p {
    font-size: 1.3rem;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 20px;
    color: #2c2c2c;
    text-align: center;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  font-size: 1.5rem;
  padding: 1.25rem;
  width: 10rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* Boxes */

.box {
  width: 100%;
  padding: 20px;
  height: 50px;
  transition: all 300ms ease;
  border-radius: 10px;
  display: flex;
  align-items: center;    /* centre verticalement le texte */
  justify-content: center; /* centre horizontalement le texte */
  font-weight: bold;
}

.box {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.box {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
    

.box-clickable:hover {
  cursor: pointer;
}

.box-clickable:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.box-clickable:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.box-clickable {
  cursor: pointer
}

.dropdown-content {
  overflow: hidden;
  max-height: 0px;
  transition: max-height 0.5s ease;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0 15px;
}

.dropdown-content ul {
  width:100%;
  padding: 0;
  margin: 0;
  list-style-type: none;
  box-sizing: border-box;
}

.dropdown-content li {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  margin: 2px;
  box-sizing: border-box;
}


.icon-box {
  cursor: pointer;
  width: 100px;
  flex-shrink: 0;
  margin-top: 3px;
  margin-right: 15px;
  margin-bottom: 15px;
}


.item-text {
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
}

.item-number {
  font-size: 1.2rem;
  text-transform: uppercase;
}

.item-description {
  font-size: 1.2rem;
  color: #444;
}

.item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.item-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #0055aa;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.item-link:hover .item-title,
.item-link:hover .item-number {
  color: #333;
  /* pas de soulignement */
}

/* ── Communications : boutons année ── */
.year-box-com {
  position: relative;
  width: 100%;
  padding: 14px 20px;
  min-height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 22px;
  cursor: pointer;
  background: transparent; /* le fond passe sur le ::before */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  transition: border-color 200ms ease;
  user-select: none;
  margin-bottom: 4px;
  z-index: 0;
}


 
.year-box-com::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  z-index: -1;
  transition: background 200ms ease;
}

.box-clickable-com:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.box-clickable-com:hover::before {
  background: rgb(53, 53, 53);
}
 
.year-box-com .chevron {
  font-size: 16px;
  transition: transform 0.3s ease;
}
 
.year-box-com.open .chevron {
  transform: rotate(180deg);
}
 
/* ── Communications : contenu déroulant ── */
.dropdown-content-com {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s ease;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0 15px;
  box-sizing: border-box;
  margin-bottom: 10px;
}
 
.dropdown-content-com ul {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}
 
.dropdown-content-com li {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  margin: 2px 0;
  box-sizing: border-box;
}
 
/* ── Communications : icône ── */
.icon-box-com {
  width: 90px;
  flex-shrink: 0;
  margin-right: 15px;
  margin-bottom: 10px;
  object-fit: contain;
  cursor: pointer;
}
 
/* ── Communications : texte ── */
.item-text-horizontal-com {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
 
.item-title-com {
  font-weight: bold;
  font-size: 16px;
}
 
.item-description-com {
  font-size: 15px;
  color: #555;
}
 
.item-link-com {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  width: 100%;
}
 

.item-link-com:hover .item-title-com,
.item-link-com:hover .item-number-com {
  color: #333;
  /* pas de soulignement */
}


/* Bouton pour remonter en haut */

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
  padding: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3); /* Blanc transparent à 30% */
  border: 1px solid rgba(255, 255, 255, 0.3); /* bordure un peu transparente */
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

#scrollTopBtn svg {
  width: 60px;              
  height: 60px;
  fill: black;
  transform: rotate(0deg); 
  transition: fill 0.3s ease, transform 0.2s ease;
}

#scrollTopBtn:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Leaflet map */


.map-container {
    position: relative;
    width: 80%;
    height: 650px;
    margin: 0 auto;  
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#map {
    height: 100%;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.map-overlay.active {
    opacity: 1;
}

.map-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 70%);
}

.info-box {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(400px);
    width: 300px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.info-box.active {
    transform: translateY(-50%) translateX(0);
}

.info-box h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.info-box p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.info-box .Date {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #64b5f6;
    background: rgba(100,181,246,0.15);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(100,181,246,0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: scale(1.1);
}

.custom-marker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.map-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Styles personnalisés pour les clusters */
.marker-cluster-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.marker-cluster-small:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.marker-cluster-medium {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.marker-cluster-medium:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.marker-cluster-large {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.marker-cluster-large:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.marker-cluster {
    background-clip: padding-box;
}

.marker-cluster div {
    background: transparent !important;
    border-radius: 50% !important;
    text-align: center !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;        
    padding: 0 !important;       
}

.marker-cluster span {
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;        
    padding: 0 !important;       
}

.map-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* For the timeline */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 5px;
}

.container-formation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 5px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.timeline-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b9dc3, #6d7d9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.timeline-header p {
    font-size: 1.2rem;
    color: rgba(107, 122, 147, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 0 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(0deg, rgba(245, 245, 220, 0), rgba(245, 245, 220, 1));
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0;
    animation: lineGrow 2s ease 0.5s forwards;
}

.timeline-item {
    position: relative;
    margin: 25px 0;
    opacity: 0;
    animation: slideIn 0.8s ease forwards;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.4s;
}

.timeline-content {
    position: relative;
    width: 40%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(244, 244, 244, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}


.timeline-content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    background: rgba(244, 244, 244, 0.95);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8d6e5, #a4b0be);
    transform: translate(-50%, -50%);
    z-index: 10;
    border: 4px solid rgba(244, 244, 244, 0.9);
    box-shadow: 0 0 30px beige;
    animation: pulse 2s infinite;
}

.timeline-item:nth-child(even) .timeline-dot {
    background: linear-gradient(135deg, #9fb3c8, #8fa3b0);
    box-shadow: 0 0 30px beige;
}

.date-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.logo {
    width: 100px;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-small {
    width: 60px;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date {
    display: inline-block;
    background: linear-gradient(135deg, #c8d6e5, #b4c6d3);
    color: #5a6c7d;
    padding: 8px 16px;
    border-radius: 70px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(163, 170, 178, 0.3);
}

.timeline-item:nth-child(even) .logo {
    background: transparent;
}

.timeline-item:nth-child(even) .date {
    background: linear-gradient(135deg, #9fb3c8, #8fa3b0);
    color: beige;
    box-shadow: 0 4px 15px rgba(159, 179, 200, 0.3);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2b2929;
    margin-bottom: 15px;
    text-align: left;
}

.timeline-content p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 0px;
    text-align: center;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill {
    background: linear-gradient(135deg, #e8eff5, #d6e3ed);
    color: #5a6c7d;
    padding: 6px 12px;
    margin-top: 5px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 108, 125, 0.15);
    background: linear-gradient(135deg, #dde6f0, #c8d6e5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes lineGrow {
    from {
        opacity: 0;
        height: 0;
    }
    to {
        opacity: 1;
        height: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-header h1 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        padding: 20px;
    }

    .container {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .timeline-header h1 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .timeline-dot {
        left: 20px;
        width: 16px;
        height: 16px;
    }
}


/* Style pour les skills  */

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skills-header {
  text-align: center;
  margin-bottom: 3rem;
}

.skills-header h2 {
  font-size: 3rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.skills-content {
  display: flex;
  gap: 2rem;
}

.skills-tabs {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  order: 2;
}

.tab-button {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 15px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(10px);
}

.tab-button.active {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateX(15px);
}

.skills-display {
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  min-height: 100px;
  order: 1;
}

.skill-category {
  display: none;
}

.skill-category.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-title {
  color: white;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Donuts */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.donut-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
}

svg {
  transform: rotate(-90deg);
  width: 150px;
  height: 150px;
}

circle {
  fill: none;
  stroke-width: 20;
  r: 60;
  cx: 75;
  cy: 75;
}

.bg-ring {
  stroke: rgba(255,255,255,0.2);
}

.progress-ring {
  stroke: #4ade80;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.center-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%);
}

.center-hole img {
  width: 40px;
  height: 40px;
}

.skill-label {
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Terrain */

.field-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.field-skill {
  background: rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.field-skill:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.field-skill-name {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
}

.field-skill-desc {
  font-weight: 600;
  color: #2b2929;
  font-size: 1rem;
}


@media (max-width: 768px) {
  .skills-content {
    flex-direction: column;
  }

  .skills-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
  }

  .tab-button {
    min-width: 150px;
    white-space: nowrap;
    transform: none !important;
  }
}

/* Style pour les bibliographie */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    min-height: 100vh;
}



h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-align: center;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9em;
}

input, select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

.reset-btn {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    align-self: flex-end;
}

.reset-btn:hover {
    background: #5568d3;
}

.publications {
    display: grid;
    gap: 20px;
}

.publication {
    padding: 20px;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.publication:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    background: rgba(244, 244, 244, 0.95);
    text-decoration: none;
}

.pub-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: white;
    border: 2px solid #e9ecef;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.pub-authors {
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.my-name {
    font-weight: bold;
    color: #333;
}

.pub-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.pub-type, .pub-year {
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.85em;
}

.pub-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.keyword {
    padding: 3px 10px;
    background: #e9ecef;
    border-radius: 15px;
    font-size: 0.8em;
    color: #495057;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.2em;
}

.results-count {
    margin-bottom: 15px;
    color: #e9ecef;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.pagination button {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-number {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #e9ecef;
    transition: all 0.3s;
}

.pagination .page-number:hover {
    background: #f0f2f5;
}

.pagination .page-number.active {
    background: #667eea;
    color: white;
}

.pagination .page-info {
    color: #e9ecef;
    font-weight: 500;
    padding: 0 10px;
}