/* HyggeKontakt - Thème site de rencontres */

/* ===== Variables CSS ===== */
:root {
    --color-primary: #e91e63;
    --color-primary-dark: #c2185b;
    --color-primary-light: #f8bbd9;
    --color-secondary: #9c27b0;
    --color-accent: #ff4081;

    --color-bg: #fafafa;
    --color-bg-alt: #ffffff;
    --color-bg-card: #ffffff;

    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;

    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(233, 30, 99, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;

    --container-max: 1200px;
    --spacing-section: 80px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4 {
    line-height: 1.3;
    color: var(--color-text);
}

/* ===== Layout ===== */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
}

/* ===== Header & Navigation ===== */
.site-header {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo:hover {
    color: var(--color-text);
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.nav-link:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-normal);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--color-text);
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.dropdown-menu .see-all {
    border-top: 1px solid var(--color-border-light);
    margin-top: 8px;
    padding-top: 12px;
    color: var(--color-primary);
    font-weight: 500;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-icon {
    padding: 12px;
    min-width: 48px;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #f5d0fe 100%);
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.hero-search {
    background: var(--color-bg-alt);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    text-align: left;
}

.search-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.search-field select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
    cursor: pointer;
}

.search-field select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Location Hero */
.location-hero {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #f3e5f5 100%);
    padding: 60px 20px;
}

.location-hero .hero-content {
    max-width: var(--container-max);
    text-align: left;
}

.location-hero h1 {
    font-size: 2.5rem;
}

.location-meta {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    color: var(--color-text-light);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

/* ===== Sections ===== */
.featured-profiles,
.locations-section,
.profiles-section,
.places-section,
.similar-profiles,
.other-locations {
    padding: var(--spacing-section) 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ===== Profile Cards ===== */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.profiles-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.profile-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.profile-card-link {
    display: block;
    color: var(--color-text);
}

.profile-card-link:hover {
    color: var(--color-text);
}

.profile-image {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--color-bg);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.profile-card:hover .profile-image img {
    transform: scale(1.05);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.profile-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.profile-info {
    padding: 16px;
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-location {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.profile-profession {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-bg);
    color: var(--color-text-light);
    font-size: 0.75rem;
    border-radius: 20px;
}

/* ===== Location Cards ===== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
    color: var(--color-text);
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--color-text);
}

.location-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.location-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.location-count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.locations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.location-pill {
    padding: 10px 20px;
    background: var(--color-bg-card);
    border-radius: 30px;
    color: var(--color-text);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.location-pill:hover {
    background: var(--color-primary);
    color: white;
}

.location-pill .count {
    color: var(--color-text-muted);
    font-weight: 400;
}

.location-pill:hover .count {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Places Section ===== */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.place-card {
    background: var(--color-bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.place-type {
    font-size: 2rem;
    margin-bottom: 12px;
}

.place-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.place-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.place-address {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: var(--spacing-section) 20px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-content .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta-content .btn-primary:hover {
    background: var(--color-bg);
}

/* ===== Profile Page ===== */
.profile-page {
    padding: 40px 20px var(--spacing-section);
    max-width: var(--container-max);
    margin: 0 auto;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 24px;
}

.profile-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.main-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.profile-placeholder-large {
    width: 100%;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 24px 0;
}

.profile-header h1 {
    font-size: 2rem;
}

.profile-header .profile-location {
    font-size: 1rem;
    margin-top: 4px;
}

.profile-rating-large {
    text-align: right;
}

.profile-rating-large .stars {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: 600;
}

.profile-rating-large .count {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.profile-section {
    margin-bottom: 32px;
}

.profile-section h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border-light);
}

.profile-bio-full {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tag {
    padding: 8px 16px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: 20px;
    font-weight: 500;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--color-bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-light);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item dt {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.info-item dd {
    font-weight: 500;
    text-align: right;
}

/* ===== Footer ===== */
.site-footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 20px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 40px;
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.empty-state p {
    margin-bottom: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    :root {
        --spacing-section: 60px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .location-hero h1 {
        font-size: 1.75rem;
    }

    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        order: -1;
    }

    .profile-header {
        flex-direction: column;
        gap: 16px;
    }

    .profile-rating-large {
        text-align: left;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
