body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}


/*nav*/
.main-header {
    display: flex;
    background-color: white;
    justify-content: space-between;
    align-items: center;
    padding: 10px 70px;
    position: sticky;
    top:0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.logo-img {
    height: 75px;
    display: block;
}

.menu {
    display: flex;
    gap: 150px;
    font-size: 20px;
    font-weight: bold;
}

.menu a {
    text-decoration: none;
    color: black;
    transition: transform 0.2s ease;
    display: inline-block;
}

.menu a:hover {
    transform: scale(1.1);
}

.actions {
    display: flex;
    gap: 20px;
}

.btn i {
    margin-right: 5px;
}

.actions .btn {
    padding: 5px 10px;
    text-decoration: none;
    color: black;
    font-size: 24px;
}

/*nav-menu_compte*/
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
}

/* Menu déroulant centré */
.dropdown-menu {
  position: absolute;
  top: 135%;
  left: 50%;
  transform: translate(-50%, -10px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  width: 240px;
  padding: 15px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 5;
}

/* Grande flèche centrée */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 49.3%;
  transform: translateX(-50%);
  border-width: 20px;
  border-style: solid;
  border-color: transparent transparent White transparent;
}

/* Affichage au survol */
.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}


/* Liens et contenu */
.dropdown-menu .auth-actions {
  text-align: center;
  margin-bottom: 10px;
}

.dropdown-menu .auth-actions .connect {
  font-weight: bold;
  font-size: 16px;
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
  color: black;
}

.dropdown-menu .auth-actions .register {
  font-size: 14px;
  color: #777;
  text-decoration: none;
}

.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.dropdown-menu ul li {
  margin: 8px 0;
}

.dropdown-menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  display: block;
}
/*footer*/

.pied-de-page {
  background-color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.25);
  color: #000;
}

.contenu-footer {
  max-width: 1000px;
  margin: 0 auto;
}

.pied-de-page p {
  font-size: 18px;
  margin-bottom: 16px;
  color: #000;
}

.lien-contact {
  color: #F05365;
  font-weight: bold;
  transition: transform 0.2s ease-in-out;
  display: inline-block;
  text-decoration: none;
}

.lien-contact:hover {
  transform: scale(1.05);
}

.liens-footer {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.liens-footer a {
  color: #000;
  text-decoration: none;
  transition: transform color 0.2s ease-in-out;
}

.liens-footer a:hover {
  color: #F05365;
  transform: scale(1.1);
}

.reseaux-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.reseaux-footer a {
  color: #000;
  font-size: 20px;
  transition: transform 0.2s ease-in-out, color 0.2s;
}

.reseaux-footer a:hover {
  color: #F05365;
  transform: scale(1.2);
}

/* Responsive Footer */

@media (max-width: 1500px) {
  .contenu-footer {
    max-width: 900px;
  }

  .liens-footer {
    gap: 20px;
  }
}

@media (max-width: 1200px) {
  .contenu-footer {
    max-width: 800px;
  }

  .pied-de-page p {
    font-size: 16px;
  }

  .liens-footer {
    gap: 16px;
    font-size: 15px;
  }

  .reseaux-footer a {
    font-size: 18px;
  }
}

@media (max-width: 1000px) {
  .contenu-footer {
    padding: 0 20px;
  }

  .pied-de-page {
    padding: 30px 15px;
  }

  .liens-footer {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .reseaux-footer {
    flex-direction: row;
    gap: 16px;
    margin-top: 16px;
  }

  .reseaux-footer a {
    font-size: 18px;
  }
}


/* Accueil */
.accueil-hero {
  padding: 40px 80px;
  max-width: 80%;
  margin: auto;
  background: transparent;
}

/* Image principale */
.accueil-img1 {
  text-align: center;
  margin-bottom: 60px;
}

.accueil-img1 img {
  max-width: 65%;
  height: auto;
  border-radius: 0;
}

.image-texte-bloc {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background: transparent;
}

.image-texte-bloc2 {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background: transparent;
  flex-direction: row-reverse;
}

.bloc-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 0;
}

.bloc-texte {
  flex: 1;
}

.bloc-texte2 {
    flex: 1;
    text-align: right;
}
.bloc-texte h2, .bloc-texte2 h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #000;
  text-transform: uppercase;
}

.bloc-texte p, .bloc-texte2 p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

/* Responsive */
@media (max-width: 1000px) {
  .image-texte-bloc {
    flex-direction: column;
    text-align: center;
  }

  .bloc-texte {
    padding: 0 20px;
  }

  .bloc-image img {
    max-width: 100%;
  }
}


/*catalogue*/
.titre_catalogue{
    padding:30px 0px 20px 0px;
    text-align: center;
}
.product-grid {
    display: grid;
    padding: 0px 130px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 0.5fr));
    gap: 30px;
    margin: 30px 30px 70px 30px;
}


.product-card {
    text-align: center;
    font-family: 'Arial', sans-serif;
    position: relative;
    max-width: 500px;
    height: auto;
}


.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* carré parfait */
    background: #f3f3f3;
    overflow: hidden;
    border-radius: 12px;
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}


.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    z-index: 2;
}


.product-title {
    font-size: 14px;
    text-transform: uppercase;
    margin: 10px 0 0;
}

.product-price {
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    position: relative;
    border-radius: 12px;
    transition: transform 0.2s ease;
    
}

.product-card:hover {
    transform: scale(1.02);
}

/*produits*/
.fiche-produit .container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 130px;
}

.fiche-produit-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: flex-start;
}

.product-title2 {
    font-size: 48px;
    text-transform: uppercase;
    margin: 10px 0 0;
}

.product-price2 {
    font-weight: bold;
    font-size: 32px;
    margin-top: 5px;
}

.fiche-image {
    flex: 1 1 400px;
    position: relative;
    background: #f3f3f3;
    border-radius: 12px;
    overflow: hidden;
}

.fiche-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fiche-details {
    flex: 1 1 400px;
}

.product-description {
    font-size: 24px;
    line-height: 1.6;
    margin: 20px 0;
}

.add-to-cart-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-to-cart-form input[type="number"] {
    width: 100px;
    padding: 6px;
    font-size: 16px;
    border-radius: 10px;
}

.add-to-cart-btn {
    background-color: black;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    width: fit-content;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}


.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: black;
    border: 2px solid black;
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.share-btn:hover {
    background-color: black;
    color: white;
}

.share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalogue-filtres {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap; /* ❗ force tous les éléments sur une ligne */
    align-items: center;
    margin: 30px auto;
    padding: 20px 130px;
    box-sizing: border-box;
    width: 90%;
}


.catalogue-filtres input[type="text"],
.catalogue-filtres button {
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 100px;
    border: 2px solid #000;
    background: white;
    outline: none;
    transition: all 0.2s ease-in-out;
    width: 90%;
}

.catalogue-filtres select{
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 100px;
    border: 2px solid #000;
    background: white;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.catalogue-filtres input[type="text"]:focus,
.catalogue-filtres select:focus {
    border-color: #f05365;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.catalogue-filtres button {
    background-color: #f05365;
    color: white;
    cursor: pointer;
}

.catalogue-filtres button:hover {
    background-color: #ca4554;
}

.recherche {
    flex: 0 0 70%;
    display: flex;
    align-items: center;
}

.recherche input[type="text"] {
    width: 100%;
}

.filtres-droite {
    flex: 0 0 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.recherche2 {
    flex: 1;
    display: flex;
}

.recherche2 select,
.recherche2 button {
    width: 100%;
}

/*======================*/

.fiche-produit-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
}


.fiche-image-gallery {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex: 0 0 60%;
    max-width: 70%;
    align-items: flex-start;
}



.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    max-height: 500px;
    overflow-y: auto;
}

.main-image-wrapper {
    position: relative;
    flex: 1;
    background: #f3f3f3;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}


.fiche-details {
    flex: 0 0 40%;
    max-width: 30%;
}


.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 16px;
    padding: 4px 11px 6px 11px;
    cursor: pointer;
    border-radius: 100px;
    z-index: 1;
    transition: background 0.3s;
}
.nav-btn:hover {
    background: black;
    color: white;
}
.nav-btn.leftcar {
    left: 10px;
}
.nav-btn.rightcar {
    right: 10px;
}

.thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}
.thumbnails img.active {
    border: 2px solid black;
}



/* === Panier === */
.main-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  padding: 60px 5%;
}

.left, .right {
  background: white;
  padding: 30px;
  border-radius: 10px;
}

.left {
  flex: 3;
}

.right {
  flex: 1.5;
}

.product-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.product-line img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
}

.product-info {
  flex-grow: 1;
  margin-left: 10px;
}

.product-name {
  font-weight: bold;
}

.btn-paiement {
  background: #f05365;
  color: white;
  padding: 14px;
  width: 100%;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-paiement:hover {
  background-color: #bd3d4f;
}

.empty-state {
  text-align: center;
  margin-top: 120px;
}

.empty-state i {
  font-size: 60px;
  color: #bbb;
}

.btn-panier {
  padding: 12px;
  display: block;
  margin: 10px auto;
  width: 250px;
  text-align: center;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.btn-login {
  background: #f05365;
  color: white;
}

.btn-signup {
  border: 1px solid black;
  color: black;
  background: none;
}


.btn-compte {
  padding: 12px;
  display: block;
  margin: 10px auto;
  width: 250px;
  text-align: center;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}




.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #f05365;
    border-radius: 999px;
    padding: 3px 10px;
    background: white;
    margin-left: 30px;
}

.quantity-control button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: black;
}

.quantity-control span {
  font-weight: bold;
  font-size: 16px;
  width: 20px;
  text-align: center;
}


/* === COMPTE === */
.compte-wrapper {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  padding: 60px 5%;
  flex-direction: column;
}

.bloc-gauche, .bloc-droite {
  background: white;
  border-radius: 12px;
}

.bloc-gauche {
  flex: 1.5;
  text-align:center;
  padding:15px;
}

.bloc-droite {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 15px;
  justify-content: center;
}

.user-info {
  font-size: 16px;
  line-height: 1.6;
}

/* Onglet style carte */
.onglet-carte {
  width: 280px;
  background: #fafafa;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.onglet-carte:hover {
  transform: translateY(-5px);
}

.onglet-carte i {
  font-size: 30px;
  color: #f05365;
  margin-bottom: 10px;
}

.onglet-carte h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  font-weight: bold;
}

.onglet-carte p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* Partie non connectée */
.empty-state {
  text-align: center;
  margin-top: 120px;
}

.empty-state i {
  font-size: 60px;
  color: #bbb;
  margin-bottom: 20px;
}



/*mes_commandes*/
.commandes-client-body {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
}

.commandes-client-conteneur {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background:#f7f7f7 ;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.commandes-client-titre {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.commandes-client-tableau {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.commandes-client-tableau thead {
    background-color: #333;
    color: white;
}

.commandes-client-tableau th,
.commandes-client-tableau td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.commandes-client-tableau tbody tr:hover {
    background-color: #f0f0f0;
}

.commandes-client-lien {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s;
}

.commandes-client-lien:hover {
    color: #0056b3;
}

.commandes-client-vide {
    text-align: center;
    color: #777;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .commandes-client-conteneur {
        padding: 10px;
    }
    .commandes-client-tableau {
        font-size: 13px;
    }
}

/* === Choix Adresse === */


.choix_address_main_container {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px 30px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: Arial, sans-serif;
}

.choix_address_form_title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #111;
}

.choix_address_form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.choix_address_form_block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.choix_address_form_block label {
  font-weight: bold;
  font-size: 15px;
  color: #111;
}

.choix_address_form_block input[type="text"],
.choix_address_form_block input[type="tel"],
.choix_address_form_block select {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.2s ease-in-out;
  box-sizing: border-box;
}

.choix_address_form_block input:focus,
.choix_address_form_block select:focus {
  outline: none;
  border-color: #f05365;
}

.choix_address_row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.choix_address_row div {
  flex: 1;
  min-width: 45%;
}

.choix_address_hint {
  font-size: 13px;
  color: #666;
  margin-top: -10px;
  margin-bottom: 10px;
}

.choix_address_checkbox_toggle {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
}

.choix_address_btn_paiement {
  background: #f05365;
  color: white;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  width: 100%;
}

.choix_address_btn_paiement:hover {
  background-color: #c73e4e;
}

@media (max-width: 600px) {
  .choix_address_main_container {
    margin: 30px 20px;
    padding: 20px;
  }

  .choix_address_row {
    flex-direction: column;
  }

  .choix_address_row div {
    min-width: 100%;
  }
}
