/* Accueil et connexion « luxe immersif » (langage de l'app de Hanna) : la place du Capitole de nuit en plein cadre sous un voile uni,
   texte fin posé dessus, puis le contenu sur l'ivoire, en filets. Photo : Benh Lieu Song, CC BY-SA 3.0 (crédit en pied de page). */
.cover { position: relative; isolation: isolate; margin: calc(-1 * var(--space-xl)) calc(50% - 50vw) var(--space-xl);
  min-height: calc(100svh - 116px); max-height: 940px; display: flex; flex-direction: column; justify-content: flex-end; color: #FFFFFF;
  background: #15110D url("brand/capitole-nuit.jpg") center 58% / cover no-repeat; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(18 14 10 / 60%); }
.cover-in { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-md) 56px; }
.cover .handle { position: absolute; top: 26px; left: max(var(--space-md), calc(50vw - 640px + var(--space-md))); color: rgb(255 255 255 / 86%); margin: 0; }
.cover h1::before { content: ""; display: block; width: 56px; height: 3px; background: var(--accent); margin-bottom: 26px; }
.cover.login h1::before { width: 44px; margin-bottom: 22px; }
.cover h1 { color: #FFFFFF; font-size: clamp(2.8rem, 1.4rem + 4.4vw, 5.4rem); font-weight: 200; line-height: 1.02; letter-spacing: -.03em; margin: 0 0 22px;
  text-shadow: 0 1px 22px rgb(0 0 0 / 28%); }
.cover .lede { color: rgb(255 255 255 / 86%); font-size: 1.08rem; font-weight: 300; max-width: 58ch; margin-bottom: 34px; }
.cover .lede strong { color: #FFFFFF; font-weight: 400; }
.cover .searchbar { max-width: 760px; border-bottom-color: rgb(255 255 255 / 75%); }
.cover .searchbar input { color: #FFFFFF; font-size: 1.3rem; caret-color: #FFFFFF; }
.cover .searchbar input::placeholder { color: rgb(255 255 255 / 66%); }
.cover .searchbar button { background: var(--accent); border: 1px solid var(--accent); color: #FFFFFF; padding: 0 22px; margin-bottom: 6px; }
.cover .searchbar button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }
.cover .suggest { color: var(--foreground); }
.cover .examples { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 0; padding: 0; list-style: none; }
.cover .examples a { color: rgb(255 255 255 / 86%); text-decoration: none; padding-bottom: 4px; box-shadow: inset 0 -1px 0 rgb(255 255 255 / 45%); }
.cover .examples a:hover { color: #FFFFFF; box-shadow: inset 0 -1px 0 var(--orange); }
.cover-foot { border-top: 1px solid rgb(255 255 255 / 22%); }
.cover-foot ul { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-md); list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cover-foot li { padding: 18px 0; color: rgb(255 255 255 / 78%); display: flex; flex-direction: column; gap: 2px; }
.cover-foot li + li { padding-left: 22px; border-left: 1px solid rgb(255 255 255 / 18%); }
.cover-foot .v { font-size: 1.9rem; font-weight: 200; color: #FFFFFF; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cover-foot .client-mark img { height: 24px; width: auto; filter: brightness(0) invert(1); margin-top: 8px; align-self: flex-start; }
@media (max-width: 860px) { .cover { min-height: 0; padding-top: 90px; } .cover-in { padding-bottom: 36px; }
  .cover-foot ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cover-foot li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cover-foot li:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 18%); } }

/* Corps de l'accueil : titres fins sur filet, listes à filets */
.home-body { display: flex; flex-direction: column; gap: 72px; }
.section-head { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); margin-bottom: 4px; }
.section-head h2 { margin: 0; font-size: 1.9rem; font-weight: 300; }
/* signature : le trait rouge posé sur le « O » du logo Toulouse, repris sur le filet de chaque section */
.section-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--accent); }
.section-head a { text-decoration: none; color: var(--foreground); }
.section-head a:hover { color: var(--accent); }
.ask-lead { font-size: 1.08rem; font-weight: 300; color: var(--secondary); max-width: 62ch; margin: 18px 0 8px; }
.qs { list-style: none; margin: 0; padding: 0; }
.qs a { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  color: var(--foreground); font-size: 1.3rem; font-weight: 300; letter-spacing: -.01em; transition: color .25s var(--ease), padding .35s var(--ease); }
.qs a::after { content: ""; flex: none; width: 34px; height: 1px; background: var(--accent); transition: width .35s var(--ease); }
.qs a:hover { color: var(--accent); padding-left: 10px; }
.qs a:hover::after { width: 52px; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; margin-top: 26px; }
.ask-actions .link { text-decoration: none; color: var(--foreground); padding-bottom: 4px; box-shadow: inset 0 -1px 0 var(--line-strong); }
.ask-actions .link:hover { color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }
.duo-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.feed time { color: var(--muted-foreground); }
.feed a { color: var(--foreground); text-decoration: none; font-size: 1.02rem; line-height: 1.4; }
.feed a:hover { color: var(--accent); }
.feed .tag { display: block; margin-bottom: 2px; }
.side-stack { display: flex; flex-direction: column; gap: 52px; }
.side-stack .section-head h2 { font-size: 1.4rem; }
.side-stack form { margin-top: 14px; }
.fonds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.fonds a { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--foreground);
  transition: background .25s var(--ease); }
.fonds a:hover { background: var(--card); box-shadow: inset 0 2px 0 var(--accent); }
.fonds a:hover .n { color: var(--accent); }
.fonds .n { font-size: 2.2rem; font-weight: 200; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fonds strong { font-weight: 400; font-size: .95rem; line-height: 1.35; }
.fonds .d { color: var(--muted-foreground); font-size: 9.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
@media (max-width: 1040px) { .duo-cols { grid-template-columns: minmax(0, 1fr); gap: 56px; } .fonds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .qs a { font-size: 1.1rem; } .feed li { grid-template-columns: minmax(0, 1fr); gap: 4px; } .fonds { grid-template-columns: minmax(0, 1fr); } .home-body { gap: 56px; } }

/* Connexion : la photo plein écran, la feuille ivoire posée dessus */
.cover.login { justify-content: center; margin-bottom: calc(-1 * var(--space-xl)); min-height: calc(100svh - 69px); padding: 56px 0; }
.cover.login .cap { color: rgb(255 255 255 / 86%); }
.cover.login .sheet .cap, .cover.login .sheet label { color: var(--muted-foreground); }
.login-grid { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-md); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.login-grid .points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: rgb(255 255 255 / 86%); font-weight: 300; }
.login-grid .points li { display: flex; gap: 14px; align-items: baseline; }
.login-grid .points li::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--orange); transform: translateY(-4px); }
.login-grid .duo { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.login-grid .duo img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.login-grid .duo .mia { height: 46px; filter: none; }
.login-grid .duo i { width: 1px; height: 26px; background: rgb(255 255 255 / 35%); }
.sheet { border-top: 3px solid var(--accent); background: var(--glass); backdrop-filter: blur(18px); color: var(--foreground); padding: 40px 38px; }
.sheet h2 { font-size: 2rem; font-weight: 300; margin-bottom: 4px; color: var(--foreground); }
.sheet button { width: 100%; margin-top: 8px; }
.sheet a { color: var(--accent); }
@media (max-width: 900px) { .login-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .sheet { padding: 30px 22px; } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 1.1s var(--ease) both; } .rise.d1 { animation-delay: .1s; } .rise.d2 { animation-delay: .2s; } .rise.d3 { animation-delay: .3s; }
  @keyframes rise { from { opacity: .001; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 860px) { .cover.login { padding: 44px 0 0; } .cover.login .sheet { margin: 0 calc(-1 * var(--space-md)); } }

/* Accentuation Toulouse (30/11) */
.cover h1 { font-weight: 600; letter-spacing: -.035em; }
.cover h1 .hl { color: var(--orange); }
.cover h1::before { height: 5px; width: 64px; box-shadow: 64px 0 0 0 var(--orange); }
.cover .lede strong { font-weight: 700; color: var(--orange); }
.cover .searchbar { border-bottom: 2px solid #FFFFFF; }
.cover .searchbar button { font-weight: 700; }
.cover .examples a { font-weight: 600; box-shadow: inset 0 -2px 0 var(--orange); color: #FFFFFF; }
.cover .examples a:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.cover-foot { border-top: 2px solid var(--accent); }
.cover-foot .v { font-weight: 600; color: var(--orange); }
.cover-foot .cap { color: #FFFFFF; }
.section-head { border-bottom: 2px solid var(--foreground); }
.section-head h2 { font-weight: 600; }
.section-head::after { height: 4px; width: 56px; bottom: -2px; box-shadow: 56px 0 0 0 var(--orange); }
.section-head a { color: var(--accent); }
.qs a { font-weight: 500; }
.qs a::after { height: 2px; }
.feed a, .linklist a { font-weight: 500; }
.fonds { border-left: 0; border-top: 2px solid var(--foreground); }
.fonds .n { font-weight: 600; color: var(--foreground); }
.fonds a:hover .n { color: var(--accent); }
.fonds a:hover { box-shadow: inset 0 4px 0 var(--accent); }
.ask-actions .link { font-weight: 700; box-shadow: inset 0 -2px 0 var(--orange); }
.cover.login h1::before { width: 52px; box-shadow: 52px 0 0 0 var(--orange); }
.sheet { border-top: 5px solid var(--accent); }
.sheet h2 { font-weight: 600; }
.login-grid .points li::before { height: 2px; }

/* Photo plus claire (30/11) : voile allégé, lisibilité tenue par l'ombre portée du texte */
.cover::after { background: rgb(18 14 10 / 30%); }
.cover h1, .cover .lede, .cover .handle, .cover .examples, .cover-foot li, .login-grid .points, .login-grid .cap { text-shadow: 0 1px 2px rgb(0 0 0 / 55%), 0 2px 24px rgb(0 0 0 / 45%); }
.cover .lede { font-weight: 400; color: #FFFFFF; }
.cover .searchbar input::placeholder { color: rgb(255 255 255 / 85%); }
.cover-foot { background: rgb(18 14 10 / 35%); }
.cover .lede, .login-grid .points { background: rgb(18 14 10 / 42%); backdrop-filter: blur(8px); padding: 14px 18px; margin-left: -18px; width: fit-content; max-width: 62ch; }
.cover .searchbar { background: rgb(18 14 10 / 38%); backdrop-filter: blur(8px); padding-left: 16px; margin-left: -16px; }
@media (max-width: 860px) { .cover .lede, .login-grid .points, .cover .searchbar { margin-left: 0; } }
