/**
 * ProtoNancy - Styles Principaux OPTIMISÉS
 * Version sans interférences entre sections
 */

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   NAVIGATION (z-index: 1000)
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
}

.nav-logo i {
    font-size: 1.8em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.user-name {
    color: var(--white);
    font-weight: 600;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5em;
    cursor: pointer;
}

/* ============================================
   HERO SECTION (position: relative, z-index: auto)
   ============================================ */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

.hero-title i {
    display: block;
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--white);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.2em;
    margin: 0 0 40px 0;
    opacity: 0.95;
    line-height: 1.6;
    color: var(--white);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
    margin: 0;
    padding: 0;
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.floating-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: floatCube 6s ease-in-out infinite;
}

.floating-cube:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-cube:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-cube:nth-child(3) {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatCube {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS (pour toutes les sections)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.5;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1em;
}

.btn-block {
    width: 100%;
}

.btn-download {
    background: var(--success);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9em;
}

.btn-download:hover {
    background: #059669;
}

.btn-delete {
    background: var(--error);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9em;
}

.btn-delete:hover {
    background: #dc2626;
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */
section {
    width: 100%;
    padding: 100px 20px;
    position: relative;
    clear: both;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin: 0 0 60px 0;
    color: var(--dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2em;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   UPLOAD SECTION
   ============================================ */
.upload-section {
    background: var(--white);
}

.upload-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 auto 50px;
    max-width: 1200px;
}

.info-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-card i {
    font-size: 2.5em;
    color: var(--primary);
    min-width: 50px;
}

.info-card strong {
    display: block;
    font-size: 1.1em;
    margin: 0 0 5px 0;
    color: var(--dark);
}

.info-card p {
    color: var(--gray);
    font-size: 0.95em;
    margin: 0;
}

.upload-zone {
    background: var(--light-gray);
    border: 3px dashed var(--primary);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

.upload-zone:hover,
.upload-zone.dragover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--secondary);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4em;
    color: var(--primary);
    margin: 0 0 20px 0;
}

.upload-zone h3 {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: var(--dark);
}

.upload-zone p {
    color: var(--gray);
    margin: 0;
}

#fileInput {
    display: none;
}

#progressContainer {
    display: none;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    width: 100%;
    height: 40px;
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

#progressBar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

#fileQueue {
    margin-top: 20px;
    display: grid;
    gap: 15px;
}

.file-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.file-item i {
    font-size: 2em;
    color: var(--primary);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 5px 0;
}

.file-size {
    color: var(--gray);
    font-size: 0.9em;
    margin: 0;
}

/* ============================================
   FILES SECTION
   ============================================ */
.files-section {
    background: var(--light-gray);
}

.files-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
    font-size: 1.2em;
}

.empty-state i {
    font-size: 4em;
    display: block;
    margin: 0 0 20px 0;
    opacity: 0.3;
}

.file-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.file-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 20px 0;
}

.file-card-icon {
    font-size: 2.5em;
    color: var(--primary);
}

.file-card-title {
    font-weight: 600;
    color: var(--dark);
    word-break: break-word;
    margin: 0;
}

.file-card-meta {
    display: flex;
    gap: 20px;
    margin: 0 0 20px 0;
    color: var(--gray);
    font-size: 0.9em;
}

.file-card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-card-actions {
    display: flex;
    gap: 10px;
}

.file-card-actions .btn {
    flex: 1;
    font-size: 0.9em;
    padding: 10px;
}

/* ============================================
   CONTACT SECTION (ISOLÉ)
   ============================================ */
.contact-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    width: 100%;
    position: relative;
    clear: both;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    margin: 50px auto 0;
    width: 100%;
    align-items: start;
}

/* Info contact (gauche) */
.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 0 35px 0;
    padding: 0 0 35px 0;
    border-bottom: 2px solid #f0f0f0;
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item i {
    font-size: 2em;
    color: var(--primary);
    min-width: 50px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 15px;
    border-radius: 12px;
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
}

.info-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    color: var(--dark);
    font-weight: 600;
}

.info-item p {
    margin: 0;
    color: var(--gray);
    line-height: 1.6;
}

/* Formulaire (droite) */
.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: block;
    width: 100%;
}

.contact-form .form-group {
    margin: 0 0 25px 0;
    width: 100%;
}

.contact-form label {
    display: block;
    margin: 0 0 10px 0;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95em;
}

.contact-form label i {
    color: var(--primary);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9fafb;
    box-sizing: border-box;
    margin: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.contact-form .btn-large {
    width: 100%;
    padding: 18px;
    font-size: 1.1em;
    margin: 10px 0 0 0;
    border: none;
    cursor: pointer;
}

/* Message de statut Formspree */
#formStatus {
    margin: 20px 0 0 0;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
}

#formStatus.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

#formStatus.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Animation bouton submit */
.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form button[type="submit"]:disabled i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 20px;
    width: 100%;
    position: relative;
    clear: both;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 0 auto 40px;
    max-width: 1200px;
}

.footer-col h4 {
    margin: 0 0 20px 0;
    font-size: 1.2em;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin: 0 0 12px 0;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 20px 0 0 0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin: 15px 0 0 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
}

.newsletter-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* ============================================
   MODAL
   ============================================ */
/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.modal-dialog {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    border-radius: 16px; /* Tous les coins arrondis */
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Force les enfants à respecter le border-radius */
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 25px 30px;
    border-radius: 16px 16px 0 0; /* Coins supérieurs arrondis */
}


.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--dark);
}

.modal-content h2 {
    margin: 0 0 30px 0;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-content h2 i {
    color: var(--primary);
}

.modal-content .form-group {
    margin: 0 0 20px 0;
}

.modal-content label {
    display: block;
    margin: 0 0 8px 0;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95em;
}

.modal-content label i {
    color: var(--primary);
    margin-right: 8px;
}

.modal-content input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9em;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary);
}

.modal-footer {
    margin: 25px 0 0 0;
    text-align: center;
    color: var(--gray);
    font-size: 0.95em;
}

.modal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal-footer a:hover {
    color: var(--secondary);
}

/* ============================================
   NOTIFICATION
   ============================================ */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    display: none;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.show {
    display: block;
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--error);
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

.notification.info {
    border-left: 4px solid var(--info);
}

/* ============================================
   RESPONSIVE - Mobile First
   ============================================ */
@media (max-width: 968px) {
    /* Navigation mobile */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        flex-direction: column;
        padding: 20px;
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    /* Hero responsive */
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.4em;
    }

    .hero-description {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        width: 100%;
    }

    /* Sections */
    section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Upload */
    .upload-info {
        grid-template-columns: 1fr;
    }

    .upload-zone {
        padding: 40px 20px;
    }

    /* Files */
    .files-list {
        grid-template-columns: 1fr;
    }

    /* Contact responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        padding: 30px;
        position: relative;
        top: auto;
    }

    .contact-form-container {
        padding: 30px;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .hero {
        padding: 90px 15px 50px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-description {
        font-size: 0.95em;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95em;
    }

    .floating-cube {
        width: 40px;
        height: 40px;
    }

    /* Contact */
    .info-item {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .info-item i {
        font-size: 1.5em;
        min-width: 40px;
        padding: 12px;
    }

    .info-item h3 {
        font-size: 1.1em;
    }

    /* Modal */
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    /* Notification */
    .notification {
        left: 20px;
        right: 20px;
        top: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.5em;
        flex-direction: column;
        gap: 10px;
    }

    .contact-info,
    .contact-form-container {
        padding: 25px 20px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 12px 15px;
        font-size: 0.95em;
    }
}

/* ===== MODAL CONFIGURATION ===== */
.modal-overlay {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-dialog {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #ecf0f1;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: #e74c3c;
    color: white;
}

.modal-body {
    padding: 30px;
}

.config-section {
    margin-bottom: 30px;
}

.config-section h3 {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.config-section h3 i {
    color: var(--primary);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
}

.file-preview i {
    font-size: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group select,
.form-group input[type="number"],
.form-group input[type="range"] {
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input[type="range"] {
    padding: 0;
    height: 8px;
    border: none;
    background: #ecf0f1;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
}

#infill_value {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    color: var(--primary);
}

.quote-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.quote-preview h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}

.quote-total {
    text-align: right;
    font-size: 36px;
    font-weight: bold;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 2px solid #ecf0f1;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.modal-footer .btn {
    min-width: 150px;
}

/* ===== CART BADGE ===== */
.cart-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.5);
    z-index: 9998;
    transition: all 0.3s ease;
}

.cart-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(231, 76, 60, 0.7);
}

.cart-badge .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: var(--accent);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid var(--accent);
}

/* ===== FILE CARDS UPDATE ===== */
.file-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.file-card-actions .btn-config {
    flex: 1 1 100%;
    min-width: 200px;
}

.file-card-actions .btn-download,
.file-card-actions .btn-delete {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-details {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* ===== CHECKBOX GROUP ===== */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: var(--primary);
    background: rgba(103, 126, 234, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: bold;
    color: var(--primary);
}

/* ===== RANGE SLIDER ===== */
input[type="range"] {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(103, 126, 234, 0.5);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.7);
}

output {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-top: 10px;
}

/* ===== QUOTE RESULT ===== */
.quote-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quote-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
}

.quote-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.quote-item span {
    color: #6c757d;
    font-size: 14px;
}

.quote-item strong {
    color: var(--dark);
    font-size: 16px;
}

.quote-item.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-left: none;
}

.quote-item.highlight span,
.quote-item.highlight strong {
    color: white;
}

.quote-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: white;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.quote-total strong {
    font-size: 28px;
}
