/* =====================================================
   DEVIS GROUPE RDM — Charte graphique
   Couleurs :
     #80C658 primaire     #72BF44 accent
     #477A2A foncé        #BAE0A4 clair
   Polices Google :
     Kalam bold (titres), Nunito extrabold (sous-titres), Nunito light (texte)
   ===================================================== */

.dg-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    color: #333;
    line-height: 1.5;
}

.dg-badge {
    display: inline-block;
    background: #BAE0A4;
    color: #477A2A;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 24px;
    font-size: 0.95em;
}

.dg-form {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 22px rgba(71, 122, 42, 0.10);
}

.dg-section {
    padding: 18px 0;
    border-bottom: 1px dashed #e5eadf;
}
.dg-section:last-child {
    border-bottom: none;
}

.dg-h3 {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    color: #477A2A;
    font-size: 1.6em;
    margin: 0 0 14px;
}

.dg-label {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: #477A2A;
    margin: 14px 0 6px;
    font-size: 0.95em;
}

.dg-req {
    color: #d13b3b;
    font-weight: 800;
}
.dg-opt {
    color: #999;
    font-weight: 300;
    font-size: 0.9em;
}

.dg-form input[type="text"],
.dg-form input[type="email"],
.dg-form input[type="tel"],
.dg-form input[type="number"],
.dg-form input[type="date"],
.dg-form textarea,
.dg-form select {
    width: 100%;
    padding: 11px 14px;
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 1em;
    border: 2px solid #e5eadf;
    border-radius: 10px;
    background: #fafdf6;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

.dg-form input:focus,
.dg-form textarea:focus,
.dg-form select:focus {
    outline: none;
    border-color: #80C658;
    background: #fff;
}

.dg-form textarea {
    resize: vertical;
    min-height: 80px;
}

.dg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 540px) {
    .dg-row { grid-template-columns: 1fr; }
}

.dg-help {
    color: #666;
    font-size: 0.92em;
    margin: 0 0 14px;
}

/* === Participants === */
.dg-pax {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.dg-pax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: #fafdf6;
    border: 2px solid #e5eadf;
    border-radius: 12px;
    padding: 12px 16px;
}
.dg-pax-label strong {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: #477A2A;
    font-size: 1em;
}
.dg-pax-label span {
    color: #888;
    font-size: 0.88em;
}
.dg-pax-count {
    width: 90px !important;
    text-align: center;
    font-weight: 800 !important;
    font-size: 1.1em !important;
}

/* === Total box === */
.dg-total-box {
    background: linear-gradient(135deg, #BAE0A4 0%, #80C658 100%);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 800;
    font-size: 1.05em;
    box-shadow: 0 4px 14px rgba(128, 198, 88, 0.25);
}
.dg-total-box strong {
    font-size: 1.2em;
    color: #fff;
}
.dg-min-warn {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    color: #b33c3c;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.92em;
    display: none;
}
.dg-total-box.is-invalid .dg-min-warn {
    display: block;
}

/* === Dates === */
.dg-date-row {
    margin-bottom: 10px;
}

/* === RGPD === */
.dg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92em;
    color: #555;
}
.dg-check input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #72BF44;
    transform: scale(1.2);
}

/* === Submit === */
.dg-submit-wrap {
    text-align: center;
    margin-top: 20px;
}
.dg-submit {
    background: linear-gradient(135deg, #72BF44 0%, #477A2A 100%);
    color: #fff;
    font-family: 'Kalam', cursive;
    font-weight: 700;
    font-size: 1.4em;
    border: none;
    padding: 16px 42px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(71, 122, 42, 0.30);
    transition: transform 0.1s, box-shadow 0.1s, opacity 0.15s;
    letter-spacing: 0.5px;
}
.dg-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(71, 122, 42, 0.40);
}
.dg-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}
.dg-submit-hint {
    color: #999;
    font-size: 0.88em;
    margin-top: 10px;
    min-height: 1em;
}

/* === Résultat === */
.dg-result {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
}
.dg-result.is-success {
    background: #e8f5dc;
    border: 2px solid #80C658;
    color: #2f5518;
}
.dg-result.is-error {
    background: #fbe5e5;
    border: 2px solid #d13b3b;
    color: #8a2525;
}
.dg-result strong {
    font-weight: 800;
}
