/**
 * Styles pour le front-end public de MaReno
 * Version: 1.1.1 - Cache busting enabled
 *
 * @package    Mareno
 * @author     Jonathan Gaborieau
 */

/* ==========================================================================
   Variables
   ========================================================================== */
   :root {
    --mareno-public-primary: #2271b1;
    --mareno-public-success: #00a32a;
    --mareno-public-warning: #dba617;
    --mareno-public-danger: #d63638;
    --mareno-public-gray-100: #f6f7f7;
    --mareno-public-gray-200: #dcdcde;
    --mareno-public-gray-700: #50575e;
    --mareno-public-gray-900: #1d2327;
    --mareno-public-border-radius: 8px;
    --mareno-public-transition: all 0.3s ease;
    --vh: 1vh;
    --mareno-glass-base: rgba(15, 27, 51, 0.42);
    --mareno-glass-overlay: rgba(0, 0, 0, 0.65);
    --mareno-glass-border: rgba(255, 255, 255, 0.18);
    --mareno-font-family: "Montserrat", -apple-system, BlinkMacSystemFont,
      "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  }
  
  /* ==========================================================================
     Police Montserrat - Application globale
     ========================================================================== */
  * {
    font-family: var(--mareno-font-family);
  }
  
  body,
  .mareno-public-wrapper,
  .mareno-stories-view {
    font-family: var(--mareno-font-family);
  }
  
  /* ==========================================================================
     Message Desktop/Tablette - Application mobile uniquement
     ========================================================================== */
  .mareno-desktop-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  .mareno-desktop-message-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    color: #fff;
    animation: mareno-fade-in 0.6s ease;
  }
  
  .mareno-desktop-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: mareno-pulse-icon 2s ease-in-out infinite;
  }
  
  .mareno-desktop-icon svg {
    width: 60px;
    height: 60px;
    color: #fff;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
  
  @keyframes mareno-pulse-icon {
    0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  
  .mareno-desktop-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
  }
  
  .mareno-desktop-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }
  
  /* Masquer le message sur mobile portrait */
  @media (max-width: 900px) and (orientation: portrait) {
    .mareno-desktop-message {
      display: none !important;
    }
  }
  
  /* Afficher le message sur desktop (écrans larges) */
  @media (min-width: 901px) {
    .mareno-desktop-message {
      display: flex !important;
    }
  
    .mareno-public-wrapper,
    .mareno-public-dashboard,
    .mareno-public-posts,
    .mareno-public-post-detail {
      display: none !important;
    }
  
    body {
      overflow: hidden;
    }
  }
  
  /* Afficher le message sur tablettes en mode paysage */
  @media (min-width: 768px) and (max-width: 900px) and (orientation: landscape) {
    .mareno-desktop-message {
      display: flex !important;
    }
  
    .mareno-public-wrapper,
    .mareno-public-dashboard,
    .mareno-public-posts,
    .mareno-public-post-detail {
      display: none !important;
    }
  
    body {
      overflow: hidden;
    }
  }
  
  /* ==========================================================================
     Conteneur principal
     ========================================================================== */
  .mareno-public-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    height: 100vh;
    overflow: hidden;
  }
  
  /* ==========================================================================
     Statistiques publiques
     ========================================================================== */
  .mareno-public-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .mareno-public-stat {
    background: #fff;
    padding: 30px;
    border-radius: var(--mareno-public-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--mareno-public-transition);
  }
  
  .mareno-public-stat:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
  
  .mareno-stat-label {
    display: block;
    font-size: 14px;
    color: var(--mareno-public-gray-700);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .mareno-stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--mareno-public-primary);
  }
  
  /* ==========================================================================
     Timeline - Vue Desktop (Verticale à gauche)
     ========================================================================== */
  .mareno-timeline {
    position: relative;
    padding: 20px 0 20px 60px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  /* Ligne verticale de la timeline */
  .mareno-timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
      to bottom,
      var(--mareno-public-primary) 0%,
      var(--mareno-public-primary) 100%
    );
  }
  
  /* Scrollbar personnalisée pour la timeline */
  .mareno-timeline::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  .mareno-timeline::-webkit-scrollbar-track {
    background: var(--mareno-public-gray-100);
    border-radius: 5px;
  }
  
  .mareno-timeline::-webkit-scrollbar-thumb {
    background: var(--mareno-public-primary);
    border-radius: 5px;
    transition: var(--mareno-public-transition);
  }
  
  .mareno-timeline::-webkit-scrollbar-thumb:hover {
    background: #135e96;
  }
  
  /* Élément de timeline */
  .mareno-timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: flex-start;
    animation: mareno-fade-slide-in 0.5s ease forwards;
    opacity: 0;
  }
  
  .mareno-timeline-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  .mareno-timeline-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  .mareno-timeline-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  .mareno-timeline-item:nth-child(4) {
    animation-delay: 0.4s;
  }
  .mareno-timeline-item:nth-child(5) {
    animation-delay: 0.5s;
  }
  
  /* Marqueur (point) sur la timeline */
  .mareno-timeline-marker {
    position: absolute;
    left: -45px;
    top: 10px;
    z-index: 2;
  }
  
  .mareno-timeline-dot {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid var(--mareno-public-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
    transition: var(--mareno-public-transition);
  }
  
  .mareno-timeline-item:hover .mareno-timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(34, 113, 177, 0.3);
  }
  
  /* Contenu de la timeline */
  .mareno-timeline-content {
    flex: 1;
    position: relative;
  }
  
  /* Date sur la timeline */
  .mareno-timeline-date {
    display: inline-block;
    background: var(--mareno-public-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
  }
  
  /* Carte de poste dans la timeline */
  .mareno-public-post {
    position: relative;
    background: #fff;
    border-radius: var(--mareno-public-border-radius);
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--mareno-public-transition);
    border-left: 4px solid var(--mareno-public-primary);
  }
  
  .mareno-public-post:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(5px);
  }
  
  .mareno-public-post-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--mareno-public-gray-100);
  }
  
  .mareno-public-post-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--mareno-public-gray-900);
  }
  
  /* Badge "Nouveau" en haut à gauche du poste (< 1 semaine) */
  .mareno-post-badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--mareno-public-primary);
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.2;
    z-index: 2;
  }
  
  .mareno-public-description {
    margin: 0 0 20px;
    color: var(--mareno-public-gray-700);
    line-height: 1.6;
  }
  
  /* ==========================================================================
     Grille de médias
     ========================================================================== */
  .mareno-public-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
  }
  
  .mareno-media-item-public {
    aspect-ratio: 1;
    border-radius: var(--mareno-public-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--mareno-public-transition);
    position: relative;
  }
  
  .mareno-media-item-public:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .mareno-media-item-public img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .mareno-video-thumb {
    width: 100%;
    height: 100%;
    background: var(--mareno-public-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mareno-video-thumb .dashicons {
    font-size: 60px;
    color: var(--mareno-public-gray-700);
  }
  
  /* Vignette unique pour mobile */
  .mareno-public-media-preview {
    margin-top: 15px;
    display: none; /* Masqué par défaut (desktop) */
    position: relative;
  }
  
  /* Barre de statistiques mobile - masquée par défaut sur desktop */
  .mareno-mobile-post-stats {
    display: none;
  }
  
  .mareno-media-thumbnail {
    position: relative;
    border-radius: var(--mareno-public-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--mareno-public-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .mareno-media-thumbnail:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
  }
  
  .mareno-media-thumbnail img,
  .mareno-media-thumbnail .mareno-video-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }
  
  .mareno-media-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(34, 113, 177, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
  }
  
  /* Titre en overlay sur la vignette mobile */
  .mareno-mobile-post-title {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      transparent 100%
    );
    padding: 8px 10px 10px 10px;
    color: #fff;
    z-index: 2;
  }
  
  .mareno-mobile-post-title h3 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Conteneur pour les catégories - force une seule ligne sans retour */
  .mareno-categories-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    gap: 0;
  }
  
  .mareno-categories-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  .mareno-mobile-post-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1;
    margin-right: 6px;
    margin-bottom: 0;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .mareno-mobile-post-category--more {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
  
  /* Couleurs spécifiques pour chaque catégorie */
  .mareno-mobile-post-category[data-category="Cuisine"] {
    background: rgba(46, 125, 50, 0.8);
    border: 1px solid rgba(76, 175, 80, 0.6);
  }
  
  .mareno-mobile-post-category[data-category="Salon"] {
    background: rgba(255, 193, 7, 0.8);
    border: 1px solid rgba(255, 213, 79, 0.6);
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  }
  
  .mareno-mobile-post-category[data-category="Chambre 1"],
  .mareno-mobile-post-category[data-category="Chambre 2"],
  .mareno-mobile-post-category[data-category="Chambre 3"] {
    background: rgba(33, 150, 243, 0.8);
    border: 1px solid rgba(100, 181, 246, 0.6);
  }
  
  .mareno-mobile-post-category[data-category="Dressing"] {
    background: rgba(171, 71, 188, 0.85);
    border: 1px solid rgba(206, 147, 216, 0.6);
  }
  
  .mareno-mobile-post-category[data-category="Salle de bain 1"],
  .mareno-mobile-post-category[data-category="Salle de bain 2"] {
    background: rgba(3, 155, 229, 0.85);
    border: 1px solid rgba(129, 212, 250, 0.6);
  }
  
  .mareno-mobile-post-category[data-category="Salle à manger"] {
    background: rgba(255, 167, 38, 0.82);
    border: 1px solid rgba(255, 204, 128, 0.6);
    color: #3e2723;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
  }
  
  .mareno-mobile-post-category[data-category="Buanderie"] {
    background: rgba(0, 137, 123, 0.8);
    border: 1px solid rgba(128, 222, 234, 0.6);
  }
  
  .mareno-mobile-post-category[data-category="Cave"] {
    background: rgba(94, 53, 177, 0.82);
    border: 1px solid rgba(179, 157, 219, 0.6);
  }
  
  .mareno-mobile-post-category[data-category="Mezzanine"] {
    background: rgba(255, 152, 0, 0.85);
    border: 1px solid rgba(255, 183, 77, 0.6);
  }
  
  .mareno-category-icon {
    font-size: 12px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    display: inline-block;
    vertical-align: middle;
  }
  
  /* Masquer sur desktop, afficher sur mobile */
  .mareno-desktop-only {
    display: grid;
  }
  
  .mareno-mobile-only {
    display: none;
  }
  
  /* ==========================================================================
     Vue Stories (type Snapchat/Instagram)
     ========================================================================== */
  .mareno-stories-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #000;
    display: flex;
    flex-direction: column;
    transform: scale(1) !important;
  }
  
  /* Animation d'ouverture initiale (fade sans scale) */
  .mareno-stories-view.mareno-fade-scale-enter {
    animation: mareno-fade-scale-enter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000000;
    transform: scale(1) !important;
  }
  
  /* Animation de fermeture (fade sans scale) */
  .mareno-stories-view.mareno-fade-scale-exit {
    animation: mareno-fade-scale-exit 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
    z-index: 999999;
    transform: scale(1) !important;
  }
  
  /* Animations de slide avec superposition (pas de page visible) */
  .mareno-stories-view.mareno-slide-enter-left {
    animation: mareno-slide-enter-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000000; /* Au-dessus de la story sortante */
    transform: scale(1) !important;
  }
  
  .mareno-stories-view.mareno-slide-enter-right {
    animation: mareno-slide-enter-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000000; /* Au-dessus de la story sortante */
    transform: scale(1) !important;
  }
  
  .mareno-stories-view.mareno-slide-exit-left {
    animation: mareno-slide-exit-left 0.4s cubic-bezier(0.4, 0, 0.6, 1);
    z-index: 999999; /* En-dessous de la story entrante */
    transform: scale(1) !important;
  }
  
  .mareno-stories-view.mareno-slide-exit-right {
    animation: mareno-slide-exit-right 0.4s cubic-bezier(0.4, 0, 0.6, 1);
    z-index: 999999; /* En-dessous de la story entrante */
    transform: scale(1) !important;
  }
  
  /* Animation d'ouverture initiale avec fade (sans scale) */
  @keyframes mareno-fade-scale-enter {
    from {
      opacity: 0;
      filter: blur(4px);
    }
    to {
      opacity: 1;
      filter: blur(0);
    }
  }
  
  /* Animation de fermeture avec fade (sans scale) */
  @keyframes mareno-fade-scale-exit {
    from {
      opacity: 1;
      filter: blur(0);
    }
    to {
      opacity: 0;
      filter: blur(2px);
    }
  }
  
  /* Entrée depuis la droite (post suivant) avec fade */
  @keyframes mareno-slide-enter-right {
    from {
      opacity: 0;
      transform: translateX(100%);
      filter: blur(3px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
      filter: blur(0);
    }
  }
  
  /* Entrée depuis la gauche (post précédent) avec fade */
  @keyframes mareno-slide-enter-left {
    from {
      opacity: 0;
      transform: translateX(-100%);
      filter: blur(3px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
      filter: blur(0);
    }
  }
  
  /* Sortie vers la gauche (swipe vers la gauche) avec fade */
  @keyframes mareno-slide-exit-left {
    from {
      opacity: 1;
      transform: translateX(0);
      filter: blur(0);
    }
    to {
      opacity: 0;
      transform: translateX(-100%);
      filter: blur(2px);
    }
  }
  
  /* Sortie vers la droite (swipe vers la droite) avec fade */
  @keyframes mareno-slide-exit-right {
    from {
      opacity: 1;
      transform: translateX(0);
      filter: blur(0);
    }
    to {
      opacity: 0;
      transform: translateX(100%);
      filter: blur(2px);
    }
  }
  
  /* Header des stories */
  .mareno-stories-header {
    position: relative;
    padding: 15px;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 70%,
      transparent 100%
    );
    z-index: 10;
  }
  
  /* Barres de progression */
  .mareno-stories-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
  }
  
  .mareno-story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
  }
  
  .mareno-story-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 2px;
    transition: none;
  }
  
  /* Info de la story */
  .mareno-stories-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 40px;
  }
  
  .mareno-stories-info h3 {
    display: none; /* Titre déplacé en bas */
  }
  
  /* Conteneur des contrôles (boutons) */
  .mareno-stories-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 40px;
  }
  
  /* Bouton Play/Pause */
  .mareno-stories-playpause {
    background: transparent;
    border: none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    flex-shrink: 0;
    vertical-align: middle;
  }
  
  .mareno-stories-playpause:hover {
    background: transparent;
    border: none;
    transform: scale(1.05);
  }
  
  .mareno-stories-playpause:active {
    transform: scale(0.95);
  }
  
  /* Icône pause (deux barres ||) */
  .mareno-stories-playpause.mareno-playing .mareno-playpause-icon {
    width: 14px;
    height: 14px;
    position: relative;
    display: block;
  }
  
  .mareno-stories-playpause.mareno-playing .mareno-playpause-icon::before,
  .mareno-stories-playpause.mareno-playing .mareno-playpause-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 4px;
    height: 14px;
    background: #fff;
    border-radius: 1px;
  }
  
  .mareno-stories-playpause.mareno-playing .mareno-playpause-icon::before {
    left: 0;
  }
  
  .mareno-stories-playpause.mareno-playing .mareno-playpause-icon::after {
    right: 0;
  }
  
  /* Icône play (triangle ▶) */
  .mareno-stories-playpause.mareno-paused .mareno-playpause-icon {
    width: 0;
    height: 0;
    border-left: 10px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
    display: block;
  }
  
  /* Bouton de fermeture */
  .mareno-stories-close {
    background: transparent;
    border: none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;
    vertical-align: middle;
  }
  
  /* Icône de fermeture */
  .mareno-stories-close .mareno-close-icon {
    font-size: 36px;
    line-height: 35px;
    font-weight: 200;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: block;
    margin: 0;
    padding: 0;
    height: auto;
    width: auto;
    /* Ajustement pour centrer visuellement le caractère × */
    transform: translateY(2px);
  }
  
  .mareno-stories-close:hover {
    background: transparent;
    border: none;
  }
  
  .mareno-stories-close:hover .mareno-close-icon {
    transform: translateY(2px) scale(1.05);
  }
  
  .mareno-stories-close:active .mareno-close-icon {
    transform: translateY(2px) scale(0.95);
  }
  
  /* Contenu des stories */
  .mareno-stories-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 110px;
  }
  
  /* Fond flouté avec l'image */
  .mareno-stories-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(40px);
    transform: scale(1.2);
    opacity: 0.6;
    z-index: 1;
    transition: opacity 0.4s ease-in-out, background-image 0.4s ease-in-out;
    will-change: background-image;
  }
  
  /* Sur mobile vertical, étendre le background flou au header */
  @media (orientation: portrait) and (max-width: 900px) {
    .mareno-stories-background {
      top: 0;
      bottom: 0;
      /* Le background couvre maintenant toute la hauteur incluant le header */
    }
  
    .mareno-stories-header {
      background: transparent !important;
      /* Supprimer complètement le gradient pour laisser voir le flou */
    }
  
    /* Supprimer le gradient du header sur mobile vertical pour voir le flou */
    .mareno-stories-header::before {
      display: none;
    }
  }
  
  /* Animation de fondu pour le background sur mobile vertical */
  @media (orientation: portrait) and (max-width: 900px) {
    .mareno-stories-background.mareno-background-fade {
      animation: mareno-background-fade 0.4s ease-in-out;
    }
  }
  
  @keyframes mareno-background-fade {
    from {
      opacity: 0.6;
    }
    50% {
      opacity: 0.3;
    }
    to {
      opacity: 0.6;
    }
  }
  
  .mareno-stories-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
  }
  
  /* Animation de fondu pour les stories individuelles */
  .mareno-stories-media.mareno-story-fade-out {
    animation: mareno-story-fade-out 0.4s ease-in-out forwards;
  }
  
  .mareno-stories-media.mareno-story-fade-in {
    animation: mareno-story-fade-in 0.4s ease-in-out forwards;
  }
  
  /* Crossfade pour éviter le flash */
  .mareno-stories-media {
    position: relative;
    overflow: hidden;
  }
  
  /* Pendant le crossfade, les images sont en position absolute */
  .mareno-stories-media img.mareno-story-new-image,
  .mareno-stories-media img.mareno-story-fade-out-fast {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1) !important;
    will-change: opacity;
  }
  
  .mareno-story-new-image {
    opacity: 0;
    z-index: 2 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  
  .mareno-story-fade-out-fast {
    animation: mareno-story-fade-out-fast 0.5s ease-in-out both !important;
    z-index: 1 !important;
    transition: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    opacity: 1 !important;
    /* L'animation CSS définit l'opacité initiale (1) et finale (0) grâce à animation-fill-mode: both */
    will-change: opacity, transform;
  }
  
  /* Utiliser un sélecteur plus spécifique pour garantir que les styles s'appliquent */
  .mareno-stories-media img.mareno-story-fade-in-fast,
  .mareno-story-fade-in-fast {
    animation: mareno-story-fade-in-fast 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
      both !important;
    z-index: 2 !important;
    transition: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* L'animation démarre à opacity: 0 grâce à animation-fill-mode: both */
    /* L'animation CSS contrôle l'opacité pendant la transition */
    will-change: opacity, transform;
  }
  
  @keyframes mareno-story-fade-out {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  
  @keyframes mareno-story-fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes mareno-story-fade-out-fast {
    from {
      opacity: 1;
      transform: scale(1);
    }
    to {
      opacity: 0;
      transform: scale(1.02);
    }
  }
  
  @keyframes mareno-story-fade-in-fast {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .mareno-stories-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: scale(1) !important;
    transition: opacity 0.1s ease;
  }
  
  /* Désactiver la transition pour les animations de crossfade */
  .mareno-stories-media img.mareno-story-fade-out-fast {
    transition: none !important;
    /* L'animation CSS contrôle l'opacité via animation-fill-mode: both */
    /* L'opacité initiale (1) est définie dans le JavaScript */
  }
  
  /* Règle fusionnée avec .mareno-story-fade-in-fast ci-dessus */
  
  /* S'assurer que les images sans classes spéciales utilisent les styles par défaut */
  .mareno-stories-media
    img:not(.mareno-story-new-image):not(.mareno-story-fade-out-fast):not(
      .mareno-story-fade-in-fast
    ) {
    position: relative !important;
    object-fit: contain !important;
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  
  /* Les images utilisent contain et position relative par défaut, absolute pendant le crossfade */
  .mareno-stories-media
    img:not(.mareno-story-new-image):not(.mareno-story-fade-out-fast):not(
      .mareno-story-fade-in-fast
    ) {
    position: relative;
    object-fit: contain;
  }
  
  .mareno-stories-media img.mareno-story-new-image {
    position: absolute;
    object-fit: contain;
  }
  
  /* Vidéo d'arrière-plan (floue) */
  .mareno-stories-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    filter: blur(40px);
    opacity: 0.6;
    z-index: 1;
  }
  
  /* Vidéo principale (nette) */
  .mareno-stories-video-main {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
  }
  
  /* Description en bas */
  /* Background derrière la description et les boutons */
  .mareno-stories-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.7) 40%,
      rgba(0, 0, 0, 0.5) 70%,
      transparent 100%
    );
    padding: 20px;
    padding-top: 150px;
    padding-bottom: 80px;
    z-index: 10;
    transition: opacity 0.3s ease;
  }
  
  /* Actions dans les stories (like + commentaire) - au-dessus de la description */
  .mareno-stories-actions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 12px;
    z-index: 12;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Cacher les actions quand les commentaires sont ouverts */
  .mareno-stories-actions.mareno-hide-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
  }
  
  /* Titre dans la description */
  .mareno-stories-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
  }
  
  /* Date dans la description */
  .mareno-stories-date {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
  }
  
  .mareno-stories-description p {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  /* Styles pour les textes tronqués et complets */
  .mareno-description-text {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: block;
  }
  
  .mareno-description-text.mareno-truncated {
    display: block;
    overflow: hidden;
  }
  
  .mareno-description-text.mareno-full {
    display: none;
    overflow: hidden;
  }
  
  .mareno-read-more {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: inline;
    margin-left: 4px;
  }
  
  .mareno-read-more:hover,
  .mareno-read-more:focus {
    opacity: 0.8;
    outline: none;
  }
  
  .mareno-read-more:active {
    opacity: 0.6;
  }
  
  /* Badge unifié pour les stats des stories */
  .mareno-stories-stats-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Boutons individuels dans le badge */
  .mareno-story-like-btn,
  .mareno-story-comment-btn {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none !important;
    border-radius: 0 !important;
    padding: 4px 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative !important;
  }
  
  .mareno-story-like-btn:hover,
  .mareno-story-comment-btn:hover,
  .mareno-story-like-btn:focus,
  .mareno-story-comment-btn:focus,
  .mareno-story-like-btn:active,
  .mareno-story-comment-btn:active {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 15px !important;
    transform: scale(1.05) !important;
    outline: none !important;
    box-shadow: none !important;
  }
  
  .mareno-story-icon {
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  }
  
  .mareno-story-count {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  }
  
  /* Séparateur entre les boutons */
  .mareno-story-like-btn::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* État liké dans les stories */
  .mareno-story-like-btn.mareno-liked {
    background: rgba(255, 0, 0, 0.15) !important;
    border-radius: 15px !important;
  }
  
  .mareno-story-like-btn.mareno-liked .mareno-like-icon {
    filter: grayscale(0%) brightness(1.3)
      drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
  }
  
  /* Navigation des stories */
  .mareno-stories-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 10;
    pointer-events: none;
  }
  
  .mareno-stories-nav-prev,
  .mareno-stories-nav-next {
    flex: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
  }
  
  /* Cercle transparent avec flèche pour navigation précédente */
  .mareno-stories-nav-prev::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 1;
  }
  
  .mareno-stories-nav-prev::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.9);
    z-index: 2;
    transition: all 0.3s ease;
  }
  
  /* Cercle transparent avec flèche pour navigation suivante */
  .mareno-stories-nav-next::before {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 1;
  }
  
  .mareno-stories-nav-next::after {
    content: "";
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid rgba(255, 255, 255, 0.9);
    z-index: 2;
    transition: all 0.3s ease;
  }
  
  /* Effet hover pour les flèches */
  .mareno-stories-nav-prev:hover::before,
  .mareno-stories-nav-next:hover::before {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
  }
  
  .mareno-stories-nav-prev:hover::after,
  .mareno-stories-nav-next:hover::after {
    opacity: 1;
  }
  
  .mareno-stories-nav-prev:active::before,
  .mareno-stories-nav-next:active::before {
    transform: translateY(-50%) scale(0.95);
  }
  
  /* Masquer les flèches sur très petits écrans */
  @media (max-width: 400px) {
    .mareno-stories-nav-prev::before,
    .mareno-stories-nav-prev::after,
    .mareno-stories-nav-next::before,
    .mareno-stories-nav-next::after {
      opacity: 0.5;
    }
  }
  
  /* Volet de commentaires transparent */
  .mareno-comments-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .mareno-comments-panel.mareno-comments-open {
    transform: translateY(0);
  }
  
  .mareno-comments-handle {
    padding: 12px 0 8px 0;
    display: flex;
    justify-content: center;
    cursor: pointer;
  }
  
  .mareno-comments-bar {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
  }
  
  .mareno-comments-header {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mareno-comments-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .mareno-comments-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
  }
  
  .mareno-comments-close:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .mareno-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
  }
  
  .mareno-no-comments {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 40px 0;
    font-style: italic;
  }
  
  .mareno-comments-input-wrapper {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .mareno-comment-input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    outline: none;
  }
  
  .mareno-comment-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }
  
  .mareno-comment-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .mareno-send-comment {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  .mareno-send-comment:hover {
    background: rgba(255, 255, 255, 0.4);
  }
  
  .mareno-send-comment:active {
    transform: scale(0.95);
  }
  
  /* Item de commentaire */
  .mareno-comment-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: mareno-comment-slide-in 0.3s ease;
  }
  
  @keyframes mareno-comment-slide-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .mareno-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }
  
  .mareno-comment-author {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .mareno-comment-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
  }
  
  .mareno-comment-text {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    word-wrap: break-word;
  }
  
  /* ==========================================================================
     Modal de poste (mobile)
     ========================================================================== */
  .mareno-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mareno-modal-backdrop-post {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    animation: mareno-fade-in 0.3s ease;
  }
  
  .mareno-modal-content-post {
    position: relative;
    background: #fff;
    border-radius: var(--mareno-public-border-radius);
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: mareno-fade-in 0.3s ease;
  }
  
  .mareno-modal-header-post {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--mareno-public-gray-100);
    background: var(--mareno-public-primary);
    color: #fff;
    border-radius: var(--mareno-public-border-radius)
      var(--mareno-public-border-radius) 0 0;
  }
  
  .mareno-modal-header-post h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
  }
  
  .mareno-modal-close-post {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: var(--mareno-public-transition);
  }
  
  .mareno-modal-close-post:hover {
    transform: rotate(90deg);
    opacity: 0.8;
  }
  
  .mareno-modal-body-post {
    padding: 20px;
  }
  
  .mareno-modal-description {
    margin: 0 0 20px;
    color: var(--mareno-public-gray-700);
    line-height: 1.6;
    padding: 15px;
    background: var(--mareno-public-gray-100);
    border-radius: var(--mareno-public-border-radius);
  }
  
  .mareno-modal-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .mareno-media-item-modal {
    aspect-ratio: 1;
    border-radius: var(--mareno-public-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--mareno-public-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .mareno-media-item-modal:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  
  .mareno-media-item-modal img,
  .mareno-media-item-modal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* ==========================================================================
     Lightbox
     ========================================================================== */
  .mareno-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mareno-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    animation: mareno-fade-in 0.3s ease;
  }
  
  .mareno-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
  }
  
  .mareno-lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mareno-lightbox-media img,
  .mareno-lightbox-media video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--mareno-public-border-radius);
  }
  
  .mareno-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 1;
    transition: var(--mareno-public-transition);
  }
  
  .mareno-lightbox-close:hover {
    color: var(--mareno-public-danger);
    transform: rotate(90deg);
  }
  
  .mareno-lightbox-prev,
  .mareno-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--mareno-public-gray-900);
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--mareno-public-transition);
  }
  
  .mareno-lightbox-prev:hover,
  .mareno-lightbox-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
  }
  
  .mareno-lightbox-prev {
    left: 20px;
  }
  
  .mareno-lightbox-next {
    right: 20px;
  }
  
  .mareno-lightbox-counter {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 15px;
    border-radius: 15px;
  }
  
  body.mareno-no-scroll {
    overflow: hidden;
  }
  
  /* ==========================================================================
     Messages
     ========================================================================== */
  .mareno-public-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--mareno-public-border-radius);
    border-left: 4px solid;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .mareno-public-message.show {
    transform: translateX(0);
    opacity: 1;
  }
  
  .mareno-message-success {
    background: #e7f5ec;
    border-left-color: var(--mareno-public-success);
    color: var(--mareno-public-success);
  }
  
  .mareno-message-error {
    background: #fde7e8;
    border-left-color: var(--mareno-public-danger);
    color: var(--mareno-public-danger);
  }
  
  /* ==========================================================================
     Loader
     ========================================================================== */
  .mareno-public-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--mareno-public-border-radius);
  }
  
  .mareno-public-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--mareno-public-gray-200);
    border-top-color: var(--mareno-public-primary);
    border-radius: 50%;
    animation: mareno-public-spin 0.8s linear infinite;
  }
  
  /* ==========================================================================
     Pas de données
     ========================================================================== */
  .mareno-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--mareno-public-gray-700);
    font-size: 16px;
    background: #fff;
    border-radius: var(--mareno-public-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* ==========================================================================
     Animations
     ========================================================================== */
  @keyframes mareno-fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes mareno-fade-slide-in {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes mareno-public-spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* ==========================================================================
     Responsive - Timeline Horizontale pour Mobile
     ========================================================================== */
  @media (max-width: 768px) {
    .mareno-public-wrapper {
      padding: 15px 15px 340px 15px; /* Ajout d'espace en bas pour timeline + barre */
      height: auto;
      overflow: visible;
    }
  
    .mareno-public-stats {
      grid-template-columns: 1fr;
      gap: 15px;
    }
  
    /* Barre de progression avec brouette (mobile) */
    .mareno-mobile-progress-bar {
      position: fixed;
      bottom: calc(env(safe-area-inset-bottom, 0px) + 176px);
      left: 0;
      right: 0;
      width: auto;
      height: 48px;
      z-index: 101;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--mareno-glass-base);
      padding: 6px 22px;
      box-sizing: border-box;
      margin: 0 auto;
      border-radius: 16px 16px 0px 0px;
      overflow: hidden;
      border: 1px solid var(--mareno-glass-border);
      box-shadow: 0 22px 42px rgba(12, 21, 40, 0.45);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      color: #fff;
    }
  
    .mareno-mobile-progress-bar::before {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--mareno-glass-overlay);
      z-index: -1;
    }
  
    .mareno-progress-track {
      flex: 1;
      height: 6px;
      background: rgba(255, 255, 255, 0.18);
      position: relative;
      overflow: visible;
      margin: 0;
      border-radius: 999px;
    }
  
    .mareno-progress-fill {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      background: linear-gradient(
        90deg,
        rgba(88, 191, 255, 0.95) 0%,
        rgba(57, 143, 255, 0.95) 100%
      );
      border-radius: 999px;
      width: 0;
      transition: width 0.3s ease;
      box-shadow: 0 6px 18px rgba(57, 143, 255, 0.45);
    }
  
    .mareno-progress-icon {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 0;
      background: rgba(10, 18, 33, 0.65);
      border-radius: 999px;
      padding: 6px 14px 6px 10px;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: left 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 14px 30px rgba(8, 15, 30, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.2);
      cursor: grab;
      user-select: none;
      touch-action: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
    }
  
    .mareno-progress-icon:active {
      cursor: grabbing;
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 18px 35px rgba(8, 15, 30, 0.6);
    }
  
    .mareno-progress-icon img {
      width: 14px;
      height: 14px;
      object-fit: contain;
      filter: brightness(0) invert(1);
    }
  
    .mareno-progress-icon-fallback {
      font-size: 12px;
    }
  
    .mareno-progress-date {
      color: #fff;
      font-size: 8px;
      font-weight: 700;
      letter-spacing: 0.3px;
      white-space: nowrap;
    }
  
    /* Timeline horizontale fixe en bas */
    .mareno-timeline {
      position: fixed !important;
      bottom: env(safe-area-inset-bottom, 0px) !important;
      left: 0px !important;
      right: 0px !important;
      display: flex !important;
      flex-direction: row !important;
      padding: 22px 24px !important;
      height: auto !important;
      overflow-y: visible !important;
      overflow-x: auto !important;
      gap: 42px !important;
      -webkit-overflow-scrolling: touch !important;
      background: var(--mareno-glass-base) !important;
      border: 1px solid var(--mareno-glass-border) !important;
      box-shadow: 0 -24px 46px rgba(10, 18, 33, 0.45) !important;
      backdrop-filter: blur(26px) saturate(185%) !important;
      -webkit-backdrop-filter: blur(26px) saturate(185%) !important;
      z-index: 100 !important;
      touch-action: pan-x !important;
      pointer-events: auto !important;
    }
  
    .mareno-timeline::before {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--mareno-glass-overlay);
      z-index: -1;
    }
  
    /* Masquer la scrollbar de la timeline sur mobile */
    .mareno-timeline::-webkit-scrollbar {
      display: none;
    }
  
    .mareno-timeline {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
  
    /* Indicateur de scroll supprimé (remplacé par barre de progression) */
  
    /* Masquer la ligne horizontale de la timeline sur mobile */
    .mareno-timeline::before {
      display: none;
    }
  
    /* Élément de timeline horizontal */
    .mareno-timeline-item {
      flex: 0 0 230px;
      min-width: 230px;
      margin-bottom: 0;
      flex-direction: column;
      animation: mareno-fade-slide-up 0.5s ease forwards;
      position: relative;
    }
  
    /* Ligne reliant les postes sur mobile */
    .mareno-timeline-item::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: calc(100% + 50px);
      height: 3px;
      background: var(--mareno-public-primary);
      transform: translateY(-50%);
      z-index: -1;
    }
  
    .mareno-timeline-item:last-child::after {
      display: none;
    }
  
    /* Masquer les marqueurs par défaut sur mobile */
    .mareno-timeline-marker {
      display: none;
    }
  
    /* Point entre les postes (sauf avant le premier) */
    .mareno-timeline-item:not(:first-child)::before {
      content: "";
      position: absolute;
      left: -20px;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 12px;
      height: 12px;
      background: var(--mareno-public-primary);
      border-radius: 50%;
      box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9),
        0 0 0 6px rgba(34, 113, 177, 0.3);
      z-index: 2;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
  
    /* Assurer que le contenu du poste passe au-dessus de la ligne */
    .mareno-timeline-content {
      position: relative;
      z-index: 1;
    }
  
    .mareno-public-post {
      position: relative;
      z-index: 1;
      background: rgba(17, 30, 56, 0.55);
      border-radius: 22px;
      box-shadow: 0 18px 44px rgba(9, 17, 33, 0.35);
      backdrop-filter: blur(22px) saturate(170%);
      -webkit-backdrop-filter: blur(22px) saturate(170%);
      color: #eef4ff;
    }
  
    /* Masquer les dates individuelles sur mobile */
    .mareno-timeline-date {
      display: none;
    }
  
    /* Ajustement du contenu */
    .mareno-timeline-content {
      width: 100%;
    }
  
    .mareno-public-post {
      padding: 0;
      border-left: none;
      border-top: none;
    }
  
    .mareno-public-post:hover {
      transform: translateY(-5px);
    }
  
    /* Ajuster la vignette pour qu'elle remplisse toute la carte */
    .mareno-public-media-preview {
      margin-top: 0;
      border-radius: 8px;
      overflow: hidden;
    }
  
    .mareno-media-thumbnail {
      position: relative;
    }
  
    .mareno-media-thumbnail > img,
    .mareno-media-thumbnail > .mareno-video-thumb {
      height: 140px !important;
      width: 100%;
      object-fit: cover;
    }
  
    /* Barre de statistiques mobile - en overlay sur la vignette */
    .mareno-mobile-post-stats {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      display: flex;
      align-items: center;
      justify-content: space-evenly;
      padding: 8px 12px;
      border-radius: 0 0 4px 4px;
      background: rgba(35, 45, 65, 1);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      box-shadow: 0 -4px 16px rgba(10, 18, 33, 0.3);
      color: #fff;
      overflow: hidden;
    }
  
    .mareno-mobile-stat-item {
      display: flex;
      align-items: center;
      gap: 4px;
    }
  
    /* Bouton like cliquable */
    .mareno-like-btn {
      background: none !important;
      background-color: transparent !important;
      border: none !important;
      border-color: transparent !important;
      padding: 0 !important;
      margin: 0 !important;
      cursor: pointer !important;
      transition: transform 0.2s ease !important;
      outline: none !important;
      box-shadow: none !important;
      color: inherit !important;
      -webkit-tap-highlight-color: transparent !important;
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      user-select: none;
    }
  
    .mareno-like-btn:focus,
    .mareno-like-btn:hover,
    .mareno-like-btn:active {
      outline: none !important;
      box-shadow: none !important;
      background: none !important;
      background-color: transparent !important;
      border: none !important;
      border-color: transparent !important;
      color: inherit !important;
    }
  
    .mareno-like-btn:active {
      transform: scale(0.95) !important;
    }
  
    .mareno-like-btn.mareno-liking {
      pointer-events: none;
      opacity: 0.7;
    }
  
    /* État non liké - cœur gris */
    .mareno-like-btn .mareno-like-icon {
      filter: grayscale(100%);
      opacity: 0.5;
      transition: all 0.3s ease;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      pointer-events: none;
    }
  
    /* État liké - cœur rouge vif */
    .mareno-like-btn.mareno-liked .mareno-like-icon {
      filter: grayscale(0%) brightness(1.3) saturate(1.5);
      opacity: 1;
      text-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
    }
  
    /* Animation au clic */
    .mareno-like-icon.mareno-like-animation {
      animation: mareno-heart-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
  
    @keyframes mareno-heart-pop {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.5) rotate(10deg);
      }
      100% {
        transform: scale(1) rotate(0deg);
      }
    }
  
    /* Effet hover sur like */
    .mareno-like-btn:hover .mareno-like-icon {
      filter: grayscale(50%);
      opacity: 0.8;
      transform: scale(1.1);
    }
  
    .mareno-like-btn.mareno-liked:hover .mareno-like-icon {
      filter: grayscale(0%) brightness(1.4) saturate(1.6);
      transform: scale(1.1);
    }
  
    .mareno-stat-icon {
      font-size: 12px;
      line-height: 1;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
  
    .mareno-stat-count {
      font-size: 11px;
      font-weight: 600;
      color: #fff;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
  
    .mareno-like-count {
      pointer-events: none;
    }
  
    /* Bouton commentaire cliquable */
    .mareno-comment-btn {
      background: none !important;
      background-color: transparent !important;
      border: none !important;
      border-color: transparent !important;
      padding: 0 !important;
      margin: 0 !important;
      cursor: pointer !important;
      transition: transform 0.2s ease !important;
      outline: none !important;
      box-shadow: none !important;
      color: inherit !important;
      -webkit-tap-highlight-color: transparent !important;
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      user-select: none;
    }
  
    .mareno-comment-btn:focus,
    .mareno-comment-btn:hover,
    .mareno-comment-btn:active {
      outline: none !important;
      box-shadow: none !important;
      background: none !important;
      background-color: transparent !important;
      border: none !important;
      border-color: transparent !important;
      color: inherit !important;
    }
  
    .mareno-comment-btn:active {
      transform: scale(0.95) !important;
    }
  
    .mareno-comment-count {
      pointer-events: none;
    }
  
    .mareno-public-post-header h3 {
      font-size: 18px;
    }
  
    /* Conteneur des boutons d'authentification */
    .mareno-auth-buttons {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 200;
      display: flex;
      align-items: center;
      gap: 10px;
    }
  
    /* Masquer le menu déroulant quand les stories sont ouvertes */
    body.mareno-no-scroll .mareno-auth-buttons {
      display: none !important;
    }
  
    /* Bouton de connexion mobile */
    .mareno-login-btn {
      background: rgba(255, 255, 255, 0.9);
      border: none;
      border-radius: 25px;
      padding: 10px 15px;
      font-size: 14px;
      font-weight: 600;
      color: var(--mareno-public-primary);
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(10px);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 6px;
    }
  
    .mareno-login-btn:hover {
      background: rgba(255, 255, 255, 1);
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
  
    /* Bouton menu */
    .mareno-menu-btn {
      background: rgba(255, 255, 255, 0.9);
      border: none;
      border-radius: 25px;
      padding: 10px 15px;
      font-size: 16px;
      color: var(--mareno-public-primary);
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(10px);
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 45px;
      height: 45px;
      position: relative;
      z-index: 201;
      /* Améliorations pour mobile */
      -webkit-tap-highlight-color: rgba(34, 113, 177, 0.3);
      touch-action: manipulation;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      pointer-events: auto;
      overflow: visible;
    }
  
    .mareno-menu-btn i {
      font-size: 18px;
      line-height: 1;
      display: inline-block !important;
      opacity: 1 !important;
      visibility: visible !important;
      color: var(--mareno-public-primary) !important;
      position: relative;
      z-index: 1;
      width: auto;
      height: auto;
    }
  
    /* Fallback si Font Awesome n'est pas chargé - affiché par défaut */
    .mareno-menu-icon-fallback {
      display: inline-block;
      font-size: 20px;
      line-height: 1;
      color: var(--mareno-public-primary);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-weight: bold;
      z-index: 0;
      opacity: 1;
      visibility: visible;
    }
  
    /* Masquer le fallback si Font Awesome est disponible et l'icône est visible */
    .mareno-menu-btn i.fa-bars:not(:empty) {
      position: relative;
      z-index: 2;
    }
  
    /* Par défaut, afficher les deux et JavaScript décidera */
    .mareno-menu-btn i.fa-bars {
      z-index: 2;
    }
  
    .mareno-menu-btn i.fa-bars:not(:empty) ~ .mareno-menu-icon-fallback {
      /* JavaScript gérera l'affichage */
    }
  
    /* Si l'icône Font Awesome est vide ou invisible, afficher le fallback */
    .mareno-menu-btn i.fa-bars:empty,
    .mareno-menu-btn i.fa-bars[style*="display: none"],
    .mareno-menu-btn i.fa-bars[style*="visibility: hidden"] {
      display: none !important;
    }
  
    .mareno-menu-btn i.fa-bars:empty ~ .mareno-menu-icon-fallback,
    .mareno-menu-btn
      i.fa-bars[style*="display: none"]
      ~ .mareno-menu-icon-fallback,
    .mareno-menu-btn
      i.fa-bars[style*="visibility: hidden"]
      ~ .mareno-menu-icon-fallback {
      display: inline-block !important;
    }
  
    /* Assurer qu'au moins une icône est visible */
    .mareno-menu-btn:empty:before {
      content: "☰";
      display: block;
      font-size: 20px;
      line-height: 1;
      color: var(--mareno-public-primary);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  
    .mareno-menu-btn:hover,
    .mareno-menu-btn:active,
    .mareno-menu-btn:focus {
      background: rgba(255, 255, 255, 1);
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
  
    .mareno-menu-btn:hover i,
    .mareno-menu-btn:active i,
    .mareno-menu-btn:focus i {
      opacity: 1 !important;
      visibility: visible !important;
      color: var(--mareno-public-primary) !important;
    }
  
    /* Modal de connexion */
    .mareno-login-modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 32px 20px;
      background: rgba(10, 12, 18, 0.55);
      backdrop-filter: blur(10px);
      z-index: 1000001; /* Au-dessus des stories (z-index: 999999-1000000) */
    }
  
    .mareno-login-modal.mareno-login-open {
      display: flex;
      animation: mareno-fade-in 0.18s ease forwards;
    }
  
    .mareno-login-content {
      position: relative;
      width: min(400px, 100%);
      max-height: calc(100vh - 48px);
      border-radius: 24px;
      padding: 30px;
      background: rgba(20, 24, 34, 0.92);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
      color: #f5f7fb;
      border: 1px solid rgba(255, 255, 255, 0.08);
      overflow: hidden;
      transform: scale(0.9);
      transition: transform 0.3s ease;
    }
  
    .mareno-login-modal.mareno-login-open .mareno-login-content {
      transform: scale(1);
    }
  
    .mareno-login-header {
      text-align: center;
      margin-bottom: 25px;
    }
  
    .mareno-login-header h3 {
      margin: 0;
      font-size: 24px;
      font-weight: 700;
      color: #2271b1;
    }
  
    .mareno-login-tabs {
      display: flex;
      margin-bottom: 25px;
      border-radius: 10px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.1);
    }
  
    .mareno-login-tab {
      flex: 1;
      padding: 12px;
      text-align: center;
      background: transparent;
      border: none;
      font-size: 16px;
      font-weight: 600;
      color: rgba(245, 247, 251, 0.7);
      cursor: pointer;
      transition: all 0.3s ease;
    }
  
    .mareno-login-tab.active {
      background: var(--mareno-public-primary);
      color: #fff;
    }
  
    .mareno-login-form {
      display: none;
    }
  
    .mareno-login-form.active {
      display: block;
    }
  
    .mareno-form-group {
      margin-bottom: 20px;
    }
  
    .mareno-form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: rgba(245, 247, 251, 0.9);
    }
  
    .mareno-form-group input {
      width: 100%;
      padding: 12px 15px;
      border: 2px solid rgba(255, 255, 255, 0.15);
      border-radius: 10px;
      font-size: 16px;
      background: rgba(255, 255, 255, 0.05);
      color: #f5f7fb;
      transition: border-color 0.3s ease, background 0.3s ease;
    }
  
    .mareno-form-group input:focus {
      outline: none;
      border-color: #2271b1;
      background: rgba(255, 255, 255, 0.08);
    }
  
    .mareno-form-group input::placeholder {
      color: rgba(245, 247, 251, 0.5);
    }
  
    .mareno-login-submit {
      width: 100%;
      padding: 15px;
      background: linear-gradient(135deg, #2271b1, #135e96);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 10px 22px rgba(34, 113, 177, 0.35);
    }
  
    .mareno-login-submit:hover {
      background: linear-gradient(135deg, #135e96, #0f4d75);
      transform: translateY(-2px);
      box-shadow: 0 14px 32px rgba(34, 113, 177, 0.4);
    }
  
    .mareno-login-close {
      position: absolute;
      top: 14px;
      right: 14px;
      background: none;
      border: none;
      font-size: 20px;
      line-height: 1;
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      transition: color 0.2s ease, transform 0.2s ease;
    }
  
    .mareno-login-close:hover,
    .mareno-login-close:focus-visible {
      color: rgba(255, 255, 255, 1);
      transform: scale(1.08);
      outline: none;
    }
  
    /* Menu utilisateur connecté */
    .mareno-user-menu {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1000001;
    }
  
    .mareno-user-dropdown {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      background: rgba(20, 24, 34, 0.95);
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      padding: 20px;
      min-width: 220px;
      max-width: calc(100vw - 40px);
      display: none;
      border: 1px solid rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      z-index: 201;
      /* Améliorations pour mobile */
      pointer-events: auto;
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }
  
    /* Menu déroulant pour les invités */
    .mareno-guest-dropdown {
      /* Même style que le menu utilisateur */
    }
  
    .mareno-login-btn-dropdown {
      width: 100%;
      padding: 12px;
      background: linear-gradient(135deg, #2271b1, #135e96);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
      margin-bottom: 12px;
      -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
      touch-action: manipulation;
    }
  
    .mareno-login-btn-dropdown:hover,
    .mareno-login-btn-dropdown:active {
      background: linear-gradient(135deg, #135e96, #0f4d75);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
    }
  
    .mareno-user-dropdown[style*="display: block"],
    .mareno-user-dropdown[style*="display:flex"] {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  
    /* Assurer que le menu est visible sur mobile */
    @media (max-width: 900px) {
      .mareno-user-dropdown {
        position: fixed;
        top: 75px;
        right: 20px;
        left: auto;
        max-width: calc(100vw - 40px);
        z-index: 201;
        pointer-events: auto;
      }
  
      .mareno-menu-btn {
        /* Augmenter la zone de clic sur mobile */
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
      }
    }
  
    .mareno-user-info {
      padding: 0 0 16px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
  
    .mareno-user-info i {
      font-size: 32px;
      color: #2271b1;
      flex-shrink: 0;
    }
  
    .mareno-user-info-text {
      flex: 1;
      min-width: 0;
    }
  
    .mareno-user-info strong {
      color: #2271b1;
      font-size: 16px;
      display: block;
      margin-bottom: 4px;
    }
  
    .mareno-user-info small {
      color: rgba(245, 247, 251, 0.7);
      font-size: 13px;
      display: block;
      word-break: break-word;
    }
  
    .mareno-contact-btn {
      width: 100%;
      padding: 12px;
      background: linear-gradient(135deg, #2271b1, #135e96);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
      margin-bottom: 12px;
    }
  
    .mareno-contact-btn:hover {
      background: linear-gradient(135deg, #135e96, #0f4d75);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
    }
  
    .mareno-logout-btn {
      width: 100%;
      padding: 12px;
      background: linear-gradient(135deg, #dc3545, #c82333);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }
  
    .mareno-logout-btn:hover {
      background: linear-gradient(135deg, #c82333, #bd2130);
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
    }
  
    .mareno-credits {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      text-align: center;
      font-size: 12px;
      color: rgba(245, 247, 251, 0.6);
    }
  
    .mareno-credits a {
      color: #2271b1;
      text-decoration: none;
      transition: color 0.2s ease;
    }
  
    .mareno-credits a:hover {
      color: #135e96;
      text-decoration: underline;
    }
  
    /* Modal de contact */
    .mareno-contact-modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 32px 20px;
      background: rgba(10, 12, 18, 0.55);
      backdrop-filter: blur(10px);
      z-index: 1000001; /* Au-dessus des stories (z-index: 999999-1000000) */
    }
  
    .mareno-contact-modal.mareno-contact-open {
      display: flex;
      animation: mareno-fade-in 0.18s ease forwards;
    }
  
    .mareno-contact-content {
      position: relative;
      width: min(500px, 100%);
      max-height: calc(100vh - 48px);
      border-radius: 24px;
      padding: 32px;
      background: rgba(20, 24, 34, 0.92);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
      color: #f5f7fb;
      border: 1px solid rgba(255, 255, 255, 0.08);
      overflow: hidden;
      transform: scale(0.9);
      transition: transform 0.3s ease;
    }
  
    .mareno-contact-modal.mareno-contact-open .mareno-contact-content {
      transform: scale(1);
    }
  
    .mareno-contact-close {
      position: absolute;
      top: 14px;
      right: 14px;
      background: none;
      border: none;
      font-size: 20px;
      line-height: 1;
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      transition: color 0.2s ease, transform 0.2s ease;
    }
  
    .mareno-contact-close:hover,
    .mareno-contact-close:focus-visible {
      color: rgba(255, 255, 255, 1);
      transform: scale(1.08);
      outline: none;
    }
  
    .mareno-contact-header {
      margin-bottom: 24px;
    }
  
    .mareno-contact-header h3 {
      margin: 0 0 8px 0;
      font-size: 24px;
      font-weight: 700;
      color: #2271b1;
    }
  
    .mareno-contact-header p {
      margin: 0;
      font-size: 14px;
      line-height: 1.6;
      color: rgba(245, 247, 251, 0.75);
    }
  
    .mareno-contact-form textarea {
      width: 100%;
      padding: 12px 15px;
      border: 2px solid rgba(255, 255, 255, 0.15);
      border-radius: 10px;
      font-size: 16px;
      font-family: inherit;
      background: rgba(255, 255, 255, 0.05);
      color: #f5f7fb;
      transition: border-color 0.3s ease, background 0.3s ease;
      resize: vertical;
      min-height: 120px;
    }
  
    .mareno-contact-form textarea:focus {
      outline: none;
      border-color: #2271b1;
      background: rgba(255, 255, 255, 0.08);
    }
  
    .mareno-contact-form textarea::placeholder {
      color: rgba(245, 247, 251, 0.5);
    }
  
    .mareno-contact-feedback {
      display: none;
      margin-bottom: 16px;
      padding: 12px 16px;
      border-radius: 10px;
      font-size: 14px;
      line-height: 1.5;
    }
  
    .mareno-contact-feedback.mareno-success {
      display: block;
      background: rgba(0, 163, 42, 0.2);
      border: 1px solid rgba(0, 163, 42, 0.4);
      color: #4caf50;
    }
  
    .mareno-contact-feedback.mareno-error {
      display: block;
      background: rgba(214, 54, 56, 0.2);
      border: 1px solid rgba(214, 54, 56, 0.4);
      color: #f44336;
    }
  
    .mareno-contact-submit {
      width: 100%;
      padding: 15px;
      background: linear-gradient(135deg, #2271b1, #135e96);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 10px 22px rgba(34, 113, 177, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
  
    .mareno-contact-submit:hover:not(:disabled) {
      background: linear-gradient(135deg, #135e96, #0f4d75);
      transform: translateY(-2px);
      box-shadow: 0 14px 32px rgba(34, 113, 177, 0.4);
    }
  
    .mareno-contact-submit:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
  
    /* Plan 3D de la maison sur mobile */
    .mareno-3d-house-plan {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 160px; /* Laisser de l'espace pour la timeline en bas */
      height: auto;
      background: transparent;
      z-index: 50;
      padding: 0;
      box-shadow: none;
      border-radius: 0;
      overflow: visible;
    }
  
    /* Améliorer la qualité de l'image du plan sur mobile */
    .mareno-house-image {
      /* Forcer une meilleure qualité de rendu sur mobile */
      image-rendering: -webkit-optimize-contrast;
      image-rendering: auto;
      -ms-interpolation-mode: bicubic;
      /* Préserver la netteté */
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
  
    .mareno-house-container {
      width: 100%;
      height: 100%;
      position: relative;
      border-radius: 0;
      overflow: visible; /* Permettre le déplacement libre */
      background: transparent;
      backdrop-filter: none;
      cursor: grab;
      user-select: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .mareno-house-container:active {
      cursor: grabbing;
    }
  
    .mareno-house-image-wrapper {
      width: 100%;
      height: 100%;
      position: relative;
      overflow: visible; /* Permettre le déplacement libre */
      display: flex;
      align-items: center;
      justify-content: center;
      /* Définir le point d'origine de la transformation au centre */
      transform-origin: center center;
    }
  
    .mareno-house-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      opacity: 1;
      pointer-events: none;
      user-select: none;
      position: absolute;
      /* Centrer l'image dans le wrapper en utilisant margin auto au lieu de transform */
      /* pour éviter les conflits avec le transform du wrapper */
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      margin: auto;
      min-width: 100%;
      min-height: 100%;
      max-width: none;
      max-height: none;
      overflow: visible;
      /* Assurer que l'image remplit toujours le conteneur */
      background-color: transparent;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      /* Améliorer la qualité de rendu de l'image sur mobile */
      image-rendering: -webkit-optimize-contrast;
      image-rendering: auto;
      -ms-interpolation-mode: bicubic;
      /* Préserver la netteté lors du zoom */
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
  
    .mareno-house-container.mareno-no-plan {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
  
    .mareno-house-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1;
      pointer-events: none;
    }
  
    .mareno-room-point {
      position: absolute;
      transform: translate(-50%, -50%);
      cursor: pointer;
      z-index: 50;
      pointer-events: auto;
    }
  
    .mareno-room-point-pulse {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      animation: mareno-pulse 2s infinite;
    }
  
    @keyframes mareno-pulse {
      0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
      }
      100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
      }
    }
  
    .mareno-room-point-inner {
      position: relative;
      width: 45px;
      height: 45px;
      background: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
      transition: transform 0.3s ease;
    }
  
    .mareno-room-point:active .mareno-room-point-inner {
      transform: scale(0.9);
    }
  
    .mareno-room-count {
      font-size: 20px;
      font-weight: 700;
      color: var(--mareno-public-primary);
    }
  
    .mareno-room-label {
      position: absolute;
      top: 50px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 255, 255, 0.95);
      color: #333;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
  
    /* Ajuster l'espace en haut pour le plan 3D */
    .mareno-public-wrapper {
      padding-top: 240px !important;
    }
  
    /* Modal de catégorie */
    .mareno-category-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  
    .mareno-modal-backdrop-category {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(5px);
    }
  
    .mareno-modal-content-category {
      position: relative;
      background: #fff;
      border-radius: 16px;
      width: 90%;
      max-width: 500px;
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      z-index: 10001;
    }
  
    .mareno-modal-header-category {
      padding: 20px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #fff;
      border-radius: 16px 16px 0 0;
    }
  
    .mareno-modal-header-category h3 {
      margin: 0;
      font-size: 22px;
    }
  
    .mareno-category-modal-close {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: #fff;
      font-size: 28px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      transition: background 0.3s ease;
    }
  
    .mareno-category-modal-close:hover {
      background: rgba(255, 255, 255, 0.3);
    }
  
    .mareno-modal-body-category {
      padding: 15px;
      overflow-y: auto;
      max-height: calc(80vh - 81px);
    }
  
    .mareno-category-post-item {
      display: flex;
      gap: 15px;
      padding: 15px;
      background: #f8f9fa;
      border-radius: 12px;
      margin-bottom: 12px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
  
    .mareno-category-post-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
  
    .mareno-category-post-thumb {
      width: 80px;
      height: 80px;
      border-radius: 8px;
      overflow: hidden;
      flex-shrink: 0;
    }
  
    .mareno-category-post-thumb img,
    .mareno-category-post-thumb video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  
    .mareno-category-post-info {
      flex: 1;
      min-width: 0;
    }
  
    .mareno-category-post-info h4 {
      margin: 0 0 5px 0;
      font-size: 16px;
      color: #333;
    }
  
    .mareno-category-post-date {
      font-size: 12px;
      color: #666;
      margin: 0 0 8px 0;
    }
  
    .mareno-category-post-desc {
      font-size: 13px;
      color: #666;
      margin: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
  
    /* Masquer la grille complète sur mobile, afficher la vignette */
    .mareno-desktop-only {
      display: none !important;
    }
  
    .mareno-public-media-preview {
      display: block;
    }
  
    /* Masquer le badge de comptage sur mobile */
    .mareno-media-count-badge {
      display: none !important;
    }
  
    /* Masquer le titre normal et la description sur mobile (titre est sur la vignette) */
    .mareno-public-post-header {
      display: none;
    }
  
    .mareno-public-description {
      display: none;
    }
  
    .mareno-public-media-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px;
    }
  
    /* Ajustements pour la modal sur mobile */
    .mareno-modal-content-post {
      max-width: 95%;
      max-height: 90vh;
    }
  
    .mareno-modal-media-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 10px;
    }
  
    .mareno-lightbox-prev,
    .mareno-lightbox-next {
      width: 40px;
      height: 40px;
      font-size: 30px;
    }
  
    .mareno-lightbox-prev {
      left: 10px;
    }
  
    .mareno-lightbox-next {
      right: 10px;
    }
  }
  
  @keyframes mareno-fade-slide-up {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes mareno-pulse {
    0%,
    100% {
      transform: translateY(-50%) scale(1);
      opacity: 1;
    }
    50% {
      transform: translateY(-50%) scale(1.1);
      opacity: 0.8;
    }
  }
  
  /* ==========================================================================
     Plan maison – compatibilité mobile/iOS
     ========================================================================== */
  .mareno-house-container {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    position: relative;
    overflow: hidden;
    touch-action: none;
  }
  
  .mareno-house-image-wrapper {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    will-change: transform;
  }
  
  .mareno-house-image {
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
  }
  
  .mareno-plan-floor-switcher {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 236px);
    display: flex;
    gap: 8px;
    z-index: 120;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    padding: 6px;
    backdrop-filter: blur(6px);
    width: fit-content;
  }
  
  .mareno-plan-floor-switcher button {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(34, 113, 177, 0.85);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  
  .mareno-plan-floor-switcher button:hover {
    background: rgba(34, 113, 177, 1);
    transform: translateY(-1px);
  }
  
  .mareno-plan-floor-switcher button.active {
    background: #fff;
    color: #2271b1;
  }
  
  .mareno-mobile-bell {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    padding: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    z-index: 140;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(6px);
  }
  
  .mareno-mobile-bell:hover,
  .mareno-mobile-bell:focus-visible {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
  }
  
  .mareno-mobile-bell:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
  }
  
  .mareno-bell-icon {
    width: 100%;
    height: 100%;
    background: url("../images/notification-unscreen.gif") center/contain
      no-repeat;
    image-rendering: auto;
  }
  
  .mareno-mobile-bell:hover .mareno-bell-icon,
  .mareno-mobile-bell:focus .mareno-bell-icon {
    filter: drop-shadow(0 6px 14px rgba(255, 224, 130, 0.45));
  }
  
  @media (max-width: 900px) and (orientation: portrait) {
    .mareno-mobile-bell {
      display: inline-flex;
    }
  }
  
  .mareno-notifications-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: rgba(10, 12, 18, 0.55);
    backdrop-filter: blur(10px);
    z-index: 400;
  }
  
  .mareno-notifications-modal.mareno-notifications-open {
    display: flex;
    animation: mareno-fade-in 0.18s ease forwards;
  }
  
  .mareno-notifications-dialog {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 48px);
    border-radius: 24px;
    padding: 32px 28px;
    background: rgba(20, 24, 34, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    color: #f5f7fb;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  
  .mareno-notifications-content {
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  }
  
  .mareno-notifications-content::-webkit-scrollbar {
    width: 6px;
  }
  
  .mareno-notifications-content::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .mareno-notifications-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
  }
  
  .mareno-notifications-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .mareno-notifications-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
  }
  
  .mareno-notifications-close:hover,
  .mareno-notifications-close:focus-visible {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.08);
    outline: none;
  }
  
  .mareno-notifications-content h3 {
    margin: 0 0 20px 0;
    padding-right: 40px;
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Ajustement pour mobile */
  @media (max-width: 768px) {
    .mareno-notifications-content h3 {
      font-size: 18px;
      padding-right: 35px;
      margin-bottom: 16px;
    }
  }
  
  .mareno-notifications-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(245, 247, 251, 0.85);
  }
  
  .mareno-notifications-intro {
    margin-bottom: 28px;
  }
  
  .mareno-notification-feedback {
    display: none;
    margin: 0 0 24px 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(13, 18, 30, 0.92);
    background: rgba(34, 113, 177, 0.85);
    border: 1px solid rgba(34, 113, 177, 0.7);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  }
  
  .mareno-notification-feedback.mareno-visible {
    display: block;
  }
  
  .mareno-notifications-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .mareno-notifications-option {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  
  .mareno-notifications-option + .mareno-notifications-option {
    border-top: none;
  }
  
  .mareno-notifications-option summary {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: rgba(245, 247, 251, 0.95);
    transition: background 0.2s ease;
  }
  
  .mareno-notifications-option[open] summary {
    background: rgba(255, 255, 255, 0.07);
  }
  
  .mareno-notifications-option summary::-webkit-details-marker {
    display: none;
  }
  
  .mareno-option-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
  }
  
  .mareno-option-title {
    flex: 1 1 auto;
  }
  
  .mareno-option-body {
    padding: 0 20px 24px;
  }
  
  .mareno-option-body p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(245, 247, 251, 0.8);
  }
  
  .mareno-notification-devices {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
  }
  
  .mareno-notification-device {
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 18px;
  }
  
  .mareno-notification-device summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    padding: 0;
  }
  
  .mareno-device-badge {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  
  .mareno-device-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
  }
  
  .mareno-notification-device summary::-webkit-details-marker {
    display: none;
  }
  
  .mareno-notification-device h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: rgba(245, 247, 251, 0.95);
    line-height: 1.4;
  }
  
  .mareno-notification-device[open] {
    background: transparent;
  }
  
  .mareno-notification-device[open] h5::after {
    content: "";
  }
  
  .mareno-notification-device > *:not(summary) {
    margin-top: 16px;
  }
  
  .mareno-notification-cta {
    margin-top: 12px;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2271b1, #135e96);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(34, 113, 177, 0.35);
    display: inline-block;
  }
  
  .mareno-notification-cta:hover,
  .mareno-notification-cta:focus-visible {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 32px rgba(34, 113, 177, 0.4);
    outline: none;
  }
  
  .mareno-notification-steps {
    margin: 0 0 12px 20px;
    padding: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(245, 247, 251, 0.85);
  }
  
  .mareno-notification-steps li {
    margin-bottom: 10px;
  }
  
  .mareno-notification-steps li:last-child {
    margin-bottom: 0;
  }
  
  .mareno-notification-tip {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(34, 113, 177, 0.95);
    background: rgba(34, 113, 177, 0.1);
    border: 1px solid rgba(34, 113, 177, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
  }
  
  body.mareno-modal-open {
    overflow: hidden;
  }
  
  @keyframes mareno-bell-swing {
    0%,
    100% {
      transform: rotate(0deg);
    }
    10% {
      transform: rotate(14deg);
    }
    20% {
      transform: rotate(-12deg);
    }
    30% {
      transform: rotate(9deg);
    }
    45% {
      transform: rotate(-6deg);
    }
    60% {
      transform: rotate(3deg);
    }
    75% {
      transform: rotate(-2deg);
    }
  }
  
  @keyframes mareno-fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @media (min-width: 1025px) {
    .mareno-plan-floor-switcher {
      position: absolute;
      left: auto;
      transform: none;
      right: 24px;
      bottom: 24px;
    }
  }
  
  .site-content {
    background: #121212;
  }
  