/*--------------------------------------------------------------
# Essentiels
--------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Scrollbar personnalisée pour la page principale uniquement */
body::-webkit-scrollbar,
div::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

body::-webkit-scrollbar-track,
div::-webkit-scrollbar-track {
  background: #50644c;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb,
div::-webkit-scrollbar-thumb {
  background: #a6d866;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover,
div::-webkit-scrollbar-thumb:hover {
  background: #f39c12;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #50644c;
  color: #333;
  padding: 5px;
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

#footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/*--------------------------------------------------------------
# Principale
--------------------------------------------------------------*/
div {
  max-width: 1500px;
  margin: 0 auto;
  padding: 13px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  position: relative;
}

/* Exclure les modales de la règle ci-dessus */
.modal,
.modal * {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #f39c12;
  text-decoration: none;
}

orange {
  color: #f39c12;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-align: center;
  color: #2c3e50;
}

p {
  margin-bottom: 10px;
  text-align: center;
  color: #555;
  max-width: 1000px;
  word-wrap: break-word;
  margin-left: auto;
  margin-right: auto;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  margin: 30px 0;
}

.main-content-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-content {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.hero-description {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# Navigation Cards
--------------------------------------------------------------*/
.navigation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.nav-card {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #a6d866;
}

.nav-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #a6d866 0%, #8ecf4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  transition: transform 0.3s ease;
}

.nav-card:hover .nav-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.nav-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.nav-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  text-align: center;
}

/*--------------------------------------------------------------
# Tips Section
--------------------------------------------------------------*/
.tips-section {
  margin: 30px 0;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.tips-header i {
  font-size: 1.2rem;
  color: #f39c12;
}

.tips-header h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 0;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  color: #555;
  line-height: 1.6;
}

.tips-list li i {
  color: #f39c12;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.tips-list li orange {
  color: #f39c12;
  font-weight: 600;
}

.tips-list li a {
  color: #f39c12;
  text-decoration: none;
}

.tips-list li a:hover {
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-section {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.contact-text {
  color: #555;
  font-size: 1rem;
  margin: 0;
}

.contact-link {
  color: #f39c12;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 6px 14px;
  background: #f8f9fa;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: #a6d866;
  color: white;
  transform: translateY(-2px);
}

.contact-link i {
  font-size: 1.2rem;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .main-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .navigation-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

}

/* Ancien style info-box conservé pour compatibilité */
.info-box {
  max-width: 980px;
  margin: 20px auto;
  padding: 15px 20px;
  background: #4f624B;
  color: #ffffff;
  border-radius: 5px;
}

.info-box b {
  display: block;
  margin-bottom: 10px;
}

.info-box b i {
  color: #f39c12;
  font-size: 1.1rem;
}

.info-box ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0 0;
}

.info-box li {
  margin-bottom: 8px;
  line-height: 1.6;
  text-align: left;
  display: block;
}

.info-box li a {
  color: #f39c12;
  text-decoration: none;
}

.info-box li a:hover {
  text-decoration: underline;
}

/* Icône LinkedIn en haut à droite */
.linkedin-icon-top {
  transition: transform 0.3s, color 0.3s;
}

.linkedin-icon-top:hover {
  transform: scale(1.2);
  color: #005885 !important;
}

.info-box li i {
  color: #f39c12;
  font-size: 0.95rem;
}

.info-box orange {
  color: #f39c12;
  font-weight: 600;
}

#mobile-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: none;
}

.table-container {
  overflow-x: auto;
  margin-top: 15px;
}

/*--------------------------------------------------------------
# Filtres
--------------------------------------------------------------*/
.tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  width: 100%;
  flex-wrap: wrap;
}

/* Style pour les filtres (première div.tabs avant le tableau) - effet intercalaire */
h1+.tabs {
  margin-bottom: 0;
  margin-top: 15px;
  background: transparent;
  /* Enlever le fond blanc */
  box-shadow: none;
  /* Enlever l'ombre */
  padding: 0 5px;
  /* Ajuster le padding */
}

h1+.tabs .tab {
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
  background: #a6d866;
  /* Couleur par défaut */
  color: #fff;
  border: none;
}

h1+.tabs .tab:hover {
  background: #8ecf4e;
}

h1+.tabs .tab.active {
  z-index: 2;
  background: #f39c12;
  /* Orange demandé */
  color: #fff;
  border: 1px solid #f39c12;
  border-bottom: 1px solid #f39c12;
  /* Assurer la continuité */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Style pour le conteneur du tableau (deuxième div.tabs) - effet intercalaire */
h1+.tabs+.tabs {
  margin-top: 0;
  /* Coller au filtre */
  border: 1px solid #ddd;
  /* Bordure plus discrète */
  border-top: 3px solid #f39c12;
  /* Ligne orange pour lier au filtre actif */
  border-radius: 0 0 8px 8px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  margin: 0 5px;
  background: #a6d866;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, box-shadow 0.3s;
}

.tab:hover {
  background: #8ecf4e;
}

.tab.active {
  background: #f39c12;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Tableaux
--------------------------------------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

/* Tableau dans un conteneur avec filtres (effet intercalaire) */
h1+.tabs+.tabs table {
  margin-bottom: 0;
  border: none;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Style pour la colonne numéro */
.num {
  white-space: nowrap;
  min-width: 40px;
  text-align: center;
}

/* Limiter la largeur de certaines colonnes pour forcer les retours à la ligne */
/* Colonne Organisateur (expériences) */
#table-experiences th:nth-child(4),

#table-experiences td:nth-child(6),
#table-formations th:nth-child(7),
#table-formations td:nth-child(7) {
  max-width: 200px;
  white-space: normal;
}

/* Colonne Intitulé du poste (expériences) */
#table-experiences th:nth-child(8),
#table-experiences td:nth-child(8) {
  max-width: 200px;
  white-space: normal;
}

/* Colonne Intitulé (formations) */
#table-formations th:nth-child(6),
#table-formations td:nth-child(6) {
  max-width: 200px;
  white-space: normal;
}

table th {
  background-color: #a6d866;
  color: #fff;
  font-weight: bold;
}

/* Lignes alternées */
table tr.even {
  background-color: #f2f2f2;
}

.image-carrée {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.image-carrée:hover {
  border: 2px solid black;
}

#mobile-message {
  display: none;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #a6d866;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  text-decoration: none;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #f39c12;
  transform: scale(1.28);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

@media only screen and (max-width: 480px) {
  .image-carrée {
    width: 40px;
    height: 40px;
  }

  .logos-container {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.95rem;
  }

  table th,
  table td {
    font-size: 0.8rem;
    /* Réduit de 0.85rem à 0.8rem */
    padding: 4px;
    /* Réduit de 6px à 4px */
  }

  table th {
    font-size: 0.75rem;
    /* Encore plus petit pour les en-têtes */
    padding: 6px 2px;
  }
}

@media (max-width: 480px) {
  table th {
    font-size: 0.65rem;
    /* Format téléphone : très compact */
    letter-spacing: -0.5px;
  }

  table td {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
    align-items: center;
    overflow-x: auto;
  }

  .tab {
    width: 100%;
    margin: 5px 0;
    overflow-x: auto;
  }
}

@media only screen and (max-width: 770px) {
  #mobile-message {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# Statistiques
--------------------------------------------------------------*/
#stats-mobile-message {
  display: none;
  background-color: #fff3cd !important;
  color: #856404;
  padding: 12px;
  margin: 10px 0 20px;
  border: 1px solid #ffeeba;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  max-width: 100%;
}

#visu-graph-stat-ordi {
  display: none;
  background-color: #d1ecf1 !important;
  color: #0c5460;
  padding: 12px;
  margin: 10px 0 20px;
  border: 1px solid #bee5eb;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  max-width: 100%;
}

#visu-graph-stat-tel {
  display: none;
  background-color: #d1ecf1 !important;
  color: #0c5460;
  padding: 12px;
  margin: 10px 0 20px;
  border: 1px solid #bee5eb;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  max-width: 100%;
}

@media only screen and (max-width: 768px) {
  #stats-mobile-message {
    display: block;
  }

  #visu-graph-stat-tel {
    display: block;
  }
}

@media only screen and (min-width: 768px) {
  #visu-graph-stat-ordi {
    display: block;
  }
}

.stats-container {
  margin-top: 15px;
  margin-bottom: 10px;
  width: 100%;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.stats-section {
  margin-bottom: 15px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Masquer la section stats formations pour les utilisateurs non connectés */
.stats-section.hidden-formations {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.stats-section h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #f39c12;
  font-size: 1.2rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #a6d866;
}

.stats-sentences {
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
}

/* Style mise en avant selon design system français */
.highlight-box {
  background: #E8EDFF;
  border-left: 4px solid #0063CB;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: #161616;
  font-size: 0.95rem;
  line-height: 1.5;
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.highlight-item i {
  color: #0063CB;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Rotation animation */
@keyframes rotate-gear {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.rotate-on-hover:hover i {
  display: inline-block;
  animation: rotate-gear 2s linear infinite;
  transform-origin: center;
}

.highlight-item strong {
  font-weight: 600;
  color: #161616;
}

.highlight-item .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0063CB;
  margin: 0 2px;
}

.stat-sentence {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: black;
  line-height: 1.4;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f39c12;
  margin: 0 2px;
}

.stats-chart {
  margin-top: 30px;
  height: 350px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .stat-sentence {
    font-size: 0.9rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stats-chart {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .stat-sentence {
    font-size: 0.85rem;
  }

  .stats-chart {
    height: 250px;
  }
}

@media (max-width: 1200px) {
  .stats-container div:not(.stats-chart) {
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Modale de contenu restreint */
.restricted-content-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
}

.restricted-content-inner {
  text-align: center;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  background: #f39c12;
  color: white;
  border-radius: 8px;
  margin: 0 auto;
}

.restricted-content-inner h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.restricted-content-inner p {
  margin-bottom: 15px;
  color: white;
  line-height: 1.6;
}

.restricted-content-inner a {
  color: white;
  text-decoration: underline;
  font-weight: bold;
}

.restricted-content-inner a:hover {
  color: #f0f0f0;
}

/* Position relative pour le conteneur du tableau et du graphique */
h1+.tabs+.tabs {
  position: relative;
}

.stats-chart {
  position: relative;
}

/* Modale de contenu restreint - style inline pour stats */
.stats-section .restricted-content-modal {
  position: relative;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  margin: 20px auto;
  width: 100%;
}

/* Spinner de chargement */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 200px;
}

.loading-spinner.hidden {
  display: none !important;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #a6d866;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/*--------------------------------------------------------------
# search-container
--------------------------------------------------------------*/
.search-container {
  display: flex;
  max-width: 800px;
  margin: 0 auto 15px;
  padding: 0 15px;
  gap: 5px;
  align-items: stretch;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #a6d866;
  border-radius: 25px 0 0 25px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.search-input:focus {
  border-color: #f39c12;
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.4);
}

.search-button {
  background-color: #a6d866;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background-color: #f39c12;
}

/* Quand le bouton d'ajout est visible, enlever les bords arrondis du bouton de recherche */
.search-container:has(.add-btn-inline[style*="flex"]) .search-button {
  border-radius: 0;
}

/* Pour les navigateurs qui ne supportent pas :has(), utiliser une classe */
.search-container.has-add-btn .search-button {
  border-radius: 0;
}

.add-btn-inline {
  background-color: #f39c12;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.add-btn-inline:hover {
  background-color: #e67e22;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .search-container {
    padding: 0 10px;
    flex-wrap: nowrap;
  }

  .search-input {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 25px 0 0 25px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .search-button {
    padding: 8px 12px;
    border-radius: 0 25px 25px 0;
    flex-shrink: 0;
  }

  .add-btn-inline {
    padding: 8px 12px;
    border-radius: 0 25px 25px 0;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/*--------------------------------------------------------------
# sommaire
--------------------------------------------------------------*/
.sommaire {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sommaire-liste {
  list-style-type: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 0;
}

.sommaire-liste li {
  margin: 0 10px;
}

.sommaire-liste a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sommaire-liste a i {
  margin-right: 8px;
  color: #27a776;
}

.sommaire-liste a:hover {
  background-color: #f39c12;
  color: white;
  transform: translateY(-2px);
}

.sommaire-liste a:hover i {
  color: white;
}

@media (max-width: 768px) {
  .sommaire-liste {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/*TRIE SUR TOUTE LES COLONNES*/

/* Style pour les indicateurs de tri */
.sort-indicator {
  display: inline-block;
  font-size: 0.7em;
  margin-left: 5px;
  transition: transform 0.2s, opacity 0.2s;
}

.sort-neutral {
  opacity: 0.3;
  transform: rotate(0);
}

.sort-asc {
  opacity: 1;
  transform: rotate(180deg);
  /* Flèche vers le haut */
}

.sort-desc {
  opacity: 1;
  transform: rotate(0);
  /* Flèche vers le bas */
}

/* Hover effect pour indiquer que la colonne est triable */
th.sortable:hover .sort-indicator.sort-neutral {
  opacity: 0.7;
}

/*--------------------------------------------------------------
# Authentification
--------------------------------------------------------------*/
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.header-container h1.main-title,
.header-container h2 {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.main-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: left;
  margin: 0;
}

.header-auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-btn {
  background: #f39c12;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  white-space: nowrap;
}

.auth-btn:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.auth-btn-top {
  background: #f39c12;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  white-space: nowrap;
}

.auth-btn-top:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logout-btn {
  background: #e74c3c;
}

.logout-btn:hover {
  background: #c0392b;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .header-container h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  /* Cacher l'icône LinkedIn sur mobile */
  .linkedin-icon-top {
    display: none !important;
  }

  /* Bouton de connexion prend toute la largeur sur mobile */
  .auth-btn-top,
  .logout-btn {
    position: static !important;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .header-auth-buttons {
    width: 100%;
  }

  /* Filtres en colonne sur mobile */
  h1+.tabs {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  h1+.tabs .tab {
    width: 100%;
    border-radius: 8px;
    margin: 0;
  }

  h1+.tabs .tab.active {
    border-bottom: 1px solid #a6d866;
  }

  /* Ajuster le conteneur du tableau sur mobile */
  h1+.tabs+.tabs {
    border-radius: 8px;
    margin-top: 0;
    overflow-x: auto;
    /* Permet le scroll horizontal sur mobile */
    overflow-y: hidden;
  }

  /* Assurer que le tableau peut dépasser la largeur sur mobile */
  h1+.tabs+.tabs table {
    min-width: 100%;
    width: max-content;
  }
}

@media (max-width: 480px) {
  .header-container h2 {
    font-size: 1.3rem;
  }

  .auth-btn-top {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# Modals
--------------------------------------------------------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.modal::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background-color: rgba(0, 0, 0, 0.1);
  z-index: -1;
  margin: 0;
  padding: 0;
}

.modal-content {
  background: #ffffff;
  padding: 15px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 2001;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  margin: 0 !important;
}

/* Scrollbar simple et basique pour les modales */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.modal-content h2 {
  color: #2c3e50;
  margin-bottom: 12px;
  font-size: 1.2rem;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #a6d866;
}

/* .large-modal est géré spécifiquement pour chaque cas */
.large-modal {
  max-width: 450px;
}

@media (min-width: 769px) {
  .modal-content {
    max-width: 400px;
    padding: 18px;
  }

  .large-modal {
    max-width: 480px;
  }
}

.close-modal {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: all 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  border-radius: 50%;
}

.close-modal:hover {
  color: #e74c3c;
  background-color: rgba(0, 0, 0, 0.05);
}

.auth-option-btn {
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.admin-btn {
  background: #f39c12;
  color: white;
}

.admin-btn:hover {
  background: #e67e22;
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Formulaires
--------------------------------------------------------------*/
.form-group {
  margin-bottom: 10px;
}

.alsh-duration-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .alsh-duration-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


.form-group label {
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.required-asterisk {
  color: #e74c3c;
  font-weight: bold;
  margin-left: 2px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #f39c12;
}

.form-group input:hover,
.form-group select:hover {
  border-color: #a6d866;
}

/* Conteneur pour le champ mot de passe avec bouton œil */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 1.1rem;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #f39c12;
}

.password-toggle:focus {
  outline: none;
}

.submit-btn {
  background: #f39c12;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 8px;
}

.submit-btn:hover {
  background: #e67e22;
}

.submit-btn:active {
  background: #d35400;
}

/*--------------------------------------------------------------
# Messages d'erreur
--------------------------------------------------------------*/
.error-message {
  background-color: #fee;
  color: #c33;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  border: 1px solid #fcc;
  font-size: 0.85rem;
  text-align: center;
}

/*--------------------------------------------------------------
# Boutons d'ajout
--------------------------------------------------------------*/
.add-btn {
  background: #a6d866;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 15px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-btn:hover {
  background: #8ecf4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Colonne d'édition
--------------------------------------------------------------*/
.edit-column,
.delete-column {
  text-align: center;
  width: 80px;
}

.edit-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-btn:hover {
  background: #2980b9;
  transform: scale(1.1);
}

.delete-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.home-actions {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 5px solid #f39c12;
}

.btn-large {
  padding: 12px 25px;
  font-size: 1.1rem;
  margin: 10px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  color: white;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s;
}

.btn-large:hover {
  opacity: 0.9;
}

.btn-orange {
  background: #f39c12;
}

.btn-green {
  background: #50644c;
}

.btn-dark {
  background: linear-gradient(135deg, #50644c 0%, #3d4f3a 100%);
  box-shadow: 0 4px 15px rgba(80, 100, 76, 0.35);
  transition: opacity 0.3s;
  ;
}

.btn-dark:hover {
  opacity: 0.9;
  ;
}

.btn-dark:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(80, 100, 76, 0.35);
}

.director-request-btn {
  display: none;
  margin: 10px auto 15px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 26px;
  width: fit-content;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
  letter-spacing: 0.4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.director-request-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.55);
  background: linear-gradient(135deg, #f5a623 0%, #e8890d 100%);
}

.director-request-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
}

.hero-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 768px) {
  .hero-buttons-container {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons-container .btn-large {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin: 5px 0;
  }
}


#hero-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

@media (max-width: 768px) {
  #hero-title {
    font-size: 2rem !important;
    /* Beaucoup réduit pour mobile */
    margin-top: 20px !important;
  }
}

/* Features Grid Responsive */
#features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  /* Mobile : 1 colonne */
  margin: 40px 0;
}

@media (min-width: 650px) {
  #features-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Tablette/Petit écran : 2 colonnes (2 par ligne) */
  }
}

@media (min-width: 1100px) {
  #features-grid {
    grid-template-columns: repeat(4, 1fr);
    /* Grand écran : 4 colonnes (tout aligné) */
  }
}

/* Styles pour les astuces repliées (discrétion) */
.info-box.tips-collapsed {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding-bottom: 0;
  color: #999;
  transition: all 0.3s ease;
}

.info-box.tips-collapsed #tips-header {
  color: #888;
  font-size: 0.9em;
  opacity: 0.7;
  justify-content: center;
  /* Centrer quand replié */
}

.info-box.tips-collapsed #tips-header:hover {
  opacity: 1;
}

.info-box.tips-collapsed #tips-header b {
  font-weight: normal;
}

.info-box.tips-collapsed:hover {
  background: #f9f9f9;
  border-color: #eee;
}

/*--------------------------------------------------------------
# TomSelect Customization
--------------------------------------------------------------*/
.ts-dropdown .optgroup-header {
  font-weight: bold !important;
  color: #2c3e50 !important;
  background-color: #f1f5f9 !important;
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  border-bottom: 2px solid #a6d866 !important;
  margin-top: 8px !important;
  line-height: 1.4 !important;
}

.ts-dropdown .optgroup {
  border-bottom: 1px solid #f1f5f9 !important;
}

.ts-dropdown .option {
  padding: 4px 12px !important;
}

/* Tabulation (indentation) des éléments dans les groupes */
.ts-dropdown .optgroup .option {
  padding-left: 28px !important;
  position: relative;
}

.ts-dropdown .optgroup .option::before {
  content: "—";
  position: absolute;
  left: 12px;
  color: #cbd5e1;
  font-size: 0.8rem;
}

.ts-dropdown .option.active {
  background-color: #f0fdf4 !important;
  color: #166534 !important;
}

.ts-dropdown .option.selected {
  background-color: #e2e8f0 !important;
}

/* Authentification Google */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #888;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.auth-divider span {
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: bold;
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: white;
  color: #444;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Roboto', sans-serif;
}

.google-btn:hover {
  background-color: #f8f9fa;
  border-color: #ccc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-btn i {
  color: #4285F4;
  font-size: 1.2rem;
}

/* Corrections pour le tutoriel : éviter que la règle générique `div { max-width: 1500px }` n'affecte l'overlay */
#tutorial-overlay {
  max-width: none !important;
}

/* Le tooltip doit rester stylé mais ne pas hériter des contraintes globales */
#tutorial-tooltip {
  max-width: none !important;
}

/* Lien discret vers un autre site du créateur (footer) */
.other-site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-style: italic;
}

.other-site-link:hover {
  color: rgba(243, 156, 18, 0.85);
  border-bottom-color: rgba(243, 156, 18, 0.4);
}

/* Bouton RGPD discret */
.rgpd-link-btn {
  background: none;
  border: none;
  color: rgba(60, 60, 60, 0.45);
  font-size: 0.99rem;
  cursor: pointer;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px dashed rgba(60, 60, 60, 0.2);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-style: italic;
}

.rgpd-link-btn:hover {
  color: #50644c;
  border-bottom-color: rgba(80, 100, 76, 0.4);
}

/* Sections RGPD dans la modale */
.rgpd-section {
  margin-bottom: 20px;
}

.rgpd-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 6px 0;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-align: left;
}

.rgpd-section h3 i {
  color: #50644c;
  font-size: 1rem;
}

.rgpd-section p,
.rgpd-section ul {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  padding-left: 0;
}

.rgpd-section ul {
  padding-left: 18px;
}

.rgpd-section ul li {
  margin-bottom: 3px;
}

.rgpd-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 15px 0;
}

.rgpd-badge {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #a6d866;
  color: #50644c;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* Badges de statut pour les expériences et formations */
.badge-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.badge-futur {
  background-color: #50644c;
  color: white;
  animation: blink-animation 2s ease-in-out infinite;
}

.badge-ongoing {
  background-color: #a6d866;
  color: white;
  animation: blink-animation 2s ease-in-out infinite;
}

.badge-new {
  background-color: #e67e22;
  color: white;
  animation: blink-animation 2s ease-in-out infinite;
}

@keyframes blink-animation {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
