/* ==========================================================================
   ANNONCE — Single post template (à insérer via [annonce_single] dans Divi)
   ========================================================================== */

.annonce-single {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08);
}

/* ----- HERO ----- */
.annonce-single-hero {
      position: relative;
    padding: 2%;
    background-color: #af0b57;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;}


.annonce-single-hero.has-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}
.annonce-single-hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.annonce-single-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    background: #fff;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.annonce-single-badge-job       { background: #fff; color: #af0b57; }
.annonce-single-badge-benevolat { background: #fff; color: #6a1b9a; }
.annonce-single-badge-autre     { background: #fff; color: #455a64; }

.annonce-single-title {
    margin: 0 0 12px 0;
    color: #fff !important;
    font-size: 2.2rem;
    line-height: 1.15;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.annonce-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}
.annonce-single-date { opacity: 0.85; }
.annonce-single-deadline {
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* ----- CONTENT ----- */
.annonce-single-content {
    padding: 40px 50px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #333;
}
.annonce-single-content p { margin: 0 0 1em; }
.annonce-single-content p:last-child { margin-bottom: 0; }
.annonce-single-content h2,
.annonce-single-content h3 {
    margin: 1.5em 0 0.6em;
    color: #af0b57;
}
.annonce-single-content ul,
.annonce-single-content ol {
    padding-left: 1.4em;
    margin: 0 0 1em;
}
.annonce-single-content li { margin: 0.3em 0; }
.annonce-single-content a {
    color: #af0b57;
    text-decoration: underline;
}

/* ----- APPLY (form candidature) ----- */
.annonce-single-apply {
    padding: 38px 50px 46px;
    background: #f7f4f0;
    border-top: 4px solid #af0b57;
}
.annonce-single-apply-title {
    margin: 0 0 8px;
    color: #af0b57;
    font-size: 1.5rem;
    font-weight: 700;
}
.annonce-single-apply-intro {
    margin: 0 0 22px;
    color: #555;
    font-size: 0.95rem;
}

.annonce-apply-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.annonce-apply-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.annonce-apply-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.annonce-apply-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}
.annonce-apply-group input[type="text"],
.annonce-apply-group input[type="email"],
.annonce-apply-group input[type="tel"],
.annonce-apply-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d0d4dc;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: #222;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.annonce-apply-group input:focus,
.annonce-apply-group textarea:focus {
    outline: none;
    border-color: #af0b57;
    box-shadow: 0 0 0 3px rgba(175, 11, 87, 0.15);
}
.annonce-apply-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* Honeypot — invisible mais accessible (pas display:none qui peut être détecté) */
.annonce-apply-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.annonce-apply-actions {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.annonce-apply-submit {
    align-self: flex-start;
    background: #af0b57;
    color: #fff;
    border: none;
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.annonce-apply-submit:hover:not(:disabled) {
    background: #7a073d;
}
.annonce-apply-submit:active:not(:disabled) {
    transform: translateY(1px);
}
.annonce-apply-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.annonce-apply-feedback {
    margin: 0;
    font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: 6px;
    display: none;
}
.annonce-apply-feedback.is-success,
.annonce-apply-feedback.is-error {
    display: block;
}
.annonce-apply-feedback.is-success {
    background: #e6f7ed;
    color: #1b6c3a;
    border: 1px solid #b8e6c8;
}
.annonce-apply-feedback.is-error {
    background: #fdecea;
    color: #7d1d18;
    border: 1px solid #f3b8b3;
}

.annonce-single-error {
    text-align: center;
    color: #888;
    padding: 2rem;
    font-style: italic;
}

/* ----- Responsive ----- */
@media (max-width: 720px) {
    .annonce-single {
        border-radius: 0;
    }
    .annonce-single-hero {
        padding: 40px 24px 32px;
        min-height: 200px;
    }
    .annonce-single-title {
        font-size: 1.6rem;
    }
    .annonce-single-content,
    .annonce-single-apply {
        padding: 28px 24px;
    }
    .annonce-apply-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
