/*
	Theme Name: MyConcert
	Theme URI: 
	Author: Myconcert
	Author URI: myconcert.fr
	Description: Thème personnalisé pour la vente de billets de concert
	Version: 1.0.1  
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Text Domain: myconcert
*/

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --spacing-unit: 1rem;
}

.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before {
content: none !important;
}

/* Reset et styles de base */
body {
  font-family: "Figtree", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* Styles pour la carte des concerts */
.concert-card {
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.concert-card-inner {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.concert-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.concert-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.concert-card:hover img {
  transform: scale(1.05);
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.favorite-button .dashicons {
  color: #666;
  transition: color 0.3s ease;
}

.favorite-button:hover {
  background: #fff;
}

.favorite-button:hover .dashicons {
  color: #e74c3c;
}

.concert-details {
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

.concert-title {
  font-size: 0.25rem;
  font-weight: 900;
}

.concert-title a {
  color: #333 !important;
  font-weight: bold !important;
  text-decoration: none;
}

.concert-title a:hover {
  color: #e74c3c;
}

.concert-meta {
  color: #666;
  font-size: 0.7rem;
}

.date-day {
  text-transform: uppercase;
  font-weight: 600;
}

.date-number {
  margin-left: 0.25rem;
}

.date-time {
  color: #999;
}

.concert-venue {
  color: #999;
}

.concert-price {
  font-weight: 600;
  /* color: #e74c3c; */
  font-size: 0.8rem;
}

/* Style pour la grille de concerts */
.concerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .concerts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .concerts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem;
  }

  .concert-card {
    margin-bottom: 0;
  }

  .concert-info {
    padding: 1rem;
  }

  .concert-title {
    font-size: 0.6rem;
  }

  .concert-meta {
    font-size: 0.8rem;
  }

  .concert-details {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .concerts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .concert-title {
    font-size: 0.6rem;
  }
}

/* Styles pour la page single concert */
.concert-single {
  padding-bottom: var(--spacing-unit);
}

.concert-header {
  position: relative;
  color: white;
  padding: calc(var(--spacing-unit) * 2) 0;
  margin-bottom: var(--spacing-unit);
  overflow: hidden;
}

.concert-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--concert-bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  transform: scale(1.1);
  z-index: 0;
}

.concert-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.concert-header .container {
  position: relative;
  z-index: 2;
}

.concert-featured-image {
  position: relative;
  margin-bottom: var(--spacing-unit);
}

.artist-name h2 {
  font-size: 1rem;
  margin: 0;
  font-style: italic;
  color: #fff;
}

.concert-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.concert-description {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.date-block {
  background: white;
  border-radius: 8px;
  padding: var(--spacing-unit);
  margin-bottom: var(--spacing-unit);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-info {
  margin-bottom: var(--spacing-unit);
}

.date {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.venue {
  color: var(--text-color);
  margin: 0.5rem 0;
}

.ticket-types {
  margin-top: var(--spacing-unit);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-unit);
  margin-top: var(--spacing-unit);
}

.ticket-type {
  background: var(--light-gray);
  padding: var(--spacing-unit);
  border-radius: 6px;
  text-align: center;
}

.ticket-price {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.ticket-quantity {
  color: #666;
  margin-bottom: 1rem;
}

.buy-ticket-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buy-ticket-btn:hover {
  background-color: darken(var(--secondary-color), 10%);
}

.additional-info {
  margin-top: calc(var(--spacing-unit) * 2);
  padding: var(--spacing-unit);
  background: var(--light-gray);
  border-radius: 8px;
}

.concert-featured-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

h1.concert-title {
  font-size: 2rem;
  font-weight: 900 !important;
  color: white !important;
  margin: 0;
  line-height: 1.2;
}
/* Responsive */
@media (max-width: 768px) {
  .concert-title {
    font-size: 2rem;
  }

  .ticket-grid {
    grid-template-columns: 1fr;
  }
}

/* Styles pour la liste des dates */
.concert-dates-list {
  max-width: 800px;
  margin: 2rem auto;
}

.date-item {
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.date-item.active {
  border-color: var(--secondary-color);
}

.date-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  background: #fff;
  transition: background-color 0.3s ease;
}

.date-header:hover {
  background: #f8f8f8;
}

.date-col {
  text-align: center;
  padding-right: 1rem;
  border-right: 1px solid #e0e0e0;
}

.date-number {
  /* font-size: 1.5rem; */
  font-weight: bold;
  line-height: 1;
}

.date-month {
  font-size: 0.9rem;
  color: #666;
}

.date-info {
  padding: 0 1rem;
}

.date-day {
  /* font-weight: bold; */
  text-transform: capitalize;
}

.date-time {
  color: #666;
}

.venue-name {
  color: #000;
  font-size: 1rem;
  font-weight: bold;
}

.city-name {
  color: #666;
  font-size: 0.9rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .venue-name {
    font-size: 0.9rem;
  }
  .city-name {
    font-size: 0.7rem;
  }

  .date-hours {
    font-size: 0.7rem;
  }
}

.artist-name {
  color: #666;
  font-size: 0.9rem;
}

.date-status {
  text-align: right;
}

.status-available {
  color: #2ecc71;
}

.status-unavailable {
  color: #e74c3c;
}

/* Styles pour les types de billets */
.ticket-types-container {
  background: #f8f8f8;
  padding: 1rem;
}

.ticket-type-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ticket-info {
  flex-grow: 1;
}

.ticket-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.tickets-left {
  color: #e74c3c;
  font-size: 0.9rem;
}

.ticket-price-action {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.price {
  font-size: 1rem;
  font-weight: 900;
  color: #f22a58;
  white-space: nowrap;
}

.buy-ticket-btn {
  background: #234089;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

.buy-ticket-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* Conteneur des boutons d'action */
.ticket-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Style du sélecteur de quantité simplifié */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  background: white;
  height: 36px;
}

.quantity-btn {
  background: white;
  border: none;
  width: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  font-size: 1.2rem;
  transition: background-color 0.2s ease;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

.quantity-input {
  width: 32px;
  text-align: center;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Style du bouton d'achat avec icône */
.buy-ticket-btn {
  background: #234089;
  color: white;
  border: none;
  height: 36px;
  padding: 0 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.buy-ticket-btn .dashicons {
  font-size: 1.1rem;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
}

.buy-ticket-btn:hover {
  background: #333;
}

/* Conteneur des actions */
.ticket-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .date-status {
    display: none;
  }

  .ticket-actions {
    flex-direction: column;
  }

  .quantity-selector {
    height: 40px;
  }

  .quantity-btn {
    width: 36px;
  }

  .quantity-input {
    width: 36px;
  }

  .buy-ticket-btn {
    height: 40px;
    padding: 0 1.8rem;
  }
}

/* Ajustements pour les très petits écrans */
@media (max-width: 375px) {
  .ticket-type-row {
    padding: 0.8rem;
  }

  .quantity-selector,
  .buy-ticket-btn {
    max-width: 100%;
  }

  .ticket-name {
    font-size: 0.8rem;
  }

  .price {
    font-size: 1rem;
  }
}

/* Style pour l'extrait et les méta-informations */
.concert-excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin: 1rem 0;
  max-width: 800px;
}

.see-more {
  color: var(--secondary-color);
  text-decoration: none;
  margin-left: 0.5rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.see-more:hover {
  color: #fff;
}

.concert-meta {
  display: flex;
  flex-wrap: wrap;
  /* gap: 1.5rem;
    margin-top: 1.5rem; */
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.meta-item-events {
  margin-left: 1rem;
}

.meta-item i {
  color: var(--secondary-color);
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .concert-meta {
    flex-direction: column;
    /* gap: 1rem;
        margin-top: 1rem; */
  }

  .concert-excerpt {
    font-size: 0.9rem;
    margin: 0.8rem 0;
  }
}

/* Styles pour la page d'archives des concerts */
.concerts-archive {
  background-color: #f8f9fa;
  min-height: 100vh;
}

.concerts-banner {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
    url("https://www.fnacspectacles.com/magazine/fileadmin/_processed_/3/a/csm_top-concert-header-sebastian-ervi-_b32cc30d3b.jpg");
  background-size: cover;
  background-position: center 30%;
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.concerts-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(242, 42, 88, 0.4) 0%,
    rgba(29, 38, 113, 0.4) 100%
  );
  z-index: 1;
}

.concerts-banner .container {
  position: relative;
  z-index: 2;
}

.archive-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  /* text-transform: uppercase; */
  letter-spacing: normal;
  color: white !important;
  line-height: 1.2;
}

.archive-description {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .concerts-banner {
    padding: 4rem 0;
  }

  .archive-title {
    font-size: 2rem !important;
    letter-spacing: normal;
    line-height: 1.2;
  }

  .archive-description {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .concerts-banner {
    padding: 2rem 0;
  }

  .archive-title {
    font-size: 1.5rem;
  }

  .archive-description {
    font-size: 0.9rem;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.concerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

/* Style des cartes de concert */
.concert-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.concert-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.concert-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.concert-card:hover .concert-thumbnail img {
  transform: scale(1.05);
}

.concert-info {
  padding: 1.5rem;
}

.concert-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.concert-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 0.7;
}

.concert-title a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.concert-title a:hover {
  color: var(--secondary-color);
}

.concert-meta {
  display: flex;
  /* align-items: center; */
  /* gap: 1rem; */
  font-size: 0.9rem;
  color: #666;
}

.concert-venue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concert-venue i {
  color: var(--secondary-color);
}

.concert-price {
  font-weight: 600;
  /* color: var(--secondary-color); */
}

/* Pagination */
.concerts-pagination {
  margin: 3rem 0;
  text-align: center;
}

.pagination {
  display: inline-flex;
  gap: 0.5rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: white;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-numbers:hover:not(.current) {
  background: #f0f0f0;
}

/* Message pas de concerts */
.no-concerts {
  text-align: center;
  padding: 4rem 0;
  color: #666;
}

.concert-date-range {
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .concerts-banner {
    padding: 3rem 0;
  }

  .concert-card {
    margin-bottom: 0;
  }

  .archive-description {
    font-size: 1rem;
  }

  .concerts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .concert-title a {
    font-size: 0.8rem;
  }

  .concert-meta {
    font-size: 0.8rem;
  }
}

/* Ajuster l'espacement dans la carte */
.concert-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .concert-date-range {
    font-size: 0.7rem;
  }
}

.woocommerce-tickets-table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
}

.woocommerce-tickets-table th,
.woocommerce-tickets-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.woocommerce-tickets-table th {
  background: #f8f8f8;
  font-weight: 600;
}

.woocommerce-tickets-table .button {
  padding: 0.5rem 1rem;
  background: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
}

.woocommerce-tickets-table .button:hover {
  background: darken(var(--secondary-color), 10%);
}

/* Styles pour la page de confirmation de commande */
.woocommerce-order {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.order-status-banner {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  color: white;
}

.order-status-banner.success {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.order-status-banner.failed {
  background: linear-gradient(135deg, #dc3545, #f86d6d);
}

.order-status-banner i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.order-status-banner h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.order-details-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
  gap: 2rem;
  margin-bottom: 3rem;
}

.order-info-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.order-info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.order-info-card ul {
  list-style: none;
  padding: 0;
}

.order-info-card li {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.tickets-section {
  margin: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary-color);
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.ticket-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.ticket-card:hover {
  transform: translateY(-5px);
}

.ticket-type-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  font-size: 0.9rem;
}

.ticket-body {
  padding: 2rem;
}

.concert-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.ticket-details {
  display: grid;
  gap: 1rem;
}

.ticket-details p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
}

.ticket-footer {
  padding: 1.5rem;
  background: #f8f9fa;
  text-align: center;
}

.download-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--secondary-color);
  color: white !important;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* .download-ticket-btn:hover {
    background: darken(var(--secondary-color), 10%);
} */

.next-steps {
  margin-top: 4rem;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.step-card i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin-top: 1rem;
  background: #000;
  color: white !important;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .woocommerce-order {
    padding: 1rem;
  }

  .order-status-banner {
    padding: 2rem 1rem;
  }

  .ticket-card {
    margin-bottom: 1rem;
  }
}

/* Styles du panier moderne */
.modern-cart {
  margin: 0 auto;
  padding: 2rem;
}

.cart-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cart-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.items-count {
  color: #666;
  font-size: 0.9rem;
}

.cart-items {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  min-width: 200px;
}

.item-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.item-meta {
  font-size: 0.9rem;
  color: #666;
}

.item-meta p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.item-type {
  display: inline-block;
  background: #f8f9fa;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Styles améliorés pour les contrôles de quantité */
.quantity-controls {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: 120px;
  background: white;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8f9fa;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 2;
}

.quantity-btn:hover {
  background: #e9ecef;
  color: var(--primary-color);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.qty-input {
  width: 48px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 0.95rem;
  color: var(--primary-color);
  -moz-appearance: textfield;
  background: white;
  padding: 0;
  margin: 0;
  z-index: 1;
}

/* Désactiver les flèches du input number */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Style pendant le chargement */
.quantity-controls.updating {
  opacity: 0.5;
  pointer-events: none;
}

/* Feedback visuel lors du clic */
.quantity-btn:active {
  background: var(--primary-color);
  color: white;
}

.item-price {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.remove-item {
  color: #dc3545;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.remove-item:hover {
  opacity: 1;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* padding: 1.5rem;
  gap: 1rem; */
}

.update-cart,
.checkout-button {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.update-cart {
  background: #f8f9fa;
  color: #666;
}

.update-cart:hover {
  background: #e9ecef;
}

.checkout-button {
  text-align: center;
  background: var(--secondary-color);
  color: white !important;
  text-decoration: none;
}

/* .checkout-button:hover {
    background: darken(var(--secondary-color), 10%);
} */

/* Responsive */
@media (max-width: 768px) {
  .modern-cart {
    padding: 1rem;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }

  .item-image {
    margin: 0 auto;
  }

  .item-meta p {
    justify-content: center;
  }

  .quantity-controls {
    margin: 0 auto;
  }

  .cart-actions {
    flex-direction: column;
  }

  .update-cart,
  .checkout-button {
    width: 100%;
    text-align: center;
  }
}

/* Animation pour les boutons de quantité */
.quantity-btn:active {
  transform: scale(0.95);
}

/* Mise à jour de la grille du panier */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

/* Styles pour la sidebar du panier */
.cart-sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.cart-totals {
  padding: 1.5rem;
}

.cart-totals h2 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.totals-rows {
  margin-bottom: 1.5rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.totals-row:last-child {
  border-bottom: none;
}

.total-row {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  border-top: 2px solid #f8f9fa;
  padding-top: 1rem;
}

/* Mise à jour du responsive */
@media (max-width: 768px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: relative;
    top: 0;
    margin-top: 2rem;
  }

  .cart-actions {
    flex-direction: column;
  }

  .update-cart,
  .checkout-button {
    width: 100%;
  }
}

/* Styles de la page checkout */
.modern-checkout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.checkout-header {
  text-align: center;
  margin-bottom: 3rem;
}

.checkout-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
}

/* Section des détails */
.checkout-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.customer-details,
.payment-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  color: var(--primary-color);
  margin: 0;
}

.section-header i {
  color: var(--secondary-color);
}

/* Styles des champs de formulaire */
.woocommerce-checkout .form-row {
  margin-bottom: 1.5rem;
}

.woocommerce-checkout label {
  display: block;
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

/* Récapitulatif de commande */
.summary-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 2rem;
}

.order-items {
  padding: 0 2rem;
}

.order-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.item-meta {
  font-size: 0.85rem;
  color: #666;
}

.item-meta p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.item-price {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.item-price .quantity {
  color: #666;
  font-weight: normal;
  margin-right: 0.5rem;
}

.order-totals {
  padding: 1.5rem;
  border-top: 2px solid #f8f9fa;
}

@media screen and (max-width: 768px) {
  .order-totals {
    padding: 0;
  }
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  color: #666;
}

.grand-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  border-top: 1px solid #eee;
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* Style du bouton de paiement */
#place_order {
  width: 100%;
  padding: 1rem;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#place_order:hover {
  opacity: 0.9;
}

/* Grid layout pour le checkout */
form.checkout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  margin-top: 2rem;
}

/* Style des sections principales */
#customer_details {
  grid-column: 1;
  width: 100%;
}

#order_review {
  grid-column: 2;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 2rem;
  height: fit-content;
}

/* Responsive design */
@media (max-width: 768px) {
  form.checkout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
  }

  #customer_details {
    width: 100%;
    order: 1; /* Place le formulaire en premier */
  }

  #order_review {
    width: 97%;
    position: static;
    order: 2; /* Place le récapitulatif en second */
    margin-top: 1.5rem;
    padding: 1.5rem;
  }

  /* Ajuster la largeur des colonnes */
  .col2-set .col-1,
  .col2-set .col-2 {
    width: 100% !important;
    float: none;
  }

  /* .woocommerce-checkout {
    padding: 1rem;
  } */

  .woocommerce-checkout h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

/* Style des messages d'erreur et de succès */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-radius: 8px;
  margin: 1rem;
  list-style: none;
}

.woocommerce-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.woocommerce-form-login-toggle{
  display: none !important;
}

.woocommerce-info {
      background: rgb(255 0 0 / 60%) !important;
      color: white !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    margin: 20px 12px !important;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.woocommerce-message {
  background: #f0fff4;
  color: #2f855a;
  border: 1px solid #9ae6b4;
}

/* Style des cases à cocher et boutons radio */
.woocommerce-checkout input[type="radio"],
.woocommerce-checkout input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Animation de chargement */
.processing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style du résumé des produits */
.product-name {
  color: #2d3748;
  font-weight: 500;
}

.product-quantity {
  color: #718096;
}

/* Style des totaux */
.cart-subtotal,
.order-total {
  font-weight: 600;
}

.order-total .amount {
  color: #234089;
  font-size: 1.25rem;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1 {
  float: none;
  width: 100% !important;
}

#order_review_heading {
  display: none;
}

/* Style des selects pays/région */
.woocommerce-checkout select,
.select2-container--default .select2-selection--single {
  width: 100%;
  height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: white;
  font-size: 1rem;
  color: #4a5568;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

/* Style du select2 */
.select2-container--default .select2-selection--single {
  padding: 0;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 46px;
  padding-left: 1rem;
  color: #4a5568;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 46px;
  right: 1rem;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  display: none;
}

/* Style du dropdown */
.select2-container--default .select2-dropdown {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.select2-container--default .select2-results__option {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #234089;
  color: white;
}

/* Style au focus */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #234089;
  box-shadow: 0 0 0 3px rgba(35, 64, 137, 0.1);
  outline: none;
}

/* Style de la barre de recherche dans le dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.5rem;
}

.select2-container--default
  .select2-search--dropdown
  .select2-search__field:focus {
  border-color: #234089;
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .select2-container--default .select2-selection--single {
    height: 44px;
  }

  .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 42px;
  }

  .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 42px;
  }
}

/* Styles pour la section de téléchargement des billets */
.tickets-download-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
}

.tickets-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ticket-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.ticket-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background: #fff;
  border-color: #291545;
}

.ticket-item i.fa-ticket {
  font-size: 1.5rem;
  color: #291545;
  margin-right: 1.5rem;
}

.ticket-name {
  flex: 1;
  font-size: 1rem;
  color: #2c3e50;
  font-weight: 500;
}

.download-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #291545;
  color: white !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.download-ticket-btn:hover {
  background: #291545;
  transform: translateY(-1px);
}

.download-ticket-btn i {
  font-size: 1.1rem;
}

.section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-header h2 i {
  color: #291545;
}

.section-description {
  color: #666;
  font-size: 0.95rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .tickets-download-section {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .ticket-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .ticket-item i.fa-ticket {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .ticket-name {
    margin-bottom: 0.5rem;
  }

  .download-ticket-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Styles pour My Account WooCommerce */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Navigation */
.woocommerce-MyAccount-navigation {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
  margin-bottom: 0.5rem;
}

.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background: #fff;
  color: #291545;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  background: #291545;
  color: white;
}

/* Avatar et informations utilisateur */
.account-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.account-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-details {
  flex: 1;
}

.account-name {
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.account-email {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Contenu principal */
.woocommerce-MyAccount-content {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  min-height: 500px;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

/* Tableaux */
.woocommerce-orders-table,
.woocommerce-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
}

.woocommerce-orders-table th,
.woocommerce-table th {
  background: #f8f9fa;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
}

.woocommerce-orders-table td,
.woocommerce-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

/* Boutons */
.woocommerce-MyAccount-content .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #291545 !important;
  color: white !important;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-MyAccount-content .button:hover {
  background: #1a0f2e;
  transform: translateY(-1px);
}

/* Formulaires */
.woocommerce-MyAccount-content form {
  max-width: 600px;
}

.woocommerce-MyAccount-content .form-row {
  margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-content label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 500;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-MyAccount-content input[type="password"]:focus {
  border-color: #291545;
  box-shadow: 0 0 0 3px rgba(41, 21, 69, 0.1);
  outline: none;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.woocommerce-message {
  background: #f0fff4;
  color: #2f855a;
  border: 1px solid #c6f6d5;
}


.woocommerce-error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

/* Responsive */
@media (max-width: 992px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .woocommerce-MyAccount-navigation {
    margin-bottom: 2rem;
  }

  .woocommerce-MyAccount-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .account-user-info {
    flex-direction: column;
    text-align: center;
  }

  .woocommerce-orders-table,
  .woocommerce-table {
    display: block;
    overflow-x: auto;
  }

  .woocommerce-MyAccount-content {
    padding: 1rem;
  }
}

/* Style des badges de statut */
.woocommerce-orders-table .order-status {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.woocommerce-orders-table .status-completed {
  background: #f0fff4;
  color: #2f855a;
}

.woocommerce-orders-table .status-processing {
  background: #ebf8ff;
  color: #2b6cb0;
}

.woocommerce-orders-table .status-on-hold {
  background: #fffaf0;
  color: #c05621;
}

.woocommerce-orders-table .status-cancelled {
  background: #fff5f5;
  color: #c53030;
}

/* Bouton de déconnexion */
.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #e53e3e !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fff5f5 !important;
}

.woocommerce-account .woocommerce::after, .woocommerce-account .woocommerce::before{
  display: none;
}

#my-account-menu{
  width: 100% !important;
}

#my-account-menu~.woocommerce-MyAccount-content{
  width: 100% !important;
}