/* MOBILE-FIRST styles */
html, body {height: 100%;}
:root{
  --bg:#fefefe; --muted:#aea8bf; --accent:#735c83; --accent-2:#a5d8d8; --paper:#efe3d5; --cta:#f29c5c; --light:#d9d5df;
}
*{box-sizing:border-box}
body{margin:0;font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; background:var(--light); color:#222; }
header{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.site-title{font-size:28px; color:var(--accent);}
section {min-height:calc(100% - 180px);}
.container{margin:16px;max-width:550px;margin:0 auto;background:#fff;padding:16px;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,0.06);position:relative}
.form-row{margin-bottom:12px}
label{display:block;font-size:13px;margin-bottom:6px;color:var(--accent)}
input[type="text"], input[type="email"], input[type="tel"], textarea, select, input[type="date"]{width:100%;padding:10px;border-radius:8px;border:1px solid #ddd;font-size:15px}
textarea{min-height:100px}
.btn{
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent) 0%, var(--muted) 100%);
    display:inline-block;color:#fff;padding:12px 23px;border-radius:50px;border:none;font-weight:700;font-size:16px;cursor:pointer}
a.btn{text-decoration: none;}
.btn.ghost{padding:7px 18px; background:var(--accent-2);color:var(--accent);font-size: 0.8em;}
  .btn.ghost_suppr{padding: 5px 9px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8em;
  position: absolute;
  top: -7px;
  right: -9px;}
  .btn:hover {
    transform: translateY(0px);
            box-shadow: none;
        }
.small{font-size:13px}
.inline{display:flex;gap:8px;align-items:center}
.check-ok{display:inline-block;width:18px;height:18px;border-radius:4px;border:2px solid #ddd;text-align:center;line-height:18px}
.check-ok.ok{background:#fff;color:#fff;border-color:#3cc;}
.options-grid{display:grid;grid-template-columns:1fr;gap:8px}
.option-pill{padding: 8px 18px 8px 8px;border-radius:10px;border:1px dashed #ddd;position: relative;}
.settings{padding:10px;border-radius:8px}

/* table for voting */
.vote-table{width:100%;border-collapse:collapse;margin-top:12px;}
.vote-table th, .vote-table td{padding:10px;border-bottom:1px solid #eee;text-align:left;font-size: 0.9em;}
/* .vote-count{font-weight:700} */

.emoji-picker span {
  cursor: pointer;
/*   font-size: 1.5em; */
  margin: 0 5px;
  transition: transform 0.2s;
}
.emoji-picker span.selected_emo {
  transform: scale(1.3);
  border-bottom: 2px solid #333;
}


.result-bar-wrapper {
  position: relative;
}

/* Tooltip stylé */
.result-bar-wrapper[data-hover]:hover::after {
 content: attr(data-hover);
  position: absolute;
  top: 20px;
  right: 0;
  transform: translateX(-50%);
  background: rgb(90, 157, 148);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: pre-line;
  font-size: 13px;
  min-width: 120px;
  max-width: 240px;
  text-align: left;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  pointer-events: none;
  animation: fadeIn 0.3s ease;
}

.result-bar {
  position: relative;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  height: 20px;
  margin: 4px auto;
  width: 100%;
  max-width: 180px;
  font-size: 12px;
  cursor: pointer;
}

/* Remplissage animé */
.result-bar .fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d9d5df, #c4afe2, #9079a0);
  transition: width 1s ease-in-out;
}

.result-bar .result-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  color: #333;
  line-height: 20px;
  white-space: nowrap;
}



@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s;
}


/* responsive */
@media(min-width:700px){
  .options-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:768px) {
  .user-table{font-size: 0.9em;}
.user-table .btn {padding: 12px 12px;
font-size:13px;}
}

 /* CSS à intégrer dans votre page */
        .link-copy-container {
            max-width: 500px;
            margin: 20px auto;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .link-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 4px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .link-input-wrapper:hover {
            border-color: #6c5ce7;
            box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
        }

        .link-input {
            flex: 1;
            padding: 16px 20px;
            border: none;
            background: transparent;
            font-size: 14px;
            color: #2d3436;
            outline: none;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
        }

        .link-input:focus {
            background: white;
        }

        .copy-button {
                        transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
            padding: 12px 20px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--muted) 100%);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .copy-button:hover {
            transform: translateY(0px);
            box-shadow: none;
        }

        .copy-button:active {
            transform: translateY(0);
        }

        .copy-button.copied {
            background: linear-gradient(135deg, #66afa1ff 0%, #a5d8d8 100%);
        }

        .copy-icon {
            width: 16px;
            height: 16px;
            transition: transform 0.3s ease;
        }

        .copy-button.copied .copy-icon {
            transform: scale(1.2);
        }

        /* Animation de confirmation */
        @keyframes ripple {
            0% {
                transform: scale(0);
                opacity: 1;
            }
            100% {
                transform: scale(4);
                opacity: 0;
            }
        }

        .copy-button::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255,255,255,0.5);
            border-radius: 50%;
            transform: translate(-50%, -50%) scale(0);
        }

        .copy-button.copying::after {
            animation: ripple 0.6s ease-out;
        }

        /* Toast de notification */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, #66afa1ff 0%, #a5d8d8 100%);
            color: white;
            padding: 16px 24px;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 184, 148, 0.3);
            transform: translateX(400px);
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
        }

        .toast.show {
            transform: translateX(0);
        }

        .toast-icon {
            width: 20px;
            height: 20px;
        }


/* Footer */
footer {background:#735c83; color:white; text-align:center; padding: 50px 20px 1px 20px;font-size:0.8em;}
footer a {color:#fff; text-decoration: none;}