@charset "UTF-8";
body {
	touch-action: manipulation; 
	padding-block-end: 8.8rem;
}
/* galleryView */
#galleryView {
	display: grid;
	gap: var(--space);
	grid-template-columns: repeat(2, 1fr);
	padding: var(--space);
}
.posterCard {
	-webkit-tap-highlight-color: transparent;
	background: var(--color-surface);
	border-radius: 12px;
	cursor: pointer;
	overflow: hidden;
}
.posterCard .__add {
	background-color: var(--color-accent);
	border-radius: 100vw;
	color: var(--color-accent-contrast);
	height : 4rem;
	font-size: var(--text-form);
	padding-inline: 2ch;
}
.posterCard .__cart {
	align-items: center;
	display: grid;
	grid-template-columns: 1fr auto;
	padding: var(--space-s);
}
.posterCard .__description {
	color: var(--color-content-subtle);
	font-size: var(--text-s);
}
.posterCard .__figure {
	/*aspect-ratio: 1 / 1.414;*/
	aspect-ratio: 1 / 1.1;
	position: relative; 
	overflow: hidden;
	width: 100%;
}
.posterCard .__figure img {
	height: 100%;
	object-fit: cover; 
	transform: scale(1.6);
	width: 100%;
}

.posterCard .__info {
	padding: var(--space-s);
}
.posterCard .__name {
	font-size: var(--text);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width:100%;
}
.posterCard .œButton {
	padding-block: 4px;
}
.posterCard .__price {
	font-size: var(--text);
	font-weight: 600;
}
/* utilities */
.hidden {
	display: none !important;
}
/* */
#notification {
	display: none;
}
/* nav item*/
#tabBar {
	-webkit-backdrop-filter: blur(15px);
	align-items: center;
	background: rgba(25, 25, 25, 0.8);
	backdrop-filter: blur(15px);
	border-top: 1px solid rgba(255,255,255,0.1);
	bottom: 0;
	display: flex;
	left: 0;
	padding-block: var(--space-s);
	position: fixed;
	width: 100%;
	z-index: 1000;
}
.navItem{
	align-items: center;
	color: rgba(255,255,255,0.5);
	display: flex;
	flex: 1;
	flex-direction: column;
	position: relative;
	transition: 0.4s;
}
.navItem.active {
	color: white;
	transform: scale(1.1);
}
.navItem > .__label {
	padding-block-start: var(--space-xxs);
}

/* */
.navItem .__icon {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	position: relative;
}
.navItem .__icon[data-badge]::after {
	background-color: var(--color-accent);
	border-radius: 10px;
	color: var(--color-accent-contrast);
	content: attr(data-badge);
	font-size: var(--text-xs);
	font-weight: bold;
	inset: -4px -8px auto auto;
	line-height: 1;
	padding: .5ch 1ch;
	position: absolute;
	text-align: center;
	transition: opacity 0.2s ease,
				transform 0.2s ease;
	z-index: 2;
}

.navItem .__icon[data-badge="0"]::after {
	opacity: 0;
	pointer-events: none;
	transform: scale(0);
}
/* PROMO*/
#deal del {
	text-decoration: line-through;
}
#deal {
	align-items: center;
	display: flex;
	flex-direction: column;
	font-weight: bold;
	justify-content: center;
	padding: var(--space-s) var(--space);
	position: sticky;
	text-align: center;
	inset: 0 0 auto 0;
	transition: 0.5s;
	z-index: 100;
}
#deal .__content {
	display: flex;
	flex-direction: column;

}
#deal .__event {
	color: #E4AB18;
	font-size: var(--text-s);
}
#deal .__product {
	font-size: var(--text);
	font-weight: 600;
}
#deal .__product strong {
	color: #E4AB18;
	font-size: 1.2em;
	font-weight: 900;
}
#deal[data-urgency="critical"] {
	background: #C92A47;
}
#deal .__timer  {
	background: #E4AB18;
	font-size: var(--text-s);
	margin-block-start: var(--space-xs);
	padding: 1ch;
}


/* Architecture œButton spécifique au mobile-first */
.œButton.--quickAdd {
	--size: 44px; /* Taille tactile idéale pour mobile */
	--transition-speed: 0.5s;
	--timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Effet rebond */

	position: relative;
	width: var(--size);
	height: var(--size);
	padding: 0;
	border: none;
	border-radius: 8px; /* On reste sur des angles légers pour le côté moderne */
	background-color: #ff5722;
	cursor: pointer;
	overflow: hidden;
	transition: background-color 0.4s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Conteneur des symboles */
.œButton.--quickAdd .symbols {
	position: relative;
	width: 32px;
	height: 32px;
}

/* Gestion des symboles internes */
.œButton.--quickAdd svg {
	position: absolute;
	top: 0;
	left: 0;
	color: white;
	transition: transform var(--transition-speed) var(--timing-function), 
				opacity var(--transition-speed) ease;
}

/* État initial : Confirm est en bas */
.œButton.--quickAdd .---confirm {
	width: 32px;
	height: 32px;
	opacity: 0;
	transform: translateY(20px);
	scale: 0.64;
}

/* --- LOGIQUE D'ÉTAT (Data-Attribute) --- */

.œButton.--quickAdd[data-state="added"] {
	background-color: #2ecc71; /* Vert de succès */
}

.œButton.--quickAdd[data-state="added"] .---lead {
	opacity: 0;
	transform: translateY(-20px); /* Le sac s'envole */
}

.œButton.--quickAdd[data-state="added"] .---confirm {
	opacity: 1;
	transform: translateY(0); /* Le check arrive */
}

/* Feedback tactile mobile (appui long ou clic) */
.œButton.--quickAdd:active {
	transform: scale(0.9);
}
/* CART */
#cartView h2,
#cartView legend {
	border-bottom: .1rem solid rgba(255, 255, 255, 0.1);
	font-size: var(--text-xl);
	font-weight: 600;
	margin-block-end: var(--space);
	padding-block-end: var(--space);
}
/*
#cart-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--light);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}
*/
.cartItemRow {
	align-items: start;
	border-bottom: 1px solid #333;
	/*display: flex;
	justify-content: space-between;*/
	display: grid;
	grid-template-columns: 1fr auto 8rem;
	padding-block: var(--space);
}
.cartItemRow .__controls {
	align-self: center;
	align-items: center;
	background-color: var(--color-surface);
	border-radius: 100vw;
	display: flex;
	flex-direction: row;
	font-size: var(--text);
	height: 4rem;
}
.cartItemRow .__controls button {
	align-items: center;
	aspect-ratio: 1;
	display: grid;
	font-size: var(--text-xl);
	height: 4rem;
	justify-content: center;
	width: 4rem;
}
.cartItemRow .__controls button svg {
	height: 16px;
	width: 16px;
}
.cartItemRow .__info{
	display: flex;
	flex-direction: column;
}
.cartItemRow .__info [data-field="name"] {
	font-size: var(--text);
	font-weight: 600;
}
.cartItemRow .__info [data-field="desc"] {
	color: var(--color-content-subtle);
	font-size: var(--text-s);
}
.cartItemRow [data-field="total"] {
	font-size: var(--text);
	font-weight: 600;
	text-align: right;
}
.cartItemRow .__price {
	display: none;
}
#checkoutSection {
	margin-block-start: var(--space-xl);
}
/* emptyCart */
#emptyCart{
	padding: var(--space-xl) var(--space);
	text-align: center;
}
#emptyCart p {
	font-size: var(--text-s);
	margin-block-end: var(--space-xxl);
	margin-block-start: var(--space);
}
#emptyCart svg {
	height: 12.8rem;
	width: 12.8rem;
}
/* */
.radio-tile {
	background-color: var(--color-surface);
	border-radius: .8rem;
	border: .2rem solid transparent;
	display: block;
	font-size: var(--text-form);
	margin-block-end: var(--space-s);
	transition: 0.2s;
	/*
	display: block;
	position: relative;
	background: #252525;
	margin-bottom: 10px;
	border-radius: 8px;
	border: 2px solid transparent;
	transition: 0.2s;
	*/
}

.radio-tile input {
	opacity: 0;
	position: absolute;
}
.radio-tile .__content {
	border-radius: .8rem;
	border: .2rem solid transparent;
	display: flex;
	flex-direction: column;
	padding: var(--space);
}
.radio-tile .__content span {
	color: var(--color-content-muted);
}
.radio-tile .__content strong {
	font-weight: 600;
}
.radio-tile input:checked + .__content {

	border-color:var(--color-accent);
	/*border-radius: .8rem;*/
}

/* */
fieldset {
	margin-block-end: var(--space-xl);

}
legend {
	/*color: var(--color-accent);*/
	font-size: var(--text-l);
	/*font-weight: bold;*/
	/*margin-block-end: var(--space);*/
}
#cartView {
	max-width: 100%;
}
#cartView legend {
	border-bottom: .1rem solid rgba(255, 255, 255, 0.1);
	display:block;
	font-size: var(--text-l);
	font-weight: 600;
	margin-block-end: var(--space);
	padding-block-end: var(--space);
	width: 100%;
}
/* */
#user {
	display: grid;
}
#user input {
	background: var(--color-surface);
	border: .1rem solid #444;
	border-radius: .8rem;
	box-sizing: border-box !important;
	color: white;
	display:block;
	font-size: var(--text-form);
	margin-block-end: var(--space-s);
	outline-offset: -1px;
	padding: var(--space);
	
}
/* */
dialog {
	border: none;
	border-radius: 1.6rem;
	background: var(--color-surface);
	color: var(--color-content);
	max-width: 450px;
	overflow: visible; 
	padding: 0;
	width: 88%;
}

dialog::backdrop {
	-webkit-backdrop-filter: blur(5px);
	background: rgba(0,0,0,0.8);
	backdrop-filter: blur(5px);
}

dialog .__content {
	/*padding: var(--space);*/
	position: relative;
}
dialog .__dismiss {
	align-items: center;
	background-color: #000000;
	/*box-shadow: 0 4px 10px rgba(0,0,0,0.3);*/
	/*border: 3px solid #252525; */
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	font-size: 24px;
	height: 40px;
	line-height: 1;
	justify-content: center;
	position: absolute;
	right: -15px;
	top: -15px;
	width: 40px;
	z-index: 100;
}

.posterDetails {
	--foo: bar;
}
.posterDetails .__controls {
	padding-block-end: var(--space-l);
	padding-inline: var(--space);
}
.posterDetails .__controls button{
	font-weight: bold;
	min-height: 5.6rem;
}
.posterDetails .__figure {
	background-color: #A6532E;
	border-start-start-radius: .8rem;
	border-start-end-radius: .8rem;
	padding: var(--space-l);
}
.posterDetails .__figure img{
	margin-inline: auto;
	max-width: 64%;
	filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.3));
}
.posterDetails .__header {
	align-items:start;
	display:grid;
	grid-template-columns:1fr auto;
	margin-block-start: var(--space);
	padding: var(--space);
}
.posterDetails .__header [data-field="current"] {
	font-size: var(--text-l);
	font-weight: 600;
	text-align: right;
}
.posterDetails .__header [data-field="name"]{
	font-size: var(--text-l);
	font-weight: 600;
}
.posterDetails .__header [data-field="original"]{
	color: var(--color-content-muted);
	font-size: var(--text-s);
	text-align: right;
	text-decoration-line: line-through;
}
.posterDetails .__header [data-field="description"] {
	color: var(--color-content-muted);
	color: #C5C5C5;
	font-size: var(--text-s);
	font-weight: 400;
}
.posterDetails .__specifications {
	margin-block-end: calc(var(--space-xl) + var(--space-xs));
	margin-block-end: var(--space-xxl);
}
.posterDetails .__specifications header {
	display: none;
}
.posterDetails .__specifications dl {
	column-gap: var(--space);
	display: grid;
	grid: auto / auto-flow max-content;
	isolation: isolate;
	max-width: 100vw;
	overflow-x: scroll;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	padding-inline: var(--space);
	position: relative;
	scrollbar-width: none;

	&::-webkit-scrollbar
	{
		display: none;
	}
}
.posterDetails .__specifications dl > div {
	background-color: var(--color-background);
	border-radius: .8rem;
	display: block;
	font-size: var(--text-s);
	padding-block: var(--space);
	padding-inline: var(--space-l);
}
.posterDetails .__specifications dt {
	color: var(--color-content-muted);
	display: block;
	font-size: var(--text-s);
	font-weight: 600;
	text-transform: uppercase;
}
.posterDetails .œButton.--primary{
	width: 100%;
}
/* */
#summaryActionBar button {
	font-weight: bold;
	height: 5.6rem;
	width: 100%;
}

.summaryTotalRow {
	align-items: center;
	display: flex;
	font-size: 18px;
	justify-content: space-between;
	/*margin-bottom: 20px;*/
	margin-block: var(--space) var(--space-xl);
}

.summaryTotalRow span {
	color: #a0a0a0;
}

.summaryTotalRow strong {
	color: var(--light);
	font-size: var(--text);
	font-weight: 600;
	text-align: right;
}

/* */
.paymentTrustLabel {
    text-align: center;
    font-size: 12px;
    color: #888888; /* Gris discret */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.paymentTrustLabel span {
    font-size: 10px; /* Le cadenas un poil plus petit */
}
/* */
.totalBar .œButton {
	background: #059669;
	width: 100%;
	height: 5.6rem;
}

/* */
#infoView {
	padding-inline: var(--space);
}
#infoView h2 {
	border-bottom: .1rem solid rgba(255, 255, 255, 0.1);
	font-size: var(--text-xl);
	font-weight: 600;
	margin-block-end: var(--space);
	padding-block-end: var(--space);
}
#infoView h3 {
	font-size: var(--text-l);

}
#infoView p {
	font-size: var(--text);
	line-height: 1.5em;
	margin-block-end: var(--space);
}
/* */
article#info-produit {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 16px 100px 16px; /* Espace en bas pour ne pas être caché par la barre de navigation */
}

/* --- Titres --- */
article#info-produit h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 12px;
}

article#info-produit h3 {
    font-size: 16px;
    font-weight: 600;
    color: #cbd5e1; /* Couleur légèrement plus douce pour les sous-titres */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 32px;
    margin-bottom: 12px;
}

/* --- Paragraphes (Conception) --- */
article#info-produit p {
    font-size: 14px;
    color: #94a3b8; /* Gris texturé élégant pour le corps de texte */
    margin-bottom: 16px;
}

article#info-produit p strong {
    color: #ffffff; /* Ressort particulièrement bien sur le texte gris */
    font-weight: 600;
}

/* --- Listes (Caractéristiques & Entretien) --- */
article#info-produit ul {
    list-style: none; /* On enlève les puces basiques de navigateur */
    padding: 0;
    margin: 0 0 24px 0;
}

article#info-produit ul li {
    font-size: 14px;
    color: #cbd5e1;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

/* Ajout d'une puce discrète et élégante en CSS */
article#info-produit ul li::before {
    content: "•";
    color: #e2e8f0; /* Couleur de la puce */
    font-weight: bold;
    position: absolute;
    left: 4px;
    top: 0;
}

/* --- Optimisation des labels pour les caractéristiques --- */
article#info-produit ul li strong {
    color: #94a3b8;
    font-weight: 500;
    display: inline-block;
    min-width: 120px; /* Aligne proprement les valeurs (Format, Support, etc.) */
}
/* */
/* --- Style de la liste de caractéristiques --- */
.specs-list {
    display: grid;
    grid-template-columns: 100px 1fr; /* Aligne tous les DD à exactement 100px du bord gauche */
    gap: 12px 16px; /* Espace de 12px entre les lignes, 16px entre le titre et la valeur */
    margin: 0 0 32px 0;
    font-size: 14px;
}

.specs-list dt {
    color: #94a3b8; /* Gris plus discret pour les labels (Format, Support...) */
    font-weight: 500;
}

.specs-list dd {
    color: #cbd5e1; /* Blanc/Gris clair pour les valeurs */
    margin: 0; /* On annule la marge par défaut des navigateurs sur le <dd> */
    font-weight: 400;
}

/* */
@media (prefers-color-scheme: light) {
    #orderForm input::placeholder {
        color: #666666 !important; /* Un gris soutenu très lisible sur fond blanc/clair */
        opacity: 1; /* Force iOS Safari à appliquer la couleur à 100% */
    }

    #orderForm input {
        color: #111111 !important; /* Force le texte tapé par l'utilisateur à être bien noir */
        border-color: rgba(0, 0, 0, 0.2) !important; /* Donne une bordure subtile mais visible au champ */
        background-color: #ffffff !important; /* Assure un fond bien blanc pour le contraste */
    }
}

/* Si tu gères le mode clair via une classe spécifique sur le body (ex: <body class="light">) */
body.light #orderForm input::placeholder {
    color: #666666 !important;
    opacity: 1;
}
body.light #orderForm input {
    color: #111111 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    background-color: #ffffff !important;
}
/* */
@media (prefers-color-scheme: light) {
    article#info-produit h2 {
        color: #1a202c !important; /* Un presque noir très élégant */
        border-bottom-color: #e2e8f0 !important; /* Ligne de séparation plus douce */
    }

    article#info-produit h3 {
        color: #4a5568 !important; /* Gris foncé texturé pour les sous-titres */
    }

    article#info-produit p {
        color: #4a5568 !important; /* Corps de texte très lisible */
    }

    article#info-produit p strong {
        color: #1a202c !important; /* Les textes importants ressortent en noir */
    }

    article#info-produit ul li {
        color: #4a5568 !important;
    }

    article#info-produit ul li::before {
        color: #4a5568 !important; /* Puces coordonnées au texte */
    }

    article#info-produit ul li strong {
        color: #718096 !important; /* Les labels (Format, Support...) en gris moyen */
    }
    
    /* Si tu as gardé la balise <dl> pour les caractéristiques */
    article#info-produit dl.specs-list dt {
        color: #718096 !important;
    }
    article#info-produit dl.specs-list dd {
        color: #1a202c !important;
    }
}

/* 2. Si bascule via une classe .light sur le body */
body.light article#info-produit h2 { color: #1a202c !important; border-bottom-color: #e2e8f0 !important; }
body.light article#info-produit h3 { color: #4a5568 !important; }
body.light article#info-produit p { color: #4a5568 !important; }
body.light article#info-produit p strong { color: #1a202c !important; }
body.light article#info-produit ul li { color: #4a5568 !important; }
body.light article#info-produit ul li::before { color: #4a5568 !important; }
body.light article#info-produit ul li destruction { color: #718096 !important; }
body.light article#info-produit dl.specs-list dt { color: #718096 !important; }
body.light article#info-produit dl.specs-list dd { color: #1a202c !important; }
