/* La Maison en Jeu — le site de la collection (lamaisonenjeu.com).
   D'après la maquette « La Maison » : nuit bleu-noir, or, ivoire ; boîtes en relief. */

@font-face { font-family: 'Cormorant Garamond'; src: url('/assets/fonts/cormorant-garamond.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/assets/fonts/cormorant-garamond-italique.woff2') format('woff2'); font-style: italic; font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Mulish'; src: url('/assets/fonts/mulish.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }

:root {
  --nuit: #080f1b; --nuit-claire: #111c2b; --encre: #eee7d8; --doux: #acb7c6; --or: #ddb76a; --or-clair: #eddaac;
  --filet: #c2a77338; --bord: #b99a5d66; --taille: clamp(184px, 22vw, 246px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--nuit); }
body { margin: 0; background: var(--nuit); color: var(--encre); font: 15px/1.7 Mulish, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; }
h1, h2, h3, .marque, .titre-boite { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }
[hidden] { display: none !important; }

.enveloppe { max-width: 1140px; margin: auto; padding: 0 max(16px, 6%); }

/* En-tête */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; border-bottom: 1px solid var(--filet); padding-top: env(safe-area-inset-top, 0px); }
.marque { display: flex; gap: 10px; align-items: center; font-size: 25px; letter-spacing: .02em; white-space: nowrap; }
.marque img { width: 40px; height: 40px; object-fit: contain; }
.navigation { display: flex; gap: 26px; color: var(--doux); font-size: 13px; }
.navigation a { padding: 12px 0; }
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--or); }

/* Accueil */
.heros { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 35px; padding: 44px 0 42px; }
.surtitre { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--or); margin: 0 0 18px; }
h1 { font-size: clamp(43px, 5.7vw, 67px); line-height: 1.03; letter-spacing: -.025em; margin: 0 0 23px; }
h1 em { color: var(--or); font-weight: 400; }
.intro { color: var(--doux); max-width: 380px; font-size: 15px; line-height: 1.85; margin: 0; }
.scene-logo { position: relative; display: grid; place-items: center; }
.scene-logo img { width: min(100%, 420px); height: auto; filter: drop-shadow(0 0 40px rgb(221 183 106 / .18)); animation: apparition 2s ease both; }
@keyframes apparition { from { opacity: 0; transform: translateY(8px); } }

.tete-section { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 20px 0 17px; border-bottom: 1px solid var(--filet); }
h2 { font-size: 34px; line-height: 1.1; margin: 0; }
.tete-section p { margin: 0; color: var(--doux); font-size: 13px; }

/* La collection : boîtes en relief */
.collection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; padding: 28px 0 46px; }
.jeu { min-width: 0; text-align: center; }
.scene-boite { height: calc(var(--taille) + 82px); display: flex; align-items: center; justify-content: center; padding-right: 16px; perspective: 1000px; position: relative; }
.scene-boite::after { content: ''; position: absolute; bottom: 19px; left: 10%; right: 1%; height: 22px; background: #02060b; box-shadow: 10px 14px 25px 10px #0007; transform: skewX(-24deg); filter: blur(3px); }
.boite { --papier: #282b40; --tranche: #202d43; position: relative; width: var(--taille); height: var(--taille); flex: none; display: block; color: var(--encre); transform-style: preserve-3d; transform: rotateX(-13deg) rotateY(-24deg); transform-origin: 50% 60%; transition: transform .45s; z-index: 1; }
.boite:hover, .boite:focus-visible { transform: rotateX(-9deg) rotateY(-12deg) translateY(-6px); }
.boite:focus-visible { outline-offset: 12px; }
.face { position: absolute; inset: 0; border: 1px solid #b59c6e80; border-radius: 2px; background: radial-gradient(ellipse at 50% 40%, var(--papier), #111b2d 90%); box-shadow: inset 0 0 0 5px #0b14224d, inset 0 0 0 6px #c9b57b38, inset -2px -2px 4px #0006; overflow: hidden; backface-visibility: hidden; }
.face::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #ffffff02 0 1px, transparent 1px 3px), linear-gradient(130deg, #fff1, transparent 40%); pointer-events: none; z-index: 5; }
.tranche { position: absolute; left: 100%; top: 0; bottom: 0; width: 52px; transform-origin: left center; transform: rotateY(90deg); background: linear-gradient(90deg, var(--tranche) 62%, #080e19 63%, #080e19 68%, var(--tranche) 69%); border: 1px solid #ac966647; border-radius: 0 2px 2px 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 15px 7px; backface-visibility: hidden; box-shadow: inset -2px 0 4px #0007; }
.tranche span { writing-mode: vertical-rl; font: 16px/1.1 'Cormorant Garamond', Georgia, serif; color: #e1cd9d; letter-spacing: .04em; flex: 1; padding: 6px 0; }
.tranche img { width: 25px; height: 30px; object-fit: contain; }
.dessus { position: absolute; left: 0; right: 0; bottom: 100%; height: 52px; transform-origin: bottom center; transform: rotateX(90deg); border: 1px solid #ac966647; border-radius: 2px; background: linear-gradient(0deg, var(--tranche) 62%, #080e19 63%, #080e19 68%, var(--tranche) 69%); backface-visibility: hidden; }
.sceau { position: absolute; left: 50%; top: 6%; height: 55%; width: auto; transform: translateX(-50%); z-index: 3; filter: drop-shadow(0 3px 5px #0006); }
.titre-boite { position: absolute; bottom: 17%; left: 4%; right: 4%; text-align: center; color: #edd9a5; line-height: .95; z-index: 3; text-shadow: 0 2px 3px #0005; }
.titre-boite small { display: block; font-size: calc(var(--taille) * .085); margin-bottom: 3px; }
.titre-boite strong { display: block; font-size: calc(var(--taille) * .133); font-weight: 500; }
.sous-titre-boite { position: absolute; bottom: 10%; left: 5%; right: 5%; font-size: 11px; color: #c9c3d3; z-index: 3; line-height: 1.1; }
.editeur-boite { position: absolute; bottom: 1.5%; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; object-fit: contain; z-index: 3; }
.chauve-souris { position: absolute; width: 27px; height: 14px; background: #b59dc3; opacity: .42; clip-path: polygon(0 0, 20% 18%, 34% 44%, 40% 40%, 43% 19%, 50% 35%, 57% 19%, 60% 40%, 66% 44%, 80% 18%, 100% 0, 92% 67%, 79% 56%, 73% 88%, 59% 75%, 50% 100%, 41% 75%, 27% 88%, 21% 56%, 8% 67%); }
.chauve-souris.a { left: 11%; top: 18%; transform: rotate(-22deg); } .chauve-souris.b { right: 8%; top: 32%; transform: rotate(17deg); width: 20px; } .chauve-souris.c { left: 9%; top: 50%; width: 18px; transform: rotate(18deg); }

.statut { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--or); display: inline-flex; gap: 7px; align-items: center; margin: 6px 0 10px; }
.statut::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.statut.bientot { color: #aab9c6; }
h3 { font-size: 25px; line-height: 1.13; margin: 0 0 12px; }
.description { font-size: 13px; color: var(--doux); line-height: 1.75; margin: 0 auto 14px; max-width: 245px; min-height: 45px; }
.meta { font-size: 12px; color: #d7d3c8; min-height: 19px; margin: 0 0 17px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--bord); border-radius: 3px; background: #b3975e0c; color: var(--or-clair); font: 13px Mulish, sans-serif; cursor: pointer; transition: background .2s; }
.bouton:hover { background: #b3975e23; }
.bouton.plein { background: linear-gradient(#e7c57c, #c9a257); color: #1a1406; border-color: transparent; font-weight: 700; }
.bouton.plein:hover { background: linear-gradient(#f0d290, #d4ad62); }

.apropos { display: grid; grid-template-columns: 1fr 1.3fr; gap: 45px; border-top: 1px solid var(--filet); padding: 34px 0 40px; }
.apropos h2 { font-size: 35px; line-height: 1.06; }
.apropos p { color: var(--doux); font-size: 14px; line-height: 1.9; margin: 0; max-width: 480px; }

/* Pages intérieures */
.page { padding: 42px 0 30px; }
.page-tete { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--filet); }
.page-tete .medaillon { width: 150px; height: auto; filter: drop-shadow(0 6px 10px #0008); }
.page-tete h1 { margin-bottom: 10px; }
.page-tete .accroche { font: italic 22px/1.3 'Cormorant Garamond', Georgia, serif; color: var(--or); margin: 0 0 12px; }
.page-tete .intro { max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.bloc { padding: 34px 0; border-bottom: 1px solid var(--filet); }
.bloc:last-child { border-bottom: 0; }
.bloc h2 { margin-bottom: 18px; }
.texte { max-width: 700px; color: var(--doux); }
.texte p { margin: 0 0 14px; }
.texte strong { color: var(--encre); font-weight: 600; }
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: etape; }
.etapes li { background: var(--nuit-claire); border: 1px solid var(--filet); border-radius: 4px; padding: 18px 18px 16px; counter-increment: etape; color: var(--doux); font-size: 14px; }
.etapes li::before { content: counter(etape, upper-roman) '.'; display: block; font: italic 24px 'Cormorant Garamond', Georgia, serif; color: var(--or); margin-bottom: 4px; }
.etapes li strong { display: block; color: var(--encre); font: 500 20px/1.2 'Cormorant Garamond', Georgia, serif; margin-bottom: 6px; }
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.fiche div { border: 1px solid var(--filet); border-radius: 4px; padding: 14px 16px; }
.fiche dt { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--or); }
.fiche dd { margin: 4px 0 0; font: 500 21px/1.2 'Cormorant Garamond', Georgia, serif; color: var(--encre); }
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.galerie figure { margin: 0; }
.galerie video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; border: 1px solid var(--filet); background: #000; }
.galerie figcaption { font-size: 12px; color: var(--doux); margin-top: 6px; text-align: center; }
.createurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.createurs div { border: 1px solid var(--filet); border-radius: 4px; padding: 18px; }
.createurs strong { display: block; font: 500 24px/1.2 'Cormorant Garamond', Georgia, serif; }
.createurs span { color: var(--doux); font-size: 13px; }
.adresse-mail { font: 500 clamp(24px, 5vw, 34px)/1.2 'Cormorant Garamond', Georgia, serif; color: var(--or); word-break: break-word; }
.legal h2 { font-size: 26px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--doux); }

/* Les prochaines boîtes : une surprise (tout est déjà flouté ou faux dans le code, ceci n'est que l'effet) */
.flou { filter: blur(5px); user-select: none; }
.titre-boite.flou { filter: blur(4px); }
.boite.mystere { --papier: #262a3a; --tranche: #1f2738; }
.boite.mystere .sceau { opacity: .85; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pied de page */
.pied { border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px)); color: #8896aa; font-size: 12px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 18px; }
.pied a:hover { color: var(--or); }

@media (max-width: 830px) {
  :root { --taille: 182px; }
  .collection { gap: 20px; }
  .scene-boite { padding-right: 13px; height: 266px; }
  .titre-boite strong { font-size: 26px; } .titre-boite small { font-size: 18px; }
  .tranche { width: 43px; } .dessus { height: 43px; }
  .navigation { gap: 17px; }
  .heros { gap: 18px; padding-top: 35px; }
  h1 { font-size: 45px; } h3 { font-size: 22px; }
  .description { min-height: 65px; }
}
@media (max-width: 650px) {
  :root { --taille: 232px; }
  .entete { min-height: 70px; flex-wrap: wrap; padding-block: 10px; }
  .navigation { font-size: 12px; gap: 15px; }
  .marque { font-size: 21px; } .marque img { width: 32px; height: 32px; }
  .heros { grid-template-columns: 1fr; padding: 30px 0 12px; gap: 7px; }
  h1 { font-size: 46px; }
  .scene-logo img { width: 240px; }
  .tete-section { align-items: start; flex-direction: column; gap: 10px; }
  .collection { grid-template-columns: 1fr; gap: 24px; padding-top: 10px; }
  .scene-boite { height: 303px; padding-right: 17px; }
  .scene-boite::after { left: 18%; right: 12%; }
  .titre-boite strong { font-size: 31px; } .titre-boite small { font-size: 21px; }
  h3 { font-size: 30px; }
  .description { font-size: 14px; max-width: 300px; min-height: 0; }
  .meta { min-height: 0; }
  .apropos { grid-template-columns: 1fr; gap: 20px; }
  .page-tete { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .page-tete .intro { margin: auto; }
  .actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .boite, .bouton { transition: none; } .scene-logo img { animation: none; } }
