/* ==========================================
   BENAKI - FORMULAIRE DE PROPOSITION
   ========================================== */

.propose-section {
    padding: 0 20px 45px;
    margin: 0 auto;
}

/* ==========================================
   EN-TÊTE
   ========================================== */

.propose-header {
    padding: 12px 0 25px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(11,18,32,.10);
}

.propose-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.propose-header-title h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.2;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -.5px;
}

.propose-header-title svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--pink);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.propose-header-desc {
    margin: 12px 0 18px;
    color: rgba(11,18,32,.68);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 760px;
}

.propose-header-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    background: #f3f5fa;
    border-radius: 9px;
    color: #475569;
    font-size: .85rem;
    line-height: 1.4;
}

.propose-header-note svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    stroke: var(--blue);
    stroke-width: 1.8;
    fill: none;
}

/* ==========================================
   SECTIONS DU FORMULAIRE
   ========================================== */

.propose-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Encadré de chaque étape */
.propose-fieldset {
    margin: 0;
    padding: 24px 26px 26px;
    border: 1px solid #e5eaf3;
    border-radius: 14px;
    background: #f7f9fe;
    min-width: 0;
}

/* Titre de chaque étape */
.propose-section-title {
    display: flex;
    align-items: center;
    gap: 11px;
    width: auto;
    max-width: 100%;
    padding: 8px 12px;
    margin: 0 0 5px -12px;

    background: #f7f9fe;
    border: 1px solid #e5eaf3;
    border-radius: 9px;

    font-size: 1.15rem;
    font-weight: 750;
    color: #1a1a1a;
}

.propose-fieldset {
    padding-top: 20px;
}

.propose-section-title + * {
    margin-top: 0;
}

/* Numéro de l'étape */
.propose-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 50%;
    background: #e8efff;
    color: var(--blue);
    font-size: .85rem;
    font-weight: 800;
}

/* ==========================================
   TYPES DE PROPOSITIONS
   ========================================== */

.propose-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.propose-type {
    position: relative;
    display: block;
    cursor: pointer;
    min-width: 0;
}

.propose-type input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.propose-type > span {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    padding: 17px 40px 17px 17px;
    border: 1px solid rgba(11,18,32,.13);
    background: #fff;
    border-radius: 12px;
    transition: border-color .18s, background .18s;
}

.propose-type > span::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 20px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #bac4d2;
    background: #fff;
    box-sizing: border-box;
}

.propose-type strong {
    font-size: .95rem;
    color: #1a1a1a;
    font-weight: 700;
}

.propose-type small {
    font-size: .81rem;
    line-height: 1.4;
    color: #64748b;
}

.propose-type:hover > span {
    border-color: var(--blue);
    background: #f8faff;
}

.propose-type input:checked + span {
    border-color: var(--pink);
    background: #fff6fa;
}

.propose-type input:checked + span::after {
    border: 5px solid var(--pink);
}

.propose-type input:focus-visible + span {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* ==========================================
   CHAMPS DU FORMULAIRE
   ========================================== */

.propose-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 19px;
    min-width: 0;
}

.propose-field:last-child {
    margin-bottom: 0;
}

.propose-field label {
    color: #1a1a1a;
    font-size: .91rem;
    font-weight: 650;
}

.required {
    color: var(--pink);
    font-weight: 800;
}

.propose-field input,
.propose-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #d8dee9;
    border-radius: 9px;
    background: #fff;
    color: #1a1a1a;
    font-family: inherit;
    font-size: .93rem;
    line-height: 1.5;
    transition: border-color .2s, box-shadow .2s;
}

.propose-field input {
    min-height: 46px;
}

.propose-field textarea {
    resize: vertical;
    min-height: 125px;
}

.propose-field input::placeholder,
.propose-field textarea::placeholder {
    color: #9aa4b2;
}

.propose-field input:focus,
.propose-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(39,101,238,.10);
}

.propose-field small {
    color: #788396;
    font-size: .79rem;
    line-height: 1.45;
}

/* Deux champs sur une ligne */
.propose-fields-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

/* ==========================================
   CHAMPS SPÉCIFIQUES AUX ÉVÉNEMENTS
   ========================================== */

.propose-event-fields {
    padding: 18px;
    margin: 5px 0 20px;
    background: #fff;
    border: 1px solid #e5eaf3;
    border-radius: 10px;
}

.propose-event-fields[hidden] {
    display: none;
}

/* ==========================================
   CONSENTEMENT ET ENVOI
   ========================================== */

.propose-submit-area {
    padding: 22px;
    border: 1px solid #e5eaf3;
    background: #f7f9fe;
    border-radius: 13px;
}

.propose-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    color: #475569;
    font-size: .84rem;
    line-height: 1.55;
}

.propose-consent input {
    flex: 0 0 auto;
    margin-top: 4px;
    width: 17px;
    height: 17px;
    accent-color: var(--blue);
}

.propose-consent a {
    color: var(--blue);
    text-decoration: underline;
}

.propose-submit-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #dde4ef;
}

.propose-submit-bottom p {
    margin: 0;
    color: #788396;
    font-size: .8rem;
}

.propose-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    padding: 13px 20px;
    min-height: 46px;
    font-family: inherit;
    font-size: .93rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.propose-submit-btn:hover {
    background: #174ab8;
    transform: translateY(-1px);
}

.propose-submit-btn svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ==========================================
   RESPONSIVE MOBILE
   ========================================== */

@media (max-width: 600px) {

    .propose-section {
        padding: 15px 14px 35px;
    }

    .propose-header {
        padding: 8px 0 20px;
        margin-bottom: 22px;
    }

    .propose-header-title h1 {
        font-size: 1.65rem;
    }

    .propose-header-title svg {
        width: 24px;
        height: 24px;
    }

    .propose-header-desc {
        font-size: .93rem;
    }

    .propose-types,
    .propose-fields-row {
        grid-template-columns: 1fr;
    }

    .propose-form {
        gap: 18px;
    }

    .propose-fieldset {
        padding: 18px 15px 20px;
        border-radius: 12px;
    }

    .propose-section-title {
        font-size: 1.03rem;
        margin-bottom: 17px;
        padding-bottom: 13px;
    }

    .propose-type > span {
        padding: 15px 40px 15px 15px;
    }

    .propose-event-fields {
        padding: 14px;
    }

    .propose-submit-area {
        padding: 17px;
    }

    .propose-submit-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .propose-submit-btn {
        width: 100%;
    }
}
