/* pages-ui.css — habillage des pages publiques : accueil, connexion, inscription, dépôt de projet,
   recherche, fiche prestataire, avis, pages légales, réponse à un devis. Purement visuel :
   aucun identifiant, texte ni script modifié. Chargé APRÈS le <style> de chaque page. */
:root { --pu-ligne: #e4eaf1; --pu-doux: #eef4fa; --pu-ombre: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.08); --pu-ombre-haute: 0 4px 8px rgba(16,24,40,.08), 0 18px 40px rgba(16,24,40,.14); }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid #FF6A39; outline-offset: 2px; }
a, button, .cat-card, .pro-card, .testi-card, .step { transition: background-color .15s, color .15s, box-shadow .18s, transform .18s, border-color .15s; }

/* ---------- Champs & boutons communs ---------- */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], input[type=search], textarea, select { border-radius: 10px !important; border-color: #d3dbe6; background-color: #fff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #0B3D62 !important; box-shadow: 0 0 0 3px rgba(11,61,98,.15) !important; }
input[type=checkbox], input[type=radio] { accent-color: #0B3D62; }
.btn-submit, .btn, .btn-accept, .btn-new, .btn-back { border-radius: 10px !important; }
.btn-submit { box-shadow: 0 4px 12px rgba(8,42,68,.22); }
.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(8,42,68,.28); }
.btn-submit:active:not(:disabled) { transform: translateY(1px); }
.btn-accent { box-shadow: 0 4px 12px rgba(255,106,57,.35); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(255,106,57,.42); text-decoration: none; }

/* ---------- Connexion (login, login sous-compte) ---------- */
body:has(.login-box) { background: radial-gradient(1200px 500px at 85% -10%, rgba(255,106,57,.14), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(11,61,98,.16), transparent 60%), #F6F5F1; }
.login-box { border-radius: 20px !important; box-shadow: var(--pu-ombre-haute) !important; border-top: 5px solid #FF6A39; position: relative; padding: 2.6rem 2.4rem !important; animation: pu-monte .35s ease-out both; }
.login-box .logo { font-size: 2rem !important; margin-bottom: 1.1rem !important; }
.login-box h1 { font-size: 1.35rem; }
.login-box .btn-submit { background: linear-gradient(135deg, #082A44, #0B3D62 70%, #14618f); }
.msg { border-radius: 12px !important; }
.bottom-link a { text-decoration: none; border-bottom: 1.5px solid rgba(11,61,98,.25); }
.bottom-link a:hover { border-bottom-color: #FF6A39; color: #FF6A39; }

/* ---------- Inscription & dépôt de projet ---------- */
body:has(.form-card) { background: linear-gradient(180deg, #eaf0f6 0, #F6F5F1 360px) fixed; }
header { box-shadow: 0 2px 12px rgba(16,24,40,.05); }
.form-card { border-radius: 20px !important; box-shadow: var(--pu-ombre-haute) !important; border: 1px solid var(--pu-ligne); border-top: 5px solid #FF6A39 !important; overflow: hidden; animation: pu-monte .35s ease-out both; }
.form-header h1 { font-size: 1.7rem; letter-spacing: -.01em; color: #082A44; }
.form-section-title { display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem !important; background: var(--pu-doux); border-radius: 10px; border-bottom: 0 !important; border-left: 4px solid #0B3D62; color: #082A44; font-size: 1rem !important; }
.form-card label { color: #1f2a37; }
.form-card input, .form-card select, .form-card textarea { padding: .8rem .9rem; }
.form-card .btn-submit { background: linear-gradient(135deg, #FF6A39, #f0561f); box-shadow: 0 6px 16px rgba(255,106,57,.4); font-size: 1.02rem; }
.form-card .btn-submit:hover:not(:disabled) { box-shadow: 0 10px 22px rgba(255,106,57,.48); }
.form-card .btn-submit:disabled { background: #cbd5e1; box-shadow: none; }

/* ---------- Accueil ---------- */
.hero { background: radial-gradient(900px 380px at 82% -20%, rgba(255,106,57,.28), transparent 62%), linear-gradient(135deg, #082A44, #0B3D62 65%, #14618f); position: relative; }
.hero:not([style*="background-image"]) { padding-top: 52px; padding-bottom: 44px; }
.hero h1 { letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0,0,0,.18); }
.search-box { border-radius: 20px; box-shadow: 0 24px 50px rgba(8,42,68,.35); border: 1px solid rgba(255,255,255,.6); }
.search-box select, .search-box input { background: #f3f6fa; }
.chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
header { position: relative; z-index: 60; }
.hero { z-index: 0; }
@media (min-width: 861px) { header { -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); } }
@media (max-width: 860px) { nav.main-nav { top: 100% !important; z-index: 70; box-shadow: 0 14px 30px rgba(16,24,40,.18); } .header-inner { min-height: 76px; } .header-inner .logo { align-items: flex-start; } .search-box select { flex: 0 0 auto !important; } }
.header-inner { min-height: 88px; }
nav.main-nav a:not(.btn) { position: relative; text-decoration: none; }
nav.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: #FF6A39; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
nav.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.trust-strip { box-shadow: 0 6px 18px rgba(16,24,40,.04); }
.trust-item { background: var(--pu-doux); border-radius: 999px; padding: .5rem 1rem; }
.section h2 { letter-spacing: -.015em; }
.section h2::after { content: ""; display: block; width: 54px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #FF6A39, #ffb08f); margin: .7rem auto 0; }
.step { background: #fff; border: 1px solid var(--pu-ligne); border-radius: 18px; padding: 1.6rem 1.4rem; box-shadow: var(--pu-ombre); text-align: center; }
.step:hover { transform: translateY(-4px); box-shadow: var(--pu-ombre-haute); }
.step-num { margin-left: auto; margin-right: auto; background: linear-gradient(135deg, #0B3D62, #14618f) !important; box-shadow: 0 6px 14px rgba(11,61,98,.3); }
.cat-card { border: 1px solid var(--pu-ligne); border-radius: 16px !important; box-shadow: var(--pu-ombre); }
.cat-card:hover { transform: translateY(-4px) !important; box-shadow: var(--pu-ombre-haute); text-decoration: none; }
.testi-card { border: 1px solid var(--pu-ligne); border-radius: 16px !important; box-shadow: var(--pu-ombre); }
.testi-card:hover { transform: translateY(-3px); box-shadow: var(--pu-ombre-haute); }
.cta-band { background: radial-gradient(700px 300px at 90% 120%, rgba(255,106,57,.3), transparent 60%), linear-gradient(135deg, #082A44, #0B3D62); }
footer { background: linear-gradient(180deg, #12181F, #0c1116); }
.footer-col a:hover { color: #fff; }

/* ---------- Recherche & fiche prestataire ---------- */
.pro-card, .profile-card { border: 1px solid var(--pu-ligne); border-radius: 16px !important; box-shadow: var(--pu-ombre); }
.pro-card:hover { transform: translateY(-3px); box-shadow: var(--pu-ombre-haute); }
.filtre-chip { border-radius: 999px !important; }
.pro-badge, .mini-badge, .badge, .verified, .pro-verified { border-radius: 999px; }

/* ---------- Avis, réponse à un devis ---------- */
.card, .msg-box { border-radius: 16px !important; box-shadow: var(--pu-ombre); border: 1px solid var(--pu-ligne); }
.empty { border-radius: 16px; }

/* ---------- Pages légales (cgu, confidentialité, mentions) ---------- */
body > main, body > .container, body > .page, body > article { line-height: 1.7; }
body > main h1, body > .container h1 { letter-spacing: -.01em; }
body > main h2, body > .container h2, body > article h2 { padding-left: .7rem; border-left: 4px solid #FF6A39; margin-top: 2rem; }

@keyframes pu-monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .search-box { border: 0; } .trust-item { border-radius: 14px; } .step:hover, .cat-card:hover { transform: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
/* Bandeau d'accueil : marge latérale cohérente avec le reste de la page (le logo touchait le bord sur téléphone). */
.wrap.header-inner { padding-left: 20px; padding-right: 20px; }
