/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   Breakpoints: Mobile (< 768px), Tablet (768px-1024px), Desktop (> 1024px)
   ============================================ */

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

html {
  overflow-x: hidden;
}

:root {
  --navbar-height: 70px;
  --navbar-height-tablet: 80px;
  --navbar-height-desktop: 90px;
}

body {
  font-family: "Roboto", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #343a40;
  background-color: #fffbf7;
  line-height: 1.6;
  padding-top: var(--navbar-height);
  scrollbar-gutter: stable;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fffbf7;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #34495e;
  text-align: center;
  margin-top: 40px;
}

/* ============================================
   NAVBAR - MOBILE FIRST
   ============================================ */

.navbar {
  height: var(--navbar-height);
  padding: 5px 16px;
  display: flex;
  align-items: center;
  opacity: 98%;
  justify-content: space-between;
  box-sizing: border-box;
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: #34495e;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

.navbar-brand img {
  display: block;
  margin: 0;
  max-height: 100%;
}

.navbar-logo {
  width: auto;
  height: 65px;
  margin: 0;
  display: block;
  max-width: 100px;
  object-fit: contain;
  flex-shrink: 1;
}

.admin-navbar {
  position: relative;
}

.admin-navbar .navbar-brand {
  max-width: none;
  flex: 0 1 auto;
}

.admin-navbar .navbar-logo {
  max-width: none;
  height: 56px;
}

/* HAMBURGER MENU - MOBILE ONLY */
.hamburger {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background-color: #000;
  display: block;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* NAVIGATION MENU */
.nav-menu {
  position: absolute;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background-color: #fffbf7;
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-bottom: 1px solid #e5e7eb;
  z-index: 999;
}

.nav-menu.active {
  max-height: 9999px;
  overflow: visible;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  width: 100%;
  padding: 12px 0;
}

/* Nav list directly in navbar (for auth pages) */
.navbar > .nav-list {
  width: auto;
  padding: 0;
  flex-direction: row;
  margin-left: auto;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.navbar > .nav-list li {
  border-bottom: none;
}

.navbar > .nav-list .nav-link {
  padding: 0;
  display: inline-flex;
  border-bottom: none;
}

.nav-list li {
  border-bottom: 1px solid #f0f0f0;
}

.nav-link {
  color: black;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  display: block;
  padding: 12px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link:hover {
  color: #1a1a2e;
}

/* Site header actions - hide on mobile by default */
.site-header-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.nav-link.active {
  color: #1a1a2e;
  font-weight: 700;
  position: relative;
  padding-bottom: 6px;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e8b86d;
  border-radius: 2px;
}

/* DROPDOWN MENU MOBILE */
.dropdown-menu {
  display: none;
  position: static;
  background: #f9fafb;
  border-radius: 0;
  padding: 8px 0 8px 32px;
  min-width: auto;
  box-shadow: none;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.dropdown-menu.active {
  display: block !important;
}

.dropdown-menu li {
  list-style: none;
  border: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 0;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-menu a:hover {
  background: none;
  color: #1a1a2e;
}

.dropdown-menu a.active {
  background: none;
  color: #1a1a2e;
  font-weight: 700;
  padding-left: 8px;
  border-left: 3px solid #e8b86d;
}

.dropdown {
  position: relative;
}

.dropdown.active > .nav-link {
  color: #1a1a2e;
  font-weight: 700;
  position: relative;
  padding-bottom: 6px;
}

.dropdown.active > .nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e8b86d;
  border-radius: 2px;
}

.profile-dropdown {
  position: relative;
  cursor: pointer;
  border-top: 1px solid #f0f0f0;
}

.profile-dropdown .nav-link {
  padding: 12px 16px;
  cursor: pointer;
}

.profile-dropdown .dropdown-menu {
  padding: 8px 0;
}

.profile-dropdown .dropdown-menu.active {
  display: block;
}

.profile-dropdown:hover .dropdown-menu {
  display: block;
}

/* Hide admin nav by default */
.nav-list--admin {
  display: none !important;
}

html.admin-mode .nav-list--user {
  display: none !important;
}

html.admin-mode .nav-list--admin {
  display: flex !important;
}

/* Admin navbar styling */
.admin-navbar .nav-link {
  font-size: 1rem;
}

/* Desktop view - increase admin navbar font size */
@media (min-width: 768px) {
  .admin-navbar .nav-link {
    font-size: 1.1rem;
  }
}

/* Hamburger button visibility for admin navbar */
.hamburger-admin {
  display: flex;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}

@media (max-width: 767px) {
  .admin-navbar {
    padding-right: 16px;
  }

  .admin-navbar .hamburger-admin {
    position: absolute;
    right: 16px;
    top: 50%;
    margin-left: 0;
    transform: translateY(-50%);
  }

  .admin-navbar .navbar-logo {
    height: 56px;
  }
}

@media (min-width: 769px) {
  .hamburger-admin {
    display: none;
  }
}

/* ============================================
   FORMS - MOBILE FIRST
   ============================================ */

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.login-form {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
}

.login-form h1 {
  text-align: center;
  color: #212529;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.login-form label {
  display: block;
  margin-bottom: 5px;
  color: #34495e;
  font-weight: 500;
  font-size: 0.95rem;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 16px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="email"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.login-form input[type="submit"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-form input[type="submit"]:hover {
  background-color: #0056b3;
}

.error-message {
  color: #ff4d4f;
  margin-bottom: 15px;
  text-align: center;
  font-size: 0.9rem;
}

/* ============================================
   AUTHENTICATION PAGES - SIGNUP/REGISTER
   ============================================ */

.signup-page {
  background: #f9fafb;
  min-height: 100vh;
}

.auth-page {
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.signup-hero {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signup-form-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.08);
  padding: 24px;
  overflow: hidden;
}

.signup-form-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.signup-form-header h2 {
  font-size: 1.5rem;
  color: #1f2937;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.signup-form-header p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field-group--full {
  grid-column: 1 / -1;
}

.label-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
  margin-left: 4px;
}

.secondary-link {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.secondary-link a {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.secondary-link a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* FIELD GROUPS */
.field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.field-group label {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  border-color: #c9974a;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.field-group textarea {
  resize: vertical;
  min-height: 120px;
}

.field-group input[type="file"] {
  padding: 10px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
}

.field-group input[type="file"]:hover {
  border-color: #c9974a;
  background: #fffbf7;
}

.checkbox-group {
  margin: 16px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
}

.checkbox-label input {
  margin-top: 2px;
  transform: scale(1.2);
  cursor: pointer;
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
}

.checkbox-label span {
  line-height: 1.5;
}

/* FORM GROUPS - PROFILE PAGE */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #c9974a;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-feedback {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.form-feedback.success {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.form-feedback.error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

.form-feedback.is-success {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.form-feedback.is-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* BUTTONS */
.button-primary {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #b8860b 0%, goldenrod 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(184, 134, 11, 0.3);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.button-secondary {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #e5e7eb;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.button-secondary:hover {
  background: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.button-secondary:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.button-small {
  padding: 8px 14px;
  font-size: 0.9rem;
  margin-top: 0;
  width: auto;
}

.modal-close-btn {
  margin-top: 0;
}

.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #b8860b 0%, goldenrod 100%);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #966d03 0%, #b8860b 100%);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #1a1a2e;
  color: #ffffff;
  border: 1px solid #1a1a2e;
}

.btn-secondary:hover {
  background: #2c2c4a;
}

/* ============================================
   LAYOUT - MOBILE FIRST
   ============================================ */

.landing-main {
  padding: 16px;
  flex: 1;
}

.landing-shell {
  width: calc(100% - 32px);
  margin: 0 auto;
  padding: 0;
}

.devis-page .landing-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.login-main {
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  padding: 16px;
}

.login-shell {
  width: calc(100% - 32px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  padding: 0;
}

.login-hero {
  max-width: 100%;
}

.login-title {
  color: #111827;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.login-description {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

.login-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 12px 0;
}

.landing-title {
  font-family: "Kaushan Script", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  color: #111827;
  margin: 12px 0;
  text-align: center;
}

.landing-text {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.landing-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.landing-pills span {
  padding: 8px 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
}

/* LANDING PAGE SECTIONS */
.landing-section-heading {
  text-align: center;
  margin-bottom: 24px;
  padding: 12px 0;
}

.landing-story {
  margin-top: 48px;
  margin-bottom: 40px;
}

.landing-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.landing-placeholder {
  border-radius: 14px;
  background: linear-gradient(145deg, #f0f2f5 0%, #e8ecf0 100%);
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.landing-placeholder--hero {
  min-height: 280px;
}

.landing-placeholder--story {
  min-height: 220px;
}

.placeholder-inner {
  width: 100%;
  height: 100%;
}

.placeholder-icon {
  width: 40px;
  height: 40px;
  opacity: 0.6;
}

.placeholder-label {
  font-size: 0.82rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-text {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.7;
}

.story-text p {
  margin-bottom: 16px;
}

.story-text--centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.landing-text--caption {
  font-style: italic;
  color: #6b7280;
  margin-top: 16px;
  font-size: 0.88rem;
}

.landing-intro {
  margin-bottom: 40px;
}

.intro-subtitle {
  font-family: "Kaushan Script", cursive;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #c9974a;
  margin: 12px 0;
  font-weight: 600;
  text-align: center;
}

.intro-text {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
  max-width: 100%;
  margin: 12px 0;
}

.landing-gallery-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.landing-media-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(245, 247, 250, 0.98) 100%
  );
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.media-art {
  position: relative;
  width: 100%;
  height: 180px;
  margin-top: 12px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(232, 236, 241, 0.95) 0%,
    rgba(220, 226, 233, 0.96) 100%
  );
}

/* ============================================
   GALLERY - MOBILE FIRST
   ============================================ */

.landing-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.gallery-tile {
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-tile img:not(.navbar-logo) {
  width: 100%;
  aspect-ratio: 4/3;
  min-height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 12px 12px 0 0;
}

.gallery-tile .navbar-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px 12px 0 0;
}

.gallery-tile:hover img {
  transform: scale(1.05);
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #f0f2f5 0%, #e8ecf0 100%);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.gallery-placeholder .placeholder-icon {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

.gallery-placeholder:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-title {
  margin: 12px 12px 0 12px;
  color: #1a1a2e;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.gallery-title:hover {
  text-decoration: underline;
}

.gallery-description {
  margin: 4px 12px 12px 12px;
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.4;
}

.gallery-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-delete-btn:hover {
  background: #ef4444;
  transform: scale(1.1);
}

/* ============================================
   SECTIONS & GRIDS - MOBILE FIRST
   ============================================ */

.presentation-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}

.presentation-section.reverse {
  grid-template-columns: 1fr;
}

.presentation-text {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
}

.presentation-image {
  width: 100%;
  height: 250px;
  background: #e5e7eb;
  border-radius: 12px;
  object-fit: cover;
}

.presentation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.presentation-impact {
  font-family: "Kaushan Script", cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: #111827;
  line-height: 1.2;
  margin: 40px auto 24px;
  max-width: 100%;
}

.presentation-highlight h2 {
  font-family: "Kaushan Script", cursive;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #111827;
  margin-bottom: 16px;
}

.luxury-text {
  max-width: 100%;
  font-family: "Georgia", "Times New Roman", serif;
  color: #1f2937;
  font-size: 0.95rem;
}

.luxury-text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.strong-line {
  font-weight: 600;
}

.signature-line {
  font-style: italic;
  font-size: 1.1rem;
  color: #c9a347;
  margin-top: 24px;
}

/* ============================================
   CONTACT PAGE - MOBILE FIRST
   ============================================ */

.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.contact-left {
  display: none;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.contact-title {
  font-weight: 700;
  font-size: 1rem;
}

.contact-form {
  width: 100%;
  box-sizing: border-box;
}

.contact-form h2 {
  font-size: 1.1rem;
  margin: 16px 0 12px;
}

.contact-map {
  margin-top: 40px;
  text-align: center;
}

.contact-map h2 {
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.map-container {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 12px;
  height: 300px;
}

.opening-hours {
  margin-top: 20px;
}

.opening-hours h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.hours-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.day {
  font-weight: 600;
  flex-shrink: 0;
  min-width: 130px;
  padding-top: 2px;
}

.times {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time {
  white-space: nowrap;
}

/* ============================================
   LEGAL PAGE - MOBILE FIRST
   ============================================ */

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.legal-block {
  background: #ffffff;
  border-left: 4px solid #c9974a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.legal-block h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f2937;
}

.legal-block p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 12px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-meta {
  font-size: 0.9rem !important;
  color: #6b7280 !important;
}

/* ============================================
   PROFILE PAGE - MOBILE FIRST
   ============================================ */

.profile-page {
  padding: 20px 16px;
  background: #f9fafb;
}

.profile-container {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.profile-sidebar {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-nav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #1f2937;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-nav-item:hover {
  background: #f3f4f6;
}

.profile-nav-item.active {
  border-color: #e8b86d;
  background: #fdf6ec;
  color: #1a1a2e;
  font-weight: 600;
}

.profile-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.profile-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.profile-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #1f2937;
  font-weight: 700;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  width: 100%;
}

/* ============================================
   DEVIS PAGE - MOBILE FIRST
   ============================================ */

.devis-page {
  padding-top: var(--navbar-height);
}

.devis-page .landing-main {
  padding: 8px 8px 16px 8px;
}

.devis-page .landing-shell {
  width: 100%;
  margin: 0;
}

.devis-shell {
  max-width: none !important;
  width: 100%;
}

.devis-shell .landing-section-heading {
  margin: 0 0 16px 0;
  padding: 8px 0;
}

.devis-shell .landing-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.devis-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  border-bottom: 2px solid #c9974a;
  padding-bottom: 12px;
}

.conditional-form {
  display: none;
}

.conditional-form.active {
  display: flex;
}

.notification-message {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1rem;
  animation: slideDown 0.3s ease;
}

.notification-message.success {
  background-color: #dcfce7;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.notification-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  border-color: #c9974a;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.field-group input:disabled,
.field-group textarea:disabled,
.field-group select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.field-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox styling within form-section */
.checkbox-group {
  margin: 0;
}

.checkbox-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 0;
}

.checkbox-group .checkbox-label input {
  margin: 0;
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
}

.checkbox-group .checkbox-label span {
  font-weight: 600;
  color: #1f2937;
}

.checkbox-group input[type="text"] {
  margin-top: 8px;
}

.form-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.form-actions .button-primary,
.form-actions .button-secondary {
  width: auto;
  min-width: 120px;
  margin-top: 0;
}

/* ============================================
   FOOTER - MOBILE FIRST
   ============================================ */

.site-footer {
  border-top: 2px solid #e8b86d;
  margin-top: 40px;
  padding: 24px 16px;
  background-color: #1a1a2e;
  color: #fff;
}

.footer-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.footer-title {
  font-weight: bold;
  font-size: 0.95rem;
}

.footer-right {
  text-align: center;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 8px 12px;
  display: inline-block;
  font-size: 0.9rem;
  transition: 0.3s;
  margin: 4px;
}

.footer-link:hover {
  background-color: #e8b86d;
  color: #1a1a2e;
}

/* ============================================
   LIGHTBOX & MODAL - MOBILE FIRST
   ============================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: -1;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: #ffcc00;
}

.lightbox-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.lightbox-zoom-controls {
  position: absolute;
  top: 60px;
  right: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 10000;
}

.lightbox-zoom-out,
.lightbox-zoom-in,
.lightbox-zoom-reset {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.lightbox-zoom-out:hover,
.lightbox-zoom-in:hover,
.lightbox-zoom-reset:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.lightbox-zoom-level {
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  padding: 16px;
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  max-width: 100%;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #111827;
}

.modal-confirm,
.modal-alert {
  max-width: 400px;
  width: 90%;
  padding: 32px 24px;
  text-align: center;
}

.modal-confirm h2,
.modal-alert h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: #1f2937;
}

.modal-confirm p,
.modal-alert p {
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-actions .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-actions .btn-primary {
  background: #1a1a2e;
  color: white;
}

.modal-actions .btn-primary:hover {
  background: linear-gradient(135deg, #966d03 0%, #b8860b 100%);
}

.modal-actions .btn-secondary {
  background: #1a1a2e;
  color: #ffffff;
}

.modal-actions .btn-secondary:hover {
  background: #2c2c4a;
}

/* ============================================
   SERVICES GRID
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

.service-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  line-height: 1.7;
  color: #374151;
  font-size: 0.95rem;
}

/* ============================================
   TABS & DROPDOWNS STYLING
   ============================================ */

.admin-mode-toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;
  color: #1f2937;
  font-size: 0.95rem;
}

.admin-mode-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1a1a2e;
}

.dropdown-separator {
  height: 1px;
  background: #e5e7eb;
  margin: 5px 0;
}

/* HEADER BUTTONS (landing page) */
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.header-btn--ghost {
  background: transparent;
  border: 1.5px solid #1a1a2e;
  color: #1a1a2e;
}

.header-btn--ghost:hover {
  background: #1a1a2e;
  color: #ffffff;
}

.header-btn--primary {
  background: #1a1a2e;
  border: 1.5px solid #1a1a2e;
  color: #e8b86d;
}

.header-btn--primary:hover {
  background: #2c2c4a;
  border-color: #2c2c4a;
  color: #f0cc82;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   TABLET BREAKPOINT (768px)
   ============================================ */

@media (min-width: 768px) {
  :root {
    --navbar-height: var(--navbar-height-tablet);
  }

  body {
    padding-top: var(--navbar-height-tablet);
  }

  .navbar {
    height: var(--navbar-height-tablet);
    padding: 12px 32px;
    justify-content: space-between;
  }

  .navbar-logo {
    height: 80px;
    max-width: 150px;
  }

  .admin-navbar .navbar-logo {
    height: 80px;
    max-width: 150px;
  }

  .hamburger {
    display: none;
  }

  .nav-menu {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-bottom: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    margin-left: 40px;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    border-bottom: none;
  }

  .nav-list li {
    border-bottom: none;
  }

  /* Keep admin nav hidden even in tablet view unless admin-mode is active */
  .nav-list--admin {
    display: none !important;
  }

  html.admin-mode .nav-list--admin {
    display: flex !important;
  }

  .nav-link {
    padding: 0;
    font-size: 0.95rem;
    display: inline;
  }

  .profile-dropdown {
    border-top: none;
  }

  /* Show header actions on tablet+ */
  .site-header-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    margin-left: auto;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
  }

  .dropdown-menu.active {
    display: block;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .profile-dropdown .dropdown-menu {
    left: auto;
    right: 0;
    padding: 10px 0;
  }

  .profile-dropdown .dropdown-menu.active {
    display: block;
  }

  .dropdown-menu a {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .landing-shell {
    width: min(100%, calc(100% - 64px));
    padding: 0 32px;
    margin: 0 auto;
  }

  .devis-page .landing-shell {
    width: 100% !important;
    padding: 0 8px !important;
    margin: 0 !important;
  }

  .login-shell {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 0 32px;
    margin: 0 auto;
    width: min(100%, calc(100% - 64px));
  }

  .landing-main,
  .login-main {
    padding: 32px 0;
  }

  .landing-hero {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .landing-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .presentation-section {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-section {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-left {
    display: block;
  }

  .contact-left .presentation-image {
    height: 100%;
    min-height: 300px;
    background: #e5e7eb;
    border-radius: 12px;
  }

  .profile-container {
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: start;
  }

  .profile-nav {
    flex-direction: column;
  }

  .profile-nav-item {
    justify-content: flex-start;
    width: 100%;
  }

  .devis-shell {
    max-width: none !important;
    width: 100%;
  }

  .form-actions {
    flex-direction: row;
    justify-content: center;
  }

  .form-actions .button-primary,
  .form-actions .button-secondary {
    min-width: 150px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-page .signup-hero {
    max-width: 700px;
  }

  .form-grid .field-group--full {
    grid-column: 1 / -1;
  }

  .hours-row {
    grid-template-columns: 150px 1fr 1fr;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-right {
    text-align: right;
  }
}

/* ============================================
   DESKTOP BREAKPOINT (1024px)
   ============================================ */

@media (min-width: 1024px) {
  :root {
    --navbar-height: var(--navbar-height-desktop);
  }

  body {
    padding-top: var(--navbar-height-desktop);
  }

  .navbar {
    height: var(--navbar-height-desktop);
    padding: 0 40px;
    justify-content: space-between;
  }

  .navbar-logo {
    height: 70px;
    max-width: 160px;
  }

  .admin-navbar .navbar-logo {
    height: 70px;
    max-width: 160px;
  }

  .landing-shell {
    width: min(1200px, 100%);
    padding: 0 48px;
  }

  .login-shell {
    width: min(1200px, 100%);
    padding: 0 48px;
  }

  .landing-main,
  .login-main {
    padding: 40px 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .landing-shell,
  .login-shell {
    width: min(1200px, calc(100% - 96px));
  }

  .devis-page .landing-shell {
    width: 100%;
    padding: 0 8px;
    margin: 0;
  }

  .devis-shell {
    max-width: none !important;
    width: 100%;
  }
}

/* ============================================
   SIDE PANEL - DEVIS DETAILS
   ============================================ */

.devis-side-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.devis-side-panel.open {
  right: 0;
}

.devis-panel-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.devis-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
  flex-shrink: 0;
}

.devis-panel-header h2 {
  font-size: 1.25rem;
  color: #34495e;
  margin: 0;
}

.devis-panel-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.devis-panel-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.devis-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* BON DE DEVIS STYLING */
.devis-bon {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bon-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px;
}

.bon-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bon-header h3 {
  font-size: 1.125rem;
  color: #1f2937;
  margin: 0;
}

.bon-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: capitalize;
}

.bon-section {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #c9974a;
}

.bon-section h4 {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bon-section p {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 8px 0;
  line-height: 1.5;
}

.devis-details-section {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.devis-details-section h4 {
  font-size: 0.95rem;
  color: #374151;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.devis-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-item {
  font-size: 0.9rem;
  color: #4b5563;
  padding: 8px;
  background: #f3f4f6;
  border-radius: 4px;
}

.detail-item strong {
  color: #1f2937;
  display: inline-block;
  min-width: 120px;
}

.prix-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
  border-left-color: #c9974a !important;
}

.prix-section p {
  color: #78350f;
}

.prix-section.empty {
  background: #f3f4f6 !important;
}

.prix-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 8px;
  border: 2px solid #c9974a;
}

.prix-label {
  font-size: 0.95rem;
  color: #374151;
  font-weight: 600;
}

.prix-value {
  font-size: 1.75rem;
  color: #c9974a;
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #b8860b 0%, goldenrod 100%);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #966d03 0%, #b8860b 100%);
}

.btn-secondary {
  background: #1a1a2e;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #d1d5db;
}

@media (max-width: 768px) {
  .devis-side-panel {
    width: 100%;
    right: -100%;
  }

  .devis-panel-header {
    padding: 16px;
  }

  .devis-panel-body {
    padding: 16px;
  }

  .landing-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-map {
    margin-top: 60px;
  }

  .hours-row {
    grid-template-columns: 180px 150px 150px;
  }

  .presentation-impact {
    margin: 80px auto 40px;
  }
}

.liste-devis-page {
  padding-top: var(--navbar-height);
}

.devis-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.devis-tab {
  padding: 10px 24px;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.devis-tab:hover {
  color: #374151;
}

.devis-tab--active {
  color: #c9974a;
  border-bottom-color: #c9974a;
}

.devis-filter-section {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: #c9974a;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #c9974a;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
  display: none;
  transition: color 0.2s ease;
  border-radius: 4px;
}

.search-clear-btn:hover {
  color: #6b7280;
  background: #f3f4f6;
}

.devis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.devis-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.devis-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.devis-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    180deg,
    rgba(232, 236, 241, 0.95) 0%,
    rgba(220, 226, 233, 0.96) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1f2937;
  font-size: 2rem;
  font-weight: 700;
  padding: 16px;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
}

.devis-ref-badge {
  display: inline-block;
  background: #1a1a2e;
  color: #e8b86d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: monospace;
  white-space: nowrap;
}

.devis-ref-badge--large {
  font-size: 0.9rem;
  padding: 4px 14px;
}

.devis-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.devis-card-title-row h3 {
  margin: 0;
}

.devis-card-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.devis-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.devis-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #6b7280;
}

.devis-card-info span {
  display: flex;
  justify-content: space-between;
}

.devis-card-label {
  font-weight: 600;
  color: #1f2937;
}

.devis-card-value {
  color: #6b7280;
}

.devis-link {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.devis-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

.devis-card-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  margin-top: 8px;
}

.devis-card-status.pending {
  background: #fef08a;
  color: #b45309;
}

.devis-card-status.sent {
  background: #bfdbfe;
  color: #1e40af;
}

.devis-card-status.accepted {
  background: #dcfce7;
  color: #166534;
}

.devis-card-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.devis-card-footer {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
}

.devis-card-button {
  padding: 10px 18px;
  background: linear-gradient(135deg, #b8860b 0%, goldenrod 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.devis-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(184, 134, 11, 0.3);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 1.1rem;
}

/* MODAL STYLES */
.modal-devis-info {
  background: #f9fafb;
  border-left: 4px solid #c9974a;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.modal-devis-info p {
  margin: 8px 0;
  color: #374151;
}

.modal-devis-info strong {
  color: #1f2937;
  font-weight: 600;
}

.pricing-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-form .field-group {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

.modal-actions .btn {
  width: auto;
  margin: 0;
  padding: 10px 18px;
}

.modal-content h2 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 20px;
  font-weight: 700;
}

/* LINES/ANNOTATIONS STYLING */
.lines-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lines-header label {
  font-weight: 600;
  color: #1f2937;
}

.btn-add-line {
  background: linear-gradient(135deg, #b8860b 0%, goldenrod 100%);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.btn-add-line:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.lines-container {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  max-height: 300px;
  overflow-y: auto;
}

.no-lines-message {
  color: #9ca3af;
  font-size: 0.9rem;
  text-align: center;
  padding: 20px 10px;
  margin: 0;
}

.line-item {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 10px;
  align-items: center;
}

.line-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 80px 100px 120px;
  gap: 8px;
  align-items: center;
}

.line-description {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
}

.line-description:readonly {
  background: #f3f4f6;
  cursor: default;
}

.line-quantity,
.line-price {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
}

.line-quantity:focus,
.line-price:focus {
  outline: none;
  border-color: #c9974a;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.1);
}

.line-total {
  font-weight: 600;
  color: #c9974a;
  font-size: 0.85rem;
  white-space: nowrap;
}

.btn-remove-line {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-remove-line:hover {
  background: #fecaca;
}

@media (max-width: 600px) {
  .line-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .line-content {
    grid-template-columns: 1fr 1fr;
  }

  .line-description {
    grid-column: 1 / -1;
  }

  .line-total {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .btn-remove-line {
    margin-left: auto;
  }
}

/* Button styling for pricing modal submit */
.btn-submit-pricing {
  background: linear-gradient(135deg, #b8860b 0%, goldenrod 100%) !important;
  color: #ffffff !important;
}

.btn-submit-pricing:hover {
  background: linear-gradient(135deg, #966d03 0%, #b8860b 100%) !important;
}

.btn-submit-pricing:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* PRICE SUMMARY STYLING */
.price-summary {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.price-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  color: #1f2937;
}

.price-summary-row:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

.price-summary-row span:first-child {
  font-weight: 500;
}

.price-summary-row span:last-child {
  font-weight: 600;
  color: #6b7280;
}

.price-summary-row.total {
  margin-top: 8px;
  padding-top: 12px;
  padding-bottom: 8px;
  border-top: 2px solid #d1d5db;
  font-size: 1rem;
}

.price-summary-row.total span:first-child {
  font-weight: 700;
  color: #1f2937;
}

.price-summary-row.total span:last-child {
  font-size: 1.2rem;
  color: #c9974a;
  font-weight: 700;
}

/* USER DEVIS LINES SELECTION */
.devis-lines-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.devis-lines-section h4 {
  margin-bottom: 12px;
  color: #1f2937;
  font-size: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.devis-line-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.devis-line-checkbox:hover {
  background: #f3f4f6;
  border-color: #c9974a;
}

.devis-line-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  cursor: pointer;
  margin-top: 2px;
}

.devis-line-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.devis-line-description {
  flex: 1;
  min-width: 150px;
}

.devis-line-description strong {
  color: #1f2937;
  display: block;
  margin-bottom: 4px;
  word-break: break-word;
}

.devis-line-description small {
  color: #6b7280;
}

.devis-line-price {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: #c9974a;
}

.devis-lines-total {
  background: white;
  border: 2px solid #c9974a;
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mobile responsiveness for annotations */
@media (max-width: 768px) {
  .devis-lines-section {
    padding: 12px;
    margin: 16px 0;
  }

  .devis-line-checkbox {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }

  .devis-line-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .devis-line-info {
    flex-direction: column;
    gap: 8px;
  }

  .devis-line-description {
    min-width: 100%;
  }

  .devis-line-price {
    text-align: left;
    white-space: normal;
  }

  .devis-lines-total {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    gap: 8px;
  }

  .devis-lines-total span:last-child {
    align-self: flex-end;
    width: 100%;
    text-align: right;
  }
}

.devis-accept-section {
  margin-top: 20px;
  padding: 16px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.devis-accept-section .final-price {
  font-size: 1.2rem;
  color: #c9974a;
  font-weight: 700;
}

/* ── Images jointes devis ──────────────────── */
.devis-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.devis-image-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  transition:
    opacity 0.2s,
    border-color 0.2s;
  cursor: zoom-in;
}

.devis-image-thumb:hover {
  border-color: #c9974a;
}

.devis-image-thumb:hover {
  opacity: 0.9;
}

/* Aperçu avant envoi */
.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.image-preview-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #c9974a;
}

.btn-accept-devis {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-accept-devis:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.btn-accept-devis:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-reject-devis {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-reject-devis:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
}

.btn-reject-devis:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   TABLET BREAKPOINT (768px) - DEVIS UPDATES
   ============================================ */

@media (min-width: 768px) {
  .devis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-group {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .filter-group label {
    white-space: nowrap;
    margin: 0;
  }

  .filter-group select {
    width: auto;
    flex: 1;
    max-width: 200px;
  }

  .modal-content {
    width: 90%;
    max-width: 500px;
  }
}

/* ============================================
   DESKTOP BREAKPOINT (1024px) - DEVIS UPDATES
   ============================================ */

@media (min-width: 1024px) {
  .devis-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .devis-filter-section {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .filter-group {
    flex-direction: row;
    align-items: center;
    margin: 0;
  }

  .filter-group label {
    white-space: nowrap;
    margin: 0;
    font-size: 0.95rem;
  }

  .filter-group select {
    width: 200px;
  }

  .modal-content {
    width: 90%;
    max-width: 600px;
  }
}

@media print {
  header,
  .navbar,
  .footer,
  .site-footer {
    display: none;
  }

  body {
    padding-top: 0;
  }

  .modal {
    display: none;
  }
}

/* ============================================
   PDF DOWNLOAD BUTTON
   ============================================ */

.devis-pdf-section {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.devis-pdf-section h4 {
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 12px;
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.btn-download-pdf:hover {
  background: linear-gradient(135deg, #0052a3 0%, #00408a 100%);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  transform: translateY(-2px);
}

.btn-download-pdf:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

/* ============================================
   DEVIS TRACKING PAGE - SUIVI_DEVIS.EJS
   ============================================ */

.devis-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #1a1a2e;
  color: #1a1a2e;
}

.filter-btn.active {
  background: linear-gradient(135deg, #b8860b 0%, goldenrod 100%);
  border-color: #b8860b;
  color: #ffffff;
}

.devis-list {
  width: 100%;
}

.devis-list-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.devis-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.devis-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 12px;
}

.devis-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f2937;
}

.devis-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-sent {
  background: #bfdbfe;
  color: #1e40af;
}

.status-accepted {
  background: #c6f6d5;
  color: #22543d;
}

.status-rejected {
  background: #fecaca;
  color: #7f1d1d;
}

.status-in-progress {
  background: #fef3c7;
  color: #92400e;
}

.status-completed {
  background: #86efac;
  color: #15803d;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.status-archived {
  background: #d1d5db;
  color: #374151;
}

.devis-card-body {
  margin-bottom: 16px;
}

.devis-card-body p {
  margin: 8px 0;
  color: #4b5563;
}

.devis-card-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #b8860b 0%, goldenrod 100%);
  color: #ffffff;
}

.btn-secondary {
  background: #1a1a2e;
  color: #ffffff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.empty-message,
.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 1.1rem;
}

.error-message {
  color: #dc2626;
}

.status-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.timeline-item.active {
  opacity: 1;
  font-weight: 600;
  color: #1f2937;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

.timeline-item.active .timeline-marker {
  background: #c9974a;
}

/* ============================================
   PRESTATIONS PAGE - MOBILE FIRST
   ============================================ */

.prestations-main {
  min-height: 100vh;
  padding: 0;
}

.prestations-hero {
  background: linear-gradient(135deg, #fffbf7 0%, #faf7f2 100%);
  padding: 30px 20px;
  text-align: center;
}

.prestations-title {
  font-family: "Kaushan Script", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #111827;
  font-weight: 600;
  line-height: 1.2;
  margin: 12px 0;
}

.prestations-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  min-height: auto;
}

/* FILTERS SIDEBAR */
.prestations-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 600px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Custom scrollbar for filters */
.prestations-filters::-webkit-scrollbar {
  width: 8px;
}

.prestations-filters::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.prestations-filters::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.prestations-filters::-webkit-scrollbar-thumb:hover {
  background: #c9974a;
}

.filters-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filters-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #34495e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filters-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
  min-height: 32px;
}

.filter-checkbox:hover {
  background: #f3f4f6;
}

.filter-checkbox input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #c9974a;
  flex-shrink: 0;
}

.filter-checkbox span {
  font-size: 0.9rem;
  color: #495057;
  user-select: none;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.filters-search-input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #f9fafb;
  transition: all 0.2s ease;
}

.filters-search-input:focus {
  outline: none;
  border-color: #c9974a;
  background: #fff;
}

.filters-search-input::placeholder {
  color: #9ca3af;
}

.filters-select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
  transition: border 0.2s ease;
}

.filters-select:hover,
.filters-select:focus {
  border-color: #c9974a;
  outline: none;
}

.filters-clear-btn {
  padding: 10px 16px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filters-clear-btn:hover {
  background: #e5e7eb;
  color: #34495e;
}

/* MAIN CONTENT */
.prestations-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prestations-search-bar {
  display: flex;
  justify-content: center;
}

.prestations-search-input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 30px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.prestations-search-input:focus {
  outline: none;
  border-color: #c9974a;
  box-shadow: 0 0 8px rgba(184, 134, 11, 0.2);
}

.prestations-search-input::placeholder {
  color: #9ca3af;
}

/* CATALOG */
.prestations-catalog {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catalog-title {
  font-size: 1.3rem;
  color: #34495e;
  font-weight: 600;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 4px;
}

.catalog-pagination-arrow,
.catalog-pagination-page {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #a98218;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.catalog-pagination-arrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
}

.catalog-pagination-arrow:hover:not(:disabled) {
  color: #8d6a14;
}

.catalog-pagination-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}

.catalog-pagination-page {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #d7c07d 0%, #bf9a34 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(184, 134, 11, 0.16);
}

.catalog-pagination-page:hover {
  box-shadow: 0 8px 18px rgba(184, 134, 11, 0.2);
}

.catalog-pagination-page[aria-current="page"] {
  cursor: default;
}

.catalog-pagination-summary {
  color: #8f8161;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.prestations-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.catalog-page {
  background: #fffdf8;
  border: 1px solid rgba(184, 134, 11, 0.1);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  padding: 22px;
  page-break-after: always;
  break-after: page;
}

.catalog-page:last-child {
  page-break-after: auto;
  break-after: auto;
}

.catalog-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(184, 134, 11, 0.12);
}

.catalog-page-header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.catalog-page-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #aa8625;
  font-weight: 700;
  margin-bottom: 4px;
}

.catalog-page-title {
  font-size: 1.5rem;
  color: #3f3a2e;
  font-weight: 800;
  margin: 0;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}

.catalog-page-meta {
  display: none;
}

.catalog-page-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prestation-card {
  background: #fffefb;
  border: 1px solid rgba(184, 134, 11, 0.14);
  border-left: 3px solid rgba(184, 134, 11, 0.48);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.prestation-card:hover {
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.prestation-name {
  font-size: 1.1rem;
  color: #40372b;
  font-weight: 700;
  margin: 0;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.prestation-name::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(
    90deg,
    rgba(184, 134, 11, 0.45),
    rgba(184, 134, 11, 0.1)
  );
}

.prestation-price {
  margin: 10px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6d5a2d;
}

.loading-message,
.error-message,
.no-results {
  text-align: center;
  padding: 40px 20px;
  font-size: 1rem;
  color: #6b7280;
}

.error-message {
  color: #dc2626;
  font-weight: 600;
}

@media (min-width: 768px) {
  .prestations-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px;
  }

  .prestations-filters {
    position: sticky;
    top: calc(var(--navbar-height-tablet) + 20px);
    height: fit-content;
    max-height: calc(100vh - var(--navbar-height-tablet) - 40px);
  }

  .prestations-search-input {
    max-width: 500px;
  }

  .prestations-list {
    gap: 24px;
  }

  .catalog-page {
    padding: 28px;
  }

  .catalog-page-grid {
    gap: 14px;
  }

  .catalog-pagination {
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .prestations-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .prestations-filters {
    top: calc(var(--navbar-height-desktop) + 30px);
    max-height: calc(100vh - var(--navbar-height-desktop) - 60px);
  }

  .prestations-search-input {
    max-width: 600px;
  }

  .prestations-list {
    gap: 28px;
  }

  .catalog-page {
    padding: 34px;
  }

  .catalog-page-grid {
    gap: 16px;
  }

  .prestation-card {
    padding: 18px 22px;
  }

  .prestation-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 575px) {
  .catalog-pagination {
    justify-content: flex-start;
  }

  .catalog-pagination-summary {
    width: 100%;
    padding-left: 4px;
  }

  .catalog-page {
    padding: 18px;
  }

  .catalog-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-page-title {
    font-size: 1.25rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ============================================
   LANDING PAGE NAVBAR OVERRIDES
   ============================================ */

body.landing-page {
  padding-top: 72px;
}

.landing-header .navbar {
  height: 72px;
  padding: 0 20px;
}

.landing-header .navbar-logo {
  height: 52px;
  max-width: 110px;
}

.landing-page .landing-hero {
  grid-template-columns: 1fr;
}

.landing-page .landing-copy {
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  body.landing-page {
    padding-top: 80px;
  }

  .landing-header .navbar {
    height: 80px;
    padding: 0 32px;
  }

  .landing-header .navbar-logo {
    height: 60px;
    max-width: 130px;
  }

  .landing-page .landing-hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .landing-story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  body.landing-page {
    padding-top: 80px;
  }

  .landing-header .navbar {
    height: 80px;
    padding: 0 40px;
  }

  .landing-header .navbar-logo {
    height: 60px;
    max-width: 130px;
  }
}

@media print {
  .catalog-page {
    box-shadow: none;
    border: 1px solid #c9974a;
    page-break-after: always;
    break-after: page;
    margin-bottom: 0;
  }

  .catalog-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}

/* ============================================
   MOBILE FILTERS MODAL
   ============================================ */

/* Bouton flottant filtres (caché par défaut) */
.filters-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a1a2e;
  color: #e8b86d;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  display: none;
}

.filters-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.filters-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Modal des filtres */
.filters-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
  animation: fadeIn 0.3s ease;
}

.filters-modal.active {
  display: flex;
  align-items: flex-end;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.filters-modal-content {
  background: white;
  width: 100%;
  max-height: 80vh;
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.filters-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: white;
}

.filters-modal-header h2 {
  font-size: 1.3rem;
  color: #34495e;
  font-weight: 700;
  margin: 0;
}

.filters-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.filters-close-btn:hover {
  color: #34495e;
}

.filters-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

/* Mobile layout */
@media (max-width: 767px) {
  .filters-toggle-btn {
    display: flex;
  }

  .prestations-filters {
    display: none;
  }

  .prestations-container {
    padding: 20px 0;
  }

  .prestations-content {
    padding: 20px;
  }

  .filter-checkbox {
    align-items: flex-start;
  }

  .filter-checkbox span {
    flex: 1;
    padding-top: 1px;
  }
}

/* ============================================
   PAGE UTILISATEURS ADMIN
   ============================================ */

.users-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.users-toolbar .search-wrapper {
  flex: 1;
  min-width: 200px;
}

.users-toolbar .button-primary {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.users-table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.users-table thead tr {
  background-color: #f3f4f6;
}

.users-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.users-table td {
  padding: 14px 16px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.users-table tbody tr:last-child td {
  border-bottom: none;
}

.users-table tbody tr:hover {
  background-color: #fafafa;
}

.users-table-actions {
  text-align: right;
  white-space: nowrap;
}

.btn-delete-user {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.btn-delete-user:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Badges de statut */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-pending {
  background-color: #fef9c3;
  color: #854d0e;
}

.status-refused {
  background-color: #fee2e2;
  color: #991b1b;
}

/* ── Panel latéral utilisateur ───────────────────────────────── */

.user-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.user-panel-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.user-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 460px;
  max-width: 100vw;
  background: #ffffff;
  z-index: 1101;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 28px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.user-panel.is-open {
  transform: translateX(0);
}

.user-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.user-panel-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  text-align: left;
}

.user-panel-close {
  background: none;
  border: none;
  font-size: 26px;
  color: #6b7280;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.user-panel-close:hover {
  color: #111827;
}

.user-panel-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
}

.panel-tab {
  background: none;
  border: none;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-tab:hover {
  color: #374151;
}

.panel-tab--active {
  color: #c9974a;
  border-bottom-color: #c9974a;
}

.panel-tab--validation {
  color: #854d0e;
}

.panel-tab--validation.panel-tab--active {
  border-bottom-color: #854d0e;
}

.panel-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
}

.panel-tab-content {
  flex: 1;
}

.panel-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.panel-form-actions .button-primary,
.panel-form-actions .button-secondary {
  width: auto;
  margin-top: 0;
  padding: 10px 20px;
}

.panel-form-actions--spaced {
  justify-content: space-between;
}

.validation-info {
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 14px 16px;
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.5;
}

.users-table tbody tr.is-clickable {
  cursor: pointer;
}

/* ── Fin panel latéral ───────────────────────────────────────── */

@media (max-width: 767px) {
  .users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-toolbar .button-primary {
    width: 100%;
    margin-top: 0;
    text-align: center;
  }

  .users-table thead {
    display: none;
  }

  .users-table,
  .users-table tbody,
  .users-table tr {
    display: block;
    width: 100%;
  }

  .users-table tbody tr {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }

  .users-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid #f3f4f6;
    padding: 8px 0;
    font-size: 0.9rem;
    word-break: break-word;
  }

  .users-table td:last-child {
    border-bottom: none;
    padding-top: 10px;
  }

  /* Affiche le label uniquement sur les cellules qui en ont un */
  .users-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
    min-width: 110px;
    font-size: 0.8rem;
    padding-top: 1px;
  }

  .users-table td .status-badge {
    margin-left: auto;
  }

  .users-table-actions {
    justify-content: flex-end;
  }
}
