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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--primary-color);
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: var(--secondary-color);
    opacity: 0.8;
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: bold;
}

#auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

#auth-buttons button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#auth-buttons button:hover {
    background-color: var(--primary-color);
    color: white;
}

#login-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    margin-right: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info span {
    font-size: 14px;
    color: #666;
}

.profile-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.profile-icon {
    font-size: 20px;
    margin-right: 5px;
}

#logout-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background-color: var(--accent-color);
}

.converter-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #4CAF50;
}

.conversion-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#target-format {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.preview-container {
    text-align: center;
    margin-top: 1rem;
}

#preview-image {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.ad-container {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ad-space {
    margin: 1.5rem auto;
    text-align: center;
    min-height: 100px;
    background-color: transparent;
}

.ad-top {
    margin-top: 0;
}

.ad-middle {
    margin: 2rem auto;
}

.ad-bottom {
    margin-bottom: 0;
}

/* Assurer que les publicités ne dépassent pas la largeur du conteneur */
.adsbygoogle {
    max-width: 100%;
    margin: 0 auto;
}

/* Styles responsifs pour les publicités */
@media (max-width: 768px) {
    .ad-space {
        margin: 1rem auto;
    }
    
    .ad-middle {
        margin: 1.5rem auto;
    }
}

/* Assurer que les publicités ne sont pas cachées */
.ad-space ins {
    display: block !important;
}

/* Éviter les problèmes de chevauchement */
.ad-space {
    position: relative;
    z-index: 1;
}

/* Assurer que les publicités sont visibles */
.ad-space:empty {
    min-height: 100px;
    background-color: transparent;
}

.ad-test {
    text-align: center;
    color: #666;
}

.ad-test h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.ad-test p {
    margin: 5px 0;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

form input:focus {
    outline: none;
    border-color: #ff69b4;
}

form button {
    background-color: #ff69b4;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

form button:hover {
    background-color: #ff4da6;
}

/* Scroll indicator styles */
.scroll-indicator {
    text-align: center;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin: 10px 0;
}

/* Footer styles */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #e7e7e7;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

footer p {
    margin: 0;
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

footer a {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

footer a:hover {
    color: #0056b3;
    background-color: #f5f5f5;
    text-decoration: none;
}

/* Ajuster le padding du main pour éviter que le contenu ne soit caché par le footer */
main {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 100px;
    padding-bottom: 70px;
}

/* Styles pour les fonctionnalités utilisateur */
.user-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e7e7e7;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #e7e7e7;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.history-item:last-child {
    border-bottom: none;
}

.conversion-info {
    flex: 1;
}

.conversion-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.conversion-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.file-name {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.conversion-details {
    color: #666;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
}

.download-btn:hover {
    background-color: #45a049;
}

.batch-converter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.advanced-options {
    display: grid;
    gap: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 500;
    color: #555;
}

.option-group input[type="range"] {
    width: 100%;
}

.option-group input[type="number"] {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.action-button {
    background-color: #4CAF50;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #45a049;
}

.profile-icon {
    font-size: 1.2em;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-icon:hover {
    transform: scale(1.1);
}

/* Styles pour les fonctionnalités premium */
.user-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e7e7e7;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.advanced-options {
    display: grid;
    gap: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 500;
    color: #555;
}

.option-group input[type="range"] {
    width: 100%;
}

.option-group input[type="number"] {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.batch-converter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.batch-converter input[type="file"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.action-button {
    background-color: #4CAF50;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: #45a049;
}

#quality-value {
    font-size: 0.9rem;
    color: #666;
}

.resize-inputs {
    display: none;
}

/* Styles pour le formulaire de connexion */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: Arial, sans-serif;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.btn-primary {
    background-color: #ff69b4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: #ff4da6;
}

/* Styles pour le modal de chargement */
.loading-content {
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff69b4;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    color: #ff69b4;
    margin: 20px 0 10px;
}

.loading-content p {
    color: #666;
    margin: 0;
}

/* Auth only elements */
.auth-only {
    display: none;
}

/* User features section */
#user-features {
    display: none;
}

/* Styles pour les thèmes */
.theme-preview {
    height: 120px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Thème Romantique */
.romantique-preview {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
}

.romantique-color-1 { background-color: #ff69b4; }
.romantique-color-2 { background-color: #ffb6c1; }
.romantique-color-3 { background-color: #ff1493; }

/* Thème Nature */
.nature-preview {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.nature-color-1 { background-color: #4CAF50; }
.nature-color-2 { background-color: #8BC34A; }
.nature-color-3 { background-color: #2E7D32; }

/* Thème Océan */
.ocean-preview {
    background: linear-gradient(135deg, #2196F3, #0288D1);
}

.ocean-color-1 { background-color: #2196F3; }
.ocean-color-2 { background-color: #4FC3F7; }
.ocean-color-3 { background-color: #0288D1; }

/* Thème Pastel */
.pastel-preview {
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
}

.pastel-color-1 { background-color: #FFB6C1; }
.pastel-color-2 { background-color: #FFD1DC; }
.pastel-color-3 { background-color: #FF69B4; }

/* Thème Classique */
.classique-preview {
    background: linear-gradient(135deg, #795548, #4E342E);
}

.classique-color-1 { background-color: #795548; }
.classique-color-2 { background-color: #A1887F; }
.classique-color-3 { background-color: #4E342E; }

/* Thème Metal/Hard Rock */
.metal-preview {
    background: linear-gradient(135deg, #1a1a1a, #ff0000);
}

.metal-color-1 { background-color: #1a1a1a; }
.metal-color-2 { background-color: #333333; }
.metal-color-3 { background-color: #ff0000; }

/* Thème Chanson Française */
.chanson-preview {
    background: linear-gradient(135deg, #2c3e50, #e74c3c);
}

.chanson-color-1 { background-color: #2c3e50; }
.chanson-color-2 { background-color: #34495e; }
.chanson-color-3 { background-color: #e74c3c; } 