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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    flex-direction: column;
    align-items: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="1" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.02"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.container {
    transform: scale(0.95); /* ou 0.9 pour un effet plus net */
    transform-origin: top center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-radius: 28px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    padding: 48px;
    max-width: 820px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.logo {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, 
        rgba(120, 119, 198, 1) 0%, 
        rgba(255, 119, 198, 0.8) 30%,
        rgba(120, 200, 255, 0.9) 70%,
        rgba(120, 119, 198, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -3px;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(120, 119, 198, 0.3));
}

.tagline {
    font-size: 1.3rem;
    color: rgba(0, 0, 0, 0.75);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.7;
    font-weight: 400;
}

.form-section {
    margin-bottom: 36px;
}

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

label {
    display: block;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 16px;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

.input-wrapper {
    position: relative;
}

textarea {
    width: 100%;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 1.05rem;
    font-family: inherit;
    resize: vertical;
    min-height: 140px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(0, 0, 0, 0.85);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

textarea:focus {
    outline: none;
    border-color: rgba(120, 119, 198, 0.6);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 
        0 0 0 3px rgba(120, 119, 198, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 8px 25px rgba(120, 119, 198, 0.12);
    transform: translateY(-1px);
}

.char-counter {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.65);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.examples {
    margin-top: 20px;
}

.examples-label {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.85); /* contraste augmenté */
    margin-bottom: 12px;
    font-weight: 600; /* légèrement plus marqué */
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.example-tag {
    background: rgba(255, 255, 255, 0.35); /* plus clair */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: rgba(60, 60, 160, 1); /* texte plus foncé */
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(120, 119, 198, 0.4); /* bord plus visible */
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.example-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.example-tag:hover {
    background: rgba(255, 255, 255, 0.5); /* + lumineux */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(120, 119, 198, 0.25);
    border-color: rgba(120, 119, 198, 0.6);
}

.example-tag:hover::before {
    left: 100%;
}

.type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.type-option {
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.type-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(120, 119, 198, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.type-option:hover::before {
    opacity: 1;
}

.type-option:hover {
    border-color: rgba(120, 119, 198, 0.4);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(120, 119, 198, 0.1);
}

.type-option.selected {
    border-color: rgba(120, 119, 198, 0.6);
    background: rgba(120, 119, 198, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: rgba(120, 119, 198, 1);
    box-shadow: 
        0 8px 25px rgba(120, 119, 198, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.type-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(120, 119, 198, 0.3));
}

.type-title {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
}

.type-desc {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.4;
}

.generate-button {
    width: 100%;
    padding: 22px 40px;
    background: linear-gradient(135deg, 
        rgba(120, 119, 198, 0.9) 0%, 
        rgba(255, 119, 198, 0.8) 50%,
        rgba(120, 200, 255, 0.9) 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 12px 35px rgba(120, 119, 198, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: -0.3px;
}

.generate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.generate-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 50px rgba(120, 119, 198, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.generate-button:hover:not(:disabled)::before {
    left: 100%;
}

.generate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-text {
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: rgba(255, 255, 255, 0.9);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading .button-text {
    opacity: 0;
}

.loading .loading-spinner {
    display: block;
}

.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.7;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: rgba(120, 119, 198, 0.9);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Animations fluides pour l'apparition */
@keyframes liquidAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        backdrop-filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        backdrop-filter: blur(40px);
    }
}

.container {
    animation: liquidAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Effet de cursor light */
.container {
    position: relative;
}

.container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.03) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Dark mode styles */
body.dark-mode {
    background: #1a1a1a;
    color: #f5f5f5;
}

body.dark-mode .container {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.6),
        0 16px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

body.dark-mode .tagline,
body.dark-mode .subtitle,
body.dark-mode label,
body.dark-mode .examples-label,
body.dark-mode .char-counter {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode textarea {
    background: rgba(40, 40, 40, 0.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .example-tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(180, 180, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .example-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(180, 180, 255, 0.3);
}

body.dark-mode .generate-button {
    background: linear-gradient(135deg, 
        rgba(160, 140, 255, 0.9) 0%, 
        rgba(255, 119, 198, 0.9) 50%,
        rgba(120, 200, 255, 0.9) 100%);
}

body.dark-mode .footer {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .tech-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(180, 180, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark-toggle {
    margin-top: 20px;
    padding: 10px 20px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    background: rgba(120, 119, 198, 0.15);
    color: rgba(60, 60, 60, 0.9);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dark-toggle:hover {
    background: rgba(120, 119, 198, 0.3);
    color: rgba(30, 30, 30, 1);
    box-shadow: 0 4px 15px rgba(120, 119, 198, 0.2);
}

body.dark-mode .dark-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .dark-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

body.dark-mode .type-title {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .type-desc {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .char-counter {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 32px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.9), rgba(255, 119, 198, 0.8), rgba(120, 200, 255, 0.9));
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
    box-shadow: 0 8px 20px rgba(120, 119, 198, 0.3);
}

.modal-button:hover {
    transform: scale(1.05);
}

.modal-close {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.25);
    color: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .modal-close {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

#pdfLink.generate-button {
    display: inline-block;
    width: auto;
    padding: 18px 32px;
    font-size: 1.05rem;
}

body.dark-mode .modal-content {
    background: rgba(40, 40, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.site-footer {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 40px;
    padding: 16px 0;
    position: relative;
    z-index: 1;
}

body.dark-mode .site-footer {
    color: rgba(255, 255, 255, 0.4);
}

/* Effet de réfraction sur les éléments interactifs */
.type-option, .example-tag, .generate-button {
    position: relative;
}

.type-option::after, .example-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.type-option:hover::after, .example-tag:hover::after {
    opacity: 1;
}
    
.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:active,
.site-footer a:focus {
  color: inherit !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: inherit !important;
  opacity: 0.8 !important;
  text-decoration: underline !important;
}

.contact-item,
.contact-item span {
  cursor: pointer !important;
}

.contact-item[onclick],
.contact-item[role="button"],
[onclick*="reload"] {
    cursor: pointer !important;
}

/* ===== RÈGLES MOBILE AJOUTÉES ===== */

/* Mobile standard (≤ 768px) */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .container {
        padding: 24px 20px;
        margin: 0;
        border-radius: 20px;
        transform: none; /* Supprime le scale sur mobile */
        max-width: 100%;
        width: 100%;
    }
    
    .header {
        margin-bottom: 32px;
    }
    
    .logo {
        font-size: 3.5rem;
        letter-spacing: -2px;
        margin-bottom: 12px;
    }
    
    .tagline {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .form-group {
        margin-bottom: 24px;
    }
    
    label {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    textarea {
        padding: 16px 18px;
        font-size: 1rem;
        min-height: 120px;
        border-radius: 16px;
    }
    
    .char-counter {
        bottom: 12px;
        right: 16px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .type-selector {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .type-option {
        padding: 18px 16px;
        border-radius: 16px;
    }
    
    .type-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .type-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .type-desc {
        font-size: 0.85rem;
    }
    
    .generate-button {
        padding: 18px 24px;
        font-size: 1rem;
        border-radius: 16px;
    }
    
    .examples-label {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .example-tags {
        gap: 8px;
    }
    
    .example-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
        border-radius: 14px;
    }
    
    .footer {
        margin-top: 32px;
        font-size: 0.9rem;
    }
    
    .tech-badge {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .dark-toggle {
        margin-top: 16px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Très petit mobile (≤ 480px) */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .container {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .logo {
        font-size: 3rem;
        letter-spacing: -1.5px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
        min-height: 100px;
    }
    
    .char-counter {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .type-option {
        padding: 16px 12px;
    }
    
    .type-icon {
        font-size: 1.6rem;
    }
    
    .type-title {
        font-size: 0.9rem;
    }
    
    .type-desc {
        font-size: 0.8rem;
    }
    
    .generate-button {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .example-tag {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        margin: 20px;
        padding: 24px 20px;
        max-width: calc(100vw - 40px);
    }
    
    #pdfLink.generate-button {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Optimisations tactiles pour mobile */
@media (max-width: 768px) {
    .type-option,
    .example-tag,
    .generate-button,
    .dark-toggle,
    .modal-close {
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
    }
    
    /* Améliore la zone de clic */
    .example-tag {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .type-option {
        min-height: 100px;
    }
    
    /* Supprime les effets hover sur mobile */
    .type-option:hover,
    .example-tag:hover,
    .generate-button:hover:not(:disabled),
    .tech-badge:hover,
    .dark-toggle:hover,
    .modal-close:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Active states pour le feedback tactile */
    .type-option:active {
        transform: scale(0.98);
        background: rgba(120, 119, 198, 0.1);
    }
    
    .example-tag:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.6);
    }
    
    .generate-button:active:not(:disabled) {
        transform: scale(0.98);
    }
    
    body.dark-mode .type-option:active {
        background: rgba(255, 255, 255, 0.1);
    }
    
    body.dark-mode .example-tag:active {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Amélioration du scroll sur mobile */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    textarea {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .container {
        margin-top: 0;
    }
    
    .header {
        margin-bottom: 24px;
    }
    
    .logo {
        font-size: 2.8rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .footer {
        margin-top: 24px;
    }
}


.info-button {
    background: none;
    border: none;
    color: #888;
    font-size: 1em;
    margin-left: 5px;
    cursor: pointer;
    padding: 0;
    vertical-align: middle;
    transition: color 0.2s ease;
}

    .info-button:hover {
        color: #555;
    }