/* ====================================
   HERO COMPTE (MOBILE)
   ==================================== */

.compte-hero {
    background: #ffffff;
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.compte-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: #147a83;
    border-radius: 50%;
    opacity: 0.15;
}

.compte-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: #b5bfc2;
    border-radius: 50%;
    opacity: 0.45;
}

.compte-hero-content {
    position: relative;
    z-index: 1;
}

.compte-hero-content h1 {
    font-family: "Saira", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #0d1f24;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 12px;
}

.compte-hero-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .compte-hero {
        padding: 120px 20px;
    }

    .compte-hero-content h1 {
        font-size: 72px;
    }

    .compte-hero::before {
        width: 280px;
        height: 280px;
    }

    .compte-hero::after {
        width: 280px;
        height: 280px;
    }
}

@media (min-width: 1024px) {

    .compte-hero {
        padding: 180px 20px;
    }

    .compte-hero-content h1 {
        font-size: 96px;
    }
}


/* ====================================
   WRAPPER GÉNÉRAL
   ==================================== */

.compte-wrapper {
    background: #f5f5f5;
    padding: 40px 20px 80px;
    min-height: 60vh;
    margin-bottom: 40px;
}

.compte-inner {
    max-width: 900px;
    margin: auto;
}


/* ====================================
   VUE NON CONNECTÉ — CONNEXION / INSCRIPTION
   ==================================== */

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 32px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 14px 20px;
    background: none;
    border: none;
    font-family: "Saira", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.auth-tab:hover {
    color: #147a83;
}

.auth-tab.active {
    color: #147a83;
    border-bottom-color: #147a83;
}

.auth-panel {
    display: none;
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.auth-panel.active {
    display: block;
}

.auth-panel h2 {
    font-family: "Saira", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0d1f24;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.auth-form input:focus {
    border-color: #147a83;
}

.auth-form input::placeholder {
    color: #aaa;
}

.auth-form-forgot {
    text-align: right;
    font-size: 12px;
}

.auth-form-forgot a {
    color: #147a83;
    text-decoration: none;
    font-weight: 600;
}

.auth-form-forgot a:hover {
    text-decoration: underline;
}

.btn-auth {
    display: block;
    width: 100%;
    padding: 14px;
    background: #147a83;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.btn-auth:hover {
    background-color: #0f5f66;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    font-size: 12px;
    margin: 4px 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.auth-cgu {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

.auth-cgu a {
    color: #147a83;
    text-decoration: none;
}

.auth-cgu a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .compte-wrapper {
        padding: 50px 40px 80px;
    }

    .auth-form-row {
        grid-template-columns: 1fr 1fr;
    }

    .auth-panel {
        padding: 40px 48px;
    }

    .auth-panel h2 {
        font-size: 26px;
    }
}

@media (min-width: 1024px) {
    .compte-wrapper {
        padding: 60px 60px 100px;
    }
}


/* ====================================
   VUE CONNECTÉ — NAV TABLEAU DE BORD
   ==================================== */

.dashboard-wrapper {
    display: none;
}

.dashboard-wrapper.visible {
    display: block;
}

/* Bandeau utilisateur */
.dashboard-user-banner {
    background: #147a83;
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    color: white;
    flex-wrap: wrap;
}

.dashboard-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.dashboard-user-name {
    font-family: "Saira", sans-serif;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-user-email {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Conteneur nom + email */
.dashboard-user-banner>div:nth-child(2) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.dashboard-logout {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    max-width: 110px;
    /* ← limite la largeur */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* ← coupe le texte proprement */
}

.dashboard-logout:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Onglets dashboard */
.dashboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dashboard-tab {
    padding: 10px 20px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.dashboard-tab:hover {
    border-color: #147a83;
    color: #147a83;
}

.dashboard-tab.active {
    background: #147a83;
    border-color: #147a83;
    color: white;
}

.dashboard-tab i {
    margin-right: 6px;
}

/* Panneaux dashboard */
.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
}

@media (max-width: 767px) {
    .dashboard-user-banner {
        padding: 16px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .dashboard-avatar {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .dashboard-user-name {
        font-size: 15px;
    }

    .dashboard-user-email {
        font-size: 11px;
        word-break: break-all;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-logout {
        margin-left: 0;
        width: 100%;
        text-align: center;
        font-size: 13px;
        padding: 10px;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

/* ====================================
   PANNEAU — INFOS PERSONNELLES
   ==================================== */

.dashboard-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.dashboard-card h3 {
    font-family: "Saira", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0d1f24;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f0f0f0;
}

.dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.dashboard-form input,
.dashboard-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.dashboard-form input:focus,
.dashboard-form select:focus {
    border-color: #147a83;
}

.btn-save {
    display: inline-block;
    padding: 12px 36px;
    background: #147a83;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.btn-save:hover {
    background-color: #0f5f66;
}

@media (min-width: 768px) {
    .dashboard-form-row {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-card {
        padding: 32px 36px;
    }
}


/* ====================================
   PANNEAU — COMMANDES
   ==================================== */

.commandes-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.commande-item {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.commande-img {
    width: 70px;
    height: 60px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 6px;
    flex-shrink: 0;
}

.commande-info {
    flex: 1;
    min-width: 150px;
}

.commande-nom {
    font-family: "Saira", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0d1f24;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.commande-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.commande-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-livree {
    background: #dcfce7;
    color: #16a34a;
}

.badge-transit {
    background: #fef9c3;
    color: #ca8a04;
}

.badge-annulee {
    background: #fee2e2;
    color: #dc2626;
}

.commande-prix {
    font-family: "Saira", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0d1f24;
    white-space: nowrap;
}

.commandes-vide {
    text-align: center;
    padding: 40px;
    color: #aaa;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
}

.commandes-vide a {
    color: #147a83;
    font-weight: 600;
    text-decoration: none;
}


/* ====================================
   PANNEAU — HISTORIQUE LOCATIONS
   ==================================== */

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-hist-item {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.location-hist-img {
    width: 70px;
    height: 60px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 6px;
    flex-shrink: 0;
}

.location-hist-info {
    flex: 1;
    min-width: 150px;
}

.location-hist-nom {
    font-family: "Saira", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0d1f24;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.location-hist-dates {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.location-hist-magasin {
    font-size: 11px;
    color: #888;
}

.location-hist-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
}

.badge-terminee {
    background: #dcfce7;
    color: #16a34a;
}

.badge-en-cours {
    background: #dbeafe;
    color: #2563eb;
}

.badge-a-venir {
    background: #f3e8ff;
    color: #7c3aed;
}

.location-hist-prix {
    font-family: "Saira", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0d1f24;
    white-space: nowrap;
}

.locations-vide {
    text-align: center;
    padding: 40px;
    color: #aaa;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
}

.locations-vide a {
    color: #147a83;
    font-weight: 600;
    text-decoration: none;
}


/* ====================================
   PANNEAU — MOT DE PASSE
   ==================================== */

.mdp-rules {
    background: #f0fafb;
    border: 1.5px solid #147a83;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.mdp-rules p {
    font-size: 12px;
    color: #147a83;
    font-weight: 600;
    margin-bottom: 6px;
}

.mdp-rules ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mdp-rules li {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mdp-rules li::before {
    content: '•';
    color: #147a83;
    font-weight: 700;
}

.mdp-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.mdp-strength-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.mdp-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s, background-color 0.3s;
}

.mdp-strength-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    min-width: 60px;
}