:root {
  --bg: #cdb4db;
  --card: #ffc8dd;
  --muted: #c9184a;
  /* --muted: #ffafcc; */
  --accent: #bde0fe;
  --glass: #a2d2ff 0.7;
  --shadow: 0 8px 24px #ffc2d1 0.08;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}


/* Général : pleine largeur */
body, html {
  width: 100%;
  margin: 0;
  padding: 0;
}


/* Supprime le conteneur étroit */
.container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 28px 60px; /* marges latérales pour respirer */
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* margin-bottom: 18px; */
  width: 100%;
  position: relative;
  padding: 10px 0;
  z-index: 1000;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo .icon {
width: 44px;
height: 44px;
border-radius: 10px;
background: linear-gradient(135deg, #c77dff, #e0aaff,#f4acb7,#efcfe3);
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
color: var(--accent);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}


/* Boutons */
.btn {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--card);
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), #4fa3ff);
  color: #fff;
  border: none;
}

/* Navigation links */
/* Menu centré */
.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
}

/* Boutons Log in / Sign up à droite */
.auth {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Liens du menu */
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  color: #0f172a;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* Soulignement animé */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero */
.hero {
  background: linear-gradient(220deg,#e4c1f9,#cdb4db,#ffc8dd,#ffafcc,#bde0fe,#a2d2ff);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: visible;
  position: relative;
  min-height: 250px;
   width: 90%;        /* ou 70%, selon ce que tu veux */
  margin: 0 auto;
}

.hero .left {
  flex: 1;
  padding-right: 250px; /* keeps the text clear of the character image */
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 8px 0;
  color: #918ef4;
}

.hero p {
  margin: 0 0 16px;
  color: #be95c4;
}

.hero .char {
  width: 230px; /* garde la taille normale */
  height: auto;
}

.hero .cta {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  cursor: pointer;
}


.hero .right {
  position: absolute;
  top: -70px; /* ajuste la hauteur du dépassement selon ton goût */
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end; /* colle l'image en bas */
  justify-content: flex-end;
  z-index: 1; /* l'image reste en dessous du header */
  pointer-events: none; /* never blocks clicks on the "Read More" link */
}

/* "Start playing" button of the fan game, next to "Read More" */
.hero .play-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #d473d4, #ff5c9d);
  box-shadow: 0 8px 22px rgba(212, 115, 212, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero .play-cta:hover,
.hero .play-cta:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(255, 92, 157, 0.6);
}
.hero .play-cta span { font-size: 12px; }


.char {
  width: 150px;
  height: 150px;
  margin: 0;
  padding: 0;
  border-bottom-right-radius: 22px;
  overflow: hidden;
}

.char img {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero .char img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.8fr;
  /* gap: 28px; */
  margin-top: 30px;
  align-items: start;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ff177f;
}

/* Artwork */
.cards {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 10px;
}

.artwork {
  display: flex;
  gap: 12px;
  align-items: center;
}


.thumb {
  width: 220px;          /* largeur augmentée */
  height: 290px;         /* plus bas pour un format rectangle */
  border-radius: 18px;   /* coins plus doux */
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(79, 163, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* l’image remplit le cadre */
  object-position: center;
}

.thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(79, 163, 255, 0.2);
}

/* Panels */
.panel {
  padding: 14px;
  margin-top: 18px;
}

.panel h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.pill {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}



.search-row button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.search-row input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
}

/* Info Cards */
.small-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 6px 18px #969a97;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.info:hover {
  transform: scale(1.05);
}

#s1.info{
  background-color: #b892ff;
}

#s2.info{
  background-color: #ffc2e2;
}

#s3.info{
  background-color: #ff90b3;
}

#s4.info{
  background-color: #bde0fe;
}

#s5.info{
  background-color: #cdb4db;
}

#s6.info{
  background-color: #a2d2ff;
}

.info .icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title {
  font-weight: 600;
}

.desc {
  font-size: 13px;
  color: var(--muted);
}


.view-more:hover {
  transform: translateY(-3px);
}


.clear {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.logo .icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.section-title  {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  padding-bottom: 10px;
}

.recent-section-panel{
  color: #b429f9;
}

.recent-section-panel >img{
  height: 350px;
  display: block;
    margin: 0 auto;
    transition: background 0.3s, transform 0.3s;
}

.recent-section-panel img:hover {
  transform: scale(1.05);
}

.artwork-section,
.recent-section {
  margin-top: 0;
  padding-top: 0;
}

.artwork-section {
  /* display: flex; */
  text-align: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.artwork-section .cards {
  display: flex;
  gap: 18px;
}

.artwork-section .view-more {
  align-self: center;
  margin-top: 35px;
  padding: 10px 24px;
  border-radius: 22px;
  background: #001524;
  color: #f72585;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 15px #8f9491;
  transition: background 0.3s, transform 0.3s;
}

.artwork-section .thumb {
  box-shadow: 0 6px 12px #333138;
}

.recent-section {
  background: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-row {
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.2s;
  height: 46px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 22px;
  cursor: pointer;
}

.chibi{
    display: flex;
    gap: 20px;
    align-items: stretch;
    margin-top: 40px;
}

.chibi img{
  border-radius: 22px;
  width: 50%;
  height: fit-content;
  box-shadow: 0 6px 15px #8f9491;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.chibi img:hover {
  transform: scale(1.05);
}

.search-row input[disabled] {
  color: black;
  background: transparent;
  cursor: default;
  opacity: 1; /* empêche l’effet grisé */
  cursor: pointer;
}


#f1.search-row {
  background-color:#cdb4db ;
}
#f2.search-row {
  background-color:#ffc8dd ;
}
#f3.search-row {
  background-color:#ffafcc ;
}
#f4.search-row {
  background-color:#bde0fe ;
}
#f5.search-row {
  background-color:#ff4d6d ;
}
.search-row:hover {
  background: var(--accent-light);
  transform: scale(1.02);
}

button i {
  font-size: 18px;
  color: #333;
}

button:hover i {
  color: #f7ebfd;
}


/* === AJOUT D'UNE NOUVELLE COLONNE ENTRE "Recent Search" ET "Suggestions" === */
.grid {
  grid-template-columns: 1fr 0.9fr 0.6fr 0.8fr; /* 4 colonnes au lieu de 3 */
  gap: 24px;
}

/* Style pour la colonne d’images intermédiaire */
.middle-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.middle-images img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 18px black;
  transition: transform 0.3s ease;
}

.middle-images img:hover {
  transform: scale(1.05);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ff74b2;
  background: none;
  border: none;
  font-size: 28px;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.2); */
}

.left-arrow {
  left: -40px; /* en dehors du container */
}

.right-arrow {
  right: -40px; /* en dehors du container */
}

/* .arrow:hover {
  background: #bde0fe;
} */
.arrow:hover {
  /* keep translateY(-50%): without it the arrow dropped when hovered or clicked */
  transform: translateY(-50%) scale(1.05);
}

/* Points indicateurs */ 

.indicators { 
  position: absolute; 
  bottom: 20px; 
  left: 50%; 
  transform: translateX(-50%); 
  display: flex; 
  gap: 8px; 
}

.dot { 
  width: 30px; 
  height: 3px; 
  background: #fff; 
  opacity: 0.5; 
  border-radius: 20%; 
  cursor: pointer; 
} 

.dot.active { 
  opacity: 1; 
  background: #ff74b2; 
}

/* Style spécial pour les illustrations assises (ex-.chiori-img) */
.hero-img--seated {
  position: absolute;
  bottom: -75px;         /* elle dépasse légèrement du hero */
  /* right: 15px;          tu peux ajuster la position latérale */
  height: 90%;           /* taille réduite pour paraître assise */
  z-index: 5;
  /* transform: translateY(5px); léger effet d’assise */
  transition: all 0.3s ease;
  object-fit: contain;
  border-bottom-left-radius: 25px;
}

/* Le hero doit laisser apparaître ce qui dépasse */
.hero {
  overflow: visible !important;
  position: relative;
  z-index: 1;
}


/* Responsive */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Slides with side: "left" — picture on the left, text moved to the right */
.hero--img-left .right {
  right: auto;
  left: 50px; /* clear of the logo text above */
  justify-content: flex-start;
}

.hero--img-left .left {
  padding-right: 0;
  padding-left: 290px;
}

.hero--img-left .char {
  width: 205px;
}

.hero--img-left .char img {
  border-bottom-left-radius: 22px;
}



/* butterfly in the empty corner, left of the picture */
.hero--img-left::after {
  content: "";
  position: absolute;
  left: -34px;
  bottom: -34px; /* hangs below the frame on purpose */
  z-index: 2;
  width: 165px;
  height: 165px;
  background: url("/img/photo/butterfly.png") center / contain no-repeat;
  transform: rotate(-16deg);
  filter: drop-shadow(0 6px 10px rgba(120, 90, 200, 0.35));
  pointer-events: none;
}

/* ---------- small windows and phones ----------
   Same composition as on a large screen (text on one side, character on the
   other, standing out of the frame), only smaller. */
@media (max-width: 900px) {
  .container {
    padding: 18px 16px;
  }

  .hero {
    width: 100%;
    box-sizing: border-box;
    margin-top: 46px; /* room for the character's head above the frame */
    padding: 16px;
    min-height: 210px;
  }

  .hero .left {
    padding-right: min(44%, 210px);
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* long descriptions: 5 lines, the rest is on the Info page */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero .cta {
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero .right {
    top: -46px;
    width: min(42%, 200px);
  }

  .hero .char,
  .hero--img-left .char {
    width: 100%;
    height: auto;
  }

  .hero--img-left .right {
    left: 0;
  }

  .hero--img-left .left {
    padding-right: 0;
    padding-left: min(44%, 210px);
  }

  .hero--img-left::after {
    left: -14px;
    bottom: -20px;
    width: 84px;
    height: 84px;
  }

  .left-arrow {
    left: -14px;
  }

  .right-arrow {
    right: -14px;
  }

  .arrow {
    padding: 4px;
    font-size: 22px;
  }

  .indicators {
    bottom: 8px;
  }
}
