/* ===== PAGE CHECKOUT ===== */

.nn-checkout-status {
  margin-bottom: 24px;
}

.nn-checkout-fallback {
  border: 2px solid #0032FF;
  background: #fff;
  padding: 32px;
  max-width: 760px;
}

.nn-checkout-fallback h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #0032FF;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
}

.nn-checkout-fallback p {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0 0 20px;
}

.nn-checkout-fallback-btn {
  display: inline-block;
  background: #0032FF;
  color: #fff;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.16em;
  padding: 14px 24px;
}

.nn-checkout-fallback-btn:hover {
  opacity: 0.9;
  color: #fff;
}

/* CACHE les éléments inutiles */
.woocommerce-checkout .woocommerce-additional-fields,
#billing_address_2_field,
.woocommerce-checkout .create-account { display: none !important; }

/* COUPON VISIBLE SUR CHECKOUT */
.woocommerce-form-coupon-toggle {
  display: block !important;
  margin-bottom: 14px !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
  border: 2px solid #0032FF !important;
  border-left: 2px solid #0032FF !important;
  background: #fff !important;
  color: #0032FF !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  font-size: 12px !important;
}

.woocommerce form.checkout_coupon,
.woocommerce-checkout form.checkout_coupon {
  display: block !important;
  border: 2px solid #0032FF !important;
  background: #fff !important;
  padding: 14px !important;
  margin: 0 0 20px !important;
}

.woocommerce form.checkout_coupon .form-row,
.woocommerce-checkout form.checkout_coupon .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 10px !important;
}

.woocommerce form.checkout_coupon .form-row-first,
.woocommerce-checkout form.checkout_coupon .form-row-first {
  margin-bottom: 8px !important;
}

.woocommerce form.checkout_coupon input.input-text,
.woocommerce-checkout form.checkout_coupon input.input-text {
  width: 100% !important;
  border: 2px solid #0032FF !important;
  padding: 12px 14px !important;
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 0.08em !important;
  font-size: 1rem !important;
}

.woocommerce form.checkout_coupon button.button,
.woocommerce-checkout form.checkout_coupon button.button {
  width: 100% !important;
  border: 2px solid #0032FF !important;
  background: #0032FF !important;
  color: #fff !important;
  padding: 12px 14px !important;
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 0.12em !important;
  font-size: 1rem !important;
}

/* WRAPPER */
.woocommerce-page .woocommerce {
  padding: 0 64px 80px;
  max-width: 100%;
}

/* TITRE */
.woocommerce-page h1.entry-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  color: #0032FF;
  line-height: 1;
  padding: 48px 0 40px;
  margin: 0 0 48px;
  border-bottom: 2px solid #0032FF;
}

/* ===== LAYOUT 2 COLONNES ===== */
.woocommerce-checkout #customer_details {
  float: left;
  width: 55%;
  padding-right: 64px;
  box-sizing: border-box;
}

#order_review_heading {
  float: right;
  width: 42%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #0032FF;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  border-bottom: 2px solid #0032FF;
  margin-bottom: 0;
}

#order_review {
  float: right;
  width: 42%;
  clear: right;
  position: sticky;
  top: 80px;
}

/* CLEARFIX */
.woocommerce-checkout::after {
  content: '';
  display: table;
  clear: both;
}

/* Align with custom page template layout (page-commander.php) */
.nn-checkout-page form.checkout.woocommerce-checkout {
  align-items: start;
}

.nn-checkout-page #customer_details,
.nn-checkout-page #order_review {
  float: none !important;
  width: auto !important;
  padding-right: 0 !important;
}

.nn-checkout-page #customer_details {
  background: #fff;
  border: 2px solid #0032FF;
  padding: 28px;
}

.nn-checkout-page #order_review {
  background: #fff;
  border: 2px solid #0032FF;
  padding: 20px;
}

/* ===== COLONNE GAUCHE ===== */

/* Cache le titre "Informations personnelles" en doublon */
.woocommerce-billing-fields > h3 {
  display: none !important;
}

/* Titre VOS COORDONNÉES remplacé proprement */
.woocommerce-billing-fields::before {
  content: 'VOS COORDONNÉES';
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #0032FF;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  border-bottom: 2px solid #0032FF;
  margin-bottom: 24px;
}

/* Grille 2 colonnes pour les champs */
.woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Champs pleine largeur */
.woocommerce-billing-fields__field-wrapper .form-row-wide,
#billing_country_field,
#billing_address_1_field,
#billing_email_field {
  grid-column: 1 / -1;
}

/* LABELS */
.woocommerce-checkout .form-row label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #0032FF;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.woocommerce-checkout .form-row label .required {
  color: #0032FF !important;
}

/* INPUTS plus grands */
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 0 !important;
  padding: 18px 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #000 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.2s !important;
}

/* Make first/last name fields visibly larger and balanced */
#billing_first_name_field,
#billing_last_name_field {
  width: 100% !important;
  float: none !important;
}

#billing_first_name,
#billing_last_name {
  min-height: 58px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus {
  border-color: #0032FF !important;
}

/* Cache checkbox newsletter WOO */
#mailchimp_opt_in_field,
.woocommerce-checkout .form-row:has(input[name*="newsletter"]),
.woocommerce-checkout .form-row:has(input[name*="marketing"]) {
  display: none !important;
}

/* RÉCAP plus grand */
.woocommerce-checkout-review-order-table thead th {
  background: #0032FF;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  padding: 18px 24px;
  text-align: left;
}

.woocommerce-checkout-review-order-table tbody td {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  color: #333;
  vertical-align: middle;
}

.woocommerce-checkout-review-order-table tbody .product-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  color: #000;
}

.woocommerce-checkout-review-order-table tbody .product-total {
  text-align: right;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  color: #0032FF;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid #f0f0f0;
}

.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: #0032FF;
  border-top: 2px solid #0032FF !important;
  padding: 24px;
  background: #f5f5f5;
}

/* ===== PAIEMENT ===== */
#payment {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

#payment ul.payment_methods {
  border: 2px solid #0032FF !important;
  border-top: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  background: #fff !important;
}

#payment ul.payment_methods li {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

#payment ul.payment_methods li:last-child {
  border-bottom: none !important;
}

#payment ul.payment_methods li input[type="radio"] {
  accent-color: #0032FF;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

#payment ul.payment_methods label {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1rem !important;
  letter-spacing: 0.1em !important;
  color: #0032FF !important;
  cursor: pointer !important;
  margin: 0 !important;
}

#payment .payment_box {
  background: #f5f5f5 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 14px 20px !important;
  font-size: 12px !important;
  color: #666 !important;
  border-left: 3px solid #0032FF !important;
  width: 100% !important;
}

#payment .place-order {
  padding: 20px 0 0 !important;
  background: transparent !important;
}

/* BOUTON COMMANDER plus grand */
#place_order {
  width: 100% !important;
  background: #0032FF !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 24px 24px !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.9rem !important;
  letter-spacing: 0.2em !important;
  line-height: 1 !important;
  min-height: 72px !important;
  cursor: pointer !important;
  transition: transform 0.2s, opacity 0.2s !important;
}

#place_order:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px);
}

#place_order.nn-is-processing {
  opacity: 0.7 !important;
  cursor: wait !important;
  pointer-events: none !important;
}

/* PRIVACY */
.woocommerce-privacy-policy-text {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  margin-top: 12px;
}

.woocommerce-privacy-policy-text a { color: #0032FF; }

/* ERREURS */
.woocommerce-NoticeGroup,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  border-radius: 0 !important;
  border-left: 4px solid #0032FF !important;
  background: #f5f5f5 !important;
  color: #000 !important;
  font-size: 13px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
  list-style: none !important;
  clear: both !important;
}

.woocommerce-error { border-left-color: #cc0000 !important; }

/* Mobile readability */
@media (max-width: 1024px) {
  .woocommerce-page .woocommerce {
    padding: 0 24px 48px;
  }

  .nn-checkout-fallback {
    padding: 22px;
    max-width: 100%;
  }

  .nn-checkout-page form.checkout.woocommerce-checkout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .nn-checkout-page #customer_details,
  .nn-checkout-page #order_review {
    padding: 18px;
  }

  .woocommerce-checkout-review-order-table tbody .product-name {
    font-size: 1.2rem;
  }

  .woocommerce-checkout-review-order-table tfoot .order-total th,
  .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.8rem;
  }

  #place_order {
    font-size: 1.5rem !important;
    min-height: 62px !important;
  }
}

@media (max-width: 768px) {
  .woocommerce-page .woocommerce {
    padding: 0 16px 32px;
  }

  .nn-checkout-fallback {
    padding: 16px;
    margin: 0;
  }

  .nn-checkout-fallback h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .nn-checkout-fallback p {
    font-size: 13px;
  }

  .nn-checkout-fallback-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .woocommerce-form-coupon-toggle .woocommerce-info {
    padding: 10px 12px !important;
    font-size: 11px !important;
  }

  .woocommerce form.checkout_coupon,
  .woocommerce-checkout form.checkout_coupon {
    padding: 12px !important;
  }

  .woocommerce form.checkout_coupon input.input-text,
  .woocommerce-checkout form.checkout_coupon input.input-text {
    padding: 10px 12px !important;
    font-size: 0.95rem !important;
  }

  .nn-checkout-page #customer_details,
  .nn-checkout-page #order_review {
    padding: 12px;
  }

  .woocommerce-checkout-review-order-table {
    font-size: 12px;
  }

  .woocommerce-checkout-review-order-table tbody .product-name {
    font-size: 1rem;
  }

  .woocommerce-checkout-review-order-table tfoot th,
  .woocommerce-checkout-review-order-table tfoot td {
    padding: 8px 4px;
  }

  .woocommerce-checkout-review-order-table tfoot .order-total th,
  .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.4rem;
    padding: 10px 4px;
  }

  #place_order {
    font-size: 1.2rem !important;
    min-height: 56px !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .woocommerce-page .woocommerce {
    padding: 0 12px 24px;
  }

  .nn-checkout-fallback {
    padding: 12px;
  }

  .nn-checkout-fallback h2 {
    font-size: 1.2rem;
  }

  .nn-checkout-fallback p {
    font-size: 12px;
  }

  .woocommerce form.checkout_coupon input.input-text,
  .woocommerce-checkout form.checkout_coupon input.input-text {
    font-size: 0.9rem !important;
  }

  .woocommerce-checkout-review-order-table {
    font-size: 11px;
  }

  .woocommerce-checkout-review-order-table tbody .product-name {
    font-size: 0.95rem;
  }

  .woocommerce-checkout-review-order-table tfoot .order-total th,
  .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.2rem;
  }

  #place_order {
    font-size: 1rem !important;
    min-height: 52px !important;
  }
}
}