/* ------------------------------------------------------------
   MINI VIGNETTES ACTIONS — ULTRA PREMIUM++ (Glass + 3D + Animations)
------------------------------------------------------------ */

/* GRID */
.premium-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin-top: 28px;
    opacity: 0;
    animation: fadeInGrid 0.8s ease forwards;
}

@keyframes fadeInGrid {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* CARTE ULTRA PREMIUM */
.mini-action-card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.6),
        0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.45s cubic-bezier(.22, 1.4, .36, 1),
                box-shadow 0.35s ease,
                background 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInCard 0.6s ease forwards;
    min-height: 72px;
    text-decoration: none;
    color: inherit;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ANIMATION DÉCALÉE */
.premium-actions-grid .mini-action-card:nth-child(1) { animation-delay: 0.05s; }
.premium-actions-grid .mini-action-card:nth-child(2) { animation-delay: 0.12s; }
.premium-actions-grid .mini-action-card:nth-child(3) { animation-delay: 0.18s; }
.premium-actions-grid .mini-action-card:nth-child(4) { animation-delay: 0.24s; }
.premium-actions-grid .mini-action-card:nth-child(5) { animation-delay: 0.30s; }

/* HALO ANIMÉ */
@keyframes rotateHalo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mini-action-card::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 60%);
    opacity: 0.35;
    z-index: 0;
    animation: rotateHalo 18s linear infinite;
}

/* REFLET GLOSSY */
.mini-action-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    border-radius: 18px;
    pointer-events: none;
    z-index: 1;
}

/* ------------------------------------------------------------
   EFFET iOS-LIKE (SANS DISPARITION)
------------------------------------------------------------ */

/* HOVER — léger lift */
.mini-action-card:hover {
    transform: translateY(-3px) scale(1.015);
    background: rgba(255, 255, 255, 0.34);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.7),
        0 12px 26px rgba(0,0,0,0.18);
}

/* ACTIVE — stable + coloration premium */
.mini-action-card:active {
    transform: scale(0.97);
    background: rgba(80, 140, 255, 0.35);
    border-color: rgba(80, 140, 255, 0.55);
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.15),
        0 8px 18px rgba(0,0,0,0.12);
}

/* ICÔNE */
.mini-action-icon {
    font-size: 22px;
    z-index: 2;
}

/* TEXTE */
.mini-action-text {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    z-index: 2;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
}

/* CONFETTIS */
.confetti {
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--confetti-color, #ffcc00);
    border-radius: 50%;
    pointer-events: none;
    z-index: 50;
    animation: confetti-fall 600ms ease-out forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(18px) scale(0.4); opacity: 0; }
}

/* ÉTOILES */
.star-sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffffff 0%, #ffd700 60%, transparent 100%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 60;
    animation: sparkle 700ms ease-out forwards;
}

@keyframes sparkle {
    0%   { transform: scale(0.4) rotate(0deg); opacity: 1; }
    50%  { transform: scale(1.2) rotate(45deg); opacity: 1; }
    100% { transform: scale(0.2) rotate(90deg); opacity: 0; }
}

/* RIPPLE */
.mini-action-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    pointer-events: none;
    z-index: 20;
    animation: ripple-effect 450ms ease-out forwards;
}

@keyframes ripple-effect {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .mini-action-card { padding: 12px 14px; }
    .mini-action-icon { font-size: 20px; }
    .mini-action-text { font-size: 14px; }
}
/* Masquer le logo WordPress.com */
.wp-block-powered-by-wordpress,
.wp-block-jetpack-powered-by-wordpress,
.site-info {
    display: none !important;
}

#emotion-closing {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: none;
  z-index: 9999;
}

.emotion-closing-content {
  height: 100%;
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.emotion-icon {
  font-size: 36px;
  margin-bottom: 24px;
  color: #6a7d6d;
}

.emotion-closing-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.emotion-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-home {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  color: inherit;
}

.btn-close {
  background: none;
  border: none;
  font-size: 14px;
  color: #777;
}

.password-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 280px;
}

.password-wrapper input {
  width: 100%;
  padding-right: 48px; /* place pour l’œil */
  box-sizing: border-box;
}

.password-wrapper .toggle-password {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;

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

  background: none;
  border: none;
  cursor: pointer;

  z-index: 10;              /* ✅ AU-DESSUS de l’input */
  pointer-events: auto;     /* ✅ capte toujours le clic */
}

/* empêche l’input de voler le clic sous la zone du bouton */
.password-wrapper input {
  pointer-events: auto;
}

/* 🌿 Encart global – plus doux */
.emotion-climate {
  background: linear-gradient(180deg, #fbfafc, #f5f7fb);
  border-radius: 22px;
  padding: 28px 24px;
  margin: 40px auto;
  max-width: 720px;

  text-align: center; /* ✅ centrage */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Titre */
.emotion-climate h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #1f1f1f;
}

/* Phrase principale */
#emotionText {
  font-size: 16px;
  line-height: 1.55;
  color: #3f3f3f;
  margin: 0 0 18px 0;
}

/* 🌱 Boutons Sem / Mois / Année – plus petits & doux */
.emotion-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.emotion-switch button {
  padding: 4px 10px;            /* ✅ plus petit */
  font-size: 12px;              /* ✅ plus discret */
  border-radius: 999px;
  border: none;

  background: #ebeef4;
  color: #555;
  cursor: pointer;

  transition: background 0.25s ease, color 0.25s ease,
              transform 0.15s ease;
}

.emotion-switch button:hover {
  background: #dde3f0;
}

.emotion-switch button.active {
  background: #d6e2f5;
  color: #2b2b2b;
  font-weight: 500;
  transform: scale(1.05);
}

/* Texte RGPD très discret */
.emotion-note {
  font-size: 11px;
  color: #9a9a9a;
  margin-top: 6px;
  line-height: 1.3;
}

/* Titre – un peu plus contrasté */
.emotion-climate h3 {
  color: #141414;
}

/* Texte principal – lisibilité améliorée */
#emotionText {
  font-size: 16px;
  line-height: 1.6;
  color: #2f2f2f; /* ✅ plus foncé mais toujours doux */
}

/* Boutons – texte légèrement plus lisible */
.emotion-switch button {
  color: #444;
}

/* Bouton actif – contraste renforcé */
.emotion-switch button.active {
  color: #1f1f1f;
}

/* Mention RGPD – reste discrète */
.emotion-note {
  color: #8a8a8a;
}


/* Réduction de la vignette admin */
.admin-stats-box {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.25;
    max-width: 260px; /* réduit la largeur visuelle */
}

/* Titre plus compact */
.admin-stats-box h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

/* Texte serré */
#adminStatsContent {
    margin: 0;
}

/* Puces plus fines */
.admin-stats-box strong {
    font-weight: 600;
}

/* Effet pulse discret lors du changement de piste */
#music-btn.track-change {
    box-shadow: 0 0 12px 4px rgba(79,195,247,0.45) !important;
    transition: box-shadow 0.6s ease-out;
}
#wpadminbar {
    display: none !important;
}
html {
    margin-top: 0 !important;
}
/* Conteneur principal */
/* === Dashboard rituels === */
.dash-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.dash-left h3 {
  margin-bottom: 12px;
}

.dash-right {
  background: #f6f8fc;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dash-rank {
  font-weight: 600;
  margin-bottom: 12px;
}

.dash-message {
  background: #eef3ff;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
}

/* Mobile */
@media (max-width: 768px) {
  .dash-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Colonne gauche : stats */
.dash-left h3 {
  margin-bottom: 12px;
}

/* Colonne droite : classement + message */
.dash-right {
  background: #f6f8fc;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Classement */
.dash-rank {
  font-weight: 600;
  margin-bottom: 12px;
}

/* Message émotionnel */
.dash-message {
  background: #eef3ff;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .dash-wrapper {
    grid-template-columns: 1fr;
  }
}
/* === Dashboard Admin === */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  font-size: 13px;
}

.admin-col {
  background: #f6f8fc;
  padding: 16px;
  border-radius: 14px;
}

.admin-col h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.admin-col p,
.admin-col li {
  font-size: 13px;
}

@media (max-width: 768px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
/* FORCE les messages à être cachés par défaut */
.tooltip {
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    display: block !important;
}

/* ============================
   WRAPPER GLOBAL
   ============================ */
.wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* ============================
   ICÔNE ℹ️ — EN HAUT À GAUCHE
   ============================ */
/* Icône info sans fond, plus grande, en haut à gauche */
.info-icon {
    position: absolute;
    top: -12px;
    left: -12px; /* au lieu de right */

    width: 32px;
    height: 32px;

    background: transparent !important; /* plus de fond noir */
    color: #1e88e5; /* bleu fun, premium */

    font-family: Arial, sans-serif !important;
    font-size: 26px; /* i plus gros */
    font-weight: 900;

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

    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;

    cursor: pointer;
    z-index: 30;
}



/* ============================
   CHECKBOX INVISIBLE
   ============================ */
.toggle-info {
    display: none;
}

/* ============================
   TOOLTIP AU-DESSUS DU BOUTON
   ============================ */
.tooltip {
    position: absolute;
    bottom: 100%; /* place la tooltip au-dessus du bouton */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0,0,0,0.88);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    z-index: 20;
}

/* Petite flèche sous la tooltip */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(0,0,0,0.88) transparent transparent transparent;
}

/* Ouverture au clic (version anti-Gutenberg) */
input#toggle-rituel:checked + label[for="toggle-rituel"] + .tooltip[data-tip="rituel"] {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}


/* ============================
   AFFICHAGE AU CLIC
   ============================ */
.toggle-info:checked ~ .tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ============================
   STYLE PREMIUM DES BOUTONS
   ============================ */
.bloc-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.bloc-actions .wp-block-button__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bloc-actions .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Flèche iPhone à droite */
.bloc-actions .wp-block-button__link::after {
    content: "›";
    font-size: 22px;
    opacity: 0.6;
    margin-left: 12px;
}

/* ============================
   VERSION MOBILE OPTIMISÉE
   ============================ */
@media (max-width: 480px) {

    .info-icon {
        top: -10px;
        left: -10px;
        width: 28px;
        height: 28px;
        font-size: 22px;
    }

    .tooltip {
        left: 36px;
        width: calc(100vw - 90px);
        font-size: 13px;
        padding: 12px 14px;
    }

    .tooltip::after {
        left: 18px;
    }

    .bloc-actions .wp-block-button__link {
        padding: 16px 18px;
        font-size: 16px;
    }
}

/* Centrer chaque wrapper contenant un bouton + tooltip */
.wrapper{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* centre horizontalement */
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

/* Centrer le bouton lui-même */
.wrapper .wp-block-button__link {
    width: 90% !important; /* pour éviter qu'il colle aux bords */
    margin: 12px 0 !important;
}
/* Le wrapper est centré, donc on repositionne l'icône par rapport au bouton */
.wrapper {
    position: relative !important; /* nécessaire pour que l'icône se base dessus */
}

/* Icône ℹ️ centrée avec le bouton */
.wrapper .info-icon {
    position: absolute !important;
    top: 5px;
    left: 50%; /* on part du centre */
    transform: translateX(-50%) translateX(-160px); 
    /* -50% = centre exact
       -100px = décalage vers la gauche pour se placer au-dessus du bouton */
}

/* Ajustement mobile (iPhone) */
@media (max-width: 768px) {
    .wrapper: .info-icon {
        transform: translateX(-50%) translateX(-150px); /* un peu moins large sur mobile */
    }
}
/* Centrer TOUS les tooltips */
.wrapper .tooltip {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    text-align: center !important;
    z-index: 9999 !important;
}

/* Couleur bouton accueil */
/* bouton Rituel */
a[href="https://alegriacoach-dev.fr/mon-etat-du-jour/"] {
    background-color:  #CC6A2F !important; /* choisis une couleur ci-dessus */
    color: #fff !important;
    border-radius: 12px;
    padding: 14px 22px;
}

a[href="https://alegriacoach-dev.fr/mon-etat-du-jour/"]:hover {
    background-color:#FF8C42  !important; /* version plus foncée */
}
/* bouton Suivi */
a[href="https://alegriacoach-dev.fr/mon-suivi-emotionnel/"] {
    background-color:  #CC6A2F !important; /* choisis une couleur ci-dessus */
    color: #fff !important;
    border-radius: 12px;
    padding: 14px 22px;
}

a[href="https://alegriacoach-dev.fr/mon-suivi-emotionnel/"]:hover {
    background-color:#FF8C42  !important; /* version plus foncée */
}
/* bouton Test */
a[href="https://alegriacoach-dev.fr/test-de-personnalite-2/"] {
   background-color: #4B3F72 !important; /* choisis une couleur ci-dessus */
    color: #fff !important;
    border-radius: 12px;
    padding: 14px 22px;
}

a[href="https://alegriacoach-dev.fr/test-de-personnalite-2/"]:hover {
    background-color: #2ECCB0 !important; /* version plus foncée */
}
/* bouton Histo */
a[href="https://alegriacoach-dev.fr/mes-tests/"] {
    background-color:  #4B3F72 !important; /* choisis une couleur ci-dessus */
    color: #fff !important;
    border-radius: 12px;
    padding: 14px 22px;
}

a[href="https://alegriacoach-dev.fr/mes-tests/"]:hover {
    background-color:#2ECCB0  !important; /* version plus foncée */
}


/* ------------------------------------------------------------
 Bouton PROFILS
------------------------------------------------------------ */

/* Conteneur */
.dropdown-profil {
  position: relative;
  width: 220px; /* 🔥 élargi */
  margin: 0 auto;
}

/* Checkbox invisible */
.dropdown-profil input[type="checkbox"] {
  display: none;
}

/* Bouton */
.dropdown-btn {
  display: block;
  width: 180px;
  background: linear-gradient(135deg, #6a5acd, #483d8b);
  color: #fff;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: 0.25s;
}

.dropdown-btn:hover {
  background: linear-gradient(135deg, #7b68ee, #4b0082);
  transform: translateY(-2px);
}

/* Menu */
.dropdown-content {
  display: none;
  position: absolute;
  width: 180px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin-top: 6px;
  overflow: hidden;
  z-index: 9999;
}

/* Ouverture quand checkbox cochée */
#toggle-profil:checked ~ .dropdown-content {
  display: block;
}

/* Liens */
.dropdown-content a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.dropdown-content a:hover {
  background: #f3f0ff;
}
