/* ================================================
   DARASSA KIDS — Boutique 01 (page checkout)
   Mobile-first | CSS Variables | Chemins relatifs
================================================ */

:root {
  --bleu-nuit:  #0f1f3d;
  --dore:       #f5a623;
  --fond-chaud: #fdf6ee;
  --blanc:      #ffffff;
  --texte:      #1a1a1a;
  --texte-doux: #555555;
  --border:     #e0e0e0;
  --radius:     12px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texte);
  background: #f0f0f0;
}

@font-face { font-family:'Lato'; src:url('fonts/lato-regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Lato'; src:url('fonts/lato-bold.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Montserrat'; src:url('fonts/montserrat-semibold.woff2') format('woff2'); font-weight:600; font-display:swap; }

h1,h2,h3 { font-family:'Montserrat','Lato',Arial,sans-serif; font-weight:600; line-height:1.3; }
img { max-width:100%; height:auto; display:block; }
a { color: var(--bleu-nuit); }

/* ── Header ── */
.site-header {
  background: var(--blanc);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 14px 20px 10px;
}
.site-header img { width: 56px; height: auto; display: inline-block; }
.site-header p { font-size: 13px; color: #666; margin-top: 4px; }

/* ── Layout principal ── */
.main-wrapper {
  max-width: 540px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

/* ── Checkout card ── */
.checkout-card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* ── Image produit pricing — pleine largeur dans la carte ── */
.product-pricing-img {
  width: calc(100% + 40px);
  max-width: none;
  height: auto;
  display: block;
  margin: -24px -20px 8px;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ── Récapitulatif commande ── */
.order-summary {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-bottom: 12px;
}
.order-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--texte);
}
.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.order-table td {
  padding: 5px 0;
}
.order-amount {
  text-align: right;
}
.order-remise {
  color: #c0392b;
}
.order-row-total td {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 17px;
}

/* ── Paiement ── */
.payment-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.payment-label {
  font-size: 13px;
  text-align: center;
  color: var(--texte-doux);
  margin-bottom: 12px;
  letter-spacing: .3px;
}
#paypal-button-container {
  min-height: 50px;
}

/* ── Bannière collection ── */
.collection-banner-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.collection-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Section réassurance ── */
.reassurance-section {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.reassurance-item {
  text-align: center;
}
.reassurance-icon {
  font-size: 44px;
  margin-bottom: 10px;
  line-height: 1;
}
.reassurance-item h3 {
  font-size: 17px;
  color: var(--bleu-nuit);
  margin-bottom: 8px;
}
.reassurance-item p {
  font-size: 14px;
  color: var(--texte-doux);
  line-height: 1.6;
}

/* ── Contact ── */
.contact-section {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9f5ef;
  border: 1px solid #ede4d5;
  border-radius: 12px;
  padding: 13px 14px;
  text-decoration: none;
  transition: box-shadow .18s ease, border-color .18s ease;
  min-width: 0;
}
.contact-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.09);
  border-color: #d4c4ad;
}
.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.contact-card-icon--wa    { background: #e8f8ee; color: #25D366; }
.contact-card-icon--email { background: #fef3de; color: #f5a623; }
.contact-card-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.contact-card-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.contact-card-text span {
  font-size: 12px;
  color: var(--texte-doux);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-card-arrow { color: #f5a623; flex-shrink: 0; }

/* ── Footer ── */
.footer {
  background: var(--bleu-nuit);
  color: rgba(255,255,255,.7);
  padding: 16px 20px;
  text-align: center;
}
.footer-copy {
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ── Modales ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 600px;
  width: 100%;
  position: relative;
  margin: auto;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  line-height: 1;
}
.modal-close:hover { color: #000; }
.modal-content h2 { font-size: 20px; margin-bottom: 6px; color: var(--bleu-nuit); }
.modal-content h3 { font-size: 15px; margin: 14px 0 4px; color: var(--bleu-nuit); }
.modal-content p  { font-size: 14px; line-height: 1.6; margin-bottom: 0; color: var(--texte-doux); }
.modal-date       { font-size: 12px; color: #999; margin-bottom: 12px; }
