/* ── PC Forms — Front v2.0 ─────────────────────────────────────────────── */

:root {
    --pcf-color:          #1e384e;
    --pcf-color-hint:     #1e384e;
    --pcf-color-border:   #d5e5ee;
    --pcf-color-border-focus: #1e384e;
    --pcf-color-input-bg: #ffffff;
    --pcf-color-btn-bg:   #d5e5ee;
    --pcf-spacing-field:  20px;
}

/* ── Wrapper ── */
.pcf-wrapper {
    max-width: 760px;
    width: 100%;
    color: var(--pcf-color);
}

/* ── Ligne 2 colonnes ── */
.pcf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .pcf-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ── Champ ── */
.pcf-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--pcf-spacing-field);
}

/* Label */
.pcf-field > label:first-child {
    display: block;
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
    color: var(--pcf-color);
    margin-bottom: 5px;
}

/* Texte d'aide */
.pcf-field small {
    display: block;
    font-weight: 400;
    font-style: italic;
    font-size: .9em;
    color: var(--pcf-color-hint);
    margin: 0 0 5px 0 !important;
    padding: 0;
    line-height: 1.4;
}

/* ── Inputs, textarea, select ── */
.pcf-wrapper input[type="text"],
.pcf-wrapper input[type="email"],
.pcf-wrapper input[type="tel"],
.pcf-wrapper input[type="number"],
.pcf-wrapper input[type="url"],
.pcf-wrapper input[type="date"],
.pcf-wrapper input[type="time"],
.pcf-wrapper input[type="password"],
.pcf-wrapper textarea,
.pcf-wrapper select {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: .75em 1em !important;
    border-radius: 8px !important;
    border: 2px solid var(--pcf-color-border) !important;
    background-color: var(--pcf-color-input-bg) !important;
    line-height: 1.5em !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-style: italic !important;
    color: var(--pcf-color) !important;
    height: auto !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s;
    margin: 0;
    caret-color: var(--pcf-color);
}

.pcf-wrapper input[type="text"]:focus,
.pcf-wrapper input[type="email"]:focus,
.pcf-wrapper input[type="tel"]:focus,
.pcf-wrapper input[type="number"]:focus,
.pcf-wrapper input[type="url"]:focus,
.pcf-wrapper input[type="date"]:focus,
.pcf-wrapper input[type="time"]:focus,
.pcf-wrapper input[type="password"]:focus,
.pcf-wrapper textarea:focus,
.pcf-wrapper select:focus {
    border-color: var(--pcf-color-border-focus) !important;
    box-shadow: 0 0 0 3px rgba(30, 56, 78, .08) !important;
    -webkit-box-shadow: 0 0 0 3px rgba(30, 56, 78, .08) !important;
    outline: none !important;
    font-style: italic !important;
}

/* Textarea */
.pcf-wrapper textarea {
    resize: vertical;
    min-height: 130px;
}

/* Select — pas d'italic + flèche custom */
.pcf-wrapper select {
    font-style: normal !important;
    cursor: pointer;
    padding-right: 2.4em !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e384e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right .85em center !important;
}

/* Placeholder */
.pcf-wrapper input::placeholder,
.pcf-wrapper textarea::placeholder {
    opacity: .45;
    color: var(--pcf-color);
    font-style: italic;
}
.pcf-wrapper input::-webkit-input-placeholder,
.pcf-wrapper textarea::-webkit-input-placeholder { opacity: .45; color: var(--pcf-color); font-style: italic; }
.pcf-wrapper input::-moz-placeholder,
.pcf-wrapper textarea::-moz-placeholder         { opacity: .45; color: var(--pcf-color); font-style: italic; }

/* ── Radio — pills ── */
.pcf-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 4px;
}

.pcf-radios label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    color: var(--pcf-color);
    cursor: pointer;
    line-height: 1.4;
    padding: 6px 14px 6px 10px;
    border: 2px solid var(--pcf-color-border);
    border-radius: 50px;
    background-color: var(--pcf-color-input-bg);
    transition: border-color .15s, background-color .15s;
    user-select: none;
}

.pcf-radios label:hover {
    border-color: var(--pcf-color);
    background-color: #edf4f8;
}

.pcf-radios input[type="radio"] {
    accent-color: var(--pcf-color);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
    caret-color: transparent;
}

/* ── Checkbox ── */
.pcf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.55;
    color: var(--pcf-color);
    cursor: pointer;
}

.pcf-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--pcf-color);
    cursor: pointer;
    caret-color: transparent;
}

.pcf-checkbox-label a {
    color: var(--pcf-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Cases multiples ── */
.pcf-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.pcf-checkboxes label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    color: var(--pcf-color);
    cursor: pointer;
}

.pcf-checkboxes input[type="checkbox"] {
    accent-color: var(--pcf-color);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    caret-color: transparent;
}

/* ── Fichier ── */
.pcf-wrapper input[type="file"] {
    font-style: normal !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 6px 0 !important;
    width: 100%;
    font-size: .9em;
    font-family: inherit;
    cursor: pointer;
    color: var(--pcf-color);
}

/* ── Bouton ── */
.pcf-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: right !important;
    clear: both !important;
    width: auto !important;
    margin-top: 12px !important;
    padding: .65em 2em !important;
    background-color: var(--pcf-color-btn-bg) !important;
    color: var(--pcf-color) !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: .9em !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    font-style: normal !important;
    letter-spacing: .02em !important;
    cursor: pointer !important;
    transition: background-color .2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
    outline: none !important;
}

.pcf-submit:hover,
.pcf-submit:focus {
    background-color: #c2d9e7 !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--pcf-color) !important;
    text-decoration: none !important;
}

.pcf-submit:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
}

/* Clearfix après le bouton */
.pcf-wrapper::after {
    content: '';
    display: table;
    clear: both;
}

/* ── Feedback ── */
.pcf-feedback {
    clear: both;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .9em;
    line-height: 1.5;
    display: none;
}

.pcf-feedback.error {
    display: block;
    background: #fde8e8;
    color: #c0392b;
    border: 1.5px solid #f5c6c6;
}

.pcf-feedback.success {
    display: block;
    background: #edf7ed;
    color: #2d6a2d;
    border: 1.5px solid #b2dfb2;
}

.pcf-success {
    padding: 20px 24px;
    background: #edf7ed;
    border: 1.5px solid #b2dfb2;
    border-radius: 8px;
    color: #2d6a2d;
    font-size: .95rem;
    line-height: 1.6;
}

/* ── Mise en forme ── */
.pcf-field--separator { margin-bottom: 20px; }
.pcf-field--separator hr {
    border: none;
    border-top: 1px solid var(--pcf-color-border);
    margin: 0;
}

.pcf-field--heading h2,
.pcf-field--heading h3,
.pcf-field--heading h4 {
    margin: 0 0 4px;
    color: var(--pcf-color);
    font-weight: 600;
}

.pcf-field--paragraph p {
    margin: 0;
    color: var(--pcf-color);
    font-size: .9em;
    line-height: 1.55;
}
