/* ======================================================================
   VIVA — fenêtre de bienvenue, maquette du 13/10/2026
   ======================================================================
   Photo à gauche (coins 16 px, object-fit cover), panneau blanc à droite,
   titre à empattements hébergé sur le serveur, champ e-mail avec bouton
   rond noir, code dans un encadré pointillé.
   Mobile 390 : bandeau photo de 140 px au-dessus du texte.
   Aucun appel externe : la police est servie par le site.
   Retour arrière : /home/vivadiscaq/outils/retour-bienvenue-viva.sh
   ====================================================================== */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/themes/pinkeo/fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/themes/pinkeo/fonts/playfair-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

#vv-bienvenue {
  position: fixed; inset: 0; z-index: 2000000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
#vv-bienvenue .vv-bv-fond { position: absolute; inset: 0; background: rgba(16, 24, 32, .5); }
#vv-bienvenue .vv-bv-boite {
  position: relative; display: flex;
  width: 100%; max-width: 880px; max-height: calc(100vh - 32px); overflow: auto;
  background: #ffffff; border-radius: 16px; box-shadow: 0 20px 56px rgba(16, 24, 32, .26);
}
#vv-bienvenue .vv-bv-croix {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; padding: 0;
  background: rgba(255, 255, 255, .86); border: 0; border-radius: 50%;
  color: #111111; line-height: 0; cursor: pointer;
}
#vv-bienvenue .vv-bv-croix:hover { background: #ffffff; }

/* ---------- la photo ---------- */
#vv-bienvenue .vv-bv-photo { flex: 0 0 44%; overflow: hidden; border-radius: 16px 0 0 16px; }
#vv-bienvenue .vv-bv-photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 50%;
  border-radius: 16px 0 0 16px;
}

/* ---------- le panneau de droite ---------- */
#vv-bienvenue .vv-bv-texte { flex: 1 1 auto; padding: 40px; min-width: 0; }
#vv-bienvenue .vv-bv-titre {
  margin: 0 0 10px 0;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 400; font-size: 32px; line-height: 1.2;
  color: #111111; text-transform: none; letter-spacing: 0;
}
#vv-bienvenue .vv-bv-sous {
  margin: 0 0 20px 0; color: #4a4a4a; font-size: 17px; line-height: 1.45;
}
/* champ + bouton rond sur la même ligne */
#vv-bienvenue .vv-bv-ligne { display: flex; align-items: center; gap: 10px; margin: 0 0 14px 0; }
#vv-bienvenue .vv-bv-champ {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 18px;
  background: #f5f5f5; border: 1px solid #ececec; border-radius: 26px;
  color: #111111; font-size: 16px;
}
#vv-bienvenue .vv-bv-champ:focus { background: #ffffff; border-color: #111111; outline: none; }
#vv-bienvenue .vv-bv-ok {
  flex: 0 0 auto; width: 52px; height: 52px; padding: 0;
  background: #111111; border: 0; border-radius: 50%;
  color: #ffffff; font-size: 15px; font-weight: 700; cursor: pointer;
}
#vv-bienvenue .vv-bv-ok:hover { background: #000000; }
/* consentement discret */
#vv-bienvenue .vv-bv-consent {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px 0;
  color: #767676; font-size: 13px; line-height: 1.4; font-weight: 400; cursor: pointer;
}
#vv-bienvenue .vv-bv-consent input { width: 14px; height: 14px; margin: 2px 0 0 0; flex: 0 0 auto; }
#vv-bienvenue .vv-bv-consent a { color: #767676; text-decoration: underline; text-underline-offset: 2px; }
#vv-bienvenue .vv-bv-err { margin: 0 0 10px 0; color: #8a4b00; font-size: 13px; line-height: 1.4; }
#vv-bienvenue .vv-bv-cond { margin: 18px 0 0 0; color: #8a8a8a; font-size: 12px; line-height: 1.45; }

/* ---------- le code, après saisie ---------- */
#vv-bienvenue .vv-bv-codebloc {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0; padding: 16px 18px;
  border: 1px dashed #c9c9c9; border-radius: 10px; background: #ffffff;
}
#vv-bienvenue .vv-bv-code {
  color: #111111; font-size: 22px; font-weight: 700; letter-spacing: .14em;
}
#vv-bienvenue .vv-bv-copier {
  flex: 0 0 auto; padding: 0; background: none; border: 0;
  color: #767676; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
#vv-bienvenue .vv-bv-copier:hover { color: #111111; }
#vv-bienvenue .vv-bv-copier.vv-bv-copie { color: #111111; text-decoration: none; }

/* ---------- MOBILE 390 ---------- */
@media (max-width: 767px) {
  #vv-bienvenue { padding: 10px; align-items: flex-start; padding-top: 5vh; }
  #vv-bienvenue .vv-bv-boite { flex-direction: column; max-width: 100%; max-height: calc(100vh - 20px); }
  #vv-bienvenue .vv-bv-photo {
    flex: 0 0 140px; height: 140px; border-radius: 16px 16px 0 0;
  }
  #vv-bienvenue .vv-bv-photo img {
    height: 140px; object-position: 60% 40%; border-radius: 16px 16px 0 0;
  }
  #vv-bienvenue .vv-bv-texte { padding: 24px; }
  #vv-bienvenue .vv-bv-titre { font-size: 26px; }
  #vv-bienvenue .vv-bv-sous { font-size: 15px; margin-bottom: 16px; }
  #vv-bienvenue .vv-bv-champ { height: 48px; }
  #vv-bienvenue .vv-bv-ok { width: 48px; height: 48px; }
  #vv-bienvenue .vv-bv-code { font-size: 19px; letter-spacing: .1em; }
  #vv-bienvenue .vv-bv-cond { margin-top: 14px; }
}
/* écran étroit : le bouton passe sous le champ, pleine largeur */
@media (max-width: 360px) {
  #vv-bienvenue .vv-bv-ligne { flex-direction: column; align-items: stretch; }
  #vv-bienvenue .vv-bv-ok { width: 100%; border-radius: 26px; }
}

/* le texte du consentement héritait d'un alignement à droite du thème */
#vv-bienvenue .vv-bv-consent,
#vv-bienvenue .vv-bv-consent span,
#vv-bienvenue .vv-bv-cond,
#vv-bienvenue .vv-bv-err,
#vv-bienvenue .vv-bv-sous,
#vv-bienvenue .vv-bv-titre { text-align: left; }
