/* ===== Formulaire de contact ===== */
.contact-form-card {
    margin-top: 3rem;
    background: #fff;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.contact-form-title em {
    color: var(--color-rose, #E0006F);
}

.contact-form-intro {
    color: #666;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cf-field label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cf-field textarea {
    resize: vertical;
    min-height: 130px;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--color-rose, #E0006F);
    box-shadow: 0 0 0 4px rgba(224, 0, 111, 0.12);
}

/* Erreurs affichées seulement après une tentative d'envoi */
.cf-validated .cf-field :invalid {
    border-color: #d93025;
    background: #fff6f5;
}

.cf-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.cf-consent input {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--color-rose, #E0006F);
}

.cf-validated .cf-consent input:invalid + span {
    color: #d93025;
}

.cf-submit {
    align-self: flex-start;
    font-family: inherit;
}

.cf-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.cf-status {
    font-size: 0.95rem;
    margin: 0;
}

.cf-status:empty {
    display: none;
}

.cf-status.is-success,
.cf-status.is-error {
    padding: 1rem 1.25rem;
    border-radius: 12px;
}

.cf-status.is-success {
    background: #ecf9ec;
    color: #1e6b1e;
    border-left: 4px solid var(--color-vert, #32CD32);
}

.cf-status.is-error {
    background: #fdecec;
    color: #a1231b;
    border-left: 4px solid #d93025;
}

.cf-status a {
    color: inherit;
    font-weight: 600;
}

/* Champ anti-spam invisible */
.cf-honey {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }

    .cf-row {
        grid-template-columns: 1fr;
    }

    .contact-form-title {
        font-size: 1.6rem;
    }

    .cf-submit {
        align-self: stretch;
    }
}

/* ===== Bandeau cookies ===== */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    font-size: 0.92rem;
    line-height: 1.5;
    color: #333;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
}

.cookie-banner a {
    color: var(--color-rose, #E0006F);
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* Les deux boutons ont le même poids visuel, comme le demande la CNIL */
.cookie-btn {
    font: inherit;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: 99em;
    cursor: pointer;
    border: 2px solid var(--color-rose, #E0006F);
    transition: background 0.2s ease, color 0.2s ease;
}

.cookie-refuse {
    background: #fff;
    color: var(--color-rose, #E0006F);
}

.cookie-accept {
    background: var(--color-rose, #E0006F);
    color: #fff;
}

.cookie-refuse:hover {
    background: rgba(224, 0, 111, 0.08);
}

.cookie-accept:hover {
    background: #c0005f;
    border-color: #c0005f;
}

.footer-bottom-links a + a {
    margin-left: 1.25rem;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-btn {
        flex: 1;
    }
}
