    html {
      overflow-y: scroll;
    }

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    html.dark body {
      background-color: #07040D;
      color: #F8FAFC;
    }
    html.dark .glass-nav {
      background: rgba(7, 4, 13, 0.90);
      border-top: 1px solid rgba(124, 58, 237, 0.2);
    }
    html.dark .glass-header {
      background: rgba(7, 4, 13, 0.90);
      border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    }
    html.dark .glass-card {
      background: #130E20;
      border: 1px solid #261B3D;
    }
    html.dark .glass-card:hover {
      border-color: rgba(168, 85, 247, 0.4);
    }
    html.dark .inner-box {
      background: #0B0714;
      border: 1px solid #1E1530;
    }

    html:not(.dark) body {
      background-color: #F8FAFC;
      color: #0F172A;
    }
    html:not(.dark) .glass-nav {
      background: rgba(255, 255, 255, 0.94);
      border-top: 1px solid rgba(124, 58, 237, 0.15);
    }
    html:not(.dark) .glass-header {
      background: rgba(255, 255, 255, 0.94);
      border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    }
    html:not(.dark) .glass-card {
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    }
    html:not(.dark) .glass-card:hover {
      border-color: rgba(124, 58, 237, 0.3);
    }
    html:not(.dark) .inner-box {
      background: #F1F5F9;
      border: 1px solid #E2E8F0;
    }

    .glass-nav, .glass-header {
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }
    
    .gradient-brand {
      background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    }
    .hide-scrollbar::-webkit-scrollbar { display: none; }
    .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    .lang-btn.active {
      background: rgba(124, 58, 237, 0.25);
      border-color: rgba(124, 58, 237, 0.5);
      opacity: 1;
      filter: saturate(1.2);
    }
    .lang-btn:not(.active) {
      opacity: 0.5;
    }
    .lang-btn:not(.active):hover {
      opacity: 0.85;
    }

    .btn-choice-active {
      border: 2px solid #A855F7 !important;
      background: rgba(124, 58, 237, 0.28) !important;
      color: #FFFFFF !important;
      box-shadow: 0 0 16px rgba(168, 85, 247, 0.35) !important;
    }
    .btn-choice-inactive {
      border: 1px solid rgba(124, 58, 237, 0.15) !important;
      background: #0B0714;
      color: #94A3B8;
    }

    body.hide-photo-labels .photo-overlay-info,
    body.hide-photo-labels .photo-badge-top,
    body.hide-photo-labels .homo-pending-overlay {
      display: none !important;
    }

    /* Style de la visionneuse allégée (une page à la fois, transition fondu/glissement) */
    .flipbook-wrapper {
      position: relative;
    }
    #flipbookContainer {
      position: relative;
      width: 100%;
      height: 100%;
    }
    .flipbook-page {
      position: absolute;
      top: 50%;
      left: 50%;
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      border-radius: 10px;
      background-color: #ffffff;
      box-shadow: 0 20px 50px rgba(0,0,0,0.45);
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.97);
      transition: opacity 0.32s ease, transform 0.32s ease;
      pointer-events: none;
    }
    .flipbook-page.flipbook-active {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
    .flipbook-page.flipbook-exit-next {
      opacity: 0 !important;
      transform: translate(-50%, -50%) translateX(-30px) scale(0.97) !important;
    }
    .flipbook-page.flipbook-exit-prev {
      opacity: 0 !important;
      transform: translate(-50%, -50%) translateX(30px) scale(0.97) !important;
    }
    .flipbook-photo-page {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 18px;
      color: #334155;
      background: #ffffff;
    }
    .flipbook-photo-page > img {
      max-width: 100%;
      max-height: 82%;
      object-fit: contain;
    }
    .flipbook-photo-page h2 {
      max-width: 90%;
      color: #0f172a;
      font-size: clamp(0.9rem, 2vw, 1.35rem);
      text-align: center;
      overflow-wrap: anywhere;
    }
    .flipbook-photo-page p {
      max-width: 88%;
      color: #475569;
      font-size: 0.9rem;
      line-height: 1.5;
      text-align: center;
      white-space: pre-wrap;
    }
    .flipbook-photo-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
      width: 100%;
      height: 100%;
      align-items: center;
    }
    .flipbook-photo-grid.two {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .flipbook-photo-grid figure {
      display: flex;
      min-width: 0;
      height: 100%;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin: 0;
    }
    .flipbook-photo-grid img {
      display: block;
      max-width: 100%;
      max-height: 92%;
      object-fit: contain;
    }
    .flipbook-photo-grid figcaption {
      max-width: 100%;
      overflow: hidden;
      color: #64748b;
      font-size: 0.65rem;
      text-align: center;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* Styles d'impression dédiés au flyer d'invitation */
    @media print {
      body {
        background-color: #FFFFFF !important;
        color: #0F172A !important;
        padding-bottom: 0 !important;
      }
      header, main, nav, .fixed, input[type="file"] {
        display: none !important;
      }
      #printFlyerContainer {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px !important;
        margin: 0 auto !important;
      }
    }