/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: #1A0033;
  font-family: "Poppins", sans-serif;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background-color: #e6e6e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  min-height: 60px; /* hauteur fixe de la navbar */
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
}

.logo span {
  font-family: "Jockey One", sans-serif;
  font-size: 1.5em; /* tu peux ajuster */
  font-weight: normal; /* Jockey One est déjà bold */
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

/* Menu */
.menu a {
  color: black;  
  text-decoration: none;
  font-weight: bold;
  margin: 0 5px;
}
.menu span {
  color: #000000;
  margin: 0 5px;
}

main {
  flex: 1;
}

h1 {
  color: white;
  text-align: center;
  margin-top: 30px;
}

.p_1,
.p_2 {
  text-align: center;
  color: white;
  margin-top: 20px;
}

.custom_btn {
  display: block;               /* le lien agit comme un bouton */
  width: fit-content;
  margin: 80px auto;            /* centré horizontalement */
  background-color: #E2E2E2;    /* couleur de fond */
  color: #000000;               /* couleur du texte */
  font-size: 16px;
  font-weight: bold;
  padding: 12px 40px;           /* taille du bouton */
  border-radius: 30px;          /* arrondi */
  text-align: center;           /* texte centré */
  text-decoration: none;        /* enlève le soulignement */
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.custom_btn:hover {
  background-color: #FFFFFF;    /* plus clair au survol */
  transform: translateY(-2px);  /* léger effet de soulèvement */
}

.custom_btn:active {
  transform: translateY(0);     /* effet de clic */
}

h2 {
  color: white;
  text-align: center;
  margin-top: 50px;
}

/* Container des cartes */
.cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap; /* passe en colonne si petit écran */
  margin: 50px;
}

/* Carte individuelle */
.card {
  background: linear-gradient(to bottom, #E2E2E2, #ffffff);
  border-radius: 15px;
  padding: 20px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

/* Titres */
.card h3 {
  margin-bottom: 15px;
  font-size: 1.2em;
}

/* Texte */
.card p {
  font-size: 0.95em;
  line-height: 1.4;
}

.p_3 {
  color: white;
  text-align: center;
  margin: 60px 0px 150px 50px;
  margin-left: calc(50% - 420px); 
  text-align: left; 
  margin-top: 40px; 
}

/* ====== Variables par défaut (faciles à modifier) ====== */
:root {
  /* page accueil */
  --search-height: 48px;
  --search-width: clamp(0px, 300px, 700px);
  --search-gap: 10px;
  --search-padding: 12px;
  --search-bg: #ffffff;
  --search-border: #e2e2e2;
  --search-text: #000000;
  --search-placeholder: #E2E2E2;
  --search-shadow: 0 6px 18px rgba(0,0,0,0.08);
  --search-focus: 0 0 0 3px rgba(0, 123, 255, 0.25);
  /* page catalogue */
  --card-width: 100%;
  --card-radius: 16px;
  --card-bg: #fff;
  --card-shadow: 0 10px 24px rgba(0,0,0,.08);
  --card-gap: 22px;
  --card-padding: 16px;
  --title-size: 1.1rem;
  --text-size: .95rem;
  --btn-bg: #000000;
  --btn-text: #ffffff;
  --btn-hover-bg: #000000;
  --btn-radius: 999px;
  --btn-pad: 10px 16px;
}

/* page catalogue */
/* ====== Composant Search ====== */
.search {
  width: var(--search-width);
  height: var(--search-height);
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: var(--search-radius);
  box-shadow: var(--search-shadow);

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--search-gap);
  padding: 0 var(--search-padding);
  margin: 40px auto 0 auto;
  justify-content: center;
}

.search_icon {
  font-size: 18px;
  color: var(--search-icon);
  display: inline-flex;
  align-items: center;
}

.search_input {
  width: 100%;
  height: calc(var(--search-height) - 2px);
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--search-font);
  color: var(--search-text);
}
.search_input::placeholder { 
  color: var(--search-placeholder); 
}

/* ====== Variantes de forme ====== */
.search_pill    { 
  --search-radius: 999px;
}

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

.filter_btn img {
  border: none;
  width: 22px;
  height: 22px;
}

/* Conteneur des cartes */
.cards_row {
  display: flex;
  justify-content: center;  /* centre les cartes */
  gap: 90px;                /* espace entre elles */
  margin: 40px 0;
}

/* Style de la carte */
.card_produit {
  background: #fff;                          /* fond blanc */
  border-radius: 12px;                       /* coins arrondis */
  padding: 50px;
  text-align: center;
  width: 250px;                              /* largeur fixe */
}

/* Image */
.card_img {
  width: 100%;
  height: 150px;
  object-fit: contain;   /* garde le ratio de l’image */
  margin-bottom: 10px;
}

/* Titre */
.card_title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Prix */
.card_price {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

/* Bouton */
.card_btn {
  display: block;
  width: 100px;
  margin: 0 auto;
  padding: 8px 0;
  text-align: center;
  background-color: #000;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.card_btn:hover {
  background-color: #333;
}

.pagination {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;
  gap: 20px; /* espace entre les boutons */
  margin-top: 40px;
}

.pagination a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: #D9D9D9; /* gris clair */
  color: #000; /* texte noir */
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  border-radius: 10px; /* coins arrondis */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* ombre douce */
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 100px;
  margin-bottom: 200px;
}

.pagination a:hover {
  background-color: #E2E2E2; /* un peu plus clair au hover */
  transform: translateY(-2px); /* petit effet de survol */
}

.pagination a.active {
  background-color: #ffffff; /* fond blanc */
  border: 2px solid #fff; /* contour blanc */
}

/* Page Panier */
.cards_panier {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.card_produit_panier {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #E2E2E2, #ffff);
  border-radius: 30px;
  padding: 30px;
  gap: 20px;
  position: relative;
  height: 175px;
  margin-left: 100px;
  margin-right: 100px;
  margin-top: 35px;
  justify-content: space-between; /* espace entre le contenu gauche et le bouton quantité */
}

.card_img_panier {
  width: 100px;
  object-fit: cover;
}

.card_content_panier {
  flex: 1;
}

.card_content_panier h3 {
  margin: 0;
  font-size: 18px;
}

.desc_panier {
  margin: 5px 0;
  font-size: 14px;
}

.extras_panier {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between; /* pousse le bouton à droite */
}

.counter_panier {
  display: flex;
  align-items: center;
  background: #E2E2E2;
  border: 1px solid #1A0033;
  border-radius: 20px;
  padding: 3px 8px;
  gap: 8px;
  font-weight: bold;
  margin-top: 20px;
}

.counter_panier button {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.main_counter_panier {
   margin-top: 0; /* optionnel si tu veux remonter */
}

.delete {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-right: 30px;
}

.separator {
  border: none;
  height: 2px;   
  background: #E2E2E2; 
  border-radius: 2px; 
  margin: 20px 0;
}

.resume_panier {
  display: block;          /* pas besoin de flex avec image */
  text-align: center; 
  height: auto;            /* hauteur auto (pas bloquée à 150px) */
  margin-top: 20px;
  margin-bottom: 50px;
}

.resume_panier h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
}

.resume_panier .price_panier {
  font-size: 18px;
  font-weight: bold;
  color: #1A0033; /* même couleur que ton thème */
}

.paiement_container {
  display: flex;
  justify-content: center;   /* bouton centré */
  margin: 20px 0 40px 0; 
}

.btn_paiement {
  display: block;               /* le lien agit comme un bouton */
  width: fit-content;
  margin: 80px auto; 
  background-color: #E2E2E2;
  color: #000000;  
  font-size: 16px;
  font-weight: bold;
  padding: 12px 40px; 
  border-radius: 30px;
  text-align: center;
  text-decoration: none;        /* enlève le soulignement */
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn_paiement:hover {
  background-color: #FFFFFF; 
  transform: translateY(-2px);  /* léger effet de soulèvement */
}

.btn_paiement:active {
  transform: translateY(0);     /* effet de clic */
}

.suggestions {
  margin: 40px auto;
  text-align: center;
}

.suggestions h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #fff;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.carousel_track {
  display: flex;
  gap: 20px;
  overflow: hidden;   /* cache les produits qui débordent */
  width: 900px;       /* largeur pour 3 cartes max */
}

.carousel_item {
  flex: 0 0 280px;   /* chaque produit a une largeur fixe */
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.carousel_item img {
  width: 100px;
  margin-bottom: 10px;
}

.btn_detail {
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}

.carousel_btn {
  background: transparent;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

/* page paiement */
/* Conteneur général */
.checkout-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
}

/* Styles communs aux cartes */
.card_paiement {
  background: linear-gradient(to right, #E2E2E2, #ffff);
  border-radius: 15px;
  padding: 20px;
  flex: 1;
}

/* Formulaire */
.form_card_paiement h3 {
  margin-bottom: 15px;
}

.form_card_paiement form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form_card_paiement input {
  padding: 8px;
  border: 1px solid #E2E2E2;
  border-radius: 8px;
}

.row {
  display: flex;
  gap: 10px;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Résumé commande */
.summary_card_paiement h3 {
  margin-bottom: 15px;
}

.summary_card_paiement ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.summary_card_paiement li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

/* Compteur */
.counter_paiement {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #444;
  border-radius: 20px;
  padding: 2px 10px;
  font-weight: bold;
  background-color: #E2E2E2
}

.counter_paiement button {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

/* Totaux */
.totals p {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}

.total {
  font-weight: bold;
  font-size: 18px;
  background: #E2E2E2;
}

/* Conteneur principal mis à jour */
.checkout_container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  flex-wrap: wrap; /* permet de passer à la ligne */
}

/* Carte paiement */
.card_methode {
  max-width: 500px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 15px;
  background: linear-gradient(to right, #E2E2E2, #ffff);
}

.card_methode h3 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Formulaire */
.card_methode form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card_methode label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.card_methode input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Ligne expiration + CVV */
.card_methode .row {
  display: flex;
  gap: 15px;
}

.card_methode .row .col {
  flex: 1;
}

.payment_card {
  margin-top: 30px;
  max-width: 500px;
  flex: 1 1 100%;   /* prend toute la largeur dispo */
}

.payment_card h3 {
  text-align: center;
  margin-bottom: 15px;
}

/* Logos paiement */
.payment_logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;        /* évite tout débordement */
}

.payment_logos img {
  max-height: 35px; 
  max-width: 60px;
  object-fit: contain; 
}

.payment_card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment_card input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.payement_form {
  text-align: center;
  padding-top: 35px;
}

.btn_payer {
  display: block;
  margin: 50px auto;
  padding: 12px 40px;
  background-color: #E2E2E2;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn_payer:hover {
  background-color: #ffffff; 
}

/* page confirmation */
.img_poucevert {
  height: 170px;
  width: auto;
  margin-bottom: 30px;
  display: block;         /* pour pouvoir centrer avec margin auto */
  margin-left: auto;
  margin-right: auto; 
  margin-top: 15px;
}

.resume_container_confirmation {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;    
  min-height: 50vh;       /* occupe toute la hauteur de la page */
}

.confirmation {
  color: #E2E2E2;
  font-size: 19px;
  margin-top: 10px;
}

.card_resume_confirmation {
  background: linear-gradient(to right, #E2E2E2, #ffffff);
  border-radius: 30px;
  padding: 20px 30px;
  width: 450px;
  font-family: "Poppins", sans-serif;
}

.card_resume_confirmation p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  font-size: 16px;
  font-weight: 500;
}

.card_resume_confirmation .counter_confirmation {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #666;
  border-radius: 8px;
  padding: 4px 12px;
  font-weight: bold;
  font-size: 14px;
  min-width: 30px;
  text-align: center;
}

.card_resume_confirmation .date_confirmation {
  font-size: 14px;
  color: #333;
  margin-top: 20px;
}

/* Page 404 */
.page_notfound {
  display: flex;
  flex-direction: column; /* empile les éléments */
  align-items: center; 
  justify-content: flex-start; /* aligne en haut */
  margin-top: 60px;
  text-align: center;
  color: #ffffff;
}

.img_poucerouge_notfound {
  height: 170px;
  width: auto;
  margin-bottom: 30px;
}

.page_notfound h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin: 10px 0;
  letter-spacing: 1px;
}

.btn_accueil {
  display: inline-block;
  background: #e6e6e6;
  color: #000;
  font-weight: bold;
  font-size: 24px;
  padding: 15px 40px;
  border-radius: 30px;
  margin-top: 40px;
  margin-bottom: 200px;
  text-decoration: none;
  transition: 0.3s;
}

.btn_accueil:hover {
  background: #ffffff;
}


/* Footer */
.footer {
  background-color: #e6e6e6;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9em;
  color: #000;
}

.footer a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  margin: 0 5px;
}

/* RESPONSIVE - VERSION MOBILE */
@media (max-width: 768px) {

/* Structure générale */
main {
  margin-top: 20px; 
  padding: 25px;
}


/* Navbar - version mobile */
.navbar {
  width: 104%; 
  position: relative;
  left: 0;
  right: 0;
  background-color: #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  text-align: center;
  min-height: 180px;
  box-sizing: border-box;
}



.logo {
  display: flex;
  flex-direction: column-reverse; 
  align-items: center; 
}

/* Texte GameShare en haut */
.logo span {
  display: block;
  font-family: "Jockey One", sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: #000;
  margin-bottom: 5px; 
}

/* Logo image juste en dessous du texte */
.logo img {
  height: 80px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Menu horizontal encore en dessous */
.menu {
  display: flex;
  flex-direction: row; /* en ligne */
  justify-content: center;
  align-items: center;
  gap: 15px; 
  margin-top: 15px; 
}

/* Style des liens */
.menu a {
  color: #000;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

/* Séparateurs si tu veux les garder */
.menu span {
  color: #000;
}

/* Page Accueil */
@media (max-width: 768px) {
h1 {
  font-size: 30px;
  margin-top: 20px;
  line-height: 1.3;
}

h2 {
  font-size: 25px;
  margin-top: 30px;
}

p, .p_1, .p_2, .p_3 {
  font-size: 20px;
  line-height: 1.5; /* lisibilité mobile */
  margin: 25px 0;
}

.p_3 {
  margin: 30px 10px 60px 10px; /* marges adaptées */
}

/* Bouton principal */
.custom_btn {
  margin: 40px auto; /* centré horizontalement */
  padding: 10px 30px; /* réduit */
  font-size: 14px;
}

/* Services */
.cards {
  flex-direction: column; /* une carte par ligne */
  align-items: center; 
  gap: 20px; 
  margin: 30px 0;
}

.card {
  width: 90%;
  padding: 15px;
  height: 250px;         
  display: flex;              
  flex-direction: column;     
  justify-content: center;
  align-items: center;  
  text-align: center;   
}

.card h3 {
  font-size: 25px;
}

.card p {
  font-size: 20px;
}
}

/* PAGE CATALOGUE */
@media (max-width: 768px) {
.page_catalogue .menu {
  margin-top: -15px;
}

/* Titre principal */
h1 {
  font-size: 22px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Barre de recherche + filtre */
.search {
position: sticky;
top: 0;
z-index: 1000;

/* On garde le style desktop */
  width: 90%;
  margin: 15px auto;
  border-radius: 999px;
  box-shadow: var(--search-shadow);
  border: 1px solid var(--search-border);
  background: var(--search-bg);

  /* On adapte juste la taille */
  height: 45px;
  padding: 0 15px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.search_input {
  font-size: 14px;
}

.search_icon {
  font-size: 18px;
}

.filter_btn img {
  width: 18px;
  height: 18px;
}

/* Grille des cartes produits */
.cards_row {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  gap: 15px;
  justify-items: center;
  margin: 20px 0;
  padding: 0 10px;
}

.card_produit {
  width: 100%;
  max-width: 160px;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.card_img {
  height: 100px;
  margin-bottom: 8px;
  object-fit: contain;
}

.card_title {
  font-size: 14px;
  margin-bottom: 4px;
}

.card_price {
  font-size: 12px;
  margin-bottom: 6px;
}

.card_btn {
  font-size: 12px;
  width: 80px;
  padding: 6px 0;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}


/* Sur très petits écrans : 1 carte par ligne */
.cards_row {
  grid-template-columns: 1fr;
}

.card_produit {
  max-width: 220px;
}



/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 100px;
}

.pagination a {
  width: 35px;
  height: 35px;
  background-color: #D9D9D9;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.pagination a.active {
  background-color: #fff;
}

.pagination a:hover {
  transform: translateY(-2px);
}
}


/* PAGE PANIER */
@media (max-width: 768px) {
.page_panier .menu {
  margin-top: -15px; /* réduit l’espace entre le logo et le menu */
}

/* ===== 🧱 Structure générale ===== */
main {
  padding: 20px;
}

h1 {
  font-size: 24px;           /* réduit le titre */
  text-align: center;        /* centré */
  margin: 20px 0;
}

/* Cartes Panier */
.cards_panier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.card_produit_panier {
  display: flex;
  flex-direction: row;         
  align-items: flex-start;     
  justify-content: flex-start; 
  background: linear-gradient(to right, #E2E2E2, #ffffff);
  border-radius: 20px;
  padding: 15px;
  margin: 10px auto;        
  position: relative;
  gap: 15px;
  margin-left: -25px;
  margin-right: -25px;
}

.card_img_panier {
  width: 70px;
  height: auto;
  object-fit: contain;
}

.card_content_panier {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.card_content_panier h3 {
  font-size: 14px;
  margin: 0px;
}

.extras_panier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -10px;
}

.desc_panier {
  font-size: 12px;
  line-height: 1.3;
  margin: -5px 0;
}

.price_panier {
  font-size: 13px;
  font-weight: bold;
  margin-top: 3px;
}

.counter_panier {
  display: flex;
  align-items: center;
  background: #E2E2E2;
  border: 1px solid #1A0033;
  border-radius: 20px;
  padding: 2px 6px;
  gap: 8px;
  font-weight: bold;
  font-size: 12px;
}

.counter_panier button {
  border: none;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

/* Bouton de suppression */
.delete {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Séparateur */
.separator {
  width: 90%;
  margin: 30px auto;
}

/* Résumé panier */
.resume_panier {
  width: 95%;  
  margin: 15px auto;
  background: linear-gradient(to right, #E2E2E2, #ffffff);
  border-radius: 20px;
  padding: 15px;   
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;     
  min-height: 180px;                 
}

.resume_panier h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.resume_panier p,
.resume_panier .desc_panier,
.resume_panier .price_panier {
  font-size: 12px; 
  line-height: 1.3; /* moins d’écart vertical */
  margin: 3px 0;
}

.resume_panier .price_panier {
  font-weight: bold;
  color: #1A0033;
  margin-top: 5px;
}

/* Bouton Paiement */
.paiement_container {
  margin: 20px 0 40px 0;
}

.btn_paiement {
  font-size: 14px;
  padding: 10px 25px;
  margin: 0 auto;
  display: block;
}

/* Section Suggestions */
.suggestions {
  margin: 30px auto;
  width: 100%;
  text-align: center;
}

.suggestions h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #fff;
}

.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0 auto;
  max-width: 100vw; /* empêche le débordement horizontal */
}

  /* 3 cartes visibles côte à côte */
.carousel_track {
  display: flex;
  justify-content: space-between; /* répartit proprement les 3 cartes */
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 0 10px; 
  box-sizing: border-box;
}

.carousel_item {
  flex: 0 0 33.33%;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.carousel_item img {
  width: 45px;
  margin-bottom: 2px;
}

.carousel_item h3 {
  font-size: 11px;
  margin-bottom: 0px;
}

.carousel_item p {
  font-size: 10px;
  margin-bottom: 2px;
}

.btn_detail {
  background: #000;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

/* Flèches gauche/droite */
.carousel_btn {
  font-size: 20px;
  color: #fff;
  padding: 5px;
}
}

/* PAGE PAIEMENT */
@media (max-width: 768px) {
.page_paiement .menu {
  margin-top: -15px;
}

/* Conteneur général du paiement */
.checkout_container {
  flex-direction: column; 
  align-items: center;
  gap: 20px;
  margin: 20px auto;
}
/* Cartes principales */
.card_paiement {
  width: 95%;
  max-width: 400px;
  padding: 20px;
}
/* Titres des cartes */
.card_paiement h3 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
}
/* Carte du formulaire */
.form_card_paiement label {
  font-size: 14px;
}

.form_card_paiement input {
  padding: 8px;
  font-size: 14px;
}

.form_card_paiement .row {
  flex-direction: column; 
  gap: 10px;
}
/* Carte résumé commande */
.summary_card_paiement ul li {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
/* Compteur quantité (- 1 +) */
.counter_paiement {
  padding: 2px 8px;
  font-size: 14px;
}

.counter_paiement button {
  font-size: 14px;
}
/* Section totaux (Sous total, frais, total) */
.totals p {
  font-size: 14px;
}

.total {
  font-size: 16px;
}
/* Carte méthode de paiement */
.card_methode {
  width: 95%;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
}

.card_methode h3 {
  font-size: 18px;
}
/* Logos des moyens de paiement (CB, Visa, etc.) */
.payment_logos {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.payment_logos img {
  max-width: 50px;
  max-height: 30px;
}
/* Inputs du formulaire de paiement */
.card_methode input {
  font-size: 14px;
  padding: 8px;
}

.card_methode .row {
  flex-direction: column;
  gap: 10px;
}
/* Bouton "Payer" */
.btn_paiement {
  width: fit-content;
  margin: 30px auto;
  font-size: 14px;
  padding: 10px 25px;
}

}

/* PAGE CONFIRMATION */
@media (max-width: 768px) {
/* Image pouce vert */
.img_poucevert {
  width: 100px;
  height: auto;
  margin: 30px auto 20px auto;
  display: block;
}

/* Titre principal */
h1 {
  font-size: 22px;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* Sous-titre */
.confirmation {
  font-size: 14px;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 25px;
}

/* Conteneur principal */
.resume_container_confirmation {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  padding: 0 15px; 
  margin-bottom: 40px;
}

/* Carte du résumé */
.card_resume_confirmation {
  width: 100%;   
  max-width: 320px;
  padding: 15px 20px;
  border-radius: 20px;
}

/* Lignes du résumé */
.card_resume_confirmation p {
  font-size: 14px;
  margin: 10px 0;
  flex-wrap: wrap;       /* pour éviter les débordements */
}

/* Compteur */
.counter_confirmation {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 6px;
  min-width: 24px;
}

/* Date */
.date_confirmation {
  text-align: center;
  font-size: 12px;
  margin-top: 15px;
}
}

/* page 404*/
@media (max-width: 768px) {
.page_notfound h1 {
  font-size: 24px;
}

.btn_accueil {
  font-size: 18px;
  padding: 10px 25px;
  margin-top: 25px;
}

.img_poucerouge_notfound {
  height: 120px;
}
}

/* Footer */
.footer {
  background-color: #e6e6e6;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  padding: 15px 5px;
  width: 105%;
}

/* Conteneur du texte et des liens */
.footer p {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; 
  gap: 5px;                
}

/* Première ligne : texte principal */
.footer p::after {
  content: "";
  flex-basis: 100%;
  order: 1;
}

/* Liens (2e ligne) */
.footer a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: inherit;
  order: 2;
}

/* Ajoute un séparateur avant chaque lien sauf le premier */
.footer a + a::before {
  content: "|";
  margin: 0 6px;
  color: #000;
}
}

/* RESPONSIVE TABLETTE */
@media (max-width: 1024px) and (min-width: 768px) {
/* page accueil */
main {
  padding: 0 40px;
}

h1 {
  font-size: 36px;
  margin-top: 40px;
}

.p_1,
.p_2 {
  font-size: 18px;
  line-height: 1.6;
  margin: 20px auto;
}

/* Bouton principal */
.custom_btn {
  font-size: 15px;
  padding: 10px 35px;
  margin: 60px auto;
}

/* Section Services */
.cards {
  gap: 30px;
  margin: 40px auto;
}

.card {
  width: 280px;
  padding: 20px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  font-size: 16px;
  line-height: 1.5;
}

/* Section "Comment ça marche" */
.p_3 {
  font-size: 18px;
  line-height: 1.6;
  margin: 40px 40px 120px 40px;
}
}

/* page catalogue */
@media (max-width: 1024px) and (min-width: 768px) {

/* Barre de recherche centrée */
.search {
  margin: 50px auto 0 auto; 
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35%; 
}

/* Les cartes : 2 par ligne */
.cards_row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px; 
  justify-items: center;
  margin: 40px auto;
  max-width: 95%; 
}

.card_produit {
  width: 90%;
  padding: 25px;
}

.card_img {
  height: 120px;
}

.card_title {
  font-size: 14px;
}

.card_price {
  font-size: 13px;
}

.card_btn {
  font-size: 13px;
  padding: 6px 0;
}

/* Pagination centrée et adaptée */
.pagination {
  gap: 15px;
  margin-top: 60px;
}

.pagination a {
  width: 40px;
  height: 40px;
  font-size: 18px;
}
}

/* page panier */
@media (max-width: 1024px) and (min-width: 768px) {

/* Cartes produits plus compactes */
.card_produit_panier {
  margin: 20px auto;
  width: 85%;
  padding: 20px;
  height: auto;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
}

.card_img_panier {
  width: 80px;
}

.card_content_panier h3 {
  font-size: 16px;
}

.desc_panier {
  font-size: 13px;
  margin: 3px 0;
}

.counter_panier {
  padding: 2px 6px;
  gap: 15px;
  margin-top: 10px;
}

.counter_panier button {
  font-size: 14px;
}

.delete {
  font-size: 18px;
  right: 10px;
  bottom: 10px;
}

/* Résumé */
.resume_panier {
  width: 85%;
  margin: 30px auto;
  padding: 15px;
}

.resume_panier h3 {
  font-size: 18px;
}

.resume_panier p {
  font-size: 14px;
}

/* Bouton paiement centré */
.btn_paiement {
  margin: 40px auto;
  padding: 10px 30px;
  font-size: 15px;
}

/* Carousel plus étroit */
.carousel_track {
  width: 700px;
  gap: 15px;
}

.carousel_item {
  flex: 0 0 220px;
  padding: 12px;
}

.carousel_item img {
  width: 80px;
}

.carousel_item h3 {
  font-size: 14px;
}

.carousel_item p {
  font-size: 13px;
}

.btn_detail {
  padding: 6px 10px;
  font-size: 12px;
}

.carousel_btn {
  font-size: 24px;
  padding: 6px;
}
}

/* page paiement */
@media (max-width: 1024px) and (min-width: 768px) {

/* Container principal : deux colonnes */
.checkout_container {
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 90%;
}

/* Carte formulaire */
.form_card_paiement {
  flex: 1 1 45%;
  min-width: 320px;
}

/* Carte résumé */
.summary_card_paiement {
  flex: 1 1 45%;
  min-width: 320px;
}

  /* Les cartes ont la même hauteur visuelle */
.card_paiement {
  padding: 20px;
  margin: 10px 0;
}

/* Méthodes de paiement centrées en dessous */
.card_methode {
  max-width: 600px;
  margin: 30px auto;
  padding: 25px;
}

.payment_logos img {
  max-width: 50px;
  max-height: 30px;
}

/* Bouton payer centré */
.btn_payer {
  margin: 40px auto 60px auto;
  padding: 10px 35px;
  font-size: 15px;
}
}

/* page confirmation */
@media (max-width: 1024px) and (min-width: 768px) {

/* Image du personnage */
.img_poucevert {
  height: 130px;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Conteneur global centré */
.resume_container_confirmation {
  min-height: auto;    /* enlève la contrainte 100vh */
  margin-top: 20px;
  margin-bottom: 60px;
  padding: 0 20px;
}

/* Carte centrale */
.card_resume_confirmation {
  width: 90%;
  max-width: 480px;
  padding: 20px;
  border-radius: 20px;
  margin-top: 50px;
}

/* Texte dans la carte */
.card_resume_confirmation p {
  font-size: 14px;
  margin: 10px 0;
}

/* Compteur ajusté */
.card_resume_confirmation .counter_confirmation {
  font-size: 13px;
  padding: 3px 10px;
  min-width: 25px;
}

/* Sous-titre confirmation */
.confirmation {
  font-size: 17px;
  margin-top: 8px;
  text-align: center;
}

/* Date plus discrète */
.card_resume_confirmation .date_confirmation {
  text-align: left;
  margin-top: 15px;
  font-size: 13px;
}

/* page 404 */
@media (max-width: 1024px) and (min-width: 768px) {

/* Conteneur principal */
.page_notfound {
  margin-top: 100px;
  padding: 0 40px;
  text-align: center;
}

/* Image */
.img_poucerouge_notfound {
  height: 140px;
  width: auto;
  margin-bottom: 25px;
}

/* Titre principal */
.page_notfound h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

/* Bouton de retour */
.btn_accueil {
  font-size: 20px;
  padding: 12px 30px;
  margin-top: 30px;
  border-radius: 25px;
}

  /* Footer adapté */
.footer {
  font-size: 13px;
  padding: 15px;
}
}

/* Footer */
.footer {
  font-size: 13px;
  padding: 15px;
}

.footer a {
  font-size: 13px;
}
}
