/* ---------- GLOBAL ---------- */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  display: flex;
  background: #0d1117;
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(180deg, #0059b3, #003d80); /* 💙 Bleu clair -> bleu profond */
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 2px 0 10px rgba(0,0,0,0.4);
  color: #fff;
}

.sidebar h1 {
  font-size: 1.8em;
  margin-bottom: 40px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav li {
  margin-bottom: 20px;
}

.sidebar nav a {
  color: #f0f8ff; /* bleu très clair, lisible en clair comme en sombre */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  display: block;
  padding: 10px 15px;
  border-radius: 10px;
  transition: 0.3s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #00d9ff;
  color: #000;
  box-shadow: 0 0 10px #00d9ff;
}

/* --- Empêche le thème clair de modifier la sidebar --- */
body.light-theme .sidebar {
  background: linear-gradient(180deg, #0059b3, #003d80) !important;
  color: #fff;
}

body.light-theme .sidebar a {
  color: #001f3f; /* texte légèrement plus foncé en mode clair */
}

body.light-theme .sidebar a:hover,
body.light-theme .sidebar a.active {
  background: #00d9ff;
  color: #000;
}


/* ---------- PHOTO DE PROFIL ---------- */
.profile {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.profile img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00d9ff;
  box-shadow: 0 0 15px rgba(0,217,255,0.4);
  transition: 0.3s;
}

.profile img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00d9ff;
}

/* Thème clair */
body.light-theme .profile img {
  border-color: #007bff;
  box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

/* ---------- CONTENT ---------- */
.content {
  margin-left: 240px;          /* laisse la place à la sidebar */
  padding: 50px 80px;
  width: calc(100% - 240px);   /* prend tout l’espace restant */
  max-width: none;             /* supprime la limite de largeur */
  box-sizing: border-box;      /* évite de dépasser */
}
.content section {
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px; /* tu peux ajuster cette valeur */
}

/* ---------- SECTIONS / CARTES ---------- */
section {
  margin-bottom: 50px;
  padding: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transition: 0.4s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px #00d9ff;
}

h2 {
  color: #00d9ff;
  margin-bottom: 20px;
  border-bottom: 2px solid #00d9ff;
  display: inline-block;
  padding-bottom: 5px;
}

/* ---------- LISTES & TIMELINE ---------- */
ul li {
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
}

ul li::before {
  content: '•';
  color: #00d9ff;
  position: absolute;
  left: -15px;
}

.timeline {
  padding-left: 24px;   
  margin-top: 20px;
  position: relative;   
  border-left: none;    
}

.timeline::before {
  content: '';
  position: absolute;
  left: -23px;          
  top: 0;
  bottom: 0;
  width: 3px;
  background: #00d9ff;
  box-shadow: 0 0 8px rgba(0,217,255,0.2);
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;            
  top: 2px;
  width: 20px;
  height: 20px;
  background: #00d9ff;
  border-radius: 50%;
  transform: none;        
  box-shadow: 0 0 6px rgba(0,217,255,0.4);
}


/* ---------- BOUTONS ---------- */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 25px;
  background: #00d9ff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #fff;
  transform: scale(1.05);
}

/* ---------- CONTACT HORIZONTAL ---------- */
.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
  margin-top: 20px;
}

.contact-card {
  background: rgba(255,255,255,0.05);
  padding: 40px;
  border-radius: 20px;
  width: 48%;
  min-height: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.contact-card:hover {
  box-shadow: 0 0 30px #00d9ff, 0 0 60px rgba(0,217,255,0.3);
  transform: translateY(-5px);
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form input, form textarea {
  padding: 15px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 1.1em;
}

form button {
  width: 180px;
  cursor: pointer;
  background: #00d9ff;
  color: #000;
  font-weight: 600;
  border-radius: 25px;
  padding: 12px 20px;
  transition: 0.3s;
}

form button:hover { background: #fff; transform: scale(1.05); }

.coordonnes p { font-size: 1.2em; margin-bottom: 15px; }
.coordonnes a { color: #00d9ff; text-decoration: none; transition: 0.3s; }
.coordonnes a:hover { color: #fff; text-shadow: 0 0 10px #00d9ff; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  body { flex-direction: column; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 20px;
  }
  .content { margin-left: 0; padding: 20px; }
  .contact-container { flex-direction: column; gap: 20px; }
  .contact-card { width: 100%; }
}

/* ======== BOUTON THÈME ======== */
.theme-switcher {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 2000;
}

.theme-btn {
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #00d9ff;
}

.theme-btn:hover {
  transform: rotate(20deg) scale(1.2);
}

/* En thème clair */
body.light-theme .theme-btn {
  color: #333;
}

/* ---------- THEME CLAIR ---------- */
body.light-theme {
  background: #f5f5f5;
  color: #000;
}
body.light-theme .sidebar { background: rgba(255,255,255,0.8); color: #000; }
body.light-theme .sidebar a { color: #000; }
body.light-theme .btn { background: #000; color: #fff; }
body.light-theme section { background: rgba(0,0,0,0.05); color: #000; }
body.light-theme .contact-card { background: rgba(0,0,0,0.05); color: #000; }
body.light-theme .coordonnes a { color: #000; }

/* === Thème clair global === */
body.light-theme {
  background: #f5f5f5;
  color: #222;
}

body.light-theme .sidebar {
  background: rgba(255,255,255,0.9);
  color: #000;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

body.light-theme .sidebar h1,
body.light-theme .sidebar a {
  color: #000;
}

body.light-theme a:hover {
  color: #00d9ff;
}

body.light-theme .btn {
  background: #000;
  color: #fff;
}

body.light-theme section {
  background: rgba(0,0,0,0.05);
}

body.light-theme h2, 
body.light-theme h3 {
  color: #007bff;
}

/* Transition fluide entre les thèmes */
body, .sidebar, section, .btn {
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* --- Icônes coordonnées --- */
.coordonnes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* chaque ligne (téléphone / mail / linkedin) alignée sur une ligne */
.coordonnes p {
  display: flex;
  align-items: center;    /* aligne icône et texte verticalement */
  gap: 10px;              /* espace icône → texte */
  margin: 0;
  line-height: 1;         /* évite décalages verticaux dus à l'emoji */
  white-space: nowrap;    /* empêche le texte de passer à la ligne sous l'icône */
  flex-wrap: nowrap;
  font-size: 1.12em;
}

/* si tu as des <a> à l'intérieur */
.coordonnes p a {
  color: inherit;
  text-decoration: none;
}

/* icônes : taille et alignement constants */
.coordonnes p .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;     /* taille de l'emoji/icône */
  line-height: 1;
}


.coordonnes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.coordonnes p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 6px 0;
  font-size: 1.05em;
}

.coordonnes p .icon { width: 22px; text-align: center; }

/* ---------- Infos disponibilité et coordonnées améliorées ---------- */
.availability {
  background: rgba(255,255,255,0.07);
  border-left: 4px solid #00d9ff;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  font-size: 1.2em;
  line-height: 1.6;
}

.coordonnes {
  font-size: 1.25em;
  line-height: 1.8;
}

.contact-info {
  margin-bottom: 10px;
}

.socials {
  margin-top: 35px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.socials h4 {
  color: #00d9ff;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.socials a {
  color: #00d9ff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  font-size: 1.1em;
}

.socials a:hover {
  text-shadow: 0 0 10px #00d9ff;
  color: #fff;
}
