/* ========================================
   RESET & BASE STYLES
======================================== */

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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --success: #48bb78;
    --error: #f56565;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.navbar {
    position: relative;
    z-index: 10;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 80px 0;
    text-align: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   APP SECTION
======================================== */

.app-section {
    margin-top: -80px;
    padding: 0 0 80px;
    position: relative;
    z-index: 20;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.form-card,
.preview-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.form-card h2,
.preview-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.form-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

/* ========================================
   FORM STYLES
======================================== */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}

/* URL Error Messages */
.url-error {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    background-color: #fed7d7;
    border-left: 3px solid var(--error);
    border-radius: 4px;
    color: #c53030;
    font-size: 13px;
    font-weight: 500;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker-wrapper input[type="color"] {
    width: 60px;
    height: 42px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
}

.color-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-gray);
}


/* Style pour la checkbox qui ajoute une bordure ou non */
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 12px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-group-checkbox label {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}




/* ========================================
   BUTTONS
======================================== */

.btn-primary {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 32px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-copy {
    width: 100%;
    padding: 14px 28px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.btn-copy:hover {
    background: #38a169;
    transform: translateY(-1px);
}



/* partager ma signature */

.btn-share {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0;
}
.btn-share:hover {
  background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
}
#shareUrl {
  font-size: 14px;
  padding: 6px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  color: #4a5568;
  background: #f9f9f9;
}




/* ========================================
   PREVIEW SECTION
======================================== */

.preview-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-preview {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
}

.signature-preview:empty::before {
    content: "Votre signature apparaîtra ici";
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   OUTPUT SECTION
======================================== */

.output-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.success-message {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.code-container {
    background: #1a202c;
    border-radius: 8px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 24px;
}

.code-container pre {
    margin: 0;
}

.code-container code {
    color: #68d391;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ========================================
   TUTORIAL SECTION
======================================== */

.tutorial {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}

.tutorial h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tutorial h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.tutorial-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-gray);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tutorial-content {
    display: none;
}

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

.tutorial-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.tutorial-content li {
    margin-bottom: 12px;
    color: var(--text-gray);
    line-height: 1.7;
}

.tutorial-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ========================================
   FEATURES SECTION
======================================== */

.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature {
    text-align: center;
    padding: 24px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 14px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 0.8;
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}



/* ========================================
   TESTIMONIALS SECTION
======================================== */

.testimonials-section {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Decorative elements (subtle background) */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.testimonials-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.testimonials-header p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.12);
    transform: translateY(-4px);
}

/* Stars */
.testimonial-stars {
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Author Section */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.author-title {
    font-size: 13px;
    color: var(--text-light);
    margin: 4px 0 0 0;
}

/* ========================================
   RESPONSIVE TESTIMONIALS
======================================== */

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonials-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonials-header {
        margin-bottom: 40px;
    }

    .testimonials-header h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .testimonials-header p {
        font-size: 16px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .author-avatar {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .testimonials-section {
        padding: 48px 0;
    }

    .testimonials-header h2 {
        font-size: 24px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .author-name {
        font-size: 13px;
    }

    .author-title {
        font-size: 12px;
    }
}

/* Animation on scroll (optionnel) */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: cardAppear 0.6s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.1s; }
.testimonial-card:nth-child(5) { animation-delay: 0.2s; }
.testimonial-card:nth-child(6) { animation-delay: 0.3s; }




/* ========================================
   SEO ARTICLE SECTION
======================================== */

.seo-article {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    margin-bottom: 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    line-height: 1.8;
}

.article-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 32px;
    margin-bottom: 16px;
    letter-spacing: -0.005em;
}

.article-content h3:first-of-type {
    margin-top: 24px;
}

.article-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 18px;
    line-height: 1.8;
}

.article-content strong {
    color: var(--text-dark);
    font-weight: 700;
}

.article-content p:last-child {
    margin-bottom: 0;
}

/* Article Highlight Box */
.article-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.article-highlight p {
    margin-bottom: 0;
    font-size: 16px;
    color: var(--text-dark);
}

.article-highlight strong {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive Article Section */
@media (max-width: 768px) {
    .seo-article {
        padding: 60px 0;
    }

    .article-content {
        padding: 32px 24px;
        margin: 0 auto;
    }

    .article-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .article-content h3 {
        font-size: 20px;
        margin-top: 28px;
        margin-bottom: 14px;
    }

    .article-content p {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .article-highlight {
        padding: 20px;
        margin: 28px 0;
    }
}

@media (max-width: 640px) {
    .seo-article {
        padding: 48px 0;
    }

    .article-content {
        padding: 24px 16px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 18px;
        margin-top: 24px;
    }

    .article-content p {
        font-size: 14px;
    }
}

/* Rich Snippets & Schema.org optimization */
article {
    display: block;
}

article h2,
article h3 {
    margin-block-start: 1em;
    margin-block-end: 0.5em;
}


/* ========================================
   PERSONAL MESSAGE SECTION
======================================== */

.personal-message {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.personal-message::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.personal-message::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.message-card {
    background: white;
    border-radius: var(--radius);
    padding: 48px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.author-details h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    letter-spacing: -0.005em;
}

.author-role {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* Message Content */
.message-content {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

.message-content p {
    margin-bottom: 18px;
}

.message-content p:first-of-type {
    font-size: 24px;
    margin-bottom: 24px;
}

.message-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.message-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.message-signature {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
    font-style: italic;
    color: var(--text-dark);
}

.message-signature strong {
    font-weight: 800;
    font-size: 18px;
    display: block;
    margin-top: 8px;
    font-style: normal;
}

/* ========================================
   RESPONSIVE PERSONAL MESSAGE
======================================== */

@media (max-width: 768px) {
    .personal-message {
        padding: 60px 0;
    }

    .message-card {
        padding: 32px;
    }

    .message-header {
        gap: 16px;
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .author-avatar-large {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .author-details h3 {
        font-size: 20px;
    }

    .author-role {
        font-size: 13px;
    }

    .message-content {
        font-size: 15px;
    }

    .message-content p:first-of-type {
        font-size: 20px;
        margin-bottom: 18px;
    }
}

@media (max-width: 640px) {
    .personal-message {
        padding: 48px 0;
    }

    .message-card {
        padding: 24px;
    }

    .message-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .author-avatar-large {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .author-details h3 {
        font-size: 18px;
    }

    .message-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .message-content p {
        margin-bottom: 16px;
    }

    .message-content p:first-of-type {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .message-signature {
        margin-top: 24px;
        padding-top: 16px;
    }
}

/* Animation */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-card {
    animation: messageSlideIn 0.6s ease-out;
}




/* ========================================
   NEW STYLES FOR GMAIL COMPATIBILITY
======================================== */

.signature-info-section,
.signature-contact-section,
.signature-social-section {
    width: 100%;
}

.signature-name,
.signature-title,
.signature-company,
.signature-email,
.signature-phone,
.signature-website,
.signature-address {
    padding: 8px;
    margin: 0;
    font-size: 14px;
}

.copy-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.copy-buttons .btn-copy {
    flex: 1;
}

.copy-success-message {
    background: #c6f6d5;
    border-left: 4px solid #68d391;
    color: #2f855a;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

/* Amélioration de la visibilité des erreurs */
.url-error {
    display: none;
    margin-top: 8px;
    padding: 10px;
    background-color: #fed7d7;
    border-left: 3px solid #f56565;
    border-radius: 4px;
    color: #c53030;
    font-size: 13px;
    font-weight: 500;
    animation: slideIn 0.2s ease-out;
}

/* Changement de la largeur maximale pour une meilleure visualisation */
.preview-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px dashed #ddd;
    border-radius: 6px;
}

.signature-preview {
    background: white;
    padding: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}




/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 968px) {
    .hero-text h1 {
        font-size: 40px;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-card,
    .preview-card {
        padding: 24px;
    }

    .tutorial-tabs {
        flex-direction: column;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

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

.form-card,
.preview-card {
    animation: fadeIn 0.6s ease-out;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.code-container::-webkit-scrollbar {
    width: 8px;
}

.code-container::-webkit-scrollbar-track {
    background: #2d3748;
    border-radius: 4px;
}

.code-container::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.code-container::-webkit-scrollbar-thumb:hover {
    background: #718096;
}
