html, body
{
   height: 100%;
}
div#space
{
   width: 1px;
   height: 50%;
   margin-bottom: -679px;
   float:left
}
div#container
{
   width: 970px;
   height: 1358px;
   margin: 0 auto;
   position: relative;
   clear: left;
}
body
{
   background-color: #FFFFFF;
   color: #000000;
   font-family: Arial;
   font-weight: normal;
   font-size: 13px;
   line-height: 1.1875;
   margin: 0;
   padding: 0;
}
.top-buttons{
  position:fixed;
  top:20px;
  left:20px;
  display:flex;
  gap:12px;
  z-index:1000;
}

.rb-back-btn,
.rb-history-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 22px;
  border-radius:40px;
  font-weight:700;
  font-size:14px;
  letter-spacing:.05em;
  text-decoration:none;
  color:#fff;
  overflow:hidden;
  transition:all .3s ease;
  border:1px solid rgba(255,255,255,0.12);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.rb-back-btn{
  background:linear-gradient(135deg,#d91c2b,#ff5b5b);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    0 0 15px rgba(255,70,70,0.35);
}

.rb-history-btn{
  background:linear-gradient(135deg,#0a56c2,#3b82f6);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    0 0 15px rgba(59,130,246,0.35);
}

.rb-back-btn:hover,
.rb-history-btn:hover{
  transform:translateY(-3px) scale(1.04);
}

.rb-back-btn:hover{
  box-shadow:
    0 14px 30px rgba(0,0,0,0.4),
    0 0 25px rgba(255,80,80,0.6);
}

.rb-history-btn:hover{
  box-shadow:
    0 14px 30px rgba(0,0,0,0.4),
    0 0 25px rgba(59,130,246,0.6);
}

.rb-icon,
.rb-history-icon{
  transition:transform .3s ease;
}

.rb-back-btn:hover .rb-icon{
  transform:translateX(-4px);
}

.rb-history-btn:hover .rb-history-icon{
  transform:scale(1.1);
}

.rb-energy,
.rb-history-energy{
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform:translateX(-100%);
  animation:energyMove 2.6s linear infinite;
}

@media (max-width: 640px){
  .top-buttons{
    top:14px;
    left:14px;
    gap:8px;
    flex-wrap:wrap;
  }

  .rb-back-btn,
  .rb-history-btn{
    padding:11px 18px;
    font-size:13px;
  }
}

@keyframes energyMove{
  0%{ transform:translateX(-100%); }
  100%{ transform:translateX(200%); }
}
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

:root{
  --bg1:#07111f;
  --bg2:#0b1f3d;
  --bg3:#132b57;
  --text:#f5f8ff;
  --muted:rgba(240,245,255,0.78);
  --card:rgba(255,255,255,0.07);
  --border:rgba(255,255,255,0.1);
  --yellow:#ffd54f;
  --red1:#d91c2b;
  --red2:#ff5b5b;
  --blue1:#0a56c2;
  --blue2:#3b82f6;
}

html, body{
  min-height:100%;
}

body{
  font-family:"Inter", Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,210,80,0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(0,76,255,0.18), transparent 32%),
    linear-gradient(135deg, var(--bg1), var(--bg2) 55%, var(--bg3));
  overflow-x:hidden;
  padding:110px 16px 40px;
}

body::before,
body::after{
  content:"";
  position:fixed;
  border-radius:50%;
  filter:blur(30px);
  pointer-events:none;
  z-index:0;
}

body::before{
  width:280px;
  height:280px;
  top:40px;
  right:40px;
  background:rgba(255,213,79,0.08);
  animation:floatOrb 6s ease-in-out infinite;
}

body::after{
  width:220px;
  height:220px;
  bottom:50px;
  left:30px;
  background:rgba(59,130,246,0.12);
  animation:floatOrb 7s ease-in-out infinite reverse;
}

/* boutons fixes */
.top-buttons{
  position:fixed;
  top:20px;
  left:20px;
  display:flex;
  gap:12px;
  z-index:1000;
  max-width:calc(100% - 28px);
}

.rb-back-btn,
.rb-history-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 22px;
  border-radius:40px;
  font-weight:700;
  font-size:14px;
  letter-spacing:.05em;
  text-decoration:none;
  color:#fff;
  overflow:hidden;
  transition:all .3s ease;
  border:1px solid rgba(255,255,255,0.12);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.rb-back-btn{
  background:linear-gradient(135deg,var(--red1),var(--red2));
  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    0 0 15px rgba(255,70,70,0.35);
}

.rb-history-btn{
  background:linear-gradient(135deg,var(--blue1),var(--blue2));
  box-shadow:
    0 10px 25px rgba(0,0,0,0.35),
    0 0 15px rgba(59,130,246,0.35);
}

.rb-back-btn:hover,
.rb-history-btn:hover{
  transform:translateY(-3px) scale(1.04);
}

.rb-back-btn:hover{
  box-shadow:
    0 14px 30px rgba(0,0,0,0.4),
    0 0 25px rgba(255,80,80,0.6);
}

.rb-history-btn:hover{
  box-shadow:
    0 14px 30px rgba(0,0,0,0.4),
    0 0 25px rgba(59,130,246,0.6);
}

.rb-icon,
.rb-history-icon{
  transition:transform .3s ease;
}

.rb-back-btn:hover .rb-icon{
  transform:translateX(-4px);
}

.rb-history-btn:hover .rb-history-icon{
  transform:scale(1.1);
}

.rb-energy,
.rb-history-energy{
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform:translateX(-100%);
  animation:energyMove 2.6s linear infinite;
}

/* layout */
#container{
  position:relative;
  z-index:1;
  width:min(1280px, 100%);
  margin:0 auto;
}

.hero{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  padding:42px 34px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 30px 80px rgba(0,0,0,0.35);
  animation:fadeUp .9s ease-out;
  margin-bottom:28px;
}

.hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:linear-gradient(135deg, rgba(255,204,0,0.2), rgba(0,98,255,0.05), rgba(255,59,59,0.2));
  filter:blur(16px);
  opacity:.7;
  pointer-events:none;
}

.hero > *{
  position:relative;
  z-index:1;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  color:#ffe082;
  font-size:.84rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,0.12);
  margin-bottom:18px;
}

.hero h1{
  font-size:clamp(2.1rem, 4vw, 4rem);
  line-height:1;
  letter-spacing:-.03em;
  margin-bottom:16px;
  font-weight:800;
}

.hero p{
  max-width:920px;
  color:var(--muted);
  font-size:1.03rem;
  line-height:1.8;
}

/* stats */
.museum-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin:0 0 28px;
}

.museum-stat{
  padding:20px 18px;
  border-radius:22px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 16px 32px rgba(0,0,0,0.18);
}

.museum-stat-value{
  display:block;
  font-size:1.6rem;
  font-weight:800;
  color:#fff;
  margin-bottom:6px;
}

.museum-stat-label{
  display:block;
  color:rgba(255,255,255,0.7);
  font-size:.92rem;
}

/* titres section */
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin:8px 4px 18px;
  animation:fadeUp 1s ease-out;
}

.section-head h2{
  font-size:1.35rem;
  color:#fff;
}

.section-head span{
  color:rgba(255,255,255,0.65);
  font-size:.95rem;
}

/* onglets */
.tabs-filter{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:0 0 28px;
  position:relative;
  z-index:3;
}

.tab-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.08);
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  font-size:.92rem;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:
    transform .28s ease,
    border-color .28s ease,
    background .28s ease,
    box-shadow .28s ease,
    opacity .28s ease;
  box-shadow:0 10px 20px rgba(0,0,0,0.18);
}

.tab-btn:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,0.24);
  background:rgba(255,255,255,0.12);
}

.tab-btn.active{
  background:linear-gradient(135deg,#d91c2b,#ff5b5b);
  border-color:rgba(255,255,255,0.16);
  box-shadow:0 12px 26px rgba(0,0,0,0.28), 0 0 16px rgba(255,80,80,0.35);
}

.tab-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(255,255,255,0.14);
  font-size:.82rem;
  line-height:1;
}

/* blog */
#Blog1{
  position:relative !important;
  left:auto !important;
  top:auto !important;
  width:100% !important;
  height:auto !important;
  overflow:visible !important;
}

.blogrow{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:22px;
}

.blogcolumn{
  display:block;
  opacity:1;
  transform:scale(1) translateY(0);
  transition:
    opacity .45s cubic-bezier(.2,.65,.2,1),
    transform .45s cubic-bezier(.2,.65,.2,1),
    filter .45s cubic-bezier(.2,.65,.2,1);
  will-change:transform, opacity;
}

.blogcolumn.is-hiding{
  opacity:0;
  transform:scale(.92) translateY(18px);
  filter:blur(8px);
  pointer-events:none;
}

.blogcolumn.is-showing{
  animation:cardReveal .55s cubic-bezier(.17,.84,.44,1) both;
}

.blogitem{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:100%;
  border-radius:24px;
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--border);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 20px 40px rgba(0,0,0,0.22);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  animation:fadeUp .9s ease-out both;
  transform-origin:center center;
  isolation:isolate;
}

.blogitem::before{
  content:"Pièce de collection";
  position:absolute;
  top:14px;
  right:14px;
  z-index:4;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(7,17,31,0.72);
  border:1px solid rgba(255,255,255,0.12);
  color:rgba(255,255,255,0.82);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.blogitem:hover{
  transform:translateY(-10px) scale(1.025);
  box-shadow:0 28px 50px rgba(0,0,0,0.28), 0 0 18px rgba(255,213,79,0.08);
  border-color:rgba(255,255,255,0.18);
  z-index:5;
}

.blogheader{
  display:none;
}

.blogthumb{
  position:relative;
  min-height:240px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding:24px;
}

.blogthumb::before{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  border-radius:50%;
  background:rgba(255,255,255,0.06);
  filter:blur(8px);
}

.blogthumb::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,.10), transparent);
  transform:translateX(-100%);
  animation:energyMove 3.2s linear infinite;
  pointer-events:none;
}

.blogthumb a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  position:relative;
  z-index:2;
}

.blogthumb img{
  max-height:190px;
  max-width:100%;
  object-fit:contain;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.35));
  transition:transform .45s cubic-bezier(.2,.65,.2,1);
}

.blogitem:hover .blogthumb img{
  transform:translateY(-6px) scale(1.06);
}

.collect-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:16px 18px 6px;
}

.collect-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  color:#f4f7ff;
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.02em;
}

.collect-badge-series{
  background:rgba(255,213,79,0.12);
  border-color:rgba(255,213,79,0.22);
  color:#ffe082;
}

.blogsubject{
  display:block;
  padding:8px 18px 8px;
  font-size:1.08rem;
  line-height:1.35;
  font-weight:800;
}

.blogsubject a{
  color:#fff;
  text-decoration:none;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.blogsubject a:hover{
  color:#ffd54f;
}

.blogdate{
  padding:0 18px 10px;
  color:rgba(255,255,255,0.6);
  font-size:.84rem;
}

.blogtext{
  padding:0 18px 20px;
  color:rgba(240,245,255,0.76);
  line-height:1.75;
  font-size:.95rem;
}

.blogyear{
  display:inline-block;
  margin-bottom:10px;
  padding:6px 10px;
  border-radius:999px;
  color:#ffe082;
  background:rgba(255,213,79,0.08);
  border:1px solid rgba(255,213,79,0.18);
  font-weight:700;
  font-size:.84rem;
}

.read-more{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  color:#ffd54f;
  text-decoration:none;
  font-weight:700;
}

.read-more::after{
  content:"→";
  transition:transform .25s ease;
}

.blogitem:hover .read-more::after{
  transform:translateX(4px);
}

/* timeline */
.timeline-section{
  margin-top:34px;
}

.timeline{
  position:relative;
  margin-top:16px;
  padding-left:26px;
}

.timeline::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:10px;
  width:2px;
  background:linear-gradient(180deg, rgba(255,213,79,.6), rgba(59,130,246,.4));
}

.timeline-item{
  position:relative;
  padding:0 0 22px 22px;
}

.timeline-item::before{
  content:"";
  position:absolute;
  left:-2px;
  top:6px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#ffd54f;
  box-shadow:0 0 0 6px rgba(255,213,79,.12);
}

.timeline-year{
  font-size:1rem;
  font-weight:800;
  color:#fff;
  margin-bottom:6px;
}

.timeline-text{
  color:rgba(240,245,255,0.75);
  line-height:1.7;
}

.footer-note{
  margin-top:28px;
  padding:20px 24px;
  text-align:left;
  color:rgba(255,255,255,0.68);
  border-top:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03);
  border-radius:20px;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  line-height:1.8;
}

.clearfix{
  display:none !important;
}

@keyframes fadeUp{
  from{ opacity:0; transform:translateY(24px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes cardReveal{
  0%{
    opacity:0;
    transform:scale(.92) translateY(16px);
    filter:blur(8px);
  }
  60%{
    opacity:1;
    transform:scale(1.015) translateY(-2px);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:scale(1) translateY(0);
    filter:blur(0);
  }
}

@keyframes energyMove{
  0%{ transform:translateX(-100%); }
  100%{ transform:translateX(200%); }
}

@keyframes floatOrb{
  0%,100%{ transform:translateY(0) translateX(0); }
  50%{ transform:translateY(-16px) translateX(8px); }
}

@media (max-width: 1100px){
  .blogrow{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 980px){
  .museum-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  body{
    padding:96px 12px 28px;
  }

  .top-buttons{
    top:14px;
    left:14px;
    right:14px;
    gap:8px;
    flex-wrap:wrap;
  }

  .rb-back-btn,
  .rb-history-btn{
    padding:11px 18px;
    font-size:13px;
  }

  .hero{
    padding:28px 18px;
    border-radius:24px;
  }

  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .museum-stats{
    grid-template-columns:1fr;
  }

  .blogrow{
    grid-template-columns:1fr;
  }

  .blogthumb{
    min-height:210px;
  }

  .tabs-filter{
    gap:10px;
  }

  .tab-btn{
    width:100%;
    justify-content:space-between;
  }
}
