/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600;700;800&family=Rubik:wght@300;400;500;600&display=swap');

/* Déclaration des variables */
:root {
    --primary-color: #ff6f3c;
    --secondary-color: #2274a5;
    --secondary-dark-color: #22223b;
    --white-color: #ffffff;
    --light-bg-color: #f9f9f9;
    --light-text-color: #4a4e69;
    --border-color: #e5e8ec;
    --dark-color: #22223b;
    --accent-color: #ffd166;
    --font-small: 13px;
    --font-smaller: 11px;
    --percent100: 100%;
    --percent50: 50%;
    --fw3: 300;
    --fw5: 500;
    --fw6: 600;
    --fw7: 700;
    --fw8: 800;
    --trans-background-color: rgba(0, 0, 0, 0.35);
    --trans-background: background-color 0.3s;
    --trans-color: color 0.3s;
}

/* Réinitialisation et normalisation */
*, ::before, ::after {
    box-sizing: border-box;
}

/* Styles généraux du body */
body {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--dark-color);
    background-color: var(--white-color);
}

/* Liens */
a {
    text-decoration: none;
    color: inherit;
}

/* Liste sans puces */
ul {
    list-style: none;
}

/* Images */
img {
    max-width: var(--percent100);
    vertical-align: middle;
}

/* Texte en gras */
strong {
    font-weight: var(--fw8);
}

/* Tableaux */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Placeholder dans les champs de formulaire */
input::placeholder {
    font: inherit;
}

/* Styles pour les titres */
h1, h2, h3, h4 {
    font-family: 'Poppins';
}

/* Taille et style des titres */
h1 {
    font-size: calc(1.3em + 1vw);
    font-weight: var(--fw8);
    line-height: 1;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.2em;
    font-weight: var(--fw7);
}

h4 {
    font-size: 1em;
    font-weight: var(--fw6);
}

/* Conteneurs principaux */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0.938em;
}

/* Flexbox */
.flexwrap {
    display: flex;
    flex-wrap: wrap;
}

.flexcenter {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flexitem {
    display: flex;
    align-items: center;
}

.flexcol {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

/* Effet au survol des liens principaux */
.main-links a:hover {
    color: var(--secondary-color);
}

/* Icônes */
.icon-small, .icon-large {
    display: flex;
    align-items: center;
    padding: 0 0.25em;
    font-weight: normal;
}

.icon-small {
    font-size: 1.25em;
    margin-left: auto;
}

.icon-large {
    font-size: 1.75em;
    padding: 0 0.75em 0 0;
}

/* Masquage sur mobile */
.mobile-hide {
    display: none;
}

/* Couvreur d'objets */
.object-cover img {
    position: absolute;
    object-fit: cover;
    width: var(--percent100);
    height: var(--percent100);
    display: block;
}

/* Produits médias */
.products .media {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

/* Boutons principaux, secondaires et légers */
.primary-button, .secondary-button, .light-button {
    font-size: var(--font-small);
    padding: 0.9em 2em;
    height: auto;
    width: fit-content;
    border-radius: 2em;
    transition: var(--trans-background-color);
}

/* Boutons principaux */
.primary-button {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

/* Boutons secondaires */
.secondary-button {
    background-color: var(--secondary-dark-color);
    color: var(--white-color);
}

.secondary-button:hover {
    background-color: var(--dark-color);
    color: var(--secondary-color);
}

/* Boutons légers */
.light-button {
    background-color: var(--light-bg-color);
}

.light-button:hover {
    background-color: var(--secondary-dark-color);
    color: var(--white-color);
}

/* Liens "view all" */
.view-all {
    font-size: var(--font-small);
    display: flex;
    gap: 1em;
    transition: var(--trans-color);
}

/* Texte plus petit */
.mini-text {
    font-size: var(--font-smaller);
    color: var(--light-text-color);
}

/* -----------------------------
 * HEADER
 * ----------------------------- */

 :where(.off-canvas, header) li > a {
    display: flex;
    position: relative;
    line-height: inherit;
    transition: var(--trans-color);
}

/* 01. HEADER ----------------
 * a. Header Top
 * --------------- */ 

.header-top .wrapper {
    font-size: var(--font-small);
    font-weight: var(--fw3);
    justify-content: space-between;
    line-height: 42px;
}

.header-top .wrapper ul {
    gap: 2em;
}

.header-top li {
    position: relative;
}

.header-top ul ul {
    position: absolute;
    left: -1em;
    line-height: 2em;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    z-index: 1;
    display: none;
}

:where(.header-top, .thetop-nav) .right ul ul li a {
    padding: 0.25em 1em;
}

:where(.header-top, .thetop-nav) .right ul ul li.current a {
    background-color: var(--border-color);
}

.header-top li:hover ul {
    display: block;
}

/* 01. HEADER -------------------
 * b. Header Nav 
 * ------------------ */ 

.header-nav { 
    padding: 0.5em 0; 
    margin-bottom: 1.5em; 
    border-bottom: 1px solid var(--border-color); 
}

.trigger { 
    font-size: 1.5em;
    display: flex;
    padding: 0.25em;
    margin-right: 0.5em; 
}

.logo a {
    font-family: 'Poppins', sans-serif; /* Ajout d'une police de secours */
    font-size: 1.75em;
    position: relative; 
    font-weight: var(--fw8); 
    display: flex; 
    padding-left: 0.75em;
    margin-right: 2em;
}

.circle {
    position: absolute; 
    top: -15px;
    left: 0; 
    width: 38px; 
    height: 38px; 
    border-radius: var(--percent50); 
    background-color: var(--light-bg-color);
    z-index: -1;  
}

.circle::before {
    content: ''; 
    position: absolute; 
    width: 28px; 
    height: 28px; 
    border-radius: var(--percent50); 
    background-color: var(--secondary-color); 
    bottom: 5px; 
    right: 5px;
    opacity: 0.4; /* Correction de la syntaxe de l'opacité */
}

.header-nav nav > ul {
    line-height: 100px; 
    gap: 2em;
}

.fly-item { 
    position: absolute; 
    height: 16px; 
    font-size: var(--font-smaller); 
    padding: 3px; 
    text-align: center; 
    line-height: 10px;
    color: var(--white-color); 
}

nav .fly-item {
    top: 50%; 
    margin-top: -24px; 
    width: 30px; 
    border-radius: 3px; 
    right: -32px; 
    background-color: var(--primary-color);
}

.header-nav .right {
    position: relative; 
    margin-left: auto;
}

.header-nav .right .icon-large {
    position: relative; 
}

.header-nav .right .fly-item {
    top: 0; 
    right: 16px; 
    width: 16px; 
    background-color: var(--secondary-dark-color); 
    border-radius: var(--percent50); 
}

.mega .flexcol {
    flex: 1; 
    min-width: 180px;
    padding-right: 2.5em;
    margin-bottom: 1.5em;
    z-index: 1; 
}

/* 01. HEADER ------------
 * C. Header Main, Departments Category 
 * ----------------- */ 

.header-main {
    background-color: var(--secondary-dark-color); 
    padding: 1.5em 0; 
    margin-bottom: 2em; 
}

.dpt-cat {
    position: relative; 
    z-index: 10; 
}

.dpt-cat .dpt-head {
    position: relative; 
    width: 300px; 
    padding: 0.75em 1.5em; 
    background-color: var(--primary-color); 
    border-radius: 7px 7px 0 0; 
    color: var(--white-color); 
    margin-bottom: -2.15em; /* Si cette valeur est incorrecte, ajustez-la en fonction du design souhaité */
}

.dpt-cat .dpt-head .mini-text {
    color: var(--light-bg-color); 
}

.dpt-cat .dpt-trigger { 
    position: absolute; 
    right: 0; 
    top: 0; 
    padding: 1.3em; 
    height: 60px; 
    width: 60px;
}

.dpt-menu > ul > li > a {
    font-size: var(--font-small); 
    height: 46px; 
    display: flex; /* Ajouté pour que le contenu soit centré correctement */
    align-items: center; 
    padding: 0 1em; /* Ajout d'un padding pour les éléments du menu */
}

.dpt-menu .has-child:hover ul { 
    display: block; 
}

.dpt-menu .has-child li a:hover {
    text-decoration: underline; 
}

/* 01. HEADER -------------
 * d. Search Form
 * ---------------------*/ 

.header-main .right { 
    flex: 1; /* Ajoute une flexibilité dans la section droite */
}

form { 
    position: relative; 
}

form.search input {
    line-height: 3.25em; /* Hauteur de ligne ajustée pour l'input */
    padding: 0 7em 0 4.5em; /* Espacement interne pour le texte et l'icône */
    border: 0;  
    outline: 0; 
    width: 100%; /* Utilisation de 100% au lieu de var(--percent100) pour être plus explicite */
    border-radius: 7px; 
    font-size: 0.9em; 
    font-weight: var(--fw3); 
}

/* Ciblage des éléments à l'intérieur du formulaire de recherche (span, button) */
form.search :where(span, button) {
    position: absolute; 
    top: 0; 
    padding: 0.55em 1.5em; 
    font-size: 1em; 
    color: var(--light-text-color); 
    height: 100%; /* Utilisation de 100% pour la hauteur au lieu de var(--percent100) */
}

form.search button {
    right: 0; 
    border: 0; 
    outline: 0; 
    font-size: 0.875em; 
    font-weight: var(--fw6); 
    background-color: var(--primary-color); 
    color: var(--white-color); 
    border-radius: 0 7px 7px 0; 
    cursor: pointer; 
    transition: var(--trans-background); 
}

form.search button:hover { 
    background-color: var(--dark-color); /* Couleur de fond au survol */
}
/* ---------------------------
 * Footer emplacement
 * ---------------------------*/

 .item {
    display: flex;              /* Utilisation de Flexbox pour aligner les éléments */
    flex-direction: column;     /* Organise les éléments en colonne, mais on peut ajuster */
    gap: 1em;                   /* Ajout d'un espace uniforme entre les éléments à l'intérieur de .item */
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* Espace uniforme entre les éléments dans .content */
    gap: 1em;                    /* Espacement entre les éléments à l'intérieur de .content */
}

.footer {
    display: flex;
    flex-wrap: wrap;             /* Permet aux éléments de se répartir sur plusieurs lignes si nécessaire */
    gap: 20px;                   /* Espacement plus important entre les éléments du footer */
    justify-content: space-between; /* Ajout d'un espacement automatique entre les groupes d'éléments du footer */
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;               /* Permet d'utiliser flexbox pour les éléments de la liste */
    flex-direction: column;      /* Aligne les éléments de la liste verticalement */
    gap: 0.5em;                  /* Espacement entre les éléments de la liste */
}

.footer li {
    display: block;              /* Utilisation de block pour les éléments de la liste pour un meilleur alignement */
    margin: 0;                   /* Réinitialise toute marge par défaut */
}

/* Exemple de style additionnel pour les liens */
.footer li a {
    text-decoration: none;      /* Supprime le souligné sur les liens */
    color: inherit;             /* Hérite de la couleur du parent, vous pouvez définir une couleur spécifique si nécessaire */
}

.footer li a:hover {
    color: var(--primary-color); /* Change la couleur des liens au survol */
}

/* 01. HEADER ---------------
 * e. Responsive MENU - OFF Canvas 
 * ---------------------------*/

 .site-off { 
    position: fixed; 
    width: 320px; 
    height: 100%; /* Correction de var(--percent100) par 100% */
    background-color: var(--white-color); 
    overflow-y: auto; 
    z-index: 1000; 
    transform: translateX(-100%); 
    visibility: hidden;
    transition: transform 0.4s, visibility 0.4s; 
    will-change: transform, visibility; 
}

.showmenu .site-off {
    transform: translateX(0); 
    visibility: visible;
    transition: transform 0.4s, visibility 0s; /* Correction de la faute "treansform" et ajustement du timing */
}

.off-canvas {
    width: 100%; /* Correction de var(--percent100) par 100% */
    height: 100%; /* Correction de var(--percent100) par 100% */
    touch-action: auto; 
    padding: 1.5em; 
}

.off-canvas .canvas-head {
    color: var(--white-color); 
    justify-content: space-between; 
    padding: 1.5em; 
    margin: -1.5em -1.5em 1.5em; 
    background-color: var(--secondary-dark-color); 
    border-bottom-right-radius: 160px 25px;
}

.off-canvas .canvas-head .logo {
    z-index: 10; 
    position: relative; 
}

.off-canvas .canvas-head .logo .circle { 
    opacity: 0.75; /* Ajout du point-virgule manquant */
}

.t-close { 
    font-size: 1.25em; 
    width: 32px;
    height: 32px; 
    border-radius: 50%; /* Utilisation de 50% pour le cercle parfait */
    background-color: var(--secondary-dark-color); 
    color: var(--white-color); 
    transition: var(--trans-background-color); 
}

.t-close:hover { 
    background-color: var(--white-color); 
    color: var(--secondary-dark-color); 
    opacity: 0.75;
}

.off-canvas .dpt-head { 
    font-size: var(--font-small); 
    padding: 1em; 
    margin-bottom: 1em;
    text-align: center; 
    background-color: var(--light-bg-color); 
    border-radius: 7px 7px 0 0; 
}

.off-canvas .has-child > :where(ul, .mega) {
    font-size: var(--font-small); 
    font-weight: var(--fw3); 
    line-height: 28px; 
    padding-left: 3em; 
    height: auto; 
    max-height: 0;
    overflow: hidden; 
    transition: max-height 0.3s cubic-bezier(0.215, 0.610, 0.355, 1); /* Correction de la syntaxe de la transition */
}

.off-canvas .expand > :where(ul, .mega) {
    max-height: 2000px;
}

.off-canvas .thetop-nav ul, .off-canvas nav > ul {
    flex-direction: column; 
    align-items: flex-start; 
    font-size: var(--font-small); 
    line-height: 36px; 
    padding-top: 1.25em; 
    margin: 1.25em 0; 
    border-top: 1px solid var(--border-color); 
}

.off-canvas nav .mega {
    padding: 0; 
}

.off-canvas nav .mega .products { 
    display: none;
}

.off-canvas .has-child .icon-small {
    padding: 0.5em; 
    line-height: initial;
}

.off-canvas .dpt-menu .icon-small i {
    transform: rotate(90deg); 
}

.off-canvas .has-child {
    width: 100%; /* Correction de var(--percent100) par 100% */
}

.off-canvas .thetop-nav .right > ul > :where(:nth-child(4), li:nth-child(5)) > a {
    display: none; 
}

.off-canvas .thetop-nav .right ul ul {
    display: flex; 
    flex-direction: row; 
}

.off-canvas .thetop-nav .right ul ul li a { 
    padding: 0.5em; 
    border: 1px solid var(--border-color); 
    line-height: 16px; 
    margin: 0 0.5em 0.5em 0; 
}

/*----------
02. SLIDER 
*----------*/ 
/* Style pour l'élément de chaque slide */
.slider .item {
    position: relative; 
    height: 474px; 
}

/* Effet de flou sur l'arrière-plan des items de slider */
.slider .item::before {
    content: ''; 
    position: absolute;
    top: 30%; 
    left: 0; 
    width: 450px;
    height: 300px; 
    background-color: var(--white-color); 
    z-index: 1; 
    filter: blur(50px); /* Correction : ajout d'un espace pour la lisibilité */
    opacity: 0.8; 
}

/* Style pour le contenu textuel du slider */
.slider .text-content {
    position: relative; 
    height: 100%; /* Remplacement de var(--percent100) par 100% */
    display: flex; /* Ajout de flexbox pour la gestion du contenu */
    flex-direction: column; /* Ajout de direction de colonne pour aligner les éléments */
    justify-content: flex-end; 
    padding: 0 0 10% 10%; 
    z-index: 1; 
}

/* Style pour le titre de chaque slide */
.slider h4 {
    font-size: var(--font-small);
    font-weight: var(--fw7); 
    width: fit-content; 
    padding: 4px 10px; 
    background-color: var(--dark-color); 
    color: var(--white-color); 
    border-radius: 4px; 
}

/* Style pour les span à l'intérieur des h2 et h3 */
.text-content :where(h2, h3) span:first-child {
    font-weight: var(--fw3); 
    color: var(--light-text-color); /* Correction : changement de 'columns' en 'color' */
}

/* Style pour le dernier span dans les h2 et h3 */
.text-content :where(h2, h3) span:last-child { 
    color: var(--secondary-dark-color); 
    text-transform: uppercase; 
    letter-spacing: -1px; 
}

/* Style pour la pagination de swiper */
.swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--secondary-dark-color); 
}

/* --------
* 03. BRANDS
* ---------*/ 

.brands .wrapper {
    display: flex;              /* Ajout du display flex pour un alignement flexible */
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 2em 0; 
}

.brands .item img {
    opacity: 0.25;              /* Réduction de l'opacité des images */
    transition: opacity 0.3s;   /* Effet de transition pour l'opacité */
}

.brands .item a:hover img {
    opacity: 1;                 /* Réinitialisation de l'opacité lors du survol */
}

/*---------
* 04. PRODUCT BLOCK. STYLE 
*----------*/ 

.sectop {
    display: flex;              /* Ajout de display flex pour un alignement des éléments */
    justify-content: space-between;
    padding-bottom: 0.5em; 
    margin-bottom: 2em; 
    border-bottom: 1px solid var(--border-color); 
}

.sectop h2 {
    position: relative; 
    font-size: 1.5em;
    font-weight: var(--fw7); 
}

.sectop h2 span:not(.circle) {
    padding: 0 0 0 2em;          /* Espacement à gauche ajouté uniquement aux spans non circulaires */
}

.sectop h2 .circle {
    position: absolute;         /* Positionnement absolu pour le cercle */
    top: -5px; 
}
/*---------
* 04. PRODUCT -------
* a. Global product 
*--------------*/

/* Espacement interne des produits */
.products .item {
    padding: 15px; /* Ajoute un espacement autour du contenu de chaque produit */
    margin-right: 1em; /* Ajoute un espace à droite des produits */
    margin-bottom: 1.5em; /* Ajoute de l'espace entre les produits de la même ligne */
}

.products .offer {
    text-align: center; 
    margin-bottom: 1.5em; 
}

.product .offer p {
    text-transform: uppercase; 
    margin-bottom: 0.5em; 
}

.products .offer ul {
    gap: 1em; 
}

.products .offer ul li {
    position: relative; 
    width: 34px; 
    height: 34px; 
    padding: 0.5em; 
    line-height: initial;
    color: var(--secondary-dark-color); 
    background-color: var(--light-bg-color);
    border-radius: 5px; 
}

.products .offer ul li:not(:last-child)::before {
    content: ':';
    position: absolute; 
    right: -0.6em;
    color: var(--light-text-color);  
}

/* Effet de transformation de l'image sur hover */
.products :where(.image, .thumbnail) img {
    transition: transform .3s; 
}

.products :where(.image, .thumbnail):hover img { 
    transform: scale(1.1); 
}

/* Style pour l'élément hoverable */
.products .hoverable { 
    position: absolute; 
    top: 0; 
    right: 0; 
}

.products .hoverable li a {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 28px; 
    height: 28px; 
    padding: 0.25em; 
    margin: 0.25em; 
    border-radius: var(--percent50); 
    line-height: 1;
    background-color: var(--white-color);
    opacity: 0.5; 
    transition: var(--trans-background-color), opacity .3s; 
}

.products .item:hover .hoverable li a {
    opacity: 1;
}

.products .hoverable li a:hover {
    color: var(--white-color); 
    background-color: var(--dark-color); 
}

.products .hoverable li.active a:hover { 
    background-color: var(--primary-color); 
}

.products .hoverable li:not(.active) {
    transform: translateX(100%); 
    opacity: 0; 
    transition: transform .3s, opacity .2s; 
}

.products .item:hover .hoverable li {
    transform: translateX(0); 
    opacity: 1; 
}

.products .hoverable li:last-child {
    transition-delay: .1s;
}

.products .discount { 
    top: auto; 
    right: 0; 
    left: auto; 
    bottom: 0; 
    background-color: transparent; 
    z-index: 1;
}

.products .discount::before { 
    background-color: var(--dark-color); 
}

.products .discount span {
    position: relative; 
    font-size: var(--font-smaller); 
    font-weight: var(--fw5); 
    color: var(--white-color); 
}

/* Structure de la section produit */
.products .content {
    display: flex;
    flex-direction: column; 
}

.products:where(.big.main, .one) .content {
    gap: 1em; 
    margin-top: 1.25em;
}

/* Style de la section de rating des produits */
.products .rating {
    display: flex; 
    align-items: center; 
    gap: 0.5em; 
}

.products .rating .stars {
    width: 80px; 
    height: 20px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='rgba(251,181,27,1)'%3E%3Cpath d='M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: top left;  /* Positionne l'image au coin supérieur gauche */
    background-repeat: repeat-x;    /* Répète l'image sur l'axe horizontal */
    background-size: contain;       /* Ajuste la taille de l'image pour qu'elle s'adapte */
}

/* Pour ajuster la largeur des étoiles pour un produit spécifique */
.products .item:where(:nth-child(3)) .stars {
    width: 64px;
}

/* Style du titre des produits */
.products h3 {
    font-family: 'Rubik', sans-serif; /* Ajout d'une police de secours */
    font-size: 1rem; /* Utilisation de rem pour une meilleure lisibilité */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden; /* Nécessaire pour que text-overflow fonctionne */
    word-wrap: break-word; /* Pour éviter le débordement du texte */
}

.products h3 a:hover {
    text-decoration: underline; 
}

/* Style des prix */
.products .price .current {
    font-size: calc(1em + 1vw); 
    color: var(--primary-color); 
    margin-right: 0.25em; 
}

.products .price .normal {
    color: var(--light-text-color); 
    text-decoration: line-through;
}

/* Style de la disponibilité du stock */
.products .stock .qty { 
    display: flex; 
    justify-content: space-between; 
}

.products .stock .bar { 
    height: 3px; 
    margin-top: 1em;
    background-color: var(--border-color); 
    overflow: hidden; 
}

.products .stock .available {
    height: 3px;
    width: 21%; 
    background-color: var(--secondary-color); 
}

/* Positionnement des produits */
.products .item { 
    display: flex; 
    position: relative;
}

.products .stock-danger {
    color: var(--primary-color);
}

/* Style pour les lignes flexibles */
.flexwrap .row {
    flex: 0 0 100%; 
    width: 100%; 
    margin-bottom: 2em; 
}
/* 04. PRODUCT --------
* b. BIG Product
*--------------------*/ 
.products.big .item {
    flex-direction: column; 
    padding: 2.5em; 
    border: 2px solid var(--secondary-dark-color); 
    border-radius: 7px; 
    max-width: 460px;
    margin: 0 auto; 
}

/* 04. PRODUCT --------
* b. MINI Product
*--------------------*/ 
.products.mini .item {
    margin-bottom: 2em; 
}

.products.mini .media {
    width: 130px; 
    height: 160px; 
    margin-right: 1.25em;
}

.products.mini .content { 
    margin: 0; 
    gap: 0.75em; 
}

.products:where(.mini, .main) h3 { 
    font-weight: 400;
}

/* 04. PRODUCT ------
* d. MAIN product 
*-----------*/ 
.products.main .item {
    flex-direction: column; 
    flex: 0 0 100%; 
    padding: 0 0.938em; 
    padding-bottom: 2em; 
}

.products.main .media {
    height: 390px; 
}

.products.main .footer {
    position: absolute;
    left: 0;
    right: 0;
    padding: 0 1em 1em;
    border-radius: 7px;
    background: linear-gradient(0deg, var(--light-bg-color) 0%, var(--white-color) 70%);
    opacity: 0;
    visibility: hidden;
    will-change: opacity;
    transition: all 0.2s ease-in-out;
}

.products.main .item:hover .footer {
    opacity: 1; 
    visibility: visible;
}

/* Section principale : passage à un grid layout */
.products.main {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Trois colonnes */
    gap: 20px; /* Espacement entre les colonnes */
}

/* Style de la liste dans le footer */
.products.main .footer ul {
    list-style: disc; 
    padding: 1.25em 0 0 1.25em;
    line-height: 1.8; 
    border-top: 1px solid var(--border-color); 
    margin-top: 145px;
}

/* Survol de l'élément, priorité de contenu */
.products.main .item:hover .content > *:not(.footer) {
    z-index: 3;
}

/* Style pour les items dans le grid (principalement pour les produits) */
.item {
    flex: 1 1 calc(33.333% - 20px); /* Chaque élément occupe un tiers de la largeur disponible, moins l'espacement */
    box-sizing: border-box;
}

/*------------
* 05. BANNER 
*------------*/ 
.banners .item {
    position: relative; 
    background-color: var(--white-color); 
    border: 1px solid var(--border-color); 
}

.banner .image {
    text-align: right;  
}

.banner .get-gray {
    background-color: var(--border-color); 
}

/* Sélecteur :where pour les éléments de contenu textuel et de lien */
.banner :where(.text-content, .over-link) {
    position: absolute; 
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
}

.banner .text-content { 
    padding: 1.5em 2.5em; 
}

.banner h3 {
    font-size: calc(1em + 0.5vw);
    font-weight: var(--fw3); 
}

.banner h3 span {
    font-size: 80%; 
}

.banner .primary-button {
    z-index: 3; 
}

.banners .product-categories .item {
    display: flex; 
    padding: 1.5em; 
}

.banners .product-categories .image { 
    max-width: 150px;
}

.mini-links ul {
    font-size: var(--font-small); 
    color: var(--light-text-color); 
    margin-top: 1em;
}

.banners .second-links { 
    margin-top: 2em; 
}

.mini-links li a:hover {
    text-decoration: underline; 
}
/*--------------
* 05. FOOTER
*---------------*/ 

.newletter {
    padding: 2.5em 0;
    background-color: var(--dark-color);
    color: var(--white-color);  
}

.newsletter h3 {
    font-size: 1.5em; 
}

.newsletter p { 
    font-weight: var(--fw3); 
    color: var(--border-color);
    margin: 0.5em 0 1.5em; 
}

.newsletter p strong {
    color: var(--primary-color); 
}

.newsletter form {
    max-width: 500px;
    width: var(--percent100); /* Assure que la largeur est à 100% de l'élément parent */
}

/* 05. FOOTER ---------
* b. Widgets
*-------------*/ 

.widgets {
    padding: 3.5em 2.5em;
    background-color: var(--light-bg-color);
    margin-bottom: 2em; /* Ajouté pour séparer du footer-info */
}

/* Footer widgets : disposition en grille pour un design moderne */
.widgets .wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5em;
    align-items: flex-start;
    padding: 2em 0;
}

.widgets .item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(34,34,59,0.06);
    padding: 2em 1.5em;
    min-width: 0;
    transition: box-shadow 0.2s;
}

.widgets .item:hover {
    box-shadow: 0 4px 24px rgba(34,34,59,0.12);
}

.widgets .item h4 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 1em;
    color: var(--secondary-dark-color);
    letter-spacing: 0.5px;
}

.widgets .item ul {
    gap: 0.5em;
}

.widgets .item li a {
    color: var(--light-text-color);
    font-size: 0.98em;
    transition: color 0.2s;
}

.widgets .item li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Centrage et style de la section footer-info */
.footer-info .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    text-align: center;
}

.footer-info .logo {
    margin-bottom: 0.5em;
}

.footer-info .socials ul {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.footer-info .socials ul li a {
    font-size: 2.2em; /* Agrandit les icônes */
    color: var(--secondary-dark-color);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-info .socials ul li a:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}

.footer-info .mini-text {
    margin-top: 1em;
    color: var(--light-text-color);
    font-size: 0.95em;
}

/* Responsive : 2 colonnes sur tablette, 1 colonne sur mobile */
@media (max-width: 991px) {
    .widgets .wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }
}
@media (max-width: 600px) {
    .widgets .wrapper {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    .widgets .item {
        padding: 1.2em 1em;
    }
}
/*--------------------
  06. BOTTOM MENU
--------------------*/

.menu-bottom {
    position: fixed; 
    left: 0;
    right: 0; 
    bottom: 0; 
    height: 60px; 
    background-color: var(--white-color); 
    box-shadow: 0 -2px 10px rgb(0 0 0 / 10%); 
    z-index: 900;
}

.menu-bottom nav li {
    flex: 1; 
}

.menu-bottom nav li a { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 0.5em 0; 
    color: var(--light-text-color); 
    transition: var(--trans-color);
}

.menu-bottom nav li a:hover {
    color: var(--dark-color); 
}

.menu-bottom nav li a span {
    font-size: var(--font-smaller); 
}

.menu-bottom nav li a i {
    font-size: 1.25em; 
}

.menu-bottom .fly-item { 
    right: 50%; 
    width: 16px; 
    border-radius: var(--percent100); 
    margin-right: -20px; 
    background-color: var(--secondary-dark-color); 
}

/* 06. BOTTOM MENU -----
* a. Search
*-----------------------*/

.search-bottom {
    position: fixed; 
    bottom: 60px; 
    width: var(--percent100);
    padding: 2.5em 0; 
    background-color: var(--secondary-dark-color); 
    z-index: 1000; 
    visibility: hidden;
    opacity: 0;
    will-change: visibility, opacity; 
}

.showsearch .search-bottom {
    visibility: inherit;
    opacity: 1; 
}

.search-bottom .t-close {
    position: absolute; 
    top: -54px;
    right: 0;  
}

.search-bottom .t-close:hover {
    background-color: var(--primary-color); 
}
/*--------------
* 07. Overlay
*--------------*/ 

.overlay {
    position: fixed; 
    width: var(--percent100); 
    height: var(--percent100); 
    top: 0; 
    left: 0; 
    z-index: 999; 
    background-color: rgba(0, 0, 0, 0.4); 
    visibility: hidden;
    opacity: 0; 
    will-change: visibility, opacity; /* Ajout du point-virgule manquant */
}

.showmenu .overlay {
    opacity: 1; 
    visibility: inherit;
}
/*--------------
* 15. RESPONSIVE
* --------------*/ 

@media screen and (min-width: 481px) {
    .products.main .item {
        flex: 0 0 50%; 
    }
}

@media screen and (min-width: 768px) {
    .products .price .current { 
        font-size: 1.25em; 
    }
    .products.mini, 
    .banner .row, 
    .widgets .row {
        flex: 0 0 50%; 
    }
    .products.main .item {
        flex: 0 0 33.3333%; 
    }
}

@media screen and (min-width: 992px) {
    .container {
        padding: 0 2rem;
    }

    .desktop-hide { 
        display: none; 
    }

    .mobile-hide {
        display: block; 
    }

    .logo a {
        margin-right: 2em; 
    }

    .header-nav {
        padding: 0; 
        margin: 0; 
        border-bottom: 0;
    }

    .header-nav .right li > a {
        margin-left: 1em; 
    }

    /* Mega menu */ 
    nav .mega {
        position: absolute; 
        width: 100%; /* Remplacement de var(--percent100) par 100% */
        height: auto; 
        top: auto; 
        left: 0; 
        right: 0; 
        padding: 2.5em; 
        line-height: 2em;
        background-color: var(--light-bg-color);
        box-shadow: rgb(0 0 0 /20%) 0 30px 20px -30px;
        z-index: 100; 
        display: none; 
    }

    nav li.has-child:hover .mega {
        display: block;
    }

    nav .mega .wrapper {
        display: flex; 
    }

    nav .mega h4 {
        font-size: 0.8em; 
        text-transform: uppercase; 
    }

    nav .mega ul {
        font-size: var(--font-small); 
    }

    nav .mega .women-brands {
        display: flex; 
        flex-wrap: wrap; 
        max-width: 180px; 
    }

    nav .mega .women-brands li {
        min-width: 80px; 
    }

    nav .mega .view-all { 
        margin-top: 1em; 
    }

    nav .mega .products {
        flex: 2; 
        padding: 0; 
        align-items: center; 
        position: relative; 
    }

    nav .mega .products .row { 
        width: 100%; /* Remplacement de var(--percent100) par 100% */
    }

    nav .mega .products .media { 
        height: 400px; 
    }

    nav .mega .products .text-content { 
        line-height: initial; 
        display: flex;
        flex-direction: column; 
        align-items: center; 
        gap: 0.5em; 
        margin-top: 0.5em; 
        position: absolute; 
        bottom: 4em;
        width: 100%; /* Remplacement de var(--percent100) par 100% */
    }

    nav .mega .products .text-content h4 {
        font-size: 2em; 
        font-weight: var(--fw8);
        text-align: center;
        color: var(--secondary-dark-color); 
    }

    .header-main .right {
        max-width: 600px;
        margin-left: auto; 
    }

    /*Departments menu */ 

    .dpt-menu { 
        position: absolute;
        top: 100%; /* Remplacement de var(--percent100) par 100% */
        width: 300px;
        background-color: var(--white-color); 
        border: 1px solid var(--border-color); 
        border-top: 0; 
        border-bottom: 0; 
    }

    .dpt-menu > ul > li > a { 
        font-weight: var(--fw5); 
        padding: 0 1.5em; 
        border-bottom: 1px solid var(--border-color); 
    }

    /*home & kitchen only*/ 
    .dpt-menu .has-child > ul, .dpt-menu .mega {
        position: absolute; 
        top: 0; 
        left: 100%; /* Remplacement de var(--percent100) par 100% */
        width: 100%; /* Remplacement de var(--percent100) par 100% */
        height: auto; 
        min-height: 100%; /* Remplacement de var(--percent100) par 100% */
        padding: 1.5em; 
        font-size: var(--font-small);
        line-height: 2.5em;
        /*
        border: 1px solid var(--border-color); 
        */
        border-top: 0; 
        display: none; 
        background-position: right bottom; 
        background-repeat: no-repeat; 
        background-size: auto; 
    }

    /* Showing the first sub menu */ 

    .dpt-menu .mega {
        display: block;
    }

    .dpt-menu .has-child > :where(ul,.mega)::before {
        content: ''; 
        position: absolute; 
        top: 0; 
        left: 0; 
        right: 0; 
        bottom: 0; 
        background: linear-gradient(90deg, rgba(225, 225, 225, 1) 0%, rgba(225, 225, 225, 0)); 
    }

    .dpt-menu .mega {
        width: auto; 
        min-width: 100%; /* Remplacement de var(--percent100) par 100% */
    }

    .dpt-menu .has-child:hover .mega {
        display: flex; 
    }

    .slider > div > .wrapper { 
        width: calc(100% - (300px + 2em)); 
        margin-left: auto; 
    }

    /* products */ 
    .trending .products, 
    .product-categories .row { 
        flex: 0 0 33.3333%; 
    }

    .products.big .media {
        max-height: 373px; 
    }

    .products.main .item, 
    .widgets .row {
        flex: 0 0 25%; 
    }

    /*footer */ 
    .newsletter .box {
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
    }
}
/*--------------------
  16. MOBILE OPTIMISATION
--------------------*/
@media (max-width: 600px) {
    body {
        font-size: 15px;
        padding: 0;
    }
    .container {
        padding: 0 0.5em;
    }
    h1 { font-size: 2em; }
    h2 { font-size: 1.4em; }
    h3 { font-size: 1.1em; }
    .primary-button,
    .secondary-button,
    .light-button {
        font-size: 1em;
        padding: 0.7em 1.2em;
    }
    .slider .item {
        height: 220px;
    }
    .slider .text-content {
        padding: 0 0 5% 5%;
    }
    .brands .wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1em;
        padding: 1em 0;
    }
    .products .item {
        margin-right: 0;
        padding: 10px;
    }
    .products .media,
    .products .thumbnail {
        max-width: 100%;
        height: auto;
    }
    .products.main {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    .banners .banner,
    .banners .product-categories {
        flex-direction: column;
        gap: 1em;
    }
    .banners .item,
    .banners .product-categories .item {
        padding: 1em 0.5em;
    }
    .widgets {
        padding: 1.5em 0.5em;
    }
    .widgets .wrapper {
        grid-template-columns: 1fr;
        gap: 1em;
        padding: 1em 0;
    }
    .widgets .item {
        padding: 1em 0.7em;
    }
    .footer-info .wrapper {
        padding: 1.5em 0 0 0;
    }
    .footer-info .logo a {
        font-size: 1.5em;
    }
    .footer-info .socials ul {
        gap: 2em;
    }
    .footer-info .socials ul li a {
        font-size: 2.7em;
    }
    .footer-info .mini-text {
        font-size: 0.98em;
    }
    .newsletter {
        padding: 1.5em 0.5em;
    }
    .newsletter .box {
        flex-direction: column;
        gap: 1em;
        align-items: stretch;
    }
    .newsletter form {
        width: 100%;
        max-width: 100%;
    }
    .menu-bottom {
        height: 56px;
    }
    .search-bottom {
        padding: 1.2em 0;
    }
    .search-bottom .t-close {
        top: -44px;
    }
    /* Correction pour éviter le débordement horizontal */
    html, body {
        overflow-x: hidden;
    }
}
