/* Page CSS des pages publiques : uniquement l'intérieur des visuels (layout-v4.md : « page CSS only inside a
   visual »), le logo du client et les hauteurs de panneaux d'un groupe de cartes. */

.site-logo { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.nav__logo { gap: var(--s-2); }

/* la fenêtre de MilsCoC : barre de la fenêtre et vraie capture du menu */
.shot-win { border: 1px solid rgb(255 255 255 / .1); border-radius: 14px; overflow: hidden; background: #0f1115;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8); }
.shot-win__bar { display: flex; align-items: center; gap: var(--s-3); height: 36px; padding: 0 var(--s-4);
  border-bottom: 1px solid rgb(255 255 255 / .08); background: #0c0d11; color: var(--muted); font: 500 13px/1 var(--font-mono); }
.shot-win__dots { display: inline-flex; gap: 6px; }
.shot-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.shot-win__dots i:first-child { background: #f2b640; }
.shot-win img { display: block; width: 100%; height: auto; }

/* héros : le fond de l'effet aux couleurs du menu (obsidienne, or) ; la fenêtre descend jusqu'au pied du cadre et la
   capture la remplit depuis son haut, sans dépasser le cadre */
.hero--centred .hero__window { --ground-bg: #14161c; --ground-surface: #1c1f27; --ground-ink: #ecedef; --ground-accent: #f2b640; }
.hero--centred .hero__window > .ly-piece { bottom: 0; }
.hero--centred .hero__window .shot-win { height: 100%; display: flex; flex-direction: column; border-radius: 14px 14px 0 0; border-bottom: 0; }
.hero--centred .hero__window .shot-win img { flex: 1 1 0; min-height: 0; height: 0; object-fit: cover; object-position: top center; }
@media (max-width: 639px) { .pill__more { display: none; } }
@media (max-width: 379px) { .nav__actions .btn--primary { display: none; } }

/* app-frame : la page Attaque en grand, coupée en bas par un fondu */
.app-shot { position: relative; overflow: hidden; margin-top: var(--s-7); border-radius: 16px; display: flex; flex-direction: column;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.app-shot .shot-win { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.app-shot .shot-win img { flex: 1 1 0; min-height: 0; height: 0; object-fit: cover; object-position: left top; }

/* cartes : un recadrage de la vraie capture dans le panneau, à sa taille ou plus petite (jamais agrandie) ; le fond
   du panneau est celui du menu, au cas où le panneau dépasse la capture */
#attaque .panel { --p-h: 300px; }
#installation .panel { --p-h: 240px; }
.panel.crop { background: #0f1115 !important; background-image: none !important; }
.panel.crop > img { position: absolute; max-width: none; height: auto; width: calc(var(--ciw, 1400) * var(--cs, 1) * 1px);
  left: calc(var(--cx) * var(--cs, 1) * -1px); top: calc(var(--cy) * var(--cs, 1) * -1px); }
.crop--butin  { --cx: 200; --cy: 350; }
.crop--cote   { --cx: 155; --cy: 580; }
.crop--heros  { --cx: 200; --cy: 560; }
.crop--sorts  { --cx: 200; --cy: 675; }
.crop--launcher { --ciw: 785; --cx: 30; --cy: 215; }
.crop--mumu   { --ciw: 940; --cx: 275; --cy: 40; --cs: .66; }
.crop--demarrer { --cx: 250; --cy: 255; }
/* le second écran de l'attaque : des panneaux à leur hauteur, pas étirés jusqu'au pied (l'air avant la bande claire) */
@media (min-width: 1024px) {
  #attaque .group:last-child > .grid:last-child { flex: 0 0 auto; }
  #attaque .group:last-child .panel { --p-h: 380px; }
}
/* tablette et petit écran de bureau : les trois étapes et les trois licences restent côte à côte */
@media (min-width: 720px) and (max-width: 1279px) {
  #installation .grid > .card.span-4, :is(#tarifs, #offres) .plans > .card.span-4 { grid-column: auto / span 4; }
}
/* tablette : les cartes de l'attaque s'étirent jusqu'au pied de chaque écran, comme sur un bureau, et chaque capture
   remplit son panneau (réduite, jamais agrandie) autour de son point d'intérêt (--ox) */
@media (min-width: 640px) and (max-width: 1023px) {
  #attaque .group > .grid:last-child { flex: 1 1 auto; align-self: stretch; min-height: 0; }
  #attaque .group:last-child > .grid:last-child { flex: 0 0 auto; }
  #attaque .group:last-child .panel { --p-h: calc(100svh - 560px); }
  #installation .panel { --p-h: calc(100svh - 760px); }
  .panel.crop > img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ox, 30%) var(--oy, 0%); }
  .faq__shot { display: none; }
  .ground-inverse#ameliorations .frame--split { --ratio: 50%; }
}
.crop--butin, .crop--heros, .crop--sorts { --ox: 28%; }
.crop--cote { --ox: 23%; }
.crop--launcher { --ox: 24%; }
.crop--mumu { --ox: 67%; }
.crop--demarrer { --ox: 35%; }
@media (max-width: 639px) {
  #attaque .panel, #attaque .group:last-child .panel { --p-h: 110px; }
  .ground-inverse#ameliorations .frame--split { --ratio: 56%; }
  #ameliorations:not(.ground-inverse) .frame--split { --ratio: 94%; }
  .closing__links .footer__lede { display: none; }
  footer.closing > .wrap { row-gap: var(--s-6); }
  .closing__links { gap: var(--s-4); }
  .closing__links .footer__col h3 { margin-bottom: var(--s-2); }
  #installation .panel { --p-h: 250px; }
  .crop--butin { --cs: .9; --cx: 316; --cy: 365; }
  .crop--cote { --cs: .8; --cx: 255; --cy: 600; }
  .crop--heros { --cs: .9; --cx: 316; --cy: 580; }
  .crop--sorts { --cs: .9; --cx: 316; --cy: 880; }
  .crop--launcher { --cx: 60; --cy: 235; }
  .crop--mumu { --cs: .5; --cx: 250; --cy: 100; }
  .crop--demarrer { --cx: 255; --cy: 270; }
}

/* tarifs : le nom et le badge sur une ligne ; ce que chaque licence comprend, une fois, sous les cartes */
.plan__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.plan__head h3 { margin: 0; }
.pay { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); color: var(--muted); }
.pay p { margin: 0; }
.pay .ic { width: auto; height: 28px; flex: none; }
/* le pied de page sur le fond obsidienne : le bouton principal garde l'or, comme partout */
.footer--statement { --action: var(--p-action); --action-ink: var(--p-action-ink); }

/* questions : le vrai logo de Discord devant le lien */
.faq__discord { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; justify-self: start; width: max-content; font-weight: 500; color: var(--ink); text-decoration: none; }
.faq__discord .ic { width: 40px; height: auto; flex: none; }
.faq__shot { margin-top: var(--s-4); }
.faq__shot .shot-win img { height: 250px; object-fit: cover; object-position: left top; }
@media (max-width: 639px) {
  .faq__shot .shot-win img { height: 220px; }
  #faq .faq > .faq__item { padding: var(--s-6) 0; }
  #faq .faq > .faq__item:first-child { padding-top: 0; }
}
.faq__discord span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
.faq__discord:hover span { background-size: 100% 1px; }

/* split : la page Améliorations, coupée par la droite et le bas du cadre */
.split-shot { position: relative; overflow: hidden; background: #0f1115; }
.frame.split-shot > img { position: absolute; left: 56px; top: 56px; width: 1100px; max-width: none; height: auto;
  border-radius: 12px 0 0 0; box-shadow: 0 20px 60px -20px rgb(0 0 0 / .6); }
@media (max-width: 639px) { .frame.split-shot > img { left: 24px; top: 24px; width: 760px; } }

.facts { display: grid; gap: var(--s-2); }
.facts p { margin: 0; }

/* héros collage : la page Améliorations coupée par le cadre, une ligne du journal posée dessus */
.collage-shot .ly-piece--main { width: 860px; }
.log-card { background: #111318; border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; padding: var(--s-4); display: grid; gap: var(--s-2);
  font-size: 14px; color: var(--ink); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .7); }
.log-card p { margin: 0; }
.log-card b { color: #f2b640; font-weight: 500; }
.log-card__head { font: 500 13px/1 var(--font-mono); color: var(--muted); }
.split-shot--reglages > img { left: 56px; top: 40px; }

#rythme .panel { --p-h: 300px; }
.crop--pauses { --cx: 240; --cy: 140; --ox: 25%; }
.crop--rythme { --cx: 770; --cy: 140; --ox: 75%; }
@media (max-width: 639px) {
  #rythme .panel { --p-h: 110px; }
  .crop--pauses { --cs: .9; --cx: 264; --cy: 150; }
  .crop--rythme { --cs: .9; --cx: 826; --cy: 150; }
}

/* héros split : la fenêtre (launcher ou menu) posée en haut de la colonne, entière */
.launcher-media { align-self: start; }
.launcher-media .shot-win { width: 100%; }
.hero--split .hero__media.launcher-media { background: none; border: 0; overflow: visible; }
.btn--discord svg { margin-right: var(--s-2); }
.form-error { color: #f08a8a; margin: 0; }
.hero .btn-row form { display: contents; }

/* pages légales : du texte simple, sous la barre */
main.legal { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.legal__wrap { max-width: 760px; margin-inline: auto; display: grid; gap: var(--s-5); }
.legal__wrap h1 { font-size: var(--t-h2); }
.legal__item h2 { font-size: var(--t-lead); font-family: var(--font-text); font-weight: 500; letter-spacing: 0; margin: 0 0 var(--s-2); }
.legal__item p { margin: 0; line-height: 1.7; max-width: 64ch; }

/* pied de page : la ligne légale, puis les deux pages légales côte à côte */
.footer__legal-links { display: flex; gap: var(--s-5); }

/* bouton secondaire : sur l'obsidienne, un fond un peu plus clair et un filet, pour qu'il se détache du fond */
html[data-buttons="pill"] .btn--secondary { background: color-mix(in oklab, var(--ink) 10%, var(--bg)); border-color: color-mix(in oklab, var(--ink) 42%, var(--bg)); }
html[data-buttons="pill"] .btn--secondary:hover { background: color-mix(in oklab, var(--ink) 16%, var(--bg)); border-color: color-mix(in oklab, var(--ink) 60%, var(--bg)); }

.section-head > .link { justify-self: start; }

/* tarifs : à partir de 1024px, chaque carte suit les lignes de la grille (sous-grille), prix et boutons alignés */
@media (min-width: 1024px) {
  .plans > .card--plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: var(--s-4); align-content: start; }
}

/* fonctionnalités, Discord : sur un bureau, la capture des Réglages descend plus bas (le même air sous chaque section) */
@media (min-width: 1024px) { #discord .frame--split { --ratio: 108%; } }
