:root {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --accent-color: #E74C3C;
    --text-color: #ECF0F1;
    --bg-color: #162d41;
    --bg-filterd: rgba(52, 73, 94, 0.42);
    --shadow-color: #0000001A;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    text-align: center;
}

h1, h2 {
    color: var(--secondary-color);
}


html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
}

main {
    flex: 1; /* Permet au contenu de prendre tout l’espace disponible */
}

footer {
    background: #333;
    color: white;
    padding: 10px;
    text-align: center;
}


.navbar {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.navbar-brand, .nav-link {
    color: var(--text-color) !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-item {
    margin: 0 15px; /* Ajuste l'espace entre les liens */
}


.dropdown-menu {
    background-color: var(--primary-color);
}

.dropdown-item {
    color: var(--text-color) !important;
}

.dropdown-item:hover {
    color: black !important;
}

.logo-text {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0;
}

.login, .error, .construction {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-container {
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

.error-container, .construction-container {
    text-align: center;
    padding: 40px;
    width: 90%;
    max-width: 500px;
}

.login-container, .error-container, .construction-container  {
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.gradient-text, .logo-text {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card {
    background-color: var(--primary-color);
    border: none;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
}

.btn-custom {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
}

.btn-custom:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.selectType {
    margin-bottom: 0.5rem;
    color: #2C3E50 !important;
}
.select2-dropdown {
    color: #2C3E50 !important;
}

.card-title, .linkdin {
    color: var(--secondary-color);
}

.card-text {
    color: #bdc3c7;
}

.file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.form-control-custom {
    position: absolute;
    opacity: 0;
    width: auto !important;
    height: 100%;
    cursor: pointer !important;
}

.card {
    background-color: var(--primary-color);
    border-radius: 10px;
 }

.form-label {
    color: var(--text-color);
}

.alert {
    background-color: var(--accent-color);
    border-color: #C0392B;
    color: var(--text-color);
}

.file-upload-wrapper:hover .btn-custom {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.form-error {
    color: red;
    font-weight: bold;
}

.custom-file-button {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    padding: .375rem .75rem;
    border-radius: .25rem;
    width: 100px;
}

.custom-file-text {
    flex: 1;
    padding: .375rem .75rem;
    border: 1px solid #ced4da;
    color: #495057;
    border-radius: .25rem;
    background-color: #fff;
    height: calc(1.5em + .75rem + 2px);
}

/* Icônes de technologies */
.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-icons i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tech-icons i:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.legalNotice, .faq, .cgv, .privacyPolicy {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    margin-top: 100px;
    margin-bottom: 100px !important; 
}

.contact, .projects, .notices {
    margin-top: 100px;
    margin-bottom: 100px !important;
}

.project-detail {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px var(--shadow-color);;
}

.tech-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
}

.tech-list li {
    margin: 0;
}

.tech-badge {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 15px;
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.tech-badge:hover {
    transform: scale(1.2);
    background-color: var(--accent-color);;
}

.screenshot {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.screenshot img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.error-icon {
    font-size: 80px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    
}

.error-code {
    font-size: 24px;
    color: var(--accent-color);
    margin-top: 20px;
}

.construction-icon {
    font-size: 80px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-30px);}
    60% {transform: translateY(-15px);}
}


@media (min-width: 768px) {
    .contact .row, .notices .row {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* .notices-card {
    padding-left: 21px !important;
    padding-right: 0 !important;
} */

.header {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content img, 
.header-content h1, 
.header-content p, 
.header-content a {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.header-content img { animation-delay: 0.2s; }
.header-content h1 { animation-delay: 0.4s; }
.header-content p { animation-delay: 0.6s; }
.header-content a { animation-delay: 0.8s; }

.bg-header {
    position: relative;
    background: url('/images/header-background.webp') no-repeat center center/cover;
    height: 30vh;
    display: flex;
    align-items: center;
}

.bg-header-filter {
    background: var(--bg-filterd);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#star-rating .star {
    font-size: 2rem;
    cursor: pointer;
}

.star-rating .fa-star {
    font-size: 1.5rem;
    cursor: default;
}

#star-rating .star.selected,
#star-rating .star:hover,
#star-rating .star.hovered,
.star-filled  {
    color: var(--accent-color);
}

#star-rating .star, .star-empty {
    color: var(--text-color);
}

#noticesCarousel .carousel-inner {
    overflow: hidden;
}

#noticesCarousel .carousel-item {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#noticesCarousel .carousel-item.active {
    transform: translateX(0);
}

#noticesCarousel .carousel-item-next {
    transform: translateX(-100%);
}

#noticesCarousel .carousel-item-prev {
    transform: translateX(100%);
}

#noticesCarousel .carousel-item-next.carousel-item-start,
#noticesCarousel .carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

#noticesCarousel .carousel-item-next:not(.carousel-item-start),
#noticesCarousel .active.carousel-item-end {
    transform: translateX(100%);
}

#noticesCarousel .carousel-item-prev:not(.carousel-item-end),
#noticesCarousel .active.carousel-item-start {
    transform: translateX(-100%);
}

@media (max-width: 767.98px) {
    .carousel-item .col-12:nth-child(n+2) {
        display: none;
    }
}