
/* ==== KORDA V10 — LOT 7 : cohérence des champs, fenêtres secondaires, zones tactiles. CSS seul, additif, retirable. ==== */
:root{--l7-r:14px;--l7-h:46px}
/* 1. Champs des fenêtres (connexion, profil, contact) : même rayon, hauteur, focus */
html body :is(.auth-dialog,.ctc-body,#view-contact):not(#_x) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=hidden]){
  border-radius:var(--l7-r);min-height:var(--l7-h);font-size:15px;border:1px solid var(--line);transition:border-color var(--v10-fast) var(--v10-ease),box-shadow var(--v10-fast) var(--v10-ease)}
html body :is(.auth-dialog,.ctc-body,#view-contact):not(#_x) textarea{min-height:104px;line-height:1.55}
html body :is(.auth-dialog,.ctc-body,#view-contact):not(#_x) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=file]):focus{border-color:var(--teal);box-shadow:var(--v10-ring);outline:none}
html body :is(.auth-dialog,.ctc-body,#view-contact):not(#_x) :is(input,select,textarea)::placeholder{color:var(--muted);opacity:.85}
html body :is(.auth-dialog,.ctc-body,#view-contact):not(#_x) label{font-size:12.5px;font-weight:600}
/* 2. Fenêtre Signalement / Caution (k9) : style moderne + correction du mode sombre */
.k9-modal{background:rgba(10,24,34,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html body .k9-card{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 1px 2px rgba(10,24,34,.1),0 36px 80px -28px rgba(10,24,34,.5)}
html body .k9-card h3{color:var(--navy);font-size:20px;font-weight:600;letter-spacing:-.01em}
html[data-theme="dark"] body .k9-card h3{color:#edf2f4}
html body .k9-card :is(textarea,select,input[type=text],input[type=url],input[type=number],input[type=date]){
  background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:var(--l7-r);min-height:var(--l7-h);padding:10px 14px;font:inherit;font-size:15px}
html body .k9-card textarea{min-height:104px;line-height:1.55}
html body .k9-card :is(textarea,select,input):focus{border-color:var(--teal);box-shadow:var(--v10-ring);outline:none}
html body .k9-tabs button{min-height:40px;padding:8px 16px;border-color:var(--line);color:var(--ink);font-weight:600;font-size:13.5px;transition:background var(--v10-fast),border-color var(--v10-fast)}
html body .k9-tabs button:hover{border-color:var(--teal)}
html body .k9-tabs button[aria-selected=true]{background:var(--teal);border-color:var(--teal);color:#fff}
html body .k9-row{background:transparent;border-color:var(--line);border-radius:var(--l7-r)}
html body .k9-card :is(.btn,button):focus-visible,html body .k9-tabs button:focus-visible{outline:none;box-shadow:var(--v10-ring)}
/* 3. Zones tactiles et petits textes */
html body :is(.auth-close,.pm-photo-act button,.auth-switch button,.auth-link){min-width:44px;min-height:44px}
html body #view-detail :is(a,button).link,html body #view-detail a[onclick*="signal"],html body #view-detail a[onclick*="Signal"],html body #view-detail a[onclick*="indispon"]{display:inline-flex;align-items:center;min-height:36px;font-size:13px}
html body :is(.k9-lnk,.k9-cmp-x){font-size:12px}
/* 4. Page « Modifier mon annonce » : formulaire plus large sur grand écran */
@media(min-width:1000px){html body #view-modifier .form{max-width:960px}}
html body #view-modifier .form{margin-inline:0}
/* mode sombre : contraste des textes d'aide */
html[data-theme="dark"] body :is(.auth-dialog,.ctc-body,#view-contact,.k9-card) :is(input,select,textarea)::placeholder{color:#b0bec7}
@media(prefers-reduced-motion:reduce){html body :is(.auth-dialog,.ctc-body,#view-contact,.k9-card,.k9-tabs) *{transition:none!important}}
html[data-theme="dark"] body .k9-card :is(textarea,select,input[type=text],input[type=url],input[type=number],input[type=date]){background:#15222b;border-color:#40515d}
/* 5. Signalement en mode nuit : tous les textes lisibles (contraste ≥ 4,5:1) */
html[data-theme="dark"] body .k9-card{color:#edf2f4}
html[data-theme="dark"] body .k9-card :is(p,small,label,li,legend,dt,dd,summary){color:#d3dee4}
html[data-theme="dark"] body .k9-card :is(.k9-hint,.muted,.hint,small){color:#b9c8d0}
html[data-theme="dark"] body .k9-card a{color:#7fd6c8}
html[data-theme="dark"] body .k9-card :is(.btn,button):not(.k9-tabs button):not([aria-selected=true]):disabled{background:#2a3a45;color:#aebcc4;border-color:#40515d;opacity:1}
html[data-theme="dark"] body .k9-card input[type=file]{color:#d3dee4}
html[data-theme="dark"] body .k9-card input[type=file]::file-selector-button{background:#2a3a45;color:#edf2f4;border:1px solid #40515d;border-radius:10px;padding:6px 12px;margin-right:10px;font:inherit;font-size:13px}
html body .k9-card input[type=file]::file-selector-button{border-radius:10px;padding:6px 12px;margin-right:10px;font:inherit;font-size:13px;cursor:pointer}
/* 6. En-tête façon YouTube (ordinateur et téléphone) : ☰ + logo à gauche ; filtre + recherche ; alertes, profil, mode nuit à droite.
   L'animation de la barre (loupe → barre sur ordinateur) est conservée : seules la largeur de la zone et la forme arrondie changent. */
.l7-burger,.l7-bell{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border-radius:50%;border:0;background:transparent;color:var(--ink);cursor:pointer;transition:background var(--v10-fast) var(--v10-ease)}
.l7-burger:hover,.l7-bell:hover{background:rgba(22,120,111,.12)}
.l7-burger:focus-visible,.l7-bell:focus-visible,.l7-dr a:focus-visible,.l7-dr-x:focus-visible{outline:none;box-shadow:var(--v10-ring)}
html[data-theme="dark"] .l7-burger:hover,html[data-theme="dark"] .l7-bell:hover{background:rgba(255,255,255,.1)}
html body:not(#_x):not(#_y) header #tabs button[data-v="accueil"],html body:not(#_x):not(#_y) header #tabs .nav-pill{display:none}
html body:not(#_x):not(#_y) header .nav-right .theme-toggle{width:44px;height:44px;padding:0;justify-content:center}
html body:not(#_x):not(#_y) header .nav-right .theme-toggle #theme-label{display:none}
html body:not(#_x):not(#_y) header .nav-right{gap:6px}
@media(min-width:801px){
 html body:not(#_x):not(#_y) header .nav{max-width:1400px;padding-top:8px;padding-bottom:8px;gap:12px}
 html body:not(#_x):not(#_y) header #tabs{margin-left:auto}
 html body:not(#_x):not(#_y) header .nav-search{flex:1 1 auto;max-width:560px;margin-inline:0 auto}
 html body:not(#_x):not(#_y) header .nav-search.ns-open::before{border-radius:999px}
 html body:not(#_x):not(#_y) header .nav-search input{padding-left:44px;padding-right:18px}
 html body:not(#_x):not(#_y) header .nav-search>svg{left:13px}
 html body:not(#_x):not(#_y) header .nav-right{margin-left:0}
}
@media(max-width:800px){
 html body:not(#_x):not(#_y) header .nav{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:6px 4px;padding:8px 12px}
 html body:not(#_x):not(#_y) header .l7-burger{grid-column:1;grid-row:1}
 html body:not(#_x):not(#_y) header .brand{grid-column:2;grid-row:1;justify-self:start;min-width:0}
 html body:not(#_x):not(#_y) header .nav-right{grid-column:3;grid-row:1;grid-column-end:4;align-self:center;justify-self:end;margin:0}
 html body:not(#_x):not(#_y) header #tabs{grid-column:1;grid-row:2;width:auto;margin:0}
 html body:not(#_x):not(#_y) header .nav-search{grid-column:2/4;grid-row:2;width:100%;max-width:none;margin:0}
 html body:not(#_x):not(#_y) header .nav-search input{border-radius:999px}
@media(max-width:800px){html body:not(#_x):not(#_y) header .nav:has(.auth-zone.visiteur) .nav-right{grid-column:1/-1;grid-row:3;justify-self:stretch;display:flex;align-items:center}
 html body:not(#_x):not(#_y) header .nav:has(.auth-zone.visiteur) .nav-right .auth-zone{flex:1;display:flex}
 html body:not(#_x):not(#_y) header .nav:has(.auth-zone.visiteur) .nav-right .auth-zone .nav-btn{flex:1;min-height:44px}
 html body:not(#_x):not(#_y) header .nav:has(.auth-zone.visiteur) .nav-right .l7-bell{margin-right:auto}}
}
/* menu ☰ */
.l7-ov{position:fixed;inset:0;z-index:2147482000;background:rgba(10,24,34,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:0;transition:opacity .22s ease}
.l7-ov.on{opacity:1}
.l7-dr{position:fixed;top:0;bottom:0;left:0;z-index:2147482001;width:min(320px,86vw);background:color-mix(in srgb,var(--white) 60%,transparent);-webkit-backdrop-filter:blur(20px) saturate(1.5);backdrop-filter:blur(20px) saturate(1.5);color:var(--ink);border-right:1px solid var(--line);box-shadow:0 30px 80px -20px rgba(10,24,34,.5);padding:14px 12px 24px;overflow:auto;transform:translateX(-102%);transition:transform .3s var(--v10-ease)}
.l7-dr.on{transform:none}
.l7-dr-h{display:flex;align-items:center;gap:8px;padding:0 4px 10px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.l7-dr-x{width:44px;height:44px;border-radius:50%;border:0;background:transparent;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.l7-dr-x:hover{background:rgba(22,120,111,.12)}
.l7-dr-b{font-weight:700;font-size:20px;letter-spacing:-.01em;color:var(--navy)}.l7-dr-b i{font-style:normal;color:var(--coral)}
html[data-theme="dark"] .l7-dr-b{color:#edf2f4}
.l7-dr h4{margin:16px 10px 6px;font-size:12.5px;font-weight:600;color:var(--muted)}
.l7-dr ul{list-style:none;margin:0;padding:0}
.l7-dr a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:12px;color:var(--ink);text-decoration:none;font-size:15px;font-weight:500}
.l7-dr a:hover{background:rgba(22,120,111,.1)}
@media(prefers-reduced-motion:reduce){.l7-ov,.l7-dr{transition:none}}
@media(max-width:800px){html body:not(#_x):not(#_y) header .brand .sub{display:block;font-size:11px;line-height:1.2;white-space:nowrap;opacity:1;color:var(--muted)}
 html body:not(#_x):not(#_y) header .brand>span{display:block;line-height:1.15;white-space:nowrap}}
html body:not(#_x):not(#_y) header .brand .sig{display:inline}
/* pastille verte avec lueur : uniquement sur le bouton de filtre */
html body:not(#_x):not(#_y) header #tabs button[data-v="recherche"]{position:relative;overflow:hidden;min-width:44px;min-height:44px;border-radius:999px;color:#fff;
 border:1px solid rgba(255,255,255,.38);background:radial-gradient(120% 150% at 16% 0%,rgba(255,255,255,.3),rgba(255,255,255,0) 58%),linear-gradient(180deg,#20897f,#16786f);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.42),inset 0 -1px 0 rgba(0,0,0,.18),0 9px 20px -10px rgba(15,101,93,.6),0 2px 5px rgba(15,101,93,.16)}
html[data-theme="dark"] body:not(#_x):not(#_y) header #tabs button[data-v="recherche"]{border-color:rgba(255,255,255,.2);background:radial-gradient(120% 150% at 16% 0%,rgba(190,240,230,.24),rgba(190,240,230,0) 58%),linear-gradient(180deg,rgba(30,140,128,.78),rgba(18,104,96,.76))}
html body:not(#_x):not(#_y) header #tabs button[data-v="recherche"] svg,html body:not(#_x):not(#_y) header #tabs button[data-v="recherche"] .tl{color:#fff;stroke:currentColor}
