/* À nos tables — composition responsive d'après les maquettes validées (kit UX/UI v1.1). */
/* CAT-A — catalogue familial : champs alignés, recherche et liste responsive. */
.catalog-create,.catalog-list{margin-bottom:24px}
.catalog-create h2,.catalog-list h2{margin:0 0 10px}
.catalog-help{color:var(--ant-muted);margin:0 0 18px}
.catalog-create-form,.catalog-filter{display:grid;grid-template-columns:minmax(0,2fr) minmax(190px,1fr) auto;align-items:end;gap:16px}
.catalog-field{min-width:0}.catalog-field>label{display:block;margin-bottom:7px;font-weight:800}
.catalog-field .ant-input{min-height:46px;width:100%}
.catalog-submit,.catalog-search-button{min-width:135px;min-height:46px}
.catalog-error{color:var(--ant-danger);margin:5px 0 0;font-weight:700}
.catalog-similar{margin-top:20px;padding:15px 18px;border-radius:14px;background:var(--ant-surface-muted);border:1px solid var(--ant-border)}
.catalog-similar ul{margin:8px 0}.catalog-similar form{margin-top:12px}
.catalog-filter{grid-template-columns:minmax(0,2fr) minmax(190px,1fr) auto auto;margin:20px 0}
.catalog-reset{min-height:44px;display:inline-flex;align-items:center;font-weight:700;color:var(--ant-primary)}
.catalog-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:15px 0 20px;padding:0;list-style:none}
.catalog-item{display:flex;gap:13px;align-items:center;min-height:75px;padding:12px;border:1px solid var(--ant-border);background:var(--ant-surface-muted);border-radius:14px}
.catalog-item-icon{display:grid;place-items:center;flex:0 0 45px;width:45px;height:45px;border-radius:12px;background:var(--ant-surface);font-size:1.55rem}
.catalog-item-copy{display:flex;flex-direction:column;min-width:0}.catalog-item-copy strong{overflow-wrap:anywhere}
.catalog-item-copy small{color:var(--ant-muted)}.catalog-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:18px;margin-top:18px}
.catalog-pagination a{color:var(--ant-primary);font-weight:800;min-height:44px;display:inline-flex;align-items:center}
@media(max-width:850px){.catalog-filter,.catalog-create-form{grid-template-columns:1fr 1fr}.catalog-submit,.catalog-search-button{width:100%}}
@media(max-width:600px){.catalog-filter,.catalog-create-form{grid-template-columns:minmax(0,1fr)}.catalog-items{grid-template-columns:minmax(0,1fr)}.catalog-reset{justify-content:center}}

:root{--sidebar-width:230px}
body{min-height:100vh}
.skip-link{position:absolute;left:12px;top:-90px;background:var(--ant-primary);color:var(--ant-on-primary);z-index:100;padding:12px 18px;border-radius:10px}.skip-link:focus{top:12px}
.app-shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:100vh}
.side-panel{background:var(--ant-surface);border-right:1px solid var(--ant-border);padding:24px 14px;display:flex;flex-direction:column;gap:22px}
.side-brand{display:flex;justify-content:center}.side-brand img{width:168px;height:auto;max-height:165px;object-fit:contain}
.side-nav{display:flex;flex-direction:column;gap:3px}.side-nav a{padding:9px 13px;min-height:44px;display:flex;align-items:center;gap:10px;border-radius:11px;text-decoration:none;font-weight:700}.side-nav a:hover,.side-nav a[aria-current="page"]{background:var(--ant-primary);color:var(--ant-on-primary)}
.side-heading{font-weight:900;letter-spacing:.09em;color:var(--ant-muted);font-size:.72rem;margin:18px 12px 4px}.side-divider{margin:10px 12px;border-bottom:1px solid var(--ant-border)}
.sidebar-signature{margin:auto 5px 0;text-align:center;font-family:var(--ant-font-heading);font-style:italic;color:var(--ant-muted);font-size:.87rem}
.app-main{min-width:0;display:flex;flex-direction:column}.topbar{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px clamp(16px,3vw,44px);background:var(--ant-surface);border-bottom:1px solid var(--ant-border)}
.topbar-welcome{font-weight:800}.topbar-actions{display:flex;align-items:center;gap:12px}.topbar-actions form{margin:0}
.theme-control{font-size:.8rem;color:var(--ant-muted);display:flex;flex-direction:column;gap:2px}.theme-control select{max-width:128px;border:1px solid var(--ant-border);border-radius:8px;background:var(--ant-surface);color:var(--ant-text);padding:5px}
.profile-link{display:grid;place-items:center;border-radius:50%;width:40px;height:40px;background:var(--ant-primary);color:var(--ant-on-primary);font-weight:900;text-decoration:none}
.logout-button{border:1px solid var(--ant-border);border-radius:999px;background:var(--ant-surface);color:var(--ant-text);font-size:.85rem;padding:8px 12px;min-height:44px}
.compact-brand{display:none}.compact-brand img{width:110px;height:auto}.page{width:100%;max-width:1320px;margin:0 auto;padding:27px clamp(16px,3vw,45px) 45px;flex:1}.site-footer{text-align:center;color:var(--ant-muted);padding:20px;font-size:.85rem}
.eyebrow{font-weight:900;font-size:.76rem;letter-spacing:.11em;color:var(--ant-primary)}
.home-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:start;justify-content:space-between;gap:24px;padding:42px clamp(20px,4vw,55px);border-radius:var(--ant-radius-lg);background:linear-gradient(100deg,rgba(31,53,35,.94),rgba(44,77,48,.82)),radial-gradient(circle at 85% 60%,#E3B373 0,transparent 35%);color:#fff;min-height:290px}
.home-hero::after{content:"❦";position:absolute;right:8%;top:12%;font-size:12rem;color:rgba(238,226,186,.19);z-index:-1;line-height:1}
.home-hero .eyebrow{color:#e7d9ac}.home-hero h1{font-size:clamp(2.2rem,4vw,3.7rem);font-style:italic;line-height:1.08;margin:13px 0}.home-hero h1 span{font-size:.72em}.home-hero p{font-size:1.03rem;max-width:470px;margin:0 0 23px}
.hero-search{display:flex;background:#fff;padding:5px;border-radius:100px;max-width:620px;gap:6px;align-items:center}.hero-search .ant-input{border:0;border-radius:100px;flex:1;min-width:0;color:#24372C;background:#fff}.hero-search .ant-button{white-space:nowrap;background:#2F5D46;color:white;border-color:#2F5D46}.hero-add{background:transparent;color:#fff;border-color:#fff;white-space:nowrap;text-decoration:none}
.home-section{margin-top:32px}.home-section h2,.page-heading h1{margin:0 0 14px;font-size:clamp(1.45rem,2.5vw,2rem)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading a{font-weight:700;font-size:.9rem;text-decoration:none;color:var(--ant-primary)}
.category-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}.category-card{display:flex;align-items:center;gap:10px;text-decoration:none;background:var(--ant-surface);border:1px solid var(--ant-border);border-radius:15px;min-height:92px;padding:14px;font-weight:700}.category-art{display:grid;place-items:center;font-size:2rem;width:54px;height:54px;border-radius:14px;background:var(--ant-surface-muted);color:var(--ant-primary)}.category-card>span:last-child{margin-left:auto}.category-card:hover,.recipe-card:hover{border-color:var(--ant-primary)}
.grid.recipe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:16px 0 30px}.recipe-card{border-radius:16px;background:var(--ant-surface);border:1px solid var(--ant-border);overflow:hidden;min-width:0;box-shadow:0 2px 10px rgba(22,36,24,.045)}.recipe-card-link{display:block;height:100%;text-decoration:none}.card-photo,.placeholder{height:155px;width:100%;object-fit:cover;background:var(--ant-surface-muted)}.placeholder{display:grid;place-items:center;font-size:3.3rem;color:var(--ant-primary)}.recipe-card-body{padding:13px}.recipe-category{display:inline-block;font-size:.75rem;border-radius:99px;background:var(--ant-surface-muted);color:var(--ant-text);padding:3px 9px;font-weight:800}.recipe-card h3{font-size:1.1rem;margin:9px 0 6px}.recipe-byline{font-size:.84rem;color:var(--ant-muted);margin:0}.ant-empty{grid-column:1/-1}
.heritage-banner{display:flex;align-items:center;gap:24px;background:var(--ant-surface-muted);border-radius:18px;padding:24px;margin:30px 0}.heritage-icon{font-size:4rem;color:var(--ant-accent)}.heritage-banner h2{margin:0 0 7px}.heritage-banner p{margin:3px 0}.upcoming{font-size:.86rem;color:var(--ant-muted)}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.page-heading h1{margin:5px 0}.page-heading p{color:var(--ant-muted);margin:0}.page-heading .ant-button{text-decoration:none}
.filters{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:0 0 24px}.filter-field{flex:1;min-width:170px}.filter-field label{display:block;margin-bottom:5px}.reset-filters{padding:11px 5px;min-height:44px}.ant-card input,.ant-card select,.ant-card textarea,.editor input,.editor select,.editor textarea{max-width:100%;padding:9px;border-radius:8px;border:1px solid var(--ant-border);background:var(--ant-surface);color:var(--ant-text)}
.recipe-photo{max-width:100%;max-height:430px;object-fit:contain;border-radius:var(--ant-radius-lg)}.recipe-columns{display:grid;grid-template-columns:minmax(240px,1fr) minmax(300px,2fr);gap:20px;margin:24px 0}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}.actions a{text-decoration:none}.narrow{max-width:580px;margin:auto}.small{max-width:125px}.row{margin:16px 0;padding:12px;border:1px solid var(--ant-border);border-radius:var(--ant-radius)}.editor{display:grid;gap:18px}.editor .ant-card{overflow:hidden}.notice{padding:14px;border:1px solid var(--ant-primary);border-radius:8px;margin:10px 0}.link-box{overflow-wrap:anywhere;background:var(--ant-surface-muted);padding:15px}.inline{display:inline}
.mobile-bottom-nav{display:none}
.guest-session{background:radial-gradient(ellipse at 20% 10%,rgba(143,168,135,.18),transparent 40%),var(--ant-bg)}.guest-header{padding:32px 16px 12px;text-align:center}.guest-header img{width:min(230px,62vw);height:160px;object-fit:contain}.guest-main{max-width:1000px;min-height:65vh;margin:0 auto;padding:20px 18px}.guest-footer{text-align:center;color:var(--ant-muted);padding:24px;font-size:.85rem}
.login-layout{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(30px,5vw,75px);max-width:900px;margin:5px auto 35px}.login-intro{padding:18px 8px}.login-intro h1{font-size:clamp(2.5rem,4vw,4rem);font-style:italic;line-height:1.12;margin:16px 0}.login-intro p{font-size:1.12rem;max-width:380px}.login-ornament{color:var(--ant-accent);font-size:5rem}.login-card{width:100%;padding:clamp(22px,3vw,38px);box-shadow:0 13px 35px rgba(21,36,24,.08)}.login-card h2{font-size:1.75rem;margin:0 0 8px}.form-intro,.login-help{color:var(--ant-muted);font-size:.92rem}.login-form{display:grid;gap:18px;margin-top:25px}.login-form .field label{display:block;font-weight:800;margin-bottom:7px}.login-form .field input{min-height:48px;width:100%;padding:10px 13px;border:1px solid var(--ant-border);background:var(--ant-surface);color:var(--ant-text);border-radius:11px}.login-submit{width:100%;margin:5px 0}.login-help{margin:19px 0 0}.form-errors,.field-error{color:var(--ant-danger)}.form-errors{padding:12px;background:var(--ant-surface-muted);border-radius:8px}.field-error{margin:4px 0}
@media(max-width:1150px){.grid.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-row{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-welcome{display:none}}
@media(max-width:900px){:root{--sidebar-width:190px}.side-brand img{width:130px}.grid.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-hero{flex-wrap:wrap}.home-hero-copy{width:100%}}
@media(max-width:720px){.app-shell{display:block}.side-panel{display:none}.compact-brand{display:inline-flex}.topbar{position:sticky;top:0;z-index:20;min-height:60px}.topbar-actions{gap:8px}.logout-button{font-size:.76rem;padding:6px 8px}.theme-control{font-size:0}.theme-control select{font-size:.75rem;max-width:108px}.page{padding:18px 14px 95px}.mobile-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:var(--ant-surface);border-top:1px solid var(--ant-border);justify-content:space-around;padding:6px 4px max(6px,env(safe-area-inset-bottom))}.mobile-bottom-nav a{min-height:52px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-decoration:none;font-size:.67rem;font-weight:700;border-radius:8px}.mobile-bottom-nav a span{font-size:1.4rem;line-height:1.25}.mobile-bottom-nav a[aria-current="page"]{background:var(--ant-surface-muted);color:var(--ant-primary)}.category-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-card{flex-direction:column;gap:2px;text-align:center;padding:10px;min-height:95px}.category-art{width:35px;height:30px;font-size:1.4rem}.category-card>span:last-child{display:none}.grid.recipe-grid{gap:10px}.card-photo,.placeholder{height:122px}.recipe-card-body{padding:10px}.recipe-card h3{font-size:.98rem}.home-hero{padding:26px 20px;min-height:auto}.home-hero h1{font-size:2.35rem}.home-hero::after{font-size:8rem;right:-9%;top:5%}.hero-search{border-radius:12px;flex-direction:column;align-items:stretch;padding:7px}.hero-search .ant-input,.hero-search .ant-button{width:100%}.recipe-columns{grid-template-columns:1fr}.page-heading{align-items:start;flex-direction:column}.filters{display:grid;grid-template-columns:1fr}.heritage-banner{padding:16px}.login-layout{display:block;max-width:470px}.login-intro{text-align:center;padding:0 5px 14px}.login-intro h1{font-size:2.5rem}.login-ornament{display:none}.guest-header{padding:15px}.guest-header img{height:115px}.guest-main{padding:5px 16px}.guest-footer{font-size:.8rem}}
@media(max-width:370px){.topbar .logout-button{font-size:0}.topbar .logout-button::after{content:'Sortir';font-size:.76rem}.grid.recipe-grid{grid-template-columns:1fr 1fr}.recipe-card h3{font-size:.9rem}}

/* Logos authentiques du kit v1.1, variantes par thème sans inversion CSS. */
.brand-logo--dark,.mobile-logo--dark{display:none}
html[data-theme="dark"] .brand-logo--light,html[data-theme="dark"] .mobile-logo--light{display:none}
html[data-theme="dark"] .brand-logo--dark,html[data-theme="dark"] .mobile-logo--dark{display:block}
@media(prefers-color-scheme:dark){
 html[data-theme="auto"] .brand-logo--light,html[data-theme="auto"] .mobile-logo--light{display:none}
 html[data-theme="auto"] .brand-logo--dark,html[data-theme="auto"] .mobile-logo--dark{display:block}
}
.side-brand img.brand-logo{width:190px;max-width:100%;max-height:none;height:auto}
.guest-header img.brand-logo{width:min(285px,75vw);max-width:100%;height:auto}
.logout-icon{display:none}
@media(max-width:900px){.side-brand img.brand-logo{width:155px}}
@media(max-width:720px){
 .topbar{padding:7px 10px;gap:6px;min-height:62px;justify-content:space-between}
 .compact-brand{display:flex;align-items:center;justify-content:flex-start;min-width:0;flex:1 1 auto;min-height:44px;text-decoration:none;background:transparent;border:0;box-shadow:none;padding:0}
 .compact-brand img.mobile-logo{display:none;width:clamp(105px,35vw,155px);height:auto;max-height:42px;object-fit:contain;object-position:left center;background:transparent;border:0;border-radius:0;box-shadow:none}
 html[data-theme="light"] .compact-brand img.mobile-logo--light{display:block}
 html[data-theme="dark"] .compact-brand img.mobile-logo--dark{display:block}
 .topbar-actions{display:flex;align-items:center;flex:0 0 auto;gap:4px}
 .theme-control{font-size:inherit;gap:0;display:flex;align-items:center;min-height:44px}
 .theme-control-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .theme-control select{font-size:.78rem;width:75px;max-width:75px;min-height:44px;padding:0 3px;border-radius:11px}
 .profile-link{width:44px;height:44px;min-width:44px;min-height:44px}
 .logout-button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:11px;display:grid;place-items:center}
 .logout-label{display:none}
 .logout-icon{display:inline;font-size:1.45rem;line-height:1}
 .guest-header img.brand-logo{width:min(250px,75vw);height:auto}
}
@media(max-width:360px){
 .topbar{padding-inline:7px;gap:3px}
 .compact-brand img.mobile-logo{width:clamp(96px,31vw,120px)}
 .topbar-actions{gap:2px}
 .theme-control select{width:68px;max-width:68px}
}
@media(max-width:720px) and (prefers-color-scheme:dark){
 html[data-theme="auto"] .compact-brand img.mobile-logo--dark{display:block}
}
@media(max-width:720px) and (prefers-color-scheme:light){
 html[data-theme="auto"] .compact-brand img.mobile-logo--light{display:block}
}


/* Finition accueil V0.1 — profondeur des surfaces et proportions des maquettes v1.1. */
:root,[data-theme="light"] { --ant-home-canvas:#FAF6ED; --ant-home-card:#FFFCF6; --ant-home-soft:#F3EADB; --ant-home-shadow:rgba(57,46,27,.075); }
html[data-theme="dark"] { --ant-home-canvas:#18251E; --ant-home-card:#24372C; --ant-home-soft:#304438; --ant-home-shadow:rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) {html[data-theme="auto"] { --ant-home-canvas:#18251E; --ant-home-card:#24372C; --ant-home-soft:#304438; --ant-home-shadow:rgba(0,0,0,.12); }}
body.has-session{background:var(--ant-home-canvas)}
.page{max-width:1530px;padding-inline:clamp(20px,3.2vw,60px)}
.side-panel{padding-inline:17px;gap:19px}
.side-nav a{font-size:.93rem;letter-spacing:.005em}
.topbar{background:var(--ant-home-card)}
.home-hero{min-height:335px;align-items:flex-start;gap:24px;padding:clamp(30px,3.6vw,56px);background-image:linear-gradient(90deg,rgba(18,41,28,.95) 0%,rgba(18,41,28,.83) 39%,rgba(18,41,28,.26) 75%,rgba(18,41,28,.08) 100%),url("../branding/accueil-cuisine.9f9f68baad28.jpg");background-color:#274333;background-position:center,center;background-repeat:no-repeat;background-size:cover;box-shadow:0 15px 36px var(--ant-home-shadow)}
.home-hero::after{content:none}
.home-hero-copy{position:relative;z-index:1;max-width:690px;width:min(100%,680px)}
.home-hero h1{letter-spacing:-.017em;text-wrap:balance}
.home-hero p{font-size:1.04rem}
.hero-search{max-width:570px;width:100%;box-shadow:0 5px 20px rgba(0,0,0,.11)}
.hero-add{position:relative;z-index:1;background:rgba(20,45,29,.3);backdrop-filter:blur(2px)}
/* Bouton principal du bandeau : contraste stable sur photographie (ordinateur). */
@media (min-width:721px){
 .home-hero .hero-add{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  padding:10px 18px;
  background:#FFF9ED;
  color:#244732;
  border:1px solid #E2D6BE;
  border-radius:999px;
  box-shadow:0 3px 12px rgba(12,30,19,.22);
  backdrop-filter:none;
  font-weight:800;
  text-shadow:none;
  transition:background-color .16s ease,box-shadow .16s ease;
 }
 .home-hero .hero-add:hover{
  background:#FFFFFF;
  color:#173B28;
  border-color:#D4C2A1;
  box-shadow:0 5px 16px rgba(12,30,19,.27);
 }
 .home-hero .hero-add:focus-visible{
  outline:3px solid #E3B373;
  outline-offset:3px;
  box-shadow:0 0 0 2px #173B28,0 4px 14px rgba(12,30,19,.22);
 }
}
@media (prefers-reduced-motion:reduce){.home-hero .hero-add{transition:none}}

.home-section{margin-top:38px}
.home-section h2{letter-spacing:-.016em}
.category-row{gap:17px}
.category-card{min-height:112px;padding:18px 16px;background:var(--ant-home-card);box-shadow:0 4px 15px var(--ant-home-shadow);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.category-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px var(--ant-home-shadow)}
.category-art{width:57px;height:57px;font-size:2rem;background:var(--ant-home-soft)}
.category-starter .category-art{color:#567E61}
.category-main .category-art{color:#A97A37}
.category-dessert .category-art{color:#C76548}
.category-other .category-art{color:var(--ant-primary)}
.recipe-card{background:var(--ant-home-card);box-shadow:0 4px 18px var(--ant-home-shadow)}
.ant-empty{padding:35px 20px;background:var(--ant-home-card);color:var(--ant-muted)}
.heritage-banner{background:var(--ant-home-soft);padding:28px 32px;border:1px solid var(--ant-border)}
.heritage-banner h2{font-size:1.5rem}
@media(max-width:1150px){.home-hero{background-position:center,56% center}}
@media(max-width:720px){
 .page{padding-inline:14px}
 .home-hero{min-height:0;padding:30px 22px;background-image:linear-gradient(90deg,rgba(18,41,28,.95) 0%,rgba(18,41,28,.79) 70%,rgba(18,41,28,.57) 100%),url("../branding/accueil-cuisine.9f9f68baad28.jpg");background-position:center,right center}
 .home-hero h1{font-size:clamp(2.1rem,8vw,2.7rem)}
 .hero-search{max-width:none;box-shadow:none}
 .category-row{gap:10px}
 .category-card{min-height:106px;padding:12px 8px}
 .heritage-banner{padding:20px}
 .home-section{margin-top:30px}
}
@media(prefers-reduced-motion:reduce){.category-card{transition:none}.category-card:hover{transform:none}}


/* Lot Recettes UI dev5 — composition conforme à la charte existante ; aucun style métier. */
.recipe-page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:0 0 28px}
.recipe-page-head h1,.recipe-detail h1{font-size:clamp(2rem,3vw,3.3rem);margin:6px 0 10px;letter-spacing:-.025em}
.recipe-page-lead{max-width:63ch;color:var(--ant-muted);margin:0}
.recipe-editor-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,.82fr);gap:22px;align-items:start}
.recipe-editor-primary,.recipe-editor-aside{display:grid;gap:22px;min-width:0}
.recipe-editor-section{min-width:0;overflow:visible}
.recipe-section-heading{display:flex;align-items:center;gap:14px;margin-bottom:21px}
.recipe-section-heading h2{font-size:clamp(1.35rem,2vw,1.65rem);margin:0}
.recipe-section-heading p,.recipe-editor-aside .ant-card>p{margin:4px 0 0;color:var(--ant-muted);font-size:.92rem}
.recipe-section-icon{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:14px;color:var(--ant-primary);background:var(--ant-surface-muted);font-size:1.4rem}
.recipe-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.recipe-field--title,.recipe-field--description,.recipe-field--original_author,.recipe-field--transmitted_by{grid-column:1/-1}
.recipe-field{min-width:0;display:flex;flex-direction:column;gap:5px}
.recipe-field label,.recipe-file-label{display:block;font-weight:750;color:var(--ant-text)}
.recipe-field input:not([type=checkbox]),.recipe-field textarea,.recipe-field select{width:100%;min-height:43px;padding:9px 11px;border:1px solid var(--ant-border);background:var(--ant-surface);color:var(--ant-text);border-radius:11px;max-width:none}
.recipe-field textarea{min-height:94px;resize:vertical}
.recipe-field input[type=checkbox]{width:21px;height:21px;accent-color:var(--ant-primary)}
.recipe-field small,.recipe-file-label span,.recipe-preview-note{color:var(--ant-muted);font-size:.83rem;font-weight:400}
.recipe-field .errorlist,.recipe-form-alert{color:var(--ant-danger);font-weight:700;margin:4px 0;padding-left:18px}
.recipe-form-alert{padding:12px 16px;border:1px solid var(--ant-danger);border-radius:10px}
.recipe-section-hint{padding:12px 14px;border-radius:12px;background:var(--ant-surface-muted);font-size:.89rem}
.recipe-section-hint a{color:var(--ant-primary);font-weight:800;text-underline-offset:2px}
.recipe-formset{display:grid;gap:12px}
.recipe-formset-item{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid var(--ant-border);border-radius:15px;background:var(--ant-bg)}
.recipe-formset-item legend{font-weight:800;padding:0 7px;color:var(--ant-primary)}
.recipe-formset-item .recipe-field--ingredient,.recipe-formset-item .recipe-field--instruction,.recipe-formset-item .recipe-field--note,.recipe-formset-item .recipe-field--title{grid-column:1/-1}
.recipe-formset-item .recipe-field--DELETE{justify-content:flex-end}
.recipe-add-row{margin-top:16px}
.recipe-field-stack{display:grid;gap:15px;margin-top:15px}
.recipe-editor-aside input[type=file]{display:block;max-width:100%;margin:9px 0;border:1px dashed var(--ant-border);padding:14px;border-radius:12px;background:var(--ant-bg)}
.recipe-upload-preview{display:block;width:100%;max-height:270px;object-fit:contain;border-radius:14px;margin-top:12px;background:var(--ant-surface-muted)}
.recipe-upload-preview[hidden]{display:none}
.recipe-editor-tip{background:var(--ant-surface-muted);padding:20px;border-radius:16px;border-left:4px solid var(--ant-accent)}
.recipe-editor-tip p{margin:6px 0 0;color:var(--ant-muted)}
.recipe-editor-footer{position:relative;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:20px 22px;background:var(--ant-surface);border:1px solid var(--ant-border);border-radius:18px}
.recipe-editor-footer p{margin:0;color:var(--ant-muted);max-width:65ch}
.recipe-breadcrumb{margin:0 0 24px}.recipe-breadcrumb a{text-underline-offset:3px;font-weight:750}
.recipe-detail-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.85fr);gap:26px;align-items:center;margin-bottom:24px}
.recipe-detail-intro{min-width:0}.recipe-detail-intro>.ant-badge{margin-right:7px}
.recipe-detail-description{font-size:1.06rem;color:var(--ant-muted);max-width:60ch}
.recipe-attribution{display:flex;flex-wrap:wrap;gap:8px 20px;color:var(--ant-muted);margin:19px 0}
.recipe-attribution strong{color:var(--ant-text)}
.recipe-time-badges{display:flex;gap:9px;flex-wrap:wrap}.recipe-time-badges span{padding:7px 11px;background:var(--ant-surface-muted);border-radius:999px;font-size:.87rem}
.recipe-detail-image{overflow:hidden;border-radius:20px;min-height:250px;max-height:350px;background:var(--ant-surface-muted);display:grid;place-items:center}
.recipe-detail-image img{width:100%;height:100%;max-height:350px;object-fit:cover}
.recipe-detail-placeholder span{font-size:5rem;color:var(--ant-primary)}
.recipe-detail-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px 0 22px;border-bottom:1px solid var(--ant-border)}
.recipe-detail-toolbar form{margin:0}
.recipe-detail-columns{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.4fr);gap:22px;align-items:start;margin:28px 0}
.recipe-yield-form{margin:0 0 20px;padding:14px;background:var(--ant-surface-muted);border-radius:13px}
.recipe-yield-form label{font-weight:800;display:block;margin-bottom:7px}
.recipe-yield-form>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.recipe-yield-form input{max-width:115px}
.recipe-ingredient-list{list-style:none;padding:0;margin:0}
.recipe-ingredient-list li{border-bottom:1px solid var(--ant-border);padding:13px 4px;line-height:1.55}
.recipe-ingredient-list li:last-child{border-bottom:0}
.recipe-ingredient-list li::before{content:'◦';color:var(--ant-accent);font-weight:900;margin-right:10px}
.recipe-ingredient-list small,.recipe-step-list small{color:var(--ant-muted)}
.recipe-step-list{list-style:none;padding:0;margin:0;display:grid;gap:23px}
.recipe-step-list>li{display:flex;align-items:flex-start;gap:16px}
.recipe-step-number{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;font-weight:900;color:var(--ant-on-primary);background:var(--ant-primary)}
.recipe-step-list h3{margin:0 0 8px;font-size:1.13rem}
.recipe-step-list p{margin:0 0 8px}
.recipe-history-panel{margin-top:26px;background:var(--ant-surface-muted)}
.recipe-history-panel h2{margin-top:0}
.recipe-empty-copy{color:var(--ant-muted)}
@media(max-width:1050px){.recipe-editor-grid{grid-template-columns:minmax(0,1fr)}.recipe-editor-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-editor-tip{grid-column:1/-1}}
@media(max-width:720px){.recipe-page-head{align-items:flex-start;flex-direction:column;gap:14px}.recipe-editor-aside,.recipe-detail-head,.recipe-detail-columns{grid-template-columns:minmax(0,1fr)}.recipe-field-grid,.recipe-formset-item{grid-template-columns:minmax(0,1fr)}.recipe-field--title,.recipe-field--description,.recipe-field--original_author,.recipe-field--transmitted_by,.recipe-formset-item .recipe-field--ingredient,.recipe-formset-item .recipe-field--instruction,.recipe-formset-item .recipe-field--note,.recipe-formset-item .recipe-field--title{grid-column:auto}.recipe-editor-section{padding:17px}.recipe-editor-footer{padding:15px}.recipe-editor-footer .ant-button{width:100%}.recipe-detail-image{min-height:180px}.recipe-detail-toolbar .ant-button{min-height:44px}}

/* Recettes dev5 : retour accessible de l'autosauvegarde, sans couleur seule. */
#save-status[data-save-state]{font-weight:700;line-height:1.5;min-height:1.5em}
#save-status[data-save-state="saving"]{color:var(--ant-muted)}
#save-status[data-save-state="saved"]{color:var(--ant-primary)}
#save-status[data-save-state="dirty"]{color:var(--ant-text)}
#save-status[data-save-state="error"]{color:var(--ant-danger)}


/* Dev5 — bandeau d'enregistrement visible dans le formulaire, sans doublon.
   Sticky reste dans le flux : pas de champ définitivement masque. */
.recipe-editor{scroll-padding-bottom:110px}
.recipe-editor-footer{
  position:sticky;
  bottom:0;
  z-index:30;
  flex-wrap:nowrap;
  min-width:0;
  background:var(--ant-surface);
  border:1px solid var(--ant-border);
  box-shadow:0 -6px 22px rgba(16,33,23,.12);
}
.recipe-editor-footer #save-status{min-width:0;flex:1 1 auto;overflow-wrap:anywhere}
.recipe-editor-footer .ant-button{min-height:44px;flex:0 0 auto}
@media(max-width:720px){
  /* La navigation basse occupe son propre espace et inclut le safe-area. */
  .recipe-editor-footer{
    bottom:calc(64px + env(safe-area-inset-bottom, 0px));
    z-index:30;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:12px 14px;
    border-radius:14px;
  }
  .recipe-editor-footer .ant-button{width:100%;min-height:44px}
  .recipe-editor{scroll-padding-bottom:calc(155px + env(safe-area-inset-bottom, 0px))}
}

/* CAT-A.2 — Filtrage d’ingrédients, sans changement de données métier */
.recipe-ingredient-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border:1px solid var(--ant-border);background:var(--ant-surface-muted);border-radius:12px}
.recipe-filter-control{min-width:0;display:flex;flex-direction:column;gap:6px;font-weight:750;color:var(--ant-text)}
.recipe-filter-control input,.recipe-filter-control select{min-height:44px;max-width:100%;width:100%;padding:9px 11px;border:1px solid var(--ant-border);border-radius:10px;color:var(--ant-text);background:var(--ant-surface)}
.recipe-filter-control :is(input,select):focus-visible,.admin-jump-nav a:focus-visible,.admin-summary-link:focus-visible{outline:3px solid var(--ant-accent);outline-offset:3px}
.recipe-filter-feedback{grid-column:1/-1;margin:0;color:var(--ant-muted);font-size:.84rem}
.admin-jump-nav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px}
.admin-jump-nav a{display:inline-flex;align-items:center;min-height:44px;padding:10px 15px;border:1px solid var(--ant-border);border-radius:12px;background:var(--ant-surface);font-weight:750;color:var(--ant-primary);text-decoration:none}
.admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 22px}
.admin-summary-card{display:flex;flex-direction:column;gap:6px;color:var(--ant-text);text-decoration:none}
.admin-summary-card strong{font-family:var(--ant-font-heading);font-size:clamp(1.5rem,2.5vw,2.1rem);color:var(--ant-primary)}
.admin-summary-link:hover,.admin-jump-nav a:hover{border-color:var(--ant-primary);background:var(--ant-surface-muted)}
.admin-section{margin-bottom:20px}.admin-section h2{margin-top:0}.admin-section h3{margin:20px 0 10px}
.admin-members,.admin-invitations{list-style:none;padding:0;margin:0}.admin-members li,.admin-invitations li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--ant-border)}
.admin-invitations form{margin:0}.admin-invite{display:flex;align-items:end;gap:14px;flex-wrap:wrap}
.admin-invite label{display:flex;flex-direction:column;gap:7px;font-weight:750}.admin-invite select{min-height:44px;border:1px solid var(--ant-border);background:var(--ant-surface);color:var(--ant-text);border-radius:10px;padding:9px}
.admin-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
@media(max-width:600px){.recipe-ingredient-filters,.admin-summary,.admin-info-grid{grid-template-columns:minmax(0,1fr)}.admin-jump-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.admin-jump-nav a{font-size:.88rem}}
@media(max-width:360px){.admin-jump-nav{grid-template-columns:minmax(0,1fr)}}

/* CAT-A.2 — lisibilité des quantités, sans modifier la structure des formsets. */
.recipe-ingredient-row .recipe-ingredient-filters,
.recipe-ingredient-row .recipe-field--ingredient,
.recipe-ingredient-row .recipe-quantity-unit,
.recipe-ingredient-row .recipe-ingredient-details,
.recipe-ingredient-row .recipe-ingredient-options{grid-column:1/-1;min-width:0}
.recipe-quantity-unit{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:end}
.recipe-ingredient-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;padding:13px 14px;border:1px solid var(--ant-border);border-radius:12px;background:var(--ant-surface-muted)}
.recipe-ingredient-details .recipe-field--note{grid-column:1/-1}
.recipe-ingredient-options{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;padding:9px 2px 0;border-top:1px solid var(--ant-border);color:var(--ant-muted);font-size:.91rem}
.recipe-ingredient-options .recipe-field--position{max-width:112px}
.recipe-ingredient-row .recipe-field--check{display:flex;flex-direction:row;gap:9px;align-items:center;justify-content:flex-start}
.recipe-ingredient-row .recipe-field--check label{font-weight:650;color:var(--ant-muted);margin:0}
.recipe-ingredient-row .recipe-field--check input[type=checkbox]{flex-shrink:0;min-width:21px;min-height:21px}
.recipe-ingredient-row .recipe-field--DELETE{margin-left:auto}
.recipe-ingredient-row .recipe-field--DELETE label{color:var(--ant-danger)}
@media(max-width:420px){
  .recipe-ingredient-row .recipe-quantity-unit,
  .recipe-ingredient-row .recipe-ingredient-details{grid-template-columns:minmax(0,1fr)}
  .recipe-ingredient-options{gap:14px;align-items:flex-start}
  .recipe-ingredient-row .recipe-field--DELETE{margin-left:0}
}

/* CAT-A.3 — suppression accessible, sans champ technique visible */
.recipe-formset-item{position:relative}
.recipe-formset-item legend{padding-right:52px}
.recipe-trash{position:absolute;top:10px;right:12px;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--ant-border);border-radius:12px;background:var(--ant-surface);color:var(--ant-danger);font-size:1.25rem;cursor:pointer;z-index:1}
.recipe-trash:hover{background:var(--ant-surface-muted);border-color:var(--ant-danger)}
.recipe-trash:focus-visible,.recipe-delete-feedback button:focus-visible{outline:3px solid var(--ant-accent);outline-offset:3px}
.recipe-formset-item[data-pending-deletion="true"]{display:none!important}
.recipe-ingredient-options input[name$="-DELETE"],.recipe-step-row input[name$="-DELETE"]{display:none}
.recipe-delete-feedback:not([hidden]){display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 16px;margin:14px 0;background:var(--ant-surface-muted);border:1px solid var(--ant-border);border-radius:12px}
.recipe-delete-feedback button{min-height:44px}
@media(max-width:420px){.recipe-delete-feedback:not([hidden]){flex-direction:column;align-items:stretch}.recipe-delete-feedback button{width:100%}}

/* CAT-A.3 stabilization: field-specific autosave errors in both themes. */
.recipe-autosave-field-error{color:var(--ant-danger);font-size:.84rem;font-weight:700;margin:.25rem 0}
.recipe-field [aria-invalid="true"]{border-color:var(--ant-danger)!important;outline-offset:2px}
.recipe-save-error-link{border:0;background:none;color:inherit;text-decoration:underline;cursor:pointer;font-weight:800;font:inherit;padding:.2rem}
.recipe-save-error-link:focus-visible{outline:3px solid var(--ant-accent);outline-offset:2px}

/* Rendement : erreurs de saisie et focus accessibles, sans affecter les ingrédients. */
.recipe-yield-error{margin:9px 0 0;color:var(--ant-danger,#b94b40);font-weight:700}
.recipe-yield-form [aria-invalid="true"]{outline:2px solid var(--ant-danger,#b94b40);outline-offset:2px}

/* Pilote familial — administration responsive, sans bibliothèques externes */
.admin-table-scroll{overflow-x:auto;max-width:100%;margin:12px 0 22px}
.admin-table{width:100%;border-collapse:collapse;text-align:left;min-width:520px}
.admin-table th,.admin-table td{padding:13px 12px;border-bottom:1px solid var(--ant-border);vertical-align:middle}
.admin-table th{font-weight:800;color:var(--ant-muted);font-size:.88rem}
.admin-table td small{display:block;color:var(--ant-muted);margin-top:4px}
.admin-table-link{display:inline-flex;align-items:center;min-height:44px;padding:9px 12px;border:1px solid var(--ant-border);border-radius:10px;color:var(--ant-primary);font-weight:800}
.admin-status{display:inline-block;margin-top:4px;color:var(--ant-muted);font-size:.88rem;font-weight:750}
.admin-status--active{color:var(--ant-primary)}
.admin-invite-panel{background:var(--ant-surface-muted);border-radius:14px;padding:18px;margin:16px 0 22px}
.admin-invite-panel h3{margin-top:0}
.admin-section-heading h2{margin-bottom:4px}
.admin-section-heading p{margin:0 0 12px;color:var(--ant-muted)}
.admin-member-panel{max-width:740px;margin-bottom:20px}
.admin-member-form{display:grid;gap:18px}
.admin-member-form label,.admin-link-output label{display:block;font-weight:800;margin-bottom:7px}
.admin-member-form select,.admin-link-output input{display:block;min-height:44px;max-width:100%;width:100%;padding:9px 12px;border:1px solid var(--ant-border);border-radius:10px;background:var(--ant-surface);color:var(--ant-text)}
.admin-member-check label{display:flex;align-items:center;gap:12px}
.admin-member-check input{height:22px;width:22px}
.admin-link-output{padding:14px;background:var(--ant-surface-muted);border-radius:12px;overflow-wrap:anywhere}
.admin-link-output p{color:var(--ant-muted);font-size:.89rem}
.admin-table-link:focus-visible,.admin-member-panel :is(a,button,select,input):focus-visible,.admin-invite-panel :is(select,button):focus-visible{outline:3px solid var(--ant-accent);outline-offset:3px}
@media(max-width:600px){.admin-table th,.admin-table td{padding:11px 9px}.admin-invite-panel{padding:13px}.admin-invite{align-items:stretch}.admin-invite label,.admin-invite button{width:100%}}

/* Pilote familial : rejoindre la famille et pictogrammes existants du référentiel. */
.ant-join{max-width:660px;margin:clamp(18px,4vw,48px) auto;padding:clamp(20px,4vw,38px)}
.ant-join h1{margin:5px 0 12px}.ant-join-intro{color:var(--ant-muted);line-height:1.6}
.ant-join-role{border:1px solid var(--ant-border);border-radius:13px;background:var(--ant-surface-muted);padding:14px 16px;display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px}
.ant-join-role span{font-weight:800;color:var(--ant-primary)}.ant-join-role small{display:block;width:100%;color:var(--ant-muted)}
.ant-join-form,.ant-join-group{display:grid;gap:17px}.ant-join-group{gap:13px;margin:12px 0 6px}
.ant-join-group h2{font-size:1.18rem;margin:3px 0}.ant-join-field{display:grid;gap:6px;min-width:0}
.ant-join-field>label{font-weight:750}.ant-join-field>input,.ant-join-password input{width:100%;min-width:0;min-height:46px;border:1px solid var(--ant-border);border-radius:10px;background:var(--ant-surface);color:var(--ant-text);padding:10px 12px;font:inherit}
.ant-join-password{display:flex;gap:8px;align-items:stretch;min-width:0}.ant-join-password input{flex:1 1 auto}
.ant-join-password button{flex:0 0 auto;border:1px solid var(--ant-border);border-radius:10px;color:var(--ant-primary);background:var(--ant-surface-muted);padding:7px 11px;cursor:pointer;font-weight:750;min-height:44px}
.ant-join-password-help{font-size:.9rem;color:var(--ant-muted)}.ant-join-password-help summary{cursor:pointer}
.ant-join-errors{color:var(--ant-danger);font-weight:700}.ant-join-errors ul{margin:4px 0;padding-left:20px}
.ant-join-submit{min-height:48px;justify-self:stretch}.ant-join-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.ant-join-actions form{margin:0}.ant-join-field :focus-visible,.ant-join-password button:focus-visible{outline:3px solid var(--ant-accent);outline-offset:2px}
.recipe-ingredient-choice{display:flex;gap:9px;min-width:0;align-items:center}.recipe-ingredient-choice select{min-width:0;flex:1 1 auto}
.recipe-choice-icon,.recipe-detail-ingredient-icon{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--ant-surface-muted);border:1px solid var(--ant-border);font-size:1.45rem}
.recipe-detail-ingredient-icon{vertical-align:middle;margin-right:10px;flex:0 0 36px;width:36px;height:36px;font-size:1.25rem}
@media(max-width:420px){.ant-join-password{gap:5px}.ant-join-password button{padding:6px 8px}.ant-join{margin:12px auto}.recipe-choice-icon{width:34px;flex-basis:34px}}

/* Pilote familial : compte, navigation administration et mots de passe. */
.ant-account-panel{max-width:760px;margin-bottom:18px}
.ant-account-panel h2{margin-top:0}
.ant-back-nav{display:flex;justify-content:flex-start;margin:0 0 18px}
.ant-password-panel{max-width:680px;margin-inline:auto}
.ant-password-form{display:grid;gap:20px;margin-top:22px}
.ant-password-field{display:grid;gap:7px;min-width:0}
.ant-password-field>label{font-weight:800}
.ant-password-field input{box-sizing:border-box;width:100%;min-width:0;min-height:46px;border:1px solid var(--ant-border);border-radius:10px;background:var(--ant-surface);color:var(--ant-text);padding:10px 12px;font:inherit}
.ant-password-help{font-size:.85rem;color:var(--ant-muted);overflow-wrap:anywhere}
.ant-password-help ul{margin:8px 0;padding-left:20px}
.ant-form-errors{color:var(--ant-danger, #a02929);font-weight:700;overflow-wrap:anywhere}
.ant-password-actions{display:flex;flex-wrap:wrap;gap:12px}
.ant-admin-lock{background:var(--ant-surface-muted);border:1px solid var(--ant-border);border-radius:10px;padding:12px;color:var(--ant-text);font-weight:750;margin:5px 0}
.ant-password-panel :is(input,button,a):focus-visible,.ant-account-panel a:focus-visible,.ant-back-nav a:focus-visible{outline:3px solid var(--ant-accent);outline-offset:3px}
@media(max-width:480px){.ant-password-actions{display:grid;grid-template-columns:minmax(0,1fr)}.ant-password-actions>*{width:100%;box-sizing:border-box;text-align:center}.ant-back-nav a{max-width:100%;white-space:normal}}


/* Invitation privée indisponible, utilisable même sans UX-COMPACT. */
.ant-invitation-unavailable{max-width:580px;margin:clamp(16px,4vw,48px) auto;padding:clamp(20px,4vw,36px)}
.ant-invitation-unavailable h1{font-family:var(--ant-font-heading);font-size:clamp(1.5rem,2.8vw,2.2rem);line-height:1.2;margin:10px 0 18px}
.ant-invitation-unavailable p{line-height:1.55}
.ant-invitation-unavailable .ant-button{display:inline-flex;text-decoration:none;margin-top:12px;min-height:44px;align-items:center}
/* UX-COMPACT V1 — densité ordinateur seulement, sans toucher aux formulaires métier. */
@media (min-width: 901px) {
  .home-hero{min-height:258px;padding:27px clamp(22px,3vw,40px);gap:18px}
  .home-hero h1{font-size:clamp(2.1rem,3.1vw,3rem);margin:8px 0;line-height:1.08}
  .home-hero p{margin:0 0 13px;line-height:1.4}
  .hero-search{max-width:550px}
  .home-section{margin-top:25px}
  .home-section h2{margin-bottom:10px}
  .category-row{gap:11px;margin-top:10px}
  .category-card{min-height:80px;padding:11px 13px;gap:9px}
  .category-art{width:44px;height:44px;font-size:1.65rem}
  .grid.recipe-grid{gap:13px;margin:10px 0 20px}
  .recipe-card .card-photo,.recipe-card .placeholder{height:132px}
  .recipe-card-body{padding:11px}
  .recipe-card h3{margin:6px 0 4px}
  .ant-empty{padding:18px 16px}
  .heritage-banner{padding-block:18px}
  .admin-head{margin-bottom:15px}
  .admin-jump-nav{margin:12px 0 15px;gap:8px}
  .admin-summary{gap:11px;margin-bottom:15px}
  .admin-section{margin-bottom:14px}
  .admin-table th,.admin-table td{padding:9px 10px}
  .admin-invite-panel{padding:14px;margin:12px 0 14px}
  .admin-invitations li,.admin-members li{padding:9px 0}
  .login-layout{gap:clamp(22px,3.5vw,55px);margin-bottom:22px}
  .login-intro h1{font-size:clamp(2.4rem,3.5vw,3.3rem)}
  .login-card{padding:25px}
  .login-form{gap:12px;margin-top:15px}
  .login-help{margin-top:12px}
  .ant-password-panel{max-width:680px;padding:clamp(20px,3vw,30px)}
}
/* Inscription : présentation compacte 1080p, adaptable aux erreurs et au zoom. */
@media (min-width: 801px) {
  .ant-join{max-width:880px;margin:14px auto;padding:22px 30px}
  .ant-join h1{margin:2px 0 5px;font-size:clamp(1.8rem,2.5vw,2.2rem)}
  .ant-join-intro{margin:0 0 6px;line-height:1.35}
  .ant-join-role{padding:9px 13px;gap:3px 8px}
  .ant-join-form{gap:8px}
  .ant-join-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:4px 0 0}
  .ant-join-group h2,.ant-join-password-help{grid-column:1/-1}
  .ant-join-group h2{font-size:1.05rem;margin:2px 0 0}
  .ant-join-field{gap:4px}
  .ant-join-field>input,.ant-join-password input{min-height:42px;padding:7px 10px}
  .ant-join-password button{min-height:42px}
  .ant-join-submit{min-height:44px}
}
/* Le zoom et les petits écrans conservent le flux normal sur une colonne. */
@media (max-width:800px) {
  .ant-join{width:100%;max-width:660px}
  .ant-join-group{grid-template-columns:minmax(0,1fr)}
}

/* UX-COMPACT V1.1 — uniquement les pages publiques (authentification).
   Le logo conserve son ratio et ne réserve plus une hauteur fixe. */
body.guest-session{display:flex;flex-direction:column}
.guest-session .guest-header{padding:16px 16px 4px}
.guest-session .guest-header img.brand-logo{width:min(235px,75vw);height:auto}
.guest-session .guest-main{width:100%;min-height:0;flex:1 0 auto}
.guest-session .guest-footer{padding:10px 16px 14px}
@media(max-width:720px){
  .guest-session .guest-header{padding:10px 12px 2px}
  .guest-session .guest-header img.brand-logo{width:min(205px,75vw);height:auto}
  .guest-session .guest-footer{padding:10px 12px 14px}
}

/* CAT-B1 — édition du référentiel ; boutons de taille tactile et thèmes existants. */
.catalog-item-edit{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;border-radius:10px;color:var(--ant-primary);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.catalog-item-edit:focus-visible{outline:3px solid var(--ant-primary);outline-offset:2px}
.catb-edit{max-width:780px;margin-inline:auto}
.catb-edit h2{margin:0 0 12px}
.catb-edit-form{display:grid;gap:16px}
.catb-warning{border:1px solid var(--ant-border);border-left:4px solid var(--ant-primary);border-radius:10px;padding:12px;background:var(--ant-surface-muted)}
.catb-confirm{display:flex;align-items:flex-start;gap:10px;line-height:1.5}
.catb-confirm input{margin-top:4px;accent-color:var(--ant-primary)}
.catb-edit-actions{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:600px){.catalog-item{flex-wrap:wrap}.catalog-item-edit{margin-left:auto}.catb-edit-actions>*{flex:1 1 100%}}
