body {
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #f3f3f8;
}

.gdpr {
    font-size: 0.7rem;
    text-align: justify;
}

.hidden {
    display: none;
}

.textarea-value {
    white-space: pre-wrap;
}

.alert-message {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 2%;
}

.content {
    max-width: 75rem;
    margin: 0 auto;
    padding: 3%;
}

.main {
    flex: 1;
}

.text-center {
    text-align: center;
}

/*
Contact
 */

.contact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 4%;
}

.contact-content .contact-card {
    background-color: white;
    width: 92%;
    border-radius: 35px;
    margin: 0 auto;
    margin-top: 2%;
    -webkit-box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-menu {
    background-color: #e5e5e5;
    color: #000;
}

.contact_info {
    margin: 15px;
    padding: 3px 0 0 23px;
    color: #201f24
}

.contact_info i {
    float: left;
    border-radius: 60px;
    height: 67px;
    width: 83px;
    font-size: 3em;
    padding-top: 15px;
    display: none;
}

.contact_info .contact_info-text {
    /*padding-left: 133px;*/
    text-align: left;
    position: relative
}

.contact_info .contact_info-text .title {
    font-size: 2rem;
    margin-top: 0;
    position: relative;
}

.contact_info .contact_info-text .contact_info-desc {
    margin-top: -10px;
}

.contact_info .contact_info-text .contact_info-mention {
    font-size: 0.8rem;
}

.contact_info .title:after {
    position: absolute;
    content: "";
    width: 35px;
    height: 3px;
    top: 46px;
    left: 0px;
}

/*
Homepage
 */
.concours {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 4%;
}

.concours .concours-card {
    background-color: white;
    max-width: 92%;
    border-radius: 35px;
    margin: 0 auto;
    margin-top: 2%;
    -webkit-box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.concours .img-concours {
    width: 100%;
    height: 225px;
    overflow: hidden;
    position: relative;
}

.concours .image-card {
    width: 100%;
    display: block;
    height: 100%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 35px 35px 0px 0px;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

.concours .concours-card:hover .image-card,
.concours .concours-card:focus .image-card {
    -ms-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
}

.concours .concours-card h3 {
    text-align: center;
}

.concours .concours-card span {
    color: black;
    display: block;
    padding: 2% 9%;
    text-align: justify;
}

.concours .concours-card a {
    display: block;
    width: fit-content;
    margin: 8% auto;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.login-content {
    width: 90%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 35px;
    padding: 3%;
    max-width: 500px;
    -webkit-box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2%;
    margin-bottom: 2%;
}

.login-content div {
    padding: 1% 8%;
}

.questions h2 {
    text-align: center;
}

.input-file {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.error-upload {
    color: red;
    display: block;
}

.anchor {
    text-decoration: none;
}

.input-label {
    display: inline-block;
    width: fit-content;
    background-color: unset !important;
    padding: 0.5rem 0.5rem !important;
}

.input-label span {
    display: inline-block;
    vertical-align: super;
    line-height: 0rem;
}

.input-label i {
    vertical-align: super;
}

.input-label:hover {
    border: unset;
    color: #fff !important;
}

.input-label * {
    pointer-events: none;
}

.button-validate {
    display: block;
    margin: 0 auto;
    border: none;
    background-color: #008709;
    color: white;
    padding: 1rem 3rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 16%;
}

.button-validate[disabled] {
    background-color: grey;
    cursor: unset;
}

.questions .button,
.login-content button {
    text-align: center;
    border-radius: 5px;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    font-weight: 300;
    transition: all .25s ease-out;
    border-style: solid;
    cursor: pointer;
}

input[type="password"],
input[type="email"],
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="int"],
input[type="date"],
select {
    position: relative;
    box-shadow: inset 0 0 transparent;
    background-color: #fff;
    border: 1px solid #005076;
    height: 40px;
    font-size: .9375rem;
    margin: 0;
    padding: 0em 1em;
    border-radius: .1875rem;
    color: #0a0a0a;
    font-weight: 300;
    width: 100%;
    box-sizing: border-box;
}


.checkbox label, .checkbox input {
    display: inline-block;
    width: auto;
}

form label {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

/* Reset password */

.reset-password-input {
    width: 80%;
    margin: 0 auto;
}

/* Alert */


.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-heading {
    color: inherit;
}

.alert-link {
    font-weight: 700;
}

.alert-dismissible {
    padding-right: 4rem;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
}

.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.alert-primary hr {
    border-top-color: #9fcdff;
}

.alert-primary .alert-link {
    color: #002752;
}

.alert-secondary {
    color: #383d41;
    background-color: #e2e3e5;
    border-color: #d6d8db;
}

.alert-secondary hr {
    border-top-color: #c8cbcf;
}

.alert-secondary .alert-link {
    color: #202326;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-success hr {
    border-top-color: #b1dfbb;
}

.alert-success .alert-link {
    color: #0b2e13;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-info hr {
    border-top-color: #abdde5;
}

.alert-info .alert-link {
    color: #062c33;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-warning hr {
    border-top-color: #ffe8a1;
}

.alert-warning .alert-link {
    color: #533f03;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-danger hr {
    border-top-color: #f1b0b7;
}

.alert-danger .alert-link {
    color: #491217;
}

.alert-light {
    color: #818182;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

.alert-light hr {
    border-top-color: #ececf6;
}

.alert-light .alert-link {
    color: #686868;
}

.alert-dark {
    color: #1b1e21;
    background-color: #d6d8d9;
    border-color: #c6c8ca;
}

.alert-dark hr {
    border-top-color: #b9bbbe;
}

.alert-dark .alert-link {
    color: #040505;
}

/* Login */

.login form label,
.login .checkbox {
    text-align: left;
}

/* Forms page */

.percent-completed span {
    color: black;
    width: fit-content;
    display: block;
    margin: 1% auto;
}

.percent-completed .completed {
    border-radius: 8px 8px 8px 8px !important;
}

.percent-completed .progress {
    width: 75%;
    height: 15px;
    background-color: #d5d8df;
    display: block;
    margin: 0 auto;
    max-width: 400px;
    border-radius: 8px;
}

.percent-completed .progress .percent {
    background-color: #008709;
    display: block;
    height: 15px;
    border-radius: 8px 0 0 8px;
}

.stepper-wrapper .completed {
    background-color: #008709 !important;
    border: unset !important;
    color: white !important;
}

.step-button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.step-button button {
    text-align: center;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    font-weight: 300;
    transition: all .25s ease-out;
    border-style: solid;
    cursor: pointer;
}

.stepper-wrapper {
    margin-top: auto;
    justify-content: space-between;
    margin-bottom: 20px;
    display: flex;
}

.step-title {
    font-weight: bold;
    display: block;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 3%;
}

.step-name {
    color: #000;
    display: none;
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
}

.stepper-item {
    position: relative;
    flex-direction: column;
    align-items: center;
    flex: 1;
    display: flex;
}

.stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0.5rem auto;
    background-color: #f3f3f8;
    color: #000;
}

.stepper-wrapper a {
    text-decoration: none;
}

.stepper-item.active {
    font-weight: bold;
}

.stepper-item:first-child::before {
    content: none;
}

.stepper-item:last-child::after {
    content: none;
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 1.6rem;
    left: -50%;
    z-index: 2;
}

.stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 1.6rem;
    left: 50%;
    z-index: 2;
}

.ingredients li:nth-child(n+2):before {
    content: "";
    border-top: 1px solid grey;
    width: 80%;
    margin: 0 1rem;
    display: block;
    margin-top: 10px;
}

.ingredients li {
    list-style: none;
}

.add_item_link:hover, .add_item_link_category:hover {
    cursor: pointer;
}

.ingredients {
    margin: unset;
    padding: unset;
}

.ingredients div,
.ingredients input,
.ingredients select {
    display: inline-block;
}

.ingredients div {
    width: 100%;
}

.ingredients select {
    margin-top: 6%;
}

.ingredients .remove {
    display: block;
    text-align: center;
    margin-top: 6%;
}

.ingredients li label {
    font-weight: unset;
}

.category > div{
    width: 93%;
    margin-right: 11px;
}

.forms textarea {
    width: 100%;
    height: 150px;
}

.forms label {
    font-weight: bold;
}

.questions button {
    display: block;
    margin: 1rem auto;
}

.error-upload li {
    list-style: none;
    color: red;
}

.error-upload ul {
    margin: 0;
}

.questions {
    display: block;
    margin: 0 auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 35px;
    -webkit-box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.questions .formquestions {
    display: block;
    margin: 0 auto;
    max-width: 600px;
}

nav {
    position: relative;
    background: #fefefe;
}

nav ul {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 .9375rem;
    list-style-type: disc;
    list-style-position: outside;
    line-height: 1.6;
    box-sizing: border-box;
}

nav:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
}

nav .menu-item {
    position: relative;
    text-align: center;
    margin-bottom: 0;
    list-style-type: none;
    line-height: 1.125rem;
}

nav .menu-item a {
    display: block;
    padding: 1.75rem 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0a0a0a;
    transition: all .5s ease-out;
    outline: none;
    text-decoration: none;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1005;
    background-color: rgba(10, 10, 10, .45);
    overflow-y: auto;
}

.modal-show {
    display: block;
}

.modal-dialog {
    width: 90%;
    margin: 0 auto;
    z-index: 1006;
    backface-visibility: hidden;
    padding: 1rem;
    border: 1px solid #cacaca;
    border-radius: 0;
    background-color: #fefefe;
    position: relative;
    margin-right: auto;
    margin-left: auto;
    top: 15%;
    max-width: 620px;
}

.modal-close {
    color: black;
    border: 1px solid black;
    background-color: lightgrey;
    padding: 0.6rem;
}

.modal-close:hover {
    background-color: white;
}

.modal-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.modal-validate {
    color: white;
    background-color: #008709;
    padding: 0.6rem;
    border: none;
}

.modal-validate:hover {
    color: #008709;
    border: 1px solid #008709;
    background-color: white;
}

.modal-title {
    width: 75%;
}

.modal input,
.modal label {
    display: inline-block;
}

.modal input {
    width: 5%;
    vertical-align: top;
}

.modal label {
    width: 88%;
    margin-top: unset;
}

.modal button {
    cursor: pointer;
}

.modal-footer {
    margin-top: 2rem;
}

.modal h3 {
    margin: auto;
}

.modal-header {
    padding-bottom: 15px;
}

.modal .modal-body {
    margin: 0 auto;
    color: black;
}

/*@media screen and (min-width: 768px) {
    .content {
        max-width: 70rem;
    }
}*/

@media screen and (min-width: 992px) {

    .contact_info .contact_info-text {
        padding-left: 133px;
    }

    .concours {
        flex-direction: row;
    }

    .contact_info {
        padding: 22px 0 0 27px
    }

    .concours .concours-card {
        max-width: 30%;
        margin: 0 2%;
        padding-bottom: 6%;
    }

    .contact_info i {
        display: block;
    }

    .contact-content {
        flex-direction: row;
    }

    .step-name {
        display: block;
    }

    .contact-content .contact-card {
        max-width: 45%;
        margin: 0 2%;
    }

    /*.stepper-item.completed::after {
        position: absolute;
        content: "";
        width: 100%;
        top: 1.6rem;
        left: 50%;
        z-index: 3;
    }*/

    nav ul {
        width: 80%;
    }

    .ingredients .ingredient div  > div:nth-child(2),
    .ingredients .ingredient div  > div:nth-child(3),
    .ingredients .ingredient div  > div:nth-child(4){
        width: 13%;
        margin-left: 2%;
    }

    .ingredients .category input{
        background-color: antiquewhite;
    }

    .ingredients .ingredient > div > label:first-child {
        display: none;
    }

    .ingredients .ingredient div  > div:first-child {
        width: 51%;
    }

    .ingredients .ingredient > div:first-child {
        width: 95%;
    }

    .ingredients li > div:first-child {
        width: 95%;
    }

    .ingredients .remove {
        display: inline-block;
        text-align: center;
        cursor: pointer;
    }

    .ingredients li:nth-child(n+2):before {
        display: none;
    }

    .concours .concours-card a {
        position: absolute;
        bottom: 0;
        left: 34%;
    }

    .button-validate {
        margin-top: 3%;
    }
}

@media screen and (min-width: 500px) {
    .button-validate {
        margin-top: 10%;
    }
}

@media screen and (min-width: 600px) {
    .button-validate {
        margin-top: 8%;
    }
}

@media screen and (min-width: 900px) {
    .button-validate {
        margin-top: 2%;
    }
}

.sun-editor-editable {
    font-family: "Lato", sans-serif !important;
    font-size: 1rem !important;
}

.sun-editor{
    width: 100% !important;
}

/* ===== Évolutions 2026-11 : espace candidat ===== */

/* Bandeau "Mode administrateur" (admin connecté en tant que candidat) */
.admin-mode-banner {
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 0.6rem 1rem;
    background-color: #fff3cd;
    border-bottom: 2px solid #e0a800;
    color: #664d03;
    text-align: center;
    font-size: 0.95rem;
}

.admin-mode-banner a {
    color: #664d03;
    font-weight: bold;
    text-decoration: underline;
}

/* Légende (aide) d'une question */
.formquestions .help-text,
.formquestions .question-help {
    display: block;
    margin: 0.25rem 0 0.75rem;
    color: #555;
    font-size: 0.9rem;
    font-style: italic;
    white-space: pre-line;
}

/* Question fichier */
.file-question {
    margin: 1.25rem 0;
}

.file-question .anchor {
    display: block;
    height: 0;
}

/* Fichiers déjà déposés (question photos) */
.existing-files {
    margin: 0.5rem 0 0.75rem;
}

.existing-files-title {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.existing-files ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.existing-file {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 160px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-size: 0.85rem;
    word-break: break-all;
}

.existing-file.is-deleted {
    opacity: 0.5;
}

.existing-file.is-deleted .existing-file-name {
    text-decoration: line-through;
}

.existing-file-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
}

.existing-file-icon {
    font-size: 2.5rem;
    color: #888;
}

.forms label.existing-file-delete {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: normal;
    color: #b02a37;
    cursor: pointer;
}

/* Zone glisser-déposer */
.upload-dropzone {
    margin-top: 0.5rem;
}

.forms label.upload-dropzone-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1.25rem 1rem;
    border: 2px dashed #b8c4cc;
    border-radius: 12px;
    background-color: #f7fafc;
    text-align: center;
    font-weight: normal;
    cursor: pointer;
    transition: border-color .2s ease-out, background-color .2s ease-out;
}

.upload-dropzone.is-dragover .upload-dropzone-area {
    background-color: #eef6fb;
}

.upload-dropzone-area i {
    font-size: 1.8rem;
}

.upload-dropzone-title {
    font-weight: bold;
}

.upload-dropzone-browse {
    text-decoration: underline;
}

.upload-dropzone-hint {
    font-size: 0.85rem;
    color: #666;
}

.upload-dropzone-error p,
.upload-dropzone-status {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
}

.upload-dropzone-error p {
    color: #c00;
}

.upload-dropzone-status {
    color: #555;
    font-style: italic;
}

.upload-dropzone-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.upload-dropzone-preview {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 160px;
    padding: 0.5rem;
    border: 1px solid #cfe3d0;
    border-radius: 8px;
    background: #f3faf3;
    font-size: 0.85rem;
    word-break: break-all;
}

.upload-dropzone-preview img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
}

.upload-dropzone-preview-icon {
    font-size: 2.5rem;
    color: #888;
}

.questions button.upload-dropzone-remove {
    margin: 0;
    padding: 0.2rem 0.5rem;
    border: 1px solid #b02a37;
    border-radius: 4px;
    background: #fff;
    color: #b02a37;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Étape 0 : guide du concours */
.guide-step {
    text-align: center;
}

.guide-intro {
    max-width: 700px;
    margin: 0 auto 1rem;
}

.guide-viewer {
    width: 100%;
    margin: 0 auto;
}

.guide-frame {
    width: 100%;
    height: 80vh;
    min-height: 480px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.guide-fallback {
    font-size: 0.9rem;
    margin: 0.75rem 0;
}

.guide-checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.guide-checkbox input {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
}

form .guide-checkbox label {
    display: inline-block;
    width: auto;
    margin-top: 0;
    cursor: pointer;
}

.guide-actions .button {
    display: inline-block;
    text-decoration: none;
}

/* Concours clôturé */
.competition-closed {
    text-align: center;
    max-width: 760px;
}

.competition-closed-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.competition-closed-actions .button {
    display: inline-block;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border-style: solid;
    text-decoration: none;
}

/* Récapitulatif : texte riche (tableaux collés depuis Excel ramenés à la largeur de la page) */
.rich-text-answer {
    margin: 0.5rem 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    overflow-x: auto;
}

.rich-text-answer table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.rich-text-answer td,
.rich-text-answer th {
    border: 1px solid #ccc;
    padding: 0.25rem 0.4rem;
    white-space: normal;
    word-break: break-word;
}

.sun-editor-editable table {
    width: 100% !important;
    max-width: 100%;
    table-layout: auto;
}

.sun-editor-editable td,
.sun-editor-editable th {
    white-space: normal !important;
}
