/* =================================================
   1. FONTS & RESET
================================================= */
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&family=Lato:wght@400;700&display=swap');

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

body {
  font-family: 'Lato', sans-serif;
  background-color: #f9f6f2;
  color: #3b3b3b;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =================================================
   2. TYPOGRAPHIE
================================================= */
h1,
h2,
h3 {
  font-family: 'Amatic SC', cursive;
  letter-spacing: 1px;
}

h1 {
  font-size: 3.8rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  color: #555;
}

/* =================================================
   15. RESPONSIVE GLOBAL (MOBILE & TABLETTE)
================================================= */

/* --- MENU TOGGLE (HAMBURGER) --- */
/* Caché sur PC */
.menu-toggle {
  display: none !important;
}

@media (max-width: 768px) {

  /* --- MENU TOGGLE (MOBILE) --- */
  .menu-toggle {
    display: block !important;
    background: transparent;
    border: none;
    /* Plus de bordure */
    color: #efe9e1;
    /* Couleur du texte (beige clair) */
    font-size: 1.1rem;
    padding: 10px;
    cursor: pointer;
    margin: 0 auto 10px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
  }

  .menu-toggle:hover {
    opacity: 0.8;
    /* Simple effet de transparence au survol */
    background: transparent;
    color: #efe9e1;
  }
}

/* =================================================
   3. COMPONENTS - BOUTONS
================================================= */
.btn {
  display: inline-block;
  background-color: #c97c5d;
  color: #fff;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #b56f53;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.btn-etsy {
  background-color: #F1641E;
  /* Orange Etsy */
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-etsy:hover {
  background-color: #d35400;
  transform: translateY(-2px);
}

.btn-pinterest {
  background-color: #000000;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-pinterest:hover {
  background-color: #d9551a;
  transform: translateY(-2px);
}

.purchase-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.price {
  white-space: nowrap;
  font-size: 1.4rem;
  font-weight: 700;
  color: #F16521;
}

@media (max-width: 600px) {
  .purchase-wrapper {
    flex-wrap: wrap;
  }
}

/* =================================================
   4. LAYOUT - HEADER & NAV
================================================= */
.top-bar {
  background-color: #efe9e1;
  padding: 6px 5%;
}

.top-bar .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 70px;
  border-radius: 50%;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons img {
  width: 34px;
  height: 34px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-icons img:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.main-nav {
  background-color: #3b3b3b;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 14px 18px;
  color: #efe9e1;
  font-weight: 600;
}

.nav-list a:hover {
  color: #c97c5d;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.dropdown-menu a {
  color: #3b3b3b;
  padding: 10px 16px;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* =================================================
   5. LAYOUT - HERO & SECTIONS
================================================= */
.hero {
  min-height: 35vh;
  background: linear-gradient(rgba(249, 246, 242, 0.88), rgba(249, 246, 242, 0.88)),
    url("images/hero.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  overflow: hidden;
  /* For Ken Burns */
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: -1;
  animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-content {
  max-width: 1000px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 28px;
}

.section {
  padding: 80px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section.alt {
  background-color: #efe9e1;
}

.intro-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

/* =================================================
   6. PAGE CREATIONS (COMPACT)
================================================= */
.page-creations .hero {
  min-height: 25vh;
  padding: 30px 20px;
}

.page-creations .section {
  padding: 40px 8%;
}

.page-creations .hero-content {
  padding: 30px;
}

.page-creations .hero h1 {
  margin-bottom: 10px;
}

/* =================================================
   7. PRODUITS (CARDS)
================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  align-items: stretch;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.product-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin: 0 auto 16px;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-card h3 {
  transition: color 0.3s ease, transform 0.3s ease;
}

.product-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.product-card:hover h3 {
  color: #c97c5d;
  transform: translateY(-2px);
}

.btn-discover {
  display: inline-block;
  margin-top: auto;
  padding-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .btn-discover {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================
   7.1 PAGE BANDEROLES & BOX (RECTANGLE IMAGES)
================================================= */
.page-banderole .products-grid,
.page-box .products-grid,
.page-topper .products-grid,
.page-home .products-grid,
.page-creations .products-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-width: 1250px;
}

.page-home .product-card,
.page-creations .product-card {
  padding: 15px;
}

.page-banderole .product-card img,
.page-box .product-card img,
.page-topper .product-card img,
.page-home .product-card img,
.page-creations .product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin-bottom: 20px;
}

/* =================================================
   7.3 PAGE GNOMES (PORTRAIT IMAGES)
================================================= */
.page-gnome .products-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.page-gnome .product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  margin-bottom: 20px;
}

/* =================================================
   8. PAGE INDEX - CUSTOM PROCESS
================================================= */
.custom-process {
  background-color: #ffffff;
  border-radius: 28px;
  padding: 60px 50px;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.custom-process h2 {
  text-align: center;
  margin-bottom: 50px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-item {
  text-align: center;
}

.process-item img {
  width: 140px;
  height: auto;
  margin: 0 auto 20px;
}

.process-item h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .custom-process {
    padding: 50px 30px;
  }
}

/* =================================================
   9. PAGE PRODUIT (DETAIL)
================================================= */
.product-detail {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product-image {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 450px;
  position: relative;
}

.carousel-item,
.carousel-img {
  display: none;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-item.active,
.carousel-img.active {
  display: block;
}

.page-gnome .carousel-item,
.page-gnome .carousel-img {
  aspect-ratio: 3 / 4;
}

video.carousel-item {
  background: #000;
}

.carousel-thumbs-wrapper {
  overflow-x: auto;
  padding-top: 12px;
}

.carousel-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}

.thumb {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumb.active {
  opacity: 1;
  border-color: #c97c5d;
}

.video-thumb {
  position: relative;
}

.video-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  pointer-events: none;
}

.product-info {
  flex: 1;
  max-width: 550px;
}

/* CAROUSEL BUTTONS */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s;
}

.carousel-btn.prev {
  left: 5px;
}

.carousel-btn.next {
  right: 5px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* RESPONSIVE PRODUIT */
@media (max-width: 900px) {
  .product-detail {
    display: block;
    padding: 0 16px;
  }

  .product-image,
  .product-info {
    max-width: 100%;
    width: 100%;
  }

  .product-info {
    margin-top: 20px;
  }

  .carousel-thumbs {
    justify-content: flex-start;
  }
}

/* =================================================
   10. PAGE A PROPOS
================================================= */
.two-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img,
.two-columns img {
  width: 100%;
  max-width: 280px;
  /* Reduced specific size */
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  display: block;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.values-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.atelier-quote {
  margin: 40px 0;
  padding: 24px 28px;
  background: #f7f3ee;
  border-left: 4px solid #c3b6a5;
  border-radius: 12px;
  text-align: center;
  font-style: italic;
  font-weight: 600;
  color: #4a4a4a;
}

.atelier-quote span {
  display: block;
  margin-top: 12px;
  font-style: normal;
  color: #8b7d6b;
}

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

  .about-image {
    order: -1;
    display: flex;
    justify-content: center;
  }
}

/* =================================================
   11. PAGE CONTACT
================================================= */
.contact-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
  margin-bottom: 18px;
}

.contact-card .btn {
  width: 100%;
}

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

/* =================================================
   12. SECTIONS "DANS LE MEME THEME"
================================================= */
.related {
  padding: 55px 6%;
  background-color: #f9f6f2;
}

.related-inner {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

/* =================================================
   13. CTA (APPEL À L'ACTION)
================================================= */
.cta {
  background-color: #efe9e1;
  text-align: center;
  padding: 80px 20px;
}

/* =================================================
   14. FOOTER
================================================= */
footer {
  background-color: #3b3b3b;
  color: #efe9e1;
  text-align: center;
  padding: 25px;
  font-size: 0.9rem;
}

/* =================================================
   14. UTILS (ANIMATIONS, LIGHTBOX)
================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  outline: none;
}

/* =================================================
   15. RESPONSIVE GLOBAL (MOBILE & TABLETTE)
================================================= */

@media (max-width: 768px) {

  /* --- TYPOGRAPHIE --- */
  h1 {
    font-size: 2.8rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.95rem;
  }

  /* --- LAYOUT GLOBAL --- */
  .section {
    padding: 50px 20px;
  }

  /* --- TOP BAR --- */
  .top-bar .container {
    flex-direction: column;
    gap: 10px;
  }

  .logo img {
    max-height: 60px;
  }

  /* --- NAVIGATION --- */
  .nav-list {
    display: none;
    /* CACHÉ par défaut */
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
    margin-top: 10px;
    background: rgba(59, 59, 59, 0.95);
    border-radius: 12px;
  }

  /* Quand actif (via JS) */
  .nav-list.active {
    display: flex;
    animation: fadeInDown 0.3s ease;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

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

  .nav-list a {
    padding: 10px 20px;
    /* Plus large pour le tactile */
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* --- DROPDOWN MOBILE --- */
  .dropdown-menu {
    position: static;
    /* Flux normal pour pousser le contenu */
    display: none;
    /* Caché par défaut */
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    /* Fond léger */
    box-shadow: none;
    border-radius: 8px;
    margin: 5px 0 10px 0;
    padding: 0;
    text-align: center;
    border: none;
    min-width: auto;
  }

  /* Affichage au clic (via JS .open) */
  .dropdown.open .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  /* Liens du sous-menu */
  .dropdown-menu a {
    color: #dedede;
    font-size: 0.9rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .dropdown-menu a:hover {
    color: #fff;
    background: transparent;
  }

  /* Flèche animée */
  .dropdown>a::after {
    content: ' ▾';
    display: inline-block;
    transition: transform 0.3s;
    margin-left: 5px;
  }

  .dropdown.open>a::after {
    transform: rotate(180deg);
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }

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

  /* --- HERO --- */
  .hero {
    min-height: 30vh;
    padding: 30px 20px;
  }

  .hero-content {
    padding: 20px;
    width: 95%;
  }

  /* --- PAGE INDEX --- */
  .custom-process {
    padding: 40px 20px;
  }

  .process-grid {
    gap: 40px;
  }

  /* --- GRILLES PRODUITS (2 COLONNES MOBILE) --- */
  .products-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 items par ligne */
    gap: 15px;
    /* Espacement réduit */
    padding: 0 10px;
    /* Marges latérales */
  }

  .product-card img,
  .related-card img {
    width: 100%;
    /* Image fluide */
    height: auto;
    aspect-ratio: 1/1;
    margin-bottom: 10px;
  }

  /* --- BOUTONS --- */
  .btn,
  .btn-etsy,
  .btn-pinterest {
    width: 100%;
    /* Pleine largeur sur mobile */
    text-align: center;
    margin-bottom: 10px;
  }

  .purchase-wrapper {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .price {
    text-align: center;
    margin-bottom: 5px;
  }

  /* --- DIVERS --- */
  .two-columns {
    gap: 30px;
  }
}

/* Petits écrans (Smartphones < 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .product-card img {
    width: 100%;
    /* Image produit prend toute la largeur dispo */
    height: auto;
    aspect-ratio: 1/1;
  }
}

/* =================================================
   16. NOUVEAUX ÉLÉMENTS (UX/SEO)
================================================= */

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #c97c5d;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #b56f53;
  transform: translateY(-5px);
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
  padding: 15px 8%;
  font-size: 0.9rem;
  color: #888;
}

.breadcrumbs a {
  color: #c97c5d;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
  color: #ccc;
}

/* --- ENGAGEMENT QUALITÉ --- */
.quality-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  background: #fff;
  margin-top: 40px;
  border-radius: 20px;
  flex-wrap: wrap;
}

.quality-item {
  text-align: center;
  max-width: 180px;
}

.quality-item img {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  opacity: 0.8;
}

.quality-item p {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3b3b3b;
  line-height: 1.2;
}

/* --- MICRO-ANIMATIONS --- */
.social-icons a:hover img {
  filter: drop-shadow(0 0 8px rgba(201, 124, 93, 0.4));
}

.btn:hover {
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .quality-badges {
    gap: 20px;
  }

  .quality-item {
    max-width: 120px;
  }

  .quality-item img {
    width: 40px;
    height: 40px;
  }
}

/* --- PROGRESS BAR --- */
.progress-container {
  position: fixed;
  top: 0;
  z-index: 1001;
  width: 100%;
  height: 4px;
  background: transparent;
}

.progress-bar {
  height: 4px;
  background: #c97c5d;
  width: 0%;
}

/* --- AVIS CLIENTS --- */
.reviews-section {
  background-color: #fdfaf7;
  padding: 80px 20px;
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 50px auto 0;
}

.review-card {
  background: #fff;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #efe9e1;
  transition: transform 0.3s ease;
}

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

.review-stars {
  color: #ffb400;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
}

.review-author {
  font-weight: 700;
  color: #3b3b3b;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .reviews-section {
    padding: 60px 15px;
  }

  .review-card {
    padding: 25px;
  }
}