/* PHI HUB INTERNATIONAL - Style CSS
   Thème : Full Black
   Framework : Bootstrap 5 avec personnalisations
*/

:root {
  --primary-color: #b19739;  /* Vert PHI */
  --dark-color: #111111;     /* Noir profond pour le fond */
  --light-color: #f8f9fa;    /* Blanc/gris très clair pour le texte principal */
  --secondary-light: #adb5bd; /* Gris clair pour texte secondaire */
  --accent-color: #6c63ff;   /* Violet accent pour surbrillance et boutons */
}

.color-primary {
  color: var(--primary-color);
}

.text-muted{
    color: var(--secondary-light) !important;
}

body {
  background-color: var(--dark-color);
  color: var(--light-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* Header & Navigation */
.navbar {
  background-color: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--light-color) !important;
  margin: 0 10px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color) !important;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  background-image: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--secondary-light);
  margin-bottom: 2rem;
}

/* Sections générales */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--light-color);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--primary-color);
  bottom: -10px;
  left: 25%;
}

/* Cards & Features */
.card {
  background-color: rgba(40, 40, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
  color: var(--light-color);
  font-weight: 600;
}

.card-text {
  color: var(--secondary-light);
}

/* Boutons */
.btn-primary {
  background-color: var(--primary-color) !important;
  border: none;
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(185, 162, 16, 0.2);
}
.btn-primary:checked {
    background-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(174, 185, 16, 0.3);
    }

.btn-primary:hover {
  background-color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(174, 185, 16, 0.3);
}
.btn-primary:active {
  background-color: #000000 !important;
  transform: translateY(2px);
  box-shadow: 0 5px 15px rgba(174, 185, 16, 0.3);
}

.btn-primary:focus {
    background-color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(174, 185, 16, 0.3);
  }

.btn-outline-primary{
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(185, 162, 16, 0.2);
}
.btn-outline-primary:active {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(185, 162, 16, 0.2);
    transform: translateY(2px);
}
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(185, 162, 16, 0.2);
    transform: translateY(-2px);
}
  /* Timeline */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 2px;
  background: var(--primary-color);
}

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

.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}

.timeline > li:after {
  clear: both;
}

.timeline > li > .timeline-badge {
  color: #fff;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  position: absolute;
  left: 0;
  margin-left: 0;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 100;
}

.timeline > li > .timeline-panel {
  margin-left: 60px;
  background-color: rgba(40, 40, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 5px;
}

/* Contact Form */
.form-control {
  background-color: rgba(40, 40, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-color);
}

.form-control:focus {
  background-color: rgba(60, 60, 60, 0.6);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
  color: var(--light-color);
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.9);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Media queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
}

        /* Bouton flottant */
        #chatToggleButton {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1050; /* Au-dessus de la plupart des éléments */
            width: 70px;    /* Plus grand */
            height: 70px;   /* Plus grand */
            box-shadow: 0 6px 12px rgba(177, 151, 57, 0.3); /* Ombre plus visible avec teinte dorée */
            border-radius: 50%;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }

        #chatToggleButton:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 16px rgba(177, 151, 57, 0.4);
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(177, 151, 57, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(177, 151, 57, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(177, 151, 57, 0);
            }
        }

        /* Fenêtre de chat */
        #chatWindow {
            position: fixed;
            bottom: 100px; /* Plus haut au-dessus du bouton */
            right: 20px;
            width: 400px;    /* Plus large */
            max-height: 75vh; /* Limite la hauteur un peu plus grande */
            z-index: 1040;
            border-radius: 1rem;
            box-shadow: 0 8px 20px rgba(0,0,0,0.6);
            display: none; /* Caché par défaut */
            flex-direction: column;
            background-color: rgba(40, 40, 40, 0.95);
            border: 1px solid rgba(177, 151, 57, 0.3); /* Bordure dorée */
            overflow: hidden; /* Pour les coins arrondis */
            transition: all 0.3s ease;
        }

        #chatWindow .card-header {
            background-color: rgba(30, 30, 30, 0.95);
            border-bottom: 2px solid var(--primary-color);
            padding: 15px;
        }

        #chatWindow .card-header h5 {
            display: flex;
            align-items: center;
            font-weight: 600;
        }

        #chatWindow .card-header h5:before {
            content: '';
            display: inline-block;
            width: 10px;
            height: 10px;
            background-color: #4CAF50; /* Vert pour indiquer "en ligne" */
            border-radius: 50%;
            margin-right: 8px;
        }

        /* Zone des messages */
        #chatMessages {
            flex-grow: 1;
            overflow-y: auto;
            padding: 1.2rem; /* Plus d'espace */
            min-height: 250px; /* Hauteur minimale plus grande */
            max-height: calc(75vh - 130px); /* Hauteur max dynamique */
            background-color: var(--dark-color);
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) rgba(40, 40, 40, 0.6);
        }

        #chatMessages::-webkit-scrollbar {
            width: 6px;
        }

        #chatMessages::-webkit-scrollbar-track {
            background: rgba(40, 40, 40, 0.6);
        }

        #chatMessages::-webkit-scrollbar-thumb {
            background-color: var(--primary-color);
            border-radius: 3px;
        }

        /* Style des messages */
        .message {
            margin-bottom: 1rem; /* Plus d'espace entre les messages */
            padding: 0.75rem 1rem; /* Plus d'espace interne */
            border-radius: 1rem;
            max-width: 85%;
            word-wrap: break-word;
            position: relative;
            transition: transform 0.2s ease;
        }

        .message:hover {
            transform: translateY(-2px);
        }

        .user-message {
            background-color: var(--primary-color);
            color: var(--light-color);
            margin-left: auto; /* Aligne à droite */
            text-align: right;
            border-bottom-right-radius: 0.2rem;
        }

        .bot-message {
            background-color: rgba(50, 50, 50, 0.8);
            color: var(--light-color);
            margin-right: auto; /* Aligne à gauche */
            text-align: left;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom-left-radius: 0.2rem;
        }

        .error-message {
            background-color: rgba(220, 53, 69, 0.4);
            color: #f8d7da;
            border: 1px solid rgba(220, 53, 69, 0.5);
            margin-right: auto;
            text-align: left;
        }

        #chatWindow .card-footer {
            padding: 15px;
            background-color: rgba(30, 30, 30, 0.95);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        #userInput {
            background-color: rgba(60, 60, 60, 0.8);
            border: 1px solid rgba(177, 151, 57, 0.2);
            color: var(--light-color);
        
            padding-left: 15px;
            height: 46px;
        }

        #userInput:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(177, 151, 57, 0.25);
        }

        #sendButton {

            width: 46px;
            height: 46px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .typing-indicator {
            padding: 0.5rem 1rem;
            display: flex;
            align-items: center;
            min-height: 38px;
        }

        .typing-indicator span {
            display: inline-block;
            width: 10px;
            height: 10px;
            margin: 0 3px;
            background-color: var(--secondary-light);
            border-radius: 50%;
            animation: typing 1s infinite ease-in-out;
        }
        .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
        .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes typing {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-6px); }
        }

        .particle-container {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 0;
        }
        
        .projet-header {
            position: relative;
            overflow: hidden;
        }
        
        .projet-header .container {
            z-index: 1;
        }

        .breadcrumb-item{
            color: var(--primary-color) !important;
        }
        .bg-primary{
            background-color: var(--primary-color) !important;
        }

        .navbar-nav .dropdown-menu {
            position: static;
            background: #111111;
        }
        .dropdown-item {
            color: var(--light-color);
        }
        .dropdown-item:hover {
            background-color: var(--primary-color);
            color: var(--light-color);
        }
        .dropdown-item:focus {
            background-color: var(--primary-color);
            color: var(--light-color);
        }
        .dropdown-item:active {
            background-color: var(--primary-color);
            color: var(--light-color);
        }