/* ===== GLOBAL STYLING ===== */
* {
    box-sizing: border-box; /* padding inclus dans les dimensions */
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
}

/* ===== HEADER ===== */
header {
    background-color: #000;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
    opacity: 0;
    animation: fadeSlideUp 1s ease-out forwards;
    animation-delay: 0.2s;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #000;
    color: #fff;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.top-bar .logo {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 1px;
}

.top-bar .free-delivery {
    font-size: clamp(0.8rem, 2.5vw, 0.85rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeSlideUp 1s ease-out forwards;
    animation-delay: 0.2s;
}

/* ===== PRODUCT & COLLECTION CARDS ===== */
.product-card,
.collection-card {
    border: 2px solid #000;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    max-width: 300px;
    margin: 0 auto 20px auto; /* centrer les cartes */
}

.product-card:hover,
.collection-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0.9;
}

.product-card img,
.collection-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15%;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.product-card:hover img,
.collection-card:hover img {
    transform: scale(1.05);
}

.collection-card .btn-dark {
    background-color: #000;
    border-color: #000;
    color: #fff;
    transition: background-color 0.3s ease;
    border-radius: 5px;      /* même forme que sur PC */
    padding: 0.5rem 1rem;    /* padding fixe */
    font-size: 1rem;         /* taille du texte fixe */
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: auto;             /* largeur auto, ne prend pas toute la carte */
}

.collection-card .btn-dark:hover {
    background-color: #111;
    border-color: #111;
}


/* ===== SERVICE CARDS ===== */
.service-card {
    max-width: 280px;
    margin: 0 auto 20px auto;
    padding: 20px;
    background-color: #000;
    color: #fff;
    border-radius: 15px;
    text-align: center;
}

.service-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* ===== ABOUT SECTION ===== */
.about-container {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease;
}

.about-container.show {
    opacity: 1;
    transform: translateY(0);
}

.about-container h2 {
    font-size: clamp(20px, 5vw, 36px);
    margin-bottom: 20px;
}

.about-container p {
    font-size: clamp(13px, 3vw, 17px);
    line-height: 1.8;
}

.about-signature {
    font-size: clamp(12px, 2.5vw, 14px);
    color: #bdbdbd;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-show {
    animation: fadeSlideUp 1s ease-out forwards;
}

/* ===== CAROUSEL ===== */
.carousel img {
    transition: transform 0.3s ease;
}

.carousel img:hover {
    transform: scale(1.1);
}

/* ===== TESTIMONIALS ===== */
.testimonial {
    display: none;
    text-align: center;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 3vw, 18px);
    line-height: 1.6;
    color: #fff;
}

.testimonial.active {
    display: block;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: #ddd;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .collection-card,
    .service-card,
    .product-card {
        max-width: 280px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .collection-card,
    .service-card,
    .product-card {
        max-width: 260px;
        padding: 12px;
    }
}
