/* =======================
   FONT-FACE DEFINITIONS
   ======================= */

@font-face {
    font-family: 'SP';
    src: url('assets/fonts/splight.woff2') format('woff2'),
        url('assets/fonts/splight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('assets/fonts/splightitalic.woff2') format('woff2'),
        url('assets/fonts/splightitalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('assets/fonts/spregular.woff2') format('woff2'),
        url('assets/fonts/spregular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('assets/fonts/spregularitalic.woff2') format('woff2'),
        url('assets/fonts/spregularitalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('assets/fonts/spbold.woff2') format('woff2'),
        url('assets/fonts/spbold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SP';
    src: url('assets/fonts/spbolditalic.woff2') format('woff2'),
        url('assets/fonts/spbolditalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}


/* =======================
   STYLES
   ======================= */

* {
    font-family: 'SP', sans-serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-150%);
    background: white;
    color: #111827;
    padding: 12px 16px;
    border-radius: 0 0 12px 0;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(0, 167, 168, 0.65);
    outline-offset: 3px;
}

.gradient-bg a:focus-visible,
.gradient-bg button:focus-visible,
.gradient-bg input:focus-visible,
.gradient-bg textarea:focus-visible {
    outline-color: rgba(255, 255, 255, 0.85);
}

section[id] {
    scroll-margin-top: 96px;
}

.logo {
    height: 23px;
    width: auto;
    display: block;
}

.logo-footer {
    height: 36px;
    margin-left: -6px;
    margin-bottom: -4px;
}

.gradient-bg {
    background: linear-gradient(90deg, #00A7A8 0%, #2a496f 100%);
}

.testimonial-card {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    background: rgba(0, 167, 168, 0.06);
    color: #00A7A8;
}

/* Fix vertical text alignment for CTA buttons with custom font */
a.rounded-full[href]:not(.group):not(.logo-item),
button.rounded-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* padding-top et padding-bottom gérés par Tailwind CSS désormais */
}

.cta-button {
    background: linear-gradient(135deg, #00A7A8 0%, #008889 100%);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    background: linear-gradient(135deg, #00B8B9 0%, #009A9B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 167, 168, 0.4);
}

/* Navigation styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(8px);
    min-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 8px;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
    background: rgba(0, 167, 168, 0.08);
    color: #00A7A8;
}

.nav-dropdown-item i {
    width: 20px;
    min-width: 20px;
    text-align: center;
    color: #00A7A8;
    line-height: 1.4;
    font-size: 1rem;
}

.nav-dropdown-item-featured {
    padding: 12px 14px;
}

.nav-dropdown-item-featured i {
    font-size: 1.1rem;
}

.nav-dropdown-item-featured .font-semibold {
    font-size: 0.95rem;
}

.nav-dropdown-item-secondary {
    padding: 8px 12px;
    opacity: 0.85;
}

.nav-dropdown-item-secondary i {
    font-size: 0.85rem;
    opacity: 0.6;
}

.nav-dropdown-item-secondary .font-semibold {
    font-size: 0.8rem;
}

.nav-dropdown-item-secondary .text-xs {
    font-size: 0.65rem;
}

.nav-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    padding: 8px;
    border-radius: 8px;
    color: #4b5563;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 167, 168, 0.08);
    color: #00A7A8;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 100;
    padding: 20px;
    overflow-y: auto;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: rgba(0, 167, 168, 0.08);
    color: #00A7A8;
}

.mobile-menu-item i {
    width: 24px;
    text-align: center;
    color: #00A7A8;
}

.mobile-menu-item-featured {
    padding: 16px 18px;
    font-size: 1.05rem;
}

.mobile-menu-item-featured i {
    font-size: 1.15rem;
}

.mobile-menu-item-secondary {
    padding: 10px 14px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.mobile-menu-item-secondary i {
    font-size: 0.9rem;
    opacity: 0.6;
}

.mobile-menu-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 16px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-nav {
        display: none !important;
    }
}

.card-shadow {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.highlight {
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 167, 168, 0.2);
    z-index: 0;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 167, 168, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 167, 168, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 167, 168, 0);
    }
}

.trust-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.trust-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Infinite scroll logos */
.logos-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logos-scroll-track {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.logos-scroll-track:hover {
    animation-play-state: paused;
}

.logos-scroll-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    flex-shrink: 0;
}

.logo-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logos-scroll-content {
        gap: 2rem;
        padding-right: 2rem;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}

/* =======================
   PRICING PAGE STYLES
   ======================= */

:root {
    --caresquad-primary: #00A7A8;
    --caresquad-secondary: #2a496f;
    --caresquad-dark: #1a1a2e;
    --caresquad-light: #f8fafc;
}

/* Custom slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
}

input[type="range"]::-webkit-slider-track {
    background: transparent;
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--caresquad-primary);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 167, 168, 0.3);
    cursor: pointer;
}

input[type="range"]::-moz-range-track {
    background: transparent;
    height: 8px;
    border-radius: 4px;
}

input[type="range"]::-moz-range-progress {
    background: var(--caresquad-primary);
    height: 8px;
    border-radius: 4px 0 0 4px;
}

input[type="range"]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--caresquad-primary);
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0, 167, 168, 0.3);
    cursor: pointer;
}

.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 167, 168, 0.08);
}

.badge {
    animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.savings-badge {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.gradient-primary {
    background: linear-gradient(90deg, #00A7A8 0%, #2a496f 100%);
}

.gradient-accent {
    background: linear-gradient(90deg, #00A7A8 0%, #2a496f 100%);
}

.preset-btn {
    transition: all 0.2s ease;
}

.preset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 167, 168, 0.15);
}

.preset-btn.active {
    background: linear-gradient(90deg, #00A7A8 0%, #2a496f 100%);
    color: white;
    border-color: transparent;
}

.preset-btn.active .text-slate-500 {
    color: rgba(255, 255, 255, 0.8);
}

.pack-select-btn {
    transition: all 0.2s ease;
    outline: none;
}

.pack-select-btn:focus {
    outline: none;
}

.pack-select-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 167, 168, 0.15);
}

.pack-select-btn.active {
    background: #00A7A8;
    color: white;
    border-color: #00A7A8 !important;
    outline: none;
}

.pack-select-btn.active .text-slate-500 {
    color: rgba(255, 255, 255, 0.8);
}

.pack-item {
    transition: all 0.2s ease;
}

.pack-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 167, 168, 0.15);
}

.pack-item.selected {
    border-color: var(--caresquad-primary) !important;
    background-color: rgba(0, 167, 168, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 167, 168, 0.2);
}

.pack-item.pack-popular {
    border-color: var(--caresquad-primary);
    background-color: rgba(0, 167, 168, 0.05);
}

.pack-item.pack-popular:hover {
    box-shadow: 0 6px 16px rgba(0, 167, 168, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .testimonial-card,
    .logos-scroll-track,
    .badge,
    .savings-badge,
    .pulse {
        animation: none !important;
        transition: none !important;
    }
}