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

:root {
  --sc-primary:      #FF6B35;
  --sc-primary-dark: #e55a2b;
  --sc-dark:         #1a1a2e;
  --sc-dark2:        #16213e;
  --sc-border:       #dee2e6;
  --sc-text:         #212529;
  --sc-muted:        #6c757d;
  --sc-card-shadow:  0 2px 12px rgba(0,0,0,.08);
  --sc-radius:       8px;

  --wf-white:    #ffffff;
  --wf-black:    #212529;
  --wf-gray-100: #f8f9fa;
  --wf-gray-200: #e9ecef;
  --wf-gray-300: #dee2e6;
  --wf-gray-400: #ced4da;
  --wf-gray-500: #adb5bd;
  --wf-gray-600: #6c757d;
  --wf-gray-700: #495057;
  --wf-gray-800: #343a40;
  --wf-hero-bg:  #1a1a2e;
  --wf-border:   #dee2e6;
}

html, body {
  background: #fff;
  color: var(--sc-text);
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.wf-logo-font {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
}

.btn-warning {
  background-color: var(--sc-primary) !important;
  border-color:     var(--sc-primary) !important;
  color: #fff !important;
  font-weight: 600;
}
.btn-warning:hover,
.btn-warning:focus {
  background-color: var(--sc-primary-dark) !important;
  border-color:     var(--sc-primary-dark) !important;
  color: #fff !important;
  box-shadow: 0 0 0 .2rem rgba(255,107,53,.35) !important;
}

.btn-outline-warning {
  color: var(--sc-primary) !important;
  border-color: var(--sc-primary) !important;
}
.btn-outline-warning:hover {
  background-color: var(--sc-primary) !important;
  color: #fff !important;
}

.text-warning { color: var(--sc-primary) !important; }
.bg-warning   { background-color: var(--sc-primary) !important; color: #fff !important; }
.badge.bg-warning { background-color: var(--sc-primary) !important; color: #fff !important; }

.form-control:focus, .form-select:focus {
  border-color: var(--sc-primary) !important;
  box-shadow: 0 0 0 .2rem rgba(255,107,53,.2) !important;
}

.page-link { color: var(--sc-primary); }
.page-link:hover { color: var(--sc-primary-dark); }
.page-item.active .page-link {
  background: var(--sc-primary);
  border-color: var(--sc-primary);
}

.nav-pills .nav-link.active { background: var(--sc-primary); }
.progress-bar { background: var(--sc-primary); }

.sc-navbar {
  background: #fff !important;
  border-bottom: 1px solid var(--sc-border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: .5rem 0;
  position: relative;
}

/* Logo toujours à gauche */
.sc-navbar-inner {
  display: flex;
  align-items: center;
}

.sc-navbar .navbar-brand {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--sc-primary) !important;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Liens de navigation avec icône + texte (style app mobile) */
.sc-nav-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: .3rem .7rem !important;
  font-size: .72rem;
  font-weight: 500;
  color: var(--wf-gray-600) !important;
  border-radius: 8px;
  transition: color .15s, background .15s;
  text-decoration: none;
  position: relative;
}
.sc-nav-icon i { font-size: 1.2rem; line-height: 1; }
.sc-nav-icon:hover { color: var(--sc-primary) !important; background: rgba(255,107,53,.06) !important; }
.sc-nav-icon.active { color: var(--sc-primary) !important; font-weight: 600; }
.sc-nav-icon.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--sc-primary);
  border-radius: 2px;
}

/* Badge message non lu */
.sc-nav-badge {
  position: absolute;
  top: 2px; right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Bouton compte utilisateur (desktop) */
.sc-user-menu-btn {
  background: transparent;
  border: 1px solid var(--sc-border);
  border-radius: 20px;
  padding: .25rem .6rem .25rem .25rem;
  color: var(--sc-text);
  transition: border-color .15s, box-shadow .15s;
}
.sc-user-menu-btn:hover, .sc-user-menu-btn:focus {
  border-color: var(--sc-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,.12);
  color: var(--sc-text);
}

/* Menu déroulant utilisateur */
.sc-user-dropdown { min-width: 200px; }
.sc-user-dropdown .dropdown-item { font-size: .88rem; padding: .5rem 1rem; }
.sc-user-dropdown .dropdown-item.text-danger:hover { background: rgba(239,68,68,.08); color: #ef4444; }

.sc-navbar .nav-link {
  color: var(--sc-text) !important;
  font-size: .88rem;
  font-weight: 500;
  padding: .35rem .75rem !important;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.sc-navbar .nav-link:hover  { color: var(--sc-primary) !important; background: rgba(255,107,53,.06) !important; }
.sc-navbar .nav-link.active { color: var(--sc-primary) !important; font-weight: 600; }

.sc-navbar .navbar-toggler        { border: none; padding: .25rem .4rem; color: var(--sc-text); }
.sc-navbar .navbar-toggler:focus  { box-shadow: none; }
.sc-navbar .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%2833,37,41,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile : liens de nav en ligne horizontale */
@media (max-width: 991px) {
  .sc-nav-icon { flex-direction: row; gap: .5rem; font-size: .88rem; padding: .55rem .75rem !important; }
  .sc-nav-icon i { font-size: 1rem; }
  .sc-nav-icon.active::after { display: none; }
  .sc-nav-icon.active { background: rgba(255,107,53,.08) !important; }
}

.sc-nav-cta {
  background: var(--sc-primary);
  color: #fff !important;
  border: none;
  padding: .42rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
  display: inline-block;
}
.sc-nav-cta:hover { background: var(--sc-primary-dark); color: #fff !important; }

.sc-search-item:hover { background: var(--wf-gray-100); }
.sc-highlight { background: rgba(255,107,53,.15); border-radius: 2px; padding: 0 2px; }

.dropdown-menu {
  border-radius: var(--sc-radius);
  border-color: var(--sc-border);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.dropdown-item:hover { background: rgba(255,107,53,.08); color: var(--sc-primary); }
.dropdown-divider { border-color: var(--sc-border); }

.sc-hero,
.wf-hero {
  background: linear-gradient(135deg, var(--sc-dark) 0%, var(--sc-dark2) 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.wf-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,107,53,.08);
  pointer-events: none;
}
.wf-hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,107,53,.05);
  pointer-events: none;
}

.wf-hero-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sc-primary);
  display: block;
  margin-bottom: .6rem;
}
.wf-hero h1, .sc-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.wf-hero p, .sc-hero p.lead { color: rgba(255,255,255,.8); font-size: 1rem; }

.wf-hero .btn-light {
  background: rgba(255,255,255,.15) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
  border-radius: 6px;
}
.wf-hero .btn-light:hover {
  background: rgba(255,255,255,.25) !important;
  color: #fff !important;
}
.wf-hero .btn-outline-light {
  border-color: rgba(255,255,255,.4) !important;
  color: rgba(255,255,255,.9) !important;
  border-radius: 6px;
}
.wf-hero .btn-outline-light:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}

.wf-section     { padding: 80px 0; }
.wf-section-sm  { padding: 48px 0; }
.wf-section-xs  { padding: 32px 0; }
.wf-section-border { border-top: 1px solid var(--sc-border); }

.wf-section-label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sc-primary);
  display: block;
  margin-bottom: .5rem;
}
.wf-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .85rem;
  color: var(--sc-text);
}
.wf-section-subtitle {
  color: var(--sc-muted);
  font-size: .95rem;
  max-width: 560px;
}

.wf-feature-num {
  font-size: .76rem;
  font-weight: 600;
  color: var(--sc-primary);
  display: block;
  margin-bottom: .4rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wf-placeholder { display: none !important; }
.wf-placeholder:has(img),
.wf-placeholder:has(canvas) {
  display: flex !important;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: var(--sc-radius);
  min-height: 200px;
  align-items: center;
  justify-content: center;
}

.sc-event-banner {
  background: linear-gradient(135deg, var(--sc-dark), var(--sc-dark2));
  border-radius: var(--sc-radius);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card, .sc-card, .wf-card {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-card-shadow);
  transition: box-shadow .2s, transform .2s;
}
.sc-card:hover, .wf-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.sc-card-img, .card-img-top {
  border-radius: var(--sc-radius) var(--sc-radius) 0 0;
  height: 180px;
  object-fit: cover;
}
.card-footer { background: transparent; border-top-color: var(--sc-border); border-radius: 0 0 var(--sc-radius) var(--sc-radius); }
.card-header { background: #f8f9fa; border-bottom-color: var(--sc-border); border-radius: var(--sc-radius) var(--sc-radius) 0 0; }

.wf-stat-box {
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  padding: 1.5rem 1.25rem;
  background: #fff;
  box-shadow: var(--sc-card-shadow);
}
.wf-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--sc-primary);
  line-height: 1;
}
.wf-stat-label {
  color: var(--sc-muted);
  font-size: .82rem;
  margin-top: .35rem;
}

.wf-testimonial {
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  padding: 1.5rem;
  background: #fff;
  box-shadow: var(--sc-card-shadow);
}
.wf-stars { color: #f59e0b; font-size: .9rem; letter-spacing: 2px; }

.wf-plan, .sc-plan {
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  padding: 1.75rem 1.5rem;
  position: relative;
  background: #fff;
}
.wf-plan-featured, .sc-plan-featured {
  border: 2px solid var(--sc-primary) !important;
  box-shadow: 0 8px 32px rgba(255,107,53,.15);
}
.sc-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sc-primary);
  color: #fff;
  padding: 3px 16px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 20px;
}
.wf-plan-price  { font-size: 2rem; font-weight: 800; color: var(--sc-text); }
.wf-plan-period { font-size: .85rem; color: var(--sc-muted); }
.wf-plan-check  { color: var(--sc-primary); font-weight: 700; }
.wf-plan-cross  { color: #ced4da; }

.sc-cta-section {
  background: linear-gradient(135deg, var(--sc-dark) 0%, var(--sc-dark2) 100%);
  color: #fff;
}
.sc-cta-section h2 { color: #fff; }
.sc-cta-section p  { color: rgba(255,255,255,.75); }

.sc-post-card { border-radius: var(--sc-radius); overflow: hidden; }
.sc-post-image { height: 200px; object-fit: cover; width: 100%; }
.sc-like-btn { border: none; background: none; color: var(--sc-muted); transition: color .15s; cursor: pointer; padding: 0; }
.sc-like-btn:hover, .sc-like-btn.liked { color: #ef4444; }
.sc-like-btn.liked .bi-heart-fill { display: inline !important; }
.sc-like-btn .bi-heart-fill { display: none; }

.sc-compose-area {
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: #fff;
  padding: 1.25rem;
  box-shadow: var(--sc-card-shadow);
}

.sc-conv-item {
  display: block;
  text-decoration: none;
  color: var(--sc-text);
  border-bottom: 1px solid var(--sc-border);
  transition: background .15s;
}
.sc-conv-item:hover  { background: #fff8f5; color: var(--sc-text); }
.sc-conv-item.active { background: rgba(255,107,53,.08); }

.sc-messages-body { display: flex; flex-direction: column; gap: 4px; }
.sc-message-bubble { max-width: 72%; padding: .55rem .9rem; font-size: .88rem; border-radius: 18px; line-height: 1.5; }
.sc-msg-mine  { background: var(--sc-primary); color: #fff; border-radius: 18px 18px 4px 18px; }
.sc-msg-other { background: #f1f3f5; color: var(--sc-text); border-radius: 18px 18px 18px 4px; }
.sc-msg-time  { font-size: .68rem; opacity: .65; margin-top: 2px; text-align: right; }

.sc-avatar-xl  { width: 80px;  height: 80px;  object-fit: cover; border-radius: 50%; }
.sc-avatar-lg  { width: 56px;  height: 56px;  object-fit: cover; border-radius: 50%; }
.sc-avatar-md  { width: 40px;  height: 40px;  object-fit: cover; border-radius: 50%; }
.sc-avatar-sm  { width: 32px;  height: 32px;  object-fit: cover; border-radius: 50%; }

.wf-search-type-btn {
  display: inline-block;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  border: 1px solid var(--sc-border);
  border-radius: 20px;
  color: var(--sc-text);
  text-decoration: none;
  transition: all .15s;
  background: #fff;
}
.wf-search-type-btn:hover,
.wf-search-type-btn.active {
  background: var(--sc-primary);
  border-color: var(--sc-primary);
  color: #fff;
}

.wf-footer {
  background: var(--sc-dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}
.wf-footer a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .88rem;
  display: block;
  padding: 2px 0;
  transition: color .15s;
}
.wf-footer a:hover { color: var(--sc-primary); }
.wf-footer-logo {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 2rem;
  color: var(--sc-primary) !important;
}
.wf-footer-nav-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: .75rem;
}
.wf-footer-nav ul { list-style: none; padding: 0; margin: 0; }
.wf-social-icons { display: flex; gap: .75rem; margin-top: .75rem; }
.wf-social-icons a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6); font-size: 1rem; transition: all .2s; text-decoration: none; padding: 0; }
.wf-social-icons a:hover { border-color: var(--sc-primary); color: var(--sc-primary); background: rgba(255,107,53,.1); }
.wf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.sc-event-type-btn {
  display: inline-block;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  border: 1px solid var(--sc-border);
  border-radius: 20px;
  color: var(--sc-text);
  text-decoration: none;
  transition: all .15s;
  background: #fff;
  cursor: pointer;
}
.sc-event-type-btn:hover,
.sc-event-type-btn.active {
  background: var(--sc-primary);
  border-color: var(--sc-primary);
  color: #fff;
}

.sc-section-img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--sc-radius);
  display: block;
}

.sc-feature-visual {
  background: linear-gradient(135deg, var(--sc-dark) 0%, var(--sc-dark2) 100%);
  border-radius: var(--sc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.sc-feature-visual::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,107,53,.22) 0%, transparent 70%);
  top: -80px; right: -80px;
  pointer-events: none;
}
.sc-feature-visual::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,107,53,.1) 0%, transparent 70%);
  bottom: -60px; left: -60px;
  pointer-events: none;
}
.sc-feature-visual > i {
  font-size: 5rem;
  color: rgba(255,107,53,.75);
  position: relative;
  z-index: 1;
}

.sc-profile-cover {
  height: 220px;
  background: linear-gradient(135deg, var(--sc-dark), var(--sc-dark2));
  border-radius: var(--sc-radius) var(--sc-radius) 0 0;
  position: relative;
}

.modal-content { border-radius: var(--sc-radius); border-color: var(--sc-border); }
.modal-header  { border-bottom-color: var(--sc-border); }
.modal-footer  { border-top-color: var(--sc-border); }

.alert { border-radius: var(--sc-radius); }

.sc-flash {
  position: fixed;
  top: 72px; right: 16px;
  z-index: 1080;
  min-width: 280px;
  max-width: 360px;
  animation: slideIn .25s ease;
}
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

.sc-divider { border-top: 1px solid var(--sc-border); margin: 2rem 0; }
.sc-locked-card { position: relative; }
.sc-locked-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.65);
  border-radius: var(--sc-radius);
  pointer-events: none;
  z-index: 1;
}
.sc-locked-card .btn { position: relative; z-index: 2; }

@media (max-width: 991px) {
  .wf-hero h1, .sc-hero h1 { font-size: 2rem; }
  .wf-section { padding: 56px 0; }
  .wf-section-title { font-size: 1.75rem; }
}
@media (max-width: 575px) {
  .sc-img-captcha { max-width: 100%; }
  .sc-img-captcha-grid { width: 100%; }
}
