/* TCG Live Cast : feuille de style.
   Deux modes :
   1. par défaut (sans JavaScript ou sans WebGL) : les cartes s'affichent les unes sous les autres ;
   2. html.is-table : le tapis 3D est actif, les cartes sont posées dans la scène. */

@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Text"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/big-shoulders-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Text"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/big-shoulders-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/martian-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #111110;        /* noir du tapis et de l'encre */
  --paper: #ece5d3;      /* carton des cartes, lignes du tapis */
  --paper-deep: #ddd4bd; /* fond des zones d'illustration */
  --table: #9a6b40;      /* le fond sous le tapis (terre battue du stade) ; js/app.js le règle selon la matière choisie */
  --accent: #b1472d;     /* rouge brique du logo : boutons et points forts */
  --gold: #9b773d;       /* doré du logo : détails */
  --gold-light: #c8a15e; /* le même doré, éclairci pour rester lisible en petit sur fond noir */
  /* Le japonais n'a pas de police embarquée : il s'affiche avec la police du système, placée en fin de liste. */
  --jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP";
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, var(--jp), sans-serif;
  --text: "Big Shoulders Text", "Arial Narrow", "Helvetica Neue Condensed", var(--jp), sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, var(--jp), monospace;
  /* Bord chromé des cartes : des reflets clairs et sombres en biais, comme sur du métal poli. */
  --chrome: linear-gradient(128deg, #fdfdfe 0%, #b3b7bd 9%, #f6f7f8 19%, #7b8088 31%, #e9ebed 41%, #9ea3aa 50%, #ffffff 59%, #858a92 70%, #dfe2e5 80%, #6c7179 90%, #eef0f1 100%);
  --card-w: min(86vw, 380px);
  --half-t: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--table); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-weight: 500; font-size: 18px; line-height: 1.3; }
h1, h2, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--ink); color: var(--paper);
  padding: 12px 16px; font-family: var(--mono); font-size: 12px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; box-shadow: 0 0 0 7px var(--ink); }

/* Étiquettes façon ruban imprimé */
.tape { display: inline-block; background: var(--ink); color: var(--paper); font-family: var(--mono); font-weight: 500;
  font-size: 10.5px; line-height: 1; letter-spacing: .09em; text-transform: uppercase; padding: 7px 9px 6px; white-space: nowrap; }
.tape[hidden] { display: none; }
.tape--paper { background: var(--paper); color: var(--ink); }
.tape--action { background: var(--accent); color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: .02em; padding: 13px 16px 11px; border: 2px solid var(--ink); }

/* ---------- En-tête ---------- */
.masthead { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: start; padding: 20px 20px 8px;
  max-width: 460px; margin: 0 auto; }
.brand { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper);
  padding: 9px 13px 9px 11px; transform: rotate(-1.2deg); }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.brand__name img { display: block; height: 32px; width: auto; }
.brand__pitch { grid-column: 1 / -1; justify-self: start; background: var(--paper); color: var(--ink); padding: 7px 11px 6px;
  font-size: 17px; line-height: 1.2; max-width: 290px; transform: rotate(.5deg); }
.offer-btn { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 2px 16px 0;
  background: var(--accent); color: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.offer-btn:hover { box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }
.offer-btn:active { box-shadow: none; transform: translate(3px, 3px); }
/* L'onglet du téléchargement : sous « Voir l'offre », plus discret (papier clair, texte noir), pour laisser la vedette à l'offre. */
.offer-btn.offer-btn--dl { grid-row: 2; justify-self: end; min-height: 44px; padding-inline: 12px; background: var(--paper); color: var(--ink); font-size: 16px; }
.masthead:has(.offer-btn--dl) .brand__pitch { grid-column: 1; grid-row: 2; }
/* Les raccourcis vers les cartes de côté (questions fréquentes, support) : deux étiquettes dans l'en-tête. */
.shortcuts { grid-column: 1; grid-row: 1; justify-self: end; align-self: center; display: flex; gap: 6px; min-width: 0; }   /* écran large : en haut, juste avant « Voir l'offre », au-dessus du tapis et de la carte en main */
.shortcuts[hidden] { display: none; }
.shortcut { display: inline-flex; align-items: center; min-height: 44px; padding: 1px 12px 0; background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: 11px; line-height: 1; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.shortcut:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 400px), (max-height: 340px) { .shortcuts { gap: 4px; } .shortcut { padding: 1px 7px 0; font-size: 10px; letter-spacing: .04em; } }   /* petit téléphone : les deux étiquettes tiennent à côté des boutons */

/* ---------- Cartes ---------- */
.cards { padding: 18px 0 8px; }
.card { position: relative; display: block; width: var(--card-w); height: calc(var(--card-w) * 1.3968);
  font-size: calc(var(--card-w) / 100); margin: 0 auto 26px; }
.card:nth-child(odd) { transform: rotate(-.7deg); }
.card:nth-child(even) { transform: rotate(.9deg); }

.card__front { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 3.6em 3.6em 3.4em; overflow: hidden;
  border: 2.2em solid transparent; border-radius: 4.6em; color: var(--ink);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .17 0 0 0 0 .1 0 0 0 .5 -.17'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E") padding-box, linear-gradient(var(--card-top, var(--paper)), var(--card-bg, var(--paper))) padding-box, var(--chrome) border-box;
  box-shadow: inset 0 0 0 .22em rgba(17, 17, 16, .8), 0 0 0 .1em rgba(17, 17, 16, .5), 0 .5em 0 -.1em rgba(17, 17, 16, .28); }
/* Une couleur par carte, à la place du carton beige : six teintes d'éléments (feu, eau, plante, foudre, esprit, acier),
   plus claires en haut. Le texte reste noir : chaque teinte garde un contraste d'au moins 7:1 avec lui. */
#carte-01 { --card-top: #f8b98a; --card-bg: #ee8748; }
#carte-02 { --card-top: #a5d2f4; --card-bg: #5ba8e4; }
#carte-03 { --card-top: #b4e0a2; --card-bg: #78c064; }
#carte-04 { --card-top: #fae690; --card-bg: #f1cb3e; }
#carte-05 { --card-top: #dcbcf0; --card-bg: #b98be0; }
#carte-06 { --card-top: #d5dee5; --card-bg: #a3b6c4; }
#carte-08 { --card-top: #f9c9d9; --card-bg: #ee8cab; }   /* le téléchargement : rose */
#carte-faq { --card-top: #b4e8e3; --card-bg: #4cc0b9; }      /* les questions fréquentes : turquoise */
#carte-discord { --card-top: #d3d6f8; --card-bg: #8f97ea; }  /* le support : pervenche */
.card__back, .card__shade { display: none; }

.offer__kind, .offer__terms { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .09em; }

.card__art { position: relative; flex: 0 1 auto; aspect-ratio: 4 / 3; min-height: 0; margin: 0 0 auto; border: .32em solid var(--ink);
  background-color: var(--paper-deep); background-image: radial-gradient(rgba(17, 17, 16, .2) .22em, transparent .26em); background-size: 1.9em 1.9em; overflow: hidden; }
.card__art--low { flex: 0 0 32em; }
/* Vidéos des cartes : montrées en entier (jamais rognées), sur fond noir. La carte 06 a une vidéo en bande 3:1. */
.card__art--video { background: var(--ink); }
.card__art--video video { background: var(--ink); }
.card__art--wide { flex: 0 0 auto; aspect-ratio: 3 / 1; margin-bottom: 0; }
.card__art svg, .card__art img, .card__art video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card__art img, .card__art video { object-fit: cover; }
.card__art.card__art--video video { object-fit: contain; }
.card__art svg { padding: 2.2em; overflow: visible; }
.card__art .k { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: miter; }
.card__art .thin { stroke-width: 1.2; }
.card__art .dash { stroke-dasharray: 3 3; }
.card__art .kf { fill: var(--ink); }
.card__art .a { fill: var(--accent); }
.card__art .as { fill: none; stroke: var(--accent); stroke-width: 2.6; }
.card__art .p { fill: none; stroke: var(--paper); stroke-width: 1.6; }
.card__art .pf { fill: var(--paper); }

.card__title { flex: none; margin-top: .44em; font-family: var(--display); font-weight: 800; font-size: 9.6em; line-height: .96; letter-spacing: .004em; text-wrap: balance; }
.card__text { flex: none; margin-top: .55em; font-size: 5.8em; line-height: 1.24; text-wrap: pretty; }
.card__title + .card__text { margin-bottom: auto; }

/* Carte 06 : pour qui */
.card__who { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 1.6em; margin: 2.4em 0 .6em; }
.card__who div { display: grid; grid-template-columns: 31em 1fr; align-items: baseline; gap: 2em; padding-top: 1.4em; border-top: .12em solid rgba(17, 17, 16, .45); }
.card__who dt { font-family: var(--mono); font-size: 2.75em; line-height: 1.25; letter-spacing: .07em; text-transform: uppercase; }
.card__who dd { font-size: 5.2em; line-height: 1.16; }
.card--who .card__title { font-size: 8.4em; }
/* « Créateurs de contenu » chapeaute la liste : un intertitre, une phrase, puis le détail par profil. */
.who__group { flex: none; margin: 1em 0 0; padding-top: .6em; border-top: .2em solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 6.2em; line-height: 1; letter-spacing: .008em; }
.who__lead { flex: none; margin-top: .35em; font-size: 4.9em; line-height: 1.16; }
.card--who .card__who { gap: 1.1em; margin: 1.5em 0 .4em; }
.card--who .card__who div { grid-template-columns: 26em 1fr; padding-top: 1.1em; }
.card--who .card__who dd { font-size: 4.6em; }

/* Carte 07 : l'offre, tirée en négatif */
.card--offer .card__front { color: var(--paper);
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--chrome) border-box; }   /* un tour noir uni, sans hachures */
.card--offer .card__front::before { content: ""; position: absolute; inset: 1.5em; border-radius: 1.3em; z-index: 0; pointer-events: none;
  /* un dégradé à la place du noir uni : une lueur dorée en haut, du graphite qui descend vers le noir (le bouton se détache en bas) */
  background: radial-gradient(90% 46% at 50% -6%, rgba(200, 161, 94, .34), rgba(200, 161, 94, 0) 70%), linear-gradient(172deg, #474b57 0%, #2a2c33 34%, #131316 72%, #0b0b0c 100%); }
.card--offer .card__front > * { position: relative; z-index: 1; }
.card--offer .card__title { margin-top: 3.6em; font-size: 1em; line-height: 0; }
.card--offer .card__title img { display: block; width: 84em; max-width: 100%; height: auto; }
.offer__kind { margin-top: 1em; font-size: 2.9em; color: var(--gold-light); }
.offer__price { display: flex; align-items: baseline; gap: 2.4em; margin-top: 2.2em; padding: 2.6em 0 1.6em; }
.offer__amount { font-family: var(--display); font-weight: 800; font-size: 21em; line-height: .8; letter-spacing: -.005em; color: var(--gold-light); }
.offer__per { font-family: var(--display); font-weight: 800; font-size: 7.4em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
/* L'essai : une étiquette dorée sous le prix. */
.offer__trial { align-self: flex-start; margin-top: .5em; padding: .5em .9em .42em; border: .1em solid var(--gold-light); color: var(--gold-light);
  font-family: var(--mono); font-weight: 500; font-size: 3.5em; line-height: 1; letter-spacing: .09em; text-transform: uppercase; }
.offer__list { margin: auto 0; padding: 2em 0; display: grid; gap: 2em; }
.offer__list li { position: relative; padding-left: 1.35em; font-size: 6em; line-height: 1.12; }
.offer__list li::before { content: ""; position: absolute; left: 0; top: .22em; width: .62em; height: .62em; background: var(--accent); transform: rotate(45deg); }
.offer__buy { display: flex; align-items: center; justify-content: center; min-height: max(2em, 46px); padding-top: .06em;
  background: var(--accent); color: var(--paper); border: .037em solid var(--paper); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 8.6em; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.offer__buy:hover { background: var(--paper); color: var(--ink); }
.offer__terms { margin: 1em 0 0; font-size: 2.6em; line-height: 1.45; letter-spacing: .06em; color: rgba(236, 229, 211, .92); }
/* La carte du téléchargement : la vidéo de l'installation (les trois étapes, sous-titrées), le titre,
   quatre lignes de repères avec leur pictogramme, et le bouton. */
.card--dl .card__title { margin-top: .36em; font-size: 8.2em; }
.dl__steps.sr-only { margin: -1px; padding: 0; border: 0; }   /* la vidéo montre les trois étapes : leur texte reste pour les lecteurs d'écran */
.dl__steps { flex: none; margin-top: 2.2em; padding: 2.1em 3em 2.3em; border: .32em solid var(--ink); background: var(--paper); }
.dl__kicker { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 2.75em; line-height: 1.25; letter-spacing: .07em; text-transform: uppercase; }
.dl__steps ol { margin: 1.6em 0 0; padding: 0; list-style: none; counter-reset: etape; display: grid; gap: 1.3em; }
.dl__steps li { counter-increment: etape; display: grid; grid-template-columns: 1.5em 1fr; gap: .5em; align-items: baseline; font-size: 4.9em; line-height: 1.14; }
.dl__steps li::before { content: counter(etape); font-family: var(--display); font-weight: 800; color: var(--accent); }
.card__who.dl__facts { flex: 1 0 auto; gap: 0; margin: 1.3em 0 1.5em; }
.dl__facts div { grid-template-columns: 5em 1fr; gap: 2.2em; align-items: center; padding: .7em 0; }
.card .card__who.dl__facts dt { position: relative; font-size: 1em; line-height: 0; letter-spacing: 0; }
.fact__icon { display: block; width: 5em; height: 5em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dl__facts dd { font-size: 3.8em; line-height: 1.16; }
.dl__get { flex: none; min-height: max(1.8em, 46px); background: var(--ink); border-color: var(--ink); font-size: 6.8em; }
.dl__get:hover { background: var(--accent); color: var(--paper); }
.dl__sub { flex: none; margin: .3em 0 0; font-family: var(--mono); font-weight: 500; font-size: 2.9em; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.dl__sub a { display: inline-flex; align-items: center; justify-content: center; min-height: max(2.4em, 44px); padding: 0 .6em; color: var(--ink); text-underline-offset: .22em; }
.card--faq .dl__sub a { position: relative; min-height: 0; padding-block: .45em; }   /* la zone de toucher (44 px) ne prend plus de hauteur dans la carte */
.card--faq .dl__sub a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
html:lang(ja) .dl__steps li { font-size: 4.2em; line-height: 1.35; }
html:lang(ja) .card__who.dl__facts dd { font-size: 3.3em; line-height: 1.35; }
html:lang(ja) .offer__buy.dl__get { font-size: 5.8em; letter-spacing: .06em; }
/* Les deux cartes de côté (questions fréquentes, support). Elles reposent à gauche du tapis, hors du deck :
   un grand mot qui se lit même carte posée, puis le détail, lisible une fois la carte en main. */
.card--side .card__title { margin-top: 0; font-size: 1em; line-height: 1; }
.card--faq .card__title { padding-right: 1.3em; font-size: 10.4em; line-height: .92; text-wrap: balance; }   /* (la marge de droite : la place de la croix) */
/* Le logo de Discord, petit, en blanc sur une pastille sombre, à gauche du mot. */
.card--discord .card__title { display: grid; grid-template-columns: auto 1fr; column-gap: 3.2em; align-items: center; }
.side__logo { grid-row: 1 / 3; box-sizing: content-box; display: block; width: 11.5em; height: auto; padding: 3.6em 3em; background: var(--ink); border-radius: 3.6em; }
.card--discord .side__big { align-self: end; }
.card--discord .side__kicker { align-self: start; }
.side__big { display: block; font-size: 15.5em; line-height: .86; letter-spacing: .004em; }
.side__kicker { display: block; margin-top: .5em; font-family: var(--mono); font-weight: 500; font-size: 2.9em; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; }
.faq { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 1.1em; margin: 1.8em 0 0; }
.faq div { padding-top: 1.05em; border-top: .12em solid rgba(17, 17, 16, .45); }
.faq dt { font-weight: 700; font-size: 4.9em; line-height: 1.1; }
.faq dd { margin-top: .14em; font-size: 4.3em; line-height: 1.16; }
.card--discord .card__text { margin-top: 1.4em; }
.card__who.side__rows { margin: 2em 0 1.8em; gap: 1.5em; }
.side__rows div { grid-template-columns: 21em 1fr; padding-top: 1.5em; }
.side__rows dd { font-size: 5.2em; }
.side__open, .side__close { display: none; }
html:lang(ja) .card.card--side:not(.card--offer) .card__title { font-size: 1em; line-height: 1; }
html:lang(ja) .card.card--faq:not(.card--offer) .card__title { font-size: 8.4em; line-height: 1.16; }
html:lang(ja) .side__kicker { font-size: 3.2em; letter-spacing: .02em; }
html:lang(ja) .faq dt { font-size: 4.2em; line-height: 1.3; }
html:lang(ja) .faq dd { font-size: 3.7em; line-height: 1.36; }
html:lang(ja) .card__who.side__rows dd { font-size: 4em; }
/* .todo : marque dans le HTML les deux textes encore à remplir (prix, conditions). Plus de pointillés à l'écran. */

/* ---------- Pied ---------- */
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 12px 28px; }
/* Le copyright et la mention d'indépendance : une ligne discrète, sous les liens. */
.legal__note { flex: 0 0 100%; margin: 4px 0 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: var(--paper); }
.legal__note span { display: inline-block; padding: 2px 8px; background: var(--ink); }   /* fond sombre, comme les liens : lisible sur le sol */
html.is-table .legal__note span { padding: 0; background: none; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--paper);
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 24px no-repeat; }
.legal a:hover { color: var(--gold-light); }
/* Le bouton jour / nuit : même allure que les liens du pied de page, avec une petite lune (ou un soleil, de nuit). */
.ambiance { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 8px; border: 0; cursor: pointer; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--paper); background: linear-gradient(var(--ink), var(--ink)) center / 100% 24px no-repeat; }
.ambiance[hidden] { display: none; }
/* Les liens du pied de page (mentions, CGV, contact, résiliation). Sur téléphone, une fois sur le tapis, ils ne tiennent pas sur une
   ligne : ils se rangent derrière le bouton « Infos », qui les déplie juste au-dessus. Partout ailleurs, ils restent visibles. */
.legal__links { display: contents; }
.legal__toggle { display: none; align-items: center; min-height: 44px; padding: 0 8px; border: 0; cursor: pointer; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--paper); background: linear-gradient(var(--ink), var(--ink)) center / 100% 24px no-repeat; }
.legal__toggle::after { content: ""; width: 0; height: 0; margin-left: 7px; border: 4px solid transparent; border-bottom-color: var(--gold-light); border-top-width: 0; }
.legal__toggle:hover { color: var(--gold-light); }
@media (max-width: 1100px), (max-height: 620px) {
  html.is-table .legal__toggle:not([hidden]) { display: inline-flex; }
  html.is-table .legal__links { display: none; position: absolute; z-index: 2; right: 0; bottom: 40px; flex-direction: column; align-items: stretch;
    width: max-content; max-width: calc(100vw - 16px); padding: 4px 0; background: var(--ink); border: 1px solid rgba(236, 229, 211, .55); }
  html.is-table .legal.is-open .legal__links { display: flex; }
  html.is-table .legal__links a { background: none; padding: 0 18px; font-size: 11px; }
  html.is-table .legal.is-open .legal__toggle::after { transform: rotate(180deg); }
}
@media (max-width: 620px) { html.is-table .legal__links { right: auto; left: 50%; transform: translateX(-50%); } }   /* téléphone : le pied de page est centré, le menu aussi */
.ambiance::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-light); box-shadow: inset -3px -2px 0 var(--ink); }
html.is-night .ambiance::before { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold-light); }
.ambiance:hover { color: var(--gold-light); }
html.is-intro .ambiance { pointer-events: none; opacity: .55; }

/* Choix de la langue : un menu qui s'ouvre vers le haut, fait de simples liens */
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; cursor: pointer; list-style: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper);
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 24px no-repeat; -webkit-user-select: none; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; margin-left: 7px; border: 4px solid transparent; border-bottom: 5px solid var(--gold-light); border-top-width: 0; }
.lang[open] summary::after { transform: rotate(180deg); }
.lang summary:hover { color: var(--gold-light); }
.lang ul { position: absolute; z-index: 6; left: 0; bottom: calc(100% - 6px); display: grid; grid-template-columns: repeat(2, max-content);
  padding: 6px; background: var(--ink); border: 2px solid var(--paper); box-shadow: 3px 3px 0 var(--ink); touch-action: manipulation; }
.lang li a { display: flex; align-items: center; min-height: 44px; padding: 0 16px 0 12px; font-family: var(--text); font-size: 17px; font-weight: 500;
  letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--paper); background: none; }
.lang li a:hover { background: rgba(236, 229, 211, .14); color: var(--paper); }
.lang li a[aria-current] { color: var(--gold-light); }
.lang li a[aria-current]::before { content: ""; width: 7px; height: 7px; margin-right: 8px; background: var(--gold-light); transform: rotate(45deg); }

/* Japonais : pas de capitales ni de caractères étroits, donc des corps et des interlignes adaptés */
html:lang(ja) .card:not(.card--offer) .card__title { font-size: 7.5em; line-height: 1.2; letter-spacing: 0; word-break: auto-phrase; line-break: strict; }
html:lang(ja) .card__text { font-size: 4.75em; line-height: 1.55; word-break: auto-phrase; line-break: strict; }
html:lang(ja) .card__type { font-size: 3.4em; letter-spacing: .04em; }
html:lang(ja) .card__who dt { font-size: 3.1em; letter-spacing: .02em; }
html:lang(ja) .card__who dd { font-size: 4.3em; line-height: 1.4; }
html:lang(ja) .card--who .card__title { font-size: 7em; }
html:lang(ja) .who__group { font-size: 5.2em; line-height: 1.25; }
html:lang(ja) .who__lead { font-size: 4.1em; line-height: 1.4; }
html:lang(ja) .card.card--who .card__who dd { font-size: 3.9em; }
html:lang(ja) .offer__trial { font-size: 3.6em; letter-spacing: .03em; }
html:lang(ja) .offer__kind { font-size: 3.2em; letter-spacing: .04em; }
html:lang(ja) .offer__amount { font-size: 15em; line-height: 1; }
html:lang(ja) .offer__per { font-size: 6.4em; }
html:lang(ja) .offer__list li { font-size: 4.9em; line-height: 1.3; }
html:lang(ja) .offer__list li::before { top: .34em; }
html:lang(ja) .offer__buy { font-size: 7em; letter-spacing: .06em; }
html:lang(ja) .offer__terms { font-size: 2.9em; letter-spacing: 0; }
html:lang(ja) .brand__pitch { font-size: 14.5px; line-height: 1.45; word-break: auto-phrase; }
html:lang(ja) .offer-btn { font-size: 16px; letter-spacing: .04em; }
html:lang(ja) .tape { letter-spacing: .04em; }
html:lang(ja) .tape--action { font-size: 16px; }

.stage, .controls { display: none; }
html.js-pending .cards, html.js-pending .masthead, html.js-pending .legal { visibility: hidden; }

/* =====================================================================
   Mode tapis : three.js est actif
   ===================================================================== */
html.is-table, html.is-table body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.is-table body { position: fixed; inset: 0; height: 100dvh; touch-action: none; -webkit-tap-highlight-color: transparent; }

html.is-table .stage { display: block; position: fixed; inset: 0; z-index: 0; }
html.is-table .stage canvas { display: block; width: 100%; height: 100%; }
html.is-table .stage, html.is-table .cards { transition: opacity .28s linear; }
html.is-fading .stage, html.is-fading .cards { opacity: 0; }   /* changement d'ambiance : le décor s'efface un instant */

html.is-table .cards { position: fixed; inset: 0; z-index: 1; padding: 0; pointer-events: none; }
html.is-table .cards > div { position: absolute; left: 0; top: 0; pointer-events: none; }
html.is-table .card { margin: 0; transform-style: preserve-3d; cursor: pointer; will-change: transform; -webkit-user-select: none; user-select: none; }
html.is-table .card--dl { cursor: default; }   /* la dernière carte : plus rien à piocher derrière */
/* Une carte de côté : un bouton invisible la recouvre tant qu'elle est posée (pour l'ouvrir au clavier), une croix la repose une fois en main. */
html.is-table .side__open { display: block; position: absolute; inset: 0; z-index: 4; transform: translateZ(calc(var(--half-t) + .5px)); border: 0; padding: 0; background: none; border-radius: 4.6em; cursor: pointer; }
/* La croix : discrète (un simple signe, sans cadre ni fond), mais sa zone de clic garde 44 px. Un fond léger apparaît au survol et au clavier. */
html.is-table .side__close { display: grid; place-items: center; position: absolute; z-index: 4; top: 1.6em; right: 1.6em; width: max(10em, 44px); height: max(10em, 44px); border: 0; border-radius: 50%; padding: 0;
  background: none; color: var(--ink); opacity: .6; font-family: var(--body); font-weight: 400; font-size: 1em; line-height: 1; cursor: pointer; transition: opacity .15s linear, background-color .15s linear; }
html.is-table .side__close svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
html.is-table .side__close:hover, html.is-table .side__close:focus-visible { opacity: 1; background: rgba(17, 17, 16, .1); }
html.is-table .side__open[hidden], html.is-table .side__close[hidden] { display: none; }
html.is-table .card.is-buried { opacity: 0; pointer-events: none; }
html.is-table .card__front, html.is-table .card__back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
html.is-table .card__front { transform: translateZ(var(--half-t)); box-shadow: inset 0 0 0 .22em rgba(17, 17, 16, .8), 0 0 0 .1em rgba(17, 17, 16, .5); }
html.is-table .card__back { display: block; position: absolute; inset: 0; transform: rotateY(180deg) translateZ(var(--half-t)); border-radius: 4.6em; overflow: hidden;
  border: 2.2em solid transparent; box-shadow: inset 0 0 0 .22em rgba(17, 17, 16, .8), 0 0 0 .1em rgba(17, 17, 16, .5);
  background: url("../img/dos.jpg") center / cover no-repeat padding-box, linear-gradient(#0b0c13, #0b0c13) padding-box, var(--chrome) border-box; }
/* Cartes de langue : posées du côté adverse du tapis, une par langue. Celle de la langue affichée est au poste avancé. */
.langcard { position: absolute; display: block; width: var(--card-w); height: calc(var(--card-w) * 1.3968); font-size: calc(var(--card-w) / 100);
  color: var(--paper); text-decoration: none; transform-style: preserve-3d; cursor: pointer; will-change: transform; -webkit-user-select: none; user-select: none; }
.langcard__face { position: absolute; inset: 0; transform: translateZ(var(--half-t)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 2.2em solid transparent; border-radius: 4.6em; overflow: hidden;
  background: linear-gradient(#15181e, #0d0f14) padding-box, var(--chrome) border-box;
  box-shadow: inset 0 0 0 .22em rgba(17, 17, 16, .8), 0 0 0 .1em rgba(17, 17, 16, .5); }
.langcard__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 5.5em; }
.langcard__flag { flex: none; display: block; width: 54em; height: 36em; outline: .5em solid var(--paper); }
.langcard__flag svg { display: block; width: 100%; height: 100%; }
.langcard__code { margin-top: .12em; font-family: var(--display); font-weight: 800; font-size: 24em; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.langcard__name { margin-top: .4em; padding: 0 .4em; font-family: var(--text); font-weight: 700; font-size: 10em; line-height: 1.1; text-align: center; }
/* Zone de toucher élargie : sur téléphone, une carte posée à plat fait moins de 44 px de haut. */
.langcard::after { content: ""; position: absolute; inset: -4em -15em; transform: translateZ(var(--half-t)); }
.langcard[aria-current] .langcard__code { color: var(--gold-light); }
.langcard[aria-current] .langcard__face { background: linear-gradient(#1d2129, #12151b) padding-box, var(--chrome) border-box; }
.langcard:hover .langcard__code, .langcard:focus-visible .langcard__code { color: var(--gold-light); }
/* Écran en hauteur : le tapis est tourné d'un quart de tour, le texte des cartes de langue est redressé pour rester lisible. */
html.is-portrait .langcard__in { inset: auto; left: 50%; top: 50%; width: 135.3em; height: 95.6em; padding-top: 0; justify-content: center; transform: translate(-50%, -50%) rotate(-90deg); }
html.is-portrait .langcard__flag { width: 63em; height: 42em; }
html.is-portrait .langcard__code { font-size: 25em; }
html.is-portrait .langcard__name { font-size: 11em; }
html.is-table .lang { display: none; }   /* le menu des langues est remplacé par les cartes de langue */

html.is-table .card__shade { display: block; position: absolute !important; inset: 0; z-index: 3 !important; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; }

html.is-table .masthead { position: fixed; z-index: 3; top: 0; left: 0; right: 0; max-width: none; margin: 0; pointer-events: none;
  padding: max(14px, env(safe-area-inset-top)) 16px 0; }
html.is-table .masthead > * { pointer-events: auto; }
html.is-table .brand__pitch { transition: opacity .25s linear, visibility .25s; }
/* Les raccourcis n'existent que lorsqu'une carte du deck est en main : elle cache alors les cartes de côté posées sur le tapis. */
html.is-table .shortcuts { opacity: 0; visibility: hidden; transition: opacity .25s linear, visibility .25s; }
html.is-table.is-reading:not(.is-side):not(.is-flight) .shortcuts { opacity: 1; visibility: visible; }
html.is-portrait.is-table.is-reading .brand__pitch { opacity: 0; visibility: hidden; }   /* écran en hauteur : l'accroche leur laisse la place */
html.is-portrait.is-table .shortcuts { grid-column: 1; grid-row: 2; justify-self: start; align-self: start; }   /* écran en hauteur : à gauche, à la place de l'accroche */
@media (max-width: 619px) { html.is-portrait.is-table .masthead { padding-top: 12px; row-gap: 6px; } }   /* téléphone : en-tête resserré, pour laisser le plus de hauteur possible à la carte en main */

html.is-table .controls { display: block; }
html.is-table:not(.is-flight) .brand { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }   /* caché d'un coup, révélé en douceur */
html.is-flight .brand__pitch { transition: none; }
html.is-flight .brand, html.is-flight .brand__pitch { opacity: 0; pointer-events: none; }   /* le logo n'apparaît qu'une fois posé sur le tapis */
html.is-flight .brand { transform: translateY(-10px); }
/* « Voir l'offre » aussi : absent pendant le survol (ni cliquable, ni atteignable au clavier), il se pose avec le logo. */
html.is-table:not(.is-flight) .offer-btn { transition: opacity .6s ease .1s, visibility 0s; }
html.is-flight .offer-btn { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-intro .controls { visibility: hidden; }   /* pendant l'arrivée dans le stade, rien à cliquer sur le tapis */
.zone-btn { position: fixed; z-index: 2; left: -200px; top: -200px; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: inherit; font: inherit; border-radius: 4px; }
.zone-btn[hidden] { display: none; }
.zone-btn:focus-visible { outline-offset: -2px; }
.counter, .hint { position: fixed; z-index: 2; left: -200px; top: -200px; margin: 0; pointer-events: none; }
.counter { transform: rotate(-1deg); }
.hint { transform: translate(-50%, -100%) rotate(1.4deg); transition: opacity .2s linear; }
.hint::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 12px; background: var(--paper); }
html.has-drawn .hint { opacity: 0; }

html.is-table .legal { position: fixed; z-index: 3; right: 8px; bottom: max(0px, env(safe-area-inset-bottom)); padding: 0; gap: 2px; }
/* Sur le tapis : la ligne se pose juste au-dessus des liens, dans le même coin, sur fond sombre pour rester lisible sur le sol.
   Elle n'est donc jamais sous la carte en main. Petit écran : sans « Tous droits réservés », pour tenir sur une ligne. */
html.is-table .legal__note { position: fixed; z-index: 0; right: 8px; bottom: calc(max(0px, env(safe-area-inset-bottom)) + 35px); flex: none; margin: 0; padding: 1px 8px 2px; white-space: nowrap;
  font-size: 11px; line-height: 1.3; opacity: 1; background: var(--ink); pointer-events: none; }
@media (min-width: 900px) { html.is-table .legal__note { right: 18px; bottom: 45px; } }
@media (max-height: 620px), (max-width: 620px) { html.is-table .legal__rights { display: none; } html.is-table .legal__note { font-size: 10.5px; } }
@media (max-width: 620px) and (orientation: portrait) { html.is-table .legal__note { left: 50%; right: auto; transform: translateX(-50%); } }   /* téléphone : centrée, comme les liens */
html.is-table .legal__note { transition: opacity .6s ease; }
html.is-flight .legal__note { opacity: 0; transition: none; }   /* comme le logo : seulement une fois posé sur le tapis */

/* Téléphone en portrait : le texte d'accroche laisse la place à la carte lue */
@media (max-height: 620px) {
  html.is-table.is-reading .brand__pitch { opacity: 0; visibility: hidden; }
}
@media (max-width: 620px) {
  .brand__name { font-size: 25px; }
  .brand__name img { height: 27px; }
  .brand { padding: 8px 11px 8px 9px; }
  .offer-btn { font-size: 18px; min-height: 44px; padding-inline: 13px; }
  html.is-table.is-reading .brand__pitch { opacity: 0; visibility: hidden; }
  html.is-table .brand__pitch { font-size: 16px; max-width: 240px; }
  html.is-table .legal { left: 0; right: 0; justify-content: center; }
  .legal a, .lang summary, .ambiance, .legal__toggle { font-size: 10px; padding: 0 6px; }
}
@media (min-width: 900px) {
  html.is-table .masthead { padding: 22px 28px 0; }
  .brand__name { font-size: 38px; }
  .brand__name img { height: 42px; }
  .brand { padding: 11px 17px 11px 14px; }
  html.is-table .brand__pitch { font-size: 19px; max-width: 320px; }
  .offer-btn { font-size: 23px; min-height: 52px; padding-inline: 22px; }
  .tape:not(.tape--action) { font-size: 11.5px; }
  html.is-table .legal { right: 18px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- Écran d'ouverture ----------
   Avant l'arrivée sur le stade : une scène sombre aux couleurs du logo (encre, doré, rouge brique), un sol quadrillé
   qui file vers l'horizon, de la poussière en suspension, et le logo qui apparaît. Il couvre le chargement.
   Tout bouge par transform et opacity seulement : l'animation reste fluide pendant que la scène 3D se prépare derrière. */
.ouverture { display: none; }
html.is-ouverture .ouverture { display: block; position: fixed; inset: 0; z-index: 60; overflow: hidden; contain: strict;
  background: radial-gradient(130% 70% at 50% 62%, #3b2416 0%, #1d1512 34%, #0c0c0e 70%) #0c0c0e;
  transition: opacity .7s ease; }
html.is-ouverture-out .ouverture { opacity: 0; pointer-events: none; }
.ouverture__dust { position: absolute; inset: 0 0 -180px; opacity: .8;
  background-image: radial-gradient(circle at 22px 31px, rgba(255, 240, 214, .95) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 118px 84px, rgba(255, 240, 214, .7) 0 .9px, transparent 1.6px),
    radial-gradient(circle at 71px 142px, rgba(200, 161, 94, .9) 0 1.3px, transparent 2px),
    radial-gradient(circle at 160px 12px, rgba(255, 240, 214, .5) 0 .8px, transparent 1.4px);
  background-size: 180px 180px; animation: ouverture-poussiere 11s linear infinite; }
.ouverture__dust--far { inset: 0 0 -110px; opacity: .5; background-size: 110px 110px; animation-duration: 19s; animation-name: ouverture-poussiere-loin; }
.ouverture__glow { position: absolute; left: 50%; top: 62%; width: min(150vw, 1500px); height: 34vh; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 222, 160, .95) 0%, rgba(214, 142, 70, .5) 22%, rgba(177, 71, 45, .22) 46%, transparent 72%);
  animation: ouverture-lueur 2.6s ease-in-out infinite alternate; }
.ouverture__floor { position: absolute; left: -60%; right: -60%; top: 62%; bottom: 0; perspective: 42vh; perspective-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
.ouverture__grid { position: absolute; left: 0; right: 0; top: -56px; height: 420%; transform-origin: 50% 56px; transform: rotateX(78deg);
  background-image: linear-gradient(rgba(214, 176, 108, .75) 0 2px, transparent 2px), linear-gradient(90deg, rgba(214, 176, 108, .6) 0 2px, transparent 2px);
  background-size: 56px 56px; animation: ouverture-sol 1.3s linear infinite; }
.ouverture__mark { position: absolute; left: 50%; top: 40%; width: min(64vw, 540px); transform: translate(-50%, -50%);
  animation: ouverture-logo 1.1s cubic-bezier(.2, .7, .2, 1) both; transition: transform .7s ease; }
.ouverture__mark img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 26px rgba(255, 214, 150, .28)); }
html.is-ouverture-out .ouverture__mark { transform: translate(-50%, -50%) scale(1.08); }
.ouverture__bar { display: block; position: relative; overflow: hidden; width: 46%; height: 2px; margin: 26px auto 0; background: rgba(200, 161, 94, .22); }
.ouverture__bar i { position: absolute; inset: 0; background: var(--gold-light); transform: translateX(-100%); animation: ouverture-barre 1.3s ease-in-out infinite; }
@keyframes ouverture-poussiere { to { transform: translateY(-180px); } }
@keyframes ouverture-poussiere-loin { to { transform: translateY(-110px); } }
@keyframes ouverture-lueur { from { opacity: .72; } to { opacity: 1; } }
@keyframes ouverture-sol { from { transform: rotateX(78deg) translateY(0); } to { transform: rotateX(78deg) translateY(56px); } }
@keyframes ouverture-logo { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes ouverture-barre { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Lien 特定商取引法に基づく表記 (page légale japonaise) : seulement sur la version japonaise */
html:not(:lang(ja)) .lien-jp { display: none !important; }

/* Lien vers les CGV sous « Je m'abonne » */
.offer__cgv { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.offer__cgv:hover { color: var(--gold-light); }
