/* (Gardez le code précédent pour la base : conteneur, boutons, inputs) */
/* Ajoutez/Remplacez le code spécifique aux cartes ci-dessous : */

.yd-container {
    max-width: 650px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Open Sans', sans-serif;
    overflow: hidden;
    color: #333;
}

.yd-header {
    padding: 30px 30px 0;
    text-align: center;
}

.yd-header h2 {
    margin: 0 0 20px;
    color: #0073c0;
    font-weight: 600;
    font-size: 24px;
}

.yd-progress-bar {
    width: 100%;
    height: 4px;
    background: #eef2f5;
    border-radius: 2px;
    overflow: hidden;
}

.yd-progress {
    height: 100%;
    background: #67d7f7;
    width: 20%;
    transition: width 0.4s ease;
}

#yd-booking-form {
    padding: 30px;
    min-height: 350px;
    position: relative;
}

.yd-step {
    display: none;
    animation: fadeInSlide 0.4s forwards;
}

.yd-step.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yd-step h3 {
    font-size: 18px;
    color: #0073c0;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* Nouveau Design : Cartes Cliquables */
.yd-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.yd-card {
    border: 2px solid #eef2f5;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yd-card:hover {
    border-color: #67d7f7;
    background: #f9fbfd;
    transform: translateY(-2px);
}

.yd-card.selected {
    border-color: #0073c0;
    background: #f0f7fc;
    box-shadow: 0 4px 10px rgba(0, 115, 192, 0.1);
}

.yd-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain;
}

.yd-card svg {
    margin-bottom: 15px;
}

.yd-card span {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    display: block;
}

.yd-card p.yd-card-desc {
    font-size: 11px;
    color: #777;
    margin: 8px 0 0;
    line-height: 1.3;
}

.yd-error-msg {
    color: #d32f2f;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

.yd-form-group {
    margin-bottom: 20px;
}

.yd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.yd-step input[type="text"],
.yd-step input[type="email"],
.yd-step input[type="tel"],
.yd-step input[type="number"],
.yd-step input[type="date"],
.yd-step select,
.yd-step textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background: #fafafa;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.yd-step input:focus,
.yd-step select:focus,
.yd-step textarea:focus {
    border-color: #0073c0;
    outline: none;
    background: #fff;
}

.yd-options-list {
    background: #f9fbfd;
    border: 1px solid #eef2f5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.yd-option-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f5;
    font-size: 14px;
}

.yd-option-item:last-child {
    border-bottom: none;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.yd-btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.yd-btn-group.right {
    justify-content: flex-end;
}

.yd-next-btn,
.yd-prev-btn,
.yd-submit-btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: 'Open Sans', sans-serif;
}

.yd-prev-btn {
    background: #f1f1f1;
    color: #555;
}

.yd-prev-btn:hover {
    background: #e2e2e2;
}

.yd-next-btn {
    background: #0073c0;
    color: #fff;
}

.yd-next-btn:hover {
    background: #005a96;
}

.yd-submit-btn {
    background: #ff7d24;
    color: #fff;
}

.yd-submit-btn:hover {
    background: #e56b19;
}

.yd-result-box {
    padding: 40px 30px;
    text-align: center;
}

.yd-result-box h3 {
    color: #0073c0;
}

/* Flexbox pour le Prénom / Nom */
.yd-form-row {
    display: flex;
    gap: 15px;
}
.yd-form-row .half {
    width: 50%;
    margin-bottom: 20px;
}

/* S'assure que la librairie téléphone prend 100% de la largeur */
.iti {
    width: 100%;
    display: block;
}
.iti__flag-container {
    z-index: 10;
}
.iti input {
    width: 100% !important;
    padding-left: 85px !important; /* Laisse la place au drapeau */
}

/* Responsive pour mobiles (Nom/Prénom passent l'un sous l'autre sur petits écrans) */
@media (max-width: 480px) {
    .yd-form-row {
        flex-direction: column;
        gap: 0;
    }
    .yd-form-row .half {
        width: 100%;
    }
}
/* Design de la carte récapitulative (Step 5) */
.yd-success-header {
    text-align: center;
    margin-bottom: 25px;
}
.yd-success-header svg {
    margin-bottom: 10px;
}
.yd-success-header h3 {
    color: #0073c0;
    margin: 0 0 5px;
    font-size: 22px;
}

.yd-summary-card {
    background: #f9fbfd;
    border: 2px solid #eef2f5;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
}
.yd-summary-card h4 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.yd-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px dashed #e5e5e5;
}
.yd-summary-row:last-of-type {
    border-bottom: none;
}
.yd-summary-row strong {
    color: #0073c0;
    text-align: right;
    max-width: 60%;
}

.yd-summary-total {
    margin-top: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ff7d24;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.yd-summary-total span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.yd-summary-total strong {
    font-size: 22px;
    color: #ff7d24;
}

.yd-summary-note {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    line-height: 1.4;
    text-align: justify;
}