/* ============================================
   LA PIE 2026 — Design System
   Soleil, plage & tropiques
   ============================================ */

/* --- CSS Variables --- */
:root {
  --sand: #FDF6EB;
  --sand-dark: #F0E0C6;
  --sand-deep: #E8D5B0;
  --ocean: #0891B2;
  --ocean-dark: #0E7490;
  --ocean-light: #22D3EE;
  --turquoise: #2DD4BF;
  --sun: #F59E0B;
  --sun-bright: #FBBF24;
  --sun-deep: #D97706;
  --coral: #F43F5E;
  --palm: #16A34A;
  --palm-light: #4ADE80;
  --sky: #7DD3FC;
  --text: #1E3A4C;
  --text-light: #5A7A8A;
  --text-muted: #94A3B8;
  --white: #FFFFFF;
  --bg: #FFFCF5;
  --bg-card: #FFFFFF;
  --border: rgba(0,0,0,0.08);
  --success: #16A34A;
  --danger: #EF4444;
}

/* --- Reset & Base --- */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--ocean); transition: color 0.2s; }
a:hover { color: var(--sun-deep); text-decoration: none; }

::selection {
  background: var(--sun-bright);
  color: var(--text);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* --- Navbar --- */
.navbar-lapie {
  background: linear-gradient(135deg, #52b7cf 0%, #28bbe3 100%);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(8,145,178,0.25);
}

.navbar-lapie .navbar-brand img {
  max-width: 50px;
  max-height: 50px;
}

.navbar-lapie .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.navbar-lapie .nav-link:hover,
.navbar-lapie .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
}

.navbar-lapie .nav-link.active {
  color: var(--sun-bright) !important;
  background: rgba(255,255,255,0.2);
}

.navbar-lapie .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.6rem;
}

.navbar-lapie .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%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Sidebar --- */
.sidebar-lapie {
  border-right: 1px solid var(--border);
  padding-top: 1.5rem;
}

.sidebar-lapie .nav-link {
  color: var(--text-light) !important;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.15rem;
  transition: all 0.25s ease;
}

.sidebar-lapie .nav-link:hover {
  color: var(--ocean) !important;
  background: rgba(8,145,178,0.06);
}

.sidebar-lapie .nav-link.font-weight-bold,
.sidebar-lapie .nav-link.active {
  color: var(--ocean) !important;
  background: rgba(8,145,178,0.08);
  font-weight: 500;
}

.sidebar-lapie .nav-link i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

/* --- Main Content --- */
.main-lapie {
  min-height: 85vh;
  padding: 2rem 0;
}

/* --- Page Header --- */
.page-header {
  margin-bottom: 2rem;
}

.page-header .page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.page-header .page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* --- Cards --- */
.card-lapie {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: hidden;
}

.card-lapie .card-header {
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
  color: var(--text);
  padding: 1.25rem 1.5rem;
}

.card-lapie .card-header h4,
.card-lapie .card-header h5 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.card-lapie .card-body {
  padding: 1.5rem;
}

/* --- Form Elements --- */
.form-lapie .form-group {
  margin-bottom: 1.25rem;
}

.form-lapie label,
.form-lapie .col-form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-lapie .form-control {
  background: var(--white);
  border: 1.5px solid var(--sand-dark);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  height: auto;
  min-height: 3rem;
}

.form-lapie select.form-control {
  background: var(--white);
  border: 1.5px solid var(--sand-dark);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  height: auto;
  min-height: 3rem;
  -webkit-appearance: menulist;
  appearance: menulist;
}

.form-lapie .form-control::placeholder {
  color: var(--text-muted);
}

.form-lapie .form-control:focus {
  border-color: var(--ocean);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
  color: var(--text);
}

.form-lapie select.form-control option {
  background: var(--white);
  color: var(--text);
}

.form-lapie .invalid-feedback {
  color: var(--coral);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.form-lapie .form-control.is-invalid {
  border-color: var(--coral);
}

.form-lapie .form-check-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

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

/* --- Buttons --- */
.btn-lapie {
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-deep) 100%);
  border: none;
  border-radius: 12px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-lapie:hover {
  background: linear-gradient(135deg, #52b7cf 0%, #28bbe3 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,158,11,0.3);
  color: var(--white);
  text-decoration: none;
}

.btn-lapie:focus {
  box-shadow: 0 0 0 3px rgba(245,158,11,0.3);
  color: var(--white);
}

.btn-lapie-block {
  display: block;
  width: 100%;
}

.btn-lapie-outline {
  background: transparent;
  border: 2px solid var(--ocean);
  color: var(--ocean);
}

.btn-lapie-outline:hover {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--white);
  transform: none;
  box-shadow: none;
}

.btn-lapie-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-lapie-danger {
  background: linear-gradient(135deg, var(--coral) 0%, #E11D48 100%);
}

.btn-lapie-danger:hover {
  background: linear-gradient(135deg, #FB7185 0%, var(--coral) 100%);
}

/* Override Bootstrap .btn-primary */
.btn-primary {
  background: linear-gradient(135deg, var(--sun) 0%, var(--sun-deep) 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 0.75rem 1.5rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  color: #fff !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #52b7cf 0%, #28bbe3 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.3) !important;
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(245,158,11,0.3) !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--palm) 0%, #15803D 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
}

/* btn-link */
.btn-link {
  color: var(--ocean) !important;
  font-size: 0.9rem;
}

.btn-link:hover {
  color: var(--sun-deep) !important;
}

/* --- Alerts --- */
.alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  border-radius: 12px;
}

.alert-danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  border-radius: 12px;
}

.alert-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  border-radius: 12px;
}

.alert-info {
  background: #ECFEFF;
  border: 1px solid #A5F3FC;
  color: #155E75;
  border-radius: 12px;
}

.alert .close {
  color: inherit;
  opacity: 0.6;
}

/* --- Tables --- */
.table-lapie {
  color: var(--text);
}

.table-lapie thead th {
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
}

.table-lapie td {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.table-lapie tbody tr:hover {
  background: rgba(8,145,178,0.03);
}

/* --- Badge / Status --- */
.badge-lapie {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-ocean {
  background: #ECFEFF;
  color: var(--ocean-dark);
  border: 1px solid #A5F3FC;
}

.badge-sun {
  background: #FFFBEB;
  color: var(--sun-deep);
  border: 1px solid #FDE68A;
}

.badge-coral {
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
}

.badge-success-lapie {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* --- Footer --- */
.footer-lapie {
  background: linear-gradient(135deg, #52b7cf 0%, #28bbe3 100%);
  padding: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.footer-lapie a {
  color: rgba(255,255,255,0.8);
}

.footer-lapie a:hover {
  color: var(--sun-bright);
}

.footer-lapie img {
  max-width: 60px;
  margin-bottom: 1rem;
}

/* --- Photo Profile --- */
.photo-profil-lapie {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ocean-light);
  box-shadow: 0 4px 20px rgba(8,145,178,0.15);
}

/* --- Team Cards --- */
.team-action-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.team-action-card:hover {
  border-color: var(--ocean);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(8,145,178,0.12);
  color: var(--text);
  text-decoration: none;
}

.team-action-card i {
  font-size: 2.5rem;
  color: var(--ocean);
  margin-bottom: 1rem;
  display: block;
}

.team-action-card:hover i {
  color: var(--sun);
}

.team-action-card .card-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

/* --- Tarif Cards --- */
.tarif-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tarif-card:hover {
  border-color: var(--ocean);
  box-shadow: 0 0 30px rgba(8,145,178,0.1);
}

.tarif-card .tarif-titre {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tarif-card .tarif-prix-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--sun);
  line-height: 1;
}

.tarif-card .tarif-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* --- Datepicker Override --- */
.datepicker {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
}

.datepicker table tr td,
.datepicker table tr th {
  color: var(--text) !important;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover {
  background: var(--ocean) !important;
  color: #fff !important;
}

.datepicker table tr td.today {
  background: var(--sun-bright) !important;
  color: var(--text) !important;
}

/* --- Auth Pages --- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(251,191,36,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(8,145,178,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo img {
  max-width: 70px;
  margin-bottom: 1rem;
}

.auth-logo h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 0.9;
  color: var(--text);
}

.auth-logo p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* --- Misc overrides --- */
.text-muted { color: var(--text-muted) !important; }

.card-header {
  background-color: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
  color: var(--text);
}

/* Bootstrap form-control override */
.form-control {
  background: var(--white);
  border: 1.5px solid var(--sand-dark);
  border-radius: 12px;
  color: var(--text);
  transition: all 0.25s ease;
}

.form-control:focus {
  border-color: var(--ocean);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
  color: var(--text);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control option {
  background: var(--white);
  color: var(--text);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sidebar-lapie {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .page-header .page-title {
    font-size: 2rem;
  }

  .main-lapie .container > .row > .col-md-10 {
    padding-left: 15px !important;
  }
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

/* --- Legacy compat --- */
.menu-left { border-right: none; }
.main { min-height: 85vh; }
.link-account { color: var(--text); }
.link-account:hover { color: var(--sun); }
#footer { display: none; }

/* --- Stripe Payment Integration --- */
.StripeElement {
  background: var(--white);
  height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--sand-dark);
  transition: all 0.25s ease;
}

.StripeElement--focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}

.StripeElement--invalid {
  border-color: var(--coral);
}

.name-card {
  background: var(--white) !important;
  border: 1.5px solid var(--sand-dark) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  padding: 10px 14px;
  width: 100%;
  height: 44px;
}

.name-card::placeholder {
  color: var(--text-muted) !important;
}

.name-card:focus {
  border-color: var(--ocean) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
  outline: none;
}

/* --- Old tarif classes override --- */
.tarif-titre {
  background: var(--sand) !important;
  color: var(--ocean-dark) !important;
  padding: 0.75rem 1.25rem;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

.tarif-sous-titre {
  color: var(--text-light);
}

.tarif-description {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Tropical decorative touches --- */
.card-lapie::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--sun-bright), var(--ocean-light), var(--turquoise), var(--sun));
  border-radius: 20px 20px 0 0;
}
