@charset "utf-8";
/* CSS Document */
:root {
  --primary-dark: #191970; /* Bleu nuit */
  --primary-light: #ffffff;
  --accent-orange: #ff6347; /* Tomate */
  --accent-green: #32cd32; /* Vert Lime */
  --background-light: #f0f8ff; /* Alice Blue */
}
a {
    text-decoration: none;
}    
body {
            font-family: Arial, sans-serif;
          background-color: #F5F8FF;
          color: var(--primary-dark);
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }
header p {
				font-size: 1.25rem;
				color: #7dd3fc;
			}
	.header {
    display: flex;
    justify-content: flex-start; /* Change from space-between to flex-start */
    align-items: center;
    padding: 1rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
header {
				text-align: center;
				margin-bottom: 0rem;
			}
    .header-content {
    display: flex;
	overflow: visible;
    justify-content: space-between;
    background-color: #172031;
    align-items: center;
    max-width: 100%;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
}
h1 {
	font-size: 2.5rem;
			}

h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
        }
p {
            line-height: 1.6;
            margin-bottom: 1rem;
        }
.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    overflow: hidden;
    border-radius: 22px;
    background: #172031;
}

.logo {
    display: block;
    width: 92px;
    height: 92px;
    margin: 0;
    object-fit: cover;
    background: transparent;
    border-radius: 22px;
    box-shadow: none;
    transform: scale(1.06);
}

.logo-container {
    flex-shrink: 0;
    margin-right: 1rem;
    max-resolution: 2rem;
}
/*PARTIE sur les boutons du header*/
/* Style pour le bouton profil */
.profile-button-minimal {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #4B5EFC;
    border-radius: 5px;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-button-minimal:hover {
    background-color: #4B5EFC;
    color: #ffffff;
}

.profile-text {
    margin-right: 6px;
}

.profile-icon {
    font-size: 0.8em;
}
.user-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
	gap: 1rem;
	position: relative;
	overflow: visible;
    margin: 10px;
}
/* Language switcher */
.lang-switcher { display: flex; align-items: center; }
.lang-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 6px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
}
.lang-btn:hover {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 1);
}
.lang-btn img {
    border-radius: 2px;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
/* Styles communs pour les boutons */
.login-button, .register-button, .user-link {
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    background-color: #4B5EFC;
    color: var(--primary-light);
}

/* Effet hover pour .login-button */
.login-button:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Ombre pour effet de profondeur */
    transform: translateY(-2px); /* Déplacement vers le haut */
}

/* Styles pour .stack-button */
.stack-button {
    min-height: 44px;
    width: auto;
    max-width: none;
    padding: 0 14px 0 9px;
    border: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
    font-size: 0.95rem;
    letter-spacing: 0;
    background: linear-gradient(135deg, #ffffff, #eef8ff);
    color: #0b1f46;
}
.cart-button, .profile-button {
    
    background-color: var(--primary-dark);
    color: var(--primary-light);
}

.cart-button:hover, .profile-button:hover {
    background-color: var(--primary-dark);
}

/* Effet hover pour .stack-button */
.stack-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.18);
}

/* Effet hover supplémentaire pour les icônes dans .stack-button */
.stack-button:hover .stack-icon .stack-count {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Styles pour .stack-button-container */
.stack-button-container {
    position: relative;
    display: inline-block;
}
.register-button:hover {
    box-shadow: 0 4px 6px rgba(2, 132, 199, 0.3); /* Ombre légère pour un effet de profondeur */
    transform: translateY(-2px); /* Léger déplacement vers le haut */
}

.search-bar {
		display: flex;
		z-index: 15;
		max-width: 1400px;
		margin: 20px;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		border-radius: 40px;
		overflow: hidden;
		transition: all 0.3s ease;

	}
.search-section {
	flex-grow: 1;
	position: relative;
	z-index: 10;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.search-section.focused {
    width: 100%;
    max-width: 1200px;
}
.search-section.focused .search-bar {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Ajoutez une ombre lorsque la barre est focalisée */
}

.search-bar input {
        
		width: 75%;
		padding: 1rem 1rem 1rem 3rem;
		font-size: 1rem;
        color: #333333
    
			}

.search-icon {
				position: absolute;
				left: 1rem;
				top: 50%;
				transform: translateY(-50%);
				color: #9ca3af;
			}
.search-bar button {
    background-color:  #4B5EFC;
    color: var(--primary-light);
		border: none;
		padding: 0 1.5rem;
		cursor: pointer;
		transition: background-color 0.3s ease;
	}

.search-bar button:hover {
    background-color: #527CC7;
	}
.profile-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-title {
    color: #0284c7;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}
.user-menu-container {
    position: relative;
}

.user-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon {
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    object-fit: contain; /* Assure que l'image s'adapte bien à l'espace défini */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-icon-button:hover .user-icon {
    opacity: 0.8; /* Effet de survol léger */
}
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    max-width: 250px;
}


.user-dropdown.show {
    display: block !important;
}
.user-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.user-dropdown a:hover {
    background-color: #f3f4f6;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.user-dropdown a:hover {
    background-color: #f3f4f6;
}


.stack-icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.stack-icon.stack-logo-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 9px;
    background: #172031;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.stack-logo-icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: cover;
    transform: scale(1.1);
}

.stack-count {
    background-color: #ff4500;
    color: white;
    border-radius: 50%;
    padding: 0.15rem 0.3rem;
    font-size: 0.65rem;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(255, 69, 0, 0.3);
    border: 1px solid white;
    transition: all 0.3s ease;
}


.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}
.notification.error a {
    display: block;
    color: white;             /* Met le texte du lien en blanc */
    text-decoration: underline; /* Souligne le lien pour qu'il reste identifiable */
    font-weight: bold;        /* Optionnel: met en gras pour plus de visibilité */
}
.welcome-message {
    margin-right: 15px;
    margin-left: 15px;
    font-weight: bold;
    color: #0284c7;
}

.user-links {
    display: flex;
    gap: 10px;
}


.user-link:hover{
    background-color: #e6f7ff;
}




.legal-section {
    background-color: white;
    border-radius: 0.5rem;
}

.legal-section h2 {
    color: #0284c7;
    margin-bottom: 1rem;
}

.legal-section ol, .legal-section ul {
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

        .preambule {
            font-style: italic;
            background-color: #e6f7ff;
            padding: 1rem;
            border-left: 5px solid #0284c7;
            margin-bottom: 1.5rem;
        }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Réduisez l'opacité pour un assombrissement léger */
    z-index: 5; /* Réduisez le z-index pour que la barre de recherche soit au-dessus */
    display: none;
    pointer-events: none; /* Permet de cliquer à travers l'overlay */
}


			.container {
				margin: 0 auto;
				padding: 2rem;
			}
/* ============================================
   ADMIN + HEADER STYLES PATCH
   À ajouter à la fin de styles.css
   ============================================ */

/* --- Lien admin dans le dropdown --- */
.user-dropdown .admin-link {
    color: #dc2626 !important;
    font-weight: bold;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
    margin-top: 4px;
}
.user-dropdown .admin-link:hover {
    background-color: #fef2f2 !important;
}

/* --- Badge complétion stack (dans le bouton Mon Stack) --- */
.stack-completion-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    min-width: 32px;
}
.stack-button .stack-completion-badge {
    margin-left: 0;
    background: #dff3ff;
    color: #075985;
}
.stack-completion-badge.complete {
    background-color: #10b981;
    color: #fff;
}

/* --- Bouton panier (compact, icône + badge) --- */
.cart-button-container {
    position: relative;
    display: inline-block;
}
.cart-header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s, transform 0.2s, border-color 0.3s;
    position: relative;
}
.cart-header-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
.cart-icon {
    line-height: 1;
}
.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #172031;
}

.user-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.sort-section {
    position: relative;
    display: inline-block;
    align-self: center;
    margin-bottom: 1rem;
}

.sort-button {
    background-color: #0284c7;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-self: center;
    justify-content: space-between;
    width: 200px;
}
.sort-button:hover {
    background-color: #0369a1;
}

.sort-dropdown {
    display: none;
	position: absolute;
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 10;
}
.sort-dropdown.show {
    display: block;
}

.sort-select {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background-color: white;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sort-select option {
    padding: 0.75rem;
    transition: background-color 0.3s ease;
}

.sort-select option:hover,
.sort-select option:focus {
    background-color: #e6f7ff;
}

.sort-select option:checked {
    background-color: #0284c7;
    color: white;
}

			.view-toggle {
				display: inline-block;
				margin-left: 1rem;
			}

			.view-toggle button {
				padding: 0.5rem;
				background-color: #f3f4f6;
				border: none;
				border-radius: 0.5rem;
				cursor: pointer;
				margin-right: 0.5rem;
			}


	.search-bar input {
		flex-grow: 1;
		padding: 1rem 1.5rem;
		border: none;
		font-size: 1rem;
		outline: none;
	}



  .sidebar {
    flex: 0 0 250px;
    background-color: #f8f9fa;
    padding: 20px;
        height: fit-content;  
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
	/* Styles pour les résultats de recherche */
.supplements-list {
    display: flex;
    flex-wrap: wrap;
    margin: -10px; /* Compensation pour le padding des cartes */
    border-radius: 10px;
    width: 100%;
    gap: 1rem;
        padding: 20px;
}
.search-layout {
    display: flex;
    gap: 20px;
    width: 100%;
}
.supplement-card {
    width: calc(32% - 14px);
    margin: 10px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.supplement-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px) scale(1.01); /* Réduit le grossissement et ajoute un léger effet de flottement */
	}

.supplement-image {
    width: 150px;
    min-width: 100px;
    height: 150px;
    overflow: hidden;
    border-radius: 30px 30px 30px 30px;
    margin-right: 20px;
    display: flex;
    align-self: center;
}

.supplement-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.supplement-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}

.supplement-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 15px;
}

.supplement-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e40af;
    align-self: center;
    margin: 10px;
    line-height: 1.2;
}

.supplement-brand {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
    align-self: center;

}

.supplement-category {
    font-size: 0.8rem;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    margin: 0;
    align-self: center;

}
.supplement-market-stock {
    margin: 8px 0 0;
    font-size: 0.78rem;
    font-weight: 900;
    align-self: center;
}
.supplement-market-stock.is-available { color: #047857; }
.supplement-market-stock.is-unavailable { color: #b45309; }

	.supplement-description {
		font-size: 0.95rem;
		color: #334155;
		margin-bottom: 0.5rem;
	}

.supplement-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: 0.5rem;
}
.supplement-actions {
    display: grid;
    gap: 6px;
    justify-items: end;
}
	.supplement-price {
		font-size: 1.1rem;
		font-weight: bold;
		color: #0284c7;
		margin: 0 5px 8px 0;
	}
.filter-section {
    margin-bottom: 20px;
}

.filter-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0284c7;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.filter-option input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #0284c7;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
}
.filter-option input[type="checkbox"]:checked {
    background-color: #0284c7;
    border-color: #0284c7;
}
.filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0284c7;
    font-size: 14px;
    
}

.filter-option label {
    cursor: pointer;
}

.add-to-cart-btn,
.add-to-stack-btn {
    background-color: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.add-to-cart-btn:hover,
.add-to-stack-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(2, 132, 199, 0.3);
}

.add-to-cart-btn:active,
.add-to-stack-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}
.add-to-cart-btn:disabled,
.add-to-stack-btn:disabled,
.add-to-cart-btn.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    background: #e5e7eb;
    color: #64748b;
    box-shadow: none;
}
.add-to-stock-link {
    color: #0f4f80;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}
.add-to-stock-link:hover {
    color: #0369a1;
    text-decoration: underline;
}
.principal {
				background-color: white;
				border-radius: 1rem;
				padding: 1rem;
				margin-bottom: 2rem;
				box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
			}
.muscle-info {
				background-color: white;
				border-radius: 1rem;
				padding: 2rem;
				margin-bottom: 2rem;
				box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
			}
			.muscle-info h2 {
				color: #0284c7;
				margin-bottom: 1rem;
			}

			.muscle-info p {
				margin-bottom: 1rem;
			}
	.supplement-section {
				background-color: white;
				border-radius: 1rem;
                grid-template-columns: repeat(3, 1fr);
				padding: 2rem;
				margin-bottom: 2rem;
				box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
			}

			.supplement-section h2 {
				color: #0284c7;
				margin-bottom: 1rem;
			}

.supplement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}


	.supplement-card h3 {
				color: #0284c7;
				margin-bottom: 0.5rem;
			}

	.supplement-card p {
				font-size: 0.9rem;
			}


.main-nav {
    background-color: white;
    padding: 0px 0;
    max-width: none; /* Supprimez la largeur maximale fixe */
    width: 100%; /* Utilisez toute la largeur disponible */

}
.menu {
        max-width: none;
		display: flex;
		list-style-type: none;
		margin: 0;
		padding: 0;
		border-radius: 5px;
        text-align: center;
        width: 100%;
		}


		.menu > li {
        position: relative;
			height: 100%;
        margin: 0 0px;
        flex: 1 1 auto; /* Permet aux éléments de grandir et de rétrécir */
}

.menu > li > a {
    position: relative;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 10px;
    display: block;
    transition: color 0.3s ease;
}

.menu > li > a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0284c7;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.has-submenu > a::after {
    font-size: 0.7em;
}
.menu > li:hover .submenu-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.menu > li > a:hover,
.menu > li > a.active {
    color: #0284c7;
    
}

.menu > li > a:hover::after,
.menu > li > a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.has-submenu:has(.menu-cat-cognition) { --menu-accent: #7c3aed; }
.has-submenu:has(.menu-cat-muscle) { --menu-accent: #dc2626; }
.has-submenu:has(.menu-cat-coeur) { --menu-accent: #e11d48; }
.has-submenu:has(.menu-cat-digestion) { --menu-accent: #059669; }
.has-submenu:has(.menu-cat-articulations) { --menu-accent: #64748b; }
.has-submenu:has(.menu-cat-immunite) { --menu-accent: #2563eb; }
.has-submenu:has(.menu-cat-energie) { --menu-accent: #d97706; }
.has-submenu:has(.menu-cat-peau) { --menu-accent: #ec4899; }
.has-submenu:has(.menu-cat-anti-age) { --menu-accent: #7e22ce; }

.menu-category-link {
    display: flex !important;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 70px;
    line-height: 1.15;
    border-radius: 12px;
    margin: 4px 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.menu-category-link .benefit-badge-svg {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    filter: saturate(0.96);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.menu-category-link:hover .benefit-badge-svg,
.menu > li:hover .menu-category-link .benefit-badge-svg {
    filter: saturate(1.12);
    transform: translateY(-2px);
}

.menu-category-link span {
    min-width: 0;
    max-width: 100%;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: normal;
}

.menu > li > .menu-category-link:hover,
.menu > li:hover > .menu-category-link {
    color: var(--menu-accent);
    background: color-mix(in srgb, var(--menu-accent) 9%, white);
}

.menu > li > .menu-category-link::after {
    background-color: var(--menu-accent);
    width: calc(100% - 24px);
    left: 12px;
    height: 3px;
    border-radius: 999px;
}

.menu-cat-cognition { --menu-accent: #7c3aed; }
.menu-cat-muscle { --menu-accent: #dc2626; }
.menu-cat-coeur { --menu-accent: #e11d48; }
.menu-cat-digestion { --menu-accent: #059669; }
.menu-cat-articulations { --menu-accent: #64748b; }
.menu-cat-immunite { --menu-accent: #2563eb; }
.menu-cat-energie { --menu-accent: #d97706; }
.menu-cat-peau { --menu-accent: #ec4899; }
.menu-cat-anti-age { --menu-accent: #7e22ce; }

.menu > li:hover > .menu-cat-cognition { background: #f5f3ff; }
.menu > li:hover > .menu-cat-muscle { background: #fef2f2; }
.menu > li:hover > .menu-cat-coeur { background: #fff1f2; }
.menu > li:hover > .menu-cat-digestion { background: #ecfdf5; }
.menu > li:hover > .menu-cat-articulations { background: #f8fafc; }
.menu > li:hover > .menu-cat-immunite { background: #eff6ff; }
.menu > li:hover > .menu-cat-energie { background: #fffbeb; }
.menu > li:hover > .menu-cat-peau { background: #fdf2f8; }
.menu > li:hover > .menu-cat-anti-age { background: #faf5ff; }
		.dropdown-arrow {
			font-size: 0.8em;
			margin-left: 5px;
		}
.menu > li:last-child .submenu-container {
    left: auto;
    right: 0;
}

.submenu-container {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 1000;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    text-align: center;

}

.submenu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.submenu li {
    margin-bottom: 10px;
}

.submenu a {
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
}

.submenu a:hover {
    color: var(--menu-accent, #0284c7);
}
	.ingredients-list {
		margin-top: 15px;
		font-family: 'Arial', sans-serif;
	}
	.ingredient-item {
		display: flex;
		align-items: center;
		margin-bottom: 10px;
		transition: all 0.3s ease;
	}
	.ingredient-item:hover {
		transform: translateX(5px);
	}
	.ingredient-name {
		width: 120px;
		text-align: right;
		margin-right: 15px;
		font-weight: 600;
		cursor: pointer;
		color: #3B82F6;
		transition: color 0.3s ease;
	}
	.ingredient-name:hover {
		color: #1E40AF;
	}
.progress-container {
    flex-grow: 1; /* Changé de 80% à 1 */
    background-color: #E5E7EB;
    height: 15px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    width: 100%; /* Ajouté pour s'assurer que la barre prend toute la largeur disponible */
}
	.progress-bar {
        
		height: 100%;
		background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
		border-radius: 6px;
		transition: width 0.5s ease-in-out;
	}
	.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1F2937;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.5); /* Ajout d'une ombre pour améliorer la lisibilité */
	}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #4b5563;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-button {
    background-color: #0284c7;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0369a1;
}


.action-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.action-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    color: #0284c7;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #0284c7;
    color: white;
    border: 1px solid #0284c7;
}

.pagination a:hover:not(.active) {background-color: #ddd;
			}
		
.site-footer {
  background-color: #E0EAFF;;
  color: black;
  padding: 40px 20px;

  font-family: Arial, sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-section {
    flex: 1 1 auto;
        margin-right: 15px;
    margin-bottom: 20px;
    padding: 0 10px;
    border-right: 1px solid #727272; 
    min-width: 150px
}
.footer-section:last-child {
    border-right: none; /* Pas de bordure pour la dernière colonne */
}
.footer-section h3 {
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style-type: none;
  padding: 0;
}

.footer-section ul li a {
  color: black;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.8;
}

.app-links 
			{font-size: 0.8125em}

select {
  width: 100%;
  padding: 10px;
  background-color: white;
  border: none;
  border-radius: 4px;
}

.footer-bottom {
  margin-top: 0px;
  padding-top: 20px;
  border-top: 1px solid #4a5568;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.related-sites, .trustpilot, .social-links {
  margin: 10px 0;
}

.copyright {
	    width: 100%;

	text-align: center;}


@media (max-width: 1200px) {
    .footer-section {
        flex-basis: 100%;
        border-right: none;
        border-bottom: 0.5px solid #0284c7; /* Ligne horizontale sur mobile */
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
        .footer-section:last-child {
        border-bottom: none;
    }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
footer a:hover {
    color: #025A8C;
    text-decoration: underline;
}

/* Styles pour la page de paiement */
.checkout-summary {
    background-color: #f0f9ff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #334155;
}

.checkout-total {
    border-top: 2px solid #e0f2fe;
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: right;
    font-size: 1.2rem;
    color: #0284c7;
}

.checkout-form {
    max-width: 600px;
    margin: 0 auto;
}

.checkout-form h2 {
    color: #0284c7;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #4b5563;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.checkout-button {
    background-color: #0284c7;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.checkout-button:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
}

.checkout-button:active {
    transform: translateY(0);
}
.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}


.item-image:hover {
    transform: scale(1.05);
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.stack-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    width: calc(50% - 10px); /* Pour 2 éléments par ligne sur les grands écrans */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.stack-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


	.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
    margin: 0 5px;
}

.remove-item {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    align-self: flex-end;
}

.remove-item:hover {
    background-color: #ff3333;
}
@media (max-width: 768px) {
    .stack-item {
        width: 100%; /* Un élément par ligne sur les petits écrans */
    }
}
.stack-benefits {
    margin-top: 30px;
    padding: 20px;
    background-color: #f7faff;
    border: 2px dashed #9bb0ff;
    border-radius: 10px;
    text-align: center;
}

.stack-benefits h2 {
    color: #4b7bec;
    margin-bottom: 10px;
}

.benefits-placeholder {
    color: #6789c2;
    font-size: 1rem;
}
.item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-details h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.item-brand {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 5px 0;
}

.item-price {
    font-weight: bold;
    color: #0284c7;
    margin: 0;
}

.item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

/* Témoignages */
.testimonial-section {
    background-color: #e6fffa;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: #2c5282;
}

.supplement-exemple {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.supplement-exemple:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.supplement-exemple h3 {
    color: #2b6cb0;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3182ce;
    padding-bottom: 0.5rem;
}

.supplement-exemple p {
    margin-bottom: 1rem;
}

.supplement-exemple strong {
    color: #2c5282;
}

.cta-button {
    display: inline-block;
    background-color: #3182ce;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #2c5282;
}

.page-title {
    color: #0284c7;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.empty-history {
    text-align: center;
    padding: 2rem;
    background-color: #f0f9ff;
    border-radius: 8px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.order-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.order-header {
    background-color: #f0f9ff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-number {
    color: #0284c7;
    font-size: 1.2rem;
    margin: 0;
}

.order-date {
    color: #64748b;
    font-size: 0.9rem;
}

.order-details {
    padding: 1rem;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.item-brand, .item-quantity, .item-price {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.order-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-weight: bold;
    color: #0284c7;
}

.order-status {
    font-size: 0.9rem;
}

.status-en-cours-de-traitement {
    color: #eab308;
}

.status-expédiée {
    color: #22c55e;
}

.status-livrée {
    color: #10b981;
}

.status-annulée {
    color: #ef4444;
}

.order-actions {
    padding: 1rem;
    background-color: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-details, .btn-cancel {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-details {
    background-color: #0284c7;
    color: white;
}

.btn-details:hover {
    background-color: #0369a1;
}

.btn-cancel {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.btn-cancel:hover {
    background-color: #e2e8f0;
}
.hamburger-menu {
    display: none; /* Cache le bouton par défaut */
}
.close-menu {
    display: none; /* Cache le bouton de fermeture par défaut */
}

.addresses {
    margin-bottom: 40px;
}

.address-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.address-card h3 {
    margin-top: 0;
    color: #0284c7;
}

.address-actions {
    margin-top: 10px;
}

.address-actions button {
    margin-right: 10px;
}

.add-address form {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}
button {
    background-color: #0284c7;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0369a1;
}

/* Ajustements pour les appareils mobiles */
@media screen and (max-aspect-ratio: 13/9) {
    /* Ajustements généraux */
    body {
        font-size: 70%;
    }
    a {
    text-decoration: none;
}  
    .sidebar{
    display: none;
}
    .container * {
        font-size: 100%; /* Réduit la taille de police à 90% pour tous les éléments dans .container */
    }
  /* Ajustements spécifiques pour la page d'accueil */
    .hero-section .hero-title {
        font-size: 1.8rem; /* Taille spécifique pour le titre principal */
    }

    .hero-section .hero-subtitle {
        font-size: 1rem; /* Taille spécifique pour le sous-titre */
    }

    .cta-button {
        font-size: 0.9rem; /* Taille spécifique pour les boutons CTA */
        padding: 0.6rem 1.2rem; /* Ajustement du padding pour les boutons */
    }

    .feature-card .feature-title {
        font-size: 1.1rem; /* Taille spécifique pour les titres des cartes de fonctionnalités */
    }

    .feature-card p {
        font-size: 0.9rem; /* Taille spécifique pour le texte des cartes de fonctionnalités */
    }

    .process-title, .testimonial-section h2 {
        font-size: 1.5rem; /* Taille pour les titres de section */
    }

    .process-step .step-title {
        font-size: 1rem; /* Taille pour les titres des étapes du processus */
    }

    .logo {
        margin-left: 0;
    }
    .stack-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .stack-icon:not(.stack-logo-icon) {
        margin-right: 0.5rem;
        font-size: 1.1rem;
    }
    
    .stack-count {
        font-size: 0.6rem;
        min-width: 0.9rem;
        height: 0.9rem;
        top: -4px;
        right: -4px;
    }
    .container {
        width: 95%;
        padding: 0.5rem;
    }

    /* Header et navigation */
    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

  /* Ajustements pour la barre de recherche */
    .search-section {
        width: 100%;
        margin: 1rem 0;
    }

    .search-bar {
    display: flex;
    width: 90%;
    height: 40px;
    overflow: hidden;
    border-radius: 25px;
    background-color: white;
    align-items: center;
    position: relative;
        align-self: center;
}

.search-bar input {
    flex-grow: 1.2;
    padding: 0 15px;
    border: none;
    font-size: 12px;
    width: calc(90% - 40px);
    height: 100%;
    line-height: 40px;
    vertical-align: middle;
}

.search-bar button {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%; 
    border: none;
    background-color: #0284c7;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0 25px 25px 0;
}

        /* Si l'icône de recherche est une image ou un élément SVG */
    .search-bar button img,
    .search-bar button svg {
        width: 20px;
        height: 20px;
    }
    .user-section {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }


    .menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
    }

    .menu.active {
        display: block;
    }

    .menu > li {
        margin: 0;
    }

    .menu > li > a {
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Bouton menu hamburger */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        margin: 1rem 0;
    }
    .legend {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}
.legend h4 {
    margin-top: 0;
    color: #495057;
}
.legend ul {
    list-style-type: none;
    padding-left: 0;
}
.legend li {
    margin-bottom: 5px;
}
.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 50%;
}
    /* Cartes de suppléments */
        .supplements-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 10px;
    }

    .supplement-card {
        display: flex;
        flex-direction: column;
        background-color: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.3s ease;
        width: 90%;
        margin: 0 0 1rem 0;
        padding: 15px;
    }
 .supplement-image {
        width: 100%;
        height: 200px;
        overflow: hidden;
        border-radius: 8px;
        margin-bottom: 15px;
     
    }

    .supplement-image img {
        object-fit: scale-down;
    }

    .supplement-info {
        display: flex;
        flex-direction: column;
    }

    .supplement-header {
        margin-bottom: 10px;
    }

    .supplement-name {
        font-size: 1.2rem;
        font-weight: 700;
        color: #1e40af;
        margin-bottom: 5px;
    }

    .supplement-brand {
        font-size: 0.9rem;
        color: #4b5563;
    }

    .supplement-category {
        font-size: 0.8rem;
        color: #6b7280;
        background-color: #f3f4f6;
        padding: 2px 8px;
        border-radius: 12px;
        display: inline-block;
        margin-top: 5px;
    }
    .supplement-market-stock {
        margin: 7px 0 0;
        font-size: 0.78rem;
        font-weight: 900;
    }
    .supplement-market-stock.is-available { color: #047857; }
    .supplement-market-stock.is-unavailable { color: #b45309; }

    .supplement-description {
        font-size: 0.9rem;
        color: #374151;
        margin-bottom: 10px;

    }

    .supplement-action {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }
    .supplement-actions {
        display: grid;
        gap: 6px;
        justify-items: end;
    }

    .supplement-price {
        font-size: 1.1rem;
        font-weight: bold;
        color: #0284c7;
    }
    .profile-card {
        box-sizing: border-box;
        width: 80%;
    }
.add-to-cart-btn,
.add-to-stack-btn {
    background-color: #0284c7;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border: 0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

    .add-to-cart-btn:hover,
    .add-to-stack-btn:hover {
        background-color: #0369a1;
    }
    .add-to-stock-link {
        color: #0f4f80;
        font-size: 0.78rem;
        font-weight: 900;
        text-decoration: none;
    }
    .add-to-cart-btn:disabled,
    .add-to-cart-btn.is-disabled {
        background: #e5e7eb;
        color: #64748b;
        cursor: not-allowed;
        box-shadow: none;
    }

 .ingredients-list {
        margin-top: 10px;
    }

    .ingredient-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
        width: 100%; /* Ajouté pour s'assurer que l'élément prend toute la largeur */

    }

    .ingredient-name {
        width: 100%;
        text-align: left;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .progress-container {
        width: 100%;
        height: 20px;
        border-radius: 10px;
    }

    .progress-bar {
        height: 100%;
        border-radius: 10px;
    }

    .progress-text {
        font-size: 10px;
    }
    /* Formulaires */
    form input,
    form button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
       .user-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .stack-button {
        width: 80%;
        max-width: 200px;
        text-align: center;
    }

    .user-menu-container {
        position: relative;
        width: 80%;
        max-width: 200px;
    }

    .user-icon-button {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .user-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 250px;
        background-color: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .user-dropdown a {
        padding: 12px 15px;
        font-size: 14px;
        text-align: center;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination a {
        margin: 0.25rem;
    }
        /* Ajustements pour le footer */
    .site-footer {
        padding: 20px 10px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid #727272;
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .footer-section ul li a {
        font-size: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }

    .copyright {
        text-align: center;
        margin-bottom: 10px;
    }
/* menu pour tel*/ 
    
     .hamburger-menu-container {
        position: relative;
    }
    .hamburger-menu {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }


    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        margin-bottom: 5px;
        position: relative;
        background: #0284c7;
        border-radius: 3px;
        z-index: 1;
    }

    .hamburger-menu span:last-child {
        margin-bottom: 0;
    }
.close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
  .main-nav {
        position: fixed;
        top: 0px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: whitesmoke;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transition: left 0.5s ease;
        z-index: 1000; /* Augmenté pour s'assurer qu'il est au-dessus des autres éléments */
        display: flex;
        flex-direction: column;
              overflow-y: auto; /* Permet le défilement si nécessaire */


    }

    .main-nav.active {
        left: 0;
    }

    .menu {
        display: flex;
        flex-direction: column;
        top: 0;
        margin: 0;
        padding-left: 0; /* Assurez-vous qu'il n'y a pas de padding à gauche */
         flex-grow: 1;
        overflow-y: scroll;

    }

    .menu > li {
        width: 100%;
		flex: 0 0 auto; 
	}

    }
    .menu > li > a {
        padding: 15px;
        border-bottom: 1px solid #e5e7eb;
        display: block;
        color: #333; /* Assurez-vous que le texte est visible */
        text-decoration: none;
    }

    .menu-category-link {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        min-height: 50px;
    }

    .menu-category-link .benefit-badge-svg {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .submenu-container {
        position: absolute;
        left: 0;
        right:0;
        width: 87%;
        display: none;
        background-color: #f8f9fa; /* Couleur de fond légère pour les sous-menus */

    }

    .submenu {
        list-style-type: none;
        width: 100%; /* Assurez-vous que cette ligne est présente */

    }

    .submenu a {
        display: block;
        color: #333;
        text-decoration: none;
        width: 100%; /* Assurez-vous que cette ligne est présente */
            box-sizing: border-box; /* Ajoutez cette ligne pour inclure le padding dans la largeur totale */

    }
.submenu-container.active {
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

/* ============================================
   Responsive header reset
   Keeps tablet/desktop out of the legacy mobile aspect-ratio rules.
   ============================================ */
body {
    font-size: 100%;
}

.header-content {
    display: grid;
    grid-template-columns: 118px minmax(280px, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 96px;
    padding: 0 26px;
    background-color: #172031;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.logo-link {
    width: 78px;
    height: 78px;
    border-radius: 22px;
}

.logo {
    width: 92px;
    height: 92px;
    margin: 0;
    object-fit: cover;
    background: transparent;
    border-radius: 22px;
    box-shadow: none;
    transform: scale(1.06);
}

.search-section {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 44px;
    margin: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.search-bar input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 100%;
    padding: 0 18px;
    border: 0;
    line-height: 44px;
}

.search-bar button {
    position: static;
    flex: 0 0 56px;
    width: 56px;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0 999px 999px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    width: auto;
    margin: 0;
}

.stack-button,
.stock-button {
    min-height: 44px;
    white-space: nowrap;
}

.stock-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef8ff;
    color: #075985;
    font-weight: 900;
    text-decoration: none;
}

.stock-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #dff3ff;
}

.stock-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
}

.profile-button-minimal,
.login-button,
.register-button {
    min-height: 36px;
    white-space: nowrap;
}

.cart-header-button {
    flex: 0 0 auto;
}

.hamburger-menu {
    display: none !important;
}

.close-menu {
    display: none !important;
}

.main-nav {
    position: static;
    left: auto;
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    background: #fff;
    overflow: visible;
    box-shadow: none;
}

.menu {
    display: flex;
    flex-direction: row;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.menu > li {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.menu-category-link {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 68px;
}

.menu-category-link span {
    font-size: 0.78rem;
}

.submenu-container {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 230px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    z-index: 1000;
}

.menu > li:hover .submenu-container,
.submenu-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 761px) and (max-width: 1180px) {
    .header-content {
        grid-template-columns: 90px minmax(260px, 1fr) auto;
        gap: 14px;
        min-height: 86px;
        padding: 0 16px;
    }

    .logo-link {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .logo {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }

    .search-section {
        max-width: none;
    }

    .user-section {
        gap: 8px;
    }

    .stack-button,
    .stock-button {
        min-height: 40px;
        padding: 0 0.85rem;
        font-size: 0.85rem;
        letter-spacing: 0;
    }

    .profile-button-minimal {
        padding: 6px 9px;
        font-size: 0.82rem;
    }

    .main-nav {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .menu {
        width: max-content;
        min-width: 100%;
    }

    .menu > li {
        flex: 0 0 148px;
    }

    .menu-category-link {
        min-height: 62px;
        margin: 3px 4px;
    }

    .menu-category-link .benefit-badge-svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 760px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .header-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: 0;
        padding: 10px 12px 12px;
    }

    .logo-container {
        min-height: 54px;
    }

    .logo-link {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .logo {
        width: 62px;
        height: 62px;
        border-radius: 16px;
    }

    .search-section {
        max-width: none;
    }

    .search-bar {
        height: 42px;
        border-radius: 16px;
        box-shadow: none;
    }

    .search-bar input {
        line-height: 42px;
        font-size: 0.9rem;
        padding: 0 12px;
    }

    .search-bar button {
        flex-basis: 46px;
        width: 46px;
        border-radius: 0 16px 16px 0;
    }

    .user-section {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .stack-button-container,
    .stock-button-container,
    .cart-button-container,
    .user-menu-container,
    .lang-switcher {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }

    .stack-button,
    .stock-button {
        min-height: 34px;
        padding: 0 9px;
        font-size: 0.82rem;
        border-radius: 18px;
        letter-spacing: 0;
        box-shadow: none;
    }

    .stack-icon:not(.stack-logo-icon) {
        width: 22px;
        height: 22px;
        margin-right: 6px;
        font-size: 0.86rem;
    }

    .stack-icon.stack-logo-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        border-radius: 8px;
    }

    .stack-logo-icon img {
        width: 30px;
        height: 30px;
    }

    .stock-icon {
        width: 22px;
        height: 22px;
        font-size: 0.86rem;
    }

    .stack-completion-badge {
        display: none;
    }

    .stock-count-badge {
        display: none;
    }

    .cart-header-button {
        width: 34px;
        height: 34px;
        font-size: 0.94rem;
        border-width: 1px;
    }

    .profile-button-minimal,
    .login-button,
    .register-button {
        min-height: 34px;
        padding: 0 9px;
        font-size: 0.8rem;
        border-width: 1px;
    }

    .lang-btn {
        min-height: 32px;
        padding: 4px 5px;
        border-width: 1px;
    }

    .lang-btn img {
        width: 23px;
        height: auto;
    }

    .hamburger-menu {
        display: block !important;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1200;
        width: 44px;
        height: 44px;
        background: rgba(23, 32, 49, 0.92);
        border: 0;
        border-radius: 10px;
        padding: 9px 10px;
        touch-action: manipulation;
    }

    .mobile-menu-open .hamburger-menu {
        opacity: 0;
        pointer-events: none;
    }

    .hamburger-menu span {
        display: block;
        width: 24px;
        height: 3px;
        margin-bottom: 5px;
        background: #38bdf8;
        border-radius: 999px;
    }

    .hamburger-menu span:last-child {
        margin-bottom: 0;
    }

    .close-menu {
        display: block !important;
        position: sticky;
        top: 0;
        align-self: flex-end;
        width: 42px;
        height: 36px;
        min-height: 36px;
        margin: 4px 6px 2px;
        background: transparent;
        border: 0;
        color: #172031;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: min(88vw, 320px);
        height: 100dvh;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
        background: #fff;
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.18);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        z-index: 1150;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    .main-nav,
    .main-nav *,
    .main-nav *::before,
    .main-nav *::after {
        box-sizing: border-box;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .menu {
        flex-direction: column;
        width: 100%;
        overflow: visible;
        list-style: none;
        margin: 0;
        padding: 0 0 8px;
    }

    .menu > li {
        width: 100%;
        height: auto;
        min-height: 0;
        flex: 0 0 auto;
        border-bottom: 1px solid #edf2f7;
    }

    .menu-category-link {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 44px;
        gap: 10px;
        margin: 0;
        padding: 6px 12px;
        border-radius: 0;
        line-height: 1.15;
    }

    .main-nav .menu > li > .menu-category-link {
        min-height: 44px;
        padding: 6px 12px;
    }

    .menu-category-link .benefit-badge-svg {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }

    .menu-category-link span {
        text-align: left;
        font-size: 0.8rem;
        line-height: 1.15;
    }

    .submenu-container {
        position: static;
        display: none;
        width: 100%;
        padding: 4px 12px 8px 50px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fbff;
    }

    .submenu-container.active {
        display: block;
    }

    .has-submenu.is-open > .menu-category-link {
        color: var(--menu-accent, #0284c7);
        background: #f8fbff;
    }

    .submenu li {
        margin-bottom: 0;
    }

    .submenu a {
        display: block;
        padding: 6px 0;
        text-align: left;
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .home-shell,
    .catalog-shell,
    .community-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-hero h1 {
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .home-hero-copy {
        font-size: 0.98rem;
    }

    .home-actions {
        gap: 8px;
    }

    .home-primary,
    .home-secondary {
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

/* Cohesion des actions du header */
.user-section {
    gap: 8px;
}

.stack-button,
.stock-button,
.profile-button-minimal,
.cart-header-button,
.lang-btn {
    min-height: 44px;
    box-sizing: border-box;
}

.stack-button,
.stock-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: none;
    padding: 0 14px 0 9px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.98);
    color: #0b1f46;
    box-shadow: 0 8px 18px rgba(2, 8, 23, 0.10);
    letter-spacing: 0;
    font-weight: 900;
    text-decoration: none;
}

.stack-button:hover,
.stock-button:hover,
.cart-header-button:hover,
.profile-button-minimal:hover,
.lang-btn:hover {
    transform: translateY(-1px);
}

.stack-icon.stack-logo-icon,
.stock-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
}

.stock-icon {
    display: inline-grid;
    place-items: center;
    background: #e0f2fe;
    color: #0284c7;
}

.header-action-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.stock-count-badge {
    background: #dff3ff;
    color: #075985;
}

.cart-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.34);
    background: rgba(255,255,255,0.08);
    color: #dff3ff;
    box-shadow: none;
}

.cart-count-badge {
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-width: 2px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
}

.profile-button-minimal {
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid rgba(99, 102, 241, 0.78);
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-weight: 900;
}

.profile-button-minimal:hover {
    background: rgba(79, 70, 229, 0.24);
    color: #fff;
}

.lang-btn {
    width: 54px;
    min-width: 54px;
    flex: 0 0 54px;
    justify-content: center;
    border-width: 1px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
}

@media (max-width: 760px) {
    .user-section {
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .user-section::-webkit-scrollbar {
        display: none;
    }

    .stack-button,
    .stock-button {
        min-height: 36px;
        padding: 0 10px 0 7px;
        border-radius: 12px;
        font-size: 0.82rem;
        box-shadow: none;
    }

    .stack-icon.stack-logo-icon,
    .stock-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        border-radius: 8px;
    }

    .header-action-svg {
        width: 15px;
        height: 15px;
    }

    .cart-header-button {
        width: 36px;
        height: 36px;
        min-height: 36px;
        border-radius: 12px;
    }

    .cart-count-badge {
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        border-width: 1px;
    }

    .profile-button-minimal,
    .login-button,
    .register-button {
        min-height: 36px;
        padding: 0 10px;
        border-radius: 12px;
    }

    .lang-btn {
        width: 44px;
        min-width: 44px;
        flex-basis: 44px;
        min-height: 36px;
        border-radius: 12px;
    }
}

/* Header search seam fix */
.search-bar {
    background: #4f5df7;
}

.search-bar input {
    background: #fff;
    box-shadow: none;
}

.search-bar button {
    margin-left: -4px;
    box-shadow: -4px 0 0 #4f5df7;
}

.search-bar button:hover {
    box-shadow: -4px 0 0 #4352f4;
}
