/* Variables */
:root {
  --rose:#e71a65; --bleu:#48b7ec; --beige:#ffe3db; --gris-fonce:#3d3d3d;
  --option-bg:#f7f7f7; --option-border:#e6e6e6;
  --option-selected-bg:#eaf6fb; --option-selected-border:var(--bleu);
}

/* Reset & layout */
body{margin:0;font-family:'Open Sans',sans-serif;background:var(--beige);color:var(--gris-fonce)}

/* HERO */
.hero-header{position:relative;background:var(--beige);min-height:360px;padding:2rem 2rem}
.hero-left{position:absolute;top:-80px;left:-5%;width:60%;height:220%;z-index:1;pointer-events:none}
.hero-left-img{width:100%;height:100%;object-fit:contain}
.hero-block{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:center;transform:translateX(10%);position:relative;z-index:3}
.hero-center{flex:1;text-align:center;margin-right:1rem}
.hero-center-logo{width:260px;margin:0 auto .4rem}
.hero-tagline{font-size:1.7rem;font-weight:600;line-height:1.4;margin:.8rem 0;text-align:center}
.hero-rating{font-size:1.2rem;margin-bottom:1rem;text-align:center}
.rating-score{color:var(--rose);font-weight:700;margin-right:.4rem}
.rating-count{color:var(--gris-fonce);font-size:.9rem}
.hero-price{font-size:1.4rem;color:var(--rose);margin-bottom:1rem}
.hero-price strong{font-size:1.6rem}
.hero-cta{display:inline-block;background:var(--rose);color:#fff;padding:.8rem 2rem;border-radius:30px;font-weight:700;font-size:1.1rem;border:none;cursor:pointer;transition:background .3s}
.hero-cta:hover{background:#c01455}
.hero-right{flex:0.8;display:flex;align-items:center;justify-content:flex-start}
.hero-right-shape{background:#fbe3e9;border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;padding:1.2rem;width:300px;height:300px;display:flex;align-items:center;justify-content:center}
.hero-right-img{width:100%;height:100%;object-fit:cover;border-radius:inherit}

@media (max-width:900px){
  .hero-block{flex-direction:column;transform:none}
  .hero-center{margin-right:0}
  .hero-center-logo{width:200px}
  .hero-tagline,.hero-rating{font-size:1.3rem}
  .hero-price{font-size:1.2rem}
  .hero-price strong{font-size:1.4rem}
  .hero-right{justify-content:center;margin-top:1.5rem}
  .hero-right-shape{width:230px;height:230px}
  .hero-left{position:relative;top:0;left:0;width:100%;height:auto;margin-bottom:2rem;z-index:-1}
  .hero-left-img{width:260px;height:auto;margin:0 auto}
}

/* Main layout */
main{position:relative;z-index:5;display:flex;flex-wrap:wrap;justify-content:space-between;padding:2rem}
#booking-steps{flex:1 1 60%;max-width:62%}
.cart-column{flex:1 1 32%;max-width:32%;background:#fff;border-radius:16px;border:1px solid #e5e5e5;padding:2rem 1.5rem;box-shadow:0 4px 12px rgba(0,0,0,.05);height:fit-content;position:sticky;top:2rem}

/* Étapes */
.accordion-step{margin-bottom:1rem}
.step-header{width:100%;background:#fff;border:none;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.05);padding:1rem 1.2rem;font-family:'Cocogoose',sans-serif;font-size:1.1rem;display:flex;align-items:center;cursor:pointer;transition:background .3s,opacity .2s}
.step-header span{background:var(--bleu);color:#fff;border-radius:50%;width:26px;height:26px;line-height:26px;text-align:center;margin-right:.8rem;font-weight:700}
.step-header:hover{background:#f5faff}
.step-header.disabled{opacity:.45;pointer-events:none}
.step-content{overflow:hidden;max-height:0;transition:max-height .5s ease,padding .5s ease;padding:0 1rem}
.step-content.active{max-height:2000px;padding:1rem}
[data-step="3"] .step-content{padding-left:0;padding-right:0}
.accordion-step[data-step="2"] .step-content.active{background:#fff;border-radius:12px;padding:1rem}

/* Actions d'étape */
.step-actions{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;margin-top:.75rem;text-align:center}
.hint{margin:0;font-size:.85rem;color:#666}
.step-actions .btn-main,.step-actions .btn-secondary{min-width:220px}

/* Produits & options */
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem}
.product-card{background:#fff;border:2px solid transparent;border-radius:12px;text-align:center;padding:1rem;cursor:pointer;transition:border-color .3s,box-shadow .3s;display:flex;flex-direction:column;justify-content:space-between}
.product-card:hover{border-color:var(--bleu);box-shadow:0 2px 8px rgba(0,0,0,.1)}
.product-card.selected{border-color:var(--rose);box-shadow:0 0 0 3px rgba(231,26,101,.3)}
.product-card img{width:100%;height:auto;object-fit:cover;border-radius:8px;margin:0 auto .5rem}
.product-card .price{font-weight:700;color:var(--rose)}
.options-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}
.option-wrapper{display:flex;align-items:center}
.option-wrapper .emoji{font-size:1.5rem;margin-right:.8rem}
.option-wrapper label{flex:1;background:#ffe3db;border:1px solid #f5c6d6;border-radius:8px;padding:.8rem 1rem;cursor:pointer;font-size:1rem;line-height:1.4;transition:background .3s,border-color .3s}
.option-wrapper label:hover{background:#f7d5e1;border-color:var(--bleu)}
.option-wrapper input[type="checkbox"]{display:none}
.option-wrapper input.qty-input{width:60px;padding:.3rem;border:1px solid var(--option-border);border-radius:6px;text-align:center;margin-right:.4rem}
.option-wrapper.selected label{background:var(--option-selected-bg);border-color:var(--option-selected-border)}

/* Form & date */
.date-input{display:none}
.input-field{width:100%;background:#fff;border:1px solid #ddd;border-radius:8px;padding:.6rem .8rem;margin-bottom:.8rem;font-size:.95rem;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}
.input-field:focus{border-color:var(--bleu);box-shadow:0 0 0 2px rgba(72,183,236,.2);outline:none}
input[type="date"].input-field{border-radius:8px;border:1px solid #ddd;background:#fff;padding:.6rem .8rem;-webkit-appearance:none}
.two-cols{display:flex;gap:1rem}
.two-cols .input-field{flex:1}

/* Livraison / Retrait */
.delivery-choice{display:flex;flex-direction:column;gap:.6rem}
.delivery-choice label{display:flex;align-items:center;gap:.45rem;cursor:pointer;flex-wrap:wrap}
.delivery-choice input{margin-right:.25rem}
.delivery-fields{margin-top:.8rem}
.delivery-note{margin-top:.8rem;font-size:.9rem;line-height:1.4;color:var(--gris-fonce)}
.muted{color:#666;font-size:.95rem;margin-left:.15rem}
.price-pill{
  display:inline-flex; align-items:center;
  padding:0.15rem 0.5rem; border-radius:999px;
  background:#ffe3db; border:1px solid #f5c6d6; color:#c01455;
  font-weight:700; font-size:.9rem; line-height:1;
}

/* Panier */
.cart-column h2{margin-top:0;font-family:'Cocogoose',sans-serif;color:var(--rose);margin-bottom:1rem}
.cart-product{display:flex;gap:.75rem;align-items:center;background:#fff7fa;border:1px solid #ffd2e3;border-radius:12px;padding:.6rem .8rem;margin-bottom:.8rem}
.cart-product.hidden{display:none}
.cart-product img{width:64px;height:64px;object-fit:cover;border-radius:10px;border:1px solid #f3c7d6}
.cart-product-row{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap}
.cart-product-name{font-weight:700}
.cart-product-date{font-size:.9rem}

.cart-items{list-style:none;padding:0;margin:0}
.cart-items li{margin-bottom:.4rem;font-size:.9rem;display:flex;justify-content:space-between;align-items:center;opacity:0;transform:translateY(-5px);transition:opacity .3s,transform .3s}
.cart-items li.show{opacity:1;transform:translateY(0)}
.cart-items li .remove-item{margin-left:.8rem;cursor:pointer;font-weight:700;font-size:1rem;color:var(--rose);background:#ffe3db;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center}
.cart-total{font-weight:700}

/* Boutons paiement */
.payment-buttons{display:flex;flex-direction:column;gap:.7rem;margin-bottom:1rem}
.btn-main,.btn-secondary{border-radius:8px;padding:.8rem 1.2rem;font-size:1rem;font-weight:700;cursor:pointer;border:none}
.btn-main{background:var(--rose);color:#fff}
.btn-secondary{background:var(--bleu);color:#fff}
.btn-main:disabled,.btn-secondary:disabled{opacity:.6;cursor:not-allowed}
.btn-main:not(:disabled):hover{background:#c01455}
.btn-secondary:not(:disabled):hover{background:#3aa0c9}

/* Bloc avis relooké */
.rating-card{margin-top:1rem;border-top:1px solid #f0f0f0;padding-top:1rem;background:#fff;border-radius:12px;padding:1rem;border:1px solid #f3f3f3}
.rating-card .stars{display:flex;gap:.25rem;margin-bottom:.5rem}
.rating-card .stars svg{width:18px;height:18px;fill:#FFD166;filter:drop-shadow(0 1px 0 rgba(0,0,0,.05))}
.rating-card .rating-meta{font-weight:600;margin-bottom:.5rem}
.rating-card .rating-meta a{color:var(--bleu);text-decoration:none}
.rating-card .rating-meta a:hover{text-decoration:underline}
.review-chip-row{display:flex;flex-wrap:wrap;gap:.4rem}
.chip{background:#f5faff;border:1px solid #dbeefd;color:#2773a5;border-radius:999px;padding:.35rem .6rem;font-size:.85rem}

/* Paiements */
.payment-box{margin-top:1rem;border-top:1px solid #f0f0f0;padding-top:1rem}
.payment-box .secure{font-size:.8rem;margin-bottom:.5rem;color:#666}
.pay-icons{display:flex;gap:10px;align-items:center}
.pay-icons img{height:28px}
.cb-logo-img{height:28px;border-radius:4px;image-rendering:-webkit-optimize-contrast}

/* WhatsApp / contact */
.whatsapp{position:fixed;bottom:20px;right:20px;background:#25d366;color:#fff;border-radius:50px;padding:.8rem 1rem;font-weight:700;font-size:.9rem;z-index:2000;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.whatsapp a{color:#fff;text-decoration:none}

/* Footer */
footer{padding:2rem 0;text-align:center;color:#666;font-size:.85rem}
footer a{color:var(--bleu);text-decoration:none}
footer a:hover{text-decoration:underline}

/* Flatpickr */
.flatpickr-calendar.inline{margin-left:auto!important;margin-right:auto!important;border:none}

/* === POPUP PAIEMENT (overlay + modale) === */
.pay-overlay{
  position:fixed; inset:0; z-index:3000;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.55);
}
.pay-overlay[hidden]{ display:none; }
.pay-modal{
  position:relative;
  background:#fff; color:#333;
  width:min(480px, 92vw);
  border-radius:16px;
  padding:24px 20px;
  box-shadow:0 20px 60px rgba(0,0,0,.2);
  text-align:center;
}
.pay-modal h3{ margin:0 0 10px; font-size:1.25rem; }
.pay-modal .hint{ font-size:.9rem; color:#666; margin-top:8px; }
.pay-close{
  position:absolute; top:10px; right:10px;
  width:34px; height:34px; line-height:34px; font-size:18px;
  border:none; border-radius:50%; background:#fff; cursor:pointer;
  box-shadow:0 2px 10px rgba(0,0,0,.15);
}

/* ====== Pages résultat (success/cancel) ====== */
.center-wrap{
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--beige);
}
.result-card{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:16px;
  box-shadow:0 12px 36px rgba(0,0,0,.08);
  width:min(760px, 92vw);
  padding:28px 24px;
  text-align:center;
  margin: 0 auto;
}
.result-icon{
  width:56px; height:56px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; margin:-48px auto 16px; font-size:26px; box-shadow:0 6px 18px rgba(0,0,0,.12);
  background:#fff;
}
.result-icon.ok{ border:2px solid #dbeefd; color:#2773a5; }
.result-icon.warn{ border:2px solid #ffe0b3; color:#a35b06; }
.result-title{
  margin:0 0 6px; font-size:28px; font-weight:800; color:var(--rose); font-family:'Cocogoose', sans-serif;
}
.result-sub{ margin:0 0 14px; color:#444; font-weight:600; }
.result-details{ color:#555; line-height:1.6; margin:8px auto 22px; max-width:560px; }
.result-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:18px; }
.result-actions .btn-main,.result-actions .btn-secondary{
  display:inline-block; padding:.8rem 1.2rem; border:none; border-radius:8px; font-weight:700;
  cursor:pointer; text-decoration:none;
}
.result-actions .btn-main{ background:var(--rose); color:#fff; }
.result-actions .btn-main:hover{ background:#c01455; }
.result-actions .btn-secondary{ background:var(--bleu); color:#fff; }
.result-actions .btn-secondary:hover{ background:#3aa0c9; }
.result-badge{ font-size:.9rem; color:#777; }

@media (max-width:560px){
  .result-title{ font-size:24px; }
  .result-card{ padding:22px 18px; }
}

/* (facultatif) amélioration de rendu texte */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body { height: 100%; }

/* Centrage imparable pour /success et /cancel (marche en pop-in iOS/Safari) */
.center-wrap-fixed{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--beige);
  z-index: 0;
}
.result-card{ margin: 0; }

/* === Responsive mobile spécifique (<= 600px) === */
@media (max-width:600px){
  .hero-header{
    min-height:auto;
    padding:1.5rem 1.25rem 1.25rem;
  }
  .hero-left{display:none;}
  .hero-right{display:none;} /* on cache la vidéo / gif sur mobile */
  .hero-block{
    transform:none;
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-center{
    text-align:left;
    margin-right:0;
  }
  .hero-center-logo{
    width:200px;
    margin-left:0;
  }
  .hero-tagline{
    text-align:left;
    font-size:1.4rem;
  }
  main{
    padding:1.25rem 1rem 1.5rem;
    flex-direction:column;
  }
  #booking-steps{
    flex:1 1 100%;
    max-width:100%;
  }
  .cart-column{
    position:static;
    flex:1 1 100%;
    max-width:100%;
    margin-top:1.25rem;
  }
  .two-cols{
    flex-direction:column;
    gap:.5rem;
  }
  .whatsapp{
    bottom:14px;
    right:10px;
    padding:.6rem .9rem;
    font-size:.85rem;
  }
}
