/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Logo MDM */
.logo-container {
    background: white;
    padding: 40px 20px 30px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}

/* Logo complet MDM (image) */
.logo-full {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.logo-mdm-complet {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

/* Logo D seul (pour utilisation ailleurs si besoin) */
.logo-d-only {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.logo-d-image {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

/* Fallback : Logo CSS (si les images ne chargent pas) */
.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.logo-m {
    font-size: 64px;
    font-weight: bold;
    color: #2c2c2c;
    font-family: 'Arial', sans-serif;
    letter-spacing: -2px;
}

.logo-d {
    width: 80px;
    height: 80px;
    background: #ff6b35;
    border: 3px solid #2c2c2c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-icon {
    width: 40px;
    height: 40px;
    margin-left: 5px;
}

.logo-text {
    font-size: 12px;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

/* Wrapper du formulaire */
.form-wrapper {
    padding: 40px;
}

.form-wrapper h1 {
    color: #2c2c2c;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
    font-weight: 600;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c2c2c;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #ff6b35;
    margin-left: 3px;
}

/* Inputs de texte */
input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder {
    color: #999;
}

/* Upload de fichier */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-label:hover {
    border-color: #ff6b35;
    background: #fff5f2;
}

.file-label:active {
    transform: scale(0.98);
}

.upload-icon {
    width: 48px;
    height: 48px;
    stroke-width: 2;
    color: #ff6b35;
    margin-bottom: 12px;
}

.file-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.file-name {
    color: #ff6b35;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
    display: none;
}

.file-name.active {
    display: block;
}

/* Aperçu de l'image */
.image-preview {
    margin-top: 15px;
    display: none;
}

.image-preview.active {
    display: block;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background: #fafafa;
}

/* Bouton de soumission */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Responsive */
@media (max-width: 640px) {
    .form-wrapper {
        padding: 30px 20px;
    }

    .logo-container {
        padding: 30px 20px 20px;
    }

    /* Logo image responsive */
    .logo-mdm-complet {
        max-height: 90px;
    }

    .logo-d-image {
        max-height: 80px;
    }

    /* Fallback logo CSS responsive */
    .logo-m {
        font-size: 48px;
    }

    .logo-d {
        width: 60px;
        height: 60px;
    }

    .play-icon {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 10px;
    }

    .form-wrapper h1 {
        font-size: 24px;
    }
}

