*{
  box-sizing:border-box;
}

html{
  background:#09090d;
}

body{
  margin:0;
  min-height:100vh;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color:#fff;
  background:
    radial-gradient(
      circle at top right,
      rgba(254,44,85,.18),
      transparent 35%
    ),
    radial-gradient(
      circle at top left,
      rgba(37,244,238,.13),
      transparent 34%
    ),
    #09090d;
}

.page{
  width:min(100%,580px);
  margin:0 auto;
  padding:20px 15px 40px;
}

.hero{
  text-align:center;
  padding:28px 10px 20px;
}

.live-badge{
  display:inline-block;
  padding:7px 13px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  background:#fe2c55;
  box-shadow:0 0 25px rgba(254,44,85,.35);
}

.hero h1{
  margin:16px 0 0;
  font-size:38px;
  line-height:1;
}

.hero h2{
  margin:7px 0 12px;
  font-size:20px;
  color:#25f4ee;
}

.hero p{
  margin:0 auto;
  max-width:430px;
  color:#b9bac5;
  line-height:1.55;
}

.card{
  margin:14px 0;
  padding:20px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  background:rgba(20,20,28,.90);
  box-shadow:0 18px 45px rgba(0,0,0,.28);
}

.section-title{
  margin-bottom:10px;
  font-size:22px;
  font-weight:900;
}

.small-title{
  font-size:18px;
}

.info{
  margin:0 0 18px;
  color:#aeb0bb;
  font-size:14px;
  line-height:1.5;
}

label{
  display:block;
  margin:15px 0;
  font-size:14px;
  font-weight:700;
}

input,
select,
textarea{
  width:100%;
  margin-top:7px;
  padding:14px 13px;
  color:#fff;
  font-size:16px;
  border:1px solid #34343e;
  border-radius:13px;
  outline:none;
  background:#101017;
}

textarea{
  min-height:110px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#25f4ee;
  box-shadow:0 0 0 3px rgba(37,244,238,.10);
}

small{
  display:block;
  padding-top:7px;
  color:#888b97;
  font-weight:400;
  line-height:1.4;
}

button{
  cursor:pointer;
  width:100%;
  border:0;
  border-radius:13px;
  padding:14px 16px;
  font-size:15px;
  font-weight:900;
}

button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.primary{
  color:#fff;
  background:linear-gradient(
    90deg,
    #fe2c55,
    #d81762
  );
}

.primary:active{
  transform:scale(.99);
}

.secondary{
  color:#fff;
  border:1px solid #3a3b46;
  background:#1b1c25;
}

.separator{
  display:flex;
  align-items:center;
  gap:10px;
  margin:22px 0;
  color:#686a75;
  font-size:12px;
  text-transform:uppercase;
}

.separator::before,
.separator::after{
  content:"";
  height:1px;
  flex:1;
  background:#32333b;
}

.status{
  min-height:20px;
  margin-top:12px;
  font-size:14px;
  line-height:1.45;
  white-space:pre-line;
}

.status.ok{
  color:#46e69a;
}

.status.error{
  color:#ff718e;
}

.hidden{
  display:none !important;
}

.member-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:14px;
}

.connected-dot{
  color:#46e69a;
}

.logout{
  width:auto;
  padding:9px 12px;
  color:#ddd;
  background:#292a33;
}

.voice-box{
  margin:18px 0;
  padding:16px;
  border:1px solid #353640;
  border-radius:16px;
  background:#111119;
}

.voice-box p{
  color:#999ca7;
  font-size:13px;
}

.voice-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.voice-timer{
  margin:12px 0;
  text-align:center;
  font-size:25px;
  font-weight:900;
}

audio{
  width:100%;
  margin-top:10px;
}

.small-button{
  margin-top:10px;
  padding:10px;
  color:#ccc;
  border:1px solid #383943;
  background:transparent;
}

.send-button{
  margin-top:10px;
  padding:17px;
  font-size:17px;
}

footer{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:25px 0 10px;
  color:#777986;
  font-size:12px;
  text-align:center;
}

footer strong{
  color:#bbb;
}

@media(max-width:400px){

  .hero h1{
    font-size:33px;
  }

  .card{
    padding:17px;
  }

  .member-line{
    align-items:flex-start;
    flex-direction:column;
  }

  .logout{
    width:100%;
  }

}


/* =========================================
   MAGICAL RADIO DESIGN V2
   ========================================= */

:root{
  --mr-bg:#07111f;
  --mr-bg2:#0b1b33;
  --mr-panel:rgba(12,25,48,.90);
  --mr-line:rgba(143,124,255,.24);
  --mr-accent:#8f7cff;
  --mr-accent2:#46d5ff;
  --mr-text:#f6f8ff;
  --mr-muted:#9ca9c4;
}

html{
  background:var(--mr-bg);
}

body{
  color:var(--mr-text);

  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(143,124,255,.34),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 6%,
      rgba(70,213,255,.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 95%,
      rgba(119,76,255,.16),
      transparent 34%
    ),
    linear-gradient(
      160deg,
      var(--mr-bg),
      #09162a 42%,
      var(--mr-bg2)
    );

  background-attachment:fixed;
}

.page{
  position:relative;
  z-index:1;
}

.hero{
  position:relative;
  overflow:hidden;
}

.brand-halo{
  position:absolute;
  width:330px;
  height:330px;
  left:50%;
  top:-130px;
  transform:translateX(-50%);
  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(70,213,255,.22),
      rgba(143,124,255,.12) 42%,
      transparent 70%
    );

  filter:blur(4px);
  pointer-events:none;
}

.hero-logo{
  position:relative;
  display:block;
  width:min(230px,72vw);
  max-height:150px;
  object-fit:contain;
  margin:0 auto 14px;

  filter:
    drop-shadow(
      0 0 18px
      rgba(70,213,255,.30)
    )
    drop-shadow(
      0 12px 28px
      rgba(0,0,0,.34)
    );
}

.live-badge{
  position:relative;
  color:#07111f;

  background:
    linear-gradient(
      135deg,
      var(--mr-accent2),
      var(--mr-accent)
    );

  box-shadow:
    0 0 22px
    rgba(70,213,255,.28);
}

.hero h1{
  position:relative;

  background:
    linear-gradient(
      90deg,
      #ffffff,
      #a9efff 45%,
      #b6aaff
    );

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;

  text-shadow:
    0 8px 30px
    rgba(70,213,255,.12);
}

.hero h2{
  color:var(--mr-accent2);
}

.hero p{
  color:var(--mr-muted);
}

.mini-eq{
  display:flex;
  justify-content:center;
  align-items:flex-end;
  gap:5px;

  height:34px;
  margin:18px auto 0;
}

.mini-eq span{
  width:5px;
  min-height:6px;
  border-radius:99px;

  background:
    linear-gradient(
      180deg,
      var(--mr-accent2),
      var(--mr-accent)
    );

  animation:
    mrEq 1.25s
    ease-in-out
    infinite alternate;
}

.mini-eq span:nth-child(1){height:12px}
.mini-eq span:nth-child(2){height:24px;animation-delay:.12s}
.mini-eq span:nth-child(3){height:17px;animation-delay:.24s}
.mini-eq span:nth-child(4){height:30px;animation-delay:.36s}
.mini-eq span:nth-child(5){height:20px;animation-delay:.48s}
.mini-eq span:nth-child(6){height:27px;animation-delay:.60s}
.mini-eq span:nth-child(7){height:14px;animation-delay:.72s}
.mini-eq span:nth-child(8){height:23px;animation-delay:.84s}
.mini-eq span:nth-child(9){height:10px;animation-delay:.96s}

@keyframes mrEq{
  from{
    transform:scaleY(.38);
    opacity:.62;
  }
  to{
    transform:scaleY(1);
    opacity:1;
  }
}

.card{
  border:
    1px solid
    var(--mr-line);

  background:
    linear-gradient(
      180deg,
      rgba(17,34,62,.94),
      rgba(7,17,33,.92)
    );

  box-shadow:
    0 22px 55px
    rgba(0,0,0,.34),
    inset 0 1px 0
    rgba(255,255,255,.035);

  backdrop-filter:
    blur(12px);
}

#authArea{
  position:relative;
  overflow:hidden;
}

#authArea::before{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-70px;
  top:-85px;
  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(70,213,255,.15),
      transparent 68%
    );

  pointer-events:none;
}

.section-title{
  color:#fff;
}

.info,
small{
  color:var(--mr-muted);
}

input,
select,
textarea{
  border:
    1px solid
    rgba(143,124,255,.23);

  background:
    rgba(5,14,29,.88);
}

input:focus,
select:focus,
textarea:focus{
  border-color:
    var(--mr-accent2);

  box-shadow:
    0 0 0 3px
    rgba(70,213,255,.10),
    0 0 20px
    rgba(70,213,255,.08);
}

.primary{
  color:white;

  background:
    linear-gradient(
      135deg,
      var(--mr-accent),
      #6f8dff 48%,
      var(--mr-accent2)
    );

  box-shadow:
    0 12px 26px
    rgba(111,141,255,.24);
}

.primary:hover{
  filter:brightness(1.08);
}

.secondary{
  border:
    1px solid
    rgba(70,213,255,.25);

  background:
    linear-gradient(
      180deg,
      rgba(30,47,82,.84),
      rgba(15,27,51,.92)
    );
}

.google-login-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;

  margin-top:14px;

  color:#182033;
  background:#f7f9ff;

  border:
    1px solid
    rgba(255,255,255,.8);

  box-shadow:
    0 10px 25px
    rgba(0,0,0,.20);

  transition:
    transform .16s ease,
    box-shadow .16s ease;
}

.google-login-btn:hover{
  transform:
    translateY(-1px);

  box-shadow:
    0 14px 30px
    rgba(0,0,0,.26);
}

.google-g{
  display:grid;
  place-items:center;

  width:30px;
  height:30px;

  font-size:22px;
  font-weight:1000;

  background:
    conic-gradient(
      from -45deg,
      #4285f4,
      #34a853,
      #fbbc05,
      #ea4335,
      #4285f4
    );

  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.social-note{
  margin:9px 0 3px;
  text-align:center;
  font-size:12px;
  color:#8593af;
}

.separator{
  color:#6f809f;
}

.member-line{
  border-color:
    rgba(70,213,255,.25);
}

.connected-dot{
  color:#49ebbe;
  text-shadow:
    0 0 12px
    rgba(73,235,190,.45);
}

.voice-box{
  border-color:
    rgba(143,124,255,.25);

  background:
    linear-gradient(
      145deg,
      rgba(16,29,56,.90),
      rgba(6,16,32,.92)
    );
}

footer{
  color:#7f90ae;
}

footer strong{
  color:#b9c9e8;
}

#oauthBridge{
  position:fixed;
  width:1px;
  height:1px;
  left:-10000px;
  top:-10000px;
  opacity:0;
  border:0;
  pointer-events:none;
}

@media(max-width:400px){

  .hero-logo{
    width:min(205px,68vw);
  }

  .hero h1{
    font-size:31px;
  }

}



.google-finish-btn{
  margin-top:12px;
  color:#07111f;

  background:
    linear-gradient(
      135deg,
      #46d5ff,
      #8f7cff
    );

  box-shadow:
    0 10px 25px
    rgba(70,213,255,.20);
}

.google-finish-btn:hover{
  filter:brightness(1.08);
}

.visit-site-btn{
  position:relative;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin:18px auto 0;
  padding:11px 17px;

  color:#dff8ff;
  font-size:14px;
  font-weight:800;
  text-decoration:none;

  border:
    1px solid
    rgba(70,213,255,.30);

  border-radius:999px;

  background:
    linear-gradient(
      135deg,
      rgba(70,213,255,.12),
      rgba(143,124,255,.16)
    );

  box-shadow:
    0 8px 25px
    rgba(0,0,0,.20);
}

.visit-site-btn:hover{
  border-color:#46d5ff;
  transform:translateY(-1px);
}



/* ============================================
   TIKTOK CLOSED AGENDA V1
   ============================================ */

.closed-card{
  position:relative;
  overflow:hidden;

  padding:30px 22px;

  text-align:center;

  border:
    1px solid
    rgba(70,213,255,.20);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(70,213,255,.12),
      transparent 38%
    ),
    linear-gradient(
      160deg,
      rgba(14,31,58,.96),
      rgba(7,17,33,.97)
    );
}

.closed-card::before{
  content:"";

  position:absolute;

  width:260px;
  height:260px;

  top:-150px;
  left:50%;

  transform:
    translateX(-50%);

  border-radius:50%;

  background:
    rgba(143,124,255,.14);

  filter:
    blur(20px);

  pointer-events:none;
}

.closed-icon{
  position:relative;

  font-size:42px;

  margin-bottom:8px;
}

.closed-kicker{
  position:relative;

  font-size:12px;
  font-weight:900;
  letter-spacing:.18em;

  color:#46d5ff;

  margin-bottom:10px;
}

.closed-title{
  position:relative;

  margin:0 0 10px;

  font-size:
    clamp(24px,7vw,34px);

  color:#fff;
}

.closed-text{
  position:relative;

  max-width:580px;

  margin:
    0 auto 25px;

  line-height:1.6;

  color:#9eacc8;
}

.tiktok-agenda{
  position:relative;

  max-width:620px;

  margin:
    0 auto;

  padding:20px;

  border-radius:18px;

  border:
    1px solid
    rgba(143,124,255,.24);

  background:
    linear-gradient(
      145deg,
      rgba(17,34,62,.94),
      rgba(8,19,38,.96)
    );

  box-shadow:
    0 18px 40px
    rgba(0,0,0,.25);
}

.agenda-label{
  margin-bottom:10px;

  font-size:13px;

  color:#8ea0c2;
}

#agendaShowTitle{
  display:block;

  color:#fff;

  font-size:
    clamp(20px,6vw,28px);

  margin-bottom:12px;
}

#agendaCountdown{
  margin:12px 0;

  font-size:
    clamp(34px,11vw,54px);

  line-height:1;

  font-weight:1000;

  letter-spacing:.04em;

  color:#72e2ff;

  text-shadow:
    0 0 24px
    rgba(70,213,255,.25);
}

.agenda-live-now{
  color:#65f0b9 !important;
}

.agenda-meta{
  display:flex;

  justify-content:center;
  flex-wrap:wrap;

  gap:8px 15px;

  margin-top:12px;

  font-size:13px;

  color:#9eacc8;
}

.agenda-flyer{
  margin-top:18px;
}

.agenda-flyer img{
  display:block;

  width:100%;
  max-height:330px;

  object-fit:cover;

  border-radius:14px;
}

.agenda-open-btn{
  display:inline-flex;

  align-items:center;
  justify-content:center;

  margin-top:15px;

  padding:11px 18px;

  border-radius:999px;

  border:
    1px solid
    rgba(70,213,255,.30);

  color:#e6fbff;

  background:
    linear-gradient(
      135deg,
      rgba(70,213,255,.15),
      rgba(143,124,255,.20)
    );

  cursor:pointer;
}

.closed-foot{
  position:relative;

  margin-top:22px;

  font-size:12px;

  color:#7183a5;
}


/* POPUP AGENDA */

.agenda-popup-overlay{
  position:fixed;

  inset:0;

  z-index:99999;

  display:none;

  align-items:center;
  justify-content:center;

  padding:20px;

  background:
    rgba(2,8,18,.84);

  backdrop-filter:
    blur(8px);
}

.agenda-popup-overlay.open{
  display:flex;
}

.agenda-popup{
  position:relative;

  width:min(94vw,720px);

  max-height:86vh;

  overflow:auto;

  padding:24px;

  border-radius:20px;

  border:
    1px solid
    rgba(70,213,255,.24);

  background:
    linear-gradient(
      160deg,
      #10213e,
      #07111f
    );

  box-shadow:
    0 30px 80px
    rgba(0,0,0,.55);

  color:#fff;
}

.agenda-popup-close{
  position:absolute;

  top:12px;
  right:14px;

  width:38px;
  height:38px;

  border:0;
  border-radius:50%;

  font-size:26px;

  color:#fff;

  background:
    rgba(255,255,255,.08);

  cursor:pointer;
}

.agenda-popup-list{
  display:grid;

  gap:14px;

  margin-top:18px;
}

.agenda-popup-item{
  overflow:hidden;

  border-radius:14px;

  border:
    1px solid
    rgba(143,124,255,.20);

  background:
    rgba(8,19,38,.72);
}

.agenda-popup-img{
  display:block;

  width:100%;
  max-height:260px;

  object-fit:cover;
}

.agenda-popup-content{
  padding:15px;
}

.agenda-popup-time{
  margin-top:6px;

  font-size:13px;

  color:#8fdcf1;
}



/* ============================================
   FLYER AGENDA - INTEGRATION PRO V2
   ============================================ */

.tiktok-agenda .agenda-flyer{
  position:relative;

  width:min(82%, 430px);

  margin:
    20px auto 4px;

  padding:6px;

  border-radius:18px;

  background:
    linear-gradient(
      135deg,
      rgba(70,213,255,.20),
      rgba(143,124,255,.22)
    );

  box-shadow:
    0 14px 32px rgba(0,0,0,.30),
    0 0 28px rgba(70,213,255,.07);

  overflow:hidden;
}


.tiktok-agenda .agenda-flyer::before{
  content:"";

  position:absolute;

  inset:0;

  border-radius:18px;

  border:
    1px solid
    rgba(126,224,255,.20);

  pointer-events:none;
}


.tiktok-agenda .agenda-flyer img{
  display:block;

  width:100%;
  height:auto;

  max-height:270px;

  object-fit:contain;

  border-radius:13px;

  background:#07111f;
}


/* Plus compact sur smartphone */

@media (max-width:600px){

  .tiktok-agenda .agenda-flyer{
    width:88%;

    margin-top:18px;

    padding:5px;

    border-radius:15px;
  }

  .tiktok-agenda .agenda-flyer img{
    max-height:235px;

    border-radius:11px;
  }

}


/* Très petits écrans */

@media (max-width:390px){

  .tiktok-agenda .agenda-flyer{
    width:92%;
  }

  .tiktok-agenda .agenda-flyer img{
    max-height:210px;
  }

}



/* ============================================
   FLYER AGENDA - CADRE JOLI / NEON V3
   ============================================ */

.tiktok-agenda .agenda-flyer{
  position: relative;
  width: min(78%, 360px);
  margin: 24px auto 8px;
  padding: 12px;
  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(12,30,58,.95),
      rgba(20,28,68,.96)
    );

  border: 1px solid rgba(110,220,255,.22);

  box-shadow:
    0 20px 45px rgba(0,0,0,.38),
    0 0 0 2px rgba(143,124,255,.10),
    0 0 30px rgba(70,213,255,.10);

  overflow: hidden;
}


/* halo externe */
.tiktok-agenda .agenda-flyer::before{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;

  background:
    linear-gradient(
      135deg,
      rgba(70,213,255,.95),
      rgba(143,124,255,.95),
      rgba(255,126,220,.85)
    );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  opacity: .95;
  pointer-events: none;
}


/* fond décoratif interne */
.tiktok-agenda .agenda-flyer::after{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;

  background:
    radial-gradient(
      circle at top left,
      rgba(70,213,255,.10),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(143,124,255,.12),
      transparent 38%
    ),
    rgba(3,10,22,.72);

  pointer-events: none;
}


.tiktok-agenda .agenda-flyer img{
  position: relative;
  z-index: 2;

  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 315px;
  margin: 0 auto;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);

  background: #050b16;

  box-shadow:
    0 10px 24px rgba(0,0,0,.34),
    0 0 18px rgba(143,124,255,.08);
}


/* version mobile */
@media (max-width: 600px){

  .tiktok-agenda .agenda-flyer{
    width: min(86%, 320px);
    padding: 10px;
    border-radius: 20px;
  }

  .tiktok-agenda .agenda-flyer::before{
    border-radius: 22px;
  }

  .tiktok-agenda .agenda-flyer::after{
    inset: 8px;
    border-radius: 15px;
  }

  .tiktok-agenda .agenda-flyer img{
    max-height: 270px;
    border-radius: 12px;
  }

}



/* =================================================
   MAGICAL RADIO - CADRE PRESENTATEUR + FLYER LIVE
   ================================================= */

.tiktok-agenda .agenda-flyer{
  display:block !important;

  position:relative !important;

  width:min(100%, 560px) !important;

  aspect-ratio:561 / 701;

  margin:
    24px auto 8px !important;

  padding:0 !important;

  max-width:560px;

  border:0 !important;

  border-radius:22px !important;

  overflow:hidden !important;

  background-image:
    url('/assets/magical-presenter-frame.png') !important;

  background-repeat:
    no-repeat !important;

  background-position:
    center !important;

  background-size:
    100% 100% !important;

  box-shadow:
    0 24px 55px rgba(0,0,0,.45),
    0 0 28px rgba(70,213,255,.18),
    0 0 42px rgba(143,124,255,.10) !important;
}


/* On neutralise les anciens cadres */

.tiktok-agenda .agenda-flyer::before,
.tiktok-agenda .agenda-flyer::after{
  display:none !important;
}


/*
   LE VRAI FLYER GOOGLE AGENDA
   est automatiquement injecté ici.

   Il se place dans le grand écran
   présenté par l'animateur.
*/

.tiktok-agenda .agenda-flyer img{
  position:absolute !important;

  z-index:3 !important;

  left:10.5% !important;
  top:26.5% !important;

  width:49% !important;
  height:49% !important;

  max-width:none !important;
  max-height:none !important;

  object-fit:contain !important;

  margin:0 !important;
  padding:0 !important;

  border-radius:10px !important;

  border:
    1px solid
    rgba(120,225,255,.20) !important;

  background:
    rgba(3,10,24,.90) !important;

  box-shadow:
    0 12px 28px rgba(0,0,0,.40),
    0 0 18px rgba(70,213,255,.13) !important;
}


/* Petit halo vivant autour du cadre */

@keyframes magicalFrameGlow{

  0%,100%{
    filter:
      drop-shadow(
        0 0 5px
        rgba(70,213,255,.10)
      );
  }

  50%{
    filter:
      drop-shadow(
        0 0 12px
        rgba(143,124,255,.22)
      );
  }

}


.tiktok-agenda .agenda-flyer{
  animation:
    magicalFrameGlow
    4s ease-in-out
    infinite;
}


/* MOBILE */

@media (max-width:600px){

  .tiktok-agenda .agenda-flyer{
    width:100% !important;

    margin-top:
      20px !important;

    border-radius:
      18px !important;
  }


  .tiktok-agenda .agenda-flyer img{

    left:10.5% !important;
    top:26.5% !important;

    width:49% !important;
    height:49% !important;

    border-radius:
      8px !important;
  }

}


