/* Énigmaison — vitrine statique, ambiance « soirée entre amis à la chandelle ».
   Polices OFL servies localement : Fraunces (titres), Nunito (texte). Aucune ressource externe. */
@font-face { font-family: "Fraunces"; src: url("polices/Fraunces.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("polices/Nunito.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Lora"; src: url("polices/Lora-Italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --creme: #FBF4E8; --parchemin: #F4E4C9; --sable: #EAD5B2;
  --terracotta: #B85C38; --bordeaux: #9B3F45; --bordeaux-fonce: #7E2F37; --ambre: #C08A3E; --miel: #E0B565;
  --brun: #3B2721; --brun-doux: #6E5548; --nuit: #2B1B16; --ligne: #E6D2B0;
  --rayon: 18px; --rayon-petit: 12px;
  --ombre: 0 14px 34px rgba(74, 42, 24, .16); --ombre-douce: 0 6px 18px rgba(74, 42, 24, .12);
}
* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body { margin: 0; font-family: "Nunito", "Trebuchet MS", sans-serif; color: var(--brun); background: var(--creme); line-height: 1.65; }
a { color: var(--bordeaux); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 0; line-height: 1.12; margin: 0 0 .5em; color: var(--brun); font-weight: 650; }
h1 { font-size: 3rem; letter-spacing: -.01em; } h2 { font-size: 2.05rem; } h3 { font-size: 1.28rem; }
em.accent, .accent { font-family: "Lora", Georgia, serif; font-style: italic; color: var(--bordeaux); font-weight: 500; }
.conteneur { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.avis-proto { background: var(--nuit); color: #F3E3C7; font-size: .8rem; text-align: center; padding: 7px 16px; }
.avis-proto b { color: var(--miel); letter-spacing: .06em; }
header.site { background: rgba(251, 244, 232, .94); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
header.site .conteneur { display: flex; align-items: center; height: 76px; gap: 8px; }
header.site .logo { flex: 0 0 auto; margin-right: 4px; }
header.site .logo img { height: 46px; }
nav#nav-principale { display: flex; align-items: center; gap: 2px; }
nav#nav-principale > a,
nav#nav-principale .menu-jeux-titre { margin: 0; padding: 10px 14px; text-decoration: none; color: var(--brun); font-size: .95rem; font-weight: 700; border-radius: 8px; }
nav#nav-principale > a:hover,
nav#nav-principale > a[aria-current],
nav#nav-principale .menu-jeux-titre:hover,
.menu-jeux.actif .menu-jeux-titre { color: var(--terracotta); }
a.bouton.commander { margin-left: auto; flex: 0 0 auto; padding: 10px 20px; font-size: .92rem; }

/* Accessibilité clavier */
a:focus-visible, button:focus-visible, summary:focus-visible, .nav-bascule-btn:focus-visible,
.nav-bascule:focus-visible + .nav-bascule-btn { outline: 2px solid var(--terracotta); outline-offset: 3px; }
#commander, #jeux, #comment, #vedette, #etapes, #taxes { scroll-margin-top: 96px; }
.texte-cache, .nav-bascule { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.chapeau-page { font-size: 1.15rem; color: var(--brun-doux); max-width: 36em; }

/* Hamburger : masqué sur grand écran (la navigation reste visible, case hors du clavier) */
.nav-bascule-btn { display: none; }
@media (min-width: 961px) { .nav-bascule { display: none; } }
.texte.intro { padding-bottom: 12px; }


/* Menu Jeux (déroulant au survol et au focus ; liste ouverte dans le menu mobile) */
.menu-jeux { position: relative; }
.menu-jeux-titre { display: inline-flex; align-items: center; }
.menu-jeux-titre::after { content: ""; display: inline-block; margin-left: 7px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.menu-jeux .sous-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; padding: 12px 0 8px; z-index: 30; }
.menu-jeux .sous-menu::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; bottom: 0; background: #FFFBF4; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); box-shadow: var(--ombre); }
.menu-jeux .sous-menu a { position: relative; display: block; margin: 0; padding: 10px 18px; text-decoration: none; color: var(--brun); font-size: .95rem; font-weight: 700; white-space: nowrap; }
.menu-jeux .sous-menu a:hover, .menu-jeux .sous-menu a[aria-current] { color: var(--terracotta); background: var(--parchemin); }
.menu-jeux .sous-menu a:first-of-type { border-radius: var(--rayon-petit) var(--rayon-petit) 0 0; }
.menu-jeux .sous-menu a:last-of-type { border-radius: 0 0 var(--rayon-petit) var(--rayon-petit); }
.menu-jeux:hover .sous-menu, .menu-jeux:focus-within .sous-menu { display: block; }

/* Bouton hamburger (case à cocher : fonctionne sans JavaScript) */
.nav-bascule-icone { display: block; width: 22px; height: 16px; position: relative; }
.nav-bascule-icone span { position: absolute; left: 0; right: 0; height: 2px; background: var(--brun); border-radius: 1px; transition: transform .2s, top .2s, opacity .2s; }
.nav-bascule-icone span:nth-child(1) { top: 0; }
.nav-bascule-icone span:nth-child(2) { top: 7px; }
.nav-bascule-icone span:nth-child(3) { top: 14px; }
.nav-bascule:checked + .nav-bascule-btn .nav-bascule-icone span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-bascule:checked + .nav-bascule-btn .nav-bascule-icone span:nth-child(2) { opacity: 0; }
.nav-bascule:checked + .nav-bascule-btn .nav-bascule-icone span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Héros : illustration à la chandelle, voile crème à gauche pour le texte */
.heros { position: relative; overflow: hidden; background: var(--nuit) url("img/ambiance-heros.webp") center right / cover no-repeat; }
.heros::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,244,232,.97) 0%, rgba(251,244,232,.93) 38%, rgba(251,244,232,.45) 62%, rgba(251,244,232,0) 80%); }
.heros .conteneur { position: relative; padding-top: 92px; padding-bottom: 96px; }
.heros .texte-heros { max-width: 560px; }
.heros p.chapeau { font-size: 1.2rem; color: var(--brun-doux); max-width: 30em; }
.heros .petit { font-size: .82rem; color: var(--brun-doux); margin-top: 18px; }
.surtitre { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; }
.surtitre::before { content: ""; width: 22px; height: 2px; background: var(--ambre); border-radius: 2px; }

.bouton { display: inline-block; background: var(--bordeaux); color: #FFF8EE; text-decoration: none; font-weight: 800; font-size: 1rem; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--bordeaux); box-shadow: 0 6px 16px rgba(155, 63, 69, .25); transition: transform .15s, background .15s; }
.bouton:hover { background: var(--bordeaux-fonce); transform: translateY(-1px); }
.bouton.secondaire { background: transparent; color: var(--bordeaux); box-shadow: none; }
.bouton.secondaire:hover { background: rgba(155, 63, 69, .08); }
.placeholder-note { display: block; margin-top: 10px; font-weight: 700; font-size: .76rem; color: var(--bordeaux-fonce); background: #FBE9E2; border: 1px dashed var(--bordeaux); border-radius: var(--rayon-petit); padding: 6px 11px; max-width: 30em; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-top: 28px; }

section.bloc { padding: 80px 0; }
section.bloc.parchemin { background: var(--parchemin); }
section.bloc.nuit { background: radial-gradient(ellipse at 20% 0%, #5A3524 0%, var(--nuit) 60%); color: #F3E3C7; }
section.bloc.nuit h2, section.bloc.nuit h3 { color: #FFF4E2; }
.entete-section { max-width: 640px; margin-bottom: 40px; }
.entete-section p { color: var(--brun-doux); font-size: 1.08rem; margin: 0; }

/* Cartes des jeux */
.cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 740px; }
.carte { background: #FFFBF4; border-radius: var(--rayon); box-shadow: var(--ombre-douce); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ligne); transition: transform .2s, box-shadow .2s; }
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.carte .apercu { background: radial-gradient(circle at 50% 30%, #FFF3DA 0%, var(--sable) 75%); padding: 26px 26px 0; height: 240px; overflow: hidden; }
.carte .apercu img { width: 70%; margin: 0 auto; border-radius: 6px 6px 0 0; box-shadow: 0 10px 24px rgba(74, 42, 24, .22); transform: rotate(-2deg); }
.carte:nth-child(2) .apercu img { transform: rotate(2deg); }
.carte .corps { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.carte .accroche { font-family: "Lora", Georgia, serif; font-style: italic; color: var(--bordeaux); margin: 0 0 10px; font-size: 1rem; }
.carte .corps p.desc { flex: 1; font-size: .96rem; margin: 0 0 8px; }
.fiche { font-size: .84rem; color: var(--brun-doux); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.fiche span { background: var(--parchemin); border-radius: 999px; padding: 2px 10px; }
.prix { font-size: 1.55rem; font-weight: 900; color: var(--brun); }
.prix small { font-size: .78rem; font-weight: 600; color: var(--brun-doux); }
.ligne-prix { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ligne-prix .bouton { padding: 10px 18px; font-size: .9rem; }

/* Comment ça marche : 3 étapes illustrées */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.etape { background: #FFFBF4; border-radius: var(--rayon); padding: 26px 26px 28px; box-shadow: var(--ombre-douce); position: relative; }
.etape img { height: 110px; margin: 0 auto 10px; }
.etape .numero { position: absolute; top: 18px; left: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta); color: #FFF8EE; font: 800 1.05rem "Nunito", sans-serif; display: grid; place-items: center; }
.etape p { font-size: .96rem; margin: .3em 0 0; color: var(--brun-doux); }

/* Occasions */
.occasions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.occasion { border-radius: var(--rayon); overflow: hidden; background: #3A2620; color: #F7E9D2; box-shadow: var(--ombre); }
.occasion img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.occasion .corps { padding: 20px 22px 24px; }
.occasion h3 { color: #FFF4E2; margin-bottom: .3em; }
.occasion p { margin: 0; font-size: .95rem; color: #EBD8BC; }
.occasion .jeu { display: inline-block; margin-top: 12px; font-size: .82rem; font-weight: 800; color: var(--miel); text-decoration: none; }
.mention-illus { font-size: .78rem; color: #CDB79A; margin-top: 18px; }

/* Engagements */
.garanties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.garanties div { background: rgba(255, 244, 226, .06); border: 1px solid rgba(224, 181, 101, .35); border-radius: var(--rayon); padding: 22px 24px; }
.garanties p { font-size: .95rem; margin: .3em 0 0; color: #EBD8BC; }
.garanties a { color: var(--miel); }

/* Appel final */
.appel { text-align: center; }
.appel p { color: var(--brun-doux); font-size: 1.1rem; max-width: 34em; margin: 0 auto 8px; }

/* Fiche produit */
.produit { background: linear-gradient(180deg, var(--parchemin) 0%, var(--creme) 100%); }
.produit .conteneur { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 56px; padding-bottom: 40px; }
.produit .images img { border-radius: var(--rayon-petit); box-shadow: var(--ombre); margin-bottom: 18px; background: #fff; }
.produit .legende { font-size: .78rem; color: var(--brun-doux); margin: -8px 0 22px; }
.produit p.chapeau { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 1.15rem; color: var(--bordeaux); }
table.infos { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; margin: 20px 0; background: #FFFBF4; border-radius: var(--rayon-petit); overflow: hidden; border: 1px solid var(--ligne); }
table.infos th, table.infos td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
table.infos tr:last-child th, table.infos tr:last-child td { border-bottom: 0; }
table.infos th { width: 34%; color: var(--brun-doux); font-weight: 800; }
.details-produit { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; }
ul.inclus { padding-left: 0; list-style: none; }
ul.inclus li { margin-bottom: 8px; padding-left: 28px; position: relative; }
ul.inclus li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 7px; height: 13px; border: solid var(--terracotta); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.note-petite { font-size: .86rem; color: var(--brun-doux); }

/* Pages de texte */
.texte { max-width: 780px; padding: 56px 24px 80px; margin: 0 auto; }
.texte h1 { font-size: 2.4rem; }
.texte h2 { font-size: 1.45rem; margin-top: 1.7em; }
.texte .maj { font-size: .84rem; color: var(--brun-doux); }
details { background: #FFFBF4; border: 1px solid var(--ligne); border-radius: var(--rayon-petit); padding: 14px 20px; margin-bottom: 12px; }
details[open] { box-shadow: var(--ombre-douce); }
summary { cursor: pointer; font-weight: 800; }
details p { margin: .7em 0 .2em; }
.encadre { border: 1px solid var(--ligne); background: var(--parchemin); border-radius: var(--rayon); padding: 18px 22px; margin: 18px 0; }
.encadre h3 { margin-top: 0; }

footer { background: var(--nuit); color: #E2CFB2; font-size: .88rem; }
footer .conteneur { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
footer a { color: #FFF4E2; text-decoration: none; display: block; margin-bottom: 7px; }
footer a:hover { color: var(--miel); }
footer b { color: var(--miel); }
footer img { height: 42px; margin-bottom: 12px; }
footer .bas { border-top: 1px solid #4A3329; text-align: center; padding: 16px; font-size: .78rem; color: #B9A184; }

@media (max-width: 860px) {
  h1 { font-size: 2.15rem; } h2 { font-size: 1.7rem; }
  .produit .conteneur, .details-produit, footer .conteneur { grid-template-columns: 1fr; gap: 28px; }
  .cartes, .garanties, .etapes, .occasions { grid-template-columns: 1fr; }
  .heros { background-position: 70% center; }
  .heros::before { background: linear-gradient(180deg, rgba(251,244,232,.95) 0%, rgba(251,244,232,.9) 55%, rgba(251,244,232,.55) 100%); }
  .heros .conteneur { padding-top: 56px; padding-bottom: 64px; }
  section.bloc { padding: 56px 0; }
  header.site .logo img { height: 36px; }
}

/* Menu compact : hamburger + bouton Commander toujours visible */
@media (max-width: 960px) {
  header.site { position: sticky; top: 0; }
  header.site .conteneur { height: 64px; position: relative; }
  .nav-bascule-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; flex: 0 0 auto; }
  .nav-bascule-btn:hover { background: var(--parchemin); }
  a.bouton.commander { margin-left: 4px; padding: 10px 16px; font-size: .86rem; }
  nav#nav-principale { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--creme); border-bottom: 1px solid var(--ligne); box-shadow: var(--ombre); padding: 8px 24px 28px; min-height: calc(100vh - 64px); max-height: calc(100vh - 64px); overflow: auto; }
  .nav-bascule:checked ~ nav#nav-principale { display: flex; }
  nav#nav-principale > a, nav#nav-principale .menu-jeux-titre { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--ligne); }
  .menu-jeux { width: 100%; }
  .menu-jeux-titre { width: 100%; }
  .menu-jeux-titre::after { display: none; }
  .menu-jeux .sous-menu, .menu-jeux:hover .sous-menu, .menu-jeux:focus-within .sous-menu { display: flex; flex-direction: column; position: static; min-width: 0; padding: 0 0 8px 12px; }
  .menu-jeux .sous-menu::before { display: none; }
  .menu-jeux .sous-menu a { white-space: normal; padding: 10px 4px; border-bottom: 1px solid var(--ligne); border-radius: 0; }
  .menu-jeux .sous-menu a:last-of-type { border-bottom: 0; }
  body.menu-ouvert { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-bascule-icone span, .bouton, .carte, .vedette .visuel img { transition: none; }
}

/* Ajustements : contrastes en section sombre, engagements sur fond clair */
section.bloc.nuit .surtitre { color: var(--miel); }
section.bloc.nuit .entete-section p { color: #EBD8BC; }
.garanties.clair div { background: #FFFBF4; border-color: var(--ligne); }
.garanties.clair p { color: var(--brun-doux); }
.garanties.clair a { color: var(--bordeaux); }

/* Jeu vedette (accueil) */
section.bloc.vedette { background: radial-gradient(ellipse at 15% 20%, #FFF3DA 0%, var(--parchemin) 55%, var(--sable) 100%); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.vedette .conteneur { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.vedette .visuel { position: relative; display: block; height: 470px; }
.vedette .visuel img { position: absolute; width: 58%; border-radius: 8px; box-shadow: var(--ombre); background: #fff; transition: transform .25s; }
.vedette .visuel .dessous { right: 4%; top: 46px; transform: rotate(5deg); }
.vedette .visuel .dessus { left: 6%; top: 0; transform: rotate(-4deg); }
.vedette .visuel:hover .dessus { transform: rotate(-6deg) translateY(-6px); }
.vedette .badge { display: inline-block; background: var(--bordeaux); color: #FFF8EE; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.vedette h2 { font-size: 2.6rem; }
.vedette .accroche { font-family: "Lora", Georgia, serif; font-style: italic; color: var(--bordeaux); font-size: 1.15rem; margin: 0 0 16px; }
.vedette .fiche span { background: #FFFBF4; }
.vedette ul.points { list-style: none; padding: 0; margin: 6px 0 22px; }
.vedette ul.points li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--brun-doux); }
.vedette ul.points li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 4px rgba(192, 138, 62, .2); }
.vedette ul.points b { color: var(--brun); display: block; }
.vedette .ligne-prix { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .vedette .conteneur { grid-template-columns: 1fr; gap: 24px; }
  .vedette .visuel { height: 340px; max-width: 360px; margin: 0 auto; width: 100%; }
  .vedette h2 { font-size: 2rem; }
}
