/* ══════════════════════════════════════════════════════════════════
   COTATION ASSISTANCE VOYAGE (vitrine)
   Même parcours que l'application mobile : un seul écran (type de
   séjour, âge, destination, dates) puis les offres. Les résultats
   reprennent le modèle du parcours auto (.modern-card, carrousel
   .offre-card de cotation-mrh-custom.css) ; seuls leurs ajouts sont ici.
   Portée limitée par le conteneur .cotation-voyage.
   ══════════════════════════════════════════════════════════════════ */

.cotation-voyage {
    --cv-brand: #8B1538;
    --cv-brand-2: #A91D4A;
    --cv-brand-soft: #f4e7ec;
    --cv-ink: #111827;
    --cv-muted: #6b7280;
    --cv-line: #e5e7eb;
    --cv-success: #15803d;
    --cv-success-soft: #dcfce7;
    --cv-error: #b91c1c;
    color: var(--cv-ink);
}

/* ── Carte du formulaire ────────────────────────────────────────── */
.cotation-voyage .cv-carte {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--cv-line);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 18px rgba(17, 24, 39, .05);
}

.cotation-voyage .cv-entete {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.cotation-voyage .cv-entete__icone,
.cotation-voyage .cv-recap__icone {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cv-brand) 0%, var(--cv-brand-2) 100%);
    color: #fff;
    font-size: 1.2rem;
}

.cotation-voyage .cv-entete__titre {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.cotation-voyage .cv-entete__sous-titre {
    margin: .15rem 0 0;
    color: var(--cv-muted);
}

.cotation-voyage .cv-champ {
    margin-bottom: 1.5rem;
}

.cotation-voyage .cv-libelle {
    display: block;
    margin-bottom: .6rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--cv-ink);
}

.cotation-voyage .cv-sous-libelle {
    display: block;
    margin-bottom: .3rem;
    font-size: .8rem;
    color: var(--cv-muted);
}

.cotation-voyage .ui-message {
    margin: .4rem 0 0;
    padding: 0;
    background: none;
    border: 0;
    color: var(--cv-error);
    font-size: .82rem;
}

/* ── Pastilles (p:selectOneButton) ──────────────────────────────── */
.cotation-voyage .cv-pastilles.ui-selectonebutton {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.cotation-voyage .cv-pastilles .ui-button {
    margin: 0 !important;
    padding: .55rem 1rem;
    border: 1px solid var(--cv-line) !important;
    border-radius: 999px !important;
    background: #fff;
    color: var(--cv-ink);
    font-weight: 500;
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cotation-voyage .cv-pastilles .ui-button .ui-button-text {
    padding: 0;
}

.cotation-voyage .cv-pastilles .ui-button:hover {
    border-color: var(--cv-brand) !important;
    background: var(--cv-brand-soft);
    color: var(--cv-brand);
}

.cotation-voyage .cv-pastilles .ui-button.ui-state-active {
    border-color: var(--cv-brand) !important;
    background: var(--cv-brand);
    color: #fff;
}

.cotation-voyage .cv-pastilles .ui-button.ui-state-focus {
    outline: 2px solid var(--cv-brand-2);
    outline-offset: 2px;
}

.cotation-voyage .cv-pastilles.ui-state-error .ui-button {
    border-color: var(--cv-error) !important;
}

/* ── Dates ──────────────────────────────────────────────────────── */
.cotation-voyage .cv-dates {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
}

.cotation-voyage .cv-dates__champ {
    flex: 1 1 0;
    min-width: 0;
}

.cotation-voyage .cv-dates__champ .ui-datepicker,
.cotation-voyage .cv-dates__champ .ui-calendar,
.cotation-voyage .cv-dates__champ input {
    width: 100%;
}

.cotation-voyage .cv-dates__fleche {
    padding-bottom: .7rem;
    color: var(--cv-muted);
}

.cotation-voyage .cv-duree:not(:empty) {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--cv-brand-soft);
    color: var(--cv-brand);
    font-weight: 600;
    font-size: .85rem;
}

/* ── Boutons ────────────────────────────────────────────────────── */
.cotation-voyage .cv-actions {
    margin-top: 2rem;
}

.cotation-voyage .cv-bouton-principal.ui-button {
    width: 100%;
    padding: .7rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cv-brand) 0%, var(--cv-brand-2) 100%);
    color: #fff;
    font-weight: 600;
}

.cotation-voyage .cv-bouton-principal.ui-button:hover {
    filter: brightness(1.07);
}

.cotation-voyage .cv-bouton-lien.ui-button {
    flex: none;
    border: 1px solid var(--cv-brand);
    border-radius: 999px;
    background: #fff;
    color: var(--cv-brand);
    font-weight: 600;
}

/* ── Récapitulatif de la recherche ──────────────────────────────── */
.cotation-voyage .cv-recap {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: var(--cv-brand-soft);
}

.cotation-voyage .cv-recap__texte {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    font-size: .88rem;
    color: var(--cv-muted);
}

.cotation-voyage .cv-recap__texte strong {
    font-size: 1rem;
    color: var(--cv-ink);
}

/* ── Résultats (modèle auto) ────────────────────────────────────── */
.cotation-voyage .cv-resultats .modern-card-body {
    padding: 24px;
}

.cotation-voyage .cv-offre-compagnie {
    margin: -8px 0 0;
    text-align: center;
    font-weight: 600;
    color: var(--cv-ink);
}

.cotation-voyage .cv-offre-compagnie span {
    font-weight: 400;
    color: var(--cv-muted);
}

/* La moins chère : liseré vert, comme la carte du mobile. */
.cotation-voyage .offre-card--meilleure {
    border-color: var(--cv-success);
}

.cotation-voyage .offre-card--meilleure .offre-badge {
    background: var(--cv-success);
}

/* ── Aucune offre ───────────────────────────────────────────────── */
.cotation-voyage .cv-vide {
    margin-top: 1.5rem;
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--cv-line);
    border-radius: 16px;
    text-align: center;
}

.cotation-voyage .cv-vide > .pi {
    font-size: 2.2rem;
    color: var(--cv-brand);
}

.cotation-voyage .cv-vide h3 {
    margin: .75rem 0 .35rem;
    font-size: 1.15rem;
}

.cotation-voyage .cv-vide p {
    color: var(--cv-muted);
}

.cotation-voyage .cv-vide .cv-bouton-principal.ui-button {
    width: auto;
}

/* ── Téléphone ──────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .cotation-voyage .cv-carte {
        padding: 1.25rem 1rem;
    }

    .cotation-voyage .cv-dates {
        flex-direction: column;
        align-items: stretch;
    }

    .cotation-voyage .cv-dates__fleche {
        display: none;
    }

    .cotation-voyage .cv-recap {
        flex-wrap: wrap;
    }

    .cotation-voyage .cv-resultats .modern-card-body {
        padding: 16px;
    }
}
