/* views/css/styles.css */

/* Import de la police Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

:root {
    /* --- PALETTE LUXE PI (DARK MODE) --- */
    --bg-dark: #120c1f;           /* Fond principal trÃ¨s sombre */
    --card-bg: rgba(30, 25, 45, 0.95); /* Carte sombre semi-transparente */
    --text-main: #ffffff;         /* Texte blanc */
    --text-muted: #bbbbbb;        /* Texte gris clair */
    --pi-gold: #FDB813;           /* Le JAUNE PI (Or) */
    --pi-gold-hover: #ffcf4b;     /* Or plus clair au survol */
    --input-bg: #2a2435;          /* Fond des champs */
    --input-border: #3e3550;      /* Bordure discrÃ¨te */
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    /* DÃ©gradÃ© radial subtil pour donner de la profondeur */
    background-image: radial-gradient(circle at 50% 0%, #4b0082 0%, var(--bg-dark) 65%);
    background-attachment: fixed; /* Le fond reste fixe quand on scrolle */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin: 0;
}

/* --- LA CARTE (CARD) --- */
.card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    backdrop-filter: blur(10px); /* Effet de flou derriÃ¨re la carte */
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 30px 15px 30px;
    text-align: center;
}

.card-header h4 {
    color: var(--pi-gold);
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-body {
    padding: 40px;
}

/* --- LES CHAMPS (INPUTS) --- */
.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-left: 4px;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    border-radius: 12px;
    height: 50px;
    padding-left: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

textarea.form-control {
    height: auto;
    padding: 15px 20px;
}

/* Couleur du texte placeholder (le texte gris "Ex: France") */
.form-control::placeholder {
    color: #666;
}

/* Focus : quand on clique dans le champ */
.form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--pi-gold);
    box-shadow: 0 0 0 3px rgba(253, 184, 19, 0.15); /* Halo dorÃ© */
    color: #fff;
}

/* Petit texte d'aide sous les champs */
.form-text.text-muted {
    color: #888 !important;
}

/* --- LE BOUTON DE VALIDATION --- */
#btn-submit,
.btn-save-profile {
    background: linear-gradient(135deg, var(--pi-gold), #d49600);
    border: none;
    color: #222; /* Texte noir sur fond or pour le contraste */
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(212, 150, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 15px;
}

#btn-submit:hover:not(:disabled),
.btn-save-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 184, 19, 0.5);
    color: #000;
}

#btn-submit:disabled {
    background: #3e3550;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- STATUS AUTHENTIFICATION --- */
#pi-user-status {
    border-radius: 12px;
    background: rgba(253, 184, 19, 0.05);
    border: 1px solid rgba(253, 184, 19, 0.1);
    color: var(--pi-gold);
    font-weight: 500;
    font-size: 0.9rem;
}

#pi-user-status.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: #4cd964; /* Vert clair lumineux */
}

#pi-user-status.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

/* =====================================================
   STYLES SPÃ‰CIFIQUES POUR LA PAGE PROFIL
   ===================================================== */

/* Section de la photo de profil */
.profile-photo-section {
    padding: 30px;
    background: rgba(253, 184, 19, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(253, 184, 19, 0.1);
}

.photo-upload-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.current-photo {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--pi-gold);
    box-shadow: 0 8px 25px rgba(253, 184, 19, 0.3);
}

.current-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
}

.btn-upload {
    background: linear-gradient(135deg, var(--pi-gold), #d49600);
    color: #222;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    transition: all 0.3s;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(253, 184, 19, 0.4);
}

/* Centres d'intÃ©rÃªt */
.interests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.interest-tag {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.interest-tag input[type="checkbox"] {
    display: none;
}

.interest-tag span {
    display: inline-block;
    padding: 10px 20px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 25px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.interest-tag input[type="checkbox"]:checked + span {
    background: linear-gradient(135deg, var(--pi-gold), #d49600);
    border-color: var(--pi-gold);
    color: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 184, 19, 0.4);
}

.interest-tag:hover span {
    border-color: var(--pi-gold);
    color: var(--pi-gold);
}

/* Section habitudes de vie */
.habits-section {
    padding: 25px;
    background: rgba(253, 184, 19, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(253, 184, 19, 0.08);
}

/* AperÃ§u du profil */
.profile-preview-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--pi-gold);
    box-shadow: 0 5px 20px rgba(253, 184, 19, 0.3);
}

.profile-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
}

/* Liste de conseils */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tips-list li:last-child {
    border-bottom: none;
}

/* Input group pour la taille */
.input-group-text {
    background: var(--input-bg);
    color: var(--text-muted);
    border: 1px solid var(--input-border);
    border-radius: 0 12px 12px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .photo-upload-container {
        flex-direction: column;
    }
    
    .current-photo {
        width: 120px;
        height: 120px;
    }
    
    .interests-container {
        justify-content: center;
    }
}
/* =====================================================
   STYLES POUR LA PAGE HOME - SWIPE
   ===================================================== */

/* Container de swipe */
.swipe-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    margin: 0 auto;
}

/* Carte de profil */
.profile-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.3s ease;
}

.profile-card:active {
    cursor: grabbing;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color: white;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.profile-info {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.badge-pill {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 8px;
    margin-top: 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Indicateurs de swipe */
.swipe-indicator {
    position: absolute;
    top: 50px;
    font-size: 4rem;
    font-weight: 900;
    padding: 15px 30px;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    pointer-events: none;
}

.swipe-indicator.like {
    right: 50px;
    color: #4cd964;
    border: 5px solid #4cd964;
    transform: rotate(20deg);
}

.swipe-indicator.nope {
    left: 50px;
    color: #ff6b6b;
    border: 5px solid #ff6b6b;
    transform: rotate(-20deg);
}

/* Boutons d'action */
.swipe-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.swipe-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-dislike {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

.btn-dislike:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-like {
    background: linear-gradient(135deg, #4cd964, #5de07c);
    color: white;
}

.btn-like:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 217, 100, 0.4);
}

.btn-superlike {
    background: linear-gradient(135deg, var(--pi-gold), #ffcf4b);
    color: #222;
}

.btn-superlike:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(253, 184, 19, 0.4);
}

/* Message "plus de profils" */
.no-more-profiles {
    text-align: center;
    padding: 60px 30px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Cartes de statistiques */
.stats-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pi-gold);
    margin-bottom: 5px;
}

.stats-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section de profil */
.profil-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(253, 184, 19, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(253, 184, 19, 0.05);
}

.section-title {
    color: var(--pi-gold);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(253, 184, 19, 0.2);
}

/* Upload de photos */
.photo-upload-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    background: var(--input-bg);
    border: 2px dashed var(--input-border);
    cursor: pointer;
    transition: all 0.3s;
}

.photo-item:hover {
    border-color: var(--pi-gold);
    transform: translateY(-5px);
}

.photo-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
}

.photo-item input[type="file"] {
    display: none;
}

.photo-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--pi-gold);
    color: #222;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.photo-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
    transition: all 0.3s;
}

.photo-delete:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

/* Compteur de caractères */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.char-counter.warning {
    color: #ffaa00;
}

.char-counter.danger {
    color: #ff6b6b;
}

/* Intérêts mis en valeur */
.featured-interests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.featured-interest {
    position: relative;
}

.featured-interest input[type="radio"] {
    display: none;
}

.featured-interest label {
    display: inline-block;
    padding: 10px 20px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 25px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.featured-interest input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--pi-gold), #d49600);
    border-color: var(--pi-gold);
    color: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 184, 19, 0.4);
}

.featured-interest:hover label {
    border-color: var(--pi-gold);
    color: var(--pi-gold);
}