/* assets/css/style.css */

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

:root {
    /* Couleurs principales */
    --rose-dominant: #e91e8c;
    --rose-clair: #d946a6;
    --bleu: #6366f1;
    --bleu-clair: #818cf8;
    
    /* Couleurs complémentaires */
    --fond-clair: #faf9ff;
    --fond-doux: #f5f0ff;
    --bordure: #e0e0e0;
    --texte-principal: #1a1a1a;
    --texte-secondaire: #666;
    --succes: #22c55e;
    --erreur: #ef4444;
    
    /* Typographie */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: 0.3s ease;
}

html, body {
    font-family: var(--font-family);
    color: var(--texte-principal);
    background: linear-gradient(135deg, #f5f0ff 0%, #fff5f9 100%);
    min-height: 100vh;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, var(--rose-dominant) 0%, var(--rose-clair) 50%, var(--bleu) 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}


        /* ===== CONTENEUR DES RÉSULTATS ===== */
        .results-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        /* ===== CARTE DE RÉSULTAT ===== */
        .result-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 2px 8px rgba(233, 30, 140, 0.1);
            border-top: 4px solid var(--rose-dominant);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .result-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(233, 30, 140, 0.2);
        }

        /* ===== EN-TÊTE DE LA CARTE ===== */
        .result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--bordure);
        }

        .result-header h3 {
            font-size: 1.1rem;
            color: var(--rose-dominant);
            font-weight: 700;
            margin: 0;
            letter-spacing: -0.5px;
        }

        /* ===== CONTENU DE LA CARTE ===== */
        .result-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        /* ===== CHAMP INDIVIDUEL ===== */
        .result-field {
            display: flex;
            flex-direction: column;
            padding: 0.75rem 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .result-field:last-child {
            border-bottom: none;
        }

        .field-label {
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 0.75rem;
            color: var(--rose-dominant);
            margin-bottom: 0.3rem;
        }

        .field-value {
            font-size: 0.95rem;
            color: var(--texte-principal);
            word-break: break-word;
            line-height: 1.4;
        }

        /* ===== SÉPARATEUR ===== */
        .result-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--bordure), transparent);
            margin: 1rem 0;
        }

        /* ===== BOUTON COPIER DANS LA CARTE ===== */
        .result-card .copy-btn {
            padding: 0.6rem 1rem;
            font-size: 0.8rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .results-container {
                grid-template-columns: 1fr;
            }

            .result-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }

            .result-header h3 {
                width: 100%;
            }

            .result-header .copy-btn {
                width: 100%;
            }

            .result-card {
                padding: 1.25rem;
            }
        }

        @media (max-width: 480px) {
            .results-container {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .result-card {
                padding: 1rem;
            }

            .result-header {
                margin-bottom: 1rem;
                padding-bottom: 0.75rem;
            }

            .result-header h3 {
                font-size: 1rem;
            }

            .field-label {
                font-size: 0.7rem;
            }

            .field-value {
                font-size: 0.9rem;
            }

            .copy-btn {
                padding: 0.5rem 0.8rem;
                font-size: 0.75rem;
            }
        }


/* ===== CARTES ===== */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(233, 30, 140, 0.1);
    border-top: 4px solid var(--rose-dominant);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 140, 0.2);
}

/* ===== FORMULAIRES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    color: var(--texte-principal);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--bordure);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    background: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--rose-dominant);
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

/* ===== BOUTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, var(--rose-dominant) 0%, var(--rose-clair) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233, 30, 140, 0.4);
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-clair) 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ===== MESSAGES ===== */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-left: 4px solid var(--succes);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--erreur);
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    color: #3730a3;
    border-left: 4px solid var(--bleu);
}

/* ===== PAGE LOGIN ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(233, 30, 140, 0.2);
    width: 100%;
    max-width: 400px;
    border-top: 6px solid var(--rose-dominant);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--rose-dominant) 0%, var(--bleu) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card p {
    text-align: center;
    color: var(--texte-secondaire);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-card .form-group {
    margin-bottom: 1.5rem;
}

.login-card .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    .card {
        padding: 1rem;
    }

    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .login-card {
        padding: 1.5rem 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--rose-dominant) 0%, var(--bleu) 100%);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}
