/*!
Theme Name: 20 Grammes d\'Ame
Theme URI: http://underscores.me/
Author: Maxime ROLLIER
Author URI: http://underscores.me/
Description: 20 Grammes d\'Ame
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: grammesdame
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

20 Grammes d\'Ame is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #47382A;
	text-decoration: none !important;
}

a:visited {
	color: #47382A;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/*--------------------------------------------------------------
# Mobile Menu - Menu Mobile Moderne
--------------------------------------------------------------*/

/* Bouton Hamburger */
.hamburger-btn {
	display: flex !important;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	width: 2.5rem;
	height: 2.5rem;
	background: transparent;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 40;
	position: relative;
	transition: z-index 0.3s ease;
}

.hamburger-btn.is-active {
	z-index: 45;
}

.hamburger-line {
	width: 1.75rem;
	height: 0.2rem;
	background-color: #695C4E;
	border-radius: 2px;
	transition: all 0.3s ease;
	position: relative;
	transform-origin: center;
	display: block;
}

.hamburger-btn.is-active .hamburger-line:first-child {
	transform: translateY(0.5rem) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
	transform: translateY(-0.5rem) rotate(-45deg);
}

/* Overlay sombre */
.mobile-menu-overlay {
	backdrop-filter: blur(2px);
	z-index: 45;
}

.mobile-menu-overlay.is-visible {
	opacity: 1 !important;
	visibility: visible !important;
	z-index: 45;
}

/* Menu mobile slide-in */
.mobile-menu {
	display: flex;
	flex-direction: column;
	scrollbar-width: thin;
	scrollbar-color: rgba(105, 92, 78, 0.3) transparent;
	z-index: 50;
	transform: translateX(100%);
	will-change: transform;
}

.mobile-menu::-webkit-scrollbar {
	width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
	background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
	background-color: rgba(105, 92, 78, 0.3);
	border-radius: 3px;
}

.mobile-menu.is-open {
	transform: translateX(0) !important;
	z-index: 50;
}

.mobile-menu .flex.flex-col.h-full {
	scroll-behavior: smooth;
}

/* Header du menu mobile */
.mobile-menu > div > div:first-child {
	position: sticky;
	top: 0;
	background-color: #F4EFEA;
	z-index: 10;
	backdrop-filter: blur(10px);
}

.mobile-menu-close {
	-webkit-tap-highlight-color: transparent;
	min-width: 2.5rem;
	min-height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.5rem;
}

.mobile-menu-close:active {
	background-color: rgba(105, 92, 78, 0.1);
	transform: scale(0.95);
}

/* Footer du menu mobile */
.mobile-menu > div > div:last-child {
	position: sticky;
	bottom: 0;
	background-color: #F4EFEA;
	z-index: 10;
	backdrop-filter: blur(10px);
}

.mobile-menu > div > div:last-child a {
	-webkit-tap-highlight-color: transparent;
	min-height: 3rem;
	padding: 0.875rem 1rem;
	border-radius: 0.5rem;
}

.mobile-menu > div > div:last-child a:active {
	background-color: rgba(105, 92, 78, 0.1);
	transform: scale(0.98);
}

/* Navigation mobile */
.mobile-nav-menu {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.mobile-nav-menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	color: #695C4E;
	text-decoration: none;
	font-size: 1.125rem;
	font-weight: 500;
	border-radius: 0.75rem;
	transition: all 0.2s ease;
	background-color: transparent;
	min-height: 3.5rem;
	-webkit-tap-highlight-color: transparent;
}

.mobile-nav-menu > li > a:active {
	transform: scale(0.98);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus {
	background-color: rgba(105, 92, 78, 0.1);
	color: #897967;
	text-decoration: none;
	outline: none;
}

.mobile-nav-menu .current-menu-item > a,
.mobile-nav-menu .current_page_item > a {
	background-color: rgba(105, 92, 78, 0.15);
	color: #695C4E;
	font-weight: 600;
}

/* Sous-menus dans le menu mobile */
.mobile-nav-menu .sub-menu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	padding-left: 0;
	margin: 0;
	background-color: rgba(105, 92, 78, 0.05);
	border-radius: 0.5rem;
	margin-top: 0.5rem;
}

.mobile-nav-menu .sub-menu-open .sub-menu {
	max-height: 500px;
	transition: max-height 0.4s ease-in;
}

.mobile-nav-menu .sub-menu li {
	margin: 0;
}

.mobile-nav-menu .sub-menu a {
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 400;
	min-height: 3rem;
	-webkit-tap-highlight-color: transparent;
}

.mobile-nav-menu .sub-menu a:active {
	transform: scale(0.98);
}

.mobile-nav-menu .menu-item-has-children > a::after {
	content: '+';
	font-size: 1.5rem;
	font-weight: 300;
	transition: transform 0.3s ease;
}

.mobile-nav-menu .sub-menu-open > a::after {
	content: '−';
	transform: rotate(0deg);
}

/* Desktop menu - cacher le menu mobile */
@media screen and (min-width: 768px) {
	.hamburger-btn,
	.mobile-menu,
	.mobile-menu-overlay {
		display: none !important;
	}

	.main-navigation {
		display: flex !important;
	}
	
	.main-navigation .nav-menu {
		display: flex !important;
	}
}

/* Small menu - ancien système (pour compatibilité) */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {
	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# WooCommerce Single Product - Styles minimaux pour la galerie
--------------------------------------------------------------*/

/* Styles minimaux uniquement pour la galerie WooCommerce */
.woocommerce-product-gallery__image {
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #f5f5f5;
	margin-bottom: 1rem;
}

.woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
	margin-top: 1rem;
}

.flex-control-thumbs li {
	list-style: none;
	cursor: pointer;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #f5f5f5;
}

.flex-control-thumbs li img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li:hover img {
	opacity: 1;
}

/*--------------------------------------------------------------
# Tailwind Borders Fix
--------------------------------------------------------------*/
/* S'assurer que les bordures Tailwind fonctionnent même avec preflight désactivé */
/* Ne définir le style que pour les bordures spécifiques */
.border-t {
	border-top-style: solid !important;
	border-right-style: none !important;
	border-bottom-style: none !important;
	border-left-style: none !important;
}

.border-b {
	border-top-style: none !important;
	border-right-style: none !important;
	border-bottom-style: solid !important;
	border-left-style: none !important;
}

.border-l {
	border-top-style: none !important;
	border-right-style: none !important;
	border-bottom-style: none !important;
	border-left-style: solid !important;
}

.border-r {
	border-top-style: none !important;
	border-right-style: solid !important;
	border-bottom-style: none !important;
	border-left-style: none !important;
}

.border-x {
	border-top-style: none !important;
	border-right-style: solid !important;
	border-bottom-style: none !important;
	border-left-style: solid !important;
}

.border-y {
	border-top-style: solid !important;
	border-right-style: none !important;
	border-bottom-style: solid !important;
	border-left-style: none !important;
}

.border:not(.border-t):not(.border-b):not(.border-l):not(.border-r):not(.border-x):not(.border-y) {
	border-style: solid !important;
}

/*--------------------------------------------------------------
# WooCommerce Cart Page Styles
--------------------------------------------------------------*/

/* Styles pour les champs de quantité */
.woocommerce-cart-form .quantity input[type="number"] {
	width: 80px;
	padding: 0.5rem;
	text-align: center;
	border: 2px solid #695C4E;
	border-radius: 0.375rem;
	color: #695C4E;
	font-weight: 600;
	background-color: #F4EFEA;
}

.woocommerce-cart-form .quantity input[type="number"]:focus {
	outline: none;
	border-color: #897967;
	box-shadow: 0 0 0 3px rgba(105, 92, 78, 0.1);
}

/* Styles pour les images produits dans le panier */
.woocommerce-cart-form__cart-item .product-thumbnail img {
	border-radius: 0.5rem;
	width: 120px;
	height: 120px;
	object-fit: cover;
}

.woocommerce-cart-form__cart-item .product-thumbnail {
	width: 120px;
	height: 120px;
	flex-shrink: 0;
}

/* Styles pour le bouton "Valider la commande" */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	width: 100%;
	background-color: #897967 !important;
	color: white !important;
	padding: 1rem 2rem;
	border-radius: 0.375rem;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	display: block;
	text-align: center;
	transition: background-color 0.3s ease;
	border: none;
	cursor: pointer;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	background-color: #695C4E !important;
}

/* Styles pour les liens de livraison */
.woocommerce-cart .shipping-calculator-button {
	color: #695C4E;
	text-decoration: underline;
	font-size: 0.875rem;
}

.woocommerce-cart .shipping-calculator-button:hover {
	color: #897967;
}

/* Styles pour les messages d'erreur et de succès dans le panier - Notification toast */
.woocommerce-cart .woocommerce-error,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message {
	position: fixed !important;
	bottom: 2rem !important;
	left: 50% !important;
	transform: translateX(-50%) translateY(100px) !important;
	background-color: #897967 !important;
	color: white !important;
	padding: 1rem 1.5rem !important;
	border-radius: 0.5rem !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	z-index: 99999 !important;
	min-width: 300px !important;
	max-width: 90% !important;
	text-align: center !important;
	font-weight: 500 !important;
	opacity: 0 !important;
	transition: all 0.3s ease-in-out !important;
	margin: 0 !important;
	border: none !important;
	pointer-events: none;
	scroll-margin: 0 !important;
}

.woocommerce-cart .woocommerce-message.show,
.woocommerce-cart .woocommerce-info.show,
.woocommerce-cart .woocommerce-error.show {
	opacity: 1 !important;
	transform: translateX(-50%) translateY(0) !important;
	pointer-events: auto;
}

.woocommerce-cart .woocommerce-error {
	background-color: #dc2626 !important;
}

.woocommerce-cart .woocommerce-info {
	background-color: #3b82f6 !important;
}

.woocommerce-cart .woocommerce-message::before {
	content: '✓';
	margin-right: 0.5rem;
	font-size: 1.2rem;
	display: inline-block;
}

.woocommerce-cart .woocommerce-message a {
	color: white !important;
	text-decoration: underline !important;
}

/* Styles pour le panier vide */
.woocommerce-cart .cart-empty {
	text-align: center;
	padding: 4rem 1rem 2rem;
	background: white;
	border-radius: 0.5rem;
	margin-bottom: 3rem;
}

.woocommerce-cart .cart-empty .woocommerce-info {
	background: transparent !important;
	position: static !important;
	transform: none !important;
	opacity: 1 !important;
	padding: 0 !important;
	margin: 0 0 2rem 0 !important;
	color: #695C4E !important;
	font-size: 1.125rem;
	box-shadow: none !important;
	pointer-events: auto !important;
}

.woocommerce-cart .cart-empty .woocommerce-info::before {
	display: none;
}

.woocommerce-cart .cart-empty .return-to-shop {
	display: inline-block;
	margin-top: 1.5rem;
	background-color: #695C4E;
	color: white;
	padding: 0.875rem 2rem;
	border-radius: 0.5rem;
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
	transition: all 0.3s ease;
	letter-spacing: 0.05em;
}

.woocommerce-cart .cart-empty .return-to-shop:hover {
	background-color: #897967;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(105, 92, 78, 0.3);
}

/* Styles pour les produits cross-sell */
.woocommerce-cart .cross-sells {
	margin-top: 3rem;
	padding: 2rem 0;
}

.woocommerce-cart .cross-sells h2 {
	font-size: 2rem;
	font-weight: bold;
	color: #695C4E;
	margin-bottom: 2rem;
	text-align: center;
}

.woocommerce-cart .cross-sells ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-cart .cross-sells .product {
	background: white;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(105, 92, 78, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-cart .cross-sells .product:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(105, 92, 78, 0.15);
}

.woocommerce-cart .cross-sells .product .woocommerce-loop-product__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.woocommerce-cart .cross-sells .product img {
	width: 100%;
	height: auto;
	display: block;
}

.woocommerce-cart .cross-sells .product .woocommerce-loop-product__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #695C4E;
	margin: 1rem 1rem 0.5rem;
	text-align: center;
}

.woocommerce-cart .cross-sells .product .price {
	font-size: 1.25rem;
	font-weight: bold;
	color: #897967;
	margin: 0.5rem 1rem 1rem;
	text-align: center;
	display: block;
}

.woocommerce-cart .cross-sells .product .button {
	width: calc(100% - 2rem);
	margin: 0 1rem 1rem;
	background-color: #695C4E;
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 0.375rem;
	font-weight: 600;
	text-transform: uppercase;
	transition: background-color 0.3s ease;
	text-align: center;
	display: block;
}

.woocommerce-cart .cross-sells .product .button:hover {
	background-color: #897967;
}

/* Styles pour le champ code promo */
.woocommerce-cart-form .coupon input[type="text"] {
	width: 100%;
}

/* Styles pour la page de confirmation de commande */
.woocommerce-order {
	margin-top: 6rem;
}

.woocommerce-order .woocommerce-order-details {
	margin-top: 2rem;
}

.woocommerce-order .woocommerce-order-details__title {
	font-size: 1.5rem;
	font-weight: bold;
	color: #695C4E;
	margin-bottom: 1.5rem;
}

.woocommerce-order .shop_table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(105, 92, 78, 0.1);
}

.woocommerce-order .shop_table thead {
	background-color: #F4EFEA;
}

.woocommerce-order .shop_table th {
	padding: 1rem;
	text-align: left;
	font-weight: 600;
	color: #695C4E;
	text-transform: uppercase;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
}

.woocommerce-order .shop_table td {
	padding: 1rem;
	border-top: 1px solid #F4EFEA;
	color: #695C4E;
}

.woocommerce-order .shop_table tbody tr:hover {
	background-color: #F4EFEA;
}

.woocommerce-order .shop_table .product-name {
	font-weight: 600;
}

.woocommerce-order .shop_table .product-total {
	font-weight: 600;
	color: #897967;
}

.woocommerce-order .order-again {
	margin-top: 2rem;
	text-align: center;
}

.woocommerce-order .order-again .button {
	background-color: #695C4E;
	color: white;
	padding: 0.875rem 2rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.woocommerce-order .order-again .button:hover {
	background-color: #897967;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(105, 92, 78, 0.3);
}

/* Responsive pour la page de confirmation */
@media (max-width: 768px) {
	.woocommerce-order .shop_table {
		font-size: 0.875rem;
	}
	
	.woocommerce-order .shop_table th,
	.woocommerce-order .shop_table td {
		padding: 0.75rem 0.5rem;
	}
	
	.woocommerce-order .grid {
		grid-template-columns: 1fr;
	}
}

/* Responsive pour le panier */
@media (max-width: 768px) {
	.woocommerce-cart-form__cart-item {
		flex-direction: column;
	}
	
	.woocommerce-cart-form__cart-item .product-thumbnail {
		width: 100%;
		height: auto;
		text-align: center;
	}
	
	.woocommerce-cart-form__cart-item .product-thumbnail img {
		width: 100%;
		max-width: 200px;
		height: auto;
		margin: 0 auto;
	}
	
	.woocommerce-cart-form__cart-item .product-info > div:last-child {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
	
	.woocommerce-cart-form .coupon {
		flex-direction: column;
	}
	
	.woocommerce-cart-form .coupon input[type="text"],
	.woocommerce-cart-form .coupon button {
		width: 100%;
	}
	
	.cart-actions > div {
		flex-direction: column;
	}
	
	.cart-actions > div a,
	.cart-actions > div button {
		width: 100%;
		text-align: center;
	}
}

/*--------------------------------------------------------------
# Animation Flocons de Neige pour "Boutique de Noël"
--------------------------------------------------------------*/

.menu-item-snowflakes {
	position: relative;
	overflow: visible;
}

.snowflakes-container {
	position: absolute;
	top: -120px;
	left: 50%;
	transform: translateX(-50%);
	width: 150px;
	height: 200px;
	overflow: hidden;
	pointer-events: none;
	z-index: -1;
}

.snowflake {
	position: absolute;
	color: #ffffff;
	user-select: none;
	animation: snowfall linear infinite;
	will-change: transform;
	font-size: 20px;
}

@keyframes snowfall {
	0% {
		transform: translateY(-30px) translateX(0) rotate(0deg);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		transform: translateY(120px) translateX(15px) rotate(360deg);
		opacity: 0;
	}
}

/* Responsive : réduire les flocons sur mobile */
@media (max-width: 768px) {
	.snowflakes-container {
		height: 120%;
	}
	
	.snowflake {
		font-size: 16px !important;
	}
}

/*--------------------------------------------------------------
# WooCommerce Pagination
--------------------------------------------------------------*/

.woocommerce-pagination.custom-pagination {
	margin-top: 3rem;
	margin-bottom: 2rem;
	width: 100%;
}

.woocommerce-pagination.custom-pagination .pagination-list,
.woocommerce-pagination .page-numbers.pagination-list,
.woocommerce-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-pagination.custom-pagination .pagination-item,
.woocommerce-pagination li.pagination-item,
.woocommerce-pagination li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination.custom-pagination .pagination-link,
.woocommerce-pagination .page-numbers.pagination-link,
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0.5rem 1rem;
	background-color: #ffffff;
	color: #695C4E;
	border: 1px solid rgba(105, 92, 78, 0.2);
	border-radius: 9999px;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.3s ease;
	cursor: pointer;
}

.woocommerce-pagination.custom-pagination .pagination-link:hover,
.woocommerce-pagination a.page-numbers:hover {
	background-color: #695C4E;
	color: #ffffff;
	border-color: #695C4E;
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(105, 92, 78, 0.2);
	text-decoration: none;
}

.woocommerce-pagination.custom-pagination .pagination-link--current,
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination span.page-numbers.current {
	background-color: #695C4E;
	color: #ffffff;
	border-color: #695C4E;
	cursor: default;
	pointer-events: none;
}

.woocommerce-pagination.custom-pagination .pagination-link--current:hover,
.woocommerce-pagination span.page-numbers.current:hover {
	transform: none;
	box-shadow: none;
	background-color: #695C4E;
	color: #ffffff;
}

.variations {
	text-align: left;
}

.woocommerce-pagination.custom-pagination .pagination-link--dots,
.woocommerce-pagination .page-numbers.dots,
.woocommerce-pagination span.page-numbers.dots {
	background-color: transparent;
	border: none;
	color: #695C4E;
	cursor: default;
	pointer-events: none;
	min-width: auto;
	padding: 0.5rem 0.25rem;
}

.woocommerce-pagination.custom-pagination .pagination-link--dots:hover,
.woocommerce-pagination span.page-numbers.dots:hover {
	background-color: transparent;
	color: #695C4E;
	transform: none;
	box-shadow: none;
}

.woocommerce-pagination.custom-pagination .pagination-link--prev,
.woocommerce-pagination.custom-pagination .pagination-link--next,
.woocommerce-pagination a.page-numbers.prev,
.woocommerce-pagination a.page-numbers.next {
	font-weight: 600;
	padding: 0.5rem 1.25rem;
}

.woocommerce-pagination.custom-pagination .pagination-link--prev:hover,
.woocommerce-pagination.custom-pagination .pagination-link--next:hover,
.woocommerce-pagination a.page-numbers.prev:hover,
.woocommerce-pagination a.page-numbers.next:hover {
	background-color: #897967;
	border-color: #897967;
}

/* Responsive */
@media (max-width: 640px) {
	.woocommerce-pagination.custom-pagination .pagination-list,
	.woocommerce-pagination ul.page-numbers {
		gap: 0.375rem;
	}
	
	.woocommerce-pagination.custom-pagination .pagination-link,
	.woocommerce-pagination a.page-numbers,
	.woocommerce-pagination span.page-numbers {
		min-width: 2.25rem;
		height: 2.25rem;
		padding: 0.375rem 0.75rem;
		font-size: 0.8125rem;
	}
	
	.woocommerce-pagination.custom-pagination .pagination-link--prev,
	.woocommerce-pagination.custom-pagination .pagination-link--next,
	.woocommerce-pagination a.page-numbers.prev,
	.woocommerce-pagination a.page-numbers.next {
		padding: 0.375rem 1rem;
		font-size: 0.75rem;
	}
}

/* WooCommerce Single Product - Bouton d'ajout au panier */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart button.button,
.woocommerce div.product form.cart input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	margin-top: 20px;
	background-color: #695C4E;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 1rem 2.5rem;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 0;
	transition: all 0.3s ease;
	cursor: pointer;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-sizing: border-box;
}

/* Responsive pour mobile */
@media (max-width: 640px) {
	.woocommerce div.product form.cart .button,
	.woocommerce div.product form.cart button.button,
	.woocommerce div.product form.cart input.button,
	.woocommerce div.product form.cart .single_add_to_cart_button {
		padding: 0.875rem 1rem;
		font-size: 0.875rem;
		letter-spacing: 0.02em;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		margin-left: 0;
		margin-right: 0;
	}
	
	/* S'assurer que le conteneur du formulaire ne dépasse pas */
	.woocommerce div.product form.cart {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding: 0;
		margin: 0;
	}
}

button {
	all: unset;
  }

.wc-block-components-button__text {
	background-color: #C79A8B;
	color: white;
	border-radius: 10px;
	padding: 1rem 2.5rem;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.3s ease;
	cursor: pointer;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce div.product form.cart button.button:hover,
.woocommerce div.product form.cart input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background-color: #897967;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(105, 92, 78, 0.3);
}

.woocommerce div.product form.cart .button:active,
.woocommerce div.product form.cart button.button:active,
.woocommerce div.product form.cart input.button:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(105, 92, 78, 0.2);
}

/* Styles pour le sélecteur de quantité */
.woocommerce div.product form.cart .quantity {
	margin-bottom: 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1px solid #695C4E;
	border-radius: 0;
	overflow: hidden;
}

.woocommerce div.product form.cart .quantity input[type="number"] {
	width: 80px;
	height: 48px;
	padding: 0.875rem 0.5rem;
	border: none;
	border-left: 1px solid #695C4E;
	border-right: 1px solid #695C4E;
	border-radius: 0;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	background-color: #ffffff;
	color: #695C4E;
	-moz-appearance: textfield;
	appearance: textfield;
}

.woocommerce div.product form.cart .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce div.product form.cart .quantity input[type="number"]:focus {
	outline: none;
	background-color: #F4EFEA;
}

/* Boutons + et - pour la quantité */
.woocommerce div.product form.cart .quantity .minus,
.woocommerce div.product form.cart .quantity .plus {
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	background-color: #ffffff;
	color: #695C4E;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	flex-shrink: 0;
}

.woocommerce div.product form.cart .quantity .minus:hover,
.woocommerce div.product form.cart .quantity .plus:hover {
	background-color: #695C4E;
	color: #ffffff;
}

.woocommerce div.product form.cart .quantity .minus:active,
.woocommerce div.product form.cart .quantity .plus:active {
	background-color: #897967;
}

/* Style pour le label quantité si présent */
.woocommerce div.product form.cart .quantity label {
	display: none;
}

/* Styles pour la galerie produit */
.woocommerce div.product div.images {
	margin-bottom: 0;
}

.woocommerce div.product div.images img {
	border-radius: 0;
	width: 100%;
	height: auto;
}

/* Responsive pour le bouton */
@media (max-width: 640px) {
	.woocommerce div.product form.cart .button,
	.woocommerce div.product form.cart button.button,
	.woocommerce div.product form.cart input.button {
		padding: 0.875rem 2rem;
		font-size: 0.9375rem;
	}
}

