/* snapbooth/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
    --pink: #ff6b9d;
    --hot-pink: #ff2d78;
    --purple: #c471f5;
    --blue: #48c6ef;
    --cyan: #6dd5ed;
    --yellow: #ffd93d;
    --orange: #ff9a56;
    --green: #6bcb77;
    --red: #ff6b6b;
    --dark: #1a1a2e;
    --darker: #12121f;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-glow: 0 0 40px rgba(255, 107, 157, 0.3);
    --font-display: 'Baloo 2', cursive;
    --font-body: 'Quicksand', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(72, 198, 239, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(196, 113, 245, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== ANIMATIONS ==================== */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 157, 0.4); }
    50% { box-shadow: 0 0 50px rgba(255, 107, 157, 0.7), 0 0 80px rgba(196, 113, 245, 0.3); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes countdown-pop {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes flash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes confetti-fall {
    0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==================== DECORATIVE BUBBLES ==================== */

.bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.bubble:nth-child(1) { width: 300px; height: 300px; background: var(--pink); top: -5%; left: -5%; animation-delay: 0s; }
.bubble:nth-child(2) { width: 200px; height: 200px; background: var(--blue); top: 30%; right: -3%; animation-delay: 2s; }
.bubble:nth-child(3) { width: 250px; height: 250px; background: var(--purple); bottom: -5%; left: 20%; animation-delay: 4s; }
.bubble:nth-child(4) { width: 180px; height: 180px; background: var(--yellow); top: 60%; left: -5%; animation-delay: 1s; }
.bubble:nth-child(5) { width: 220px; height: 220px; background: var(--green); top: 10%; right: 20%; animation-delay: 3s; }

/* ==================== NAVIGATION ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    background-size: 200% 200%;
    animation: rainbow 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 2rem;
    -webkit-text-fill-color: initial;
    animation: wiggle 2s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--card-bg);
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hot-pink), var(--purple));
    color: white;
    box-shadow: 0 4px 25px rgba(255, 45, 120, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 40px rgba(255, 45, 120, 0.6);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text);
    border: 2px solid var(--card-border);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--pink);
    background: rgba(255, 107, 157, 0.1);
}

.btn-success {
    background: linear-gradient(135deg, var(--green), var(--cyan));
    color: white;
    box-shadow: 0 4px 25px rgba(107, 203, 119, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 40px rgba(107, 203, 119, 0.6);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.3rem;
}

/* ==================== LANDING PAGE ==================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 32px;
    animation: slide-up 0.6s ease;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: slide-up 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    background-size: 200% 200%;
    animation: rainbow 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 48px;
    line-height: 1.7;
    animation: slide-up 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: slide-up 0.6s ease 0.3s both;
}

/* Features */

.features {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
    animation: slide-up 0.6s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--pink);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

/* ==================== BOOTH PAGE ==================== */

.booth-container {
    min-height: 100vh;
    padding: 100px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.booth-main {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

/* Camera Section */

.camera-section {
    flex: 1;
    max-width: 640px;
    min-width: 320px;
}

.camera-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--darker);
    border: 3px solid var(--card-border);
    aspect-ratio: 4/3;
    transition: border-color 0.3s;
}

.camera-wrapper.capturing {
    border-color: var(--hot-pink);
    animation: pulse-glow 1s ease-in-out infinite;
}

#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
}

.camera-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

#countdown-display {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 60px rgba(255, 45, 120, 0.8), 0 4px 20px rgba(0,0,0,0.5);
    display: none;
    animation: countdown-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#countdown-display.visible {
    display: block;
}

.flash-overlay {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
}

.flash-overlay.flash {
    animation: flash 0.4s ease-out;
}

.camera-status {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 4;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-glow 2s ease infinite;
}

.photo-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 4;
    font-family: var(--font-display);
}

/* Camera Controls */

.camera-controls {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Filters Panel */

.filters-panel {
    margin-top: 24px;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.filter-btn {
    padding: 10px 8px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.filter-btn:hover {
    border-color: var(--purple);
    background: rgba(196, 113, 245, 0.15);
}

.filter-btn.active {
    border-color: var(--pink);
    background: rgba(255, 107, 157, 0.2);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.3);
}

/* Sidebar - Captured Photos */

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.captured-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
}

.captured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.captured-slot {
    aspect-ratio: 4/3;
    border-radius: var(--radius-xs);
    border: 2px dashed var(--card-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s;
    position: relative;
}

.captured-slot.filled {
    border-style: solid;
    border-color: var(--green);
}

.captured-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.captured-slot .slot-number {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.captured-slot .delete-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 45, 120, 0.8);
    border: none;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.captured-slot.filled:hover .delete-photo {
    display: flex;
}

/* ==================== EDIT PAGE ==================== */

.edit-container {
    min-height: 100vh;
    padding: 100px 24px 40px;
    position: relative;
    z-index: 1;
}

.edit-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

/* Preview */

.preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.strip-preview-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

#strip-canvas {
    max-height: 600px;
    max-width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.download-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Templates Panel */

.templates-panel {
    width: 340px;
    flex-shrink: 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.template-card {
    border: 2px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.template-card:hover {
    border-color: var(--purple);
    transform: translateY(-3px);
}

.template-card.active {
    border-color: var(--pink);
    background: rgba(255, 107, 157, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.template-preview {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.template-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
}

/* Color Picker */

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Custom Text */

.text-input-group {
    margin-bottom: 24px;
}

.text-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.text-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-xs);
    background: var(--card-bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.text-input-group input:focus {
    outline: none;
    border-color: var(--pink);
}

/* ==================== LOADING / PERMISSION ==================== */

.permission-screen {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    text-align: center;
    padding: 24px;
}

.permission-screen .emoji-big {
    font-size: 5rem;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.permission-screen h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.permission-screen p {
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 400px;
}

/* ==================== FOOTER ==================== */

.footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--card-border);
    margin-top: 60px;
}

.footer .logo {
    font-size: 1.2rem;
    justify-content: center;
    margin-bottom: 8px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
    .booth-main {
        flex-direction: column;
        align-items: center;
    }

    .sidebar {
        width: 100%;
        max-width: 500px;
    }

    .captured-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .edit-layout {
        flex-direction: column;
        align-items: center;
    }

    .templates-panel {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 12px 16px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

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

    .captured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ==================== UTILITY ==================== */

.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none !important; }

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 40px;
}

.section-title .gradient-text {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--darker);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Number of photos selector */
.photos-count-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.photos-count-selector label {
    font-weight: 600;
    font-size: 0.9rem;
}

.count-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-display);
}

.count-btn:hover {
    border-color: var(--pink);
}

.count-btn.active {
    background: linear-gradient(135deg, var(--hot-pink), var(--purple));
    border-color: transparent;
}

/* ==================== PAGES ÉDITORIALES (location photobooth) ==================== */

.site-main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero--page {
    min-height: auto;
    padding: 130px 24px 40px;
}

.hero--page .hero-emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    animation: wiggle 2s ease-in-out infinite;
}

.hero--page h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
}

.page-content {
    position: relative;
    z-index: 1;
    padding: 20px 0 60px;
}

.page-content h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin: 40px 0 14px;
    scroll-margin-top: 90px;
}

.page-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 24px 0 8px;
    color: var(--pink);
}

.page-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content strong {
    color: var(--text);
    font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

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

.breadcrumb__sep {
    margin: 0 6px;
    opacity: 0.5;
}

/* Sommaire (TOC) */
.toc {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 32px;
}

.toc__title {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 12px;
}

.toc__list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
    line-height: 1.9;
}

.toc__list a {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
}

.toc__list a:hover {
    color: var(--pink);
}

/* Fun box */
.fun-box {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(196, 113, 245, 0.12));
    border: 1px solid rgba(255, 107, 157, 0.25);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin: 28px 0;
}

.fun-box__title {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--pink);
}

.fun-box p {
    margin-bottom: 0;
}

/* FAQ */
.faq-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 4px 20px;
}

.faq-item summary {
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    padding: 14px 0;
    list-style: none;
    position: relative;
    padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--pink);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item__answer {
    color: var(--text-muted);
    line-height: 1.7;
    padding: 0 0 16px;
}

/* Liens internes */
.internal-links {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 36px 0;
}

.internal-links__title {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 16px;
}

.internal-links__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.internal-links__grid a {
    display: block;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.internal-links__grid a:hover {
    border-color: var(--pink);
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Footer : maillage interne + partenaire */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin: 16px 0 12px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--pink);
}

.footer-partner {
    margin-top: 8px;
}

.footer-partner a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 700;
}

.footer-partner a:hover {
    text-decoration: underline;
}
