* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f8f9fb;
  color: #333;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0076BE; /* Bleu */
}

.nav-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #FF7B00; /* Orange sur hover */
}

/* .lang-switcher select {
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f0f0f5;
  cursor: pointer;
} */

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 2rem;
  color: #0076BE; /* Bleu */
}

.hero p {
  margin-top: 10px;
  color: #dbd0d0;
}

.search-bar {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 250px;
}

.search-bar button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background: #FF7B00; /* Orange */
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: #0076BE; /* Bleu sur hover */
}

/* PROFILES */
.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 8%;
}

.profile-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s;
  border-top: 4px solid #00C27B; /* Vert sur le haut de chaque carte */
}

.profile-card:hover {
  transform: translateY(-5px);
}

.profile-card img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.profile-card h3 {
  margin-top: 10px;
  color: #0076BE;
}

.profile-card p {
  color: #555;
  margin: 5px 0;
  align-items: inherit !important;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-view {
  background: #00C27B; /* Vert */
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-view:hover {
  background: #0076BE; /* Bleu au survol */
}

/* === Bouton "Copier le lien du profil" stylé et moderne === */
.btn-share {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0076BE, #00C27B);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Effet de survol lumineux */
.btn-share::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.25), rgba(255,255,255,0));
  transition: all 0.5s ease;
}

/* Quand on survole */
.btn-share:hover::before {
  left: 100%;
}

.btn-share:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 118, 190, 0.35);
  background: linear-gradient(135deg, #FF7B00, #00C27B);
}

/* Effet quand on clique */
.btn-share:active {
  transform: scale(0.97);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Optionnel : petite animation d’apparition */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn-share {
  animation: fadeIn 0.6s ease forwards;
}


/* FOOTER */
footer {
  background: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 15px;
  border-top: 1px solid #ddd;
}

.socials {
  margin-bottom: 5px;
}

.socials a img {
  width: 20px;
  height: 20px;
  margin: 0 8px;
  opacity: 0.8;
  color: #FF7B00;
  transition: transform 0.3s, opacity 0.3s;
  filter: invert(40%) sepia(90%) saturate(500%) hue-rotate(10deg);
}

.socials a img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* COPYRIGHT */
footer p {
  color: #555;
}

/* 📱 Responsive mobile */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .search-bar input,
  .search-bar select {
    width: 100%;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .profile-card {
    padding: 15px;
  }

  footer {
    padding: 20px 5%;
  }

  .socials a img {
    width: 22px;
    height: 22px;
  }
}

/* adoucir les transitions globales aos */
html {
  scroll-behavior: smooth;
}

[data-aos] {
  transition-timing-function: ease-out;
}

/* ======= MENU UTILISATEUR ======= */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-btn {
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f0f0f5;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #0076BE; /* Bleu */
}

.user-btn:hover {
  background: #0076BE;
  color: #fff;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 10px;
  width: 210px;
  overflow: hidden;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s;
}

.user-dropdown a:hover {
  background: #FF7B00; /* Orange */
  color: #fff;
}

.user-dropdown hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 5px 0;
}

/* Petite animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======= Page Profil ======= */
.profile-page {
  padding: 40px 8%;
  background: #f8f9fb;
  min-height: 100vh;
}

.profile-container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  padding: 30px;
}

.profile-header {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0076BE; /* Bleu */
}

.profile-info h1 {
  font-size: 1.8rem;
  color: #0076BE;
}

.profile-subjects {
  color: #00C27B; /* Vert */
  font-weight: 500;
  margin: 5px 0 15px 0;
}

.profile-links {
  display: flex;
  gap: 15px;
}

.profile-links a img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s, opacity 0.3s;
}

.profile-links a:hover img {
  transform: scale(1.2);
  opacity: 0.85;
}

.profile-cv {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-view-cv,
.btn-download-cv {
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  text-decoration: none;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
}

/* Bouton Voir CV */
.btn-view-cv {
  background: #FF7B00; /* Orange */
}

.btn-view-cv:hover {
  background: #0076BE; /* Bleu au survol */
}

/* Bouton Télécharger CV */
.btn-download-cv {
  background: #00C27B; /* Vert */
}

.btn-download-cv:hover {
  background: #0076BE; /* Bleu au survol */
}

/* Description / bio */
.profile-description {
  margin-top: 40px;
}

.profile-description h2 {
  color: #0076BE;
  margin-bottom: 10px;
}

.profile-description p {
  line-height: 1.6;
  color: #555;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-links {
    justify-content: center;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .btn-view-cv,
  .btn-download-cv {
    width: 100%;
    text-align: center;
  }
}

/* ======= Liens sociaux stylés ======= */
.profile-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.profile-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f1f1;
  transition: all 0.3s ease;
}

.profile-links a:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-links a svg {
  width: 24px;
  height: 24px;
}


/* ======= Page À propos ======= */
.about-page {
  background: #f8f9fb;
  padding: 60px 8%;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

.about-container {
  max-width: 1000px;
  margin: auto;
}

.about-header h1 {
  color: #0076BE;
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: center;
}

.about-header p {
  color: #b9a6a6;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.about-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.about-card i {
  font-size: 36px;
  color: #0076BE;
  margin-bottom: 15px;
  transition: transform 0.3s, color 0.3s;
}

.about-card h3 {
  font-size: 1.2rem;
  color: #FF7B00;
  margin-bottom: 12px;
}

.about-card p, .about-card ul {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.about-card ul {
  padding-left: 0;
  list-style: none;
}

.about-card ul li {
  margin-bottom: 8px;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.about-card:hover i {
  color: #00C27B;
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
  .about-header h1 {
    font-size: 1.8rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
}


/* ======= Page Contact ======= */
.contact-page {
  background: #f8f9fb;
  padding: 60px 8%;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

.contact-container {
  max-width: 1000px;
  margin: auto;
}

.contact-header h1 {
  color: #0076BE;
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: center;
}

.contact-header p {
  color: #c4b3b3;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.contact-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.contact-card i {
  font-size: 36px;
  color: #0076BE;
  margin-bottom: 15px;
  transition: transform 0.3s, color 0.3s;
}

.contact-card h3 {
  font-size: 1.2rem;
  color: #FF7B00;
  margin-bottom: 8px;
}

.contact-card p, .contact-card a {
  font-size: 1rem;
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-card a:hover {
  color: #00C27B;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* ======= Responsive ======= */
@media (max-width: 768px) {
  .contact-header h1 {
    font-size: 1.8rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ======= Bouton Scroll to Top ======= */
#scrollTopBtn {
  position: fixed;
  bottom: 150px;
  right: 30px;
  z-index: 9999;
  background: #FF7B00; /* Orange */
  color: #fff;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#scrollTopBtn i {
  font-size: 20px;
  transition: transform 0.3s ease;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/* tableau_de_bord  */
/* ======= Main ======= */
.admin-main {
  margin-left: 4px;
  margin-right: 4px;
  padding: 40px 30px;
}

/* Header */
.admin-header {
  z-index: -5555;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.admin-header h2 {
  color: #0076BE;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ======= Dashboard Stats ======= */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.stat-card i {
  font-size: 30px;
  color: #0076BE;
  margin-bottom: 12px;
}

.stat-card h3 {
  color: #FF7B00;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 1.4rem;
  font-weight: 600;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* ======= Table ======= */
.admin-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.admin-table th, .admin-table td {
  padding: 15px;
  text-align: left;
}

.admin-table th {
  background: #0076BE;
  color: #fff;
}

.admin-table tr:nth-child(even) {
  background: #f8f9fb;
}

.status.approved {
  color: #00C27B;
  font-weight: 600;
}

.status.pending {
  color: #FF7B00;
  font-weight: 600;
}

.btn {
  margin-top: 2px;
  border: none;
  outline: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 5px;
  transition: all 0.3s ease;
}

.btn.view { background: #0076BE; color: #fff; }
.btn.edit { background: #FF7B00; color: #fff; }
.btn.delete { background: #FF3B3B; color: #fff; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* ======= Responsive ======= */



@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .stat-card p {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .admin-table table, .admin-table th, .admin-table td {
    font-size: 0.85rem;
    padding: 10px;
  }
  .header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}

/* ===== Formulaire soft & moderne ===== */
.form-profile {
  max-width: 450px;
  margin: 50px auto;
  padding: 24px 20px;
  background: #f9f9f9; /* fond clair, doux */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.192);
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* Titre */
.form-profile h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0076BE; /* bleu doux */
}

/* Form groups */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #00C27B; /* vert doux */
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd; /* bordure très douce */
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FF7B00; /* accent orange doux */
  box-shadow: 0 2px 8px rgba(255,123,0,0.2);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* File inputs */
.form-group input[type="file"] {
  background: #fff;
  border: 1px solid #ddd;
}

/* Bouton */
.form-actions {
  text-align: center;
  margin-top: 20px;
}

.btn-submit {
  width: 100%;
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #FF7B00, #00C27B);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #00C27B, #0076BE);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.btn-submit:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 520px) {
  .form-profile {
    margin: 30px 16px;
    padding: 20px 16px;
  }
  .btn-submit {
    font-size: 0.9rem;
  }
}


/* ===== Loader centré avec logo clignotant ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9); /* fond semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Logo avec animation de clignotement */
.logo-loader {
  width: 120px; /* taille du logo */
  height: auto;
  animation: blink 1s infinite alternate;
}

/* Animation fade in/out */
@keyframes blink {
  0% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 0.7; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 520px) {
  .logo-loader {
    width: 90px;
  }
}

.error {
    color: #FF7B00; /* orange pour bien voir l’erreur */
    font-size: 0.9rem;
    margin-top: 5px;
}
.success {
    color: #00C27B; /* vert pour succès */
    font-size: 0.9rem;
    margin-top: 5px;
}

.select-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    appearance: none; /* supprime le style par défaut */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-group select:focus {
    border-color: #FF7B00; /* orange au focus */
    outline: none;
    box-shadow: 0 0 5px rgba(255, 123, 0, 0.5);
}

/* Pour ajouter une flèche custom */
.select-group {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-group::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #FF7B00;
    font-size: 12px;
}
