* {
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
}


body {
  font-family: 'Coolvetica Rg', sans-serif;
  background-color: #000000;
  color: white;
}

header {
  position: sticky;
  top: 0;
  background: #000000;
  backdrop-filter: blur(8px);
  padding: 0px 40px;
  display: flex;
  align-items: center;
  z-index: 1000;
  border-bottom: 2px solid #89CFF0;
}


nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #89CFF0;
}

.logo-link {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.logo {
  height: 70px;
  width: 80px;
  padding : 10px;
}

.footer {
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.footer-container {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.footer-line {
  width: 100vw;
  max-width: 800px;
  border: none;
  border-top: 3px solid #89CFF0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.footer-text {
  display: inline-block;
  background-color: #000000;
  padding: 0 30px;
  position: relative;
  z-index: 2;
  font-size: 15px;
}





main {
  flex-grow: 1;  
  margin-top: 70px; 

}

/* HERO Section  */

.hero {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 140px 20px;
}


.hero h2, .hero h1 {
  font-size: 50px;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 5px 5px #89CFF0;
}


.hero p {
  margin-bottom: 50px;
  font-size: 20px;
}

.boutons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 15px 25px;
  text-align: center;
  border: 2px solid #89CFF0;
  border-radius: 8px;
  color: #89CFF0;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background-color: #89CFF0;
  color: #000000;
}

.fa-circle-down { 
    display: block; 
    font-size: 48px; 
    text-align: center; 
    animation: bounce 2s infinite;
}

/* Animation de rebond */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}








/* Conteneur principal */
.connexion h2, .inscription h2{
  margin-bottom: 20px;
  font-size: 26px;
}

.flip-container {
  width: 420px;
  margin: 100px auto;
  font-family: Arial, sans-serif;
}


.flipper {
  position: relative;
  width: 100%;
}


.connexion, .inscription {
  position: relative;
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #89CFF0;
  padding: 40px 40px;
  border-radius: 14px;
  box-shadow: 0 12px 32px #89CFF0;
  text-align: center;
  color: white;
}


form input,
form button {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
}


form input {
  margin-bottom: 14px;
  background: #2a2a2a;
  color: white;
}


form button {
  margin-top: 14px;
  background: #89CFF0;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}


form button:hover {
  background: white;
  color: #89CFF0;
}


form label {
  display: block;
  margin-top: 24px;
  color: #aaa;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s;
}

form label:hover {
  color: white;
}


.connexion {
  display: block;
}

.inscription {
  display: none;
}


.show-inscription .connexion {
  display: none;
}

.show-inscription .inscription {
  display: block;
}





.add-edit-project-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.add-edit-project-section .main-title {
    color: #89CFF0;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 50px;
    text-shadow: 0 4px 4px rgba(137, 207, 240, 0.5);
}

.project-form {
    background-color: #1a1a1a;
    border: 1px solid #495057;
    border-radius: 10px;
    padding: 40px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: #f8f9fa;
}

.project-form .form-label {
    color: #adb5bd;
    font-weight: bold;
    margin-bottom: 8px;
}

.project-form .form-control,
.project-form select.form-control {
    background-color: #2c2c2c;
    border: 1px solid #495057;
    color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
}

.project-form .form-control:focus,
.project-form select.form-control:focus {
    background-color: #343a40;
    border-color: #89CFF0;
    box-shadow: 0 0 0 0.2rem rgba(137, 207, 240, 0.25);
    color: #f8f9fa;
}

.project-submit-btn {
    background-color: #89CFF0;
    border-color: #89CFF0;
    color: #000000;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.project-submit-btn:hover {
    background-color: #6fbbe0;
    border-color: #6fbbe0;
    color: #000000;
}





 /* Main Title Styles */
.main-title {
    color:rgb(255, 255, 255); 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); 
}


.card {
    background-color: #2a2a2a; 
    border: 1px solid #89CFF0; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); 
}

.card-header {
    background-color: #000 !important; 
    color: #89CFF0 !important; 
    border-bottom: 1px solid #89CFF0; 
}

.form-label-filter { 
    color:rgb(255, 255, 255); 
}

.form-control {
    background-color: #3a3a3a; 
    color: #fff; 
    border: 1px solid #89CFF0; 
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); 
}

.form-control:focus {
    background-color: #4a4a4a; 
    color: #ffffff; 
    border-color: #89CFF0; 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4); 
}

.form-check-label {
    color: #f0f0f0; 
}



.btn-primary {
    background-color:rgb(0, 0, 0); 
    border-color: #89CFF0;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3; 
    border-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); 
}

.btn-warning {
    background-color: #69a8ff; 
    border-color: #6999ff;
    color: #fff; 
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-warning:hover {
    background-color: #338486;
    border-color: #6999ff;
    box-shadow: 0 0 10px rgba(105, 178, 255, 0.5); 
}

.btn-danger {
    background-color: #dc3545; 
    border-color: #dc3545;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333; 
    border-color: #bd2130;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5); 
}

.btn-success {
    background-color: #28a745; 
    border-color: #28a745;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-success:hover {
    background-color: #218838; 
    border-color: #1e7e34;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); 
}

.btn-info {
    background-color: #17a2b8; 
    border-color: #17a2b8;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5);
}

.btn-secondary {
    background-color: #6c757d; 
    border-color: #6c757d;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.5);
}

/* Table Styles */
.table-dark {
    background-color: #2a2a2a; 
    color: #f0f0f0; 
    border: 1px solid #89CFF0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); 
}

.table-dark thead th {
    background-color: #000; 
    color: #89CFF0; 
    border-color: #89CFF0; 
}

.table-dark tbody td {
    border-color: #333; 
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #333; 
}

.table-hover tbody tr:hover {
    background-color: #444; 
}

.badge-success {
    background-color: #28a745; 
    color: #fff;
}

.badge-warning {
    background-color: #ffc107; 
    color: #212529; 
}







 

  /* Styles spécifiques à la page de détail de projet (detail_projet.php) */
.detail-projet-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #2e2e4a; 
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    color: #e0e0e0; 
}

.detail-projet-section .main-title {
    color: #89CFF0; 
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 4px 4px rgba(137, 207, 240, 0.5);
    text-align: center; 
}

.detail-subtitle {
    color: #89CFF0; 
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #89CFF0;
    padding-bottom: 5px;
    display: inline-block; 
}

.detail-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #e0e0e0; 
}

/* Styles pour la carte de détail du projet (où sont les infos) */
.detail-card {
    background-color: #1a1a2e; 
    border: 1px solid #007bff; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #e0e0e0; 
}

.card-body .text-muted {
    color: #a0a0a0 !important; 
}

.card-body h5, .card-body h6 {
    color: #e0e0e0; 
}


.detail-card .card-body h5.card-subtitle,
.detail-card .card-body h6 {
    color: #89CFF0; 
}


.media-container {
    max-width: 800px; 
    margin: 0 auto; 
}

.carousel-image, .carousel-video {
    width: 100%;
    height: 450px; 
    object-fit: contain; 
    background-color: #000; 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Bouton "Retour aux projets" */
.btn-secondary { 
    background-color: #000000; 
    border-color: #000000; 
    color: #ffffff; 
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #333333; 
    border-color: #333333;
    color: #ffffff; 
}

/* Ajustements pour les petits écrans sur la page de détail */
@media (max-width: 767.98px) {
    .detail-projet-section .main-title {
        font-size: 2.2rem;
    }
    .detail-subtitle {
        font-size: 1.5rem;
    }
    .detail-text {
        font-size: 1rem;
    }
    .carousel-image, .carousel-video {
        height: 250px; 
    }
}

/* Styles pour les commentaires */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #444; 
    color: #e0e0e0; 
}

.comments-section h3 {
    color: #89CFF0; 
    margin-bottom: 25px;
    text-align: center;
}

.comment-form-container {
    background-color: #1a1a2e; 
    border: 1px solid #007bff; 
    color: #e0e0e0; 
}

.comment-form-container h4 {
    color: #89CFF0; 
}

.comment-form-group label {
    color: #e0e0e0; 
}

.comment-form-group textarea {
    background-color: #2c2c2c; 
    color: #e0e0e0; 
    border: 1px solid #007bff; 
}

.comment-form-group textarea:focus {
    background-color: #3a3a3a;
    border-color: #00aaff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.comment-submit-btn {
    background-color: #89CFF0; 
    border-color: #89CFF0;    
    color: #1a1a2e;          
    font-weight: bold;
    padding: 10px 20px;       
    border-radius: 5px;       
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; 
}

.comment-submit-btn:hover {
    background-color: #6bbfe0;
    border-color: #6bbfe0;
    color: #1a1a2e; 
}

.comment-list {
    margin-top: 30px;
}

.comment-item {
    background-color: #1a1a2e; 
    border: 1px solid #007bff; 
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.comment-author {
    font-weight: bold;
    color: #89CFF0; 
}

.comment-date {
    font-size: 0.85em;
    color: #a0a0a0;
    float: right; 
}

.comment-text {
    margin-top: 10px;
    color: #e0e0e0; 
    white-space: pre-wrap; 
}




.connexion h2, .inscription h2 {
  margin-bottom: 20px;
  font-size: 26px;
  position: relative; 
  z-index: 1; 
}

.flip-container {
  width: 420px;
  margin: 0px auto; 
  display: flex;
  align-items: center;
  min-height: calc(100vh - 70px); 
}

.flipper {
  position: relative;
  width: 100%;
}

.connexion, .inscription {
  position: relative;
  width: 100%;
  background: #1e1e1e; 
  border: 1px solid #89CFF0; 
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 12px 32px #89CFF0;
  text-align: center;
  color: white;
  box-sizing: border-box; 
  z-index: 5; 
}


form input, form button {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  font-size: 18px;
  border: none; 
  border-radius: 8px;
  outline: none; 
}

form input {
  margin-bottom: 14px;
  background: #2a2a2a;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1); 
}

form input:focus {
    border: 1px solid #89CFF0; 
    box-shadow: 0 0 5px rgba(137, 207, 240, 0.5); 
}


form button {
  margin-top: 14px;
  background: #89CFF0; 
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid #89CFF0; 
}

form button:hover {
  background: white;
  color: #89CFF0;
}

form label {
  display: block;
  margin-top: 24px;
  color: #aaa;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s;
}

form label:hover {
  color: white;
}

.connexion {
  display: none; 
}

.inscription {
  display: block; 
}

.show-inscription .connexion {
  display: none;
}

.show-inscription .inscription {
  display: block;
}

.alert {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}


.form-link { 
    color: #89CFF0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: white;
    text-decoration: underline; 
}







/* --- Media Queries pour la responsivité --- */

@media (max-width: 768px) {
  header {
    padding: 0px 20px; 
  }

  nav ul {
    gap: 15px; 
  }

  h1 {
    font-size: 40px; 
    margin-top: 30px;
  }
}

/* petits écrans (smartphones) */
@media (max-width: 480px) {
  .btn {
    width: 100%; 
  }

  nav ul {
    flex-direction: column; 
    align-items: center; 
    gap: 10px;
  }

  header {
    flex-direction: column; 
    padding: 15px 10px;
  }

  .logo-link {
    margin-right: 0;
    margin-bottom: 10px;
  }
}