/* ==========================================================
   Dig Radio Concours — Public CSS
   ========================================================== */

/* --- Conteneur principal --- */

.drc-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* --- Image à la une --- */

.drc-featured-image {
    margin-bottom: 24px;
}

.drc-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* --- En-tête --- */

.drc-entry-header {
    margin-bottom: 24px;
}

.drc-entry-title {
    font-size: 2rem;
    line-height: 1.25;
    margin: 0 0 12px;
}

.drc-dates {
    color: #666;
    font-size: 0.9rem;
}

.drc-dates span {
    margin-right: 6px;
}

.Digradio-post-item-title .drc-dates {
    color: #000 !important;
    margin-bottom: 0px !important;
}

/* --- Contenu éditeur --- */

.drc-entry-content {
    margin-bottom: 32px;
    line-height: 1.75;
}

/* --- Notices (avant / après / inactif) --- */

.drc-notice {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.drc-notice p:last-child {
    margin-bottom: 0 !important;
}

.drc-notice-info {
    background-color: #f0f0f0;
    border: 1px solid #aaa;
    color: #555;
}

.drc-notice-upcoming {
    background-color: #fffbeb;
    border: 1px solid #f59e0b;
    color: #78350f;
}

.drc-notice-ended {
    background-color: #fdf2f8;
    border: 1px solid #db2777;
    color: #831843;
}

/* --- Alertes formulaire (succès / erreur) --- */

.drc-alert {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.drc-alert p {
    margin-bottom: 0;
}

.drc-alert p:last-child {
    margin-bottom: 0 !important;
}

.drc-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #22c55e;
    color: #14532d;
}

.drc-alert-error {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    color: #7f1d1d;
}

/* --- Formulaire --- */

.drc-form-wrap {
    margin-top: 8px;
}

.drc-form {
    background-color: #f9f9f9;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px 32px;
}

.drc-field {
    margin-bottom: 20px;
}

.drc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.drc-required {
    color: #e11d48;
    margin-left: 2px;
}

.drc-field input[type="text"],
.drc-field input[type="email"],
.drc-field input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    color: #111;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.drc-field input[type="text"]:focus,
.drc-field input[type="email"]:focus,
.drc-field input[type="tel"]:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --- Checkbox consentement --- */

.drc-field-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.5;
}

.drc-field-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.drc-field-checkbox a {
    color: #2563eb;
    text-decoration: underline;
}

/* --- Bouton soumettre --- */

.drc-btn-submit {
    display: inline-block;
    padding: 12px 28px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 1.4;
}

.drc-btn-submit:hover,
.drc-btn-submit:focus {
    background-color: #1d4ed8;
    outline: none;
}

/* --- Note champs obligatoires --- */

.drc-required-note {
    color: #6b7280;
    margin-top: 12px;
    margin-bottom: 0;
}

/* --- Lien règlement --- */

.drc-reglement-link {
    margin-top: 20px;
    font-size: 0.875rem;
}

.drc-reglement-link a {
    color: #2563eb;
    text-decoration: underline;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    .drc-form {
        padding: 20px 16px;
    }

    .drc-entry-title {
        font-size: 1.5rem;
    }
}
