:root {
    /* Modern Palette - Deep Violet & Vibrant Coral */
    --primary-color: #251F14;
    --primary-dark: #333;;
    --secondary-color: #ff7675;
    --accent-color: #fd79a8;
    --bg-gradient-start: #a29bfe;
    --bg-gradient-end: #6c5ce7;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Text Colors */
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --text-light: #dfe6e9;
    --bs-primary-rgb: #251F14;

    /* Spacing & Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
}

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

body {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
    background: url('http://01craft.fr/app-chantarine/assets/img/bg2.jpg');
    min-height: 100vh;
    font-family: 'calibri', serif;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
    background-size: 360px;
}

/* Animated Background Mesh */ 
body::before {
    content: '';
    width: 100%;
    height: 25vw;
    background: url('http://01craft.fr/app-chantarine/assets/img/background-top2.png');
    z-index: -1;
    background-size: cover;
    position: absolute;
}

body::after {
    content: '';
    background: url('http://01craft.fr/app-chantarine/assets/img/background-bottom2.png');
    width: 100%;
    display: block;
    background-size: cover;
    position: absolute;
    height: 26vw;
    z-index: 1;
    bottom: 0;
}

header {
    background: #251F14;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.57);
}

header h1 { 
    font-family: 'Satisfy', cursive;
    font-size: 2rem;
    margin: 20px auto;
    color: #FDFBF5;
}

nav {
  height: 75px;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Navbar - Glassmorphism */
.navbar {
    width: 90%;
    padding: 1rem 0;
    z-index: 10;
    margin: 0px auto;
}

.navbar+div {
    padding-top: 2rem;
}

.navbar-brand {
    font-family: 'Satisfy', cursive;
    font-size: 2rem;
    margin: 20px auto;
    color: #FDFBF5;
}

.nav-link {
    font-size: 1.1rem;
    color: #FDFBF5;
    padding: 0.8rem 1.2rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 8px;
    color: #FDFBF5;
}

.container {
  padding-top: 40px;
  padding-bottom: 100px;
  z-index: 2;
  position: relative;
}

.login_container {
  padding-top: 0;
  margin-top: 100px;
}

/* Cards - Premium Glass Look */
.card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  overflow: hidden;
  border-radius: var(--bs-border-radius-xxl) !important;
  background: #FDF5F2;
  box-shadow: 5px 5px 15px rgba(5, 5, 5, 0.27), inset 0 0px 40px rgb(223, 223, 223);
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.2);
}

.card-header {
    background: url('http://01craft.fr/app-chantarine/assets/img/bg4.jpg'), rgb(255, 255, 255);
    background-size: 360px;
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.card-body {
    padding: 2rem;
    background: #FDF5F2;
    box-shadow: inset 0 0px 40px rgb(223, 223, 223);
}


/* Buttons - Modern Gradient */
.btn {
    display: flex;
    gap: 8px;
    align-items: center;
    text-transform: uppercase;
    width: fit-content;
    font-size: 12px;
    padding: 8px 15px !important;
}

.btn:hover {
    border: transparent !important;
}

.btn-primary {
    background: linear-gradient(135deg, #685739 0%, #251F14D6 100%);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0px 20px #F39C124A;
    filter: brightness(1.1);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

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

.accordion, .accordion-header {
    background:#ffffff5e;
    --bs-accordion-bg:#fff0;
}

/* Typography & Elements */
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Geeeki', sans-serif;
    letter-spacing: 0.5px;
}

h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span {
    font-family: 'Arial', sans-serif;
    letter-spacing: 0px;
}

.badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge.bg-warning {
    background: #ffeaa7 !important;
    color: #d35400 !important;
}

.badge.bg-secondary {
    background: #b6b6b6 !important;
    color: #636e72 !important;
}

/* Stars */
.stars-container {
    display: inline-flex;
    gap: 4px;
}

.star {
    color: #b6b6b6;
}

.star.filled {
    color: #f39c12;
}

.star.half {
    background: linear-gradient(90deg, #f39c12 50%, #e0e0e0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star:hover {
    transform: scale(1.2);
}

/* Forms */
.form-control,
.form-select {
    background: rgb(232 234 255);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #00b894;
    color: #00b894;
}

.alert-danger {
    border-left-color: #d63031;
    color: #d63031;
}

.alert-info {
    border-left-color: #0984e3;
    color: #0984e3;
}

/* Utilities */
.main-container {
    padding: 40px 0;
}

.average-rating {
    background: rgba(108, 92, 231, 0.05);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.rating-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

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

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

.card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.text-xs {
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 10px;
    /* Space for hover bridge */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-header {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.footer-container {
    width: 75%;
    margin: 0px auto;
    padding:15px;
    background: url('http://01craft.fr/app-chantarine/assets/img/bg3.jpg');
    bottom: 0;
    position: absolute;
    left: 12.5%;
    text-align: center;
}

.footer-container p {
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 1.2rem;
}
