* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5; /* X background clair */
    color: #0f1419;      /* X text principal */
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Mode sombre (X dark) */
body.dark-mode {
    background: #000000;
    color: #e7e9ea;
}

body.dark-mode .sidebar {
    background: #000000;
    border-right-color: #2f3336;
}

body.dark-mode .logo {
    color: #71767b;
}

body.dark-mode .nav-item {
    color: #71767b;
}

body.dark-mode .nav-item:hover {
    background: #16181c;
    color: #1d9bf0;
}

body.dark-mode .nav-item.active {
    background: #1d9bf0;
    color: white;
}

body.dark-mode .control-panel {
    background: #000000;
    border-right-color: #2f3336;
}

body.dark-mode .panel-header {
    background: #000000;
    border-bottom-color: #2f3336;
}

body.dark-mode .tabs {
    background: #000000;
    border-bottom-color: #2f3336;
}

body.dark-mode .tab {
    color: #71767b;
}

body.dark-mode .tab:hover {
    color: #1d9bf0;
}

body.dark-mode .tab.active {
    color: #1d9bf0;
    border-bottom-color: #1d9bf0;
}

body.dark-mode .panel-content {
    background: #000000;
}

body.dark-mode section h3 {
    border-bottom-color: #2f3336;
}

body.dark-mode .form-group label {
    color: #71767b;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="url"],
body.dark-mode input[type="email"],
body.dark-mode textarea,
body.dark-mode select {
    background: #000000;
    border-color: #2f3336;
    color: #e7e9ea;
}

body.dark-mode .color-picker input[type="color"] {
    border-color: #2f3336;
}

body.dark-mode .list-container {
    background: #000000;
    border-color: #2f3336;
}

body.dark-mode .list-item {
    background: #000000;
    border-color: #2f3336;
}

body.dark-mode .list-item-url {
    color: #71767b;
}

body.dark-mode .btn-secondary {
    background: #2f3336;
    color: #e7e9ea;
    border-color: #3d4451;
}

body.dark-mode .btn-secondary:hover {
    background: #3d4451;
}

body.dark-mode .leads-table th {
    background: #000000;
    color: #71767b;
}

body.dark-mode .leads-table td {
    border-bottom-color: #2f3336;
}

body.dark-mode .preview-panel {
    background: #000000;
}

body.dark-mode .preview-header {
    background: #000000;
    border-bottom-color: #2f3336;
}

body.dark-mode .device-btn {
    border-color: #2f3336;
    color: #71767b;
}

body.dark-mode .device-btn.active {
    background: #1d9bf0;
    border-color: #1d9bf0;
    color: white;
}

body.dark-mode .notification {
    background: #1d9bf0;
    color: white;
}

/* Structure de base (inchangée) */
.app {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #ffffff;
    border-right: 1px solid #e7e7e8;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    transition: background 0.3s, border-color 0.3s;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    padding: 0 20px 24px;
    border-bottom: 1px solid #e7e7e8;
    margin-bottom: 24px;
    color: #1d9bf0;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #536471;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item i {
    width: 20px;
    font-size: 16px;
}

.nav-item:hover {
    background: #f5f5f5;
    color: #1d9bf0;
}

.nav-item.active {
    background: #eef2ff;
    color: #1d9bf0;
    border-right: 3px solid #1d9bf0;
}

/* Panneau de contrôle */
.control-panel {
    width: 400px;
    background: #ffffff;
    border-right: 1px solid #e7e7e8;
    display: flex;
    flex-direction: column;
    transition: background 0.3s, border-color 0.3s;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid #e7e7e8;
    transition: background 0.3s, border-color 0.3s;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.progress-bar {
    height: 4px;
    background: #e7e7e8;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1d9bf0;
    transition: width 0.3s;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e7e7e8;
    background: #f8fafc;
    overflow-x: auto;
    transition: background 0.3s, border-color 0.3s;
}

.tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #536471;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab:hover {
    color: #1d9bf0;
}

.tab.active {
    color: #1d9bf0;
    border-bottom: 2px solid #1d9bf0;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    transition: background 0.3s;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

section {
    margin-bottom: 32px;
}

section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7e7e8;
    transition: border-color 0.3s;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #536471;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.form-group.toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-group.toggle label {
    margin-bottom: 0;
}

input[type="text"],
input[type="url"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e7e7e8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border 0.2s, background 0.3s, color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1d9bf0;
}

.color-picker {
    display: flex;
    gap: 8px;
}

.color-picker input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 1px solid #e7e7e8;
    border-radius: 4px;
}

.color-picker input[type="text"] {
    flex: 1;
}

.list-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e7e7e8;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 16px;
    background: #f8fafc;
    transition: background 0.3s, border-color 0.3s;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e7e7e8;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: background 0.3s, border-color 0.3s;
}

.list-item-content {
    overflow: hidden;
}

.list-item-title {
    font-weight: 500;
    font-size: 13px;
}

.list-item-url {
    font-size: 11px;
    color: #536471;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.item-actions button {
    background: none;
    border: none;
    color: #71767b;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.item-actions button:hover {
    background: #f5f5f5;
    color: #1d9bf0;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #1d9bf0;
    color: white;
}

.btn-primary:hover {
    background: #1a8cd8;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-secondary {
    background: #e7e7e8;
    color: #0f1419;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-large {
    width: 100%;
    padding: 14px;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 16px 0;
}

.leads-table th {
    text-align: left;
    padding: 8px;
    background: #f8fafc;
    color: #536471;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.leads-table td {
    padding: 8px;
    border-bottom: 1px solid #e7e7e8;
    transition: border-color 0.3s;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.pagination button {
    background: none;
    border: 1px solid #e7e7e8;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

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

/* Panneau d'aperçu */
.preview-panel {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
}

.preview-header {
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e7e7e8;
    display: flex;
    justify-content: center; /* Centre le titre */
    align-items: center;
    position: relative;
    transition: background 0.3s, border-color 0.3s;
}

.preview-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.preview-controls {
    position: absolute;
    right: 24px;
    display: flex;
    gap: 10px;
}

.device-selector {
    display: flex;
    gap: 8px;
}

.device-btn {
    background: none;
    border: 1px solid #e7e7e8;
    border-radius: 4px;
    padding: 6px 12px;
    color: #536471;
    cursor: pointer;
    transition: all 0.2s, border-color 0.3s, color 0.3s;
}

.device-btn.active {
    background: #1d9bf0;
    border-color: #1d9bf0;
    color: white;
}

#livePreview {
    flex: 1;
    overflow: auto;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.preview-container {
    width: 100%;
    max-width: 800px;
    min-height: 600px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

/* Styles de l'aperçu (inchangés) */
/* ... toutes les animations restent identiques ... */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes bounceIn { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); opacity: 1; } 70% { transform: scale(0.9); } 100% { transform: scale(1); } }
@keyframes zoomIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes flipIn { from { transform: perspective(400px) rotate3d(1,0,0,90deg); opacity: 0; } to { transform: perspective(400px); opacity: 1; } }
@keyframes rotateIn { from { transform: rotate(-180deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
@keyframes lightSpeedIn { from { transform: translate3d(100%,0,0) skewX(-30deg); opacity: 0; } 60% { transform: skewX(20deg); opacity: 1; } 80% { transform: skewX(-5deg); } to { transform: translate3d(0,0,0); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 10%,30%,50%,70%,90% { transform: translateX(-5px); } 20%,40%,60%,80% { transform: translateX(5px); } }
@keyframes grow { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes glow { 0%,100% { box-shadow: 0 0 20px rgba(77,166,255,0.5); } 50% { box-shadow: 0 0 40px rgba(77,166,255,0.8); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.avatar-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
    border: 4px solid;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.avatar-container:hover img {
    transform: scale(1.1);
}
.funnel-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--accent-color, #1d9bf0), #6a5af9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.author-name {
    font-size: 1.2em;
    margin-bottom: 15px;
    opacity: 0.8;
    font-weight: 600;
}
.funnel-subtitle {
    font-size: 1.4em;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 600;
}
.secondary-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    opacity: 0.7;
}
.description-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 25px;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 1.1em;
}
.video-container {
    margin: 50px 0;
    position: relative;
}
.video-title {
    margin-bottom: 25px;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.video-wrapper {
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    position: relative;
    transition: transform 0.3s ease;
}
.video-wrapper:hover {
    transform: scale(1.02);
}
.video-wrapper iframe {
    border: none;
    display: block;
}
.video-size-small { max-width: 560px; }
.video-size-medium { max-width: 640px; }
.video-size-large { max-width: 853px; }
.video-size-responsive { width: 100%; }
.video-count {
    margin-top: 15px;
    font-size: 0.9em;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.email-capture-form {
    max-width: 500px;
    margin: 50px auto;
}
.email-input-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.email-input {
    flex: 1;
    min-width: 250px;
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #ddd;
    font-size: 16px;
    transition: all 0.3s;
}
.email-input:focus {
    outline: none;
    border-color: #1d9bf0;
    box-shadow: 0 0 0 3px rgba(29,155,240,0.2);
}
.email-submit-btn {
    background: linear-gradient(135deg, #1d9bf0 0%, #6a5af9 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.email-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29,155,240,0.4);
}
.email-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%,-50%);
    transition: width 0.6s, height 0.6s;
}
.email-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}
.funnel-button {
    background: linear-gradient(135deg, #1d9bf0 0%, #6a5af9 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    margin: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2em;
    display: block;
    width: 80%;
    max-width: 350px;
    margin: 20px auto;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.funnel-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(29,155,240,0.4);
}
.funnel-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%,-50%);
    transition: width 0.6s, height 0.6s;
}
.funnel-button:hover::before {
    width: 300px;
    height: 300px;
}
.btn-primary { background: linear-gradient(135deg, #1d9bf0 0%, #6a5af9 100%) !important; }
.btn-success { background: linear-gradient(135deg, #10b981 0%, #2ecc71 100%) !important; }
.btn-warning { background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%) !important; }
.btn-danger { background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%) !important; }
.btn-secondary { background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important; }
.social-links {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    position: relative;
}
.social-links::before {
    content: 'Suivez-nous';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 20px;
    font-weight: 600;
    color: #1d9bf0;
}
.social-links-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.social-link {
    color: #1d9bf0;
    font-size: 2.2em;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(29,155,240,0.1);
}
.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(29,155,240,0.2);
    color: #6a5af9;
}
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.platform-youtube { background: linear-gradient(135deg,#FF0000 0%,#cc0000 100%); color: white; }
.platform-tiktok { background: linear-gradient(135deg,#000000 0%,#333333 100%); color: white; }
.platform-instagram { background: linear-gradient(45deg,#405DE6,#5851DB,#833AB4,#C13584,#E1306C,#FD1D1D); color: white; }
.platform-vimeo { background: linear-gradient(135deg,#1AB7EA 0%,#0d9ec4 100%); color: white; }
.platform-dailymotion { background: linear-gradient(135deg,#0066DC 0%,#0052b3 100%); color: white; }
.testimonials-section { max-width: 800px; margin: 50px auto; }
.testimonials-title { font-size: 1.8em; margin-bottom: 30px; color: #1d9bf0; font-weight: 700; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.testimonial-card {
    background: rgba(29,155,240,0.1);
    padding: 25px;
    border-radius: 16px;
    text-align: left;
    border: 1px solid rgba(29,155,240,0.2);
    transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.testimonial-text { font-style: italic; margin-bottom: 15px; line-height: 1.6; }
.testimonial-author { font-weight: 700; color: #1d9bf0; }
.social-proof-section { max-width: 600px; margin: 40px auto; }
.social-proof-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.social-proof-item { text-align: center; }
.social-proof-value {
    font-size: 2.5em;
    font-weight: 900;
    background: linear-gradient(45deg, #1d9bf0, #6a5af9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}
.social-proof-label { font-size: 0.9em; opacity: 0.7; font-weight: 600; }
.funnel-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9em;
    opacity: 0.6;
}
.hover-lift:hover { transform: translateY(-5px) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important; }
.hover-scale:hover { transform: scale(1.05) !important; }
.hover-shadow:hover { box-shadow: 0 10px 30px currentColor !important; }
.hover-color:hover { background: linear-gradient(135deg, #6a5af9 0%, #1d9bf0 100%) !important; }

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}
.notification.show {
    opacity: 1;
    transform: translateY(0);
}