/* =============================================
   ICONS (self-hosted SVG sprite subset)
   ============================================= */

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

/* =============================================
   SELF-HOSTED FONTS
   ============================================= */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #b8a99a;     /* Beige-taupe (couleur principale) */
  --secondary: #2a6f6a;   /* Vert-teal profond (couleur secondaire) */
  --success: #3d7b68;     /* Vert forêt pour les validations */
  --info: #5a8a9a;        /* Bleu-gris pour les informations */
  --warning: #e1d9d5;     /* Beige plus chaud pour les avertissements */
  --danger: #b89aa9;      /* Rouge atténué pour les alertes */
  --light: #ece7e0;       /* Beige-taupe clair */
  --dark: #2d2d2d;        /* Gris foncé adouci */
  --accent: #2a6f6a;      /* Teal profond */

  --bs-link-color-rgb: 42, 111, 106;
  --bs-link-hover-color-rgb: 22, 80, 76;

  /* Couleurs principales */
  --bs-primary: #b8a99a;
  --bs-primary-rgb: 184, 169, 154;
  --bs-secondary: #2a6f6a;
  --bs-success: #3d7b68;
  --bs-info: #5a8a9a;
  --bs-warning: #ecddab;
  --bs-warning-rgb: 236, 221, 171;
  --bs-danger: #b89aa9;
  --bs-danger-rgb: 184, 154, 169;
  --bs-light: #ece7e0;
  --bs-dark: #2d2d2d;

  /* Nuances de la couleur principale (beige-taupe) */
  --bs-primary-100: #f0eee9;
  --bs-primary-200: #e2ddd4;
  --bs-primary-300: #d4ccbf;
  --bs-primary-400: #c6bbaa;
  --bs-primary-500: #b8a99a;
  --bs-primary-600: #a99a8b;
  --bs-primary-700: #9a8c7c;
  --bs-primary-800: #8b7d6d;
  --bs-primary-900: #7c6e5e;

  /* Nuances de la couleur secondaire (teal) */
  --bs-secondary-100: #e0efee;
  --bs-secondary-200: #c1dfdd;
  --bs-secondary-300: #a2cfcc;
  --bs-secondary-400: #6a9f9b;
  --bs-secondary-500: #2a6f6a;
  --bs-secondary-600: #245f5b;
  --bs-secondary-700: #1e504c;
  --bs-secondary-800: #18403d;
  --bs-secondary-900: #12302e;

  /* Nuances de gris */
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #2d2d2d;
  --bs-gray-900: #212529;

  /* Couleurs de fond */
  --bs-body-bg: #f5f1ec;
  --bs-body-color: #2d2d2d;

  /* Couleurs d'accentuation */
  --bs-accent: #2a6f6a;
  --bs-highlight: #ffffff;

  /* Arrondis */
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;

  /* Ombres */
  --bs-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.08);
}

/* =============================================
   GLOBAL
   ============================================= */

html {
  scroll-behavior: smooth;
}

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

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background-color: #f5f1ec;
    color: var(--dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', Georgia, serif;
    line-height: 1.25;
}

/* =============================================
   BOOTSTRAP OVERRIDES
   ============================================= */

.btn-primary {
  --bs-btn-bg: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-hover-bg: var(--bs-secondary-600);
  --bs-btn-hover-border-color: var(--bs-secondary-700);
  --bs-btn-active-bg: var(--bs-secondary-800);
  --bs-btn-active-border-color: var(--bs-secondary-900);
  --bs-btn-color: #fff;
}

.btn-secondary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary-600);
  --bs-btn-hover-border-color: var(--bs-primary-700);
  --bs-btn-active-bg: var(--bs-primary-800);
  --bs-btn-active-border-color: var(--bs-primary-900);
  --bs-btn-color: #fff;
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);
  --bs-btn-hover-bg: var(--bs-secondary);
  --bs-btn-hover-border-color: var(--bs-secondary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--bs-secondary-800);
  --bs-btn-active-border-color: var(--bs-secondary-900);
}

.btn-outline-secondary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--bs-primary-800);
  --bs-btn-active-border-color: var(--bs-primary-900);
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.05rem;
}

/* Cards */
.card {
  --bs-card-border-color: rgba(0, 0, 0, 0.06);
  --bs-card-border-radius: var(--bs-border-radius-lg);
  --bs-card-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Tables */
.table {
  --bs-table-hover-bg: rgba(42, 111, 106, 0.04);
  --bs-table-striped-bg: rgba(42, 111, 106, 0.03);
}

/* =============================================
   NAVBAR
   ============================================= */

header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-light {
  --bs-navbar-color: var(--dark);
  --bs-navbar-hover-color: var(--secondary);
  --bs-navbar-active-color: var(--secondary);
}

.navbar-light .nav-link {
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.navbar-dark {
  --bs-navbar-color: rgba(255, 255, 255, 0.9);
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: #fff;
  background-color: var(--primary) !important;
}

.logo-icon {
    height: 3.5rem;
    width: auto;
}

/* =============================================
   HERO
   ============================================= */

.hero {
    background-color: #333;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    opacity: 0.95;
}

.btn-main {
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

/* =============================================
   SECTIONS
   ============================================= */

section {
    padding: 5rem 0;
    scroll-margin-top: 4em;
}

.section-alt {
    background-color: #e6dfd6;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.4rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* =============================================
   SERVICE CARDS
   ============================================= */

.service-card {
    background-color: #faf8f5;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--secondary);
}
.service-card.soon::before {
    background-color: var(--bs-gray-400);
}

.service-icon {
    font-size: 2rem;
    color: #20d0ce;
    margin-bottom: 1rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(32, 208, 206, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.2rem;
}

/* =============================================
   PRACTITIONERS
   ============================================= */

.practitioners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.practitioner-card {
    background-color: #faf8f5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.practitioner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.practitioner-img {
    height: 280px;
    background-color: #ddd5ca;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.practitioner-info {
    padding: 1.5rem;
    flex: 1 1 auto !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.practitioner-info h3 {
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.practitioner-info .profession {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.practitioner-info .card-link {
    font-weight: 500;
}

/* =============================================
   TAXONOMY (PROFESSIONS)
   ============================================= */

.taxonomy-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.taxonomy-terms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.taxonomy-term {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #faf8f5;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.taxonomy-term:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    color: var(--secondary);
}

.taxonomy-term-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    background-color: var(--secondary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =============================================
   CONTACT & INFO CARDS
   ============================================= */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: #faf8f5;
    padding: 2rem;
    border-radius: 10px;
    border-bottom: 4px var(--secondary) solid;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.info-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.info-icon {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-secondary-100);
    border-radius: 50%;
    flex-shrink: 0;
}

.map-container {
    min-height: 400px;
    height: 70vh;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   HOURS
   ============================================= */

.hours {
    background-color: #e6dfd6;
}

.hours-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #faf8f5;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.hours-table th, .hours-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hours-table th {
    background-color: var(--secondary);
    color: white;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background-color: #3a3530;
    color: white;
    padding: 3.5rem 0 0;
}

.footer-logo {
    height: 3rem;
    width: auto;
    opacity: 0.9;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.footer-col p, .footer-col a, .footer-col address {
    color: #b0b0b0;
    margin-bottom: 0.6rem;
    display: block;
    font-style: normal;
}

.footer-col a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-col a:hover {
    color: white;
    padding-left: 3px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 0;
}

.footer-bottom {
    padding: 1.2rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* =============================================
   SCROLL TO TOP
   ============================================= */

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary);
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background-color: var(--bs-secondary-600);
    color: white;
    transform: translateY(-3px);
}

/* =============================================
   TEXT & BG UTILITIES
   ============================================= */

.text-primary {
  color: var(--bs-primary) !important;
}

.text-secondary {
  color: var(--bs-secondary) !important;
}

.text-accent {
  color: var(--bs-secondary) !important;
}

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

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

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

.bg-dark {
  background-color: var(--bs-dark) !important;
}

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

/* =============================================
   PRACTITIONER PROFILE PAGES
   ============================================= */

.profile-header {
    background-color: #e6dfd6;
    padding: 3rem 0;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.profile-logo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.profile-info h1 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.profile-info .profession {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'DM Sans', sans-serif;
}

.badge-specialty {
    background-color: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.facility-image {
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.facility-image:hover {
    transform: scale(1.02);
}

.schedule-card {
    background-color: #faf8f5;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.schedule-header {
    background-color: var(--secondary);
    color: white;
    padding: 1rem;
    text-align: center;
}

.schedule-body {
    padding: 1.5rem;
}

.schedule-day {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.schedule-day:last-child {
    border-bottom: none;
}

.contact-option {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bs-secondary-100);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.home-visit {
    background-color: #ece7e0;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--secondary);
}

.service-item {
    background-color: #faf8f5;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.booking-card {
    background-color: #faf8f5;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.booking-header {
    background-color: var(--secondary);
    color: white;
    padding: 1rem;
    text-align: center;
}

.booking-body {
    padding: 1.5rem;
}

.qualification {
    margin-bottom: 1rem;
}

.qualification .year {
    color: var(--secondary);
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
}

/* =============================================
   404 PAGE
   ============================================= */

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.error-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.error-number {
    font-size: 12rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 4px 4px 0px var(--secondary);
    animation: float 3s ease-in-out infinite;
    margin-bottom: 1rem;
    position: relative;
}

.error-number::before {
    content: '404';
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--accent);
    z-index: -1;
    opacity: 0.3;
}

.medical-icon {
    font-size: 4rem;
    color: var(--secondary);
    animation: pulse 2s ease-in-out infinite;
    margin: 2rem 0;
    display: inline-block;
}

.error-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-subtitle {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.helpful-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.link-card {
    background-color: rgba(250, 248, 245, 0.85);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark);
    border-left: 4px solid var(--secondary);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: var(--dark);
    text-decoration: none;
}

.link-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.link-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Floating elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    color: var(--accent);
    opacity: 0.08;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    font-size: 3rem;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 15%;
    font-size: 2rem;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    font-size: 2.5rem;
    animation-delay: 2s;
}

.floating-element:nth-child(4) {
    bottom: 20%;
    right: 10%;
    font-size: 1.8rem;
    animation-delay: 3s;
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 2rem auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(42, 111, 106, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: var(--bs-secondary-600);
    transform: translateY(-50%) scale(1.1);
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .error-number {
        font-size: 8rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-subtitle {
        font-size: 1.1rem;
    }

    .btn-container {
        flex-direction: column;
        align-items: center;
    }
}
