/* 
  Theme: Glacial & Apaisant (Ice & Soothe)
  Colors: Ice Blue, Soft Indigo/Lavender, Snow White, Slate Gray.
  No greens. No Tailwind. Pure Vanilla CSS.
*/
:root {
    --bg-body: #f1f5f9; /* Slate 100 */
    --bg-card: #ffffff;
    --text-dark: #1e293b; /* Slate 800 */
    --text-light: #475569; /* Slate 600 */
    
    --primary-indigo: #6366f1; /* Indigo 500 */
    --primary-indigo-dark: #4f46e5;
    --accent-sky: #38bdf8; /* Sky 400 */
    --border-color: #e2e8f0; /* Slate 200 */
    
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.app-header {
    background-color: var(--bg-card);
    padding: 25px 0;
    text-align: center;
    border-bottom: 4px solid var(--accent-sky);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-indigo);
    letter-spacing: 1px;
    font-weight: 700;
}

/* Product Section (Inverted: Text Left, Gallery Right) */
.product-showcase {
    display: flex;
    gap: 40px;
    background-color: var(--bg-card);
    padding: 40px;
    margin-top: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.product-info {
    width: 55%;
}

.product-gallery {
    width: 45%;
}

/* Gallery CSS Logic */
.product-gallery input[type="radio"] {
    display: none;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

/* Slide setup: hidden by default, visible on checked */
.slide-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
    background-color: var(--bg-card);
}

.slide-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Display active slide via General Sibling Combinator (~) */
#img1:checked ~ .main-image-container #slide1,
#img2:checked ~ .main-image-container #slide2,
#img3:checked ~ .main-image-container #slide3,
#img4:checked ~ .main-image-container #slide4 {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

/* Navigation Arrows */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-indigo);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    user-select: none;
}

.main-image-container:hover .arrow-btn {
    opacity: 1;
}

.arrow-btn:hover {
    background-color: var(--primary-indigo);
    color: var(--bg-card);
    border-color: var(--primary-indigo);
}

.left-dir { left: 15px; }
.right-dir { right: 15px; }

/* Thumbnails */
.thumb-container {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: center;
}

.thumb-container::-webkit-scrollbar { display: none; }
.thumb-container { scrollbar-width: none; }

.thumb-box {
    flex: 0 0 75px;
    height: 75px;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.thumb-box img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.thumb-box:hover {
    opacity: 1;
}

/* Highlight Active Thumbnail */
#img1:checked ~ .thumb-container .thumb-box[for="img1"],
#img2:checked ~ .thumb-container .thumb-box[for="img2"],
#img3:checked ~ .thumb-container .thumb-box[for="img3"],
#img4:checked ~ .thumb-container .thumb-box[for="img4"] {
    border-color: var(--primary-indigo);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Product Info */
.product-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.3;
}

.product-description h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-indigo);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefit-list {
    list-style: none;
    margin-bottom: 30px;
}

.benefit-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.benefit-list li::before {
    content: "❄";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-sky);
    font-size: 1rem;
}

.benefit-list li strong {
    color: var(--text-dark);
}

.wellness-note {
    background-color: #f0fdfa; /* Very light cool tint */
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-sky);
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* CTA Button */
.cta-wrapper {
    text-align: center;
    margin: 50px 0;
}

.action-btn {
    display: inline-block;
    background-color: var(--primary-indigo);
    color: var(--bg-card);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 20px 60px;
    border-radius: 50px;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.action-btn:hover {
    background-color: var(--primary-indigo-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.4);
}

/* Customer Reviews */
.customer-feedback {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 60px;
}

.feedback-heading {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--text-dark);
    margin-bottom: 35px;
    text-align: center;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feedback-card {
    display: flex;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.feedback-card:last-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.customer-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-body);
    border: 2px solid var(--accent-sky);
}

.customer-comment {
    flex: 1;
}

.customer-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.star-rating {
    color: #f59e0b; /* Amber/Yellow for stars */
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.comment-title {
    font-weight: 700;
    color: var(--text-dark);
}

.purchase-status {
    font-size: 0.85rem;
    color: var(--primary-indigo);
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.comment-body {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.comment-gallery img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: opacity 0.2s ease;
}

.comment-gallery img:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* Footer */
.app-footer {
    background-color: var(--text-dark);
    color: #94a3b8;
    padding: 50px 0;
    text-align: center;
}

.app-footer h3 {
    font-family: var(--font-heading);
    color: var(--bg-card);
    font-size: 1.3rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-policy {
    margin-bottom: 20px;
}

.footer-policy a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-policy a:hover {
    color: var(--accent-sky);
}

.sep {
    margin: 0 15px;
    color: #475569;
}

.rights {
    font-size: 0.85rem;
}

/* Responsive Media Queries */
@media screen and (max-width: 900px) {
    .product-showcase {
        flex-direction: column-reverse; /* Revertir pour avoir l'image en premier sur mobile */
        padding: 25px;
    }
    
    .product-info, .product-gallery {
        width: 100%;
    }

    .product-title {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 600px) {
    .feedback-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .arrow-btn {
        opacity: 0.9;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .action-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.2rem;
    }

    .footer-policy a {
        display: block;
        margin: 12px 0;
    }

    .sep {
        display: none;
    }
}