/* =====================================================================
   Page « Contactez l'organisateur » — contact_owner2.css (remplace contact_owner2.css)
   Même style que les pages cagnotte et contribution : carte blanche centrée,
   champs arrondis, bouton rose. Règles préfixées .ppy-contact pour passer devant common.css
   ===================================================================== */

/* ---------- Variables ---------- */
:root {
    --accent: #c8226a;
    --accent-dark: #a51b57;
    --accent-light: #fdeef5;
    --navy: #053668;
    --blue: #155588;
    --text-primary: #1f2d3d;
    --text-secondary: #4a5b72;
    --placeholder: #66758b;
    --bg-page: #fbf9f3;
    --border: #d0dae8;
    --line: #eef0f4;
    --field: #fafcff;
    --error-color: #c0262d;
    --focus: rgba(107, 158, 244, 0.55);
}

body {
    background: var(--bg-page);
}

/* ---------- Conteneur ---------- */
.ppy-contact {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px 72px;
    box-sizing: border-box;
    text-align: left;
    color: var(--text-primary);
}

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

.ppy-contact a:focus-visible,
.ppy-contact button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* Lien retour */
.ppy-contact .co-retour {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

.ppy-contact .co-retour:hover {
    color: var(--accent);
}

.ppy-contact .co-retour svg {
    width: 18px;
    height: 18px;
}

/* ---------- Carte ---------- */
.ppy-contact .co-carte {
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(5, 54, 104, 0.08);
}

/* En-tête : pastille enveloppe + titre */
.ppy-contact .co-entete {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.ppy-contact .co-icone {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-light);
    color: var(--accent);
}

.ppy-contact .co-icone svg {
    width: 24px;
    height: 24px;
}

.ppy-contact #question {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-secondary);
}

/* Nom de l'organisateur, sur sa propre ligne et en avant */
.ppy-contact #question strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    overflow-wrap: anywhere;
}

/* ---------- Formulaire ---------- */
.ppy-contact form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: auto;
    margin: 0;
}

.ppy-contact .co-champ {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ppy-contact .co-champ-tete {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.ppy-contact label {
    display: block;
    width: auto;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.ppy-contact .co-compteur {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ppy-contact .message {
    display: block;
    width: 100%;
    height: auto;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--field);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ppy-contact textarea.message {
    min-height: 170px;
    line-height: 1.55;
    resize: vertical;
}

.ppy-contact .message:focus {
    outline: none;
    background: #ffffff;
    border-color: #6b9ef4;
    box-shadow: 0 0 0 3px rgba(107, 158, 244, 0.22);
}

.ppy-contact .message::placeholder {
    color: var(--placeholder);
}

/* Erreurs : lisibles, masquées quand vides */
.ppy-contact .error {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--error-color);
}

.ppy-contact .error:empty {
    display: none;
}

/* Vérification anti-robot impossible (script reCAPTCHA bloqué) */
.ppy-contact .co-alerte {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--error-color);
}

/* ---------- Bouton d'envoi ---------- */
.ppy-contact #envoyer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    margin: 6px 0 0;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    box-shadow: 0 6px 18px rgba(200, 34, 106, 0.3);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ppy-contact #envoyer:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.ppy-contact #envoyer:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.ppy-contact #envoyer svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 767px)
{
    .ppy-contact {
        padding: 12px 12px 32px;
    }

    .ppy-contact .co-carte {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .ppy-contact .co-entete {
        margin-bottom: 20px;
    }

    .ppy-contact .co-icone {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .ppy-contact #question strong {
        font-size: 19px;
    }

    .ppy-contact textarea.message {
        min-height: 150px;
    }
}