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

@font-face {
    font-family: 'BodoniXT';
    src: url('/fonts/Kaisei.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter-SemiBold';
    src: url('/fonts/Inter-semiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* 🎨 Couleurs */
    --text-color: white;
    --background-color: #0A0A0A;
    --font-title: 'BodoniXT', serif;
    --font-subtitle:'Inter', serif;
    --font-subtitleBold:'Inter-SemiBold', serif;
}

html{
    font-size: 1.2vw;
}

body{
    background-color: #F1F1F1;
}

.content-cart-login{
    opacity: 1;
}

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

.line-bottom-header{
    transform: scaleX(1);
}


main{
    margin-top: 5rem;
}

.product-page{
    padding: 0 12rem;
    display: flex;
    gap:4rem
}

.product-header-top{
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 1rem
}

.logo{
    width: 3.5rem;
    filter: brightness(0);

}

.swiper {
    width: 100%;
  }

.product-header-top{
    width: 30rem;
    background-color: white;
    height: 35rem;
    border-radius: 1rem;
}

.product-main-image{
    width: 60%;
    display: block;
    margin: 0 auto;
}

.header-buttons{
    display: flex;
    justify-content: space-between;
}

.btn-icon{
border: none;
background-color: white;
cursor: pointer;
}

.btn-icon-img{
    width: 2rem;
}

.btn-icon:nth-child(1) .btn-icon-img{
    transform: rotate(180deg);
}

.product-header-images{
    display: flex;
    margin-top: 1rem;
    gap:1rem
}

.thumbnail{
    width: 6rem;
    background-color: white;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    cursor: pointer;
}

.thumbnail.active {
    border: 2px solid black;
  }

.thumbnail > img{
    width: 50%;
}

.product-details{
    width: 50%;
}

.error-quantity{
    font-size: 0.8rem;
    margin-top: 1rem;
    color:red
}

.product-title > h1{
    font-family: var(--font-subtitleBold);
    font-size: 4rem;


    letter-spacing: 0.2rem;

}

.product-pricing{
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.price{
    font-family: var(--font-subtitleBold);
    font-weight: bold;
    font-size: 2rem;
}

.product-category{
    font-size: 1rem;
     font-family: var(--font-subtitleBold);
    font-weight: bold;
}

.product-description{
    margin-top: 2rem;
}

.description-title,.stock-title,.title-quantity{
      font-family: var(--font-subtitleBold);
    font-size: 1rem;
    letter-spacing: 0.1rem;
}

.title-quantity{
    margin-bottom: 1rem;
}

.quantity-container{
    display: flex;
    flex-direction: column;
    margin-top: 2rem;

}

.add-to-cart-btn.disabled{
    pointer-events: none;
}

.container-update-quantity{
    display: flex;
    align-items: center;

     border:1px solid black;
     width: 7rem;
     justify-content: space-between;

     height: 2rem;
}

#product-quantity{
    width: 40%;
    height: 100%;
    text-align: center;
     background-color: #F1F1F1;
     border:none;
     font-size: 1rem;
}

#product-quantity:focus{
    outline: none;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

#increase-qty,#decrease-qty{
    font-size: 1.2rem;
    background-color: #F1F1F1;
    border:none;
    cursor: pointer;
    height: 100%;
    width: 30%;
}

.description-text{
     font-family: var(--font-subtitle);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.stock-info{
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.stock-quantity{
    font-family: var(--font-subtitle);
    font-size: 0.8rem;
    font-style: italic;
}

.product-quantity{
    display: flex;
    margin-top: 1rem;
    gap:1rem
}

.heptagon-border {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    background-color: black; /* Couleur de la bordure */
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.heptagon {
    position: absolute;
    width: 2.4rem; /* Légèrement plus petit pour créer l'effet de bordure */
    height: 2.4rem;
    background-color: #F1F1F1; /* Couleur du centre */
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    display: flex;
    cursor: pointer;
}


.heptagon > span{
    margin: auto;
    font-family: var(--font-subtitleBold);
    font-size: 0.8rem;
    font-weight: bold;
}

.quantity-option > img{
    width: 100%;
    position: absolute;
}

.product-composition{
    display: flex;
    width: 80%;
    background-color: #DEDEDE;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    margin-top: 2rem;
    border-radius: 0.3rem;
}

.composition-item{
    display: flex;
    flex-direction: column;
    align-items: center;gap:0.1rem
}

.composition-title{
    font-family: var(--font-subtitleBold);
    font-size: 0.8rem;
}
.composition-value{
    font-family: var(--font-subtitle);
    font-size: 0.8rem;
}

.product-actions{
    margin-top: 2rem;
}

.product-extra-images{
    display: flex;
    align-items: center;
    gap:1rem
}

.extra-image:nth-child(1){
    width: 3.2rem;
}

.extra-image:nth-child(2){
    width: 2rem;
}

.add-to-cart-btn{
    font-family: var(--font-subtitleBold);
    font-size: 1rem;
    background-color: #0A0A0A;
    border:none;
    color:white;
    font-weight: bold;
    padding:0.5rem 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.fleur-cbd-container{
    padding: 0 12rem;
    margin-top: 3rem;
    width: 70%;
}

.fleur-cbd-title{
    font-size: 1rem;
    font-family: var(--font-subtitleBold);
}

.fleur-cbd-text{
    font-size: 0.8rem;
    font-family: var(--font-subtitle);
    margin-top: 0.8rem;
}

.fleur-cbd-characteristics{
    margin-top: 1.5rem;
}

.fleur-cbd-feature{
    display: flex;
    gap:1.2rem
}

.fleur-cbd-feature-item{
    display: flex;
    align-items: center;
    background-color: #DEDEDE;
    padding: 0.1rem 1rem;
    border-radius: 1rem;
    gap:0.5rem;
    margin-top: 0.8rem;
    font-family: var(--font-subtitle);
}

.fleur-cbd-icon{
    width: 1.3rem;
}

.fleur-cbd-label{
    font-size: 0.8rem;
 font-family: var(--font-subtitle);
}

.fleur-cbd-reviews{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6rem;
    gap:2rem
}

.fleur-cbd-reviews-title{
    font-size: 1.8rem;
    font-family: var(--font-subtitleBold);
    text-align: center;
}

.fleur-cbd-reviews-button{
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-subtitle);
    border:none;
    background-color: #DEDEDE;
    cursor: pointer;
}

.reviews{
    margin-top: 8rem;
    padding: 0 3rem
}

.not-reviews{
    font-size: 1rem;
   font-family: var(--font-subtitle);
    text-align: center;
    margin: auto;
    display: block;
    font-weight: bold;
}

.section-products{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 6rem
}

.section-products > h2{
width: 70%;
align-self: flex-start;
margin-bottom: 1rem;
font-size: 1.7rem;
font-family: var(--font-primary);
}

.heptagon-border input:checked + .heptagon {
    background-color: #9fd594;;
}

.moyenne-titre{
    font-size: 4rem;
    font-family: var(--font-subtitleBold);
}

.moyenne-content{
    display: flex;
    align-items: center;
    justify-content: center;
    gap:0.5rem
}

.moyenne-note{
    font-size: 5rem;
    font-weight: bold;
    font-family: var(--font-subtitleBold);
}

.note-max{
    font-size: 1.5rem;
    font-family: var(--font-subtitle);
}

.nb-avis-titre{
    text-align: right;
    font-size: 1.1rem;
    display: block;
    font-family: var(--font-subtitle);
}

.nb-avis-client{
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-subtitleBold);
}

.aspects-container{
    display: flex;
    gap:2rem;
    margin: 4rem 0;
}

.aspect{
    width: 33.33%;
    display: flex;
    flex-direction: column;

}

.aspect-barre{
    width: 100%;
    height: 1.2rem;
    background-color: #DEDEDE;
    margin: 3rem 0 1.2rem 0;
}

.barre-moyenne{
    width: 50%;
    height: 100%;
    background-color: #0A0A0A;
}

.aspect-titre,.aspect-note{
    font-size: 1rem;
    font-family: var(--font-subtitle);
}

.aspect-note{
    font-weight: bold;
    font-family: var(--font-subtitleBold);
}

.avis-titres-container{
    display: flex;
    font-family: var(--font-subtitle);
}

.avis-titre-client{
    width: 15%;
}

.avis-titre-commentaire{
    width: 35%;
}

.avis-titre-category,.avis-note{
    width: 12.5%;
}

.avis-label,.avis-note{
    display: block;
    text-align: center;
    font-family: var(--font-subtitle);
}

.avis-list{
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}

.line-space{
    width: 100%;
    height: 3px;
    background-color: #0A0A0A;
}

.avis-client{
    width: 15%;
    font-family: var(--font-subtitle);
}

.avis-commentaire{
    width: 35%;
}

.avis-client-contenu{
    font-family: var(--font-subtitle);
    font-size: 0.9rem;
    font-style: italic;
}

.avis-item{
    display: flex;
    padding: 1.5rem 0;
    position: relative;
}

.avis-note-moyenne{
    font-weight: bold;
    background-color: rgb(229, 229, 229);
    height: 100%;
    position: absolute;
    right:0;
    top:0;
    padding: 1.5rem 0;
}

.section__title,.section__subtitle  {
    color: #0A0A0A;
}

.section__content--languages,.section__content--paiement,.section__content--remote,.section__content--perks,.section__content--values {
    background-color: #0A0A0A;
    color:white
}

#review-modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     z-index: 9999;
     align-items: center;
}

.content-modal-review{
    background: white;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 40%;
    padding: 1.5rem 2rem;
}

.close-modal{
    background-color: white;
    border:none;
    cursor: pointer;

}

.btn-close-modal{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal-img{
    width: 1.5rem;
}

.title-modal-review{
    font-size: 1.5rem;
}

#review-form{
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap:1rem
}

.star-review{
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

#first_name{
    padding: 0.5rem 0.2rem ;
    font-size: 0.9rem;
    border-radius: 0.2rem;
    border: 1px solid rgb(204, 204, 204);
}

#first_name:focus{
    outline: 1px solid #0A0A0A;
}

#review-content{
    padding: 0.5rem 0.2rem ;
    font-size: 0.9rem;
    border-radius: 0.2rem;
    border: 1px solid rgb(204, 204, 204);
}

#review-content:focus{
    outline: 1px solid #0A0A0A;
}

.label-review{
    font-size: 0.8rem;
}


.star {
    cursor: pointer;
    color:rgb(225, 225, 225);
    font-size: 1.8rem;
  }
  
  .star.selected {
    color: #0A0A0A;
  }

  .btn-submit-review{
    font-size: 1rem;
    background-color: #0A0A0A;
    color:white;
    border: none;
    padding: 0.2rem 0;
    cursor: pointer;
  }


#cart-notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap:0.5rem
}



.cart-notification {
background: black;
color: #fff;
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1rem;
padding: 1rem;
border-radius: 0.5rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
max-width: 30rem;
    opacity: 0;

}

.cart-notification.show {
    opacity: 1;
}

.cart-notification.fade-out {
    opacity: 0;
}
/* Image dans la notif */
.cart-notification img {
  width: 2rem;
  height: 2rem;
}

/* Animation de disparition */
.cart-notification.fade-out {
  opacity: 0;
}

.feedback-icon{
    width: 2rem;
}

.total-text-product{
    font-family: var(--font-subtitleBold);
    font-size: 1rem;
    letter-spacing: 0.1rem;
}

.total-container-product{
    margin-top: 1.2rem;
}

.out-of-stock {
  text-decoration: line-through;
  opacity: 0.5;
}


#age-popup{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:#000c;
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    padding: 0.5rem;
    min-height: 100%;
    height: 100%;
       box-sizing: border-box; /* évite que le padding dépasse */
    overflow-x: hidden; /* bloque les débordements éventuels */
}

.bloc-popup{
background:white;
padding:2rem;
border-radius:1rem;
text-align:center;
display: flex;
flex-direction: column;
gap:1.2rem;
margin: auto;

      /* ✅ ne dépasse jamais l’écran */
          /* ✅ prend toute la place dispo */
}

.title-popup-age{
    font-family: var(--font-title);
    font-weight: bold;
    font-size: 1.8rem;
}

.text-popup-age{
    font-family: var(--font-subtitle);
    font-size: 1.1rem;

}

.container-btn-age{
    display: flex;
    flex-direction: column;
    gap:1rem;
    margin-top: 0.5rem;
}

#accept-age,#refuse-age{
    background-color: #0A0A0A;
    border: none;
    color: #D9D9D9;
    font-family: var(--font-subtitleBold);
    font-size: 1rem;
    padding: 0.3rem 0;
    cursor: pointer;
}

#accept-age:hover,#refuse-age:hover{
    background-color: #171717;
    transform: scale(1.02);
}


.logo-instagram {
  filter: invert(1); /* noir → blanc */
}



@media (max-width: 991.98px) {
    html{
        font-size: 62.5%;
    }

      .bloc-popup{
background:white;
padding:2.5rem;
    }

    .title-popup-age{
    font-size: 3rem;
    }

    .text-popup-age{

        font-size: 1.5rem;
    }

    #accept-age,#refuse-age{

    font-size: 1.5rem;

}

.error-quantity {
  font-size: 1.2rem;

}


    .product-page{
        padding: 0 8rem;
        flex-direction: column;
    }

    .product-header {
        width: 100%;
    }

    .product-header-top {
        width: 100%;
       height: auto;
       padding: 3rem
    }

    .product-main-image {
        object-fit: cover;
        width: 50%;

    }

    .header-buttons {
        margin-top: 3rem;
    }

    .btn-icon-img {
        width: 4.5rem;
    }

    .logo {
        width: 10rem;
    }

    .thumbnail {
        width: 15rem;
        height: 15rem;
    }

    .product-title > h1 {
        font-size: 7rem;
        position: initial;
    }

    .product-description {
        margin-top: 4rem;
    }

    .product-title {
        height: auto;
    }

    .product-details {
        width: 100%;
    }

    .product-pricing {
        margin-top: 1rem;
    }

    .price {
        font-size: 4rem;
    }

    .product-category {
        font-size: 3rem;
    }

    .description-title, .stock-title,.title-quantity {
        font-size: 3rem;
    }

    .description-text {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .stock-quantity {
        font-size: 1.5rem;
    }

    .container-update-quantity{
    width: 14rem;
     height: 4rem;
}

#product-quantity,#increase-qty, #decrease-qty  {
    font-size: 2rem;
}

    .composition-title,.composition-value  {
        font-size: 1.5rem;
    }

    .extra-image:nth-child(1) {
        width: 8.1rem;
      }

    .extra-image:nth-child(2) {
    width: 5rem;
    }

    .add-to-cart-btn {
        font-size: 2rem;
        padding: 1rem 3rem
    }

    .heptagon,.heptagon-border  {
        width: 6rem;
        height: 6rem;
    }

    .heptagon > span {
        font-size: 2rem;
    }

    .product-extra-images {
        gap:2rem
    }

    .product-composition {
        margin-top: 4rem;
        width: 55%;
        padding: 1rem 3rem
    }

    .product-actions {
        margin-top: 4rem;
    }

    .fleur-cbd-container {
        width: 100%;
        padding: 0 8rem;
        margin-top: 5rem;
    }

    .fleur-cbd-title {
        font-size: 3rem;
    }

    .fleur-cbd-text {
        font-size: 2rem;
        margin-top: 1rem;
    }

    .fleur-cbd-characteristics {
        margin-top: 3rem;
    }

    .fleur-cbd-label {
        font-size: 1.7rem;
    }

    .fleur-cbd-icon {
        width: 2.2rem;
    }

    .fleur-cbd-feature-item {
        padding: 0.5rem 2rem;
        border-radius: 2rem;
        margin-top: 1rem;
    }

    .fleur-cbd-reviews-title {
        font-size: 3rem;
    }

    .fleur-cbd-reviews {
        margin-top: 10rem;
    }

    .fleur-cbd-reviews-button {
        font-size: 2rem;
        padding: 1rem 3rem;
    }

    .reviews {
        padding: 0 5rem;
        margin-top: 10rem;
    }

    .moyenne-titre{
        font-size: 5rem;
    }

    .note-max {
        font-size: 2rem;
    }

    .nb-avis-titre {
        font-size: 2rem;
        margin-top: 2rem;
    }

    .nb-avis-client {
        font-size: 3rem;
    }

    .aspect {
        width: 50%;
    }

    .aspects-container {
        flex-direction: column;
        gap:3rem;
        margin: 5rem 0;
    }

    .aspect-titre, .aspect-note {
        font-size: 2rem;
    }

    .aspect-barre {
        height: 1.7rem;
    }

    .avis-titre,.avis-titre-label {
        font-size: 2rem;
    }

    .avis-client-nom,.avis-client-contenu,.avis-note-moyenne {
        font-size: 1.7rem;
    }

    .avis-client-date{
        font-size: 1.5rem;
        font-style: italic;
    }



    .avis-titre-category,.avis-note-visuel,.avis-note-gout,.avis-note-effet {
        display: none;
    }

    .avis-titre-moyenne,.avis-note-moyenne{
        display: block;
        width: 15%;
    }

    .avis-titre-commentaire,.avis-commentaire  {
        width: 65%;
    }

    .avis-titre-client,.avis-client  {
        width: 20%;
    }

    .section-products > h2 {
        font-size: 3rem;
        margin-bottom: 5rem;
    }

    .moyenne-content {
        justify-content: start;
    }

    .content-modal-review{

    width: 60%;

}

.title-modal-review {
  font-size: 2rem;
}

#first_name,#review-content,.btn-submit-review {
    font-size: 1.5rem;
}

.label-review {
    font-size: 1rem;
}

.star {
    font-size: 2rem;
}

.close-modal-img {
    width: 2rem;
}

.star {
    font-size: 2.5rem;
}

 .label-review {
    font-size: 1.3rem;
  }


  .cart-notification {

  gap: 1rem;
  font-size: 2rem;
  padding: 1.3rem;
  max-width: 40rem;
}

/* Image dans la notif */
.cart-notification img {
  width: 2.2rem;
  height: 2.2rem;
}


.total-text-product{

    font-size: 2rem;

}

.total-container-product{
    margin-top: 3rem;
}


}

@media (max-width: 767.98px) { /* md- */
    /* styles pour écrans < 768px */

    .aspect {
        width: 70%;
    }

    .product-page,.fleur-cbd-container, .reviews   {
        padding: 0 3rem;
    }

    .fleur-cbd-container {
        margin-top: 7rem;
    }

    .logo {
        width: 8rem;
    }

    .product-composition {
        width: 60%;
    }

    .product-title > h1 {
        font-size: 6rem;
    }

    .price {
        font-size: 3.5rem;
    }

    .product-category,.description-title,.stock-title,  .fleur-cbd-title,.title-quantity  {
        font-size: 2.5rem;
    }

    .star-review {
        flex-direction: column;
        gap:1rem
    }

     .content-modal-review{

    width: 80%;

}



.star {
    font-size: 3rem;
}

  .cart-notification {

  gap: 1rem;
  font-size: 2.2rem;
  padding: 1.3rem;
  max-width: 43rem;
}

/* Image dans la notif */
.cart-notification img {
  width: 2.4rem;
  height: 2.4rem;
}

  }

  @media (max-width: 575.98px) {
      #cart-notification-container {
    left: 50%;
    transform: translateX(-50%);
    right: auto; /* on désactive le right */
    width: 90%;


  }


    #accept-age,#refuse-age{

    padding: 0.5rem 0;

}


    .cart-notification {
        max-width: 100%;
        text-align: center;
        font-size: 2rem;
        justify-content: center;
    }
    .content-modal-review{

    width: 90%;

}

.btn-submit-review {
    padding: 0.4rem 0;
}


    .product-title > h1 {
        font-size: 5rem;
    }

    .logo {
        width: 6rem;
    }

    .btn-icon-img {
        width: 3.5rem;
    }

    .product-page,.fleur-cbd-container, .reviews   {
        padding: 0 2rem;
    }

    .thumbnail {
        height: 12rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .product-category{
        font-size: 1.5rem;
    }


    .stock-info {
        margin-top: 3rem;
    }

    .product-composition {
        width: 80%;
    }

    .fleur-cbd-reviews-title {
        padding: 0 2rem;
    }

    .moyenne-titre,.moyenne-note  {
        font-size: 4rem;
    }

    .nb-avis-titre {
        margin-top: 3rem;
    }

    .aspect {
        width: 100%;
    }

    .avis-titre-commentaire, .avis-commentaire {
        display: none;
    }

    .avis-titre-client, .avis-client {
        width: 70%;
    }

    .avis-titre-moyenne, .avis-note-moyenne {

        width: 30%;
      }

      .fleur-cbd-feature {
        flex-direction: column;
      }

      .fleur-cbd-title {
        margin-bottom: 2rem;
      }

      .fleur-cbd-feature-item, .fleur-cbd-text  {
        margin-top: 0;
      }
  }