/* Térinéo Popup — branding complet (logo, Sunday Club, sticker, trust) */

@font-face {
  font-family: 'Sunday Club';
  src: url('https://terineo.com/wp-content/uploads/2026/05/Sunday-Club.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}

:root{
  --tpop-coral:     #D9594A;
  --tpop-coral-lt:  #EEB4AE;
  --tpop-coral-dk:  #A34338;
  --tpop-clay:      #E8743C;
  --tpop-ink:       #3B1F0E;
  --tpop-ink-soft:  #5A3520;
  --tpop-cream:     #FAEFD7;
  --tpop-cream-sft: #FCF6E4;
  --tpop-paper:     #FEFAEE;
  --tpop-gray-500:  #8A7C68;
  --tpop-border:    #EFE6D2;
}

#terineo-popup{
  position: fixed; inset: 0;
  z-index: 99998;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  font-family: 'Inter', -apple-system, "Helvetica Neue", sans-serif;
}
#terineo-popup.is-open{ display: flex; }

#terineo-popup .terineo-popup-overlay{
  position: absolute; inset: 0;
  background: rgba(59,31,14,.62);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .4s ease;
}
#terineo-popup.is-open .terineo-popup-overlay{ opacity: 1; }

#terineo-popup .terineo-popup-card{
  position: relative;
  background: var(--tpop-paper);
  border-radius: 28px;
  max-width: 920px;
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  box-shadow: 0 40px 100px rgba(0,0,0,.32);
  transform: translateY(24px) scale(.96);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1.05), opacity .4s ease;
}
#terineo-popup.is-open .terineo-popup-card{
  transform: translateY(0) scale(1);
  opacity: 1;
}
@media (max-width: 760px){
  #terineo-popup .terineo-popup-card{
    grid-template-columns: 1fr;
    max-width: 460px;
    border-radius: 22px;
  }
}

/* Bouton fermer — sur fond cream pour visibilité partout */
#terineo-popup .terineo-popup-close{
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--tpop-ink);
  border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .2s ease, transform .2s ease, color .2s ease;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
#terineo-popup .terineo-popup-close:hover{
  background: var(--tpop-ink); color: var(--tpop-cream);
  transform: scale(1.08) rotate(90deg);
}

/* =====================================================
   COLONNE GAUCHE — Visuel + sticker -10%
   ===================================================== */
#terineo-popup .terineo-popup-visual{
  position: relative;
  background: linear-gradient(160deg, #F58273 0%, #D9594A 60%, #A34338 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 460px;
  padding: 32px;
}
@media (max-width: 760px){
  #terineo-popup .terineo-popup-visual{ min-height: 180px; padding: 22px; }
}

/* Décor abstrait derrière le produit */
#terineo-popup .terineo-popup-visual-decor{
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 60%);
  top: -80px; left: -80px;
  pointer-events: none;
}
#terineo-popup .terineo-popup-visual::after{
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
  bottom: -60px; right: -40px;
  pointer-events: none;
}

/* Image produit centrale */
#terineo-popup .terineo-popup-product{
  position: relative;
  max-width: 86%;
  max-height: 340px;
  width: auto; height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.32));
  z-index: 1;
}
@media (max-width: 760px){
  #terineo-popup .terineo-popup-product{ max-height: 130px; }
}

/* Sticker -10% rotated comme un patch collé */
#terineo-popup .terineo-popup-sticker{
  position: absolute;
  top: 28px; left: 28px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--tpop-cream);
  color: var(--tpop-ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: rotate(-12deg);
  box-shadow: 0 14px 32px rgba(0,0,0,.30), inset 0 0 0 4px rgba(217,89,74,.18);
  z-index: 2;
  font-family: 'Sunday Club', 'Brush Script MT', Georgia, serif;
}
#terineo-popup .terineo-popup-sticker::before{
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--tpop-coral);
  border-radius: 50%;
  opacity: .55;
}
#terineo-popup .terineo-popup-sticker-pct{
  font: 700 38px/1 'Sunday Club', Georgia, serif;
  color: var(--tpop-coral-dk);
  letter-spacing: -.02em;
}
#terineo-popup .terineo-popup-sticker-sub{
  font: 700 11px/1 'Inter', sans-serif;
  color: var(--tpop-ink);
  letter-spacing: .22em; text-transform: uppercase;
  margin-top: 6px;
}
@media (max-width: 760px){
  #terineo-popup .terineo-popup-sticker{
    width: 88px; height: 88px;
    top: 12px; left: 12px;
  }
  #terineo-popup .terineo-popup-sticker-pct{ font-size: 26px; }
  #terineo-popup .terineo-popup-sticker-sub{ font-size: 8px; margin-top: 3px; }
}

/* =====================================================
   COLONNE DROITE — body
   ===================================================== */
#terineo-popup .terineo-popup-body{
  padding: 38px 38px 32px;
  display: flex; flex-direction: column;
  justify-content: center;
}
@media (max-width: 760px){
  #terineo-popup .terineo-popup-body{ padding: 22px 22px 26px; }
}

/* Logo Térinéo en haut */
#terineo-popup .terineo-popup-logo{
  width: 130px;
  height: auto;
  display: block;
  margin: 0 0 18px;
}

#terineo-popup .terineo-popup-eyebrow{
  display: inline-block;
  background: var(--tpop-coral);
  color: #fff;
  padding: 6px 13px;
  border-radius: 999px;
  font: 700 10px/1 'Inter', sans-serif;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 14px;
  align-self: flex-start;
  box-shadow: 0 6px 16px rgba(217,89,74,.25);
}

#terineo-popup .terineo-popup-title{
  font-family: 'Sunday Club', Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  color: var(--tpop-ink);
  margin: 0 0 14px;
  letter-spacing: -.01em;
  font-weight: 700;
}
#terineo-popup .terineo-popup-title em,
#terineo-popup .terineo-popup-title strong{
  color: var(--tpop-coral);
  font-style: normal;
  font-weight: 700;
}

#terineo-popup .terineo-popup-intro{
  margin: 0 0 24px;
  font: 400 15px/1.55 'Inter', sans-serif;
  color: var(--tpop-ink-soft);
}

/* Formulaire */
#terineo-popup .terineo-popup-form{
  display: flex; flex-direction: column; gap: 10px;
}
#terineo-popup .terineo-popup-form input[type=email]{
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--tpop-border);
  border-radius: 999px;
  background: #fff;
  font: 500 14px/1 'Inter', sans-serif;
  color: var(--tpop-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}
#terineo-popup .terineo-popup-form input[type=email]:focus{
  border-color: var(--tpop-coral);
  box-shadow: 0 0 0 4px rgba(217,89,74,.16);
}
#terineo-popup .terineo-popup-form input[type=email].has-error{
  border-color: #cf222e;
  box-shadow: 0 0 0 4px rgba(207,34,46,.14);
}

#terineo-popup .terineo-popup-form button{
  width: 100%;
  padding: 16px 24px;
  background: var(--tpop-coral);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font: 700 13px/1 'Inter', sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 26px rgba(217,89,74,.32);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
#terineo-popup .terineo-popup-form button:hover{
  background: var(--tpop-ink); color: var(--tpop-cream);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(59,31,14,.32);
}
#terineo-popup .terineo-popup-form button:disabled{
  opacity: .65; cursor: wait; transform: none;
}
#terineo-popup .terineo-popup-form button svg{ flex-shrink: 0; }

#terineo-popup .terineo-popup-tos{
  margin: 14px 0 0;
  font: 400 11px/1.5 'Inter', sans-serif;
  color: var(--tpop-gray-500);
}

/* Trust strip en bas */
#terineo-popup .terineo-popup-trust{
  display: flex; flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--tpop-border);
}
#terineo-popup .terineo-popup-trust span{
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1 'Inter', sans-serif;
  color: var(--tpop-ink-soft);
  letter-spacing: .06em;
}
#terineo-popup .terineo-popup-trust svg{
  color: var(--tpop-coral);
  flex-shrink: 0;
}

/* ===== État succès ===== */
#terineo-popup .terineo-popup-success{
  text-align: center;
  padding: 12px 0 0;
}
#terineo-popup .terineo-popup-check{
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #2E8B57;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(46,139,87,.36);
}
#terineo-popup .terineo-popup-success h3{
  margin: 0 0 10px;
  font-family: 'Sunday Club', Georgia, serif;
  font-size: 26px;
  line-height: 1.1;
  color: var(--tpop-ink);
}
#terineo-popup .terineo-popup-success p{
  margin: 0 0 14px;
  font: 400 14px/1.5 'Inter', sans-serif;
  color: var(--tpop-ink-soft);
}
#terineo-popup .terineo-popup-coupon{
  display: inline-block;
  background: var(--tpop-cream);
  border: 2px dashed var(--tpop-coral);
  color: var(--tpop-coral-dk);
  padding: 14px 26px;
  border-radius: 14px;
  font-family: 'Sunday Club', Georgia, serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .08em;
  margin-bottom: 14px;
  font-weight: 700;
}
#terineo-popup .terineo-popup-copy{
  background: transparent;
  border: 1.5px solid var(--tpop-ink);
  color: var(--tpop-ink);
  padding: 11px 20px;
  border-radius: 999px;
  font: 600 12px/1 'Inter', sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
#terineo-popup .terineo-popup-copy:hover,
#terineo-popup .terineo-popup-copy.is-copied{
  background: var(--tpop-ink); color: var(--tpop-cream);
}

body.terineo-popup-locked{ overflow: hidden; }
