/* Page Contact (partials/contact-page.blade.php) : même présentation que la page FAQ (/faqs) */
.tv-contact { --tv-accent: var(--primary-color, #98bc2a); --tv-accent-rgb: var(--primary-color-rgb, 152,188,42); --tv-heading: var(--heading-color, #121514); background: #fff; }
.tv-contact svg, .tv-contact svg * { color: inherit; }

.tv-contact__wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 32px); }
.tv-contact__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; padding-block: clamp(32px, 5vw, 56px) clamp(40px, 6vw, 72px); }

/* Colonne grise (comme les catégories de la FAQ) */
.tv-contact__nav { position: sticky; top: 100px; padding: 18px; border: 1px solid #e9eceb; border-radius: 12px; background: #f9fafa; }
.tv-contact .tv-contact__nav-title { margin: 0 0 12px; color: #6b7270; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tv-contact__items { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tv-contact__items li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; transition: background .2s ease; }
.tv-contact__items li:hover { background: #fff; }
.tv-contact__item-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: rgba(var(--tv-accent-rgb), .14); color: var(--tv-accent); }
.tv-contact__item-icon svg { width: 18px; height: 18px; }
.tv-contact__item-text { display: flex; flex-direction: column; min-width: 0; }
.tv-contact__item-text small { color: #6b7270; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.6; }
.tv-contact__item-text a, .tv-contact__item-text span { color: var(--tv-heading); font-size: .95rem; font-weight: 600; line-height: 1.5; text-decoration: none; overflow-wrap: break-word; }
.tv-contact__item-text a:hover { color: var(--tv-accent); }
.tv-contact__item-text .tv-contact__wa { margin-top: 2px; color: var(--tv-accent); font-size: .85rem; }
.tv-contact .tv-contact__nav-note { margin: 14px 0 0; padding: 14px 12px 0; border-top: 1px solid #e9eceb; color: #6b7270; font-size: .85rem; line-height: 1.6; }

/* Titre avec pastille d'icône (comme les groupes de la FAQ) */
.tv-contact__content { min-width: 0; }
.tv-contact .tv-contact__title { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; color: var(--tv-heading); font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.tv-contact__title-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(var(--tv-accent-rgb), .12); color: var(--tv-accent); }
.tv-contact__title-icon svg { width: 20px; height: 20px; }
.tv-contact .tv-contact__desc { margin: 0 0 16px; color: #4b5250; }

/* Carte du formulaire (comme une question ouverte de la FAQ) */
.tv-contact__card { padding: 24px; border: 1px solid rgba(var(--tv-accent-rgb), .45); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.tv-contact__form .form-group { margin-bottom: 18px; }
.tv-contact__form label { display: inline-block; margin-bottom: 6px; color: var(--tv-heading); font-size: .9rem; font-weight: 700; }
.tv-contact__form .form-control { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #e9eceb; border-radius: 8px; background: #f9fafa; color: var(--tv-heading); font-size: .98rem; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.tv-contact__form .form-control::placeholder { color: #9aa19f; }
.tv-contact__form .form-control:hover { border-color: #dfe4e2; }
.tv-contact__form textarea.form-control { min-height: 150px; resize: vertical; }
.tv-contact__form .form-control:focus { outline: 0; background: #fff; border-color: var(--tv-accent); box-shadow: 0 0 0 3px rgba(var(--tv-accent-rgb), .18); }
.tv-contact__form .row { row-gap: 0; }
.tv-contact__form .form-check { display: flex !important; align-items: center; gap: 10px; margin: 2px 0 20px; padding-left: 0 !important; cursor: pointer; }
.tv-contact__form .form-check-input { -webkit-appearance: auto !important; appearance: auto !important; position: static !important; opacity: 1 !important; display: inline-block !important; flex-shrink: 0; width: 18px !important; height: 18px !important; margin: 0 !important; accent-color: var(--tv-accent); cursor: pointer; }
.tv-contact__form .form-check-label { color: #4b5250; font-size: .9rem; }
.tv-contact .tv-contact__form button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border: 0; border-radius: 8px; background: var(--tv-accent) !important; color: #fff !important; font-weight: 700; transition: filter .2s ease; }
.tv-contact .tv-contact__form button[type=submit] * { color: #fff !important; }
.tv-contact .tv-contact__form button[type=submit]:hover { filter: brightness(.93); }

.tv-contact__extra { margin-top: 24px; color: #4b5250; line-height: 1.75; }

/* Bloc sombre (comme « Vous n'avez pas trouvé votre réponse ? » de la FAQ) */
.tv-contact__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 40px; padding: 24px; border-radius: 14px; background: #121514; }
.tv-contact__cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(var(--tv-accent-rgb), .18); color: var(--tv-accent); }
.tv-contact__cta-icon svg { width: 26px; height: 26px; }
.tv-contact__cta-text { flex: 1 1 260px; }
.tv-contact .tv-contact__cta-title { margin: 0 0 4px; color: #fff; font-size: 1.15rem; font-weight: 800; }
.tv-contact .tv-contact__cta-sub { margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; }
.tv-contact .tv-contact__cta-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 8px; background: var(--tv-accent); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; transition: filter .2s ease; }
.tv-contact .tv-contact__cta-btn:hover { filter: brightness(.93); color: #fff; }
.tv-contact__cta-btn svg, .tv-contact__cta-btn svg * { width: 20px; height: 20px; color: #fff !important; }

@media (max-width: 991px) {
    .tv-contact__layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .tv-contact__nav { position: static; order: 2; }
}
@media (max-width: 575px) {
    .tv-contact__card { padding: 18px; }
    .tv-contact .tv-contact__form button[type=submit] { width: 100%; }
    .tv-contact__cta { padding: 20px; }
    .tv-contact .tv-contact__cta-btn { justify-content: center; width: 100%; }
}

/* Anti-spam : champ piège hors écran (pas display:none, que certains robots repèrent) */
.tv-contact__hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Bouton en cours d'envoi */
.tv-contact__form button[type=submit] { position: relative; }
.tv-contact__form button[type=submit].button-loading { pointer-events: none; opacity: .85; color: transparent !important; }
.tv-contact__form button[type=submit].button-loading * { visibility: hidden; }
.tv-contact__form button[type=submit].button-loading::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
    border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
    animation: tv-contact-spin .7s linear infinite;
}
@keyframes tv-contact-spin { to { transform: rotate(360deg); } }

/* Messages après l'envoi */
.tv-contact__form .contact-message { margin: 18px 0 0; padding: 14px 16px 14px 46px; border-radius: 10px; font-size: 15px; line-height: 1.5; position: relative; }
.tv-contact__form .contact-message::before { content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: currentColor; -webkit-mask: var(--tv-contact-icon) center / 20px no-repeat; mask: var(--tv-contact-icon) center / 20px no-repeat; }
.tv-contact__form .contact-success-message { background: #ecfdf3; border: 1px solid #a7f3d0; color: #067647; --tv-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E"); }
.tv-contact__form .contact-error-message { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; --tv-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E"); }
.tv-contact__form .contact-message * { color: inherit; }
.tv-contact__items li { padding: 10px 8px; }
.tv-contact__item-text a[href^="mailto:"] { font-size: .9rem; white-space: nowrap; }
.tv-contact__item-text small ~ span { font-weight: 500; color: #4b5250; }
