/* Casque Vélo CASR — palette mobilité urbaine (template Natura adapté) */

body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Primaire : teal sécurité / urbain */
.bg-sage {
    background-color: #0f766e;
}
.bg-sage-dark {
    background-color: #0d5c56;
}
.bg-sage-light {
    background-color: #ccfbf1;
}
.text-sage {
    color: #0f766e;
}
.text-sage-dark {
    color: #0d5c56;
}
.text-sage-light {
    color: #99f6e4;
}
.border-sage {
    border-color: #0f766e;
}

.bg-cream {
    background-color: #faf9f7;
}
.bg-cream-dark {
    background-color: #f5f3f0;
}
.text-cream {
    color: #faf9f7;
}

.bg-charcoal {
    background-color: #2c2c2c;
}
.text-charcoal {
    color: #2c2c2c;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-up-delay {
    animation: fadeUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

#header {
    background-color: rgba(44, 44, 44, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

#header.scrolled {
    background-color: rgba(44, 44, 44, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.open {
    display: block;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.category-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.shadow-soft {
    box-shadow: 0 2px 8px -2px rgb(0 0 0 / 0.08), 0 4px 16px -4px rgb(0 0 0 / 0.06);
}

.stat-number {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #faf9f7;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

input::placeholder {
    color: #a8a29e;
}

input:focus {
    outline: none;
}

#testimonial-carousel {
    position: relative;
}

#testimonial-track {
    display: flex;
    transition: transform 0.3s ease;
}

#testimonial-track > div {
    flex: 0 0 100%;
    padding: 0 1rem;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #d6d3d1;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.testimonial-dot.active {
    background-color: #0f766e;
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats .w-px {
        width: 100%;
        height: 1px;
    }
}

.bg-gradient-warm {
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
}

.btn-primary {
    background-color: #0f766e;
    color: white;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0d5c56;
}

.btn-secondary {
    background-color: transparent;
    color: #2c2c2c;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    border: 1px solid #d6d3d1;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #a8a29e;
    background-color: #f5f3f0;
}

@media print {
    header,
    footer,
    #mobile-menu,
    button,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

::selection {
    background-color: #0f766e;
    color: white;
}

::-moz-selection {
    background-color: #0f766e;
    color: white;
}

strong {
    font-weight: 600;
}

.image-shine {
    position: relative;
    overflow: hidden;
}

.image-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.image-shine:hover::after {
    left: 100%;
}

.text-amber-400 {
    color: #fbbf24;
}

/* Boutique product cards — CASR */
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.875rem;
    background: #fff;
    border: 1px solid rgba(231, 229, 228, 0.95);
    box-shadow:
        0 1px 2px rgba(44, 44, 44, 0.04),
        0 8px 28px -6px rgba(44, 44, 44, 0.09);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 118, 110, 0.22);
    box-shadow:
        0 4px 12px rgba(15, 118, 110, 0.06),
        0 20px 48px -12px rgba(44, 44, 44, 0.14);
}

.product-card-media {
    aspect-ratio: 1;
    background: linear-gradient(165deg, #fdfcfa 0%, #f5f0ea 55%, #ebe6df 100%);
    padding: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(231, 229, 228, 0.6);
}

.product-card-media img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 6px 14px rgba(44, 44, 44, 0.07));
}

.product-card:hover .product-card-media img {
    transform: scale(1.04);
}

.product-card-body {
    padding: 1.25rem 1.375rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.product-card-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #57534e;
    flex-grow: 1;
    margin-bottom: 1.125rem;
}

.product-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0 1.125rem;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 0.375rem;
    background-color: #0f766e;
    color: #fff;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.15);
}

.product-card-btn:hover {
    background-color: #0d5c56;
    box-shadow: 0 4px 14px -2px rgba(15, 118, 110, 0.35);
}

.product-card-btn:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

.product-card-btn-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.product-card:hover .product-card-btn-icon {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .product-card:hover {
        transform: none;
    }

    .product-card:hover .product-card-media img {
        transform: none;
    }

    .product-card:hover .product-card-btn-icon {
        transform: none;
    }
}
