:root {
    --primary-color: #1e88e5;
    /* Bleu principal */
    --primary-light: #6ab7ff;
    /* Bleu clair */
    --primary-dark: #005cb2;
    /* Bleu foncé */
    --secondary-color: #f5f7fa;
    /* Fond gris très clair */
    --text-color: #37474f;
    /* Texte gris foncé */
    --text-light: #78909c;
    /* Texte gris clair */
    --white: #ffffff;
    /* Blanc pur */
    --success-color: #4caf50;
    /* Vert pour les actions de succès */
    --error-color: #f44336;
    /* Rouge pour les erreurs */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Ombre légère */
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    /* Ombre moyenne */
    --border-radius: 10px;
    /* Rayon de bordure standard */
    --transition: all 0.3s ease;
    /* Transition standard */
}

/* Base & Typography */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Navigation */
.navbar {
    background-color: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.navbar-dark .navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 136, 229, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--primary-color);
    background-color: rgba(30, 136, 229, 0.05);
}

.navbar-dark .navbar-nav .active>.nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: none;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.25);
}

.btn-outline-secondary {
    color: var(--text-color);
    border-color: #e0e0e0;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: #e0e0e0;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-header.bg-danger {
    background-color: var(--error-color) !important;
}

.card-header.bg-success {
    background-color: var(--success-color) !important;
}

.card-body {
    padding: 1.5rem;
}

/* Home Page */
.py-5 {
    padding: 3rem 0;
}

.bg-light {
    background-color: var(--secondary-color) !important;
}

.rounded-3 {
    border-radius: var(--border-radius) !important;
}

.progress {
    height: 0.75rem;
    border-radius: 50px;
    background-color: #e9ecef;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 50px;
}

/* Form Styling */
.form-control {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-text {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Loading Animation */
.spinner-border {
    color: var(--primary-color);
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Result Image */
#personalityImage {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

#personalityImage:hover {
    transform: scale(1.02);
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.modal-header,
.modal-footer {
    border: none;
}

.modal-body {
    padding: 2rem;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: var(--white) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.text-muted {
    color: var(--text-light) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .py-5 {
        padding: 2rem 0;
    }

    .card-body {
        padding: 1.25rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accent elements */
.accent-bg {
    position: relative;
    overflow: hidden;
}

.accent-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-light);
    opacity: 0.05;
    border-radius: 50%;
    z-index: -1;
}

/* Special elements for the concept page */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Custom styles for the personality visualization page */
.result-container {
    position: relative;
    padding: 2rem;
    overflow: hidden;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.result-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-color: rgba(30, 136, 229, 0.05);
    border-radius: 0 0 0 100%;
    z-index: 0;
}

/* Make sure everything in the result container is above the decorative element */
.result-container>* {
    position: relative;
    z-index: 1;
}

/* Styles supplémentaires pour les exemples d'auras */
.aura-example {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.aura-example img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    display: block;
}

.aura-example:hover img {
    transform: scale(1.03);
}

.aura-example .aura-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.aura-example:hover .aura-caption {
    transform: translateY(0);
}

/* Badge "Beta" */
.beta-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(30, 136, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0);
    }
}

/* Prix réduit mise en évidence */
.price-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    position: relative;
    font-weight: 600;
}

.price-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 20px;
    z-index: 0;
    animation: shine 3s infinite;
}

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

    100% {
        background-position: 200% 0;
    }
}

/* Style pour la section de répartition des frais */
.fee-breakdown {
    font-size: 0.85rem;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-top: 12px;
}

.fee-breakdown h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.fee-breakdown .fee-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.fee-breakdown .fee-item:not(:last-child) {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

/* Style pour les exemples d'auras sur la home page */
.example-aura-section {
    background-color: rgba(30, 136, 229, 0.03);
    border-radius: var(--border-radius);
    padding: 2rem 0;
    margin: 3rem 0;
}

.example-aura-section h2 {
    position: relative;
    display: inline-block;
}

.example-aura-section h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Ces styles doivent être ajoutés à votre fichier CSS existant (styles.css ou un nouveau fichier) */

/* Style pour le ruban "À venir" */
.ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

.ribbon span {
    font-size: 10px;
    font-weight: bold;
    color: #FFF;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    width: 100px;
    display: block;
    background: #FF9800;
    background: linear-gradient(#FF9800 0%, #F57C00 100%);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    position: absolute;
    top: 19px;
    right: -21px;
}

.ribbon span::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 100%;
    z-index: -1;
    border-left: 3px solid #F57C00;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #F57C00;
}

.ribbon span::after {
    content: "";
    position: absolute;
    right: 0px;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-right: 3px solid #F57C00;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #F57C00;
}

/* Style pour le badge Urgent */
.beta-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: #f44336;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

/* Style pour les boîtes fonctionnalités disponibles/à venir */
.card-header.bg-success {
    background-color: #4caf50 !important;
}

.card-header.bg-primary {
    background-color: #1e88e5 !important;
}

/* Style pour les icônes de fonctionnalités */
.list-group-item i.text-success {
    color: #4caf50 !important;
}

.list-group-item i.text-primary {
    color: #1e88e5 !important;
}

/* Animation pour le badge Urgent */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

/* Style pour les boutons CTA */
.bg-primary .btn-light {
    font-weight: 600;
    transition: all 0.3s ease;
}

.bg-primary .btn-light:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bg-primary .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}