/* =========================================
   PAGE PROFIL
========================================= */

.profile-page {
    width: min(calc(100% - 40px), 1100px);
    margin: 0 auto;
    padding: 40px 0 60px;
}


/* =========================================
   EN-TÊTE
========================================= */

.profile-header {
    margin-bottom: 30px;
}

.profile-eyebrow {
    display: block;
    margin-bottom: 8px;

    color: #2563eb;

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-header h1 {
    margin: 0 0 8px;

    color: #111827;

    font-size: 2rem;
    font-weight: 800;
}

.profile-header p {
    margin: 0;

    color: #64748b;

    font-size: 0.95rem;
}


/* =========================================
   CARTES
========================================= */

.profile-card {
    margin-bottom: 25px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.profile-card-title {
    margin-bottom: 25px;
}

.profile-card-title h2 {
    margin: 0 0 6px;

    color: #111827;

    font-size: 1.25rem;
    font-weight: 750;
}

.profile-card-title p {
    margin: 0;

    color: #64748b;

    font-size: 0.9rem;
}


/* =========================================
   PHOTO
========================================= */

.profile-photo-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar-large {
    flex: 0 0 140px;

    width: 140px;
    height: 140px;

    overflow: hidden;

    border-radius: 50%;

    background: #e5e7eb;

    border: 5px solid #ffffff;

    box-shadow:
        0 0 0 1px #dbe3ef,
        0 10px 25px rgba(15, 23, 42, 0.12);
}

.profile-avatar-large img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #2563eb;

    color: #ffffff;

    font-size: 3rem;
    font-weight: 800;
}

.profile-photo-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 12px;
}

.profile-photo-actions h3 {
    margin: 0;

    color: #111827;

    font-size: 1.2rem;
}

.profile-photo-actions p {
    margin: 0;

    color: #64748b;

    font-size: 0.85rem;
}


/* =========================================
   FORMULAIRE PHOTO
========================================= */

.profile-upload-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}


/* =========================================
   FORMULAIRES
========================================= */

.profile-form-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 25px;
}

.profile-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-field label {
    color: #374151;

    font-size: 0.9rem;
    font-weight: 700;
}

.profile-field input {
    width: 100%;

    min-height: 48px;

    padding: 0 14px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: #ffffff;

    color: #111827;

    font-family: var(--font-body);
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.profile-field input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* =========================================
   BOUTONS
========================================= */

.profile-button,
.profile-password-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 24px;

    border: none;
    border-radius: 10px;

    color: #ffffff !important;

    font-family: var(--font-body);

    font-size: 0.9rem;
    font-weight: 700;

    cursor: pointer;

    text-decoration: none;

    transition: all 0.2s ease;
}

.profile-button {
    background: #2563eb;

    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.3);
}

.profile-button:hover {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.4);
}

.profile-button-dark,
.profile-password-button {
    background: #111827;

    box-shadow:
        0 4px 12px rgba(17, 24, 39, 0.2);
}

.profile-button-dark:hover,
.profile-password-button:hover {
    background: #000000;

    transform: translateY(-2px);
}

.profile-delete-button {
    min-height: 42px;

    padding: 0 18px;

    border: 1px solid #fecaca;

    border-radius: 9px;

    background: #fff1f2;

    color: #dc2626;

    font-size: 0.85rem;
    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}

.profile-delete-button:hover {
    background: #fee2e2;

    border-color: #fca5a5;
}


/* =========================================
   ALERTES
========================================= */

.profile-alert {
    margin-bottom: 20px;

    padding: 14px 18px;

    border-radius: 10px;

    font-size: 0.9rem;
    font-weight: 600;
}

.profile-alert-success {
    background: #ecfdf5;

    border: 1px solid #a7f3d0;

    color: #047857;
}

.profile-alert-error {
    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

    .profile-page {
        width: min(calc(100% - 30px), 600px);

        padding-top: 25px;
    }

    .profile-card {
        padding: 22px;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-field-full {
        grid-column: auto;
    }

    .profile-photo-content {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

    .profile-photo-actions {
        align-items: center;
    }

    .profile-upload-form {
        justify-content: center;
    }

    .profile-button,
    .profile-password-button {
        width: 100%;
    }

    .profile-upload-form .profile-button {
        width: auto;
    }

    .profile-delete-button {
        width: 100%;
    }
}