/* Montréal Amateur Renaissance — fondations.css
   Sections conservées dans leur ordre de cascade original. */


/* ===== style.css ===== */
/* MTLAM Renaissance V3 — prototype autonome, 4 apparences */
:root{--bg:#160d12;--surface:#281621;--surface2:#351c29;--ink:#fff5ee;--muted:#c8afb9;--accent:#f04467;--accent-text:#ff93a8;--border:#ffffff26;--font:"DM Sans",sans-serif;--headline:"Syne",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px}img{max-width:100%;display:block}button,input,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--accent-text);outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.concept{height:27px;display:flex;justify-content:center;align-items:center;gap:10px;background:#692037;color:#ffeaf0;font-size:10px;font-weight:700;letter-spacing:.12em}.concept [data-i18n]{font-weight:400;letter-spacing:.02em}.live-dot{width:6px;height:6px;border-radius:50%;background:#ff8ca7}.header{position:relative;display:flex;align-items:center;gap:35px;min-height:100px;padding:14px max(28px,calc((100vw - 1240px)/2));border-bottom:1px solid var(--border)}.brand{width:188px;flex-shrink:0}.brand img,.og-side-brand img{background:transparent}.header-nav{display:flex;gap:30px;margin:auto}.header-nav a{font-size:13px;font-weight:600;white-space:nowrap}.header-nav a:hover{color:var(--accent-text)}.header-tools{display:flex;gap:10px;align-items:center}.select-wrap{display:block}.select-wrap select{appearance:none;-webkit-appearance:none;color:var(--ink);background-color:var(--surface);border:1px solid var(--border);border-radius:9px;height:44px;width:100%;padding:0 31px 0 13px;font-size:12px;font-weight:700;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef9baa' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:15px}.select-wrap option{background:var(--surface);color:var(--ink)}.appearance{width:186px}.locale{width:70px}.menu-toggle{display:none;background:var(--surface);color:var(--ink);border:1px solid var(--border);width:44px;height:44px;border-radius:8px}.mobile-menu{position:absolute;z-index:6;top:100%;right:20px;width:min(280px,calc(100vw - 40px));background:var(--surface);border:1px solid var(--border);box-shadow:0 20px 50px #0008;padding:10px}.mobile-menu a{display:block;padding:13px;border-bottom:1px solid var(--border)}.content-layout{width:min(1200px,calc(100% - 56px));margin:auto}.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;min-height:470px;padding:52px 0}.eyebrow{color:var(--accent-text);font-size:11px;letter-spacing:.14em;font-weight:700}.hero h1{font-family:var(--headline);font-size:clamp(42px,4.5vw,70px);line-height:1.09;letter-spacing:-.06em;margin:20px 0}.hero h1 em{color:var(--accent-text);font-style:normal;display:block}.lead{max-width:470px;color:var(--muted);line-height:1.7;font-size:16px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0}.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;padding:14px 20px;min-height:46px;border:1px solid transparent;border-radius:8px;font-size:13px;font-weight:700}.primary{background:var(--accent);color:white}.secondary{border-color:var(--border);background:transparent;color:var(--ink)}.btn:hover{filter:brightness(1.1)}.hero-note{font-size:11px;color:var(--muted)}.hero-picture{position:relative;max-width:475px;width:100%;height:365px;justify-self:end;overflow:hidden;border-radius:18px;background:linear-gradient(125deg,#84314b,#321824);box-shadow:0 25px 60px #0005}.hero-picture img{width:100%;height:100%;object-fit:cover}.photo-stamp{position:absolute;left:15px;bottom:15px;background:#160d12e8;color:#fff;padding:8px 10px;letter-spacing:.1em;font-size:10px}.photo-placeholder{display:none}.block{padding:35px 0;border-top:1px solid var(--border)}.section-top{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.section-top h2,.quick-card h2{font:700 clamp(26px,3vw,39px)/1.1 var(--headline);letter-spacing:-.04em;margin:6px 0}.small-note{font-size:12px;color:var(--muted)}.browse-controls{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:14px 0 24px}.search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:0 13px;flex:1;max-width:440px;height:44px}.search span{font-size:24px;color:var(--accent-text)}.search input{width:100%;background:none;border:0;color:var(--ink);outline:0;font-size:13px}.search input::placeholder{color:var(--muted)}.filters{display:flex;gap:6px}.filter{border:1px solid var(--border);background:transparent;color:var(--muted);padding:10px 13px;border-radius:8px;font-size:12px}.filter.active{background:var(--accent);color:white;border-color:var(--accent)}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.person{background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden;display:flex;min-width:0}.portrait{position:relative;width:160px;min-height:155px;flex-shrink:0;background:#563046}.portrait img{height:100%;width:100%;object-fit:cover}.initials{display:none}.demo-label{position:absolute;left:8px;top:8px;background:#150c12d9;color:white;font-size:9px;letter-spacing:.1em;padding:6px;border-radius:4px}.person-info{padding:17px;display:flex;align-items:end;justify-content:space-between;gap:8px;flex:1}.person-info h3{font:700 19px var(--headline);margin:0 0 6px}.person-info p{margin:0;color:var(--muted);font-size:12px}.person-open{background:var(--surface2);border:1px solid var(--border);color:var(--ink);width:36px;height:36px;border-radius:7px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:36px 0 55px}.quick-card{display:flex;flex-direction:column;align-items:start;min-height:210px;padding:26px;background:var(--surface);border:1px solid var(--border);border-radius:15px}.quick-icon{font-size:26px;font-weight:700;color:var(--accent-text)}.quick-card p:not(.eyebrow){color:var(--muted);margin:4px 0 15px;line-height:1.5}.quick-card .eyebrow{margin:12px 0 8px}.text-action{margin-top:auto;background:none;border:0;padding:0;color:var(--accent-text);font-size:13px;font-weight:700}footer{display:flex;justify-content:space-between;gap:20px;padding:24px 0 40px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}.og-sidebar,.og-right{display:none}.bottom-nav{display:none}dialog{max-width:430px;width:calc(100% - 40px);border:1px solid var(--border);background:var(--surface);color:var(--ink);border-radius:13px;padding:35px}dialog::backdrop{background:#090409bd}dialog h2{font:700 28px var(--headline)}dialog p:not(.eyebrow){line-height:1.65;color:var(--muted)}.dialog-x{position:absolute;right:12px;top:8px;border:0;background:none;color:var(--ink);font-size:26px}
/* Atelier : catalogue clair et éditorial */
html[data-theme=atelier]{--bg:#f5eee6;--surface:#fffaf5;--surface2:#efe5d9;--ink:#35232b;--muted:#66535b;--accent:#99435a;--accent-text:#853b52;--border:#51302f2c;--headline:Georgia,serif}.concept{background:#702b44}html[data-theme=atelier] .hero-picture{border-radius:3px;box-shadow:14px 14px 0 #e0cec0}html[data-theme=atelier] .person,html[data-theme=atelier] .quick-card{border-radius:3px}html[data-theme=atelier] .person{flex-direction:column}html[data-theme=atelier] .portrait{width:100%;height:220px}html[data-theme=atelier] .person-info{min-height:80px}html[data-theme=atelier] .primary{color:white}
/* Discret : ni chargement ni affichage de portraits par le prototype */
html[data-theme=discret]{--bg:#f4f6f8;--surface:#fff;--surface2:#e5ebef;--ink:#24384a;--muted:#536778;--accent:#426782;--accent-text:#365e7b;--border:#54728a36;--headline:"DM Sans",sans-serif}.hero-picture{transition:opacity .2s}html[data-theme=discret] .hero{grid-template-columns:1fr;min-height:325px}html[data-theme=discret] .hero-picture{display:none}html[data-theme=discret] .portrait{width:90px;min-height:100px;display:grid;place-items:center;background:#dce6ee}html[data-theme=discret] .portrait img,html[data-theme=discret] .demo-label{display:none}html[data-theme=discret] .initials{display:block;font-weight:700;color:#375a73;font-size:22px}html[data-theme=discret] .person{border-radius:7px}html[data-theme=discret] .quick-card{border-radius:7px}
/* OG 2005 : maquette inspirée de la capture officielle, structure distincte */
html[data-theme=og]{--bg:#000;--surface:#eb0038;--surface2:#b9002b;--ink:#fff;--muted:#f8dfe4;--accent:#ef003b;--accent-text:#ffe500;--border:#ff1350;--headline:Arial,sans-serif;--font:Arial,sans-serif}.og-sidebar{display:none}html[data-theme=og] .concept{display:none}html[data-theme=og] .shell{margin-left:176px}html[data-theme=og] .og-sidebar{display:flex;position:fixed;z-index:10;inset:0 auto 0 0;width:176px;flex-direction:column;padding:17px 11px;background:#e90038;border:1px solid #ff7691}html[data-theme=og] .og-side-brand{display:block;padding:4px}html[data-theme=og] .og-side-caption{font-size:10px;margin:8px 6px;color:#fff}html[data-theme=og] .og-side-nav{margin-top:52px;display:flex;flex-direction:column;gap:4px}html[data-theme=og] .og-side-nav a{padding:14px 8px;text-decoration:underline;font-size:13px;font-weight:700}html[data-theme=og] .og-side-nav a:hover{background:#000083;color:#ffe000}html[data-theme=og] .og-side-bottom{display:flex;flex-direction:column;gap:7px;margin-top:auto;border-top:1px solid #ffa9bf;padding-top:17px;font-size:12px}html[data-theme=og] .header{min-height:76px;justify-content:flex-end;background:#000;border-bottom:2px solid #f00040;padding:10px 22px}html[data-theme=og] .header .brand,html[data-theme=og] .header-nav{display:none}html[data-theme=og] .select-wrap select{background-color:#000;border:0;border-bottom:1px solid #f00040;border-radius:0;color:#ffec00}html[data-theme=og] .content-layout{max-width:none;width:auto;margin:0 18px;display:grid;grid-template-columns:minmax(0,1fr) 195px;gap:14px}html[data-theme=og] .hero{min-height:0;display:block;text-align:center;background:#f0003e;margin-top:22px;padding:22px 16px;border:2px solid #fd7794;border-radius:5px}html[data-theme=og] .hero .eyebrow,html[data-theme=og] .lead,html[data-theme=og] .hero-note{display:none}html[data-theme=og] .hero h1{font-size:30px;letter-spacing:-.045em;line-height:1.15;margin:0 0 15px;text-shadow:2px 2px #69001d}html[data-theme=og] .hero h1 em{color:#ffed19;display:inline}html[data-theme=og] .hero-actions{justify-content:center;margin:0}html[data-theme=og] .btn{border-radius:0;background:#00007a;border:2px solid #fff200;color:#fff000;font-weight:700}html[data-theme=og] .hero-picture{display:none}html[data-theme=og] .block{padding:18px 0;border:0}html[data-theme=og] .section-top{background:#c7002e;padding:14px 12px;margin:0}html[data-theme=og] .section-top .eyebrow{display:none}html[data-theme=og] .section-top h2{font:bold 17px Arial;margin:0}html[data-theme=og] .browse-controls{display:flex;flex-direction:column-reverse;align-items:stretch;gap:8px;padding:0}html[data-theme=og] .search{max-width:none;height:41px;background:#000;border-radius:0;border:1px solid #ed003d}html[data-theme=og] .filters{display:grid;grid-template-columns:repeat(3,1fr);gap:0}html[data-theme=og] .filter{border-radius:0;background:#ffd900;color:#000;border:1px solid #c48d00;font-weight:700}html[data-theme=og] .filter.active{background:#050074;color:#fff200;border:1px solid #ffe500}html[data-theme=og] .cards{gap:8px}html[data-theme=og] .person{border:1px solid #e9003c;border-radius:0;background:#1a070c}html[data-theme=og] .portrait{width:90px;min-height:110px}html[data-theme=og] .person-info{padding:11px}html[data-theme=og] .person-info h3{font:700 16px Arial}html[data-theme=og] .quick-grid{gap:8px;padding:14px 0 24px}html[data-theme=og] .quick-card{min-height:170px;background:#111;border:1px solid #ec003e;border-radius:0;padding:16px}html[data-theme=og] .quick-card h2{font:bold 20px Arial}html[data-theme=og] .og-right{display:flex;flex-direction:column;gap:0;margin-top:22px;background:#eb0038;border:1px solid #ff6489;padding:10px}html[data-theme=og] .og-panel{display:flex;flex-direction:column;padding:8px 4px;border-bottom:1px solid #ffb0c3}html[data-theme=og] .og-panel h2{font-size:14px;margin:0 0 12px;background:#bd0029;padding:9px}html[data-theme=og] .og-panel a{display:block;font-size:12px;text-decoration:underline;padding:13px 0;border-bottom:1px solid #ff96b0}html[data-theme=og] .og-heritage{text-align:center;padding:25px 0}html[data-theme=og] .og-heritage strong{font-size:37px;color:#ffea00;font-style:italic;text-decoration:underline}html[data-theme=og] footer{font-size:11px;color:#ffe000;border-top:1px solid #ff0044}
@media(max-width:1100px){.header{padding-inline:25px;gap:15px}.brand{width:154px}.header-nav{gap:16px}.hero{gap:20px}.hero h1{font-size:clamp(36px,5vw,58px)}html[data-theme=og] .content-layout{grid-template-columns:minmax(0,1fr) 165px}}
@media(max-width:820px){.header-nav{display:none}.header{justify-content:space-between}.menu-toggle{display:block}.header-tools{margin-left:auto}.content-layout{width:calc(100% - 36px)}.hero{grid-template-columns:1fr;min-height:0;padding:40px 0}.hero-picture{justify-self:stretch;max-width:none;height:310px}.browse-controls{flex-direction:column;align-items:stretch}.search{max-width:none}.filters{overflow-x:auto}.cards{grid-template-columns:1fr}html[data-theme=og] .shell{margin-left:0}html[data-theme=og] .og-sidebar{display:none}html[data-theme=og] .content-layout{grid-template-columns:1fr}html[data-theme=og] .og-right{display:none}html[data-theme=og] .header .brand{display:block}html[data-theme=og] .header{padding:12px 18px}html[data-theme=og] .hero{margin-top:15px}html[data-theme=og] .hero h1{font-size:25px}}
@media(max-width:560px){html{scroll-padding-top:135px}.header{flex-wrap:wrap;padding:12px 18px;gap:10px}.brand{width:152px}.header-tools{width:100%;margin-left:0}.appearance{flex:1;min-width:0}.locale{width:65px;flex:0 0 65px}.menu-toggle{flex:0 0 44px}.hero h1{font-size:clamp(36px,9vw,48px)}.hero-picture{height:270px}.hero-actions .btn{flex:1 1 100%}.quick-grid{grid-template-columns:1fr;gap:12px}.quick-card{min-height:185px}.person .portrait{width:125px;min-height:135px}footer{flex-direction:column;gap:8px;padding-bottom:100px}.bottom-nav{position:fixed;z-index:8;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;border-top:1px solid var(--border);background:var(--bg);padding:14px 5px calc(14px + env(safe-area-inset-bottom))}.bottom-nav a{text-align:center;font-size:11px;font-weight:700}.concept{font-size:9px;letter-spacing:.04em}html[data-theme=og] .hero h1{font-size:23px}html[data-theme=og] .cards{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}


/* V6.4 — accueil & filtres */
.hero-picture{max-width:560px;height:410px;border:1px solid var(--border);border-radius:22px;background:#170c10;box-shadow:0 28px 70px #0006}.hero-picture img{object-position:center center}.photo-stamp{background:#12080ee6}
.browse-controls{align-items:stretch;gap:14px}.filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;flex:1}.filter{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px}
html[data-theme=og] .browse-controls{display:flex;flex-direction:column-reverse;align-items:stretch;gap:8px;padding:0}html[data-theme=og] .filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;overflow:visible}html[data-theme=og] .hero{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;text-align:left;gap:18px;margin-top:22px;padding:18px;background:#f0003e;border:2px solid #fd7794;border-radius:5px}html[data-theme=og] .hero .eyebrow{display:block;color:#fff2a8;margin:0 0 10px}html[data-theme=og] .lead{display:block;color:#ffe8ef;max-width:none;font-size:14px;line-height:1.55;margin-bottom:0}html[data-theme=og] .hero-note{display:none}html[data-theme=og] .hero h1{font-size:34px;letter-spacing:-.045em;line-height:1.07;margin:0 0 15px;text-shadow:2px 2px #69001d;text-align:left}html[data-theme=og] .hero-actions{justify-content:flex-start;margin:0}html[data-theme=og] .hero-picture{display:block;justify-self:stretch;max-width:none;height:430px;background:#18060d;border:2px solid #ff8fa7;border-radius:0;box-shadow:none}html[data-theme=og] .hero-picture img{width:100%;height:100%;object-fit:cover}html[data-theme=og] .photo-stamp{left:12px;bottom:12px;border:1px solid #ffcf63;background:#15050be8;color:#fff1ab;padding:7px 10px;font-size:10px}
@media(max-width:980px){.filters{grid-template-columns:repeat(5,minmax(110px,1fr))}}
@media(max-width:820px){.hero-picture{max-width:none;height:320px}.filters{display:flex;grid-template-columns:none;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.filter{flex:0 0 auto;min-width:132px}html[data-theme=og] .hero{grid-template-columns:1fr;padding:14px}html[data-theme=og] .hero h1{text-align:center;font-size:28px}html[data-theme=og] .lead{text-align:center}html[data-theme=og] .hero-actions{justify-content:center}html[data-theme=og] .hero-picture{height:320px}}
@media(min-width:1180px){html[data-theme=og] .hero-picture{height:470px}}


/* ===== discovery.css ===== */
/* MTLAM Phase 2 — Découverte responsive */
.discovery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-8px 0 18px}.view-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.view-button,.favorites-only{min-height:39px;border:0;border-radius:8px;color:var(--muted);background:transparent;font-size:12px;font-weight:700;padding:9px 14px}.view-button.active,.favorites-only.active{background:var(--accent);color:#fff}.favorites-only{border:1px solid var(--border);background:var(--surface);display:flex;gap:9px;align-items:center}.favorites-only>span:first-child{font-size:19px}.favorites-only #favorites-count{min-width:20px;height:20px;display:inline-grid;place-items:center;background:#ffffff24;border-radius:50%;font-size:10px}.person-actions{display:flex;gap:7px;align-items:center}.favorite-toggle{border:1px solid var(--border);border-radius:8px;background:var(--surface2);color:var(--accent-text);width:37px;height:37px;font-size:21px}.favorite-toggle[aria-pressed=true]{color:var(--accent-text)}.view-list{grid-template-columns:1fr}.view-list .person{min-height:96px}.view-list .portrait{width:95px;min-height:95px}.view-list .person-info{align-items:center}.view-list .person-info h3{font-size:16px}.discover-footnote{font-size:11px;color:var(--muted);line-height:1.5;margin:16px 0 4px}.profile-dialog{width:min(720px,calc(100% - 30px));max-width:720px;padding:0;overflow:hidden;display:grid;grid-template-columns:46% 54%;border-radius:17px}.profile-dialog:not([open]){display:none}.profile-dialog .dialog-x{z-index:2;background:var(--surface);border-radius:50%;width:38px;height:38px}.profile-dialog-media{position:relative;min-height:390px;background:var(--surface2);display:grid;place-items:center}.profile-dialog-media img{width:100%;height:100%;min-height:390px;object-fit:cover}.profile-dialog-initials{font:800 48px var(--headline);color:var(--accent-text)}.profile-dialog-info{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:30px}.profile-dialog-info h2{font:800 clamp(26px,3vw,36px) var(--headline);margin:0}.profile-dialog-info p{margin:0;color:var(--muted);line-height:1.7}.profile-dialog-actions{display:flex;flex-direction:column;gap:10px;margin-top:15px}.profile-dialog-info .discover-footnote{font-size:11px}.profile-dialog-info .secondary{border:1px solid var(--border)}
html[data-theme=atelier] .favorite-toggle,html[data-theme=atelier] .view-button,html[data-theme=atelier] .favorites-only{border-radius:3px}html[data-theme=discret] .view-cards .person{align-items:center}html[data-theme=discret] .profile-dialog-media{background:#e0eaf2}html[data-theme=discret] .profile-dialog-media img{display:none}html[data-theme=og] .view-switch,html[data-theme=og] .favorites-only,html[data-theme=og] .view-button,html[data-theme=og] .favorite-toggle,html[data-theme=og] .profile-dialog{border-radius:0}html[data-theme=og] .view-button.active,html[data-theme=og] .favorites-only.active{background:#000078;color:#ffeb00}html[data-theme=og] .view-list .portrait{width:95px;min-height:95px}html[data-theme=og] .profile-dialog{border:2px solid #ffed00}html[data-theme=og] .profile-dialog-info{background:#c90030}
/* En-tête validé : logo et hamburger sur la même ligne en mobile. */
@media(max-width:820px){.header{display:grid;grid-template-columns:minmax(0,1fr) 75px 44px;grid-template-rows:auto 44px;align-items:center;gap:12px 10px;min-height:0;padding:14px 18px}.header .brand{grid-column:1/3;grid-row:1;width:min(212px,100%);max-width:100%;justify-self:start;margin:0}.header-tools{display:contents}.header .menu-toggle{display:flex;align-items:center;justify-content:center;grid-column:3;grid-row:1;width:44px;height:44px;background:transparent;color:var(--muted);border:1px solid transparent;box-shadow:none;font-size:21px;opacity:.85}.header .menu-toggle:hover,.header .menu-toggle[aria-expanded=true]{background:var(--surface);color:var(--ink);opacity:1}.header .appearance{grid-column:1/3;grid-row:2;width:100%;min-width:0}.header .locale{grid-column:3;grid-row:2;width:100%;min-width:0}.header .select-wrap select{width:100%;height:44px}.header .mobile-menu{top:100%}html[data-theme=og] .header{display:grid;justify-content:initial}html[data-theme=og] .header .brand{display:block;width:min(212px,100%)}html[data-theme=og] .header .menu-toggle{border-radius:0;background:transparent}}
@media(max-width:560px){.discovery-toolbar{flex-wrap:wrap}.favorites-only{margin-left:auto}.profile-dialog{grid-template-columns:1fr;max-height:min(90dvh,790px);overflow-y:auto}.profile-dialog-media{min-height:230px;max-height:260px}.profile-dialog-media img{height:260px;min-height:230px}.profile-dialog-info{padding:22px}.view-list .portrait{width:85px;min-height:95px}.view-list .person .portrait{width:85px;min-height:95px}.view-list .person-info{padding:12px}.view-list .person-actions{gap:4px}.view-list .favorite-toggle,.view-list .person-open{width:32px;height:36px}.header .brand,html[data-theme=og] .header .brand{width:min(210px,100%)}}
@media(max-width:355px){.header{grid-template-columns:minmax(0,1fr) 61px 44px;gap:8px}.header .brand,html[data-theme=og] .header .brand{width:min(185px,100%)}.discovery-toolbar{align-items:stretch}.favorites-only{margin-left:0}.view-button,.favorites-only{padding-inline:9px}}


/* ===== refinements.css ===== */
/* MTLAM V5 — cartes entièrement cliquables, navigation et espace membre démo */
.header{z-index:52;background:var(--bg)}
.mobile-menu{display:block;position:absolute;z-index:60;top:100%;left:0;right:auto;width:min(360px,100%);padding:14px 18px;background:var(--surface);border:1px solid var(--border);border-top:0;border-radius:0 0 14px 0;box-shadow:12px 18px 50px #0006;transform:translateX(-110%);opacity:0;visibility:hidden;pointer-events:none;transition:transform .28s cubic-bezier(.2,.75,.2,1),opacity .25s,visibility .25s}
.mobile-menu.is-open{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto}
.mobile-menu a{display:block;padding:15px 12px;font-size:14px;font-weight:600;border-bottom:1px solid var(--border)}
.mobile-menu a:last-child{border-bottom:0}
.mobile-menu a:hover{background:var(--surface2);color:var(--accent-text)}
.menu-backdrop{position:fixed;inset:0;z-index:49;background:#0005;border:0;cursor:default}
/* Une grille de grandes cartes : portrait à gauche et information à droite */
.cards.view-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cards.view-cards .person{min-height:230px}
.person{position:relative;isolation:isolate;cursor:pointer;transition:border-color .2s,transform .2s,box-shadow .2s}
.person:hover{border-color:var(--accent-text);box-shadow:0 15px 40px #0003;transform:translateY(-2px)}
.person:focus-within{outline:2px solid var(--accent-text);outline-offset:2px}
.person-hitarea{position:absolute;inset:0;z-index:2;width:100%;height:100%;padding:0;opacity:0;background:transparent;border:0;cursor:pointer}
.person-hitarea:focus-visible{outline:3px solid var(--accent-text);outline-offset:-4px}
.person .portrait{width:43%;min-height:230px}
.person .person-info{min-width:0;display:flex;align-items:center;padding:20px;gap:10px}
.person .person-info>div:first-child{min-width:0}
.person .person-info h3{font-size:clamp(18px,2vw,23px)}
.person-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;line-height:1.55;margin:12px 0!important;font-size:12px!important}
.person-view{display:inline-flex;color:var(--accent-text);font-size:12px;font-weight:700;margin-top:12px}
.person-actions{position:relative;z-index:4;align-self:flex-start;flex-shrink:0}
.person .favorite-toggle{position:relative;z-index:4;pointer-events:auto;width:42px;height:42px;min-width:42px;min-height:42px;border-radius:50%;font-size:23px}
.person .demo-label{pointer-events:none}
.discovery-toolbar{margin:0 0 15px}.discover-hint{color:var(--muted);font-size:12px}
/* La préférence Cartes/Liste demeure accessible dans Mes paramètres. */
.cards.view-list{display:grid;grid-template-columns:1fr;gap:12px}
.cards.view-list .person{min-height:160px}
.cards.view-list .person .portrait{width:195px;min-height:160px}
.cards.view-list .person .person-info{padding:18px 22px}
/* Apparences : préserver le sens de Discret et le style OG */
html[data-theme=atelier] .person{flex-direction:row}
html[data-theme=atelier] .person .portrait{width:43%;height:auto;min-height:230px}
html[data-theme=discret] .person .portrait{width:90px;min-height:120px}
html[data-theme=discret] .person .portrait img{display:none}
html[data-theme=og] .person .portrait{width:42%;min-height:200px}
html[data-theme=og] .cards.view-list .person .portrait{width:170px;min-height:160px}
html[data-theme=og] .mobile-menu{background:#e90038;border-color:#ffed00;border-radius:0}
html[data-theme=og] .mobile-menu a{color:#fff}
/* Préférences et profil démo */
.utility-dialog{width:min(490px,calc(100% - 30px));max-height:90dvh;overflow:auto;padding:30px;border:1px solid var(--border);background:var(--surface);color:var(--ink);border-radius:14px}
.utility-dialog h2{font:700 28px var(--headline);margin:13px 0 16px}
.utility-dialog h3{font:700 22px var(--headline);margin-bottom:8px}
.utility-dialog p{line-height:1.6;color:var(--muted)}
.utility-dialog .dialog-x{top:10px;right:12px}
.settings-fieldset{border:1px solid var(--border);border-radius:10px;margin:20px 0;padding:16px}
.settings-fieldset legend{padding:0 8px;font-size:13px;font-weight:700}
.settings-fieldset .view-switch{display:flex;width:max-content;max-width:100%;margin-top:6px}
.utility-dialog form label{display:block;margin:13px 0;font-size:13px;font-weight:700}
.utility-dialog form input,.utility-dialog form textarea{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--ink)}
.form-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
html[data-theme=og] .utility-dialog,html[data-theme=og] .settings-fieldset,html[data-theme=og] .utility-dialog form input,html[data-theme=og] .utility-dialog form textarea{border-radius:0}
@media(max-width:820px){.header{position:relative}.mobile-menu{width:min(360px,100%);max-height:calc(100dvh - 130px);overflow:auto}}
@media(max-width:700px){.cards.view-cards{grid-template-columns:1fr}.cards.view-cards .person{min-height:205px}.person .portrait,.cards.view-cards .person .portrait{width:43%;min-height:205px}.person .person-info{padding:13px 14px}.person-description{-webkit-line-clamp:2;line-clamp:2}.cards.view-list .person .portrait{width:135px;min-height:150px}.cards.view-list .person{min-height:150px}.cards.view-list .person .person-info{padding:12px}.discover-hint{max-width:170px}.discovery-toolbar{gap:8px}.favorites-only{margin-left:auto}.profile-dialog{max-height:90dvh}}
@media(max-width:390px){.person .portrait,.cards.view-cards .person .portrait{width:40%;min-height:190px}.cards.view-cards .person{min-height:190px}.person .person-info{padding:11px}.person-description{font-size:11px!important}.person .favorite-toggle{width:38px;height:38px;min-width:38px;min-height:38px}.cards.view-list .person .portrait{width:110px}.discover-hint{display:none}}
@media(prefers-reduced-motion:reduce){.mobile-menu,.person{transition:none}}
/* Le même menu déroulant reste disponible sur ordinateur pour les paramètres. */
@media(min-width:821px){.header .menu-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;background:transparent;border-color:transparent;color:var(--muted)}.header .menu-toggle:hover,.header .menu-toggle[aria-expanded=true]{background:var(--surface);color:var(--ink)}html[data-theme=og] .header .menu-toggle{display:flex;color:#fff000;border-radius:0}}


/* ===== mobile-nav.css ===== */
/* Navigation mobile V5.1 — quatre actions, mêmes repères sur tous les thèmes. */
@media (max-width: 560px) {
  .bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 85;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-height: 68px;
    padding: 5px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 -7px 28px #0004;
  }
  .bottom-nav .bottom-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 53px;
    margin: 0;
    padding: 6px 2px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font: 600 10px/1.2 var(--font);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav .bottom-item svg { width: 22px; height: 22px; flex: 0 0 auto; }
  .bottom-nav .bottom-item span { white-space: nowrap; }
  .bottom-nav .bottom-item:is(.is-active, :hover) {
    background: var(--accent);
    color: #fff;
  }
  .bottom-nav .bottom-item:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
  /* L'entrée Favoris du bandeau remplace le bouton redondant au-dessus des cartes. */
  .discovery-toolbar #favorites-only { display: none; }
  .discovery-toolbar .discover-hint { max-width: none; }
  footer { padding-bottom: 96px; }
  /* Reproduit le repère bleu/jaune OG de la maquette Yanik. */
  html[data-theme="og"] .bottom-nav { background: #e90038; border-top: 1px solid #ff8ca2; }
  html[data-theme="og"] .bottom-nav .bottom-item { color: #fff; border-radius: 0; }
  html[data-theme="og"] .bottom-nav .bottom-item:is(.is-active, :hover) { background: #000080; color: #fff; }
}


/* ===== sticky-theme.css ===== */
/* MTLAM V5.2 — En-tête collant et défilement assorti au thème. */
:root {
  --scroll-track: var(--bg);
  --scroll-thumb: var(--accent);
  --scroll-hover: var(--accent-text);
}
html {
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
  scroll-padding-top: 138px;
}
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--scroll-track); }
body::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid var(--scroll-track);
  border-radius: 10px;
}
body::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
/* Une position collante sur la barre uniquement : le bandeau conceptuel défile. */
.header,
html[data-theme="og"] .header {
  position: sticky;
  top: 0;
  z-index: 52;
  background: var(--bg);
  isolation: isolate;
}
/* Les menus continuent de s'ouvrir sous l'en-tête, sans être coupés. */
.header .mobile-menu { top: 100%; }
/* La grille défile jusqu'à des sections entièrement visibles. */
#accueil, #decouvrir, #salons, #heritage { scroll-margin-top: 138px; }
html[data-theme="atelier"] { --scroll-track: #f5eee6; --scroll-thumb: #99435a; --scroll-hover: #853b52; }
html[data-theme="discret"] { --scroll-track: #f4f6f8; --scroll-thumb: #426782; --scroll-hover: #365e7b; }
html[data-theme="og"] { --scroll-track: #000000; --scroll-thumb: #ed003a; --scroll-hover: #ffe500; }
@media (max-width: 820px) {
  .header, html[data-theme="og"] .header { position: sticky; top: 0; }
  html { scroll-padding-top: 150px; }
  #accueil, #decouvrir, #salons, #heritage { scroll-margin-top: 150px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 170px; }
  #accueil, #decouvrir, #salons, #heritage { scroll-margin-top: 170px; }
}


/* ===== header-v53.css ===== */
/* MTLAM V5.3 — En-tête stable, actions et langues toujours visibles */
.header, html[data-theme="og"] .header {
  position: sticky;
  top: 0;
  z-index: 52;
  isolation: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-top: 10px;
  padding-bottom: 10px;
}
.header .brand, html[data-theme="og"] .header .brand,
.header .brand img, .og-side-brand img { background: transparent; }
.header .brand { padding: 0; flex-shrink: 0; }
.header .brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.header-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.header-utilities { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.utility-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 40px; border: 1px solid transparent;
  border-radius: 9px; color: var(--ink); background: transparent;
  cursor: pointer; transition: color .16s, background .16s, border-color .16s;
}
.utility-icon:hover { background: var(--surface); border-color: var(--border); color: var(--accent-text); }
.utility-icon:focus-visible, .header select:focus-visible, .menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.header .select-wrap { display: block; min-width: 0; margin: 0; flex-shrink: 0; }
.header .appearance { width: 165px; }
.header .locale { width: 68px; }
.header .select-wrap select {
  display: block; appearance: none; -webkit-appearance: none;
  width: 100%; min-width: 0; height: 40px; min-height: 40px;
  padding: 0 28px 0 11px; margin: 0;
  border: 1px solid var(--border); border-radius: 9px;
  background-color: var(--surface); color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%23a9a9a9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  font: 600 12px/1 var(--font); cursor: pointer;
}
.header .locale select { padding-left: 10px; }
.header select:hover { border-color: var(--accent); }
.header select option { background: var(--surface); color: var(--ink); }
.header .menu-toggle {
  display: grid; place-items: center; flex: 0 0 40px;
  width: 40px; height: 40px; min-width: 40px;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink); font-size: 20px;
  padding: 0; opacity: .88;
}
.header .menu-toggle:hover, .header .menu-toggle[aria-expanded="true"] { background: var(--surface); opacity: 1; }
.header .mobile-menu { top: 100%; }
html[data-theme="og"] .header select, html[data-theme="og"] .header .menu-toggle,
html[data-theme="og"] .utility-icon { border-radius: 0; }
html[data-theme="og"] .header select { background-color: #000; color: #fff000; border-color: #f00040; }
html[data-theme="og"] .utility-icon { color: #fff000; }
html[data-theme="og"] .utility-icon:hover { background: #b9002b; }
html[data-theme="og"] .header .brand { display: none; }
@media (min-width: 821px) and (max-width: 1330px) {
  .header { gap: 14px; padding-inline: 18px; }
  .header .brand { width: 145px; }
  .header-nav { gap: 12px; }
  .header .appearance { width: 145px; }
  .utility-icon { width: 34px; }
}
@media (min-width: 821px) and (max-width: 1070px) {
  .header-nav { display: none; }
}
@media (max-width: 820px) {
  .header, html[data-theme="og"] .header {
    display: grid; grid-template-columns: minmax(0,1fr) auto 42px;
    grid-template-rows: auto 40px; gap: 5px 4px;
    width: 100%; min-height: 0; padding: 7px 16px 9px;
    align-items: center; justify-content: stretch;
  }
  .header .brand, html[data-theme="og"] .header .brand {
    display: block; grid-column: 1; grid-row: 1;
    width: min(187px,100%); max-width: 100%; margin: 0;
  }
  .header-nav { display: none; }
  .header-tools { display: contents; }
  .header-utilities { grid-column: 2; grid-row: 1; gap: 0; }
  .utility-icon { width: 34px; height: 40px; }
  .utility-icon svg { width: 19px; height: 19px; }
  .header .menu-toggle, html[data-theme="og"] .header .menu-toggle {
    grid-column: 3; grid-row: 1;
    width: 42px; height: 42px; min-width: 42px;
    margin: 0; justify-self: end;
  }
  .header .appearance { grid-column: 1 / 3; grid-row: 2; width: 100%; }
  .header .locale { grid-column: 3; grid-row: 2; width: 100%; }
  .header .select-wrap select { height: 40px; min-height: 40px; font-size: 12px; }
  .header .mobile-menu { left: 0; top: 100%; max-height: calc(100dvh - 115px); }
  html { scroll-padding-top: 124px; }
  #accueil, #decouvrir, #salons, #heritage { scroll-margin-top: 124px; }
}
@media (max-width: 390px) {
  .header, html[data-theme="og"] .header { padding-inline: 10px; }
  .header .brand, html[data-theme="og"] .header .brand { width: min(158px,100%); }
  .utility-icon { width: 30px; }
  .utility-icon svg { width: 18px; height: 18px; }
  .header .select-wrap select { font-size: 11px; }
}
@media (max-width: 330px) {
  .header .brand, html[data-theme="og"] .header .brand { width: min(135px,100%); }
  .utility-icon { width: 27px; }
}
