/* Vêt'Familles : charte reprise des cartes d'Hélène et de la maquette du 17/10.
   Les couleurs de texte passent AA (≥ 4,5:1) sur leur fond. */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilita-one-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* Marque */
  --canard: #075e68;
  --canard-fonce: #0b3d44;
  --teal: #187880;
  --creme: #f7f2e2;
  --menthe: #d6eee7;
  --jaune: #ffca28;
  --orange: #ff9a36;
  --blanc: #ffffff;

  /* Les 7 familles : teinte du cadre (décor) et version foncée (texte) */
  --je-sais-tout-cadre: #f6d33c;
  --je-sais-tout: #8a6200;
  --radin-cadre: #9a6cc0;
  --radin: #6b3d8f;
  --bizarre-cadre: #f08a2a;
  --bizarre: #b5480f;
  --negligent-cadre: #8ccf4a;
  --negligent: #3f7a1f;
  --consciencieux-cadre: #4fc3dc;
  --consciencieux: #1b6f8a;
  --hyper-stresse-cadre: #ef6a6a;
  --hyper-stresse: #b3202f;
  --cool-cadre: #5fcfc4;
  --cool: #146e72;

  --titre: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --etroite: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --texte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rayon: 14px;
  --gouttiere: 16px;
  --ombre-carte: 0 14px 30px rgb(11 61 68 / 0.22);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--canard);
  background: var(--creme);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--titre); font-weight: 400; line-height: 1.02; color: var(--canard-fonce); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur--etroit { max-width: 760px; }

.evitement {
  position: absolute; left: var(--gouttiere); top: -100px; z-index: 10;
  padding: 10px 16px; background: var(--canard); color: var(--creme); border-radius: 8px;
}
.evitement:focus { top: 10px; }

.a-completer { background: #fff3c4; color: #6b4e00; padding: 0 6px; border-radius: 4px; }

/* Boutons et liens */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  font-family: var(--etroite); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton--canard { background: var(--canard); color: var(--creme); }
.bouton--canard:hover { box-shadow: 0 6px 14px rgb(7 94 104 / 0.3); }
.bouton--jaune { background: var(--jaune); color: var(--canard-fonce); font-size: 1.4rem; padding: 12px 30px; box-shadow: 0 4px 0 #e0a800; }
.bouton--jaune:hover { box-shadow: 0 6px 0 #e0a800; }
.patte { width: 1.1em; height: 1.1em; flex: none; }

.lien-fleche {
  display: inline-flex; gap: 10px; align-items: center;
  font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  cursor: pointer;
}
.lien-fleche span { display: inline-block; transition: transform 0.15s ease; }

/* Traits décoratifs de part et d'autre des titres */
.traits {
  display: inline-block; width: 0.9em; height: 0.9em; vertical-align: middle;
  background: url("../img/deco/traits-canard.svg") center / contain no-repeat;
  transform: scaleX(-1);
}
.traits--droite { transform: none; }

/* En-tête */
.entete { background: var(--creme); border-bottom: 3px solid var(--teal); }
.entete__ligne { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.marque {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--titre); font-size: 1.4rem; color: var(--canard); margin-right: auto;
}
.marque img { width: 38px; height: 38px; }
.marque--creme { color: var(--creme); }
.nav { display: none; }
.nav ul { display: flex; gap: 36px; }
.nav a { font-family: var(--etroite); font-weight: 700; font-size: 1.2rem; text-decoration: none; padding: 8px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.entete .bouton { font-size: 1.1rem; padding: 8px 14px; gap: 8px; }
.entete__ligne { gap: 10px; }

/* Hero */
.hero { padding: 32px 0 48px; }
.hero__grille { display: grid; gap: 40px; }
.surtitre {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--etroite); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(3rem, 12vw, 5.5rem); margin: 14px 0 22px; letter-spacing: -0.01em; }
.souligne {
  background: url("../img/deco/soulignement-jaune.svg") left 92% / 100% 0.32em no-repeat;
  padding-bottom: 0.06em;
}
.hero__description { font-size: 1.2rem; max-width: 26em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 28px 0 24px; }
.signature { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; }
.signature .patte { color: var(--teal); width: 26px; height: 26px; }

.hero__visuel {
  position: relative;
  aspect-ratio: 1 / 0.95;
  max-width: 640px; width: 100%; margin-inline: auto;
  background: url("../img/deco/forme-menthe-hero.svg") center 60% / 104% auto no-repeat;
}
.hero__carte { position: absolute; border-radius: 3.5% / 2.5%; filter: drop-shadow(var(--ombre-carte)); }
.hero__carte--centre { width: 48%; left: 26%; top: 2%; z-index: 2; transform: rotate(-2deg); }
.hero__carte--gauche { width: 38%; left: -1%; top: 14%; transform: rotate(-11deg); }
.hero__carte--droite { width: 38%; right: -1%; top: 13%; transform: rotate(9deg); }
.bulle {
  position: absolute; z-index: 3; right: -2%; top: -4%;
  width: 34%; aspect-ratio: 320 / 180;
  display: grid; place-items: center; text-align: center;
  padding: 0 8% 6%;
  font-family: var(--etroite); font-weight: 700; font-size: clamp(1rem, 3.6vw, 1.4rem); line-height: 1.05;
  color: var(--canard-fonce);
  background: url("../img/deco/bulle-orange.svg") center / contain no-repeat;
  transform: rotate(5deg);
}

/* Bandeau */
.bandeau { background: var(--canard); color: var(--creme); }
.bandeau__liste { display: grid; gap: 0; padding-block: 12px; }
.bandeau li {
  display: flex; align-items: center; gap: 18px; padding: 14px 0;
  font-family: var(--titre); font-size: 1.6rem; line-height: 1.05;
}
.bandeau li + li { border-top: 1px solid rgb(247 242 226 / 0.25); }
.bandeau svg { width: 56px; height: 56px; flex: none; }

/* Familles */
.familles { padding: 56px 0 40px; text-align: center;
  background:
    url("../img/deco/patte-menthe.svg") 4% 18% / 34px no-repeat,
    url("../img/deco/patte-menthe.svg") 94% 10% / 30px no-repeat,
    url("../img/deco/patte-menthe.svg") 96% 30% / 38px no-repeat;
}
.titre-section { font-size: clamp(2rem, 7vw, 3.4rem); }
.familles .titre-section { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 18em; margin-inline: auto; }
.familles .titre-section .traits { display: none; }
@media (min-width: 768px) {
  .saut { display: block; }
  .familles .titre-section .traits { display: inline-block; }
}
.familles .titre-section .traits { flex: none; width: 0.8em; height: 0.8em; }
.familles__intro { margin: 12px auto 36px; font-size: 1.2rem; color: var(--canard-fonce); }

.cartes {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gouttiere) 24px; margin-inline: calc(-1 * var(--gouttiere));
  scrollbar-width: thin;
}
.carte { flex: 0 0 72%; scroll-snap-align: center; }
.carte img { width: 100%; filter: drop-shadow(0 10px 18px rgb(11 61 68 / 0.2)); }
.carte__legende { margin-top: 12px; font-size: 1.2rem; font-weight: 700; }
.carte--je-sais-tout .carte__legende { color: var(--je-sais-tout); }
.carte--radin .carte__legende { color: var(--radin); }
.carte--bizarre .carte__legende { color: var(--bizarre); }
.carte--negligent .carte__legende { color: var(--negligent); }
.carte--consciencieux .carte__legende { color: var(--consciencieux); }
.carte--hyper-stresse .carte__legende { color: var(--hyper-stresse); }
.carte--cool .carte__legende { color: var(--cool); }

.familles__suite summary { list-style: none; margin: 8px auto 0; font-size: 1.1rem; }
.familles__suite summary::-webkit-details-marker { display: none; }
.familles__suite[open] summary { margin-bottom: 24px; }
.familles__suite[open] summary span { transform: rotate(90deg); }

/* Cadeau */
.cadeau { padding: 40px 0 64px; }
.cadeau__panneau {
  position: relative; display: grid; gap: 20px; align-items: center;
  background: var(--menthe); border-radius: 22px; padding: 32px 24px 0;
}
.cadeau h2 { font-size: clamp(2rem, 7vw, 2.8rem); }
.cadeau__texte { display: grid; gap: 18px; justify-items: start; }
.cadeau__texte p { color: var(--canard-fonce); }
.cadeau__illustration { width: min(100%, 360px); justify-self: center; margin-top: 8px; }

/* Commande */
.commande { padding: 56px 0 64px; background: #e5f2ee; overflow: hidden; }
.commande__grille { display: grid; gap: 40px; }
.commande .surtitre { margin-bottom: 8px; }
.commande__accroche { margin: 16px 0 28px; font-size: 1.15rem; color: var(--canard-fonce); max-width: 32em; }
.atouts { display: grid; gap: 18px; }
.atouts li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; }
.atouts__icone { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blanc); color: var(--canard); }
.atouts__icone svg { width: 30px; height: 30px; fill: currentColor; }
.atouts__icone svg g { fill: none; }
.atouts h3 { font-family: var(--titre); font-size: 1.3rem; color: var(--canard-fonce); line-height: 1.15; }
.atouts p { color: var(--canard-fonce); opacity: 0.85; }

.eventail { display: none; position: relative; height: 150px; margin: 36px auto 0; max-width: 460px; }
.eventail img { position: absolute; bottom: 0; left: 50%; width: 72px; height: auto; border-radius: 8px; box-shadow: 0 8px 18px rgb(11 61 68 / 0.25); transform-origin: 50% 100%; }
.eventail img:nth-child(1) { transform: translateX(calc(-50% + -150%)) translateY(8px) rotate(-18deg); }
.eventail img:nth-child(2) { transform: translateX(calc(-50% + -100%)) translateY(4px) rotate(-12deg); }
.eventail img:nth-child(3) { transform: translateX(calc(-50% + -50%)) translateY(1px) rotate(-6deg); }
.eventail img:nth-child(4) { transform: translateX(calc(-50% + 0%)) translateY(0px) rotate(0deg); z-index: 1; }
.eventail img:nth-child(5) { transform: translateX(calc(-50% + 50%)) translateY(1px) rotate(6deg); }
.eventail img:nth-child(6) { transform: translateX(calc(-50% + 100%)) translateY(4px) rotate(12deg); }
.eventail img:nth-child(7) { transform: translateX(calc(-50% + 150%)) translateY(8px) rotate(18deg); }

.commande__achat { display: grid; gap: 20px; }
.fiche { background: var(--blanc); border-radius: 22px; padding: 24px; box-shadow: var(--ombre-carte); text-align: center; }
.fiche__visuel { width: min(62%, 240px); height: auto; margin: 0 auto 18px; border-radius: 12px; box-shadow: 0 10px 22px rgb(11 61 68 / 0.2); transform: rotate(-2deg); }
.fiche__nom { font-family: var(--titre); font-size: 1.7rem; color: var(--canard-fonce); line-height: 1.1; }
.fiche__contenu { margin-top: 6px; color: var(--teal); font-weight: 600; }
.fiche__variante { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 16px auto 0; width: 100%; max-width: 320px; text-align: left; font-weight: 700; color: var(--canard-fonce); }
.fiche__variante select { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--menthe); border-radius: 10px; font: inherit; font-weight: 600; background: var(--blanc); color: var(--canard-fonce); }
.fiche__achat { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; margin: 18px 0; }
.fiche__prix { font-family: var(--titre); font-size: 2.2rem; color: var(--canard-fonce); }
.quantite { display: inline-flex; align-items: center; border: 2px solid var(--menthe); border-radius: 12px; overflow: hidden; }
.quantite__bouton { width: 44px; height: 44px; border: 0; background: var(--menthe); color: var(--canard-fonce); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.quantite__bouton:hover { background: #c3e5db; }
.quantite output { min-width: 44px; text-align: center; font-weight: 700; font-size: 1.15rem; color: var(--canard-fonce); }
.fiche__bouton { width: 100%; justify-content: center; font-size: 1.45rem; min-height: 56px; }
.fiche__bouton:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.fiche__livraison { margin-top: 14px; font-size: 0.95rem; color: var(--canard-fonce); }

.reassurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--canard-fonce); }
.reassurance li { display: grid; justify-items: center; gap: 6px; padding: 0 4px; }
.reassurance li + li { border-left: 1px solid rgb(7 94 104 / 0.2); }
.reassurance svg { width: 28px; height: 28px; color: var(--canard); }

.commande__widget { background: var(--blanc); border-radius: 22px; padding: 8px; box-shadow: var(--ombre-carte); }
.commande__widget esport-shop-widget { display: block; }
/* Les acheteurs paient sans compte : on masque la connexion Discord proposée par le widget. */
esport-shop-widget .discord-section { display: none !important; }
/* Photo produit (mode secours du widget) : affichée en entier, format portrait de la boîte. */
esport-shop-widget .product-image-container { height: auto !important; aspect-ratio: auto !important; padding-top: 0 !important; background: #fff !important; }
esport-shop-widget .product-image { position: static !important; width: 100% !important; height: auto !important; max-height: 380px; object-fit: contain !important; }
/* Panier du widget : on resserre ses marges internes pour gagner de la largeur sur téléphone. */
esport-shop-widget .back-btn { font-size: 0 !important; white-space: nowrap; }
esport-shop-widget .back-btn::after { content: "← Retour"; font-size: 0.95rem; }
@media (max-width: 767px) {
  .commande__widget { padding: 0; border-radius: 18px; }
  esport-shop-widget .shop-container,
  esport-shop-widget .cart-view { padding: 14px 12px !important; }
  esport-shop-widget .cart-item,
  esport-shop-widget .shipping-option { padding: 12px !important; }
  esport-shop-widget .shipping-section,
  esport-shop-widget .checkout-form,
  esport-shop-widget .cart-summary { padding: 14px 12px !important; }
}
.commande__attente { padding: 24px; text-align: center; color: var(--canard-fonce); }
.commande__merci {
  padding: 20px 24px; border-radius: var(--rayon);
  background: var(--menthe); color: var(--canard-fonce); font-weight: 600;
}
.commande__merci--annule { background: var(--blanc); }
[hidden] { display: none !important; }

@media (min-width: 768px) {
  .commande { padding: 80px 0; }
  .commande__grille { grid-template-columns: 1.1fr 0.9fr; align-items: start; gap: 56px; }
  .eventail { display: block; height: 210px; margin-top: 48px; }
  .eventail img { width: 112px; }
  .fiche { padding: 32px; }
}

/* Histoire */
.histoire { padding: 56px 0; }
.histoire__grille { display: grid; gap: 24px; justify-items: center; }
.histoire__grille img { width: 120px; }
.histoire p { margin-top: 14px; max-width: 36em; color: var(--canard-fonce); }

/* FAQ */
.faq { padding: 0 0 64px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid rgb(7 94 104 / 0.25); }
.faq details:last-of-type { border-bottom: 1px solid rgb(7 94 104 / 0.25); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; cursor: pointer; font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--titre); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--canard-fonce); }

/* Pied de page */
.pied { background: var(--canard); color: var(--creme); padding: 40px 0; font-size: 1rem; }
.pied__grille { display: grid; gap: 18px; }
.pied ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { text-underline-offset: 4px; }
.pied .a-completer { color: #6b4e00; }
.pied__copyright { opacity: 0.85; }

/* Tablette */
@media (min-width: 768px) {
  :root { --gouttiere: 32px; }
  .marque { font-size: 1.75rem; }
  .marque img { width: 44px; height: 44px; }
  .entete .bouton { font-size: 1.15rem; padding: 8px 18px; }
  .cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; gap: 36px; overflow: visible; padding: 8px 0 24px; margin: 0; }
  .familles__suite .cartes { grid-template-columns: repeat(4, minmax(0, 240px)); gap: 28px; }
  .carte:nth-child(odd) img { transform: rotate(-2deg); }
  .carte:nth-child(even) img { transform: rotate(2deg); }
  .cadeau__panneau { grid-template-columns: auto 1fr; padding: 36px 40px 0; column-gap: 40px; }
  .cadeau__illustration { grid-column: 1 / -1; }
  .histoire__grille { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 40px; }
  .histoire__grille img { width: 160px; }
}

/* Ordinateur */
@media (min-width: 900px) {
  .nav { display: block; margin-right: 24px; }
  .bandeau__liste { grid-template-columns: repeat(3, 1fr); padding-block: 22px; }
  .bandeau li { padding: 4px 24px; justify-content: center; }
  .bandeau li + li { border-top: 0; border-left: 1px solid rgb(247 242 226 / 0.3); }
  .pied__grille { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; }
  .pied__copyright { grid-column: 1 / -1; }
  .hero { padding: 40px 0 56px; }
  .hero__grille { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; }
  .cadeau__panneau { grid-template-columns: auto minmax(0, 1fr) 300px; padding: 28px 0 28px 40px; min-height: 150px; }
  .cadeau h2 { max-width: 10.5em; padding-right: 32px; border-right: 2px solid var(--canard); }
  .cadeau__illustration { grid-column: auto; width: 300px; margin: -70px 0 -28px; align-self: end; }
}

/* Page « Règles du jeu » */
.regles { padding: 40px 0 64px; }
.regles__grille { display: grid; gap: 36px; }
.regles h1 { font-size: clamp(2.4rem, 9vw, 4rem); margin: 10px 0 16px; color: var(--canard-fonce); }
.regles__intro { font-size: 1.15rem; color: var(--canard-fonce); max-width: 36em; }
.etapes { list-style: none; padding: 0; counter-reset: etape; display: grid; gap: 18px; margin: 32px 0; }
.etapes li { counter-increment: etape; position: relative; padding: 18px 20px 18px 76px; background: var(--blanc); border-radius: 18px; box-shadow: 0 6px 16px rgb(11 61 68 / 0.1); }
.etapes li::before { content: counter(etape); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--canard); color: var(--creme); font-family: var(--titre); font-size: 1.5rem; }
.etapes h2 { font-family: var(--titre); font-size: 1.45rem; color: var(--canard-fonce); margin-bottom: 4px; }
.etapes p { color: var(--canard-fonce); }
.regles__soustitre { font-family: var(--titre); font-size: 1.6rem; color: var(--canard-fonce); margin-bottom: 8px; }
.regles__texte > p { color: var(--canard-fonce); }
.regles__cta { margin-top: 28px; }
.regles__visuel { margin: 0; text-align: center; }
.regles__visuel img { width: min(100%, 380px); height: auto; border-radius: 16px; box-shadow: var(--ombre-carte); transform: rotate(1.5deg); }
.regles__visuel figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--teal); }
@media (min-width: 900px) {
  .regles { padding: 56px 0 80px; }
  .regles__grille { grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
  .regles__visuel { position: sticky; top: 100px; }
}

/* ===== Habillage de Noël (classe .noel sur <html>, posée par un script du <head>) ===== */
.noel-deco, .ruban-noel, .noel-cadeau { display: none; }
.noel { --rouge-noel: #c62828; --rouge-noel-fonce: #9e1b1b; }

/* Guirlande lumineuse sous l'en-tête */
.noel .entete { position: relative; }
.noel .entete::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 28px; z-index: 5; pointer-events: none;
  background: url("../img/noel/guirlande.svg") repeat-x 0 0 / 160px 28px;
}

/* Hero : branches et boules suspendues, flocons discrets */
.noel .hero { position: relative; overflow: hidden; }
.noel .noel-deco { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.noel .hero__grille { position: relative; z-index: 1; }
.noel-branche { position: absolute; top: -10px; width: clamp(180px, 30vw, 380px); height: auto; }
.noel-branche--gauche { left: -40px; }
.noel-branche--droite { right: -40px; transform: scaleX(-1); }
.noel-boule { position: absolute; top: 0; width: clamp(56px, 7vw, 92px); height: auto; transform-origin: 50% 0; animation: balancier 5s ease-in-out infinite; }
.noel-boule--patte { left: 4%; }
.noel-boule--coeur { right: 4%; width: clamp(48px, 6vw, 78px); animation-delay: -2.5s; }
@keyframes balancier { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (max-width: 767px) {
  .noel .hero { padding-top: 92px; }
  .noel-boule { width: 44px; }
  .noel-boule--patte { left: auto; right: 72px; }
  .noel-boule--coeur { right: 18px; width: 38px; }
}

/* Ruban rouge au-dessus de « Commander le jeu » */
.noel .ruban-noel { display: inline-block; position: relative; margin: 0 22px 18px; }
.ruban-noel span {
  position: relative; z-index: 1; display: inline-block; padding: 10px 22px;
  background: var(--rouge-noel); color: #fff; font-family: var(--titre); font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  border-radius: 6px; box-shadow: 0 6px 14px rgb(158 27 27 / 0.3); transform: rotate(-1.5deg);
}
.ruban-noel::before, .ruban-noel::after {
  content: ""; position: absolute; top: 12px; width: 34px; height: 100%; background: var(--rouge-noel-fonce);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30% 50%);
}
.ruban-noel::before { left: -22px; }
.ruban-noel::after { right: -22px; transform: scaleX(-1); }

/* Section commande : flocons, bouton rouge, cadeau près de la boîte */
.noel .fiche { position: relative; }
.noel .fiche__bouton { background: var(--rouge-noel); }
.noel .fiche__bouton:hover { box-shadow: 0 6px 14px rgb(198 40 40 / 0.35); }
.noel .noel-cadeau { display: block; position: absolute; width: clamp(90px, 22%, 130px); height: auto; left: 6%; top: 34%; transform: rotate(-6deg); filter: drop-shadow(0 8px 10px rgb(11 61 68 / 0.25)); }
.noel .entete .bouton--canard { background: var(--rouge-noel); }

@media (prefers-reduced-motion: reduce) { .noel-boule { animation: none; } }

/* ===== Finition « premium » : lumière, texture papier, palette resserrée ===== */
:root { --ombre-carte: 0 20px 44px rgb(70 45 10 / 0.16), 0 4px 10px rgb(70 45 10 / 0.08); }
body {
  background-color: #f6efdc;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fbf6e9 0%, #f4ebd2 100%);
}
/* En-tête translucide */
.entete { background: rgb(251 247 236 / 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid rgb(7 94 104 / 0.15); box-shadow: 0 6px 20px rgb(70 45 10 / 0.06); }
/* Hero : halo de lumière et coins assombris */
.hero { position: relative; background:
  radial-gradient(ellipse 70% 60% at 65% 45%, rgb(255 253 245 / 0.95) 0%, rgb(255 250 235 / 0.4) 45%, transparent 75%),
  radial-gradient(ellipse 120% 100% at 50% 40%, transparent 55%, rgb(150 110 50 / 0.12) 100%); }
/* Bandeau : plus léger, en carte claire */
.bandeau { background: rgb(255 255 255 / 0.55); color: var(--canard-fonce); border-block: 1px solid rgb(7 94 104 / 0.12); box-shadow: inset 0 1px 0 #fff; }
.bandeau li + li { border-color: rgb(7 94 104 / 0.15) !important; }
.bandeau svg { color: var(--canard); }
/* Panneau cadeau et section commande : crème lumineux au lieu des aplats menthe */
.cadeau__panneau { background: linear-gradient(135deg, #fffdf6, #f3ead2); box-shadow: var(--ombre-carte); }
.commande, .noel .commande { background:
  radial-gradient(ellipse 60% 70% at 72% 40%, rgb(255 253 245 / 0.9), transparent 70%),
  radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, rgb(150 110 50 / 0.1) 100%); }
.atouts__icone { background: #fffdf6; box-shadow: 0 6px 14px rgb(70 45 10 / 0.1); }
.fiche { background: linear-gradient(180deg, #ffffff, #fffaf0); border: 1px solid rgb(184 137 43 / 0.15); }
/* La boîte « posée » : légère perspective et ombre au sol */
.fiche__visuel { transform: perspective(900px) rotateY(-14deg) rotate(-1deg); box-shadow: none; filter: drop-shadow(16px 22px 18px rgb(70 45 10 / 0.32)); border-radius: 10px; }
/* Coups de pinceau sous les titres de section */
.commande .titre-section, .histoire .titre-section, .faq .titre-section { display: inline-block; padding-bottom: 6px; background: url("../img/deco/pinceau.svg") left bottom / 100% 0.42em no-repeat; }
/* Lumières floues (bokeh) pendant la période de Noël */
.noel .hero, .noel .commande { isolation: isolate; }
.noel .hero::before, .noel .commande::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(circle at 8% 22%, rgb(255 214 120 / 0.55) 0 14px, transparent 30px),
    radial-gradient(circle at 18% 70%, rgb(255 200 110 / 0.4) 0 20px, transparent 40px),
    radial-gradient(circle at 92% 18%, rgb(255 214 120 / 0.5) 0 18px, transparent 36px),
    radial-gradient(circle at 84% 78%, rgb(255 190 100 / 0.35) 0 26px, transparent 50px),
    radial-gradient(circle at 50% 8%, rgb(255 224 150 / 0.4) 0 10px, transparent 24px),
    radial-gradient(circle at 62% 92%, rgb(255 210 120 / 0.35) 0 16px, transparent 34px);
  filter: blur(2px);
}
.noel .commande { position: relative; }

/* Boîte en 3D (rendu avec son ombre au sol) */
.hero__boite { width: 54%; left: 23%; top: 0; border-radius: 0; filter: drop-shadow(0 18px 22px rgb(70 45 10 / 0.18)); transform: rotate(-1deg); }
.fiche__visuel { width: min(72%, 280px); transform: none; filter: none; border-radius: 0; margin-bottom: 8px; }
.noel .noel-cadeau { left: 2%; top: 30%; width: clamp(96px, 26%, 140px); }
@media (max-width: 767px) {
  .noel .noel-boule { display: none; }
  .noel .hero { padding-top: 100px; }
  .noel-branche { width: 42vw; top: -6px; }
  .noel .noel-cadeau { top: 18%; left: 4%; width: 22%; }
}

/* Section commande : guirlande en haut et branche dans le coin (Noël) */
.noel-branche--commande { display: none; }
.noel .commande::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px; pointer-events: none; z-index: 1;
  background: url("../img/noel/guirlande.svg") repeat-x 0 0 / 160px 28px;
}
.noel .noel-branche--commande { display: block; position: absolute; top: -8px; right: -40px; left: auto; width: clamp(170px, 24vw, 320px); transform: scaleX(-1); z-index: 1; pointer-events: none; }
.noel .commande__grille { position: relative; z-index: 2; }
@media (max-width: 767px) {
  .noel .commande { padding-top: 120px; }
  .ruban-noel span { font-size: 1rem; padding: 8px 14px; white-space: nowrap; }
  .noel .ruban-noel { margin-inline: 16px; }
}
/* Cadeau posé en bas à droite de la boîte */
.fiche__media { position: relative; width: min(72%, 280px); margin: 0 auto; }
.fiche__media .fiche__visuel { display: block; width: 100%; margin: 0 auto 8px; }
.noel .fiche__media .noel-cadeau { top: auto; left: auto; right: -14%; bottom: -2%; width: 42%; max-width: 130px; transform: rotate(5deg); }
@media (max-width: 767px) { .noel .fiche__media .noel-cadeau { right: -10%; width: 38%; } }
