/* GLOBAL */

html {
    height: 100%;
}


.count {
    z-index: 2;
    font-size: 11px;
    border-radius: 50%;
    background: #d60b28;
    width: 16px;
    height: 16px;
    line-height:16px;
    display: block;
    text-align: center;
    color: white;
    font-weight: bold;
    margin-left: -10px;
    margin-top: -10px;
  }

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--my-font);
    color: var(--text-color-dark);
    font-size: 0.95rem;
    background-color: var(--background-color);
    transition: background-color .2s ease, color .15s ease;
}
/* Perf guard during theme toggle: avoid animating 1400+ cards */
html.theme-switching #content-articles .product-item,
html.theme-switching #content-articles .product-item *,
html.theme-switching #content-articles .art-sidebar,
html.theme-switching #content-articles .art-sidebar * {
    transition: none !important;
}

button.h-dp-theme-toggle,
button.h-drawer-theme {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
button.h-drawer-theme { width: auto; }

main {
    justify-content: center;
    align-items: center;
    flex: 1;
    padding-top: 3vh;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-bottom: 7vh;
    min-height: calc(100vh - 12vh);
}

form {
    margin-block-end:0;
}

h1, .h1 {
    font-family: var(--my-font);
    text-align: left;
    font-size:1.3rem;
    margin-bottom:5vh;
}

h2 {
    font-family: var(--my-font);
    text-align: center;
    font-size:1rem;
}

h3 {
    display: flex;
    margin:5px;
}

p {
    text-align: justify;
    margin:2px;
    margin-bottom: 3px;
}

b {
    color:var(--accent-color);
}

.dataTables_filter {
    margin-bottom: 4px;
}

.dataTable tbody tr:hover {
    background-color: rgb(255, 244, 158)!important;
}
   
.dataTable tbody tr:hover > .sorting_1 {
    background-color:rgb(255, 244, 158)!important;
}

/* ── Modales jquery-confirm (look moderne) ── */
.jconfirm {
    font-family: var(--my-font), sans-serif;
}
.jconfirm-bg {
    background: rgba(15,23,42,.45);
}
.jconfirm .jconfirm-box {
    width: 32vw;
    max-width: 520px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15,23,42,.35), 0 6px 16px rgba(15,23,42,.25);
    padding: 1.4rem 1.6rem 1.25rem;
}
.jconfirm .jconfirm-box .jconfirm-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: .4rem;
}
.jconfirm .jconfirm-box .jconfirm-content {
    font-size: .9rem;
    color: #4b5563;
    margin-bottom: 1rem;
}
.jconfirm .jconfirm-box .jconfirm-buttons {
    margin-top: .4rem;
}
.jconfirm .jconfirm-box .jconfirm-buttons button {
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    padding: .45rem 1.2rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    min-width: 96px;
}
.jconfirm .jconfirm-box .jconfirm-buttons button:hover {
    background: #e5e7eb;
}
.jconfirm .jconfirm-box .jconfirm-buttons .btn-primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}
.jconfirm .jconfirm-box .jconfirm-buttons .btn-primary:hover {
    opacity: .9;
}
/* Couleurs par type */
.jconfirm-type-red .jconfirm-title { color: #b91c1c; }
.jconfirm-type-green .jconfirm-title { color: #15803d; }
.jconfirm-type-orange .jconfirm-title { color: #b45309; }

.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #fff !important;
    border-color: #15803d !important;
}
.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover {
    filter: brightness(1.05);
    opacity: 1;
}
.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red {
    background: linear-gradient(135deg, #b91c1c, #ef4444) !important;
    color: #fff !important;
    border-color: #dc2626 !important;
}
.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red:hover {
    filter: brightness(1.05);
    opacity: 1;
}
.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-color: #e5e7eb !important;
}
.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default:hover {
    background: #e5e7eb !important;
}

.prix_masques {
    display: none;
}


/*INPUT + BOUTONS */

input,button {
    font-family: var(--my-font);
}

button, input[type="submit"] {    
    cursor: pointer;
}

input:focus, input:hover, select:hover {
    outline: none;
    border-color: #c8cccf;
    box-shadow: 0 0 10px #c8cccf;
    transition: 0.2s;
}

.btn {    
    color: var(--text-color-light);
    background-color: var(--accent-color);
    border: none;
    border-radius: 3px;
    padding: 5px;
    font-size: 0.9rem;
    transition: 0.5s;
    min-width: 30px;
    margin-right:2px;
    margin-left:2px;
}

.btn-blue{
    background-color: #0d6efd;
}

.btn-green{
    background-color: #28a745;
}

.btn-red{
    background-color: #dc3545;
}

.btn-descr{
    position: absolute;
    background-color: #FFFFFF;
    border: 1px solid var(--accent-color);
    border-radius: .5rem;
    box-sizing: border-box;
    color: #111827;
    font-family: "Inter var",ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25rem;
    padding: .5rem .75rem;
    text-align: center;
    text-decoration: none #D1D5DB solid;
    text-decoration-thickness: auto;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin: 2px 2px;
}

.btn-grey{
    background-color: #dfdfdf;
    color:var(--text-color-dark);
    border: 0.5px solid #adadad; 
}

.btn-yellow{
    background-color: #ffc107;
    color:#212529;
}

.btn-small{
    height: fit-content;
    width: fit-content;
    padding: 3px;
}

.btn-large{
    min-width: 60px;
    width: fit-content;
    padding: 5px;
}

.btn:hover{
    filter:saturate(200%);
}

.btn:disabled{
    opacity: 0.40;
    cursor: default;
}

.btn-filled {
    background-color: white;
    font-weight: bold;
} 


input:optional {
    border-color: gray;
}

input:required {
    border-color: black;
}

input:invalid {
    border-color: red!important;
}

#cardCompte input[type="checkbox"]{
    pointer-events: none;

}

/*TABLEAUX*/

table tfoot td {
    font-weight: bold;
    font-weight: 800;
}

.niceTable tr{
    height:30px;
}
.niceTable thead{
    background-color: #cccccc;
}

table .colButtons  {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

/* FLEX BARRE */

.d-flex {
    display: flex;
    justify-content: space-between;
}

.d-flex a, .d-flex p {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    margin-right : 10px;
    font-size:0.8rem;
}

.d-flex a i {
    margin-right: 5px;
    margin-left: 5px;
    margin-top: 5px;
}

/* BARRE RECHERCHE*/

.barre {
    display: flex;
    flex-wrap: wrap;
    max-width: 90vw;
    flex-direction:row;
    justify-content: space-between;
    margin-bottom:2.5vh;
}

.barre > form {
    display: inline-flex;
    align-items: center;
}

.barre > form > label, .barre > form > span {
    display: inline-block;
    line-height: 50px;
    min-width: fit-content;
    padding:5px;
}

.barre > form > button, .barre > form > select {
    padding: 5px;
    margin: 0 2px;
    font-family: var(--my-font);
}

.recherche {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    margin:5px;
}

.recherche > * {
    margin:2px;
}

.recherche > form > button > i {
    margin-right: 5px;
    margin-left: 5px;
}

.recherche label {
    align-self:center;
    margin:2px;
}

.recherche > form {
    display: inline-flex;
}

.recherche > form > input[type='text'] {
    max-width:30vw;
} 

/* ── HEADER ──────────────────────────────────────────────────── */

header {
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    height: 56px;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

/* Nav principale */
.h-nav {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
    gap: 0;
    background: var(--theme-nav-bg);
    border-bottom: 1px solid var(--theme-nav-border);
    box-shadow: var(--theme-nav-shadow);
}

/* Logo */
.h-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 1.5rem;
}
.h-logo-img {
    max-height: 36px;
    width: auto;
    display: block;
}

/* Menu liens desktop */
.h-menu {
    display: flex;
    align-items: center;
    gap: .2rem;
    flex: 1;
}
.h-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 56px;
    padding: 0 1rem;
    text-decoration: none;
    color: var(--theme-nav-link);
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    box-sizing: border-box;
    transition: color .15s ease;
}
.h-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 9px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #feed82, #f0ce54);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease-out;
}
.h-link:hover {
    color: var(--theme-nav-link-hover);
}
.h-link:hover::after {
    transform: scaleX(1);
}
.h-link-active {
    color: var(--theme-nav-link-active) !important;
    font-weight: 600;
}
.h-link-active::after {
    transform: scaleX(1);
}

/* Actions droite */
.h-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Bouton action (panier / compte) */
.h-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 56px;
    padding: .1rem 1rem;
    text-decoration: none;
    color: var(--theme-nav-link-hover);
    font-size: .83rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s, background .15s;
    box-sizing: border-box;
    border: none;
    background: transparent;
}
.h-action-btn:hover {
    color: var(--theme-nav-link-active);
    background: var(--theme-action-hover-bg);
}

.h-action-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.h-badge {
    position: absolute;
    top: -7px; right: -9px;
    min-width: 16px; height: 16px;
    border-radius: 50%;
    background: #d60b28;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
    box-sizing: border-box;
}
.h-badge-empty { display: none; }
.h-chevron { font-size: .65rem; opacity: .6; margin-left: .1rem; }
.h-action-label { font-size: .84rem; }

/* Dropdown panel */
.h-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.h-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--theme-panel-bg);
    border: 1px solid var(--theme-panel-border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    z-index: 1100;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s;
}
.h-dp-theme-toggle {
    font-family: inherit;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.2;
}
.h-dp-theme-toggle .h-theme-label {
    font-size: .82rem;
    font-weight: inherit;
    line-height: inherit;
}
.h-dropdown-panel-right { left: auto; right: 0; }
.h-dropdown:hover .h-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Infos dans le panel panier */
.h-dp-info {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--theme-panel-divider);
}
.h-dp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    color: var(--theme-panel-text);
    padding: .2rem 0;
    gap: .75rem;
}
.h-dp-row strong { color: var(--theme-panel-text-strong); }
.h-dp-livraison {
    gap: .6rem;
    font-size: .8rem;
    justify-content: flex-start;
}
.h-dp-livraison i { color: var(--accent-color); flex-shrink: 0; }

/* Boutons dans le panel panier */
.h-dp-actions {
    padding: .65rem .8rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.h-dp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    padding: .5rem .75rem;
    border-radius: 7px;
    border: none;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    font-family: inherit;
}
.h-dp-btn:disabled { opacity: .35; cursor: not-allowed; }
.h-dp-btn-primary { background: var(--accent-color); color: #1a1a1a; }
.h-dp-btn-primary:not(:disabled):hover { opacity: .85; }
.h-dp-btn-danger  { background: rgba(214,11,40,.15); color: #f87171; border: 1px solid rgba(214,11,40,.3); }
.h-dp-btn-danger:not(:disabled):hover  { background: rgba(214,11,40,.25); }

/* Bloc user dans le panel compte */
.h-dp-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--theme-panel-divider);
}
.h-dp-user-avatar {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--theme-panel-hover-bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-color);
    font-size: .9rem;
    flex-shrink: 0;
}
.h-dp-user-info { display: flex; flex-direction: column; }
.h-dp-user-info strong { font-size: .85rem; color: var(--theme-panel-text-strong); line-height: 1.2; }
.h-dp-user-info span   { font-size: .73rem; color: var(--theme-panel-text-muted); }

/* Liens dans les panels */
.h-dp-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1rem;
    font-size: .82rem;
    color: var(--theme-panel-text);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.h-dp-link i { width: 14px; text-align: center; font-size: .78rem; }
.h-dp-link:hover { background: var(--theme-panel-hover-bg); color: var(--theme-panel-text-strong); }
.h-dp-link-danger { color: var(--theme-panel-danger); }
.h-dp-link-danger:hover { background: var(--theme-panel-danger-hover-bg); color: var(--theme-panel-danger); }
.h-dp-divider { height: 1px; background: var(--theme-panel-divider); margin: .25rem 0; }

/* Burger mobile */
.h-burger {
    display: none;
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1.5px solid var(--theme-burger-border);
    background: transparent;
    color: var(--theme-burger-color);
    font-size: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.h-burger:hover { background: var(--theme-panel-hover-bg); color: var(--theme-panel-text-strong); }

/* Overlay mobile */
.h-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--theme-overlay-bg);
    z-index: 1050;
    backdrop-filter: blur(2px);
}
.h-mobile-overlay.open { display: block; }

/* Drawer mobile */
.h-mobile-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 78vw; max-width: 300px;
    height: 100dvh;
    background: var(--theme-panel-bg);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.h-mobile-drawer.open { transform: translateX(0); }

.h-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--theme-panel-divider);
    flex-shrink: 0;
}
.h-drawer-logo { max-height: 32px; width: auto; }
.h-drawer-close {
    width: 32px; height: 32px;
    border-radius: 7px;
    border: 1px solid var(--theme-burger-border);
    background: transparent;
    color: var(--theme-panel-text);
    font-size: .9rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.h-drawer-close:hover { background: var(--theme-panel-hover-bg); color: var(--theme-panel-text-strong); }

.h-drawer-menu { padding: .5rem 0; flex: 1; }
.h-drawer-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1.2rem;
    font-size: .88rem;
    color: var(--theme-panel-text);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.h-drawer-link i { width: 16px; text-align: center; }
.h-drawer-link:hover { background: var(--theme-panel-hover-bg); color: var(--theme-panel-text-strong); }
.h-drawer-link-danger { color: var(--theme-panel-danger); }
.h-drawer-link-danger:hover { background: var(--theme-panel-danger-hover-bg); }
.h-drawer-divider { height: 1px; background: var(--theme-panel-divider); margin: .4rem 0; }

/* FOOTER */

footer {
    display: flex;
    position: sticky;
    bottom: 0;
    background-color: var(--primary-color);
    width: 100%;
    height: 6vh;
    color: var(--text-color-light);
    justify-content: space-between;
    z-index: 2000;
    box-sizing: border-box;
    margin-top: auto;
}

footer > img {
    padding-left:10px;
    max-height: 6vh;
}

footer > a > p {
    align-self: center;
    margin: 0 15px 0 0;
    font-size:smaller;
}

footer > a {
    display: flex;
    text-decoration: none;
    color:inherit;
}

#logoClient{
    max-height: 20vh;
}

/* ASIDE */

aside {
    position:fixed;
    background-color:var(--secondary-color);
    border-radius: 3px;
    top:6vh;
    left:0vw;
    bottom:6vh;
    width: 8vw;
    min-width: fit-content;
    max-height: max-content;
    max-height: 100%;
    overflow-y: auto;
    margin-right:10px;
    z-index: 1;
    padding-bottom:50px;
}
/* Menu Catégorie Mobile */
.closedCategory{
    cursor:pointer;
    text-align: end;
    display: none;
}
.blockChooseCategory{
    display: none;
}
.chooseCategory{
    display: flex !important;
    margin-bottom: 20px;
}
.listSpan{
    padding-right: 30px;
}
.expand_moreSpan{
    padding-left: 30px;
}

.input-wrapper {
    display: flex; 
    align-items: center; 
  }

  #spanSpace {
    margin-left: 5px;
    margin-right: 5px;
  }



aside nav{
    display: flex;
    flex-direction: column;
    padding:10px;
    overflow-y: auto;
}

aside nav p{
    text-decoration: none;
    cursor:pointer;
    color:var(--text-color-dark);
    display: inline-block;
    line-height:15px;
    padding:2px;
    font-size: 0.8rem;
}

aside nav p:hover {
    color:var(--text-color-dark);
    font-weight: bold;
    transition-duration: all 500ms;
}

.bold-category {
    font-weight: bold;
}

/* CONNEXION */

#content-connexion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(90vh);
    background-image: var(--img);
    background-repeat: no-repeat; 
    background-size: cover;
    background-position: center right;

}

#content-connexion .form {    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    line-height: 20px;
    max-width: fit-content;
    align-items: flex-start;
    padding: 10px;
    background-color: var(--secondary-color);
    border: 1px solid silver;
    border-radius: 4px;
    align-items: center;
    margin: 8px;
    min-width: 20vw;
    text-align: center;
    box-shadow: 4px 2px silver;
}

#content-connexion input {    
    display: flex;
    min-width: 15vw;
    margin:8px;
}

.form-connexion{
    text-align: center;
}

#form-connexion{
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: var(--background-color);
    border-radius: 4px;
    padding:2vw;
    align-items: center;
}


/* ACCUEIL */

#content-accueil {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* SLIDER */

.titreAccueil{
    margin : 0;
}

.slides-container{
    max-width:100%;
    margin: auto;
    position: relative;

}

.slide{
    position: relative;
}

.slideHide{
    display: none;
}

.photoSlider{
    height: 60vh;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.photo1{
    object-position: var(--position-photo1);
}
.photo2{
    object-position: var(--position-photo2);
}
.photo3{
    object-position: var(--position-photo3);
}

.slide-details{
    position: absolute;
    bottom: 40px;
    color: black;
    font-size: 1.5rem !important;
    background-color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    width: 350px;
    height: 40%;
    top: 50%;
    left: 300px;
    transform: translate(-50%,-50%);
    text-transform: uppercase;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

@media (max-width: 839px){
    .slide-details{
        left: 250px;
        width: 250px;
        height: 60%;
    }
}
@media (max-width: 475px){
    .slide-details{
        left: 200px;
        width: 250px;
        height: 60%;
    }
}

.slide-title{
    font-weight: bold;
    font-size: 2.3rem;
    text-align: center;
}
.slide-button button{
    border: none;
    height: 50px;
    width: 100%;
    margin: 20px 0;
    text-transform: uppercase;
    background-color: #0c121c;
    color: white;
}
.slide-button button:hover{
    background-color: white;
    border: 1px solid #0c121c;
    color: #0c121c;
}
.dots{
    margin: 0 auto;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%,-50%);
}
.prevBtn, .nextBtn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 28px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.nextBtn {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  .prevBtn:hover, .nextBtn:hover {
    background-color: rgba(0,0,0,0.8);
  }

  .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: rgb(117, 117, 117);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }
  .dot:hover{
      background-color: white;
  }
  .dots span.active{
      background-color: white;
      border: 0.1px solid black;
  }
@media screen and (max-width: 650px) {
    .logo img:nth-child(1){
        display: none;
    }
    .logo img:nth-child(2){
        display: block;
    }
    header  .header-left{
        width: 100%;
    }    
}

button{
    cursor: pointer;
}

.relative{
    position: relative;
}
.absolute{
    position: absolute;
}


.flux{
    margin-top: 20px;
    display: flex;
    flex-direction:row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-bottom: 100px;
}

.blockFlux{
    display: flex;
    flex-direction:column;
    justify-content: space-around;
    align-items: center;
    margin-left: 50px;
    margin-right: 50px;
}

.blockPhotos{
    height: 100px;
    width: 100px;
    margin-bottom: 30px;
}

.flecheFlux{
    height: 50px;
    width: 50px;
}
.flecheFluxResponsive{
    display: none;
    transform: rotate(90deg);
    height: 50px;
    width: 50px;
}

@media (max-width: 760px){
    .flux{
        flex-direction:column;
        padding-bottom: 100px;
    }
    .flecheFlux{
        display: none;
    }
    .flecheFluxResponsive{
        display: block;
    }
    .blockFlux{
        padding: 20px;
    }
}


.blockParagraphe{
    text-align: center;
    
}
/* News */
.titreNewsH1{
    color:#747577;
    font-size: 3em;
}

.news{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 100px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.blockNews{ 
    background: #232427; 
    box-shadow: 0 15px 30px 1px grey;
    position: relative;
    min-width: 320px;
    height: 500px;
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
      inset -5px -5px 15px rgba(255, 255, 255, 0.1),
      5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 30px;
    transition: 0.5s;
}

.boxNews{
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #2a2b2f;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    transition: 0.5s;
}
.boxNews:hover{
transform: translateY(-50px);
}
.boxNews:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
  }

.contentNews{
    padding: 20px;
    text-align: center;

}

.numeroNews{
    position: absolute;
    top: -130px;
    right: 30px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
}

.titreNews{
    font-size: 1rem;
    color: #fff;
    z-index: 1;
    transition: 0.5s;
    margin-bottom: 15px;
}

.blockNewsParaDetail {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    transition: 0.5s;
}
/* CONTACT */

#content-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(90vh - 110px);
}

#content-contact .form {    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    line-height: 20px;
    max-width: fit-content;
    align-items: flex-start;
    padding: 10px;
    background-color: var(--secondary-color);
    border: 1px solid silver;
    border-radius: 3px;
    align-items: center;
    margin: 8px;
    min-width: 25vw;
}

#content-contact input {    
    display: flex;
    min-width: 15vw;
    margin:8px;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}


/* RESETPASSWORD */

.para-resetpwd {
    text-align: center;
}

.form-resetpwd {
    margin-top : 30px !important;
}

.btn-resetpwd{
    margin : 20px 0 20px 0 !important;
    width: 100% ;
}

/* CHANGEPWD */

.input-changepwd {
    width: 95%;
}

.btn-changepwd{
    margin-bottom: 10px !important;
    width: 100%;
    padding: 10px;
}

#securite{
    text-align: left;
    margin : 20px 0 10px 0;
}

.title-changepwd{
    line-height: 1.3em;
}

.change-color{
    color: green;
    font-weight: bold;
}

.confirm-pwd{
    margin-top: 30px;
}

/* IDENTIFIANT */

.retour-connexion{
    margin-top: 50px;
}

/* MON COMPTE */

#cardCompte{
    display: flex;
    margin:auto;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    min-height: 60vh;
    min-width: 50vw;
    max-width: 80vw;
}

#cardCompte .form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 8px;
    border: 1px solid silver;
    border-radius: 4px;
    margin: 3px;
    margin-bottom: 6px;
    text-align: center;
    min-width: 20vw;
    width: 40%;
}

.title-adresse{
    text-align: left;
}

.adresse{
    border: 1px solid silver;
    border-radius: 3px;
    padding: 5px;
    margin: 0 2px;
    background-color: #FFFFFF;
    width: 55%;
    text-align: left !important;
    display : flex;
    align-items: center
}

.group-form {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 5px;    
}

.blockinfo-client{
    height: 340px;
}

#cardCompte input{
    max-width: 30vw;
    background-color: white;
}

#cardCompte input[type="checkbox"] {
    height:1.5em;
    width:1.5em;
    cursor:pointer;
    position:relative;
    border-radius:4em;
}


 #joursliv {
    border: 1px black;
    padding:5px;
    text-align: center;
 }

 #joursliv th{
    border: 1px black;
    padding:5px;
    text-align: center;
 }

 #info_client td{
    padding:3px;
 }

/* SAISIE COMMANDE ARTICLES */

#content-articles {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left:16vw;
}

.title_articles {
    width: 100%;
    text-align: center;
}

#section-articles {
    flex-grow: 1;
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
}

.article-quantite {
    display: flex;
    flex-direction:row;
    justify-content: center;
    margin-bottom:10px;
    align-items: center;
    width: max-content;
}

.article-quantite input, .article-quantite select {
    display: flex;
    width:70px;
    margin-left:3px;
    margin-right:3px;
}

.article-quantite select:required:invalid {
    color: rgb(161, 161, 161);
  }
  .article-quantite option[value=""][disabled] {
    display: none;
  }
  .article-quantite option {
    color: rgb(0, 0, 0);
  }

   .comBtnValider {
    display: flex;
  } 


.product-list {
    margin-top:25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 2fr));
    gap: 1rem;
    margin-bottom:75px;
}

.product-item {
    justify-self: center;
    align-items: center;
    padding-bottom: 10px;
    background-color:var(--secondary-color);
    display: grid;
    border: 1px solid silver;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: fit-content;
}

.product-item img {
    margin-bottom:0;
    max-height: 200px;
    min-height: 200px;
    border-radius: 3px;
    width: 270px;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size:smaller;
    margin-bottom:4px;
}

#libArticle {
    max-width: 200px;
    
}

#blocLibFavArticle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;

}

.btn-comment {
    font-size: x-small; 
}

#btn-comment {
    all: unset;
    cursor: pointer;
}

.containerIconAction {
    display: flex;
    font-family: emoji;
    justify-content: space-evenly;
}

.articles-error {
    padding:20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.Comment{
    position:fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    top:50vh;
    left:calc(40vw);
    width:20vw;
    height:20vh;
    color:black;
    text-align:center;
    background:grey;
    opacity: 0.9!important;
    padding:1.2rem;
    display:none;
    border: 1px solid silver;
    border-radius: 5px;
    z-index: 9999;

}

.commentLignePanier{
    position:absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left:calc(40vw);
    width:20vw;
    height:20vh;
    color:black;
    text-align:center;
    background:grey;
    opacity: 0.9!important;
    padding:1.2rem;
    display:none;
    border: 1px solid silver;
    border-radius: 5px;
    z-index: 9999;
    
}

.Comment > *{
    justify-content: center;
    align-items: center;
    display: flex;
}


.commentLignePanier > *{
    justify-content: center;
    align-items: center;
    display: flex;
}


.Comment button {
    justify-content: center;
    align-items: center;
    display: flex;
    margin:0.7rem;
}

.commentLignePanier button {
    justify-content: center;
    align-items: center;
    display: flex;
    margin:0.7rem;
}

.Comment textarea {
    border: 1px solid silver;
    border-radius: 5px;
    font-family: var(--my-font);
    padding:5px;
}

.commentLignePanier textarea {
    border: 1px solid silver;
    border-radius: 5px;
    font-family: var(--my-font);
    padding:5px;
}

.commentLigneCart{
    display: flex;
    justify-content: space-between;
}

.star i {
    cursor: pointer;
}

.product-item.selected {
    border-color: #4f46e5;
}

.product-item.selected > div > h3, .product-item.selected > .star {
    color: #6366f1;
}

#barre_date_liv > *, #date_liv, #delivery_date {
    font-size: 0.99rem;
}

#barreCmd {
    justify-content: left;
}


/*PANIER*/

.div-center {
    display: flex;
    justify-content: center;
}

.card-white{
    background: var(--background-color);
    border-radius: 0;
    border: none;
}

#divInfo{
    width: 100%; 
    display: inline-flex; 
    justify-content: space-around;
    padding-top: 2vh;
}
#divInfoMobile{
    width: 85%;
}
#divInfoMobile > a {
    margin: 40px 0;
    display:flex;
    flex-direction: row;
    text-decoration: none;
}
#divInfoMobile > a > div:first-child{
    text-align: center;
    width: 90%;
}
#divInfoMobile > a > div:not(:first-child){
    font-size: xx-large;
}

#divInfo > div{
    display: inline-flex;
    align-items: center;
    flex-direction: column;
}

input:not([type='submit']), select{
    border: 1px solid silver;
    border-radius: 3px;
    padding: 5px;
    margin: 0 2px;
}

input[type='text']:read-only, input[type='text']:disabled{
    background-color:var(--secondary-color);
}

.panier_comment_ligne {
    font-style: italic;
    font-size: smaller;
}

.article_delete i {
    display: flex;
    justify-content: center;
    cursor: pointer;
}

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

.flex-column > *{
    margin:5px;
}

.adresses{
    text-align: center;
}

/*METEO*/

#divMeteo{
    margin: 1vh auto;
    min-height: fit-content;
    min-width: fit-content;
    max-width: 30vw;
    max-height: 18vh;
    color: var(--text-color-light);
    border: 4px solid #608094;
    background: #16394c;
    border-radius: 20px;
    padding: 5px;
}
#divMeteo h4{
    margin: 2px;
    text-align: center;
    font-weight: 500;
    font-size: larger;
}
#divMeteo h5{
    margin: 0;
    font-weight: 500;
    font-size: revert;
}
#divMeteo > div{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
}
#divMeteo > div > *{
    padding: 5px;
}

/*CAROUSEL*/

.owl-carousel {
    overflow: hidden;
    text-align: center;
    margin-top: 0.5rem;
}

.carousel-wrapper {
    width: 1000px;
    margin: auto;
    position: relative;
    text-align: center;
    font-family: sans-serif;
    height: 35vh;
}

.owl-carousel .item {
    background: var(--secondary-color);
    display: inline-block;
    border-radius: 5px;
    padding: 0.8rem;    
    width: 90%;    
    text-align: center;
    height: 35vh;
    overflow: auto;
}

.owl-carousel h2 {
   font-size:1.1rem;
}

.owl-carousel h3 {
    font-size:1rem;
    justify-content: center;
    text-align: center;
}

.owl-carousel p {
    font-size: 0.9rem;
    text-align:center;
    padding:4px;
}
.carouselImg {
    float:left; 
    max-width: 20vw;
}

.owl-carousel .owl-nav {
    overflow: hidden;
    height: 0px;
}

.owl-carousel .nav-button {
    height: 50px;
    width: 25px;
    cursor: pointer;
    position: absolute;
    top: 110px !important;
}

.owl-carousel .owl-prev.disabled,
.owl-carousel .owl-next.disabled {
    pointer-events: none;
    opacity: 0.25;
}

.owl-carousel .owl-prev {
    left: 0px;
}

.owl-carousel .owl-next {
    right: 0px;
}

.owl-theme .owl-nav [class*=owl-] {
    color: var(--text-color-dark);
    font-size: 39px;
    background: transparent;
    border-radius: 3px;
}

.owl-carousel{
    overflow: hidden;
    text-align: center;
    margin-top: 1rem;
}
.owl-carousel .item {
    background: var(--secondary-color);
    display: inline-block;
    border-radius: 15px;
    width: 90%;    
    text-align: left;
    max-height: 28rem;
    overflow: auto;
}

.carouselImg {
    float:left; 
    max-width: 25vw;
}

.owl-carousel .owl-stage {
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/*MENU MOBILE DROPSIDE*/

.dropside{
    height: 100%;
    position: relative;
    display: inline-block;
    width: 15vw;
}

.dropside-content{
    position: fixed;
    z-index: 1;
    width:71vw;
    left:-71vw;
    transition: transform 200ms ease-out;
    height: 88vh;
    flex-direction: column;
    background-color: var(--primary-color);
    font-size: 40px;
    color:var(--background-color);
}

.dropside-content.active{    
    border:2px solid var(--primary-color);
    transform: translateX(70vw);
}

.dropside-content .categorie{    
    display: flex;
    flex-direction: column;
    padding: 1.2vh 4vw;
    color:var(--background-color);
}

.dropside-content .categorie-content{
    overflow: hidden;
    transition: 0.5s;
    max-height: 0px;
}

.dropside-content .categorie-content.opened{
    max-height: 240px;
}

.dropside-content .chevron{
    transition: 0.5s;
    margin-right: 30px;
}

.dropside-content .chevron.opened{
    transform: rotateZ(90deg);
}

.dropside-content .subutton{
    color:var(--primary-color);
}

.dropside-content a{
    color:var(--background-color);
    justify-content: start;
}

.subutton{
    padding: 5% 10% 0;
    font-size: 35px;
}

#burgerTool{
    transition:0.4s;
    font-size: x-large;
    color:var(--background-color);
}

#burgerTool.active{
    color: var(--accent-color);
    transform: rotateZ(180deg) scale3d(1.1, 1.1, 1.1);
}

/*LOADER*/

#loader-articles {
    position: absolute;
    left: 56vw;
    top: 56vh;
    z-index: 1;
    width: 120px;
    height: 120px;
    margin: -76px 0 0 -76px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid var(--accent-color);
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
  }

  #loader {
    position: absolute;
    left: 50vw;
    top: 56vh;
    z-index: 1;
    width: 120px;
    height: 120px;
    margin: -76px 0 0 -76px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid var(--accent-color);
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
  }

  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
  

/**** MEDIA QUERIES ****/

/* DESKTOP */
@media (min-width: 839px){
    .hide_desktop{
        display: none !important;
    }
    #divMeteo{
        width: 40%;
    }
}

/* ── Header responsive ───────────────────────────────────────── */
@media (max-width: 838px) {
    .h-menu    { display: none !important; }
    .h-burger  { display: inline-flex !important; }
    .h-logo    { margin-right: auto; }
    .h-actions { gap: .05rem; }
    .h-action-btn { padding: 0 .6rem; }
}


/*MOBILE*/

@media (max-width: 1012px){
    #cardCompte .form{
        text-align: left;
    }
}

@media (max-width: 838px){
    .hide_mobile{
        display: none !important;
    }

    #cardCompte .form{
        min-width: 70vw;
        margin-top:10px;
    }

    .owl-carousel .item {
        padding: 0.8rem;    
        height: 100%;
        max-height: 50vh !important;
    }

    .owl-carousel h2 {
        font-size:0.9rem;
     }
     
     .owl-carousel h3 {
        font-size:0.8rem;
     }
     
     .owl-carousel p {
        font-size: 0.8rem;
     }

    #divMeteo{
        width: 80%;
        margin-top: 1vh !important;
        margin-bottom: 1vh !important;
    }
    table{
        border-spacing: 20px;
    }
    #divCommande > a{
        margin: 0 3vw;
    }
    aside nav a{
        padding: 10px 0;
    }
    #content-connexion .form, #content-contact .form {
        width: 60vw;
        max-width: unset;
        line-height: 15px;
    }

    .input-group {
        flex-direction: column;
    }
    
    #divMeteo{
        max-width: unset;
        max-height: unset;
    }
    #divMeteo > div > div{
        width:33%;
    }    
    
    main {
        padding-top: 2vh;
        padding-bottom: 4vh;
        min-height: calc(78vh);
        z-index: 1;
    }
   
    #content {
        justify-content: center;
        min-height: calc(78vh);
        padding-left: 8vw;
        padding-right: 8vw;
        padding-bottom: 6vh;
        align-self: center;
    }

    #content-connexion, #content-contact{
        justify-content: center;
        min-height: calc(74vh);
    }

    footer{
        height: 6vh;
    }

    header{
        height: 6vh;
        font-size: x-large;
    }

    aside{
        top: 6vh;
        font-size: x-large;
    }

    .d-flex{
        height: 6vh;
    }

    .d-flex a, .d-flex p{
        height: 100%;
    }

    .dropdown{
        height:100%;
    }

    h1,.h1 {
        font-size: x-large!important;
    }

    p {
        padding:2px;
        font-size: medium;
    }
    
    .categorie > a{
        font-size: 1.1rem;
    }    
    
    nav a:hover{
        color:unset;
    }

    #joursliv tr { 
        display: block; 
        float: left;  
        border: 1px;
        padding:5px;
    }

    #joursliv th, #joursliv td {
        display: block; 
        text-align: left;
        padding:5px;
        border: 1px;
    }

    aside {
        display:none;
    }

    .closedCategory{
        display:block;
    }

    .blockChooseCategory{
        display:block;
    }

    #content-articles {
        justify-content: flex-start;
        min-height: calc(78vh);
        padding-left: 8vw;
        padding-right: 8vw;
        padding-bottom: 6vh;
        align-self: center;
    }

    .product-list {
        margin-top:25px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
    }

    .barre > form > button, .barre > form > select, .btn, input, select {
        padding:5px;
        margin:2px;
    }

    .article-quantite input, .article-quantite select{
        min-width: 80px;
    }

    select > option {
        max-height:60px;
    }

    .barre {
        justify-content: space-around;
    }

    .recherche {
        justify-content: center;
    }

    .recherche > form, .barre > form {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
    }

    .recherche > form > input[type='text'] {
        max-width:30vw;
    } 

    .recherche > form > button > i {
        margin-right: 5px;
        margin-left: 5px;
    }

    .Comment{
        position:fixed;
        display: flex;
        flex-direction: column;
        justify-content: center;
        top:50vh;
        left:15vw;
        width:60vw;
        height:30vh;
        color:black;
        text-align:center;
        background:grey;
        opacity:0.9;
        padding:1.2rem;
        display:none;
        border: 1px solid silver;
        border-radius: 5px;
    }

    .Comment textarea {
        font-size: medium;
    }

    .dataTable {
        width: 150px;
    }

    .jconfirm .jconfirm-box {
        text-align: center;
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: 84vw;
    }

    #form-connexion{
        padding:4vw;
    }

    .blur {
        filter: blur(5px);
        -webkit-filter: blur(5px);
        -moz-filter: blur(5px);
        -o-filter: blur(5px);
        -ms-filter: blur(5px);
    }
    
    #overlay  {
        position: fixed;
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        background: rgba(255,255,255,.8);
        z-index: 20;
    }

    .title_articles {
        width: 100%;
        margin-left: -11vw;
        text-align: center;
        padding-left: 8vw;
    }

}

/* GARPHIQUE PAGE STATISTIQUE */

    .titreStats{
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    .btnStats{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
        margin-bottom: 20px !important;
    }

    .btnChoice{
        min-width: 150px;
    }

    #lineCanvas{
        max-height: 70vh !important;
    }

    .chart-container{
        display: none;
    }

    #chart-container2{
        margin-top: 100px;
        margin-bottom: 100px;
        height: 80vh;
        width: 100%;  
    }


    .graphs{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
    }
