/* style.css - Design Liquid Glass pour Miaou 🐱 */

/* Polices locales - 100% conformes au RGPD */
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #07070a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-purple: #bf5af2;
    --accent-gradient: linear-gradient(135deg, #0071e3, #bf5af2);
    --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Blobs Liquides en arrière-plan */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: drift 20s infinite alternate ease-in-out;
    will-change: transform, border-radius;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-duration: 30s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff375f 0%, transparent 70%);
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    animation-duration: 22s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    50% {
        transform: translate(80px, 50px) scale(1.15) rotate(180deg);
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
    }
    100% {
        transform: translate(-40px, -80px) scale(0.9) rotate(360deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

/* En-tête Glassmorphism */
.glass-header {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    position: sticky;
    top: 20px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-header:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    -webkit-text-fill-color: initial;
}

nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Conteneur principal */
.main-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

/* Cartes Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-highlight);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Section Hero */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 60px 40px;
}

.avatar-glow {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 113, 227, 0.2);
    animation: pulse 3s infinite alternate ease-in-out;
    overflow: hidden;
}

.avatar-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 113, 227, 0.2);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(191, 90, 242, 0.4);
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff 30%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.5;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.badge:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.05);
    color: #fff;
}

/* Grille de Passions */
.passions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.passion-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 30px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.passion-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.passion-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Section RGPD */
.privacy-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.privacy-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.privacy-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.privacy-section li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.privacy-section li::before {
    content: "✓";
    color: #30d158;
    font-weight: bold;
}

.privacy-section li strong {
    color: var(--text-primary);
}

/* Boutons */
.btn {
    border: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.4);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--glass-highlight);
}

/* Bannière RGPD (Cookie Banner - Fullscreen Blocker) */
.rgpd-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500; /* Plus haut que l'en-tête */
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.rgpd-banner.show {
    opacity: 1;
    pointer-events: auto;
}

.rgpd-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.show .modal-content {
    transform: scale(1);
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.pref-info strong {
    font-size: 0.95rem;
}

.pref-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Switch iOS Style */
.toggle-switch {
    position: relative;
    width: 51px;
    height: 31px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: 0.3s;
}

.toggle-switch label::before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + label {
    background: var(--accent-gradient);
}

.toggle-switch input:checked + label::before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Pied de page */
.glass-footer {
    width: 100%;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    background: rgba(7, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Modals de Politiques Légales */
.policy-modal-content {
    max-width: 650px;
    width: 90%;
}

.policy-body {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
    text-align: left;
}

.policy-body h3 {
    margin: 20px 0 8px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.policy-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Custom Scrollbar pour le corps de la politique */
.policy-body::-webkit-scrollbar {
    width: 6px;
}

.policy-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.policy-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.policy-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .glass-header {
        flex-direction: column;
        gap: 15px;
        border-radius: 20px;
        padding: 15px;
    }

    nav {
        gap: 15px;
    }

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

    .rgpd-banner {
        flex-direction: column;
        align-items: stretch;
        bottom: 20px;
        padding: 20px;
    }

    .rgpd-actions {
        width: 100%;
        justify-content: space-between;
    }

    .rgpd-actions .btn {
        flex: 1;
    }
}

.hidden {
    display: none !important;
}

/* Animation de lueur pour les logos à fond transparent */
.logo-glow {
    animation: logoPulse 3s infinite alternate ease-in-out;
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(0, 113, 227, 0.3));
    }
    100% {
        transform: scale(1.04);
        filter: drop-shadow(0 0 15px rgba(191, 90, 242, 0.6));
    }
}
