/* Reset et variables */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #4a4a4a;
  --accent-color: #f8f8f8;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --border-light: #e0e0e0;
  --border-dark: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Header et Navigation */
header {
  background: var(--text-light);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 50px;
  width: auto;
  display: inline-block;
  object-fit: contain;
}

.logo-text {
  display: none;
}

/* Si le logo ne charge pas, afficher le texte */
.logo:not(:has(img[style*="display: none"])) .logo-text {
  display: none;
}

.logo:has(img[style*="display: none"]) .logo-text {
  display: inline;
}

.logo:hover {
  opacity: 0.7;
}

.logo span {
  font-weight: 400;
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-dark);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.7;
}

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

/* Menu hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 0;
  color: var(--text-light);
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Sections principales */
.main-sections {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .main-sections {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-sections {
    grid-template-columns: 1fr;
  }
}

.section-card {
  background: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-size: cover;
  background-position: center;
  transition: height 0.4s ease;
  z-index: 0;
}

/* Bannières spécifiques par section */
.section-card[data-banner="boutique"]::before {
  background-image: url('/images/banner-boutique.png');
}

.section-card[data-banner="creations"]::before {
  background-image: url('/images/banner-creations.png');
}

.section-card[data-banner="galerie"]::before {
  background-image: url('/images/banner-galerie.png');
}

.section-card[data-banner="livres"]::before {
  background-image: url('/images/banner-livres.png');
}

.section-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: height 0.4s ease;
  z-index: 1;
}

.section-card:hover::before,
.section-card:hover::after {
  height: 100%;
}

.section-card > * {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.section-card:hover h2,
.section-card:hover p,
.section-card:hover .section-icon {
  color: var(--text-light);
}

.section-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.section-card h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  transition: color 0.4s ease;
}

.section-card p {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  line-height: 1.6;
  font-size: 0.9rem;
  transition: color 0.4s ease;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--text-dark);
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid var(--text-dark);
  border-radius: 0;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn:hover {
  background: transparent;
  color: var(--text-dark);
}

.section-card:hover .btn {
  background: var(--text-light);
  color: var(--text-dark);
  border-color: var(--text-light);
}

.section-card:hover .btn:hover {
  background: transparent;
  color: var(--text-light);
}

/* Page content */
.page-content {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 3rem;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--secondary-color);
  font-weight: 300;
}

/* Footer */
footer {
  background: var(--accent-color);
  color: var(--text-dark);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 6rem;
  border-top: 1px solid var(--border-light);
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 300;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
  }

  .logo-img {
    height: 35px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--text-light);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.1rem;
    display: block;
    padding: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    white-space: normal;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .main-sections {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .page-content {
    padding: 0 1.5rem;
  }
}

/* Styles spécifiques pour les pages */
.store-redirect {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 4rem 3rem;
  text-align: center;
  margin: 2rem 0;
}

.store-redirect .icon {
  font-size: 5rem;
  margin-bottom: 2rem;
}

.store-redirect h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1rem;
}

.creations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 1100px) {
  .creations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .creations-grid {
    grid-template-columns: 1fr;
  }
}

.creation-item {
  background: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.creation-item h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.creation-item p {
  color: var(--secondary-color);
  line-height: 1.8;
  font-size: 0.95rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.book-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--text-dark);
  transition: height 0.3s ease;
  z-index: 0;
}

.book-card:hover::before {
  height: 100%;
}

.book-card > * {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-card:hover h3,
.book-card:hover p,
.book-card:hover div {
  color: var(--text-light);
}

.book-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 1.5rem 0 1rem;
  letter-spacing: -0.3px;
}

.book-card p {
  color: var(--secondary-color);
  line-height: 1.7;
}

/* Sections avec fond */
.bg-section {
  background: var(--accent-color);
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 3rem;
  margin: 3rem 0;
  text-align: center;
}

.bg-section h2,
.bg-section h3 {
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-item p {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
}
