/* =========================================
    BACKGROUND LAYERS
    Positionnement des décorations d'arrière-plan
========================================= */

/* Conteneur global des arrière-plans */
.bg-layer-wrapper {
  position: relative;
  width: 100%;
  height: 0;
}

/* Images décoratives placées en absolu à différents niveaux de la page */
.bg-layer-wrapper > .bg-shape {
  position: absolute;
  top: 700px;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}

/* =========================================
    CHECKOUT HERO
========================================= */
.checkout-hero-section {
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
    CHECKOUT GRID LAYOUT
========================================= */

/* Conteneur principal */
.checkout-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

/* Grille 2 colonnes */
.checkout-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* --- Colonne Formulaires (Gauche) --- */
.forms-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Bloc de formulaire individuel */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* En-tête du formulaire */
.form-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  cursor: pointer;
}

.form-title {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  color: var(--text-white);
  text-transform: uppercase;
  margin: 0;
  font-weight: var(--weight-expanded);
}

.icon-collapse {
  color: var(--text-white);
  font-size: 32px;
  font-family: var(--font-lato);
}

/* Corps du formulaire */
.form-group-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-card);
  padding: 30px 16px 24px 30px;
  border-radius: 7px;
  box-shadow: var(--shadow-drop), var(--shadow-inset);
}

/* Conteneur d'un champ input */
.input-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 1px solid var(--text-white);
  border-radius: 7px;
  padding: 20px 24px;
}

/* Champ de saisie */
.input-field {
  font-family: var(--font-lato);
  font-size: var(--text-base);
  color: var(--text-white);
  outline: none;
  text-transform: uppercase;
  background-color: transparent;
  border: none;
  width: 100%;
}

.input-field::placeholder {
  color: var(--text-white);
}

/* Icône dans l'input */
.icon-input {
  color: var(--text-white);
  pointer-events: none;
}

/* Aperçu Google Maps */
.map-container {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--primary-3);
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rangée icônes paiement */
.payment-methods-row {
  display: flex;
  margin-top: -10px;
  object-fit: cover;
  width: 100%;
}

/* =========================================
    ORDER SUMMARY (Droite)
========================================= */

/* Colonne latérale */
.summary-column {
  background-color: transparent;
  border-radius: 0; 
  box-shadow: none;
  color: var(--text-white);
  height: fit-content;
}

/* Titre "ORDEN" */
.summary-heading {
  font-family: var(--font-rugen);
  font-size: var(--text-h2);
  font-weight: var(--weight-expanded);
  color: var(--text-white);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Carte contenant le résumé */
.summary-card {
    background-color: var(--bg-card); 
    padding: 30px 40px 40px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-drop);
}

/* Liste des articles */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 32px; 
  margin-bottom: 30px;
}

/* Article individuel */
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: stretch; 
}

/* Infos Textuelles Article */
.item-title {
  font-family: var(--font-rugen);
  color: var(--text-white);
  font-weight: var(--weight-expanded);
  font-size: var(--text-h4);
  max-width: 300px;
}

/* Spécifications */
.item-spec-row {
  display: flex;
  gap: 16px;
  font-family: var(--font-lato);
  color: var(--text-white);
  font-weight: var(--weight-light);
  font-size: var(--text-h4);
  margin-top: 16px;
}

/* Ligne Quantité */
.item-qty-control {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.item-qty-control .item-spec-row {
  margin-bottom: 15px;
}

/* Contrôleurs Quantité (+/-) */
.qty-controls {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  background-color: #373434;
  padding: 4px 6px;
  border-radius: 7px;
}

.btn-qty-left, 
.btn-qty-right {
  width: 32px;
  height: 32px; 
  border: none;
  background-color: var(--primary-3);
  font-family: var(--font-lato);
  color: var(--text-white);
  cursor: pointer;
  font-size: var(--text-base);
  box-shadow: var(--shadow-drop);
}

.btn-qty-left {
  border-radius: 7px 0 0 7px;
}

.btn-qty-right {
  border-radius: 0 7px 7px 0;
}

.qty-display {
  width: 70px;
  height: 30px;
  padding: 5px;
  text-align: center;
  font-family: var(--font-lato);
  color: var(--text-black);
  font-size: 22px;
  background-color: #D9D9D9;
  border: none;
  outline: none;
}

/* Image et Prix de l'article */
.item-image-box {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end; 
  gap: 12px; 
  min-width: 130px;
}

.item-image-box img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  background-color: #000;
  box-shadow: var(--shadow-drop);
  align-self: flex-start;
}

.item-cost {
  font-family: var(--font-lato);
  color: var(--text-gray);
  font-weight: var(--weight-bold);
  font-size: var(--text-h3);
  margin-bottom: 24px;
  margin-right: 24px;
}

/* --- Totaux --- */
.totals-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  margin-top: 24px;
}

/* Ligne de total */
.total-line {
  display: flex;
  justify-content: space-between;
}

.total-line:nth-of-type(1), 
.total-line:nth-of-type(3) {
  margin-bottom: 32px;
}

.total-line:nth-of-type(2) {
  margin-bottom: 16px;
}

/* Labels et Valeurs */
.label-main {
  font-family: var(--font-rugen);
  font-size: var(--text-h3);
  color: var(--text-white);
  font-weight: var(--weight-expanded);
  text-shadow: var(--shadow-drop);
}

.value-main {
  font-family: var(--font-lato);
  font-size: var(--text-h3);
  color: var(--text-gray);
  font-weight: var(--weight-bold);
  text-shadow: var(--shadow-drop);
}

.label-secondary {
  font-family: var(--font-lato);
  font-size: 18px;
  color: var(--text-white);
  font-weight: var(--weight-bold);
  text-shadow: var(--shadow-drop);
}

.value-secondary {
  font-family: var(--font-lato);
  font-size: 18px;
  color: var(--text-gray);
  font-weight: var(--weight-bold);
  text-shadow: var(--shadow-drop);
}

.totals-divider {
  border: none;
  border-top: 2px solid #46484A;
  margin: 15px 0;
  box-shadow: var(--shadow-drop);
}

.total-line.final {
  color: var(--text-white);
  font-size: 22px;
  font-weight: 800;
  margin-top: 5px;
}

/* Bouton Payer */
.btn-checkout-pay {
  display: block;
  text-align: center;
  width: 100%;
  background-color: var(--bg-button);
  color: var(--text-black);
  font-family: var(--font-lato);
  font-weight: var(--weight-bold);
  font-size: 37px;
  text-transform: uppercase;
  border: none;
  padding: 16px;
  cursor: pointer;
  border-radius: 7px;
  margin-top: 50px;
  text-decoration: none;
}