/* ===============================
   Cybersecurity Portfolio Design – Enhanced
   File: assets/css/cyber.css
   =============================== */

.hero-section {
    background-color: #0f172a;
    color: white;
    padding: 60px 0;
}
.hero-title {
    font-size: 48px;
    font-weight: bold;
}
.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
}
.highlight {
    color: #00f2ea;
}
.profile-img {
  border: 3px solid #0086ff;
  border-radius: 12px !important;
  box-shadow: 0 0 10px rgba(0, 134, 255, 0.5);
  max-width: 300px; /* augmentée depuis 180px */
  width: 100%;      /* responsive dans les colonnes Bootstrap */
  height: auto;
  margin-bottom: 1rem;
}
.social-icons a {
    margin-right: 15px;
    color: #00f2ea;
    font-size: 20px;
}


body.bg-dark {
  background-color: #0a0f1a !important;
  color: #e0e6ed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.4px;
  line-height: 1.6;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Navbar cyber style */
.navbar {
  background-color: #0f172a !important;
  /*border-bottom: 2px solid #0086ff;*/
  box-shadow: 0 2px 8px rgba(0, 134, 255, 0.2);
  transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
  color: #0086ff !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.7px;
}


.navbar-nav .nav-link {
  color: #e0e6ed !important;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #0086ff !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #0086ff;
  transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Language switch */
.navbar-nav .nav-item span.nav-link {
  color: #777;
  cursor: default;
}

/* Sidebar (admin only) */
.sidebar {
  background-color: #0f172a !important;
  border-right: 1px solid #1e293b;
  min-height: 100vh;
  padding-top: 2rem;
}

.sidebar .nav-link {
  color: #e0e6ed;
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  display: block;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
  color: #0086ff;
  background-color: #1e293b;
  border-left: 3px solid #0086ff;
}

/* Container spacing */
.container, .container-fluid {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Section titles */
h1, h2, h3, h4, h5 {
  color: #0086ff;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Links */
a {
  color: #0086ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00b2ff;
}

/* Utilities */
.text-light {
  color: #e0e6ed !important;
}

.bg-cyber-dark {
  background-color: #0a0f1a !important;
}

.border-cyber {
  border: 1px solid #0086ff !important;
}

.shadow-cyber {
  box-shadow: 0 0 15px rgba(0, 134, 255, 0.2);
}

/* Buttons */
.btn-cyber {
  background-color: #0086ff;
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cyber:hover {
  background-color: #006fdd;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    text-align: center;
    padding: 0.75rem;
  }

  .sidebar {
    padding-top: 1rem;
  }

  h1, h2, h3, h4, h5 {
    font-size: 1.25rem;
  }
}

/*//////////////////Partie header /////////////////////////////////*/
/* === Zone principale du portfolio === */
.portfolio-container {
  background-color: #0d1117;
  color: #c9d1d9;
  padding: 2rem 1rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 134, 255, 0.15);
}

/* === Colonne gauche === */
.left-panel {
  background-color: #161b22;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: inset 0 0 10px rgba(0, 134, 255, 0.1);
  margin-bottom: 2rem;
}

.profile-img {
  border: none;
  border-radius: 12px !important;
  box-shadow: none;
  max-width: 300px; /* augmentée depuis 180px */
  width: 100%;      /* responsive dans les colonnes Bootstrap */
  height: auto;
  margin-bottom: 1rem;
}


/* === Texte === */
.profile-name {
  color: #0086ff;
  font-weight: bold;
  margin-top: 0.75rem;
  font-size: 1.25rem;
}

.profession {
  color: #8b949e;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* === Icônes sociales === */
.social-icon {
  width: 32px;
  height: 32px;
  filter: brightness(1.2);
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.15);
}

/* === Bouton CV === */
.download-cv {
  background-color: #0086ff;
  color: #ffffff;
  font-weight: bold;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.download-cv:hover {
  background-color: #006fdd;
}

/* === Contenu principal === */
.right-panel .section-title {
  color: #0086ff;
  border-bottom: 2px solid #0086ff;
  padding-bottom: 5px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.section-subtitle {
  color: #00ffe0;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.custom-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* === SVG inline dans les listes === */
.icon-inline svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: #00ffe0;
  margin-right: 6px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .profile-img {
    max-width: 140px;
  }

  .profile-name {
    font-size: 1.1rem;
  }

  .download-cv {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  .right-panel .section-title {
    font-size: 1.3rem;
  }
}

.blog-post {
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 134, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 134, 255, 0.3);
}

.blog-post .text-muted {
    color: #e0e6ed !important;
}

.card {
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 134, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 134, 255, 0.3);
}

.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.cert-date {
    color: #e0e6ed !important;
}

.cert-issuer {
    color: #cc6600 !important;
}

.footer-shadow {
    box-shadow: 0 -5px 15px rgba(0, 134, 255, 0.3);
}

/* New CSS for hero section */
.hero-section {
    background-color: #0f172a;
    color: white;
    padding: 60px 0;
}
.hero-title {
    font-size: 48px;
    font-weight: bold;
}
.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
}
.highlight {
    color: #00f2ea;
}
.hero-profile-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    background: none;
    padding: 0;
    box-shadow: 0 15px 10px -10px rgba(0, 134, 255, 0.5);
}
.social-icons a {
    margin-right: 15px;
    color: #00f2ea;
    font-size: 20px;
}

.btn-download {
  background-color: #0086ff;
  color: #ffffff;
  font-weight: bold;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: #006fdd;
}

/* Responsive tables for admin pages */
.table-responsive-admin {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

@media (max-width: 768px) {
  .table-responsive-admin table {
    width: 100%;
    min-width: 700px; /* Increased min-width for better content display */
  }

  .table-responsive-admin th,
  .table-responsive-admin td {
    white-space: nowrap; /* Prevent text wrapping in cells */
    padding: 0.6rem !important; /* Slightly more padding for readability */
  }

  /* Ensure action buttons in tables are properly spaced and aligned */
  .table-responsive-admin td .table-actions {
    display: flex !important;
    flex-wrap: nowrap !important; /* Keep buttons on one line if possible, let overflow-x handle it */
    gap: 5px !important; /* Space between buttons */
    justify-content: flex-end !important; /* Align buttons to the right */
    align-items: center !important;
    width: 100%; /* Ensure the container takes full width */
  }

  /* Further refine button appearance on small screens */
  .table-responsive-admin td .table-actions .btn {
    flex-shrink: 0 !important; /* Prevent buttons from shrinking */
    padding: 0.3rem 0.6rem !important; /* Smaller padding for buttons */
    font-size: 0.75rem !important; /* Smaller font size for buttons */
    margin: 0 !important; /* Remove any default margins */
  }
}

.entity-name {
    color: #cc6600; /* Orange sombre */
}

/* Fixed Header */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030; /* Bootstrap's default z-index for fixed navbars */
}

body {
  padding-top: 70px; /* Adjust this value based on your navbar's height */
}