/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply Poppins font to all elements */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Bar */
.navbar {
    background-color: rgba(59, 130, 246, 0.9); /* Updated background color */
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styling */
.navbar .brand img {
    height: 40px; /* Adjust the height as needed */
    width: auto;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar li {
    margin-left: 20px;
}

.navbar a {
    color: #fff;
    transition: color 0.1s ease;

}

.navbar a:hover {
text-decoration: underline;}

/* Hamburger Menu (hidden on desktop) */
.navbar .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar .hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Main Content */
.content {
    flex: 1;
    padding: 20px;
    /* Removed semi-transparent background for transparency */
    margin: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center; /* Center text */
}

.content img {
    height: 100px; /* Adjust as needed */
    width: auto;
    margin-bottom: 20px;
}

.content h1 {
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.content .buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
}

/* Original .button-5 Styles for "Plus" Button */
.button-5 {
    align-items: center;
    background-clip: padding-box;
    background-color: #fa6400; /* Orange */
    border: 1px solid transparent;
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    min-height: 3rem;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;
}

.button-5:hover,
.button-5:focus {
    background-color: #fb8332;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.button-5:hover {
    transform: translateY(-1px);
}

.button-5:active {
    background-color: #c85000;
    box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
}

/* Specific Styles for "Fermer" Button */
.btn-fermer {
    background-color: #e74c3c; /* Red */
    border: 2px solid #e74c3c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-fermer:hover,
.btn-fermer:focus {
    background-color: #c0392b;
    border: 2px solid #c0392b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-fermer:active {
    background-color: #992d22;
    border: 2px solid #992d22;
    box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
}

/* Specific Styles for "Plus" Button */
.btn-plus {
    background-color: transparent;
    border: 2px solid white;
    border-radius: 20px;
}

.btn-plus:hover {
    background-color: rgb(59, 130, 246);
}

.btn-plus:active {
    background-color: rgb(59, 130, 246); /* Adjust if needed */
    /* Add any active styles if desired */
}

/* Specific Styles for "Evaluer" Button */
.btn-evaluer {
    background-color: #27ae60; /* Green */
    border: 2px solid #27ae60;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-evaluer:hover,
.btn-evaluer:focus {
    background-color: #1e8449;
    border: 2px solid #1e8449;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-evaluer:active {
    background-color: #196f3d;
    border: 2px solid #196f3d;
    box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
}

/* Specific Styles for "Commencer" Button */
.btn-commencer {
    background-color: #2980b9; /* Blue */
    border: 2px solid #2980b9;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-commencer:hover,
.btn-commencer:focus {
    background-color: #2471a3;
    border: 2px solid #2471a3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-commencer:active {
    background-color: #1f618d;
    border: 2px solid #1f618d;
    box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
}

/* Popup Styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure popup is above the navbar */
}

.popup-content-wrapper {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px; /* Increased max-width for larger screens */
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow-y: auto; /* Allow scrolling if content is too tall */
    max-height: 90vh; /* Prevent popup from exceeding viewport height */
}

.popup-header {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.popup-content p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

.popup-content img {
    max-width: 60%;
    height: auto;
    margin: 10px 0;
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.popup-compris {
    background-color: #2980b9; /* Blue */
    border: 2px solid #2980b9;
    border-radius: 20px;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popup-compris:hover,
.popup-compris:focus {
    background-color: #2471a3;
    border: 2px solid #2471a3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-compris:active {
    background-color: #1f618d;
    border: 2px solid #1f618d;
    box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
}
/* Footer */
.footer {
    background-color: transparent; /* Made transparent */
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    position: relative;
}

.footer .dedicace {
    margin-bottom: 10px;
    font-size: 0.4em;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        width: 100%;
        display: none;
        background-color: rgba(59, 130, 246, 0.9); /* Ensure consistency */
        position: absolute;
        top: 60px; /* Adjust based on navbar height */
        left: 0;
    }

    .navbar li {
        margin: 10px 0;
        text-align: center;
    }

    .navbar .hamburger {
        display: flex;
    }

    .content .buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn-evaluer,
    .btn-start,
    .btn-fermer,
    .btn-commencer {
        width: 80%;
        margin: 5px 0;
    }

    .popup-content-wrapper {
        max-width: 90%; /* Ensure popup fits smaller screens */
    }
}

/* Orientation Specific */
@media (orientation: portrait) {
    .navbar .brand img {
        height: 35px; /* Slightly smaller in portrait */
    }

    .footer img {
        height: 40px; /* Adjust for smaller screens */
    }

    .content img {
        height: 80px; /* Adjust logo size for portrait */
    }
}

@media (orientation: landscape) {
    .navbar .brand img {
        height: 45px; /* Slightly larger in landscape */
    }

    .footer img {
        height: 60px; /* Adjust for larger screens */
    }

    .content img {
        height: 120px; /* Adjust logo size for landscape */
    }
}


.bd-survey{
    background: url('/images/fond_page_blanc.png') no-repeat center center fixed;
background-size: cover; /* Cover the entire viewport */
}


/* //welcome dash css */
.custom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.import-button {
    display: flex;
    align-items: center;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.import-button i {
    margin-left: 10px; /* Space between text and icon */
}

.import-button:hover {
    background-color: #0056b3;
}

/* welcome style */
 .custom-container {
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.custom-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.custom-icon {
    color: #4a5568;
    font-size: 1.5rem;
}

.custom-title {
    margin-left: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.custom-table-scroll {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
}

.custom-table-head {
    background-color: #f3f4f6;
}

.custom-table-header {
    cursor: pointer;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
}

.custom-table-header:hover {
    background-color: #e5e7eb;
}

.custom-table-body {
    background-color: #ffffff;
}

.custom-table-row {
    transition: background-color 0.2s ease-in-out;
}

.custom-table-row:hover {
    background-color: #f1f5f9;
}

.custom-table-cell {
    padding: 0.75rem;
    white-space: nowrap;
}

.custom-sort-icon {
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.custom-link {
    color: #4c51bf;
    transition: color 0.2s;
}

.custom-link:hover {
    color: #2b6cb0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .custom-container {
        padding: 1rem;
    }

    .custom-title {
        font-size: 1rem;
    }

    .custom-table-header, .custom-table-cell {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .custom-sort-icon {
        font-size: 0.6rem;
    }
}

#info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
}

.edit-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.edit-button:hover {
    background-color: #0056b3;
}


.styled-hr {
    margin: 3%; /* Optional: adds spacing around the line */
}
.btn-continue {
    margin-top: 15px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.btn-continue:hover {
    background-color: #0056b3;
}


    #modalDescription {
        word-wrap: break-word;
        white-space: pre-wrap; /* Preserves line breaks and wraps text */
    }




    /* Form styles */
    #msform {
        text-align: center;
        position: relative;
        margin-top: 30px;
        padding: 20px 30px;
        box-sizing: border-box;
        width: 100%;
    }

    #msform fieldset {
        background: white;
        border: 0 none;
        border-radius: 20px;
        padding: 20px 30px;
        box-sizing: border-box;
        width: 80%;
        margin: 0 10%;
        position: relative;
    }

    /* Hide all except the first fieldset */
    #msform fieldset:not(:first-of-type) {
        display: none;
    }

    /* Buttons */
    #msform .action-button {
        width: 100px;
        background: #1ea4ec;
        font-weight: bold;
        color: white;
        border: 0 none;
        border-radius: 25px;
        cursor: pointer;
        padding: 10px 5px;
        margin: 10px 5px;
    }

    #msform .action-button:hover, #msform .action-button:focus {
        box-shadow: 0 0 0 2px white, 0 0 0 3px #1ea4ec;
    }

    #msform .action-button-previous {
        width: 100px;
        background: #C5C5F1;
        font-weight: bold;
        color: white;
        border: 0 none;
        border-radius: 25px;
        cursor: pointer;
        padding: 10px 5px;
        margin: 10px 5px;
    }

    #msform .action-button-previous:hover, #msform .action-button-previous:focus {
        box-shadow: 0 0 0 2px white, 0 0 0 3px #C5C5F1;
    }

    /* Headings */
    .fs-title {
        font-size: 18px;
        text-transform: uppercase;
        color: #2C3E50;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .fs-subtitle {
        font-weight: normal;
        font-size: 13px;
        color: #666;
        margin-bottom: 20px;
    }

    /* Progress bar */
    #progressbar {
        margin-bottom: 30px;
        overflow: hidden;
        counter-reset: step;
        display: flex;
        justify-content: center;
    }

    #progressbar li {
        list-style-type: none;
        color: rgb(14, 11, 11);
        text-transform: uppercase;
        font-size: 9px;
        width: 33.33%;
        text-align: center;
        position: relative;
        letter-spacing: 1px;
    }

    #progressbar li:before {
        content: counter(step);
        counter-increment: step;
        width: 24px;
        height: 24px;
        line-height: 24px;
        display: block;
        font-size: 12px;
        color: #333;
        background: #1ea4ec;
        border-radius: 50%;
        margin: 0 auto 10px auto;
    }

    #progressbar li:after {
        content: '';
        width: 100%;
        height: 2px;
        background: #ddd;
        position: absolute;
        left: 50%;
        top: 12px;
        z-index: -1;
    }

    #progressbar li.active:before, #progressbar li.active:after {
        background: #09f02f;
        color: white;
    }

    #progressbar li:first-child:after {
        content: none;
    }

    /* Rating styles */
    .rating {
        display: flex;
        justify-content: center;
        gap: 10px;
        align-items: center;
        margin-top: 10px;
    }

    .rating input[type="radio"] {
        display: none;
    }

    .rating label {
        font-size: 16px;
        color: #333;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 5px;
        border: 1px solid #ccc;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .rating input[type="radio"]:checked + label {
        background-color: #1ea4ec;
        color: #fff;
        border-color: #1ea4ec;
    }

    .rating label:hover {
        background-color: #d9eaf7;
        color: #333;
    }

    #msform input, #msform textarea, #msform select {
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 0px;
        margin-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
        font-family: montserrat;
        color: #2C3E50;
        font-size: 13px;
    }

    #msform input:focus, #msform textarea:focus, #msform select:focus {
        box-shadow: none;
        border: 1px solid #1ea4ec;
        outline-width: 0;
        transition: all 0.5s ease-in;
    }
    .btn {
        display: inline-block;
        font-weight: 400;
        color: #858796;
        text-align: center;
        vertical-align: middle;
        user-select: none;
        background-color: transparent;
        border: 1px solid transparent;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        border-radius: 0.35rem;
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
      }

      @media (prefers-reduced-motion: reduce) {
        .btn {
          transition: none;
        }
      }

      .btn:hover {
        color: #858796;
        text-decoration: none;
      }

      .btn:focus, .btn.focus {
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
      }

      .btn.disabled, .btn:disabled {
        opacity: 0.65;
      }

      .btn:not(:disabled):not(.disabled) {
        cursor: pointer;
      }

      a.btn.disabled,
      fieldset:disabled a.btn {
        pointer-events: none;
      }

      .btn-block {
        display: block;
        width: 100%;
      }

      .btn-block + .btn-block {
        margin-top: 0.5rem;
      }

      input[type="submit"].btn-block,
      input[type="reset"].btn-block,
      input[type="button"].btn-block {
        width: 100%;
      }

      .btn-contact {
        color: #fff;
        background-color: #3b5998;
        border-color: #fff;
      }

      .btn-contact:hover {
        color: #fff;
        background-color: #30497c;
        border-color: #e6e6e6;
      }

      .btn-contact:focus, .btn-contact.focus {
        color: #fff;
        background-color: #30497c;
        border-color: #e6e6e6;
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
      }
      .btn-contact.disabled, .btn-contact:disabled {
        color: #fff;
        background-color: #3b5998;
        border-color: #fff;
      }

      .btn-contact:not(:disabled):not(.disabled):active, .btn-contact:not(:disabled):not(.disabled).active,
      .show > .btn-contact.dropdown-toggle {
        color: #fff;
        background-color: #2d4373;
        border-color: #dfdfdf;
      }

      .btn-contact:not(:disabled):not(.disabled):active:focus, .btn-contact:not(:disabled):not(.disabled).active:focus,
      .show > .btn-contact.dropdown-toggle:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
      }

      /* Modal close button */
.modal-close-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 15px;
}

.modal-close-btn:hover {
    background-color: #0056b3;
}


.rating-box {
    width: 48px;
    height: 48px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.rating-input:checked+.rating-box {
    background-color: #38a169;
    color: white;
    border-color: #38a169;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.rating-box:hover {
    background-color: #f0fff4;
    border-color: #38a169;
}
