:root {
  --primary: #4f6f73;
  --secondary: #e8e2da;
  --text: #333;
  --bg: #CEDDDE;/*#fafafa;*/
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--text);
  background: var(--bg);
}

.site-wrapper {
  max-width: 70vw;
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}



.logo{
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.5px; /* petit effet premium */
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #2f6f6c;
  transition: width 0.3s ease;
}

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

/* Dropdown */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 10px 0;

  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 2000;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown a:hover {
  /*background: rgba(206, 221, 222, 0.6); /* #CEDDDE à 60% */
}

/* option : éviter que le soulignement ::after “coupe” sur le conteneur */
.has-dropdown > a {
  padding: 10px 0;
}


/* HERO */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 20 / 9;
  overflow: hidden;
  border-radius: 0px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  object-position: center top; /* relève l'image */
  display: block;
}

.hero-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
}

.hero-text-inner {
  position: relative;
  max-width: 550px;
  padding: 28px 32px;
  transform: translateY(0px);
}

.hero-text-inner h1 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 25px;
}

.hero-text-inner p {
  margin-top: 0;
  margin-bottom: 18px;
}

.hero-text-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.30) 0%,
    rgba(255,255,255,0.20) 45%,
    rgba(255,255,255,0.10) 70%,
    rgba(255,255,255,0.05) 100%
  );
  z-index: -1;
  border-radius: 10px;
}

/* BUTTONS */
.btn-primary,
.btn-secondary, .btn-third{
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: #5C7A7ACC;color: #fff;  border: 2px solid #24494D;  align-self: flex-start; }
.btn-secondary:hover {  background: #24494D;}
.btn-third {  background: #5C7A7ACC;  color: #fff;  border: 2px solid #24494D;  align-self: flex-start;}
.btn-third:hover {  background: #24494D;}

.hero-text .btn-primary {
  background: #5C7A7A;
  color: #fff;
  border: 2px solid #24494D;
  align-self: flex-start;
}

.hero-text .btn-primary:hover {
  background: #24494D;
}

/* SECTIONS */

.section.event{
  padding-bottom: 90px;   /* ajuste: 0 / 10 / 15 / 20 selon ton goût */
}

/* Rapprocher BESTSELLERS du HERO */
.section.bestsellers{
  padding-top: 0px;   /* ajuste: 0 / 10 / 15 / 20 selon ton goût */
}

.section { padding: 60px 20px; }

.section_collection { padding: 60px 20px; }

.section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* PRODUCTS (grid utilisé ailleurs) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.product-card {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 6px;
}

.product-image {
  height: 180px;
  background: #eee;
  margin-bottom: 15px;
}

.price {
  display: block;
  font-weight: bold;
  margin: 10px 0;
}

/* SEO TEXT */
.seo-text {
  max-width: 800px;
  margin: auto;
  font-size: 1.05rem;
}

/* FOOTER */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 30px 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer nav a {
  text-decoration: none;
  color: inherit;
  padding: 0 10px;
  position: relative;
}

/* petite barre verticale stylée */
.site-footer nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(0,0,0,0.2);
}

.site-footer nav a:hover {
  opacity: 0.7;
}

/* CAROUSEL */
.carousel-wrapper {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 30px;
  will-change: transform;
}

/* largeur fixe des cartes pour calcul fiable */
.carousel-track .product-card {
  flex: 0 0 240px;
}

/* Flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #000;
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

.carousel-btn:hover { background: #fff; }

/* PROMO */
.product-card.promo {
  position: relative;
}

.badge-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 3px;
}

.price.old {
  text-decoration: line-through;
  color: #999;
  margin-right: 6px;
}

@media (max-width: 1024px) {

  .site-wrapper {
    max-width: 90vw;
  }

  .hero-text-inner {
    max-width: 80%;
    padding: 24px 28px;
    transform: translateY(30px);
  }

  .hero-text-inner h1 {
    font-size: 1.8rem;
  }

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

  .carousel-track .product-card {
    flex: 0 0 220px;
  }

  .carousel-btn.prev { left: -10px; }
  .carousel-btn.next { right: -10px; }
}

@media (max-width: 768px) {

  /* Layout général */
  .site-wrapper {
    max-width: 100%;
  }

  .container {
    padding: 0 16px;
  }

  /* Header */
  .header-inner {
    height: auto;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
  }

  .main-nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* =========================
     HERO (mobile : image puis texte)
  ========================= */

  .hero {
    position: relative;
    aspect-ratio: auto;
    min-height: auto;
    overflow: visible;
    border-radius: 0;
  }

  /* Image en haut */
  .hero-image {
    position: relative;
    inset: auto;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;      /* image entière visible */
    display: block;
    background: var(--bg);
  }

  /* Texte SOUS l’image */
  .hero-text {
    position: relative;
    inset: auto;
    align-items: flex-start;
    padding: 16px 0 0;
  }

  .hero-text-inner {
    max-width: 100%;
    padding: 16px 18px;
    transform: none;
  }

  .hero-text-inner h1 {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  .hero-text-inner p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  /* Boutons */
  .btn-primary,
  .btn-secondary,
  .btn-third {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  /* Sections */
  .section h2 {
    font-size: 1.4rem;
  }

  /* Grilles produits */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card {
    padding: 14px;
  }

  .product-image {
    height: 140px;
  }

  /* Carousel */
  .carousel-track .product-card {
    flex: 0 0 200px;
  }

  .carousel-btn {
    display: none; /* swipe mobile uniquement */
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Collections (Boutique) */
.collections-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.collection-card{
  display: block;
  background: #fff;
  /*border: 1px solid rgba(0,0,0,0.08);*/
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  color: #333;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.collection-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}

.collection-thumb{
  height: 200px;       /* la hauteur de ton cadre */
  overflow: hidden;
}

.collection-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;   /* remplit le cadre */
  display: block;
}





.collection-card h3{
  margin: 14px 14px 6px;
}

.collection-card p{
  margin: 0 14px 14px;
  line-height: 1.5;
  color: #444;
}

.collection-cta{
  display: inline-block;
  margin: 0 14px 16px;
  font-weight: 600;
  color: #2f6f6c;
}

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

/* Layout collection (menu réduit) */
.boutique-top{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.boutique-title{
  margin: 0;
}

.back-to-collections{
  color: #2f6f6c;
  text-decoration: none;
  font-weight: 600;
}

.boutique-layout{
  display: grid;
  grid-template-columns: 240px 1fr; /* menu réduit */
  gap: 24px;
  margin-top: 18px;
}

/* Sidebar */
.boutique-sidebar{
  position: relative;
}

.sidebar-box{
  background: #fff;
  
  border-radius: 0px;
  padding: 14px;
  margin-bottom: 16px;
}


.sidebar-box h3{
  margin: -14px -14px 14px -14px;
  padding: 14px;

  background: #5C7A7ACC;
  color: #fff;

  border-radius: 0px;
}


/* Content cards à droite */
.type-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.type-card{
  display:block;
  text-decoration:none;
  color:#333;
  background:#fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 0 0 10px 10px;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.type-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}

.type-thumb{
  height: 120px;
  background: rgba(206, 221, 222, 0.6);
}

.type-card h2{
  margin: 14px 14px 6px;
  font-size: 1.15rem;
}

.type-card p{
  margin: 0 14px 14px;
  color:#444;
  line-height: 1.5;
}

.type-cta{
  display:inline-block;
  margin: 0 14px 16px;
  font-weight: 700;
  color:#2f6f6c;
}

/* Responsive */
@media (max-width: 900px){
  .boutique-layout{ grid-template-columns: 1fr; }
  .type-grid{ grid-template-columns: 1fr; }
}
/* === AJOUT : menu gauche uniquement "Collections" + sous-menu au survol === */
.sidebar-collections-menu{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-item{
  position: relative;
}

/* LIEN COLLECTION : petit trait vert (comme le header) */
.side-link{
  display: block;
  position: relative;
  text-decoration: none;
  color: #333;

  /* même style que .type-card h2 */
  font-size: 1.15rem;
  font-weight: 700;
  margin: 14px 0 6px;
  padding: 0;
}


.side-link::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #2f6f6c;
  transition: width 0.3s ease;
}

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

/* pas de background */
.side-link:hover,
.side-link.active{
  background: none;
}

/* Sous-menu (caché par défaut) */
.side-submenu{
  margin-top: 8px;
  padding-left: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

/* Apparition au survol de la collection */
.side-item:hover .side-submenu{
  display: flex;
}

/* AJOUT : reste ouvert si collection active */
.side-item.active .side-submenu{
  display: flex;
}

/* LIEN SOUS-MENU : petit trait vert */
.side-submenu a{
  display: block;
  position: relative;
  text-decoration: none;
  color: #333;
  padding: 8px 0;
}

.side-submenu a::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #2f6f6c;
  transition: width 0.3s ease;
}

.side-submenu a:hover::after{
  width: 100%;
}

/* pas de background */
.side-submenu a:hover{
  background: none;
}

/* =========================================================
   RESPONSIVE GLOBAL + MENU BURGER (tablette + mobile)
   À coller à la FIN de style.css
   ========================================================= */

/* 1) Largeur globale plus stable */
.site-wrapper{
  width: min(1200px, 92vw);
  max-width: 1200px;
}

/* 2) Sections : réduire les gros paddings sur écrans moyens/petits */
@media (max-width: 1024px){
  .section{ padding: 40px 16px; }
  .section_collection{ padding: 30px 16px; } /* au lieu de 60px */
}

/* 3) Boutique / collection layout : sidebar + contenu */
@media (max-width: 1024px){
  .boutique-layout{
    grid-template-columns: 1fr;   /* sidebar au-dessus */
    gap: 16px;
    margin-top: 12px;
  }

  .sidebar-box{
    padding: 12px;
  }
  .sidebar-box h3{
    margin: -12px -12px 12px -12px;
    padding: 12px;
  }

  /* le menu gauche devient un bloc déroulant plus "touch friendly" */
  .side-link{
    margin: 10px 0 6px;
  }
  .side-submenu{
    display: flex;          /* sur tablette/mobile : toujours visible */
    margin-top: 6px;
    padding-left: 8px;
  }

  /* Sur mobile/tablette on évite le "hover" qui ne marche pas */
  .side-item:hover .side-submenu{ display: flex; }
}

/* 4) Grilles : collections, types, produits */
@media (max-width: 1024px){
  .collections-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
  }

  .type-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
  }
}

@media (max-width: 560px){
  .collections-grid{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   MENU BURGER : tout le header en burger tablette + mobile
   (remplace le header "en colonne" actuel sous 768px)
   ========================================================= */

/* Bouton burger (ajout HTML requis) */
.nav-toggle{
  display:none;
  border:0;
  background:transparent;
  cursor:pointer;
  padding:10px;
  border-radius:10px;
}

.nav-toggle .bar{
  display:block;
  width:26px;
  height:2px;
  background:#333;
  margin:6px 0;
  transition: transform .18s ease, opacity .18s ease;
}

/* Etat ouvert (icône en X) */
.site-header.is-open .nav-toggle .bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.site-header.is-open .nav-toggle .bar:nth-child(2){ opacity:0; }
.site-header.is-open .nav-toggle .bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px){

  /* ✅ On annule le header "colonne" défini plus bas dans ton CSS */
  .header-inner{
    height: 70px;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 !important;
  }

  /* affiche burger */
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  /* menu principal = panneau déroulant */
  .main-nav{
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;

    display:none;                 /* fermé par défaut */
    flex-direction: column;
    gap: 0;
    flex-wrap: nowrap;

    background:#fff;
    border-bottom: 1px solid #eee;
    padding: 10px 20px 14px;
    z-index: 2500;
  }

  .site-header.is-open .main-nav{
    display:flex;
  }

  .main-nav a{
    padding: 12px 0;
  }

  /* dropdown : en mobile/tablette => clic (JS) au lieu de hover */
  .has-dropdown .dropdown{
    position: static;
    min-width: auto;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 8px 0;

    opacity: 1;
    transform: none;
    visibility: visible;

    display:none;                 /* fermé par défaut */
  }

  .has-dropdown.is-open .dropdown{
    display:block;
  }

  .dropdown a{
    padding: 10px 0 10px 12px;
  }

  /* retire l'effet soulignement anim en mode panneau (plus clean) */
  .main-nav a::after{ display:none; }
}

/* =========================================================
   HERO : déjà bien géré en mobile dans ton CSS,
   on garde, mais on réduit un peu l'encombrement tablette.
   ========================================================= */
@media (max-width: 1024px){
  .hero-text-inner{
    max-width: 90%;
    padding: 22px 22px;
  }
}

/* =========================================================
   Footer : lisible sur mobile
   ========================================================= */
@media (max-width: 768px){
  .footer-inner{
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.collection-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* au lieu de cover */
  display: block;
}
/* =========================================================
   ✅ FIX BESTSELLERS CAROUSEL : prix + bouton toujours alignés
   (ne change rien ailleurs)
   ========================================================= */
.carousel-track{
  align-items: stretch; /* toutes les cards même hauteur dans le carousel */
}

.carousel-track .product-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Titre : réserve l'espace de 2 lignes pour stabiliser la carte */
.carousel-track .product-card h3{
  line-height: 1.3;
  min-height: 2.6em; /* ~2 lignes */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Ligne prix + bouton : toujours en bas */
.carousel-track .product-card .product-meta{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Si le prix était un block global, on l'aligne à gauche ici */
.carousel-track .product-card .product-meta .price{
  margin: 0;
}
