:root {
--primary: rgb(158,0,93);
--primaryb:rgba(208,50,143,1);
--secondary: rgb(0,93,158);
--dark-bg: #1b2933;
--radius: 12px;
--header-h: 9vh;
}

/* --- STRUCTURE ANTI-SCROLL GLOBAL --- */
html, body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
overflow: hidden; /* Empêche le scroll sur toute la page */
font-family: 'Segoe UI', Roboto, sans-serif;
background-color: var(--dark-bg);
color: white;
max-width:min(100vh,100%);
}

body {
display: flex;
flex-direction: column;
background: linear-gradient(180deg, rgb(27,41,51) 0%, rgb(15,20,25) 100%);
}

/* --- HEADER FIXE --- */
#titre {
position: relative;
width: 100%;
height: var(--header-h);
z-index: 100;
background: transparent;
}

#logo {
width: 100%;
height: 100%;
background-image: url("IMG/logo.png");
background-repeat: no-repeat;
background-size: 26vh;
background-position: 1vh center;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
cursor: pointer;
margin: 0 auto;
}

/* Masquage de la bannière d'adresse dans le header comme demandé */
#address-banner {
display: none !important;
}


/* --- CONTENEUR PRINCIPAL --- */
#main-container {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden; /* Important : le main ne doit pas scroller */
}

/* --- ZONE SCROLLABLE (Produits uniquement) --- */
.scroll-area {
flex: 1;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 15px;
}

/* --- HERO GTA 1:1 (ACCUEIL) --- */
#hero-address-container {
position: relative;
width: 100%;
aspect-ratio: 16/ 9; /* Carré parfait sur mobile */
background: #000;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: hidden;
flex-shrink: 0;
max-width:60vh;
margin: 0 auto;
}

.hero-top-text {
position: relative;
z-index: 20;
text-align: center;
background: linear-gradient(to bottom, rgba(0,0,0,0.8) 100%, rgba(0,0,0,0) 100%);
}

.hero-bottom-controls {
display: none;
position: relative;
z-index: 20;
padding: 20px 20px 40px 20px;
background: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.gta-title {
font-size: 1.6rem;
font-weight: 900;
text-transform: uppercase;
text-shadow: 2px 2px 0px #000;
margin: 0.5rem;
animation: gtaBlink 2s infinite;
line-height:1rem;
}

.highlight {
color: var(--primaryb);
font-size: 1.2rem;

}

.address-banner-container-wrap {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
z-index: 1;
}

.bg-gta {
width: 100%; height: 100%;
background-size: cover;
background-position: center;
animation: gtaZoomBg 15s infinite alternate ease-in-out;
}

.sprite-gta {
position: absolute;
bottom: 0; left: 0;
width: 100%; height: 85%;
background-size: contain;
background-repeat: no-repeat;
background-position: left bottom;
z-index: 10;
pointer-events: none;
filter: drop-shadow(10px 0 20px rgba(0,0,0,0.8));
animation: gtaMoveSprite 10s ease-out forwards;
}

.address-box-gta {
width: 100%;
max-width: 400px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 12px;
}

.inputblock {
width: 100%;
padding: 15px;
box-sizing: border-box;
background: white;
color: #000;
border-radius: 8px;
border: none;
font-size: 1rem;
font-weight: 600;
}

.checkout-btn {
width: 100%;
padding: 15px;
background: var(--primary);
color: white;
border: none;
border-radius: 8px;
font-size: 1.1rem;
font-weight: 900;
text-transform: uppercase;
cursor: pointer;
}

/* --- NAVIGATION CATÉGORIES --- */
.new-categories-nav {
background: rgba(0,0,0,0.2);
}

.tiles-container {
display: flex;
overflow-x: auto;
scrollbar-width: none;
}
.tiles-container::-webkit-scrollbar { display: none; }

.tile {
flex: 0 0 min(20vh,20vw);
background: rgba(255,255,255,0.05);
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
border-width:0;
}

.tile.active {
background: var(--primary);
border-color: white;
transform: scale(1.05);
box-shadow: 0 0 15px rgba(158,0,93,0.5);
}

.tile-icon img { width: min(9vh,9vw); height: min(9vh,9vw); object-fit: contain; }
.tile-label { font-size: min(2.6vh,2.6vw); font-weight: 700; text-transform: uppercase;color:white; }

/* --- GRILLE DE PRODUITS --- */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(26vh,26vw), 1fr));
gap: min(2vh,2vw);
grid-auto-rows: min(65vh, 65vw);
}

.product-card {

border-radius: min(1.5vh,1.5vw) min(1.5vh,1.5vw) min(12vh,12vw) min(12vh,12vw);
text-align: center;
position:relative;
overflow: hidden;
display: flex;
flex-direction: column;
}


.product-card img { max-width: 100%; height: 100px; object-fit: contain; }


/* --- PANIER (DRAWER) --- */
#cart-drawer {
position: fixed;
top: 0; right: -100%;
width: 85%; max-width: 400px;
height: 85vh;
background: #1b2933;
z-index: 1000;
transition: right 0.3s ease;
display: flex; flex-direction: column;
}
#cart-drawer.open { right: 0; }
#cart-overlay.active {
position: fixed; top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.7); z-index: 999;
}

/* --- ANIMATIONS --- */
@keyframes gtaBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes gtaZoomBg { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes gtaMoveSprite { from { transform: translateX(-5%); } to { transform: translateX(0); } }

.shake { animation: shake 0.4s; }
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
75% { transform: translateX(5px); }
}

#home-wrapper {
display: flex;
flex-direction: column;
height: 100%; /* Occupe tout l'espace sous le logo */
}

.home-content-bottom {
flex: 1; /* Prend tout l'espace restant */
display: flex;
flex-direction: column;
justify-content: center; /* Centre verticalement le texte et l'input */
padding: 20px;
background: #151419; /* Fond très sombre */
text-align: center;
}

.info-random-box p {
font-size: 0.95rem;
line-height: 1.4;
color: #bbb;
margin: 0;
}

.info-random-box strong {
color: var(--primary);
c
margin-bottom: 5px;
font-size: 1.1rem;
text-transform: uppercase;
}

.vip-link-hero {
margin-top: 20px;
font-size: 0.8rem;
color: #666;
}

.vip-link-hero a {
color: var(--primary);
text-decoration: none;
font-weight: bold;
}
/* --- TRANSITION DE PAGE (FADE IN/OUT) --- */
#page-loader-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000; /* Fond noir pour la transition */
z-index: 9999; /* Toujours au-dessus de tout */
opacity: 0; /* Invisible par défaut */
pointer-events: none; /* Laisse passer les clics quand invisible */
transition: opacity 1.5s ease-in-out; /* Vitesse du fondu (1.5s aller, 1.5s retour = 3s total) */
}

#page-loader-overlay.visible {
opacity: 1;
pointer-events: auto;
}

#page-loader-overlay.hidden {
opacity: 0;
}

/* Classe activée en JS pour lancer le fondu au noir */
#page-loader-overlay.fade-out {
opacity: 1;
pointer-events: auto; /* Bloque les clics pendant la transition */
}

.bg-gta, .sprite-gta, .info-random-box p {
transition: opacity 0.6s ease-in-out;
}

/* --- SECTION AVIS GOOGLE --- */
.google-reviews-lite {
padding: 1vh;
background: rgba(255, 255, 255, 0.03);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.05);
margin: 0 auto;
margin-top: 2vh;
max-width:60vh;
}

.google-reviews-lite .stars {
color: #ffb400;
font-size: 1.2rem;
margin-bottom: 5px;
}

.google-reviews-lite p {
font-style: italic;
font-size: 0.9rem;
color: #eee;
margin: 5px 0;
}

.google-reviews-lite span {
font-size: 0.75rem;
color: #888;
text-transform: uppercase;
letter-spacing: 1px;
}

/* --- FOOTER --- */
.site-footer {
padding: 1vh;
background: #0d0d0f;
text-align: center;
border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 15px;
}

.footer-links a {
color: #888;
text-decoration: none;
font-size: 0.8rem;
transition: color 0.3s;
}

.footer-links a:hover {
color: var(--primary);
}

.site-footer p {
font-size: 0.7rem;
color: #444;
margin: 0;
}

/* Ajustement pour le scroll du home-wrapper */
#home-wrapper {
overflow-y: auto; /* Permet de scroller pour voir les avis et le footer sur petit écran */
-webkit-overflow-scrolling: touch;
}

/* --- BANDEAU D'OUVERTURE DYNAMIQUE --- */
.header-status-container {
position: fixed;
bottom: 0;
top: auto;
width: 100%;
z-index: 9999;
height:4vh;
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Style si Ouvert */
.status-open {
border-bottom: 2px solid #4CAF50;
box-shadow: 0 0 15px rgba(76, 175, 80, 0.4); /* Petite lueur verte sous le bandeau */
}
.status-open .status-text { color: #4CAF50; }
.status-open .pulse-dot { background: #4CAF50; box-shadow: 0 0 10px #4CAF50; animation: blink 1.5s infinite; }

/* Style si Fermé */
.status-closed { border-bottom: 2px solid #f44336; }
.status-closed .status-text { color: #f44336; }
.status-closed .pulse-dot { background: #f44336; }

/* Indicateur de statut */
.status-indicator {
display: flex;
align-items: center;
padding: 0 15px;
background: #000;
z-index: 10;
white-space: nowrap;
font-weight: 900;
height:100%;
}

.pulse-dot {
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}

/* --- ANIMATION DÉFILEMENT (TICKER) --- */
.ticker-wrap {
flex: 1;
overflow: hidden;
background: rgba(255,255,255,0.03);
}

.ticker {
display: inline-block;
white-space: nowrap;
padding-right: 100%;
animation: ticker 25s linear infinite;
}

.ticker__item {
display: inline-block;
padding: 0 20px;
color: #888;
letter-spacing: 1px;
}

@keyframes ticker {
0% { transform: translate3d(0, 0, 0); }
100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes blink {
0% { opacity: 1; }
50% { opacity: 0.3; }
100% { opacity: 1; }
}

.legal-banner-v2 {
background-color: #ffffff;
color: #000000;
border: 3pt solid #000000; /* Filet de 3pt minimum */
display: flex;
align-items: center;
padding: 3pt;
width: 98vw;
box-sizing: border-box;
font-family: 'Helvetica Neue Custom', sans-serif;
margin-left:-1vh;
margin-bottom:12.5vw;
margin: 0 auto;
margin-top: 2vh;
width:min(100vw,100vh);
min-height:60px;
height:max(8vh,8vw);
}

.legal-logo {
margin: 3pt;
width: max(4vh,4vw);
border: 1px solid #000000;
padding:3pt;
}

.legal-logo img {
width: 100%;
display: block;
}

.legal-content {
display: flex;
flex-direction: column;
padding:3pt;
}

.legal-t1 {
font-weight: bold; /* Helvetica Neue Gras */
font-size: max(1.05vh,1.05vw);
text-align: left;
line-height:max(1.2vh,1.2vw);
padding-top:3pt;
}

.legal-t2 {
font-weight: normal; /* Helvetica Neue Regular */
font-size: max(0.88vh,0.88vw);
text-align: left;
line-height:max(1.2vh,1.2vw);
}

.legal-t3 {
font-weight: 500; /* Helvetica Neue Medium */
font-size: max(0.8vh,0.8vw);
text-align: right; /* Ferré à droite */
line-height:max(1.2vh,1.2vw);
padding-bottom:3pt;
l
}


@font-face {
font-family: 'Helvetica Neue Custom';
src: url('FONTS/HelveticaNeue-Bold.ttf') format('truetype');
font-weight: bold;
}

@font-face {
font-family: 'Helvetica Neue Custom';
src: url('FONTS/HelveticaNeue-Regular.ttf') format('truetype');
font-weight: normal;
}

@font-face {
font-family: 'Helvetica Neue Custom';
src: url('FONTS/HelveticaNeue-Medium.ttf') format('truetype');
font-weight: 500;
}

/* --- CONTAINER PRINCIPAL --- */
.ploupy-features-container {
display: flex;
gap: 0.5vh;
margin: 0 auto;
margin-top: 2vh;
overflow-x: auto; /* Permet le swipe sur petit mobile */
max-width:60vh;
}

.feature-card {
flex: 1;
background: #1a1a1e;
border: 1px solid #333;
border-radius: 12px;
padding: 12px 8px;
display: flex;
align-items: center;
gap: 8px;
min-width: 100px;
}

.f-icon { font-size: 1.4rem; }
.f-content { display: flex; flex-direction: column; text-align: left; }
.f-title { font-weight: bold; color: white; font-size: 0.85rem; }
.f-desc { color: #888; font-size: 0.65rem; line-height: 1.1; }

/* --- SECTION AGE / MAJORITÉ --- */
.age-check-container {
display: flex;
gap: 10px;
margin-bottom: 20px;
}

.age-card {
flex: 1;
background: #1a1a1e;
border: 1px solid #333;
border-radius: 12px;
padding: 15px;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
}

.age-badge {
color: #e91e63; /* Magenta */
font-weight: 800;
font-size: 1.1rem;
}

.age-badge-img {
color: white;
font-weight: 800;
font-size: 1.1rem;
}

.age-text {
color: #888;
font-size: 0.7rem;
text-align: left;
}

.trending-slider {
width: 100%;
overflow: hidden;
background: #0d0d0f;
border-top: 1px solid #333;
border-bottom: 1px solid #333;
padding: 10px 0;
white-space: nowrap;
}

.trending-track {
display: inline-flex;
align-items: center;
animation: scrollProducts 30s linear infinite; /* Vitesse réglable ici */
}

.trending-item {
display: flex;
align-items: center;
gap: 10px;
padding: 0 30px;
}

.trending-item img {
height: 40px; /* Taille discrète mais visible */
width: auto;
filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.trending-item span {
color: #fff;
font-family: 'Segoe UI Bold', sans-serif;
font-size: 0.8rem;
letter-spacing: 1px;
}

@keyframes scrollProducts {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); } /* On scroll la moitié car on a doublé la liste */
}

.product-ticker-container {
width: 100%;
overflow: hidden;
background: #0d0d0f;
border-top: 1px solid #333;
border-bottom: 1px solid #333;
padding: 12px 0;
margin: 10px 0;
}

.product-ticker-track {
display: flex;
width: max-content;
animation: scrollProducts 40s linear infinite; /* Règle la vitesse ici */
}

.ticker-product-item {
display: flex;
align-items: center;
padding: 0 40px;
gap: 15px;
}

.ticker-product-item img {
height: 45px;
width: auto;
filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.ticker-product-item span {
color: #ffffff;
font-family: 'Segoe UI Bold', sans-serif;
font-size: 0.85rem;
letter-spacing: 1px;
white-space: nowrap;
}

@keyframes scrollProducts {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}

.sub-nav-gta {
padding: min(1vh,1vw) ;
background: rgba(0,0,0,0.3);
border-bottom: 1px solid var(--primary);
margin-bottom: min(1vh,1vw) ;
}
.types-grid {
display: flex;
gap: min(4vh,4vw);
overflow-x: auto;
padding: min(2vh,2vw);
scrollbar-width: none; /* Cache la barre sur Firefox */
-ms-overflow-style: none; /* Cache sur IE */
}
.types-grid::-webkit-scrollbar {
display: none; /* Cache sur Chrome/Safari */
}
.type-tile {
display: flex;
align-items: center;
cursor: pointer;
white-space: nowrap;
display: flex;
flex-direction: column;
gap:min(1%,1vh);
width:19%;
max-width:19vh;
overflow:hidden;
}
.type-icon-small {
width: 24px;
height: 24px;
background-size: contain;
background-repeat: no-repeat;
image-rendering: pixelated; /* Pour le look PixelArt */
}

#sub-categories-container {
overflow: hidden;
padding:min(0.5vh,0.5vw);
}

.sub-tile-type {
flex: 0 0 min(20vh,20vw); /* Largeur fixe pour le défilement */
background: rgba(255, 255, 255, 0.05);
border: 1px solid #333;
border-radius: min(2vh,2vw);
padding: min(0.5vh,0.5vw);
transition: all 0.2s ease;
color:white;
}

.sub-tile-type.active {
border-color: var(--primary);
background: rgba(158, 0, 93, 0.2);
transform: scale(1.05); /* Petit effet de zoom à la sélection */
}

.sub-tile-icon {
width: min(5vh,5vw);
height: min(5vh,5vw);
margin: 0 auto 5px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
image-rendering: pixelated; /* Pour garder le look pixel */
}

.sub-tile-icon {
width: 35px;
height: 35px;
margin: 0 auto 5px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
image-rendering: pixelated; /* Crucial pour tes sprites ! */
}


.cart-floating-btn:active {
transform: scale(0.9);
}

.cart-icon-wrapper {
position: relative;
margin-right: 12px;
display: flex;
align-items: center;
}

.cart-count-badge {
position: absolute;
top: -10px;
right: -10px;
background: #00e5ff; /* Cyan flashy pour le contraste */
color: #000;
font-size: 0.7rem;
font-weight: 800;
min-width: 18px;
height: 18px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--primary);
}

.cart-btn-text {
font-weight: bold;
font-size: 0.85rem;
letter-spacing: 1px;
}

/* Cache le bouton si le panier est vide (optionnel) */
#cart-link[data-empty="true"] {
display: none;
}

@keyframes shake {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}


/* Nouveau bouton flottant */
.cart-floating-btn {
position: fixed;
bottom: min(9vh, 9vw);
left: min(82vh, 82vw);
background: linear-gradient(135deg, var(--primary) 0%, rgba(208,50,143,1) 100%);
color: white;
display: flex;
align-items: center;
justify-content: center;
width: min(15vh,15vw);
height: min(15vh,15vw);
border-radius: 50%;
box-shadow:
0 8px 32px rgba(158, 0, 93, 0.4),
0 4px 12px rgba(0, 0, 0, 0.3),
inset 0 2px 4px rgba(255, 255, 255, 0.2);
z-index: 1000;
cursor: pointer;
border: 3px solid rgba(255, 255, 255, 0.15);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
backdrop-filter: blur(10px);
-webkit-tap-highlight-color: transparent;
user-select: none;
}

/* État actif (touch) */
.cart-floating-btn:active {
transform: scale(0.88);
box-shadow:
0 4px 16px rgba(158, 0, 93, 0.3),
0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Hover (pour les appareils qui le supportent) */
@media (hover: hover) {
.cart-floating-btn:hover {
transform: scale(1.08) translateY(-4px);
box-shadow:
0 12px 40px rgba(158, 0, 93, 0.5),
0 6px 20px rgba(0, 0, 0, 0.3);
}
}

/* Icône du panier SVG intégrée */
.cart-icon-svg {
width: 28px;
height: 28px;
fill: currentColor;
filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Badge de quantité */
.cart-count-badge {
position: absolute;
top: -4px;
right: -4px;
background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
color: #000;
font-size: 0.75rem;
font-weight: 900;
min-width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 3px solid var(--dark-bg);
box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
animation: none;
transition: transform 0.2s ease;
}

/* Animation pulse quand on ajoute */
.cart-count-badge.pulse {
animation: badgePulse 0.4s ease;
}

@keyframes badgePulse {
0% { transform: scale(1); }
50% { transform: scale(1.4); }
100% { transform: scale(1); }
}

/* Animation d'entrée au chargement */
@keyframes slideInUp {
from {
transform: translateY(100px) scale(0.8);
opacity: 0;
}
to {
transform: translateY(0) scale(1);
opacity: 1;
}
}

.cart-floating-btn.animate-in {
animation: slideInUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animation shake quand le panier est vide et qu'on essaie d'ouvrir */
@keyframes shake {
0%, 100% { transform: rotate(0deg); }
25% { transform: rotate(-8deg); }
75% { transform: rotate(8deg); }
}

.cart-floating-btn.shake {
animation: shake 0.4s ease-in-out;
}

/* Indicateur de scroll (petit point qui suggère de scroller) */
.cart-hint-dot {
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 6px;
height: 6px;
background: #4CAF50;
border-radius: 50%;
animation: hintBounce 2s infinite;
display: none;
}

@keyframes hintBounce {
0%, 100% { transform: translateX(-50%) translateY(0); }
50% { transform: translateX(-50%) translateY(-8px); }
}


.cart-btn-text {
display: none;
}

/* État vide - bouton grisé/désactivé visuellement */
.cart-floating-btn[data-empty="true"] {
background: linear-gradient(135deg, #333 0%, #444 100%);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
cursor: default;
}

.cart-floating-btn[data-empty="true"] .cart-count-badge {
display: none;
}

/* Ripple effect au clic */
.ripple {
position: absolute;
border-radius: 50%;
background: rgba(255, 255, 255, 0.4);
transform: scale(0);
animation: rippleEffect 0.6s ease-out;
pointer-events: none;
}

@keyframes rippleEffect {
to {
transform: scale(4);
opacity: 0;
}
}

/* Cacher IMMÉDIATEMENT l'ancien bouton (pas de flash au chargement) */
#boutonNBpanier {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
}





/* Animation plus subtile */
.cart-floating-btn {
opacity: 0;
transform: translateY(20px);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


@keyframes slideInUp {
from { transform: translateY(50px) scale(0.9); opacity: 0; }
to { transform: translateY(0) scale(1); opacity: 1; }
}

h3{
margin:min(1vh,1vw);
font-size:min(3.6vh,3.6vw);
font-weight: 700;
display: block;
height:min(12vh,12vw);
overflow:hidden;
}

.img-container{
background-color:rgba(255,255,255,0.1);
position: relative;
display: flex;
align-items: center;
justify-content: center;
}

/* ============================================
SYSTÈME DE COULEURS PAR CATÉGORIE - PLOUPY
============================================ */

/* --- ALCOOL (Rose Ploupy) --- */
.product-card[data-category="Alcools"] .product-info{
background: rgba(158, 0, 93, 0.15);
}

.product-card[data-category="Alcools"] .product-info .add-btn {
background: linear-gradient(135deg, #9e005d 0%, #d0328f 100%);
}

.sub-nav-gta[data-category="Alcools"] {
background: rgba(158, 0, 93, 0.1);
border-top: 2px solid #9e005d;
border-bottom: 2px solid #9e005d;
}

.sub-tile-type[data-category="Alcools"].active {
border-color: #9e005d;
background: rgba(158, 0, 93, 0.2);
box-shadow: 0 0 15px rgba(158, 0, 93, 0.5);
}

.tile[data-category="Alcools"].active {
background: linear-gradient(135deg, #9e005d 0%, #d0328f 100%);
box-shadow: 0 0 20px rgba(158, 0, 93, 0.6);
}

/* --- SOFT (Vert frais) --- */
.product-card[data-category="Divers"] {
background: rgba(0, 200, 83, 0.15);
}


.product-card[data-category="Divers"] .add-btn {
background: linear-gradient(135deg, #00c853 0%, #69f0ae 100%);
}

.sub-nav-gta[data-category="Divers"] {
background: rgba(0, 200, 83, 0.1);
border-top: 2px solid #00c853;
border-bottom: 2px solid #00c853;
}

.sub-tile-type[data-category="Divers"].active {
border-color: #00c853;
background: rgba(0, 200, 83, 0.2);
box-shadow: 0 0 15px rgba(0, 200, 83, 0.5);
}

.tile[data-category="Divers"].active {
background: linear-gradient(135deg, #00c853 0%, #69f0ae 100%);
box-shadow: 0 0 20px rgba(0, 200, 83, 0.6);
}

/* --- SNACKS (Orange) --- */
.product-card[data-category="Utiles"] {
background: rgba(255, 109, 0, 0.15);
}


.product-card[data-category="Utiles"] .add-btn {
background: linear-gradient(135deg, #ff6d00 0%, #ff9e40 100%);
}

.sub-nav-gta[data-category="Utiles"] {
background: rgba(255, 109, 0, 0.1);
border-top: 2px solid #ff6d00;
border-bottom: 2px solid #ff6d00;
}

.sub-tile-type[data-category="Utiles"].active {
border-color: #ff6d00;
background: rgba(255, 109, 0, 0.2);
box-shadow: 0 0 15px rgba(255, 109, 0, 0.5);
}

.tile[data-category="Utiles"].active {
background: linear-gradient(135deg, #ff6d00 0%, #ff9e40 100%);
box-shadow: 0 0 20px rgba(255, 109, 0, 0.6);
}

/* --- TABAC (Marron) --- */
.product-card[data-category="Sales"] {
background: rgba(93, 158, 0, 0.15);
}


.product-card[data-category="Sales"] .add-btn {
background: linear-gradient(135deg, #216c00 0%, #5d9e00 100%);
}

.sub-nav-gta[data-category="Sales"] {
background: rgba(93, 158, 0, 0.1);
border-top: 2px solid rgb(93, 158, 0);;
border-bottom: 2px solid rgb(93, 158, 0);;
}

.sub-tile-type[data-category="Sales"].active {
border-color: rgb(93, 158, 0);
background: rgba(93, 158, 0, 0.2);
box-shadow: 0 0 15px rgba(93, 158, 0, 0.5);
}

.tile[data-category="Sales"].active {
background: linear-gradient(135deg, #216c00 0%, #5d9e00 100%);
box-shadow: 0 0 20px rgba(93, 158, 0, 0.6);
}



/* --- ACCESSOIRES (Bleu) --- */
.product-card[data-category="Softs"] {
background: rgba(41, 98, 255, 0.15);
}


.product-card[data-category="Softs"] .add-btn {
background: linear-gradient(135deg, #2962ff 0%, #448aff 100%);
}

.sub-nav-gta[data-category="Softs"] {
background: rgba(41, 98, 255, 0.1);
border-top: 2px solid #2962ff;
border-bottom: 2px solid #2962ff;
}

.sub-tile-type[data-category="Softs"].active {
border-color: #2962ff;
background: rgba(41, 98, 255, 0.2);
box-shadow: 0 0 15px rgba(41, 98, 255, 0.5);
}

.tile[data-category="Softs"].active {
background: linear-gradient(135deg, #2962ff 0%, #448aff 100%);
box-shadow: 0 0 20px rgba(41, 98, 255, 0.6);
}

/* --- DIVERS (Violet) --- */
.product-card[data-category="Sucres"] {
background: rgba(170, 0, 255, 0.15);
}


.product-card[data-category="Sucres"] .add-btn {
background: linear-gradient(135deg, #aa00ff 0%, #e040fb 100%);
}

.sub-nav-gta[data-category="Sucres"] {
background: rgba(170, 0, 255, 0.1);
border-top: 2px solid #aa00ff;
border-bottom: 2px solid #aa00ff;
}

.sub-tile-type[data-category="Sucres"].active {
border-color: #aa00ff;
background: rgba(170, 0, 255, 0.2);
box-shadow: 0 0 15px rgba(170, 0, 255, 0.5);
}

.tile[data-category="Sucres"].active {
background: linear-gradient(135deg, #aa00ff 0%, #e040fb 100%);
box-shadow: 0 0 20px rgba(170, 0, 255, 0.6);
}
/* Style de la bannière */
/* Style de la bannière fixe */
.legal-notice-bar {
display: none; /* Caché par défaut */
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background: rgba(114, 0, 38, 0.9); /* Rouge vin translucide */
backdrop-filter: blur(10px); /* Flou d'arrière-plan */
color: white;
padding: min(1.5vh,1.5vw);
z-index: 999; /* Devant les produits, mais derrière le panier */
border-top: 1px solid #ff0054;
text-align: center;
font-size: min(3vh,3vw);
line-height: min(3vh,3vw);
box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

/* Affichage uniquement pour l'alcool */
#sub-categories-container[data-category="Alcool"] ~ #legal-banner-alcohol,
#sub-categories-container[data-category="Alcools"] ~ #legal-banner-alcohol {
display: block;
}

/* Ajustement pour que le dernier produit ne soit pas caché par la bannière */
#sub-categories-container[data-category="Alcool"] ~ #products-grid,
#sub-categories-container[data-category="Alcools"] ~ #products-grid {
padding-bottom: 10vh; /* On laisse de la place en bas du scroll */
}


/* Animation de sortie pour le header */
#titre {
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
transform: translateY(0);
opacity: 1;
}

/* --- GESTION DU PLEIN ÉCRAN (Body Class) --- */

/* On prépare la transition pour les éléments concernés */
#titre,
.header-status-container,
main {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quand le mode plein écran est actif via le body */
body.status-hidden #titre,
body.status-hidden .header-status-container {
transform: translateY(-120%); /* Sortie vers le haut */
opacity: 0;
pointer-events: none;
height: 0; /* On réduit la hauteur pour ne pas laisser de vide */
margin: 0;
}

body.status-hidden main {
margin-top: 0; /* Le main vient se coller tout en haut */
height: 100vh; /* Il prend toute la hauteur disponible */
}

/* On s'assure que la grille de produits utilise bien tout l'espace */
body.status-hidden #products-grid {
height: calc(100vh - 120px); /* Ajustez 120px si la bannière alcool gêne */
}

/* --- INFOS PRODUITS --- */
.product-brand {
margin:min(1vh,1vw);
font-size:min(3.2vh,3.2vw);
color:white;


}
.unit-price { font-size: 0.7rem; color: #888; }

/* --- FOOTER & TEXTES --- */
.btn-contact-footer { cursor: pointer; }
.copyright { font-size: 0.7rem; text-align: center; padding: 10px; opacity: 0.5; }
.legal-text { font-size: 0.8rem; line-height: 1.2; }

/* --- PANIER (IDs manquants) --- */
#cart-overlay, #display-user-address, #cart-items-container,
#checkout-form-container, #cash-option, #cart-default-footer,
#panier-total-prix, #btn-commander-main, #ploupy-alert, #ploupy-alert-msg {
/* Ces IDs existent dans panier.php mais n'avaient pas de style propre */
transition: all 0.3s ease;
}
[class*="btn-cat-"] {
/* Ce style s'appliquera à toutes les classes commençant par btn-cat- */
cursor: pointer;
}

/* Badge VIP dans le home */
.vip-status-badge {
animation: vipPulse 2s infinite;
}

@keyframes vipPulse {
0%, 100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

@keyframes slideDown {
from { top: -100px; opacity: 0; }
to { top: 20px; opacity: 1; }
}

/* PANIER - Styles extraits de l'inline */
.cart-header {
padding: 20px;
border-bottom: 1px solid #333;
display: flex;
justify-content: space-between;
align-items: center;
}

.cart-header h2 { margin: 0; }

.cart-close {
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
}

.cart-address {
padding: 10px;
background: rgba(255,255,255,0.05);
font-size: 0.8rem;
}

.cart-address strong { display: block; margin-bottom: 5px; }

.link-modify {
color: var(--primary);
font-weight: bold;
text-decoration: none;
}

.cart-items {
flex: 1;
overflow-y: auto;
padding: 15px;
}

.cart-empty {
text-align: center;
color: #888;
}

.checkout-form {
display: none;
padding: 15px;
background: #1a1a1d;
border-top: 1px solid #333;
}

.checkout-form h4 { margin-top: 0; }

.checkout-form input {
width: 100%;
margin-bottom: 10px;
padding: 12px;
border-radius: 8px;
border: none;
}

.payment-options {
background: rgba(255,255,255,0.05);
padding: 10px;
border-radius: 8px;
margin-bottom: 15px;
}

.payment-options p {
font-size: 0.8rem;
color: #888;
margin-bottom: 8px;
}

.payment-options label {
display: block;
margin-bottom: 10px;
}

.btn-back {
background: none;
border: none;
color: #888;
width: 100%;
margin-top: 10px;
cursor: pointer;
}

.cart-footer {
padding: 20px;
background: #0d0d0f;
border-top: 1px solid #333;
}

.cart-total {
display: flex;
justify-content: space-between;
margin-bottom: 15px;
font-weight: bold;
}

.ploupy-alert {
display: none;
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
width: 90%;
max-width: 350px;
background: #9e005d;
color: white;
padding: 15px;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
z-index: 2000;
border: 2px solid white;
text-align: center;
animation: slideDown 0.4s ease-out;
}

.ploupy-alert .alert-icon {
font-size: 1.5rem;
margin-bottom: 10px;
}

.ploupy-alert button {
margin-top: 15px;
background: white;
color: #9e005d;
border: none;
padding: 8px 20px;
border-radius: 20px;
font-weight: 900;
cursor: pointer;
text-transform: uppercase;
font-size: 0.8rem;
}

/* ============================================
CONTRÔLES DE QUANTITÉ - STYLE PLOUPY NÉON
============================================ */

/* --- DANS LE PANIER (cart-drawer) --- */
.item-qty-controls {
display: flex;
align-items: center;
gap: 8px;
background: rgba(0,0,0,0.3);
padding: 4px;
border-radius: 25px;
border: 1px solid rgba(158, 0, 93, 0.3);
}

.qty-btn {
width: 28px;
height: 28px;
border-radius: 50%;
border: none;
background: linear-gradient(135deg, var(--primary) 0%, var(--primaryb) 100%);
color: white;
font-size: 1rem;
font-weight: 900;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(158, 0, 93, 0.4);
transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
position: relative;
overflow: hidden;
}

.qty-btn:active {
transform: scale(0.85);
box-shadow: 0 1px 4px rgba(158, 0, 93, 0.3);
}

.qty-btn:disabled {
background: linear-gradient(135deg, #444 0%, #555 100%);
cursor: not-allowed;
opacity: 0.5;
box-shadow: none;
}

.qty-btn::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(255,255,255,0.3);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.3s, height 0.3s;
}

.qty-btn:active::after {
width: 100%;
height: 100%;
}

.item-qty-controls span {
min-width: 24px;
text-align: center;
font-weight: 800;
font-size: 0.95rem;
color: white;
text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* --- DANS LES CARTES PRODUITS --- */
.product-card .qty-wrapper {
display: flex;
align-items: center;
justify-content: center;

margin-top: min(1vh,1vw);
opacity: 0;
transform: translateY(-10px);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
height: 0;
overflow: hidden;
}

.product-card.in-cart .qty-wrapper {
display: flex !important;
opacity: 1;
transform: translateY(0);
height: auto;
margin-top: min(1vh,1vw);
animation: slideUpFade 0.3s ease;
}

.product-card.in-cart .add-btn {
display: none !important;
}

.product-card .qty-wrapper .qty-btn {
width: min(5vh,5vw);
height: min(5vh,5vw);
font-size:min(5vh,5vw);
}

.product-card .qty-badge {
position: absolute;
top: -8px;
right: -8px;
background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
color: #000;
font-size: 0.65rem;
font-weight: 900;
min-width: 18px;
height: 18px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--dark-bg);
box-shadow: 0 2px 8px rgba(0, 229, 255, 0.4);
animation: badgePop 0.3s ease;
z-index: 10;
}

@keyframes badgePop {
0% { transform: scale(0); }
50% { transform: scale(1.3); }
100% { transform: scale(1); }
}

.product-card .add-btn-wrapper {
position: relative;
display: inline-block;
}

/* Animation d'entrée des contrôles */
@keyframes slideUpFade {
from {
opacity: 0;
transform: translateY(15px);
}
to {
opacity: 1;
transform: translateY(0);
}
}


/* Effet pulse sur le bouton + quand ajout */
.qty-btn.pulse-ring {
animation: pulseRing 0.4s ease;
}

@keyframes pulseRing {
0% { box-shadow: 0 0 0 0 rgba(158, 0, 93, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(158, 0, 93, 0); }
100% { box-shadow: 0 0 0 0 rgba(158, 0, 93, 0); }
}

.price{
font-size:min(4vh,4vw);
font-weight: 900;
color:rgb(200,200,0);

}


.add-btn {
width: min(10vh,10vw);
height: min(10vh,10vw);
border-radius: 50%;
background: var(--primary);
color: white;
border: 2px solid white;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
margin:min(1vh,1vw);
font-size:min(3.6vh,3.6vw);
font-weight: 900;
}


.price-row {
z-index: 100;
justify-content: center;
align-items: center;
}

.qty-wrapper {
background: rgba(0,0,0,0.5);
padding: min(4vh,4vw);
align-items: center;
gap: 10px;
}


.ploupy-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Segoe UI', Roboto, sans-serif;
}

.modal-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(5px);
animation: fadeIn 0.3s ease;
}

.modal-container {
position: relative;
width: 90%;
max-width: 420px;
background: linear-gradient(145deg, #1b2933 0%, #0d0d0f 100%);
border-radius: 20px;
border: 2px solid var(--primary, #9e005d);
box-shadow:
0 25px 50px rgba(0, 0, 0, 0.8),
0 0 30px rgba(158, 0, 93, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
overflow: hidden;
animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
max-height: 90vh;
overflow-y: auto;
}

/* Header */
.modal-header {
background: linear-gradient(135deg, var(--primary, #9e005d) 0%, rgba(208, 50, 143, 0.8) 100%);
padding: 25px 20px;
text-align: center;
position: relative;
}

.modal-icon {
width: 60px;
height: 60px;
background: rgba(255, 255, 255, 0.15);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 15px;
border: 3px solid rgba(255, 255, 255, 0.3);
animation: pulseRing 2s infinite;
}

.modal-icon svg {
width: 32px;
height: 32px;
fill: white;
}

.modal-title {
color: white;
font-size: 1.3rem;
font-weight: 900;
margin: 0;
text-transform: uppercase;
letter-spacing: 2px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Content */
.modal-content {
padding: 25px 20px;
}

.modal-desc {
color: #ccc;
font-size: 0.95rem;
line-height: 1.5;
margin: 0 0 20px 0;
text-align: center;
}

.modal-desc strong {
color: var(--primaryb, #d0328f);
}

/* Récapitulatif */
.order-summary {
background: rgba(0, 0, 0, 0.3);
border-radius: 12px;
padding: 15px;
margin-bottom: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row:last-child {
border-bottom: none;
}

.summary-row span:first-child {
color: #888;
font-size: 0.9rem;
}

.summary-total {
color: #00e5ff;
font-size: 1.4rem;
font-weight: 900;
text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.summary-payment {
color: #fff;
font-weight: 600;
}

/* Section légale */
.legal-section {
margin-top: 20px;
}

/* Checkbox custom */
.checkbox-container {
display: flex;
align-items: flex-start;
gap: 12px;
cursor: pointer;
padding: 15px;
background: rgba(158, 0, 93, 0.1);
border-radius: 10px;
border: 2px solid rgba(158, 0, 93, 0.3);
transition: all 0.3s ease;
}

.checkbox-container:hover {
background: rgba(158, 0, 93, 0.15);
border-color: rgba(158, 0, 93, 0.5);
}

.checkbox-container input {
display: none;
}

.checkmark {
width: 24px;
height: 24px;
min-width: 24px;
background: rgba(255, 255, 255, 0.1);
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
margin-top: 2px;
}

.checkmark::after {
content: '✓';
color: white;
font-size: 14px;
font-weight: 900;
opacity: 0;
transform: scale(0);
transition: all 0.2s ease;
}

.checkbox-container input:checked + .checkmark {
background: var(--primary, #9e005d);
border-color: var(--primary, #9e005d);
box-shadow: 0 0 15px rgba(158, 0, 93, 0.5);
}

.checkbox-container input:checked + .checkmark::after {
opacity: 1;
transform: scale(1);
}

.checkbox-text {
color: #ddd;
font-size: 0.9rem;
line-height: 1.4;
}

.checkbox-text strong {
color: var(--primaryb, #d0328f);
}

.cgv-link {
color: #00e5ff;
text-decoration: underline;
transition: color 0.3s;
}

.cgv-link:hover {
color: #fff;
}

/* Notice légale */
.legal-notice {
margin: 15px 0 0 0;
padding: 12px;
background: rgba(255, 0, 0, 0.1);
border-left: 4px solid #ff4444;
border-radius: 0 8px 8px 0;
color: #ff8888;
font-size: 0.8rem;
line-height: 1.4;
}

.legal-notice strong {
color: #ff4444;
}

/* Footer */
.modal-footer {
display: flex;
gap: 12px;
padding: 20px;
background: rgba(0, 0, 0, 0.3);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary, .btn-primary {
flex: 1;
padding: 15px 20px;
border-radius: 12px;
font-size: 0.9rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 1px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
border: none;
}

.btn-secondary {
background: rgba(255, 255, 255, 0.1);
color: #888;
border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
background: rgba(255, 255, 255, 0.15);
color: #fff;
transform: translateY(-2px);
}

.btn-primary {
background: linear-gradient(135deg, var(--primary, #9e005d) 0%, var(--primaryb, #d0328f) 100%);
color: white;
box-shadow: 0 4px 15px rgba(158, 0, 93, 0.4);
position: relative;
overflow: hidden;
}

.btn-primary::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
transition: left 0.5s;
}

.btn-primary:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(158, 0, 93, 0.6);
}

.btn-primary:hover:not(:disabled)::before {
left: 100%;
}

.btn-primary:disabled {
background: linear-gradient(135deg, #444 0%, #555 100%);
cursor: not-allowed;
opacity: 0.5;
box-shadow: none;
}

/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes slideUp {
from {
opacity: 0;
transform: translateY(50px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

@keyframes pulseRing {
0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
50% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
}

/* Responsive */
@media (max-width: 380px) {
.modal-container {
width: 95%;
margin: 10px;
}

.modal-title {
font-size: 1.1rem;
}

.modal-footer {
flex-direction: column;
}

.btn-secondary, .btn-primary {
width: 100%;
}
}

/* Focus visible pour accessibilité */
.checkbox-container:focus-within {
outline: 2px solid var(--primaryb, #d0328f);
outline-offset: 2px;
}

.btn-secondary:focus-visible,
.btn-primary:focus-visible {
outline: 3px solid var(--primaryb, #d0328f);
outline-offset: 2px;
}

/* Force le dropdown Google Places au-dessus de la modale */
.pac-container {
z-index: 10000 !important;
border-radius: 8px;
margin-top: 5px;
box-shadow: 0 5px 20px rgba(0,0,0,0.5);
border: 1px solid var(--primary);
background: #1a1a1d;
}

.pac-item {
color: white;
padding: 10px;
cursor: pointer;
border-bottom: 1px solid #333;
}

.pac-item:hover {
background: rgba(158, 0, 93, 0.2);
}

.pac-item-query {
color: var(--primaryb);
font-weight: bold;
}

.pac-matched {
color: white;
font-weight: bold;
}