/* ============================================
   VARIABLES & TYPOGRAPHIES
   ============================================ */

:root {
    /* Couleurs */
    --color-bg: #ffffff;
    --color-secondary: #d3d7d6;
    --color-text: #000000;
    
    /* Typographies */
    --font-main: 'Roboto', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Conteneur max-width */
    --container-width: 1200px;
    
    /* Header height */
    --header-height: 80px;
}

/* ============================================
   STYLES GÉNÉRAUX
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   COMPOSANTS RÉUTILISABLES - BADGES GLASSMORPHISM
   ============================================ */

/* Badge de base */
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Badge avec bordure */
.badge--outline {
    border: 1px solid rgba(200, 200, 200, 0.4);
    background: rgba(255, 255, 255, 0.4);
    color: var(--color-text);
}

.badge--outline:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(150, 150, 150, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Badge cliquable */
.badge--clickable {
    cursor: pointer;
    border: 2px solid rgba(200, 200, 200, 0.4);
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 24px;
    font-size: 15px;
}

.badge--clickable:hover {
    border-color: rgba(100, 100, 100, 0.6);
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* Badge plein glassmorphism sombre */
.badge--solid {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ============================================
   COMPOSANTS RÉUTILISABLES - BOUTONS GLASSMORPHISM
   ============================================ */

/* Bouton de base */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 400;
    font-family: var(--font-main);
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Bouton primaire (noir glassmorphism) */
.btn--primary {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--primary:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Bouton secondaire (outline glassmorphism) */
.btn--secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    color: var(--color-text);
    border: 1px solid rgba(200, 200, 200, 0.4);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--secondary:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.85);
    color: var(--color-bg);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 28px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Bouton pleine largeur */
.btn--full {
    width: 100%;
}

/* Petit bouton */
.btn--small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ============================================
   COMPOSANTS RÉUTILISABLES - CARDS GLASSMORPHISM
   ============================================ */

/* Card de base glassmorphism */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(200, 200, 200, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

/* Overlay gradient au hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

/* Card avec effet hover */
.card--hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(200, 200, 200, 0.5);
}

.card--hover:hover::before {
    opacity: 1;
}

/* Image de card */
.card__image {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f2 100%);
    position: relative;
}

.card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card--hover:hover .card__image::after {
    opacity: 1;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card--hover:hover .card__image img {
    transform: scale(1.1);
}

/* Contenu de card avec glassmorphism */
.card__content {
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.card--hover:hover .card__content {
    background: rgba(255, 255, 255, 0.9);
}

/* Card ratio 3:4 (pour produits) */
.card__image--product {
    aspect-ratio: 3 / 4;
}

/* Card ratio 1:1 (pour collections) */
.card__image--square {
    aspect-ratio: 1 / 1;
}

/* Card ratio 16:11 (pour galeries) */
.card__image--gallery {
    aspect-ratio: 16 / 11;
}

/* ============================================
   HEADER GLASSMORPHISM
   ============================================ */

.header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo {
    max-width: 70px;
}

.header__nav {
    display: flex;
    gap: var(--spacing-md);
}

.header__nav-link {
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.header__nav-link:hover {
    opacity: 0.7;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Bouton panier glassmorphism */
.header__cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.header__cart-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header__cart-count {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header__cart-btn:hover .header__cart-count {
    background: rgba(0, 0, 0, 0.9);
}

/* Menu burger mobile */
.header__burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: none;
}

.header__burger-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* ============================================
   FOOTER GLASSMORPHISM
   ============================================ */

.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer__column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer__link:hover {
    opacity: 0.6;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================
   GRILLES DE PRODUITS
   ============================================ */

.products-grid {
    padding: var(--spacing-lg) 0;
}

.products-grid__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

/* Utilisation des composants card glassmorphism */
.product-card {
    text-align: center;
}

.product-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-top: var(--spacing-sm);
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.product-card:hover .product-card__title {
    color: #000;
}

/* ============================================
   SECTION LE CHOIX DU BIENFAIT
   ============================================ */

.bienfait-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.bienfait-section__title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    color: #1a1a1a;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bienfait-section__text {
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text);
    opacity: 0.85;
}

/* ============================================
   PAGES COLLECTIONS
   ============================================ */

.collection-header {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
}

.collection-header__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.collection-header__subtitle {
    font-size: 18px;
    opacity: 0.7;
}

.collection-grid {
    padding: var(--spacing-md) 0 var(--spacing-xl);
}

.collection-grid__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* Utilisation des composants card glassmorphism */
.collection-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.collection-card:hover .collection-card__title {
    color: #000;
}

.collection-card__price {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text);
    opacity: 0.7;
}

/* ============================================
   UTILITAIRES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ============================================
   RESPONSIVE - TABLETTE
   ============================================ */

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --spacing-md: 1.5rem;
    }
    
    /* Cacher la nav desktop */
    .header__nav {
        display: none;
    }
    
    /* Section bienfait - Responsive tablette */
    .bienfait-section__title {
        font-size: 32px;
    }
    
    .bienfait-section__text {
        font-size: 16px;
    }
    
    /* Afficher le burger */
    .header__burger {
        display: flex;
    }
    
    /* Layout mobile: burger | logo | panier */
    .header__container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        align-items: center;
    }
    
    /* Burger à gauche */
    .header__burger {
        order: 1;
    }
    
    /* Logo centré */
    .header__logo {
        order: 2;
        justify-self: center;
        max-width: 60px;
    }
    
    /* Panier à droite */
    .header__actions {
        order: 3;
        justify-self: end;
    }
    
    .products-grid__container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .collection-grid__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .collection-card__title {
        font-size: 14px;
    }
    
    .collection-card__price {
        font-size: 13px;
    }
    
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
    }
    
    .header__container {
        padding: 0 1rem;
    }
    
    .header__logo {
        max-width: 50px;
    }
    
    /* Section bienfait - Responsive mobile */
    .bienfait-section {
        padding: var(--spacing-lg) 0;
    }
    
    .bienfait-section__title {
        font-size: 24px;
        margin-bottom: var(--spacing-sm);
    }
    
    .bienfait-section__text {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 1rem;
    }
    
    /* PAGE D'ACCUEIL : 1 colonne sur mobile */
    .products-grid__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    /* PAGES COLLECTIONS : 2 colonnes sur mobile */
    .collection-grid__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-card__title {
        font-size: 16px;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}