/* Couleurs principales */
:root {
  --blanc: #ffffff;
  --bleu1: #28a3e6;
  --bleu2: #1b7cb1;
  --vert: #099c4c;
  --rouge: #b41a1c;
  --gris-clair: #f4f4f4;
  --gris: #ddd;
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.card {
  background-color: var(--blanc);
  border: 1px solid var(--gris);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
  width: 31%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-header {
  background: linear-gradient(135deg, var(--bleu1), var(--bleu2));
  color: var(--blanc);
  padding: 20px;
  text-align: center;
  font-size: 27px;
  font-style: italic;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.card-price {
  font-size: 2.7em;
  margin: 10px 0;
  font-style: italic;
  color: #1c7db3;
  font-weight: bold;
}
.paiement-info {
  font-size: 10px;
  vertical-align: middle;
  margin-left: 5px;
  float: right;
  color: #099c4c;
}
.card-body {
  padding: 15px;
  flex: 1;
}
.card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card-body li {
  margin-bottom: 10px;
  align-items: center;
}
.card-body li span.emoji {
  margin-right: 2px;
  font-size: 1.2em;
}

/* ===== Bouton en bas de la carte (avec animations) ===== */
.card-footer {
  position: relative;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  text-decoration: none;
  display: block;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
  
}

/* Variantes + animations identiques à ton modèle */
.card-footer.classique {
  background: linear-gradient(135deg, var(--bleu1), var(--bleu2));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite, pulse-blue 2s infinite;
}
.card-footer.confort {
  background: linear-gradient(135deg, var(--vert), var(--bleu2));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite, pulse-green 2s infinite;
}
.card-footer.zen {
  background: linear-gradient(135deg, #f4c503, var(--bleu2));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite, pulse-yellow 2s infinite;
}

/* Shimmer */
.card-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}
.card-footer:hover::before { left: 100%; }

/* Pulse circulaire */
.card-footer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.6s;
  transform: translate(-50%, -50%);
}
.card-footer:hover::after {
  width: 300px;
  height: 300px;
}

/* Hover/Active */
.card-footer:hover {
  transform: translateY(-3px) scale(1.02);
}
.card-footer:active {
  transform: translateY(-1px) scale(1.01);
}

/* Keyframes */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulse-blue {
  0% { box-shadow: 0 8px 25px rgba(40,163,230,0.3); }
  50% { box-shadow: 0 8px 25px rgba(40,163,230,0.6), 0 0 20px rgba(40,163,230,0.5); }
  100% { box-shadow: 0 8px 25px rgba(40,163,230,0.3); }
}
@keyframes pulse-green {
  0% { box-shadow: 0 8px 25px rgba(9,156,76,0.3); }
  50% { box-shadow: 0 8px 25px rgba(9,156,76,0.6), 0 0 20px rgba(9,156,76,0.5); }
  100% { box-shadow: 0 8px 25px rgba(9,156,76,0.3); }
}
@keyframes pulse-yellow {
  0% { box-shadow: 0 8px 25px rgba(244,197,3,0.3); }
  50% { box-shadow: 0 8px 25px rgba(244,197,3,0.6), 0 0 20px rgba(244,197,3,0.5); }
  100% { box-shadow: 0 8px 25px rgba(244,197,3,0.3); }
}

/* Accordéon */
.accordion {
  margin-top: 15px;
  border-top: 1px solid var(--blanc);
  padding-top: 10px;
}
.accordion-section { border-bottom: 1px solid var(--blanc); }
.accordion-header {
  background-color: var(--gris-clair);
  cursor: pointer;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #dff1fb;
  border-radius: 7px;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.2);
  border: 1px solid white;
}
.accordion-header:hover { background-color: #28a3e6; }
.accordion-content { display: none; padding: 10px 15px; }
.accordion-content ul { margin: 0; }

/* Sélecteurs */
.selectors {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.selector {
  display: flex;
  align-items: center;
  background: var(--gris-clair);
  border-radius: 5px;
  padding: 5px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.selector button {
  background: transparent;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0 10px;
  color: #28a3e6;
}
.selector span.count {
  font-size: 1.2em;
  width: 30px;
  text-align: center;
}

/* Backdrop modal */
.modal{
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.6);
  padding:16px;
  align-items:center; justify-content:center;
}
.modal-content{
  position:relative; margin:0; background:#fff; border:1px solid #888; border-radius:12px;
  width:100%; max-width:860px; overflow:hidden;
  box-shadow:0 10px 40px rgba(0,0,0,.25);
}
.modal .closex{
  position:absolute; top:10px; right:16px; z-index:2;
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  font-size:28px; font-weight:700; color:#f00; background:#fff; border-radius:999px;
  box-shadow:0 2px 8px rgba(0,0,0,.15); cursor:pointer;
}
#form-iframe{ width:100%; border:0; display:block; }

@media (max-width: 960px) {
  .pricing-table { flex-direction: column; align-items: center; }
  .card { width: 100%; }
  #person-selector, #animal-selector { flex: 0 0 auto; }
  #date-selector { flex-basis: 97%; text-align: center; margin-top: -25px; width: 97%; }
  .modal{ padding:12px; }
  .modal-content{ height:90vh; max-height:90vh; }
  #form-iframe{ height:100%; }
}
@media (min-width: 961px) {
  .modal{ padding:32px; }
  .modal-content{ height:auto; max-height:85vh; }
  #form-iframe{ height:600px; max-height:85vh; }
}

body.modal-open{ overflow:hidden; }