
/* ========================================
   FESTIVAL GEMBLOUX — HOME
   Palette : bleu nuit / bleu électrique
   Sans ombres
======================================== */

.hero__logo {
    display: block;
    width: 70px;
    height: auto;
    margin: 0 auto 20px;
    object-fit: contain;
}

.page {
    min-height: 100vh;
    padding: 56px 24px 28px;
    box-sizing: border-box;

    background:
            radial-gradient(
                    ellipse at 12% 0%,
                    #dce9ff 0%,
                    transparent 42%
            ),
            linear-gradient(
                    145deg,
                    #f4f7ff 0%,
                    #edf3ff 55%,
                    #e6efff 100%
            );

    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.page *,
.page *::before,
.page *::after {
    box-sizing: border-box;
}

.page__container {
    width: 100%;
    max-width: 660px;
    margin: 0 auto;
}

.hero {
    margin: 0 auto 34px;
    color: var(--accent-dark);
    text-align: center;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1.5px;
}

.hero h1 span {
    display: block;
    margin-top: 7px;
    color: var(--accent);
}

.hero > p {
    max-width: 490px;
    margin: 0 auto;
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

.survey {
    width: 100%;
    padding: 34px;
    border: 1px solid #dce5f2;
    border-radius: 18px;
    background: rgb(255 255 255 / 0.66);
}

.survey__header {
    padding-bottom: 23px;
    border-bottom: 1px solid #e3eaf5;
}

.survey__header h2 {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.survey__header p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
}

.survey__form {
    display: flex;
    flex-direction: column;
    gap: 27px;
    padding-top: 27px;
}

.question {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.question > label,
.question > legend {
    display: block;
    width: 100%;
    padding: 0;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.question__number {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    vertical-align: middle;
}

.required {
    color: var(--require);
}

.optional {
    margin-left: 5px;
    color: var(--text);
    font-size: 11px;
    font-weight: 400;
}

.question > input,
.input-suffix input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 51px;
    padding: 0 14px;
    border: 1px solid #dce5f2;
    border-radius: 9px;
    outline: none;
    background: #fbfcff;
    color: var(--accent);
    font: inherit;
    font-size: 14px;
    transition:
            border-color 180ms ease,
            background 180ms ease;
}

.question > input::placeholder,
.input-suffix input::placeholder {
    color: var(--text);
    opacity: 70%;
}

.question > input:hover,
.input-suffix input:hover {
    border-color: var(--accent-light);
}

.question > input:focus,
.input-suffix input:focus {
    border-color: #3478f6;
    background: #ffffff;
}

.question > input:focus-visible,
.input-suffix input:focus-visible {
    outline: 3px solid #dce8ff;
    outline-offset: 2px;
}

.question small {
    margin-top: -3px;
    color: var(--text);
    font-size: 11px;
    line-height: 1.7;
}

.input-suffix {
    position: relative;
    width: 100%;
}

.input-suffix input {
    padding-right: 43px;
}

.input-suffix > span {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--text);
    transform: translateY(-50%);
    pointer-events: none;
}

.question > select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 51px;
    padding: 0 42px 0 14px;

    border: 1px solid #dce5f2;
    border-radius: 9px;

    background-color: #fbfcff;
    color: var(--accent);

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
    outline: none;

    /* Flèche personnalisée */
    appearance: none;
    -webkit-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2326405c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;

    transition:
        border-color 180ms ease,
        background-color 180ms ease;
}

/* Couleur du texte indicatif */
.question > select:invalid {
    color: var(--text);
    opacity: 0.85;
}

/* Survol */
.question > select:hover {
    border-color: var(--accent-light);
}

/* Champ sélectionné */
.question > select:focus {
    border-color: #3478f6;
    background-color: #ffffff;
}

/* Accessibilité clavier */
.question > select:focus-visible {
    outline: 3px solid #dce8ff;
    outline-offset: 2px;
}

/* Options de la liste */
.question > select option {
    background-color: #ffffff;
    color: var(--accent-dark);
    padding: 10px;
}

/* ========================================
   CHOIX MULTIPLES
======================================== */

.choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.choice {
    display: block;
    min-width: 0;
    cursor: pointer;
}

.choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.choice__card {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 12px;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    background: #ffffff;
    transition:
            border-color 180ms ease,
            background 180ms ease;
}


.choice input:checked + .choice__card {
    border-color: var(--accent);
    background: #edf3ff;
}

.choice input:focus-visible + .choice__card {
    outline: 3px solid #c6d9ff;
    outline-offset: 3px;
}

.choice__icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 8px;
    background: #eaf1ff;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
}

.choice strong {
    color: var(--accent-dark);
    font-size: 12px;
    line-height: 1.5;
}

.choice small {
    margin: 0;
    color: var(--text);
    font-size: 10px;
    line-height: 1.6;
}

.consent {
    gap: 13px;
    padding: 18px;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    background: #f6f8fd;
}

.consent p {
    margin: 0;
    color: #71809a;
    font-size: 12px;
    line-height: 1.8;
}

.consent__label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.7;
}

.consent__label input {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin: 3px 0 0;
    accent-color:var(--accent);
}

.consent > small {
    margin-top: 0;
}

.consent a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.consent a:hover {
    color: var(--accent-dark);
    text-decoration: none;
}

.consent a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

.submit-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid var(--text);
    border-radius: 9px;
    background: var(--accent);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease;
}

.submit-button:hover {
    background: var(--accent-dark);
}

.submit-button:focus-visible {
    outline: 3px solid #c6d9ff;
    outline-offset: 3px;
}

.submit-button:active {
    background: var(--accent);
}

.submit-button span {
    font-size: 20px;
}

.survey__footer {
    margin: -9px 0 0;
    color: var(--text);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.page__footer {
    padding-top: 25px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

/* ========================================
   TABLETTES
======================================== */

@media (max-width: 768px) {
    .page {
        padding: 40px 18px 24px;
    }

    .page__container {
        max-width: 620px;
    }

    .survey {
        padding: 28px;
    }
}

/* ========================================
   SMARTPHONES
======================================== */

@media (max-width: 600px) {
    .page {
        padding: 29px 12px 20px;
    }

    .hero {
        margin-bottom: 25px;
        padding: 0 3px;
    }

    .hero h1 {
        margin-bottom: 14px;
        font-size: clamp(28px, 7.5vw, 36px);
        letter-spacing: -1px;
    }

    .hero h1 span {
        margin-top: 5px;
    }

    .hero > p {
        font-size: 13px;
        line-height: 1.75;
    }

    .survey {
        padding: 23px 17px;
        border-radius: 15px;
    }

    .survey__header {
        padding-bottom: 19px;
    }

    .survey__header h2 {
        font-size: 22px;
        line-height: 1.35;
    }

    .survey__header p {
        font-size: 12px;
    }

    .survey__form {
        gap: 24px;
        padding-top: 23px;
    }

    .question {
        gap: 10px;
    }

    .question > label,
    .question > legend {
        font-size: 13px;
        line-height: 1.75;
    }

    .question__number {
        width: 26px;
        height: 26px;
        margin-right: 5px;
        font-size: 10px;
    }

    .question > input,
    .input-suffix input {
        height: 50px;
        font-size: 16px;
    }

    .question > select {
        height: 50px;
        padding-left: 12px;
        padding-right: 38px;
        font-size: 16px;
        background-position: right 12px center;
    }

    .choices {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .choice__card {
        min-height: 75px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px;
    }

    .choice__card > span:nth-child(2) {
        flex: 1;
    }

    .choice strong {
        font-size: 12px;
    }

    .choice small {
        font-size: 11px;
    }

    .consent {
        padding: 14px;
    }

    .consent__label {
        gap: 10px;
    }

    .consent__label input {
        width: 19px;
        height: 19px;
    }

    .submit-button {
        min-height: 52px;
        padding: 13px;
        font-size: 13px;
    }

    .page__footer {
        padding: 20px 8px 0;
        font-size: 11px;
    }
}

/* ========================================
   PETITS SMARTPHONES
======================================== */

@media (max-width: 360px) {
    .page {
        padding-right: 9px;
        padding-left: 9px;
    }

    .survey {
        padding: 20px 13px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .survey__header h2 {
        font-size: 20px;
    }

    .question > select {
        padding-left: 10px;
        padding-right: 34px;
    }

    .question > label,
    .question > legend {
        font-size: 12px;
    }
}

/* ========================================
   ACCESSIBILITE
======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
