/* =========================================================
   Contact Form — Feel Events
   Maquette : node 330-896
   ========================================================= */

.fe-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* ── Colonne gauche ────────────────────────────────────── */
.fe-contact-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.fe-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ── Champ générique ───────────────────────────────────── */
.fe-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fe-field label,
.fe-field>label {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: #2c2c2c;
    display: block;
    margin-bottom: 0;
}

/* ── Inputs underline (Nom, Prénom, Mail, Tél) ─────────── */
.fe-field input[type="text"],
.fe-field input[type="email"],
.fe-field input[type="tel"] {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2c2c2c;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(44, 44, 44, 0.3);
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0;
    width: 100%;
    outline: none;
    transition: border-color 0.15s ease;
}

.fe-field input[type="text"]::placeholder,
.fe-field input[type="email"]::placeholder,
.fe-field input[type="tel"]::placeholder {
    color: rgba(44, 44, 44, 0.54);
}

.fe-field input[type="text"]:focus,
.fe-field input[type="email"]:focus,
.fe-field input[type="tel"]:focus {
    border-bottom-color: #2c2c2c;
}

/* ── Select custom (fe-custom-select) ──────────────────── */
.fe-field--select select {
    display: none;
}

.fe-custom-select {
    background: #f9f9f9;
    border: 1px solid rgba(44, 44, 44, 0.3);
    border-radius: 8px;
    padding: 22px 24px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.2s ease;
}

/* Spécificité renforcée pour éviter un override Elementor/CF7 */
.fe-field--select .fe-custom-select {
    background: #f9f9f9;
}

.fe-custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fe-custom-select__title {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: #2c2c2c;
}

.fe-custom-select__arrow {
    width: 9px;
    height: 12px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='12' viewBox='0 0 9 12' fill='none'%3E%3Cpath d='M0.170477 6.81699C-0.056826 7.04015 -0.056826 7.40187 0.170477 7.62503L3.87419 11.2612C4.10149 11.4844 4.46993 11.4844 4.69724 11.2612L8.40095 7.62503C8.62825 7.40187 8.62825 7.04015 8.40095 6.81699C8.17365 6.59383 7.80521 6.59383 7.5779 6.81699L4.86776 9.47772L4.86776 0.571431C4.86776 0.255838 4.60717 0 4.28571 0C3.96426 0 3.70367 0.255838 3.70367 0.571431L3.70367 9.47772L0.993524 6.81699C0.766221 6.59383 0.397779 6.59383 0.170477 6.81699Z' fill='%23323232'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
}

.fe-custom-select.is-open .fe-custom-select__arrow {
    transform: rotate(180deg);
}

.fe-custom-select__line {
    height: 1px;
    background: rgba(44, 44, 44, 0.2);
    margin: 6px 0 14px;
}

.fe-custom-select__current {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(44, 44, 44, 0.34);
}

.fe-custom-select__options {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.fe-custom-select.is-open .fe-custom-select__options {
    display: flex;
}

/* Light form : masque la valeur courante (les options la remplacent) */
.fe-custom-select.is-open .fe-custom-select__current {
    display: none;
}

/* Dark form : la valeur courante est dans le trigger, elle reste visible */
.fe-form-dark .fe-custom-select.is-open .fe-custom-select__current {
    display: block;
}

.fe-custom-select.has-value .fe-custom-select__current {
    color: #2c2c2c;
}

.fe-form-dark .fe-custom-select.has-value .fe-custom-select__current {
    color: rgba(44, 44, 44, 0.6);
}

.fe-custom-select__option {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(44, 44, 44, 0.34);
    background: none;
    border: none;
    padding: 0 !important;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease;
    width: 100%;
}

.fe-custom-select__option:hover {
    color: #2c2c2c;
}

.fe-custom-select__option.is-selected {
    color: #2c2c2c;
}

/* ── Textarea ──────────────────────────────────────────── */
.fe-field--textarea {
    border: 1px solid rgba(44, 44, 44, 0.3);
    border-radius: 8px;
    padding: 20px 24px;
}

.fe-field--textarea label {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

.fe-field--textarea>.fe-field-border {
    border-bottom: 1px solid rgba(44, 44, 44, 0.3);
    margin-bottom: 14px;
}

.fe-field--textarea textarea {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 14px;
    color: #2c2c2c;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
    height: 160px;
    resize: none;
    outline: none;
    line-height: 1.6;
}

.fe-field--textarea textarea::placeholder {
    color: rgba(44, 44, 44, 0.54);
}

/* ── Checkbox RGPD ─────────────────────────────────────── */
.fe-field--acceptance {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

/* Les wrappers CF7 sont block par défaut — on les passe en flex inline */
.fe-field--acceptance .wpcf7-form-control-wrap,
.fe-field--acceptance .wpcf7-acceptance,
.fe-field--acceptance .wpcf7-list-item {
    display: flex;
    flex-shrink: 0;
    line-height: 1;
    margin-left: 0px !important;
}

.fe-field--acceptance p {
    display: flex;
    gap: 12px;
}

.fe-field--acceptance span {
    color: #2C2C2C;
    font-family: 'Satoshi', system-ui, sans-serif !important;
    font-size: 12px !important;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 16px !important;
}

.fe-field--acceptance .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* Checkbox ronde */
.fe-field--acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid rgba(44, 44, 44, 0.45);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    transition: border-color 0.15s ease;
}

.fe-field--acceptance input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2c2c2c;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.fe-field--acceptance input[type="checkbox"]:checked {
    border-color: #2c2c2c;
}

.fe-field--acceptance input[type="checkbox"]:checked::after {
    opacity: 1;
}

/* Texte à droite — flex: 1 pour qu'il ne passe jamais dessous */
.fe-field--acceptance>span:last-of-type {
    flex: 1;
    min-width: 0;
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #2c2c2c;
}

.fe-field--acceptance strong {
    font-weight: 700;
}

/* ── Bouton submit ─────────────────────────────────────── */
.fe-contact-left .wpcf7-submit {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2c2c2c;
    background: #f9f9f9;
    border: 1px solid #2c2c2c;
    border-radius: 100px;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-block;
    align-self: flex-start;
    letter-spacing: 0.01em;
}

.fe-contact-left .wpcf7-submit:hover {
    background: #2c2c2c;
    color: #f9f9f9;
}

/* ── Colonne droite ────────────────────────────────────── */
.fe-contact-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Messages de validation CF7 ───────────────────────── */
.wpcf7-not-valid-tip {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 11px;
    color: #b43232;
    margin-top: 4px;
    display: block;
}

.wpcf7-response-output {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 13px;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 16px;
    border: 1px solid rgba(44, 44, 44, 0.15);
    color: #2c2c2c;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    border-color: rgba(44, 44, 44, 0.3);
    background: transparent;
}

.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng {
    border-color: rgba(180, 50, 50, 0.35);
    color: #b43232;
}

/* =========================================================
   Formulaire dark (node 333-906)
   Fond sombre, inputs pilule, textes #f9f9f9
   ========================================================= */

.fe-form-dark {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ── Labels dark ───────────────────────────────────────── */
.fe-form-dark .fe-dark-field label,
.fe-form-dark .fe-dark-field > label {
    font-family: 'Satoshi', system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #f9f9f9 !important;
    display: block;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ── Row 2 colonnes ────────────────────────────────────── */
.fe-dark-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* ── Inputs pilule ─────────────────────────────────────── */
.fe-form-dark input[type="text"],
.fe-form-dark input[type="email"],
.fe-form-dark input[type="tel"] {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(44, 44, 44, 0.6);
    background: #f9f9f9;
    border: none;
    border-radius: 100px;
    box-shadow: none;
    padding: 11px 20px;
    width: 100%;
    outline: none;
    transition: box-shadow 0.15s ease;
}

.fe-form-dark input[type="text"]::placeholder,
.fe-form-dark input[type="email"]::placeholder,
.fe-form-dark input[type="tel"]::placeholder {
    color: rgba(44, 44, 44, 0.34);
}

.fe-form-dark input[type="text"]:focus,
.fe-form-dark input[type="email"]:focus,
.fe-form-dark input[type="tel"]:focus {
    box-shadow: 0 0 0 2px rgba(249, 249, 249, 0.5);
}

/* ── Radio Particulier / Professionnel ─────────────────── */
.fe-dark-radios .wpcf7-radio {
    display: flex;
    gap: 60px;
    align-items: center;
}

.fe-dark-radios .wpcf7-list-item {
    display: inline-flex;
    margin: 0;
}

/* use_label_element : label wraps [input][span] */
.fe-dark-radios .wpcf7-list-item label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.fe-dark-radios .wpcf7-list-item-label {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #f9f9f9 !important;
    line-height: 1;
}

.fe-dark-radios input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 19px;
    height: 19px;
    min-width: 19px;
    border: 1px solid #f9f9f9;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    transition: background 0.15s ease;
}

.fe-dark-radios input[type="radio"]:checked {
    background: #f9f9f9;
}

/* Anneau extérieur visible uniquement à l'état checked */
.fe-dark-radios input[type="radio"]::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1.5px solid rgba(249, 249, 249, 0.65);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.fe-dark-radios input[type="radio"]:checked::after {
    opacity: 1;
}

/* ── Select dark — pill style (identique aux inputs text dark) ─ */
.fe-form-dark .fe-field--select {
    background: transparent;
    border: none;
    padding: 0;
}

.fe-form-dark .fe-custom-select {
    background: #f9f9f9;
    border: none;
    border-radius: 100px;
    padding: 13px 24px;
    box-shadow: none !important;
    cursor: pointer;
    position: relative;
}

/* Trigger : flex row centré dans la pill — pas de border-bottom */
.fe-form-dark .fe-custom-select__trigger {
    padding-bottom: 0;
    border-bottom: none;
}

/* Titre non créé pour dark form — règle conservée par sécurité */
.fe-form-dark .fe-custom-select__title {
    display: none;
}

.fe-form-dark .fe-custom-select__arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='12' viewBox='0 0 9 12' fill='none' opacity='1'%3E%3Cpath d='M0.170477 6.81699C-0.056826 7.04015 -0.056826 7.40187 0.170477 7.62503L3.87419 11.2612C4.10149 11.4844 4.46993 11.4844 4.69724 11.2612L8.40095 7.62503C8.62825 7.40187 8.62825 7.04015 8.40095 6.81699C8.17365 6.59383 7.80521 6.59383 7.5779 6.81699L4.86776 9.47772L4.86776 0.571431C4.86776 0.255838 4.60717 0 4.28571 0C3.96426 0 3.70367 0.255838 3.70367 0.571431L3.70367 9.47772L0.993524 6.81699C0.766221 6.59383 0.397779 6.59383 0.170477 6.81699Z' fill='%232c2c2c'/%3E%3C/svg%3E");
}

/* Pas de ligne séparatrice en dark form */
.fe-form-dark .fe-custom-select__line {
    display: none;
}

/* Current est DANS le trigger (flex item) */
.fe-form-dark .fe-custom-select__current {
    color: rgba(44, 44, 44, 0.34);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
}

/* Options flottantes (position absolute pour ne pas déformer la pill) */
.fe-form-dark .fe-custom-select__options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 12px 24px;
    gap: 14px;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.fe-form-dark .fe-custom-select__option {
    color: rgba(44, 44, 44, 0.45);
    font-size: 16px;
}

.fe-form-dark .fe-custom-select__option:hover,
.fe-form-dark .fe-custom-select__option.is-selected {
    color: #2c2c2c;
}

/* ── Textarea dark ─────────────────────────────────────── */
.fe-form-dark .fe-dark-field textarea {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(44, 44, 44, 0.6);
    background: #f9f9f9;
    border: none;
    border-radius: 10px;
    box-shadow: none;
    padding: 18px 24px;
    width: 100%;
    height: 178px;
    resize: none;
    outline: none;
    line-height: 1.6;
    display: block;
}

.fe-form-dark .fe-dark-field textarea::placeholder {
    color: rgba(44, 44, 44, 0.34);
}

/* ── Checkbox RGPD dark ────────────────────────────────── */
/* <p> injecté par CF7 autour du wrap */
.fe-dark-acceptance > p {
    margin: 0;
    padding: 0;
}

/* Wrappers CF7 : reset en block pour laisser le label gérer le layout */
.fe-dark-acceptance .wpcf7-form-control-wrap,
.fe-dark-acceptance .wpcf7-acceptance,
.fe-dark-acceptance .wpcf7-list-item {
    display: block;
    margin: 0 !important;
}

/* Le label est le vrai flex container [checkbox] + [texte] */
.fe-dark-acceptance .wpcf7-list-item label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.fe-dark-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 19px;
    height: 19px;
    min-width: 19px;
    margin-top: 2px;
    border: 2px solid #f9f9f9;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
}

.fe-dark-acceptance input[type="checkbox"]:checked {
    background-image: radial-gradient(circle, #f9f9f9 4.5px, transparent 4.5px);
}

/* Texte RGPD : dans wpcf7-list-item-label (texte inline CF7) */
.fe-dark-acceptance .wpcf7-list-item-label,
/* Texte RGPD : en <span> sibling hors du wrapper CF7 */
.fe-dark-acceptance > span:not(.wpcf7-form-control-wrap) {
    flex: 1;
    min-width: 0;
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: #f9f9f9;
}

.fe-dark-acceptance strong {
    font-weight: 700;
}

/* ── Submit dark ───────────────────────────────────────── */
.fe-form-dark .wpcf7-submit {
    font-family: 'Satoshi', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #f9f9f9;
    background: transparent;
    border: 1px solid #f9f9f9;
    border-radius: 100px;
    padding: 16px 24px;
    height: 53px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-block;
    align-self: flex-start;
    min-width: 224px;
    text-align: center;
}

.fe-form-dark .wpcf7-submit:hover {
    background: #f9f9f9;
    color: #2c2c2c;
}

/* ── Validation dark ───────────────────────────────────── */
.section-form-contact .wpcf7-not-valid-tip {
    color: #ff8080;
}

.section-form-contact .wpcf7-response-output {
    background-color: white;
    padding: 20px !important;
}

.section-form-contact .wpcf7-response-output.wpcf7-validation-errors {
    border-color: rgba(255, 100, 100, 0.5);
    color: #ff8080;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
    .fe-contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fe-dark-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .fe-contact-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fe-contact-left {
        gap: 24px;
    }

    .fe-form-dark {
        gap: 24px;
    }

    /* Radios en colonne sur mobile */
    .fe-dark-radios .wpcf7-radio {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    /* Labels dark légèrement réduits */
    .fe-form-dark .fe-dark-field label,
    .fe-form-dark .fe-dark-field > label {
        font-size: 17px !important;
    }

    .fe-dark-radios .wpcf7-list-item-label {
        font-size: 17px;
    }

    /* Boutons pleine largeur */
    .fe-contact-left .wpcf7-submit {
        width: 100%;
        text-align: center;
    }

    .fe-form-dark .wpcf7-submit {
        width: 100%;
        min-width: 0;
    }
}