/* =====================================
   RESET ET VARIABLES
   ===================================== */
* {
  box-sizing: border-box;
}

:root {
  --color-light-beige: #f8f1ea;
  --color-medium-beige: #e0c9b5;
  --color-dark-beige: #c9b29e;
  --color-dark-text: #333;
  --color-medium-text: #555;
  --color-light-text: #777;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--color-dark-text);
  background-color: #fff;
}

@media screen and (max-width: 768px) {
  .artiste-bio p,
  .detail-block p,
  .detail-block li,
  .sidebar-details li {
    font-size: 0.9em;
    line-height: 1.5;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.3em;
  }

  .carousel-item p {
    font-size: 0.9em;
  }
}

/* =====================================
   CONTENEUR PRINCIPAL
   ===================================== */
.artiste-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 150px;
}

/* =====================================
   HEADER ARTISTE - MOBILE FIRST
   ===================================== */
.artiste-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 60px 0 40px;
  gap: 20px;
}

.artiste-image {
  width: 100%;
  max-width: 200px;
}

.artiste-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 4px solid var(--color-light-beige);
  box-shadow: var(--shadow-medium);
  transition: transform 0.4s cubic-bezier(0.23, 1.02, 0.32, 1), box-shadow 0.4s;
}

.artiste-image img:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(168, 140, 107, 0.18);
}

.artiste-bio {
  width: 100%;
  max-width: 600px;
}

.artiste-bio h1 {
  font-size: 1.8rem;
  margin: 0 0 15px;
  color: var(--color-dark-text);
  font-weight: 700;
  position: relative;
}

.artiste-bio h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #e0c9b5 60%, #c9b29e 100%);
  border-radius: 2px;
  margin: 18px auto 0 auto;
}

.artiste-bio p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-medium-text);
  margin: 0;
}

/* =====================================
   CONTENU ARTISTE - MOBILE FIRST
   ===================================== */
.artiste-content {
  margin-bottom: 40px;
}

.artiste-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

/* =====================================
   BLOCS DE DÉTAIL
   ===================================== */
.detail-block {
  background-color: var(--color-light-beige);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow-light);
  width: 100%;
}

.detail-block h2 {
  font-size: 1.4rem;
  margin: 0 0 20px;
  color: var(--color-dark-text);
  border-bottom: 2px solid var(--color-medium-beige);
  padding-bottom: 10px;
  font-weight: 600;
}

.detail-block p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-medium-text);
  margin-bottom: 15px;
}

.detail-block p:last-child {
  margin-bottom: 0;
}

.detail-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-block li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
}

.detail-block li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-dark-beige);
  font-weight: bold;
}

.biography em {
  display: block;
  text-align: right;
  font-style: italic;
  color: var(--color-light-text);
  margin-top: 8px;
  font-size: 0.85rem;
}

/* =====================================
   SECTION CARROUSEL
   ===================================== */

@media screen and (min-width: 768px) {
  .artiste-main {
    padding: 30px;
  }

  .artiste-header {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 40px;
    margin: 80px 0 50px;
  }

  .artiste-image {
    flex-shrink: 0;
    max-width: 280px;
  }

  .artiste-bio {
    flex: 1;
    max-width: none;
  }

  .artiste-bio h1 {
    font-size: 2.5rem;
  }

  .artiste-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .biography {
    flex: 2;
  }

  .sidebar-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .carousel-item {
    flex: 0 0 calc(50% - 10px);
  }

  .carousel-item img {
    height: 220px;
  }
}

/* =====================================
   ORDINATEURS (1024px et plus)
   ===================================== */
@media screen and (min-width: 1024px) {
  .artiste-bio h1 {
    font-size: 3rem;
  }

  .artiste-grid {
    gap: 60px;
  }

  .carousel-container {
    justify-content: center;
  }

  .carousel-item {
    flex: 0 0 240px;
  }

  .carousel-item img {
    height: 240px;
  }
}

/* =====================================
   TRÈS GRANDS ÉCRANS (1200px et plus)
   ===================================== */
@media screen and (min-width: 1200px) {
  .carousel-item {
    flex: 0 0 260px;
  }
}

/* =====================================
   AJUSTEMENTS POUR PETITS MOBILES
   ===================================== */
@media screen and (max-width: 480px) {
  .artiste-main {
    padding: 15px;
  }

  .artiste-header {
    margin: 40px 0 30px;
  }

  .artiste-bio h1 {
    font-size: 1.5rem;
  }

  .detail-block {
    padding: 20px;
  }

  .carousel-section {
    padding: 25px 15px;
  }

  .carousel-item {
    flex: 0 0 calc(100% - 40px);
  }
}

/* Ajout d'une animation d'apparition douce sur les blocs principaux */
.artiste-header,
.artiste-content,
.carousel-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s cubic-bezier(0.23, 1.02, 0.32, 1) forwards;
}
.artiste-header {
  animation-delay: 0.1s;
}
.artiste-content {
  animation-delay: 0.3s;
}
.carousel-section {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.artiste-main p,
.artiste-main li,
.artiste-content p,
.artiste-content li,
.detail-block p,
.detail-block li {
  font-size: 1.25em;
}
