*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter 18pt', sans-serif;
  background: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a {
  position: relative;
  color: inherit;
  text-decoration: none;
  line-height: 24px;
}

a:before,
a:after {
  content: '';
  position: absolute;
  transition: transform .5s ease;
}

ul { list-style: none; }


/* --- VARIABLES --- 
-------------------- */
:root {
/* Color */
  --color-bleufonce: #1E2A38;
  --color-bleu:		 #2563EB;
  --color-orange:    #F97316;
  --color-beige:     #f5f1e8;
  --color-gris:      #f3f4f6;
  --color-text:      #111827;
  --color-white:	 #fff;

  --color-btn-hover: #0d3fa2;

  /* Borders */
  --radius-sm:    4px;
  --radius-md:    8px;
}


/* --- TYPOGRAPHY ---
--------------------- */
h1 {
	font-family: 'Playfair Display', sans-serif;
	font-size: 48px;
	line-height: 56px;
	font-weight: bold;
}

h2 {
	font-family: 'Playfair Display', sans-serif;
	font-size: 36px;
	line-height: 44px;
	font-weight: 600;
}

h3 {
	font-family: 'Playfair Display', sans-serif;
	font-size: 28px;
	line-height: 36px;
	font-weight: 500;
}

p {
	font-family: 'Inter 18pt', sans-serif;
	font-size: 16px;
	font-weight: normal;
	line-height: 24px;
}


/* --- BUTTONS --- 
------------------ */
.btn {
  display: inline-block;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap; /* texte sur une seule ligne */
}

.btn--primary {
  border: 2px solid var(--color-bleu);
  background: var(--color-bleu);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-btn-hover);
  color: var(--color-white);
  border: 2px solid var(--color-bleu);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-bleu);
  border: 2px solid var(--color-bleu);
}

.btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-btn-hover);
  border: 2px solid var(--color-btn-hover);
}
.woocommerce .star-rating {
    color: #f5c518;
}

.woocommerce .star-rating::before {
    color: #e5e5e5;
}

.woocommerce .star-rating span::before {
    color: #f5c518;
}

#un_produit {
    margin: 0 1rem;
    overflow: hidden;
}

#un_produit #respond {
    display: block;
}
#respond {
    display: none;
}

/* Cacher la sidebar */
#secondary {
    display: none;
}
/* Retirer le titre  */
.entry-title {
    display: none;
}
/* Changer l apparance du badge promo */
.woocommerce span.onsale {
    background: var(--color-orange);
    color: var(--color-white);
    border-radius: 15px 25% 25% 0px / 0px 50% 50% 0px;
}
.btn--primary {
  text-align: center;
  border-radius: 5px;
  padding: 0.5rem;
}
#single {
    max-width: 1170px;
    width: 100%;
    margin: 0 auto;
    /* padding: 0 1rem; */
    margin-bottom: 2rem;
}
 #un_produit .box_produit {
    display: flex;
    /* flex-wrap: wrap; */
}
#un_produit .infos {
    display: flex;
    flex-direction: column;
}
#un_produit .img_produit {
    width: 100%;
    min-width: 300px;
    max-width: 400px;
    height: auto;
    margin-bottom: 40px;
    margin: auto 0 ;
    border: 2px solid black;
    padding: 0.5rem;
}   
#un_produit .box_droite {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    justify-content: space-around;
    padding-left: 1rem;
}
#un_produit .trait, #recommandation .trait, #top_vente .trait {
    flex: 1;
    height: 2px;
    background: #000;
    position: relative;
}
#un_produit .formats {
    margin-top: 2rem;
    /* height: 25%; */
}
#un_produit .resume_texte {
    display: flex;
    align-items: flex-end;
}
#un_produit .formats_texte {
    display: flex;
    align-items: flex-end;
}
#un_produit .liste-prix-variations {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
#un_produit .ligne-variation {
    border: solid 1px #000;
    padding: 1rem;
}
#un_produit .prix-variation {
    font-weight: bold;
}
#un_produit .image_produit {
    position: relative;
}
#un_produit .liste-prix-variations {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}
#un_produit .btn-variation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
}
#un_produit .btn-variation.active {
    background: #000;
    color: #fff;
}
#un_produit .variations {
    display: none;
}
#un_produit .woocommerce-variation-add-to-cart, form.cart {
    display: flex;
    align-items: center;
    flex-direction: row;
}
#un_produit .qty {
    padding-top: .5rem;
    padding-bottom: .5rem;
}
#un_produit .woocommerce-variation-price {
    display: none;
}
#un_produit .single_add_to_cart_button {
    border: 2px solid var(--color-bleu);
    background: var(--color-bleu);
    color: var(--color-white);
    text-align: center;
    border-radius: 0 5px 5px 0 ;
    padding: 0.5rem;
}
#un_produit .single_add_to_cart_button:hover {
  background: var(--color-btn-hover);
  color: var(--color-white);
  border: 2px solid var(--color-bleu);
}
#un_produit .in-stock {
    margin-bottom: 1rem;
}
#un_produit .ajout_panier {
    display: flex;
    width: 100%;
}
#un_produit .note {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 8px;
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
}
#un_produit .form {
    margin-top: 1rem;
}
#recommandation, #top_vente {
    margin: 3rem 1rem 0 1rem;
}
#recommandation .reco, #top_vente .top {
    margin-bottom: 2rem;
}
#recommandation .reco {
    display: flex;
    align-items: flex-end;
}

#top_vente .top {
    display: flex;
    align-items: flex-end;
}
#recommandation .recommandations-produits, #top_vente .recommandations-produits {
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 2rem;
}
#recommandation .produit-reco, #top_vente .produit-reco {
    border: solid 1px #000;
    padding: 10px;
    width: 600px;
    height: auto;
    display: flex;
    flex-direction: column;
}
.produit-reco h2, .produit-reco h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
}
#recommandation .produit-reco h3, #top_vente .produit-reco h3 {
    font-size: 1rem;
    /* margin-bottom: 1rem; */
}

#recommandation .img-reco, #top_vente .img-reco {
    min-height: 300px;
    max-height: 300px;
    margin: 0 auto;
    width: auto;
}
#recommandation .price, #top_vente .price {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 1rem;
}
#recommandation .btn--primary, #top_vente .btn--primary {
    width: 90%;
    margin: 0 auto;
    margin-top: 1rem;
    line-height: 24px;
}
.img-reco {
    border: solid 3px black;
}
.woocommerce-noreviews {
    display: none;
}
.comment-reply-title {
    display: none;
}
.comments-area {
    display: none;
}
.woocommerce-Reviews-title {
    display: none;
}
/* Les avis  */
.reviews-list {
    display: flex;
    width: 100%;
    margin-top: 1rem;
    justify-content: space-around;
}
.review-item {
    width: 24%;
    max-width: 100%;
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    /* border-radius: 18px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.avatar.avatar-50.photo {
    max-width: 50px;
    max-height: 50px;
    margin: auto 10px;
    border: 2px solid black;
    padding: 5px;
}
.review-content {
    padding: 5px;
}
.review-content p {
  overflow-wrap: break-word;
}
.produit-reco {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.img_contenu {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bt--primary.bouton_single {
    margin-top: auto;
}
.price .woocommerce-Price-amount.amount {
    font-size: 1rem;
}
/* ///////////
Formulaire avis clients
///////////////////// */

#commentform.comment-form {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    /* border-radius: 18px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Texte d’intro */
#commentform .comment-notes {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
}

#commentform .required,
#commentform .required-field-message .required {
    color: #dc2626;
    font-weight: 700;
}

/* Structure des blocs */
#commentform p,
#commentform .comment-form-rating {
    margin-bottom: 1.25rem;
}

#commentform label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

/* Champs texte + textarea */
#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #d1d5db;
    /* border-radius: 12px; */
    background: #f9fafb;
    color: #111827;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    appearance: none;
}

#commentform textarea {
    min-height: 180px;
    resize: vertical;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Placeholder si besoin */
#commentform input::placeholder,
#commentform textarea::placeholder {
    color: #9ca3af;
}

/* Bloc note */
#commentform .comment-form-rating {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    /* border-radius: 14px; */
}

/* Etoiles WooCommerce */
#commentform .comment-form-rating .stars {
    margin: 0.35rem 0 0;
    line-height: 1;
}

#commentform .comment-form-rating .stars span {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.35rem;
}

/* On masque le texte mais on garde l’accessibilité */
#commentform .comment-form-rating .stars a {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    text-indent: -9999px;
    text-decoration: none;
}

/* Etoile vide */
#commentform .comment-form-rating .stars a::before {
    content: "★";
    position: absolute;
    inset: 0;
    text-indent: 0;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: #d1d5db;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Hover + sélection visuelle */
#commentform .comment-form-rating .stars:hover a::before {
    color: #d1d5db;
}

#commentform .comment-form-rating .stars a:hover::before,
#commentform .comment-form-rating .stars a:hover ~ a::before,
#commentform .comment-form-rating .stars.selected a.active::before,
#commentform .comment-form-rating .stars.selected a.active ~ a::before {
    color: #f59e0b;
}

#commentform .comment-form-rating .stars a:hover::before {
    transform: scale(1.08);
}

/* Focus clavier */
#commentform .comment-form-rating .stars a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Checkbox cookies */
#commentform .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    color: #4b5563;
}

#commentform .comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #2563eb;
    transform: scale(1.1);
}

#commentform .comment-form-cookies-consent label {
    margin-bottom: 0;
    font-weight: 400;
    color: #4b5563;
}

/* Bouton submit */
#commentform .form-submit {
    margin-top: 1.5rem;
}

#commentform input.submit,
#commentform .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.9rem 1.4rem;
    border: none;
    /* border-radius: 12px; */
    background: #1d4ed8;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.18);
}

#commentform input.submit:hover,
#commentform .submit:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

#commentform input.submit:active,
#commentform .submit:active {
    transform: translateY(0);
}

#commentform input.submit:focus-visible,
#commentform .submit:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 4px;
}

/* Champs cachés */
#commentform input[type="hidden"] {
    display: none;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	/* gap: 24px; */
	padding: 0;
	margin: 30px 0;
	list-style: none;
}

.woocommerce ul.products li.product {
	border: 1px solid #222;
	background: #fff;
	padding: 10px 10px 14px;
	display: flex;
	flex-direction: column;
	min-height: 560px;
	position: relative;
	box-shadow: none;
    /* min-width: 300px; */
}

.woocommerce ul.products li.product a {
	text-decoration: none;
}

.woocommerce ul.products li.product img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
	border: 2px solid #222;
	margin-bottom: 16px;
	border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: "Georgia", "Times New Roman", serif;
	line-height: 1.25;
	color: #111;
	margin: 0 0 14px;
	min-height: 46px;
}



.woocommerce ul.products li.product .price {
	color: #111;
	margin: 10px 0 0;
}

 .woocommerce-result-count {
    display: none;
 }
 .orderby {
    display: none;
 }
.woocommerce-products-header__title.page-title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.woocommerce-products-header__title.page-title::after {
	content: "";
	flex: 1;
	height: 2px;
	background: #000;
    width: 100%;
    margin-top: 35px;
}
#primary {
    width: 100%;
}
.box h2, .produit-reco h2 {
    line-height: 1.5rem;
    font-size: 1.2rem;
    margin-top: 1rem;
}
.auteur-produit  {
    color: #767676;
}
.attribute_pa_auteur {
    display: none;
}
@media screen and (max-width: 768px) {
    .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
        width: 47.5%;
        margin: 0 18px 2.992em 0;   
    }
}

@media screen and (max-width: 460px) {
    .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
        width: 100%;
        margin: 0 0px 2.992em 0;
    }
}


@media screen and (max-width: 700px) {
    #un_produit h1 {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
    #un_produit .box_produit {
        flex-direction: column;
    }
    #un_produit .image_produit {
        margin: 1rem auto;
    }
    #un_produit .resume {
        margin-top: 2rem;
    }
    #un_produit .cart {
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
    #un_produit .btn-variation,
    .btn-variation {
        width: 100%;
    }
    .recommandations-produits {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }
    .recommandations-produits::-webkit-scrollbar {
        display: none;
    }
    .produit-reco {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
    #un_produit form.cart,
    #un_produit .woocommerce-variation-add-to-cart {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }
    #un_produit .variations tbody,
    #un_produit .variations tr,
    #un_produit .variations td {
        display: block;
        width: 100%;
    }
    #un_produit .variations select {
        width: 100%;
        margin-bottom: 1rem;
    }
    #un_produit .quantity {
        width: 100%;
    }
    #un_produit .qty {
        width: 100%;
        max-width: 100%;
    }
    #un_produit .single_add_to_cart_button,
    #un_produit form.cart button.button,
    #un_produit .woocommerce-variation-add-to-cart button.single_add_to_cart_button {
        width: 100%;
        display: block;
        text-align: center;
        margin: 0;
    }
    #recommandation .produit-reco h2, #top_vente .produit-reco h2 {
    font-size: 1rem;
    }
    #recommandation .produit-reco h3, #top_vente .produit-reco h3 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    .reviews-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .review-item {
        width: 100%;
    }

    #commentform .comment-form-rating {
        padding: 0.9rem 1rem;
    }

    #commentform .comment-form-rating .stars span {
        gap: 0.2rem;
    }

    #commentform .comment-form-rating .stars a {
        width: 1.8rem;
        height: 1.8rem;
    }

    #commentform .comment-form-rating .stars a::before {
        font-size: 1.55rem;
    }

    #commentform input.submit,
    #commentform .submit {
        width: 100%;
    }
} 
