devmahd's picture
Je veux modifier UNIQUEMENT la bande des prix de mes deux produits.
362e1a8 verified
Raw History Blame Contribute Delete
5.27 kB
@keyframes pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
.animate-pulse {
animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
}
70% {
transform: scale(1.03);
box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}
}
/* Smooth scrolling */
html {
scroll-behavior: smooth;
}
@media screen and (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
/* Responsive adjustments */
/* Mobile First Approach */
@media (max-width: 640px) {
/* Hero Section */
.container.mx-auto.text-center h1 {
font-size: 2.2rem;
line-height: 1.2;
}
.container.mx-auto.text-center p {
font-size: 1.1rem;
}
/* Products Section */
.flex-col > div, .flex-col-reverse > div {
width: 100%;
}
/* Testimonials */
.grid-cols-1, .grid-cols-3 {
grid-template-columns: 1fr !important;
gap: 1rem;
}
/* Gallery */
.grid-cols-3 {
grid-template-columns: 1fr;
}
/* General */
section {
padding: 1.5rem !important;
}
/* Buttons */
.animate-buy-btn, .contact-btn {
width: 100%;
padding: 0.8rem !important;
font-size: 1rem !important;
}
/* WhatsApp Button */
.fixed.bottom-4.right-4 a img,
.footer-link img,
.contact-btn img {
filter: none;
}
/* WhatsApp Button */
.fixed.bottom-4.right-4 {
bottom: 1rem;
right: 1rem;
transform: scale(0.9);
}
}
/* Tablet Styles */
@media (min-width: 641px) and (max-width: 1023px) {
/* Hero Section */
.container.mx-auto.text-center h1 {
font-size: 2.8rem;
}
/* Products Section */
.flex-col > div, .flex-col-reverse > div {
width: 48%;
}
/* Testimonials */
.grid-cols-3 {
grid-template-columns: repeat(2, 1fr);
}
/* Gallery */
.grid-cols-3 {
grid-template-columns: repeat(2, 1fr);
}
/* WhatsApp Button */
.fixed.bottom-4.right-4 {
bottom: 1.5rem;
right: 1.5rem;
}
}
/* Desktop Styles */
@media (min-width: 1024px) {
/* Hero Section */
.container.mx-auto.text-center h1 {
font-size: 3.5rem;
}
/* Products Section */
.flex-col > div, .flex-col-reverse > div {
width: 45%;
}
/* Testimonials */
.grid-cols-3 {
grid-template-columns: repeat(3, 1fr);
}
/* Gallery */
.grid-cols-3 {
grid-template-columns: repeat(3, 1fr);
}
}
/* General Responsive Rules */
img {
max-width: 100%;
height: auto;
}
section {
transition: all 0.3s ease;
}
.container {
width: 100%;
padding: 0 1rem;
margin: 0 auto;
}
@media (min-width: 640px) {
.container {
max-width: 640px;
}
}
@media (min-width: 768px) {
.container {
max-width: 768px;
}
}
@media (min-width: 1024px) {
.container {
max-width: 1024px;
}
}
@media (min-width: 1280px) {
.container {
max-width: 1280px;
}
}
@media (max-width: 480px) {
.text-center h1 {
font-size: 2rem !important;
}
.grid-cols-3, .grid-cols-2 {
grid-template-columns: 1fr !important;
}
.footer-content {
grid-template-columns: 1fr !important;
}
.header-content {
flex-direction: column !important;
padding: 1rem !important;
}
.nav-links {
flex-direction: column !important;
gap: 1rem !important;
margin: 1rem 0 !important;
}
.contact-btn {
margin-top: 1rem !important;
}
}
@keyframes buyBtnPulse {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
}
50% {
transform: scale(1.05);
box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
}
}
.animate-buy-btn {
animation: buyBtnPulse 1.5s infinite;
background-color: #28a745 !important;
font-size: 1.1rem;
padding: 0.8rem 2rem !important;
min-width: 200px;
text-align: center;
display: inline-block;
}
.price-tag {
background-color: #FFD700; /* Jaune vif */
border: 1px solid rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(255, 212, 0, 0.3);
animation: priceGlow 2s infinite alternate;
text-decoration: none;
cursor: pointer;
}
.price-tag:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 212, 0, 0.5);
animation: none;
}
@keyframes priceGlow {
0% {
box-shadow: 0 4px 15px rgba(255, 212, 0, 0.3);
}
100% {
box-shadow: 0 4px 20px rgba(255, 212, 0, 0.6);
}
}
.gallery-item {
transition: all 0.3s ease;
cursor: pointer;
}
.gallery-item:hover img {
transform: scale(1.05);
}
.fade-in {
opacity: 0;
animation: fadeIn 1s ease-in forwards;
}
@keyframes fadeIn {
to {
opacity: 1;
}
}