/* Layout shared by the public pages and the account. */
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.site-header, .utility-header { background:var(--paper); border-bottom:1px solid var(--edge); }
.site-header .header-inner { width:100%; max-width:none; height:56px; padding-inline:clamp(16px,2vw,24px); }
.site-header .brand { min-width:0; }
.site-header .lou-wordmark { font-size:36px; }
.site-header .header-cta {
  gap:8px;
  min-height:36px;
  padding:6px 16px;
  border-width:2px;
  border-radius:24px;
  font-size:14px;
  line-height:20px;
  white-space:nowrap;
  box-shadow:0 3px 0 var(--pressed);
}
.site-header .header-cta svg { flex:none; width:16px; height:16px; }
@media(max-width:360px) {
  .site-header .header-inner { min-height:56px; height:auto; padding:6px 10px; gap:8px; }
  .site-header .brand { flex:none; }
  .site-header .header-actions { min-width:0; }
  .site-header .header-cta { padding-inline:8px; white-space:normal; text-align:center; }
}
.site-header .signed-action { background:var(--surface); border-color:var(--edge); color:var(--ink); box-shadow:0 3px 0 var(--edge); }
.utility-header { position:sticky; top:0; z-index:6; }
.utility-inner, .library-page { width:min(calc(100% - 32px),640px); margin-inline:auto; }
.utility-inner { height:56px; display:flex; align-items:center; justify-content:space-between; gap:12px; font-weight:650; }
.nav-circle, .settings-link { display:grid; place-items:center; flex:none; color:var(--ink); }
.nav-circle { margin-left:3px; width:40px; height:40px; border-radius:50%; background:var(--surface); border:1.5px solid var(--edge); box-shadow:0 3px 0 var(--edge); }
.nav-circle img,.settings-link img { width:20px; height:20px; }
.settings-link { width:44px; height:44px; border-radius:50%; }
.settings-link:hover { background:color-mix(in srgb,var(--prune) 8%,transparent); }
.utility-header:has(+ main .thread-settings) .utility-inner, body[data-page="support"] .utility-inner { max-width:672px; }
body.application #contenu { min-height:calc(100svh - 56px); }
body:has(.report-preparation) .utility-footer { display:none; }
body:is([data-page="compte"],[data-page="conversation"],[data-page="app"]) .product-shell { width:100%; padding:0; }
.library-page { padding:64px 0 90px; }
.library-page h1,.library-page h2 { color:var(--ink); font:700 23px/1.24 var(--display); letter-spacing:-.035em; text-wrap:initial; }
.library-page h1 { overflow-wrap:anywhere; }
.library-page h2 { font-size:21px; }
.library-page p { font-size:14px; }
.library-page .secondary, .small-raised { min-height:40px; border:1.5px solid var(--edge); border-radius:10px; padding:8px 15px; background:var(--surface); color:var(--ink); font-size:14px; line-height:1.4; font-weight:650; box-shadow:0 3px 0 var(--edge); }
.library-grid, .report-items, .danger-panel ul { list-style:none; padding:0; margin:0; }
.library-page:has(.library-grid) { padding-top:56px; }
.library-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 16px; }
.library-grid li { min-width:0; }
.library-tile { display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start; width:100%; min-height:155px; aspect-ratio:1; padding:19px 20px; background:var(--surface); color:var(--ink); border:2px solid var(--edge); box-shadow:0 4px 0 var(--edge); border-radius:18px; text-decoration:none; }
.library-tile:is(:hover,:focus-visible), .edition-row>a:hover { filter:brightness(.97); }
.library-tile strong { display:block; font-size:17px; line-height:1.25; overflow-wrap:anywhere; }
.library-tile small { display:block; font-size:12px; margin-top:4px; }
.tile-emoji { display:inline-block; font:37px/1.18 "Apple Color Emoji","Segoe UI Emoji",emoji; }
.library-tile.tone-0 { background:#ecdbb1; border-color:#cebb90; box-shadow:0 4px 0 #cebb90; }
.library-tile.tone-1 { background:#e6cfe5; border-color:#c7a9c6; box-shadow:0 4px 0 #c7a9c6; }
.library-tile.tone-2 { background:#e1d8eb; border-color:#bfb0ca; box-shadow:0 4px 0 #bfb0ca; }
.library-tile.tone-3 { background:#dce7d5; border-color:#b3c4a9; box-shadow:0 4px 0 #b3c4a9; }
.add-circle { display:grid; place-items:center; width:36px; height:36px; background:var(--prune); border-radius:50%; box-shadow:0 3px 0 var(--pressed); }
.add-circle img { width:16px; height:16px; filter:invert(1); }
.new-conversation strong { font-size:15px; }
.tile-art { width:46px; height:50px; object-fit:contain; }
.conversation-summary { padding:22px 24px 0; border-radius:22px; border:2px solid #c1abc7; background:var(--lilac); }
.conversation-summary>div,.summary-stats { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.conversation-summary p { margin:0 0 18px; color:var(--muted); }
.summary-stats { border-top:1px solid #cebcd3; padding:16px 0 20px; color:var(--ink); text-decoration:none; font-weight:650; }
.edition-history,.extra-reports { margin-top:49px; }
.edition-history h2,.extra-reports h2 { font-size:18px; margin-bottom:28px; }
.report-items { display:grid; gap:22px; }
.edition-row { display:flex; min-width:0; position:relative; background:var(--surface); border:2px solid var(--edge); border-radius:18px; color:var(--ink); box-shadow:0 4px 0 var(--edge); }
.edition-row>a,.edition-row.upcoming>div,.chat-setting-info { display:flex; flex:1; min-width:0; align-items:center; gap:20px; min-height:95px; padding:16px 20px; color:inherit; text-decoration:none; overflow-wrap:anywhere; font-weight:650; line-height:1.45; }
.edition-row a:focus-visible { border-radius:inherit; }
.edition-avatar { position:relative; flex:none; width:56px; height:56px; }
.edition-art { width:100%; height:100%; border-radius:50%; background:var(--lilac); object-fit:contain; }
.edition-avatar small { position:absolute; left:-1px; bottom:-2px; display:grid; place-items:center; min-width:20px; height:20px; background:var(--ink); color:var(--surface); border:2px solid var(--surface); border-radius:50%; font:700 11px var(--ui); }
.row-arrow,.upcoming-icon { margin-left:auto; flex:none; padding:8px; }
.row-arrow { display:grid; border:1.5px solid var(--edge); border-radius:50%; box-shadow:0 2px 0 var(--edge); }
.edition-history .edition-row+.edition-row::before { content:""; position:absolute; z-index:-1; left:38px; top:-24px; height:24px; border-left:1px solid var(--edge); }
.edition-row.upcoming { color:var(--muted); box-shadow:none; border-style:dashed; }
.edition-row.upcoming .edition-avatar { opacity:.65; }
.edition-row.upcoming:has(>div) { opacity:.75; }
.account-settings>p { margin:9px 0 18px; color:var(--muted); overflow-wrap:anywhere; }
.danger-panel { padding:16px; margin-top:63px; border:1px solid color-mix(in srgb,var(--error) 35%,var(--surface)); border-radius:15px; background:var(--surface); }
.danger-panel h2 { font:650 16px/1.45 var(--ui); letter-spacing:0; color:var(--error); }
.danger-panel p { margin:14px 0; }
.danger-panel ul { display:grid; gap:8px; font-size:14px; }
.danger-panel li,.privacy-inline { display:flex; align-items:center; gap:11px; }
.library-page .danger { color:var(--error); border-color:color-mix(in srgb,var(--error) 44%,var(--surface)); }
.thread-settings { max-width:672px; }
.thread-settings>section { margin-top:42px; }
.thread-settings h2 { margin:0 0 17px; }
.privacy-inline { margin:56px 0 0; flex-wrap:wrap; gap:4px 8px; color:var(--muted); }
.privacy-inline .text-button { min-height:30px; padding:0; text-decoration:underline; font-size:inherit; }
.chat-setting-info .tile-emoji { font-size:28px; }
.chat-setting-info small { display:block; margin-top:5px; font-size:12px; color:var(--muted); }
.trash-action { flex:none; width:56px; padding:0 15px; display:grid; place-items:center; border:0; border-left:1px solid var(--edge); border-radius:0 16px 16px 0; background:transparent; }
.trash-action img,.danger-panel li img { filter:invert(31%) sepia(67%) saturate(650%) hue-rotate(322deg); }
.trash-action:hover { background:#f6e4dd; }
.thread-settings .edition-row { box-shadow:none; }
.thread-settings .edition-avatar { width:46px; height:46px; }
.thread-settings .edition-avatar small { display:none; }
.utility-footer { margin:16px; padding:24px; border-radius:18px; background:color-mix(in srgb,var(--edge) 27%,var(--paper)); }
.utility-footer,.utility-footer nav,.footer-signature { display:flex; gap:16px; flex-wrap:wrap; align-items:center; }
.utility-footer { justify-content:space-between; min-height:84px; font-size:14px; }
.utility-footer nav a { color:var(--muted); }
.utility-footer a, .footer-signature { text-decoration:none; }
.utility-footer a:hover { text-decoration:underline; }
.footer-signature { gap:8px; font-weight:650; color:var(--ink); }
.footer-signature img { border-radius:50%; }
/* The public footer uses the same navigation order at every screen size. */
.site-footer {
  --footer-hit:44px;
  display:flex;
  flex-direction:column;
  gap:40px;
  margin:0 12px max(12px,env(safe-area-inset-bottom));
  padding:48px 20px;
  border-radius:18px;
  background:color-mix(in srgb,var(--edge) 27%,var(--paper));
  color:var(--ink);
  font:400 14px/20px var(--ui);
}
.footer-home { display:flex; flex-direction:column; align-items:flex-start; gap:20px; }
.site-footer a { color:inherit; text-decoration:none; }
.footer-brand { display:inline-flex; align-items:center; gap:8px; font-weight:600; }
.footer-brand img { width:28px; height:28px; object-fit:contain; border-radius:50%; background:var(--lilac); }
.footer-tools { display:flex; flex-direction:column; align-items:flex-start; color:var(--muted); }
.footer-tool { display:inline-flex; align-items:center; gap:8px; min-height:var(--footer-hit); }
.footer-tool-icon { width:16px; height:16px; opacity:.64; }
.footer-tool span:not(.visually-hidden),.footer-language select {
  text-decoration:underline;
  text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);
  text-underline-offset:2px;
}
.footer-language,.footer-language select { cursor:pointer; }
.footer-language select {
  appearance:none; min-width:0; min-height:var(--footer-hit); margin:0; padding:0 4px 0 0;
  border:0; border-radius:3px; background:transparent; color:inherit; font:inherit;
}
.footer-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px 24px; }
.footer-group { min-width:0; }
.footer-group h2 {
  margin:0 0 4px; font:600 14px/20px var(--ui); color:var(--ink);
  letter-spacing:normal; text-wrap:wrap;
}
.footer-group ul { margin:0; padding:0; list-style:none; color:var(--muted); }
.footer-group a { display:flex; align-items:center; min-height:var(--footer-hit); width:fit-content; max-width:100%; }
.site-footer a:hover,.footer-language:hover { color:var(--prune); }
.footer-group a:hover,.footer-brand:hover span { text-decoration:underline; }
.site-footer :is(a,select):focus-visible { outline:2px solid var(--prune); outline-offset:3px; border-radius:3px; }
@media(min-width:640px) {
  .site-footer { --footer-hit:36px; margin:0 16px max(16px,env(safe-area-inset-bottom)); padding:56px 32px; }
}
@media(min-width:1024px) {
  .site-footer { flex-direction:row; align-items:flex-start; justify-content:space-between; gap:64px; }
  .footer-groups { width:min(100%,678px); grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:40px; }
}
@media(min-width:1280px) { .footer-groups { column-gap:64px; } }
@media(max-width:600px){
  .library-page { padding:40px 0 70px; }
  .library-page:has(.library-grid) { padding-top:32px; }
  .library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; }
  .library-tile { min-height:139px; padding:15px; }
  .edition-row>a,.edition-row.upcoming>div { gap:13px; padding:14px; }
  .edition-avatar { width:46px; height:46px; }
  .utility-footer { gap:16px; margin:10px; padding:20px 16px; }
  .utility-footer nav { gap:8px 14px; }
}
.public-article,.utility-public,.policy-page { width:min(calc(100% - 40px),768px); margin:auto; padding:64px 0 96px; font-size:16px; }
.public-article h1 { font-size:clamp(35px,5vw,48px); font-weight:650; line-height:1.15; text-wrap:initial; }
.public-article>p { margin-top:20px; color:var(--muted); }
.article-illustration { display:grid; place-items:center; height:auto; aspect-ratio:1.85; background:var(--lilac); border-radius:18px; overflow:hidden; margin:32px 0; }
.article-illustration .mascot { width:100%; height:100%; object-fit:contain; min-height:0; }
.section-index { margin:32px 0 56px; padding:22px 28px; border-radius:16px; background:color-mix(in srgb,var(--edge) 30%,var(--paper)); }
.section-index ol { display:grid; grid-template-columns:1fr 1fr; padding-inline-start:22px; gap:10px 36px; }
.section-index a { color:var(--ink); }
.public-article .article-section,.faq-group,.policy-page .article-section { margin:44px 0; }
.article-section h2,.faq-group h2 { font-size:26px; line-height:1.24; }
.article-section p { margin:12px 0; }
.faq-group .faq { margin-top:18px; }
.article-actions { display:flex; align-items:center; flex-wrap:wrap; gap:22px; margin-top:48px; }
.ai-help { margin:34px 0 30px; }
.ai-help h2 { font:650 14px/1.5 var(--ui); letter-spacing:0; margin-bottom:10px; }
.ai-help>div { display:flex; flex-wrap:wrap; gap:8px; }
.ai-help a { display:inline-flex; align-items:center; gap:7px; background:var(--surface); border:1px solid var(--edge); border-radius:24px; padding:9px 14px; min-height:42px; text-decoration:none; color:var(--ink); font-size:14px; font-weight:600; }
.ai-help a:hover,.help-faq:hover { color:var(--prune); background:var(--lilac); }
.ai-help a svg { width:16px; height:16px; }
.utility-public,.policy-page { max-width:672px; padding-top:50px; }
.utility-public h1,.policy-page h1 { font-size:24px; text-wrap:initial; }
.utility-public>p,.help-content>p,.contact-help>p { color:var(--muted); margin:15px 0; font-size:14px; line-height:1.6; }
.utility-public form { margin-top:26px; display:grid; gap:20px; }
.utility-public form label,.login-card label { display:grid; gap:6px; }
.utility-public form textarea,.utility-public form input { width:100%; background:var(--surface); border:1.5px solid var(--edge); border-radius:12px; padding:13px 15px; }
.utility-public form .button { justify-self:start; }
.help-content { width:min(100%,500px); }
.help-content .compact { margin-bottom:15px; }
.ai-help.compact>div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.ai-help.compact a { border-radius:9px; box-shadow:0 3px 0 var(--edge); font-size:16px; }
.help-faq { font-weight:650; color:var(--ink); font-size:14px; }
.contact-help { margin-top:52px; border-top:1px solid var(--edge); padding-top:32px; }
.contact-help details,.contact-help details[open] { background:none; border:0; padding:0; }
.contact-help summary { list-style:none; width:fit-content; cursor:pointer; display:flex; align-items:center; gap:9px; }
.contact-help summary::-webkit-details-marker { display:none; }
.contact-help summary svg { width:16px; }
.policy-page .article-intro { max-width:40rem; margin:38px 0 88px; font-size:20px; line-height:1.6; }
.policy-page .article-section h2 { font-size:20px; }
body:has(.login-card) :is(.utility-header,.utility-footer) { display:none; }
body:has(.login-card) #contenu { min-height:100vh; min-height:100svh; display:grid; align-items:center; }
.login-card { max-width:448px; width:calc(100% - 32px); margin:32px auto; background:var(--surface); border:1px solid var(--edge); border-radius:16px; padding:34px; }
.login-card h1 { font-size:24px; text-wrap:initial; }
.login-card>p { color:var(--muted); font-size:14px; line-height:1.5; margin:8px 0 20px; }
.login-card .button { min-height:44px; }
@media(max-width:600px){
  .public-article,.utility-public,.policy-page { width:calc(100% - 32px); padding-block:38px 70px; }
  .section-index { padding:18px; }
  .section-index ol { grid-template-columns:1fr; }
  .ai-help.compact>div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .login-card { padding:24px; }
}
body[data-page="ultime"]:has(.cross-offer) { background:var(--ink); color:var(--paper); }
body[data-page="ultime"]:has(.cross-offer) .site-header { background:var(--ink); border-color:#514653; }
body[data-page="ultime"] .site-footer { color:var(--ink); }
body:is([data-page="ultime"],[data-page="club"]) .product-shell { padding:0; width:100%; }
.marketing-offer { width:min(100% - 32px,900px); margin:auto; text-align:center; padding:clamp(86px,10.8vw,160px) 0 100px; }
.offer-hero h1 { max-width:680px; margin:0 auto; font-size:clamp(34px,4vw,48px); font-weight:650; line-height:1.18; }
.offer-hero>p { margin:28px auto 38px; max-width:550px; font-size:clamp(16px,2vw,19px); color:var(--muted); }
.cross-offer .offer-hero>p { color:#dbcfe0; }
.offer-badges { display:flex; justify-content:center; padding:0 5px; margin-bottom:38px; }
.offer-badges>span,.offer-avatar { width:clamp(42px,8.5vw,70px); height:auto; aspect-ratio:1; background:#dac4df; display:grid; place-items:center; border:2px solid #b598bd; border-radius:50%; font-size:clamp(22px,4vw,36px); margin-left:-6px; }
.offer-badges>span:nth-child(2n) { background:#efd8b4; }
.offer-avatar { object-fit:contain; z-index:1; background:var(--surface); }
.offer-entry { width:min(100%,490px); margin:22px auto; scroll-margin-top:75px; }
.offer-entry>.button { margin-top:8px; padding:14px 30px; font-size:18px; }
.offer-entry>form { text-align:start; background:var(--surface); color:var(--ink); border:1px solid var(--edge); border-radius:16px; padding:22px; }
.offer-entry fieldset { border:0; padding:0; margin:0 0 14px; }
.cross-explainer { max-width:650px; margin:68px auto 0; }
.cross-art { width:150px; height:168px; object-fit:contain; margin:0 auto 28px; }
.cross-explainer h2 { font-size:32px; }
.cross-explainer p { margin:14px 0; }
.compare-offers { display:grid; grid-template-columns:1fr 1fr; background:#3c3243; border-radius:16px; margin-top:28px; }
.compare-offers>div { padding:22px 16px; }
.compare-offers>div+div { border-left:1px solid #695e69; }
.compare-offers p { color:#ddcfdf; font-size:14px; }
.club-pass { width:min(100%,384px); margin:auto; text-align:left; border:2px solid #b7a289; border-radius:18px; background:var(--ink); color:var(--surface); padding:0 18px; box-shadow:0 6px 22px #59336419; }
.club-pass>div { display:flex; align-items:center; gap:12px; justify-content:space-between; padding:16px 0; }
.club-pass>div+div { border-top:1px solid #584a60; }
.club-pass .pass-title { justify-content:flex-start; }
.pass-avatar { width:44px; height:44px; border-radius:50%; background:var(--lilac); object-fit:contain; }
body:not(.application) #contenu { min-height:calc(100svh - 56px); }
.utility-public form[data-feedback] { max-width:none; }
form[data-feedback="avis"] textarea { min-height:290px; }
form[data-feedback="avis"] .button { margin-top:26px; }
.login-card [data-auth-email] label { font-size:0; gap:0; }
.login-card [data-auth-email] input { font-size:16px; }
.login-card [data-auth-email]:has(input:placeholder-shown) button,.utility-public form:has(textarea:placeholder-shown) .primary { opacity:.55; }
@media(max-width:600px){
  .conversation-overview { padding-inline:16px; }
  .utility-public form[data-feedback="avis"] textarea { min-height:220px; }
}
.future-editions { display:grid; gap:22px; margin-top:22px; pointer-events:none; opacity:.5; mask-image:linear-gradient(#0009,transparent); }
.future-editions>div { min-height:95px; padding:16px 20px; display:flex; align-items:center; gap:22px; border:2px solid var(--edge); border-radius:18px; filter:blur(2px); }
.future-editions span { width:54px; height:54px; border-radius:50%; background:var(--edge); }
.future-editions i { width:min(42%,240px); height:12px; border-radius:20px; background:var(--edge); }
.thread-settings { width:min(calc(100% - 32px),672px); }
.contact-help>.small-raised { display:inline-flex; align-items:center; gap:8px; text-decoration:none; }
.contact-help>.small-raised svg { width:16px; height:16px; }
.help-stage>ul { list-style:none; padding:0; display:grid; gap:12px; max-width:500px; margin:30px 0; }
.help-stage li a { display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--surface); color:var(--ink); text-decoration:none; padding:14px 18px; border:1.5px solid var(--edge); box-shadow:0 3px 0 var(--edge); border-radius:12px; }
.help-stage li a:hover { background:var(--lilac); }
.help-stage small { margin-top:3px; display:block; font-size:14px; color:var(--muted); }
.help-stage p, .help-stage form { max-width:500px; }
.help-actions { display:flex; align-items:center; gap:10px; margin:24px 0; flex-wrap:wrap; }
