/* Accueil du lab. Couleurs : variables de portail/theme.css. */
*{box-sizing:border-box}
:root{font-family:var(--font);background:var(--bg);color:var(--text);font-synthesis:none}
body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 85% 0%,var(--glow),transparent 50%),var(--bg);color:var(--text)}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.shell{max-width:1120px;margin:0 auto;padding:32px 36px 28px}
.skip-link{position:absolute;top:12px;left:12px;z-index:30;padding:12px;background:var(--surface);color:var(--text);border:1px solid var(--line-strong);border-radius:8px;transform:translateY(-200%)}
.skip-link:focus{transform:translateY(0)}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* Barre du haut : la base vient de theme.css. */
.home-brand{display:inline-flex;align-items:center;gap:10px;font-size:18px}
.brand-icon{width:30px;height:30px;flex:none;fill:none;stroke:var(--accent);stroke-width:2.5}
.brand-icon text{fill:var(--accent);stroke:none;font:700 21px var(--font)}
.account{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.account[hidden]{display:none}.account form{margin:0}

/* Bandeau d'accueil */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:28px;align-items:center;margin:52px 0 46px}
.eyebrow{margin:0 0 14px;font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--accent)}
h1{margin:0;font-size:clamp(38px,6vw,64px);line-height:1.04;letter-spacing:-2.5px;overflow-wrap:anywhere}
h1 span{color:var(--accent)}
.lede{max-width:520px;margin:18px 0 0;font-size:16px;line-height:1.65;color:var(--muted)}
.hero-widgets{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px}
.widget{position:relative;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:128px;padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.widget-heading{margin:0;font-size:10px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--muted)}
.clock-value{font-size:40px;line-height:1;font-weight:700;letter-spacing:-1.5px;font-variant-numeric:tabular-nums}
.clock-date{font-size:12px;line-height:1.4;color:var(--muted);text-transform:capitalize}
.weather-compact{display:flex;align-items:center;gap:10px;min-width:0}
.weather-icon{width:34px;height:34px;flex:none;color:var(--accent);display:grid;place-items:center}
.weather-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.weather-temperature{display:flex;align-items:baseline;gap:2px;flex:none}
.weather-temperature>#weather-temp{font-size:32px;line-height:1;font-weight:700;letter-spacing:-1px}
.temperature-unit{font-size:13px;color:var(--muted)}
.weather-copy{min-width:0;flex:1}
.weather-place{margin:0;font-size:12px;font-weight:600;line-height:1.4;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.weather-state{margin:2px 0 0;font-size:12px;line-height:1.4;color:var(--muted)}
.widget-button{font-size:11px;line-height:1.4;color:var(--text);background:var(--surface-2);border:1px solid var(--line-strong);border-radius:8px;padding:7px 10px;cursor:pointer}
.widget-button:hover{background:var(--line)}.widget-button:disabled{opacity:.5;cursor:wait}
.weather-selector{max-width:100%}
.city-toggle{display:inline-flex;align-items:center;gap:8px;list-style:none;padding:4px 9px;background:transparent}
.city-toggle::-webkit-details-marker{display:none}.city-toggle::marker{content:''}
.weather-selector[open] .city-toggle>span{transform:rotate(180deg)}
.weather-controls{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:min(340px,calc(100vw - 32px));max-height:min(70vh,440px);overflow:auto;padding:16px;background:var(--surface);border:1px solid var(--line-strong);border-radius:14px;box-shadow:0 18px 40px #0005}
.city-form{display:flex;align-items:stretch;gap:7px;flex-wrap:wrap}
.city-form input{font-size:13px;line-height:1.5;min-width:0;flex:1 1 150px;width:100%;background:var(--input);color:var(--text);border:1px solid var(--line-strong);border-radius:8px;padding:9px 11px}
.city-form input::placeholder{color:var(--muted)}.city-form .widget-button{flex:0 0 auto}
.widget-message{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.widget-message:empty{display:none}.widget-message.error{color:var(--bad)}
#city-message{margin-top:9px}
.city-results{list-style:none;padding:0;margin:9px 0;border:1px solid var(--line-strong);border-radius:8px;overflow:hidden}
.city-results[hidden]{display:none}.city-results li+li{border-top:1px solid var(--line)}
.city-results button{display:block;width:100%;background:var(--surface-2);color:var(--text);border:0;padding:10px 11px;text-align:left;font-size:12px;line-height:1.5;cursor:pointer}
.city-results button:hover{background:var(--line)}
.weather-options{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.weather-privacy,.weather-credit{font-size:10px;line-height:1.65;color:var(--muted);margin:10px 0 0}
.weather-credit a{text-decoration:underline;text-underline-offset:3px}

/* Services */
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin-bottom:16px}
.section-head h2{margin:0;font-size:20px;letter-spacing:-.4px}
.section-note{margin:0;font-size:13px;color:var(--muted)}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tile{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr auto;column-gap:18px;min-height:170px;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:18px;transition:background .18s,border-color .18s,transform .18s}
.tile:hover{background:var(--surface-2);border-color:var(--line-strong);transform:translateY(-2px)}
.tile-icon{grid-row:1/4;display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--accent-soft);color:var(--accent)}
.tile-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.tile-title{font-size:22px;font-weight:700;letter-spacing:-.5px;line-height:1.2}
.tile-desc{margin-top:6px;font-size:14px;line-height:1.55;color:var(--muted)}
.tile-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.tile-arrow{font-size:20px;color:var(--muted);transition:transform .18s,color .18s}
.tile:hover .tile-arrow{color:var(--accent);transform:translateX(3px)}
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.2px;background:var(--surface-2);color:var(--muted)}
.chip[hidden]{display:none}
.chip.public{background:var(--ok-bg);color:var(--ok)}
.chip.open{background:var(--info-bg);color:var(--info)}
.chip.locked{background:var(--bad-bg);color:var(--bad)}
.chip svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.tile.locked .tile-icon{background:var(--surface-2);color:var(--muted)}
.tile.locked .tile-title{color:var(--soft)}
.site-footer{display:flex;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;margin-top:48px;padding-top:20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.site-footer b{color:var(--accent)}

/* Page « À configurer » (section.html) */
.detail{max-width:760px;margin:0 auto;padding:32px 36px}
.back{display:inline-flex;gap:10px;align-items:center;color:var(--muted);padding:8px 2px}.back:hover{color:var(--text)}
.placeholder{margin-top:28px;padding:44px 28px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:20px}
.section-icon{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 24px;background:var(--accent-soft);color:var(--accent);border-radius:24px}
.section-icon svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.placeholder h1{font-size:40px;letter-spacing:-1px}
.pending{display:inline-block;margin:20px 0 6px;padding:6px 12px;border-radius:30px;font-size:13px;background:var(--warn-bg);color:var(--warn)}
.placeholder p{font-size:17px;line-height:1.7;color:var(--soft);margin:14px 0}
.placeholder .hint{color:var(--muted);font-size:14px}
.primary-link{display:inline-flex;align-items:center;gap:14px;margin-top:20px;padding:14px 18px;border-radius:12px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:15px}
.primary-link:hover{background:var(--accent-hover)}
.detail footer{margin-top:28px;padding-top:20px;border-top:1px solid var(--line);font-size:13px;color:var(--muted);text-align:center}

@media(max-width:900px){.hero{grid-template-columns:1fr;margin:40px 0 36px}.hero-widgets{max-width:520px}}
@media(max-width:620px){.shell{padding:22px 16px 24px}.weather-controls{left:0;right:auto;width:min(340px,calc(100vw - 32px))}.detail{padding:22px 16px}.home-brand{font-size:16px}.brand-icon{width:26px;height:26px}.hero{margin:28px 0 30px;gap:22px}h1{letter-spacing:-1.6px}.lede{font-size:15px}.hero-widgets{grid-template-columns:minmax(0,1fr);gap:10px}.widget{padding:14px;min-height:118px}.clock-value{font-size:32px}.weather-temperature>#weather-temp{font-size:26px}.weather-compact{flex-wrap:wrap;gap:6px 8px}.weather-copy{flex-basis:100%}.tiles{grid-template-columns:1fr;gap:12px}.tile{min-height:0;padding:18px;column-gap:14px}.tile-icon{width:48px;height:48px;border-radius:13px}.tile-icon svg{width:25px;height:25px}.tile-title{font-size:19px}.placeholder{padding:34px 18px}.placeholder h1{font-size:32px}}
@media(pointer:coarse){.widget-button,.city-toggle,.city-results button{min-height:44px;display:inline-flex;align-items:center}.city-results button{display:block;width:100%}.city-toggle{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
