/* ==============================
   POPUP DEVIS — apparition différée
   Reprend les variables du thème
   (voir :root dans style.css)
   ============================== */

.capello-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.capello-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 12, 26, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.capello-popup-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: #f8f6f0;
  border-radius: 16px;
  box-shadow: var(--sh-xl);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.capello-popup.is-open .capello-popup-card { opacity: 1; transform: none; }

.capello-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  box-shadow: var(--sh);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.capello-popup-close:hover { background: var(--bg-light); color: var(--accent); }

.capello-popup-overline {
  font-family: var(--font-heading);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .6rem;
}

.capello-popup-logo { display: flex; justify-content: center; margin: 0 0 .75rem; }
.capello-popup-logo-img { display: block; height: 84px; width: auto; max-width: 100%; }

.capello-popup-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 .85rem;
}

.capello-popup-text {
  font-family: var(--font-body);
  font-size: .88rem;
  line-height: 1.55;
  color: #666;
  max-width: 34ch;
  margin: 0 auto 1.5rem;
}

.capello-popup-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  text-align: left;
}
.capello-popup-list li { display: flex; align-items: center; justify-content: flex-start; gap: .65rem; }
.capello-popup-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}
.capello-popup-list span:last-child { font-family: var(--font-body); font-size: 10px; line-height: 1.45; color: var(--text); }

.capello-popup-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  padding: 1rem;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--ease);
}
.capello-popup-cta:hover { background: #fff; color: #890101; border-color: #890101; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(137,1,1,.38); }

@media (max-width: 480px) {
  .capello-popup { padding: 1rem 2rem; }
  .capello-popup-card { max-height: calc(100vh - 2rem); padding: 1.5rem 1.25rem 1.25rem; }
  .capello-popup-close { width: 28px; height: 28px; top: .75rem; right: .75rem; }
  .capello-popup-title { font-size: 1.3rem; margin-bottom: .6rem; }
  .capello-popup-text { font-size: .82rem; margin-bottom: 1rem; }
  .capello-popup-list { margin-bottom: 1.1rem; gap: .55rem; }
  .capello-popup-logo { margin-bottom: .5rem; }
  .capello-popup-logo-img { height: 70px; }
  .capello-popup-cta { width: 78%; margin: 0 auto; padding: .55rem 1.25rem; font-size: .72rem; }
}
