
body {
    height: 100%;
    margin: 0 !important; 
    padding: 0 !important; 
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fa00fa8f, #fff7ae); 
    background-repeat: no-repeat;
    background-size: cover;
    color: #FBFAF5; 
}


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


h1, h2, h3, h4, h5, h6 {
    color: #fff7ae; 
    text-shadow: 0 0 8px rgba(255, 247, 174, 0.7); 
}
#btnaddprojet {
    color: #fff7ae !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #fff7ae !important;
    transition: all 0.3s ease !important;
}
#btnaddprojet:hover {
    background-color: #fff7ae !important;
    color: #1c1c1c !important;
    box-shadow: 0 0 15px rgba(255, 247, 174, 0.5) !important;
}

a {
    color: #fff7ae;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #fa00fa8f;
}


hr {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.5;
    margin: 3rem 0;
}



.btn-primary {
    background-color: #fa00fa8f !important; 
    border-color: #fa00fa8f !important; 
    font-weight: bold;
    transition: all 0.3s ease;
    color: white !important; 
}
.btn-primary:hover {
    background-color: #fa00fa !important; 
    border-color: #fa00fa !important; 
    box-shadow: 0 0 15px rgba(250, 0, 250, 0.5) !important; 
    color: white !important;
}

.btn-secondary { 
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #fff7ae !important; 
    color: #fff7ae !important;
    transition: all 0.3s ease !important;
}
.btn-secondary:hover {
    background-color: #fff7ae !important; 
    color: #1c1c1c !important; 
    box-shadow: 0 0 15px rgba(255, 247, 174, 0.5) !important; 
}

.btn-danger {
    background-color: #dc3545 !important; 
    border-color: #dc3545 !important;
    color: white !important;
    transition: all 0.3s ease !important;
}
.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.btn-validate { 
    background-color: #fa00fa8f !important;
    border-color: #fa00fa8f !important;
    color: white !important;
    transition: all 0.3s ease !important;
}
.btn-validate:hover {
    background-color: #fa00fa !important;
    border-color: #fa00fa !important;
    box-shadow: 0 0 10px rgba(250, 0, 250, 0.5) !important;
    color: white !important;
}


.btn-outline-light {
    border-color: #fff7ae !important;
    color: #fff7ae !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    text-decoration: none !important;
    border-radius: 8px !important; 
}
.btn-outline-light:hover {
    background-color: #fff7ae !important;
    color: #1c1c1c !important;
    box-shadow: 0 0 15px rgba(255, 247, 174, 0.5) !important;
}

.btn-projets { 
  display: inline-block !important;
  margin-top: 1rem !important; /* Ajusté */
  padding: 0.8rem 2rem !important;
  border: 2px solid #fff7ae !important;
  color: #fff7ae !important;
  font-weight: bold !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  transition: background 0.3s ease !important;
}
.btn-projets:hover {
  background: #fff7ae !important;
  color: #1a1a1a !important;
}



.form-control {
    background-color: rgba(255, 255, 255, 0.1) !important; 
    border: 1px solid #fff7ae !important;
    color: white !important; 
    margin-bottom: 15px !important;
    border-radius: 8px !important; 
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important; 
}
.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2) !important; 
    border-color: #fa00fa8f !important; 
    box-shadow: 0 0 0 0.25rem rgba(250, 0, 250, 0.25) !important; 
    color: white !important;
}
.form-label {
    color: #fff7ae !important; 
    margin-bottom: 0.5rem !important;
    display: block !important;
}



.main-header {
    background: rgba(20, 10, 30, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}


.navbar-brand.text-brand {
    color: #fff7ae !important; 
    font-size: 2rem !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(255, 247, 174, 0.6) !important; 
    letter-spacing: 2px !important;
    transition: color 0.3s ease, text-shadow 0.3s ease, letter-spacing 0.3s ease !important;
}
.navbar-brand.text-brand.logo-hover:hover { 
    color: white !important; 
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4) !important; 
    letter-spacing: 2px !important;
}


.nav-link {
    color: #fff7ae !important;
    font-size: 1.05rem !important;
    margin-left: 1.2rem !important;
    position: relative !important;
    transition: color 0.3s ease !important;
}
.nav-hover::after {
    content: '' !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #fff7ae !important;
    transition: width 0.3s ease !important;
}
.nav-hover:hover::after {
    width: 100% !important;
}



#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
#hero::before { 
    content: '' !important; 
    position: absolute !important; 
    top: -50px !important; 
    left: -50px !important; 
    width: 200% !important; 
    height: 200% !important; 
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1), transparent 70%) !important; 
    animation: rotateBg 30s linear infinite !important; 
    z-index: 1 !important; 
    display: none !important; 
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}
.text-accent {
    color: #fff7ae; 
}
.profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff7ae;
    box-shadow: 0 0 25px rgba(106, 13, 173, 0.6);
    transition: transform 0.3s ease;
}
.profile-img:hover {
    transform: scale(1.05);
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



.projets-section {
    padding: 5rem 2rem !important; 
    color: white !important; 
    text-align: center !important;
    min-height: 100vh !important; 
}
.projets-section h2 {
    font-size: 2.5rem !important;
    color: #fff7ae !important;
    display: inline-block !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 12px !important;
    margin-bottom: 3rem !important;
    text-shadow: 0 0 8px rgba(255, 247, 174, 0.7) !important;
}
.projets-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
}
.projet-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid #fff7ae !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    max-width: 300px !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
}
.projet-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 0 30px rgba(255, 247, 174, 0.7) !important;
}
.projet-card img {
    width: 100% !important;
    height: 180px !important; 
    object-fit: cover !important; 
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    transition: transform 0.3s ease !important;
}
.projet-card:hover img {
    transform: scale(1.05) !important;
}
.projet-card h3 {
    color: #fff7ae !important;
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem !important;
}
.projet-card p {
    flex-grow: 1 !important; 
    color: #FBFAF5 !important; 
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    text-align: left !important;
}



.login-container {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 400px !important;
    color: white !important;
}
.login-container h2 {
    color: #fff7ae !important;
    margin-bottom: 25px !important;
    font-size: 2rem !important;
}
.help-block { 
    color: #ffcccc !important;
    font-size: 0.9em !important;
    margin-top: -10px !important;
    margin-bottom: 10px !important;
    display: block !important;
    text-align: left !important;
}
.error-message { 
    color: #dc3545 !important; 
    margin-top: 10px !important;
    font-weight: bold !important;
    text-align: center !important;
}
.back-to-home {
    color: #fff7ae !important;
    text-decoration: none !important;
    margin-top: 20px !important;
    display: inline-block !important;
    transition: color 0.3s ease !important;
}
.back-to-home:hover {
    color: #fa00fa8f !important;
}



.table-custom {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 10px !important;
    overflow: hidden !important; 
}
.table-custom thead {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff7ae !important;
}
.table-custom tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}
.table-custom th, .table-custom td {
    border-color: rgba(255, 255, 255, 0.2) !important;
    padding: 1rem !important;
}



.container.mt-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
    min-height: calc(100vh - 100px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 960px !important;
}

/* Boîte principale du projet */
.project-detail {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid #fff7ae !important;
    border-radius: 12px !important;
    padding: 2.5rem !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2) !important;
    color: #1a1a1a !important; 
    width: 100% !important;
}


.project-detail h1,
.project-detail h3 {
    color: #fff7ae !important; 
}


.project-detail p strong {
    color: #fff7ae !important; 
}


.project-main-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 2.5rem auto !important;
    border: 3px solid #fff7ae !important;
    border-radius: 8px !important;
    object-fit: contain !important; 
    box-shadow: 0 0 15px rgba(255, 247, 174, 0.5) !important;
}


.project-detail p {
    color: #FBFAF5 ;
    line-height: 1.7 !important;
    font-size: 1.05rem !important;
}


.project-detail p.lead {
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    color: #fa00fa8f !important; 
    text-shadow: 0 0 5px rgba(250, 0, 250, 0.3) !important;
}


.project-detail strong {
    color: #fa00fa8f !important; 
}


.project-thumbnail-wrapper {
    width: 100%; 
    padding-bottom: 75%; 
    position: relative; 
    height: 0; 
    overflow: hidden; 
    border: 2px solid rgba(255, 247, 174, 0.3); 
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; 
}


.project-thumbnail-wrapper:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #fff7ae; 
    box-shadow: 0 0 15px rgba(255, 247, 174, 0.5);
}


.project-thumbnail {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 6px; 
}


.modal-content.bg-transparent {
    background-color: transparent !important;
}
.modal-header.border-0 {
    border-bottom: 0 !important;
}
.btn-close.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%) !important; 
    opacity: 0.8 !important;
    transition: opacity 0.2s ease !important;
}
.btn-close.btn-close-white:hover {
    opacity: 1 !important;
}
.modal-body.text-center #modalImage {
    max-width: 100% !important;
    height: auto !important;
    max-height: 90vh !important; 
    object-fit: contain !important; 
}





.project-thumbnail-wrapper:hover {
    transform: scale(1.03) !important;
    border-color: #fa00fa8f !important;
    box-shadow: 0 0 15px rgba(250, 0, 250, 0.5) !important;
}


.comments-section {
    margin-top: 4rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}


.comment-form-container {
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 2.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 2.5rem !important;
    color: #1a1a1a !important; 
}
.comment-form-container h4 {
    color: #fa00fa8f !important;
    margin-bottom: 1.5rem !important;
}


.comments-list .card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 247, 174, 0.3) !important;
    border-radius: 10px !important;
    color: #1a1a1a !important; 
    margin-bottom: 1.5rem !important;
}
.comments-list .card-body {
    padding: 1.5rem !important;
}
.comments-list .card-text {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    color: #FBFAF5 !important; 
}
.comments-list .card-subtitle {
    font-size: 0.8em !important;
    color: rgba(0, 0, 0, 0.6) !important;
    margin-top: 0.75rem !important;
}
.comments-list .card-subtitle strong {
    color: #fa00fa8f !important;
}


.alert-info {
    background-color: rgba(250, 0, 250, 0.1) !important;
    border-color: #fa00fa8f !important;
    color: #fff7ae !important;
    text-shadow: 0 0 5px rgba(255, 247, 174, 0.3) !important;
    padding: 1.5rem !important;
    border-radius: 10px !important;
}



.modal-content.bg-transparent {
    background-color: transparent !important;
    border: none !important; 
}
.modal-header.border-0 {
    border-bottom: 0 !important;
}


.btn-close.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%) !important; 
    opacity: 0.8 !important;
    transition: opacity 0.2s ease !important;
}
.btn-close.btn-close-white:hover {
    opacity: 1 !important;
}


.modal-body.text-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important; 
    height: 100% !important; 
    width: 100% !important; 
}


#modalImage {
    max-width: 95vw !important; 
    max-height: 95vh !important; 
    width: auto !important; 
    height: auto !important; 
    object-fit: contain !important; 
    display: block !important; 
    margin: auto !important; 
}


.modal-dialog {
    max-width: 100vw !important; 
    width: 100% !important;
    margin: 0 !important; 
    height: 100% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
}

.modal-fullscreen { 
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    margin: 0;
}



@media (max-width: 768px) {
    
    .nav-link {
        margin-left: 0.8rem !important;
        font-size: 1rem !important;
    }
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    .profile-img {
        width: 180px !important;
        height: 180px !important;
    }

    
    .project-detail {
        padding: 1.5rem !important;
    }
    .project-main-image {
        margin-bottom: 1.5rem !important;
    }
    .comment-form-container {
        padding: 1.5rem !important;
    }
    .comments-list .card-body {
        padding: 1rem !important;
    }
    .comments-list .card-text {
        font-size: 1rem !important;
    }
    .comments-list .card-subtitle {
        font-size: 0.75em !important;
    }
}
footer {
      background-color: #1c1c2b;
      color: #fff7ae;
      font-size: 0.9rem;
      letter-spacing: 1px;
      padding: 1rem 0;
      text-align: center;
      margin-top: auto;
    }
        .register-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: white;
    margin: auto; 
    max-width: 500px; 
    width: 100%; 
     margin-top:100px; 
    margin-bottom: 50px;
}
.message-erreur {
    color: #dc3545; 
    font-size: 0.875em; 
    margin-top: 0.25rem; 
    display: block; 
}


.form-control.is-invalid {
    border-color: #dc3545; 
}
        .login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: white;
    margin: auto; 
    max-width: 500px; 
    width: 100%; 
    margin-top: 100px; 
    margin-bottom: 250px;
}
@media (max-width: 768px) {
      .nav-link {
        margin-left: 0.8rem;
        font-size: 1rem;
      }
    }

    #contact {
      padding: 5rem 2rem;
      color: #fff7ae;
      text-align: center;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      
    }
    #contact h2 {
      font-size: 2.5rem;
      color: #fff7ae;
      display: inline-block;
      padding: 0.5rem 1.2rem;
      border-radius: 12px;
      margin-bottom: 3rem;
      text-shadow: 0 0 8px rgba(255, 247, 174, 0.7);
    }
    #contact form {
      max-width: 500px;
      margin: 0 auto;
      text-align: left;
    }
    #contact label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 600;
    }
    #contact input,
    #contact textarea {
      width: 100%;
      padding: 0.8rem;
      margin-bottom: 1.2rem;
      border: 1px solid #fff7ae;
      border-radius: 8px;
      background: transparent;
      color: #fff7ae;
      font-size: 1rem;
      resize: vertical;
      transition: border-color 0.3s ease;
    }
    #contact input:focus,
    #contact textarea:focus {
      border-color: #fa00fa8f;
      outline: none;
      box-shadow: 0 0 8px rgba(250, 0, 250, 0.6);
    }
    #contact button {
      background-color: #fa00fa8f;
      border: none;
      color: #fff7ae;
      font-weight: bold;
      padding: 0.75rem 1.8rem;
      font-size: 1.1rem;
      border-radius: 12px;
      cursor: pointer;
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
      display: block;
      margin: 0 auto;
    }
    #contact button:hover {
      background-color: #d600d6cc;
      box-shadow: 0 0 15px rgba(250, 0, 250, 0.8);
    }
#lestableaux,
#lestableaux table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
   background: linear-gradient(135deg, #fa00fa8f, #fff7ae);
    border-radius: 12px;
    overflow: hidden;
}

#lestableaux th,
#lestableaux td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #fff7ae;
    color: #FBFAF5;
    background: rgba(106, 13, 173, 0.18);
}

#lestableaux th {
    background: #fa00fa8f;
    color: #fff7ae;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 2px solid #fff7ae;
}

#lestableaux tr:last-child td {
    border-bottom: none;
}

#lestableaux tr:hover td {
    
    color: #fff7ae;
    transition: background 0.2s;
}


@media (max-width: 768px) {
    #lestableaux,
    #lestableaux table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #lestableaux table {
        min-width: 600px;
    }
}