/* ==============================
   Bloc de contact public partagé
   (extrait de depannage.css — utilisé sur /, /depannage, /siteinternet, /formations)
   ============================== */

/* Section englobante */
.contact-section {
    background: var(--c-surface-alt);
}

/* Grille bloc complet : panneau infos (gauche) + form (droite) */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 32px oklch(33% 0.09 252 / 0.12);
}

@media (max-width: 991px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
}

/* Panneau gauche : infos */
.contact-info-panel {
    background: linear-gradient(160deg, var(--c-brand) 0%, var(--c-footer) 100%);
    padding: 2.5rem 2rem;
    color: var(--c-text-on-dark);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.contact-info-sub {
    font-size: 0.9rem;
    color: oklch(98% 0.005 78 / 0.75);
    line-height: 1.6;
    margin: 0;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: oklch(98% 0.005 78 / 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-info-list li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-info-list li strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-info-list li span {
    font-size: 0.8rem;
    color: oklch(98% 0.005 78 / 0.65);
}

.contact-phone-link {
    color: var(--c-brand-light);
    font-weight: 600;
    text-decoration: none;
}

/* Surcharge a l'interieur de la contact-card : pas d'ombre ni de border-radius
   pour s'inscrire proprement dans la grille gauche+droite */
.contact-card .contact-form-panel {
    box-shadow: none;
    border-radius: 0;
}

/* Panneau droit : formulaire */
.contact-form-panel {
    background: var(--c-surface);
    padding: 2.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 32px oklch(33% 0.09 252 / 0.12);
}

@media (max-width: 576px) {
    .contact-form-panel {
        padding: 1.5rem 1.25rem;
    }
}

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

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

.cf-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cf-label i {
    color: var(--c-brand-light);
}

.cf-optional {
    font-weight: 400;
    color: var(--c-text-muted);
    font-size: 0.78rem;
}

.cf-input,
.cf-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid oklch(92% 0.008 78);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--c-text);
    background: oklch(97% 0.005 78);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}

.cf-input:focus,
.cf-select:focus {
    border-color: var(--c-brand-light);
    background: var(--c-surface);
    box-shadow: 0 0 0 3px oklch(59% 0.14 228 / 0.15);
}

.cf-input::placeholder {
    color: oklch(82% 0.008 252);
    font-size: 0.85rem;
}

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

.cf-consent {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.5;
}

.cf-consent .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
}

.cf-consent .form-check-input {
    margin-left: 0;
    margin-top: 2px;
    flex-shrink: 0;
}

.cf-consent .form-check-label {
    margin-left: 0;
    padding-left: 0;
}

.cf-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--c-brand-light);
    border-radius: 5px;
    background: oklch(97% 0.005 78);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cf-consent input[type="checkbox"]:checked {
    background: var(--c-brand-light);
    border-color: var(--c-brand-light);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.485 1.929a1 1 0 0 1 0 1.414l-7.778 7.778a1 1 0 0 1-1.414 0L.929 7.757a1 1 0 0 1 1.414-1.414L5.293 9.293l7.071-7.071a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

.cf-consent input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px oklch(59% 0.14 228 / 0.20);
}

.cf-submit {
    width: 100%;
    padding: 0.8rem;
    background: var(--c-brand);
    color: var(--c-text-on-dark);
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.cf-submit:hover {
    background: var(--c-brand-light);
    opacity: 0.95;
    transform: translateY(-1px);
}
