/* 9th Key Custom Styles - Gold Theme */

/* Global typography improvements for better readability */
body {
    font-family: var(--font-body);
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: var(--grey-dark) !important;
    background-color: var(--white-warm);
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--grey-dark);
    margin-bottom: 0.875rem;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-display);
    font-weight: 400 !important;
    color: var(--black-soft) !important;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

:root {
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Primary Gold Spectrum */
    --gold-pale: #FFF9E6;
    --gold-light: #F5E6C3;
    --gold-medium: #D4AF37;
    --gold-deep: #9A7D2E;
    --gold-rich: #6B5A1F;

    /* Legacy gold variables (keep for compatibility) */
    --gold-primary: #D4AF37;
    --gold-dark: #B8860B;
    --gold-darker: #996515;

    /* Neutrals */
    --black-pure: #000000;
    --black-soft: #1a1a1a;
    --grey-dark: #3d3d3d;
    --grey-medium: #757575;
    --grey-light: #e8e8e8;
    --white-pure: #ffffff;
    --white-warm: #fafaf8;

    /* Semantic Colors */
    --success: #2D5F3F;
    --info: #3A5A7E;
    --danger: #8B3A3A;
}

/* Override Bootstrap primary color with gold */
.bg-primary {
    background-color: var(--gold-dark) !important;
}

/* Primary buttons - gold brand color */
.btn-primary,
#next-btn {
    background: var(--gold-medium) !important;
    color: var(--black-soft) !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
    border: none !important;
}

.btn-primary:hover,
#next-btn:hover {
    background: var(--gold-deep) !important;
    color: var(--white-pure) !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

.text-primary {
    color: var(--gold-dark) !important;
}

.border-primary {
    border-color: var(--gold-dark) !important;
}

/* Refined hero section with animations and pulse effect */
.hero-section {
    background: linear-gradient(165deg,
        var(--gold-pale) 0%,
        var(--gold-light) 40%,
        var(--white-warm) 100%) !important;
    color: var(--black-soft);
    margin: -1.5rem -15px 1.5rem -15px;
    padding: 3rem 0 3.5rem !important;
    position: relative;
    overflow: hidden;
    text-shadow: none !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(212, 175, 55, 0.15) 0%,
        transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem) !important;
    font-weight: 400 !important;
    color: var(--black-soft) !important;
    margin-bottom: 1.25rem !important;
    letter-spacing: -0.02em;
    text-shadow: none !important;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-section h3 {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    font-weight: 400 !important;
    color: var(--grey-dark) !important;
    letter-spacing: 0;
    text-shadow: none !important;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-section .btn,
.hero-section a.btn {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.hero-section p {
    color: var(--grey-dark) !important;
    text-shadow: none !important;
}

.card {
    background: var(--white-pure);
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.25rem;
}

.card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: var(--black-pure);
    color: var(--gold-light);
    border: none;
    padding: 1.5rem 1.75rem;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: var(--gold-light) !important;
    margin-bottom: 0;
}

.card-header.bg-primary {
    background: var(--black-pure) !important;
    color: var(--gold-light) !important;
}

.card-body {
    padding: 2rem;
}

.question {
    background: var(--white-pure);
    border: 2px solid var(--grey-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s ease;
}

.question:hover {
    border-color: var(--gold-light);
}

.question-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--black-soft);
    margin-bottom: 1.5rem;
    line-height: 1.35;
}

/* Improved radio button styling with borders and hover states */
.form-check {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem !important;
    margin-bottom: 0.5rem !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 8px !important;
    background: #fafaf8 !important;
    transition: all 0.2s ease !important;
}

.form-check:hover {
    border-color: #D4AF37 !important;
    background: #FFF9E6 !important;
}

.form-check-input {
    margin-top: 0.4rem;
}

.form-check-input:checked {
    background-color: var(--gold-dark) !important;
    border-color: var(--gold-dark) !important;
}

.form-check-label {
    line-height: 1.45;
    font-size: 1rem;
    color: #2d2d2d;
    cursor: pointer;
}

.form-check-input:checked + .form-check-label {
    color: #1a1a1a !important;
    font-weight: 500 !important;
}

/* Improved progress bar visibility */
.progress {
    height: 21px !important;
    background-color: #e8e8e8 !important;
    border-radius: 6px !important;
}

.progress-bar {
    background: linear-gradient(90deg, #B8860B 0%, #996515 100%) !important;
}

.progress-text,
#progress-text {
    line-height: 2.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-light) !important;
    font-variant-numeric: tabular-nums;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 1.25rem 1rem;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Refined navbar styling - larger logo and better spacing */
.navbar {
    background: var(--black-pure) !important;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    min-height: 90px;
}

.navbar .container {
    max-width: 1200px;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--gold-light) !important;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-dark.bg-primary {
    background: var(--black-pure) !important;
}

.navbar-dark .navbar-brand {
    color: var(--gold-light) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(245, 230, 195, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--gold-light) !important;
}

.alert-heading {
    margin-bottom: 0.5rem;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Result page specific styles */
.display-4 {
    font-size: 2rem;
}

.text-center .progress {
    max-width: 200px;
    margin: 0 auto;
}

/* Result card with dramatic entrance */
.result-card {
    animation: revealResult 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Type badge with gold accent */
.type-badge {
    display: inline-block;
    background: linear-gradient(135deg,
        var(--gold-medium) 0%,
        var(--gold-deep) 100%);
    color: var(--white-pure);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    letter-spacing: 0.02em;
}

/* Interpretation text styling */
.interpretation-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--grey-dark);
}

.interpretation-text p {
    margin-bottom: 1.25rem;
}

.interpretation-text p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    float: left;
    line-height: 0.8;
    margin: 0.1rem 0.5rem 0 0;
    color: var(--gold-medium);
}

/* Gold accents for various elements */
.badge-primary {
    background-color: var(--gold-dark);
}

.alert-primary {
    background-color: var(--gold-lighter);
    border-color: var(--gold-primary);
    color: var(--gold-darker);
}

/* Links with gold hover effect */
a {
    color: var(--gold-dark);
}

a:hover {
    color: var(--gold-darker);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .question {
        padding: 1.5rem;
    }

    .form-check {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Ajustement du logo pour les petits écrans */
    .navbar {
        min-height: 70px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 55px;
    }
}

/* Print styles */
@media print {
    .hero-section {
        background: none !important;
        color: black !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes checkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

@keyframes revealResult {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Question transitions */
.question {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.3s ease-in-out;
}

.question.d-none {
    animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* Form check interaction */
.form-check:active {
    transform: scale(0.98);
}

/* Refined button system */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.01em;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Secondary button */
.btn-secondary {
    background: var(--white-pure);
    color: var(--grey-dark);
    border: 2px solid var(--grey-light) !important;
}

.btn-secondary:hover {
    background: var(--grey-light);
    border-color: var(--grey-medium) !important;
    color: var(--black-soft);
    transform: translateY(-2px);
}

/* Success button */
.btn-success {
    background: var(--success) !important;
    color: var(--white-pure) !important;
    box-shadow: 0 2px 8px rgba(45, 95, 63, 0.25);
    border: none !important;
}

.btn-success:hover {
    background: #234A2E !important;
    box-shadow: 0 4px 16px rgba(45, 95, 63, 0.35);
    transform: translateY(-2px);
}

/* Gold themed badges and pills */
.badge {
    padding: 0.35em 0.65em;
}

.badge-gold {
    background-color: var(--gold-primary);
    color: #333;
}

/* Refined footer styling */
footer {
    background: var(--black-pure);
    color: var(--grey-medium);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2.5rem 0 1.75rem;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--grey-medium);
}

footer a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--gold-medium);
}

/* Card hover effect with gold accent */
.card:hover {
    box-shadow: 0 8px 16px rgba(184, 134, 11, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}
/* Email Form Refinements */
.completion-header {
    background: linear-gradient(135deg,
        var(--success) 0%,
        #1e4028 100%);
    color: var(--white-pure);
    padding: 2rem;
    border-radius: 12px 12px 0 0;
}

.completion-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.completion-icon::after {
    content: '✓';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-pure);
}

.info-box {
    background: var(--gold-pale);
    border: 1px solid var(--gold-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box h5 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--gold-deep);
    margin-bottom: 0.75rem;
}

.privacy-notice {
    background: var(--white-warm);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    padding: 1.25rem;
    font-size: 0.9rem;
    color: var(--grey-dark);
}

.privacy-notice h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--black-soft);
    margin-bottom: 0.5rem;
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
}
/* Fix: Progress text visibility on dark card header */
.progress-text,
#progress-text {
    color: #FFF8DC !important;
}

/* Deliverable section styling */
.border-gold {
    border: 2px solid var(--gold-medium) !important;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.deliverable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deliverable-list li {
    padding: 0.625rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.5;
    color: var(--grey-dark);
}

.deliverable-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-medium);
    font-weight: bold;
    font-size: 1.2rem;
}
