/* ================================================
   HOT COMPLEX — Style principal
   Thème : Clair, Violet/Rose, Bootstrap 5
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ------------------------------------------------
   Variables
------------------------------------------------ */
:root {
    --hc-primary:       #9B2D6F;   /* Rose foncé / bordeaux rosé */
    --hc-primary-light: #C2476A;   /* Rose vif */
    --hc-accent:        #7B2FA0;   /* Violet profond */
    --hc-gradient:      linear-gradient(135deg, #9B2D6F 0%, #7B2FA0 100%);
    --hc-bg:            #FAF7FB;   /* Fond très légèrement rosé */
    --hc-surface:       #FFFFFF;
    --hc-border:        #EDD9EE;
    --hc-text:          #1A1020;
    --hc-text-muted:    #7A6880;
    --hc-shadow:        0 4px 20px rgba(155, 45, 111, 0.12);
    --hc-shadow-hover:  0 8px 30px rgba(155, 45, 111, 0.22);
    --hc-radius:        12px;
    --hc-radius-sm:     8px;
}

/* ------------------------------------------------
   Base
------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    background-color: var(--hc-bg);
    color: var(--hc-text);
    line-height: 1.65;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--hc-text);
}

a {
    color: var(--hc-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--hc-accent); }

/* ------------------------------------------------
   Navbar
------------------------------------------------ */
.navbar {
    background: var(--hc-gradient) !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 16px rgba(123, 47, 160, 0.25);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem !important;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}
.navbar .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}
.navbar .nav-link.text-danger {
    color: #FFB3C6 !important;
}
.navbar .nav-link.text-danger:hover {
    background: rgba(255,100,100,0.2);
    color: #fff !important;
}

/* ------------------------------------------------
   Boutons
------------------------------------------------ */
.btn-primary {
    background: var(--hc-gradient);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(155, 45, 111, 0.3);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(155, 45, 111, 0.4);
    background: var(--hc-gradient);
    border: none;
}

.btn-outline-primary {
    border: 2px solid var(--hc-primary);
    color: var(--hc-primary);
    border-radius: 25px;
    font-weight: 600;
    padding: 0.45rem 1.4rem;
    transition: all 0.2s;
}
.btn-outline-primary:hover {
    background: var(--hc-primary);
    color: #fff;
    border-color: var(--hc-primary);
}

.btn-outline-secondary {
    border: 2px solid var(--hc-border);
    color: var(--hc-text-muted);
    border-radius: 25px;
    font-weight: 500;
    padding: 0.45rem 1.4rem;
    transition: all 0.2s;
}
.btn-outline-secondary:hover {
    background: var(--hc-border);
    color: var(--hc-text);
    border-color: var(--hc-border);
}

.btn-danger {
    border-radius: 25px;
    font-weight: 600;
}

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

/* ------------------------------------------------
   Cards
------------------------------------------------ */
.card {
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    background: var(--hc-surface);
    transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
    box-shadow: var(--hc-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #FAF0FB 0%, #F3E8F9 100%);
    border-bottom: 1px solid var(--hc-border);
    border-radius: var(--hc-radius) var(--hc-radius) 0 0 !important;
    padding: 0.85rem 1.25rem;
}

.card-header h5, .card-header h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--hc-primary);
    margin: 0;
}

/* ------------------------------------------------
   Formulaires
------------------------------------------------ */
.form-control, .form-select {
    border: 1.5px solid var(--hc-border);
    border-radius: var(--hc-radius-sm);
    padding: 0.55rem 0.9rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--hc-primary-light);
    box-shadow: 0 0 0 3px rgba(155, 45, 111, 0.12);
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--hc-text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ------------------------------------------------
   Badges
------------------------------------------------ */
.badge {
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.75em;
}
.bg-secondary {
    background: linear-gradient(135deg, #9B2D6F, #7B2FA0) !important;
}
.bg-danger { background-color: #E63370 !important; }

/* ------------------------------------------------
   Alertes
------------------------------------------------ */
.alert {
    border-radius: var(--hc-radius-sm);
    border: none;
    font-weight: 500;
}
.alert-danger {
    background: #FFF0F5;
    color: #9B2D6F;
    border-left: 4px solid var(--hc-primary);
}
.alert-success {
    background: #F0FFF8;
    color: #1A7A4A;
    border-left: 4px solid #2ECC71;
}
.alert-info {
    background: #F5F0FF;
    color: #5B2FA0;
    border-left: 4px solid var(--hc-accent);
}

/* ------------------------------------------------
   Pagination
------------------------------------------------ */
.pagination .page-link {
    color: var(--hc-primary);
    border: 1.5px solid var(--hc-border);
    border-radius: var(--hc-radius-sm) !important;
    margin: 0 2px;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination .page-link:hover {
    background: var(--hc-primary);
    color: #fff;
    border-color: var(--hc-primary);
}
.pagination .page-item.active .page-link {
    background: var(--hc-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(155, 45, 111, 0.3);
}

/* ------------------------------------------------
   Breadcrumb
------------------------------------------------ */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.88rem;
}
.breadcrumb-item a { color: var(--hc-primary); }
.breadcrumb-item.active { color: var(--hc-text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--hc-border); }

/* ------------------------------------------------
   List group (messagerie)
------------------------------------------------ */
.list-group-item {
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-sm) !important;
    margin-bottom: 6px;
    transition: background 0.2s, transform 0.2s;
}
.list-group-item:hover {
    background: #FDF5FF;
    transform: translateX(3px);
}
.list-group-item-light {
    background: #FFF5FA;
}

/* ------------------------------------------------
   Page d'accueil — sections
------------------------------------------------ */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--hc-primary);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--hc-gradient);
    border-radius: 2px;
}

/* Hero accueil */
.hero {
    background: var(--hc-gradient);
    color: #fff;
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.hero .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
}
.hero .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}
.hero .btn-light {
    background: #fff;
    color: var(--hc-primary);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Cartes membres (accueil) */
.membre-card {
    text-align: center;
    padding: 1rem 0.5rem;
    border-radius: var(--hc-radius);
    transition: all 0.25s;
    cursor: pointer;
}
.membre-card:hover { background: #FDF5FF; transform: translateY(-3px); }
.membre-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--hc-border);
    transition: border-color 0.2s;
}
.membre-card:hover img { border-color: var(--hc-primary-light); }
.membre-card .pseudo {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--hc-text);
}
.membre-card .info {
    font-size: 0.78rem;
    color: var(--hc-text-muted);
}

/* ------------------------------------------------
   Photos floutées
------------------------------------------------ */
.img-floue {
    filter: blur(7px);
    transition: filter 0.3s;
}
.img-nette { filter: none; }

/* ------------------------------------------------
   Footer
------------------------------------------------ */
footer {
    background: var(--hc-gradient);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 4rem;
    font-size: 0.88rem;
}
footer a { color: rgba(255,255,255,0.9); }
footer a:hover { color: #fff; }

/* ------------------------------------------------
   Utilitaires
------------------------------------------------ */
.text-primary { color: var(--hc-primary) !important; }
.bg-primary    { background: var(--hc-gradient) !important; }

.container { max-width: 1140px; }

/* Scrollbar personnalisée */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--hc-bg); }
::-webkit-scrollbar-thumb {
    background: var(--hc-border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--hc-primary-light); }

/* ------------------------------------------------
   Paiement
------------------------------------------------ */
#paiement-section {
    color: var(--hc-text) !important;
}
#paiement-section .card {
    color: var(--hc-text) !important;
}
#paiement-section * {
    color: inherit;
}