/* Pop-up Soins — styles front (formulaire Contact Form 7) */

html.tps-no-scroll,
html.tps-no-scroll body {
    overflow: hidden;
}

.tps-overlay {
    position: fixed;
    inset: 0;
    /* Recouvre toute la page, header (z-index 9999) et barre d'ancres compris. */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 33, 61, 0.55);
}
.tps-overlay[hidden] { display: none; }

.tps-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    max-height: calc(100% - 40px);
    /* overflow:hidden => coins arrondis nets sur les 4 côtés malgré le scroll interne */
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: tps-pop 0.25s ease;
}
@keyframes tps-pop {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Zone scrollable interne : les coins du modal restent arrondis */
.tps-body {
    overflow-y: auto;
    padding: 28px 24px;
}

.tps-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(255, 255, 255, 0.85);
    font-size: 28px;
    line-height: 1;
    color: #254294;
    cursor: pointer;
    border-radius: 50%;
}
.tps-close:hover { background: #eef2fb; }

.tps-title {
    margin: 0 0 14px;
    font-size: 20px;
    color: #254294;
}

/* Libellés de questions / champs (issus du markup CF7) */
.tps-legend,
.tps-field-label {
    display: block;
    font-weight: 700;
    color: #14213d;
    margin: 16px 0 8px;
    font-size: 15px;
}
.tps-cf7 .tps-legend:first-of-type { margin-top: 0; }
.tps-autre-label {
    display: block;
    margin: 8px 0 4px;
    font-size: 14px;
    color: #14213d;
}

/* Listes de cases / boutons radio CF7 */
.tps-cf7 .wpcf7-list-item {
    display: block;
    margin: 6px 0 0;
}
.tps-cf7 .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
}
.tps-cf7 .wpcf7-list-item input[type="checkbox"],
.tps-cf7 .wpcf7-list-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #254294;
    flex: 0 0 auto;
}

/* Champs texte / email */
.tps-cf7 input[type="text"],
.tps-cf7 input[type="email"] {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #cdd6e4;
    border-radius: 8px;
    font-size: 15px;
}

/* Bouton Envoyer — centré horizontalement (pleine largeur en mobile) */
.tps-cf7 .wpcf7-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    width: fit-content;
    margin: 18px auto 0;
    margin-bottom: 18px;
    padding: 12px 28px;
    border: 0;
    border-radius: 30px;
    background: #e2001a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.tps-cf7 .wpcf7-submit:hover { background: #b80016; }

/* Messages CF7 (validation / confirmation) */
.tps-cf7 .wpcf7-response-output {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.tps-cf7 .wpcf7-not-valid-tip { color: #e2001a; font-size: 13px; }
.tps-cf7 .wpcf7-spinner { display: block; margin: 8px auto 0;display: none; }

@media (max-width: 575px) {
    .tps-overlay { padding: 16px; }
    .tps-modal { border-radius: 14px; max-height: calc(100% - 32px); }
    .tps-body { padding: 22px 16px; }
    .tps-title { font-size: 18px; }
    .tps-cf7 .wpcf7-submit { width: 100%; }
}
