/*
Theme Name: Premier degré
Description: Thème sur mesure pour les éditions Premier degré.
Version: 1.0
Author: Premier degré
Text Domain: premierdegre
*/

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, p, h1, h2, h3, h4, h5, h6, div, span, a, li, ul {
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  line-height: 20px;
  background: #f6f6f6;
  color: #393939;
}

/* ============================================================
   NAV
   ============================================================ */
.pd-nav {
  background: #ffffff;
  box-shadow: 1px 1px 12px #eeeeee;
  border: 1px solid #e7e7e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
}
.pd-nav-links { display: flex; list-style: none; flex-wrap: nowrap; }
.pd-nav-links a {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; color: #000; padding: 6px clamp(8px, 1.5vw, 20px);
  display: block; font-weight: 400; white-space: nowrap;
}
.pd-nav-links li:last-child a { padding-right: 0; }
.pd-nav-links a.active { color: #d7481f; background: #f6f6f6; }
.pd-nav-links a:hover { color: #d7481f; }
.pd-logo-img { height: 34px; width: auto; display: block; }

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.pd-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

/* ============================================================
   SÉPARATEURS
   ============================================================ */
.pd-sep {
  height: 8px;
  background-color: #f6f6f6;
}

/* ============================================================
   HERO
   ============================================================ */
.pd-hero {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  box-shadow: 1px 1px 12px #eeeeee;
  display: flex;
  align-items: stretch;
  position: relative;
}
.pd-hero-cover {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0 40px 40px;
  flex-shrink: 0;
}
.pd-cover-img {
  width: 285px;
  height: auto;
  flex-shrink: 0;
  display: block;
}
.pd-filet {
  width: 0.5px; background: #d7481f;
  margin: 40px 40px; flex-shrink: 0;
}
.pd-hero-content {
  padding: 40px 40px 40px 0;
  display: flex; flex-direction: column;
  gap: 20px; flex: 1;
}
.pd-book-header { display: flex; flex-direction: column; gap: 5px; }
.pd-book-author { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #d7481f; line-height: 1.3; }
.pd-book-title  { font-size: 20px; font-weight: 300; color: #393939; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.18em; }
.pd-book-meta   { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #bbb; line-height: 1.6; margin-top: 6px; }
.pd-book-desc   { font-size: 11px; line-height: 1.85; color: #666; text-align: justify; }
.pd-book-extract {
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 300; font-size: 12.5px; line-height: 1.7;
  color: #a07060; background: #fdf4f1;
  padding: 8px 12px; border: 1px solid #f0ddd6;
  letter-spacing: 0.03em; position: relative; overflow: hidden;
  text-align: justify;
}
.pd-book-extract::after {
  content: '»'; position: absolute; right: 4px; bottom: -2px;
  font-size: 36px; line-height: 1; color: rgba(215,72,31,0.08);
  font-family: 'Arial Black', Impact, sans-serif; font-weight: 900;
  pointer-events: none; z-index: 0;
}
.pd-book-extract-text { position: relative; z-index: 1; }
.pd-hero-btns { display: flex; gap: 8px; }

/* Boutons */
.pd-btn {
  display: inline-block; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; color: #fff;
  background: #c8542e; border: none;
  padding: 6px 14px; text-decoration: none; cursor: pointer;
  font-family: 'Open Sans', sans-serif;
}
.pd-btn:hover { background: #d4693f; }
.pd-btn.ghost { background: #f6f6f6; color: #393939; border: 1px solid #e7e7e7; font-weight: 400; }
.pd-btn.ghost:hover { background: #d4693f; color: #fff; }

/* ============================================================
   LABEL
   ============================================================ */
.pd-cat-label {
  display: inline-block; font-size: 8px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: #d7481f;
  border: 1px solid #d7481f; background: rgba(255,255,255,0.55);
  padding: 3px 8px; margin-bottom: 20px;
}

/* ============================================================
   CATALOGUE (carrousel)
   ============================================================ */
.pd-catalogue {
  border: 1px solid #e7e7e7;
  box-shadow: 1px 1px 12px #eeeeee;
  display: grid; grid-template-columns: 2.9fr 2fr;
  min-height: 480px; transition: background-color 0.5s ease;
}
.pd-cat-left { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.pd-cat-book-author { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(0,0,0,0.45); margin-bottom: 5px; }
.pd-cat-book-title  { font-size: 20px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(0,0,0,0.7); line-height: 1.3; margin-bottom: 6px; }
.pd-cat-book-genre  { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0,0,0,0.3); margin-bottom: 14px; }
.pd-cat-book-desc   { font-size: 11px; line-height: 1.85; color: rgba(0,0,0,0.55); margin-bottom: 12px; text-align: justify; }
.pd-cat-book-extract {
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 300; font-size: 12.5px; line-height: 1.7; text-align: justify;
  color: rgba(0,0,0,0.38); background: rgba(255,255,255,0.3);
  padding: 8px 12px; border: 1px solid rgba(255,255,255,0.5);
  letter-spacing: 0.03em; margin-bottom: 20px;
  position: relative; overflow: visible;
}
.pd-cat-book-extract::after {
  content: '»'; position: absolute; right: 4px; bottom: -2px;
  font-size: 36px; line-height: 1; color: rgba(255,255,255,0.08);
  font-family: 'Arial Black', Impact, sans-serif; font-weight: 900;
  pointer-events: none; z-index: 0;
}
.pd-cat-book-extract-text { position: relative; z-index: 1; }
.pd-cat-cta { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(0,0,0,0.45); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.2); padding-bottom: 2px; }
.pd-cat-nav { display: flex; gap: 8px; align-items: center; margin-top: 28px; }
.pd-cat-btn { width: 36px; height: 36px; background: rgba(0,0,0,0.12); border: none; color: rgba(0,0,0,0.5); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pd-cat-btn:hover { background: rgba(0,0,0,0.22); color: rgba(0,0,0,0.8); }
.pd-cat-dots { display: flex; gap: 6px; align-items: center; margin-left: 8px; }
.pd-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,0.2); }
.pd-dot.active { background: #d7481f; }
.pd-cat-right { display: flex; align-items: center; justify-content: center; padding: 40px 40px; align-self: stretch; }
.pd-cat-cover-display { width: auto; height: 100%; max-height: 280px; aspect-ratio: 2/3; background-size: contain; background-repeat: no-repeat; background-position: center; mix-blend-mode: luminosity; opacity: 2; }

/* ============================================================
   ABOUT + NEWSLETTER
   ============================================================ */
.pd-about { background: #f6f6f6; }
.pd-about-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 40px 0; }
.pd-about-socials { display: flex; gap: 8px; flex-shrink: 0; }
.pd-about-body-wrap { padding: 0 40px; }
.pd-about-body { font-size: 9.5px; line-height: 2.2; color: #777; letter-spacing: 0.12em; text-align: justify; text-transform: uppercase; font-weight: 400; margin-top: 20px; }
.pd-about-arrow { font-size: 9.5px; color: #d7481f; text-decoration: none; }
.pd-newsletter-wrap { padding: 20px 40px 28px; }
.pd-newsletter-form { display: flex; width: 100%; }
.pd-newsletter-input {
  flex: 1; padding: 10px 14px; font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; font-family: 'Open Sans', sans-serif;
  background: #ffffff; border: 1px solid #e7e7e7; border-right: none;
  color: #393939; outline: none;
}
.pd-newsletter-input::placeholder { color: #bbb; }
.pd-newsletter-input:focus { border-color: #d7481f; }
.pd-newsletter-submit {
  padding: 10px 20px; font-size: 10px; font-family: 'Open Sans', sans-serif;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: #c8542e; border: none; color: #fff; cursor: pointer; white-space: nowrap;
}
.pd-newsletter-submit:hover { background: #d4693f; }
.pd-newsletter-msg { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #d7481f; margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.pd-footer { background: #ffffff; border: 1px solid #e7e7e7; box-shadow: 1px 1px 12px #eeeeee; padding: 10px 40px; display: flex; align-items: center; justify-content: space-between; }
.pd-footer-copy { font-size: 7px; text-transform: uppercase; letter-spacing: 0.7px; color: #393939; }
.pd-footer-copy a { color: #5393c5; text-decoration: none; }
.pd-footer-links { font-size: 7px; text-transform: uppercase; letter-spacing: 0.7px; color: #999; }
.pd-footer-links a { color: #999; text-decoration: none; }
.pd-footer-links a:hover { color: #d7481f; }
.pd-footer-sep { margin: 0 6px; color: #ccc; }

.pd-social-icon { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #d7481f; display: flex; align-items: center; justify-content: center; color: #d7481f; font-size: 8px; font-weight: 600; text-decoration: none; opacity: 0.5; }
.pd-social-icon:hover { opacity: 1; }

/* ============================================================
   PAGES INTÉRIEURES
   ============================================================ */
.pd-page-content {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  box-shadow: 1px 1px 12px #eeeeee;
  padding: 40px;
}
.pd-page-content h1 {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: #d7481f;
  margin-bottom: 28px;
}
.pd-page-content h4 {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: #d7481f;
  margin: 28px 0 12px;
}
.pd-page-content p {
  font-size: 11px; line-height: 1.85; color: #666;
  text-align: justify; margin-bottom: 12px;
}
.pd-page-content blockquote {
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 300; font-size: 12.5px; line-height: 1.7;
  color: #a07060; background: #fdf4f1;
  padding: 12px 16px; border: 1px solid #f0ddd6;
  margin: 16px 0; position: relative;
}
.pd-page-content em { font-style: italic; }
.pd-page-content a { color: #d7481f; text-decoration: none; }
.pd-page-content a:hover { text-decoration: underline; }
.pd-page-content hr {
  border: none; height: 0.5px; background: #d7481f;
  margin: 20px 0;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce ul.products li.product {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  box-shadow: 1px 1px 12px #eeeeee;
  padding: 20px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #393939;
}
.woocommerce ul.products li.product .price {
  font-size: 10px; color: #d7481f;
}
.woocommerce a.button, .woocommerce button.button {
  font-family: 'Open Sans', sans-serif;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: #fff; background: #c8542e;
  border: none; padding: 6px 14px; cursor: pointer;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: #d4693f;
}

/* ============================================================
   RESPONSIVE — TABLETTE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .pd-nav { padding: 0 24px; height: 60px; }
  .pd-logo-img { height: 28px; }
  .pd-nav-links a { font-size: 9px; padding: 4px 8px; letter-spacing: 1px; }

  .pd-hero { flex-direction: column; }
  .pd-hero-cover { padding: 28px 24px 0; justify-content: center; }
  .pd-cover-img { width: 150px; height: 225px; }
  .pd-filet { display: none; }
  .pd-hero-content { padding: 20px 24px 28px; }
  .pd-book-title { font-size: 17px; }

  .pd-catalogue { grid-template-columns: 1fr; min-height: auto; }
  .pd-cat-left { padding: 28px 24px; }
  .pd-cat-right { padding: 20px 24px 28px; min-height: 260px; }
  .pd-cat-cover-display { max-height: 220px; }

  .pd-about-header { padding: 20px 24px 0; }
  .pd-about-body-wrap { padding: 0 24px; }
  .pd-newsletter-wrap { padding: 16px 24px 20px; }
  .pd-page-content { padding: 24px; }

  .pd-footer { padding: 10px 24px; flex-wrap: wrap; gap: 4px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .pd-nav { padding: 0 16px; height: 52px; }
  .pd-logo-img { height: 24px; }
  .pd-nav-links a { font-size: 8px; padding: 4px 5px; letter-spacing: 0.8px; }

  .pd-hero-cover { padding: 20px 16px 0; }
  .pd-cover-img { width: 130px; height: 195px; }
  .pd-hero-content { padding: 16px 16px 20px; gap: 14px; }
  .pd-book-author { font-size: 10px; }
  .pd-book-title { font-size: 15px; }
  .pd-book-desc { font-size: 10px; line-height: 1.7; }
  .pd-book-extract { font-size: 11px; }
  .pd-btn { font-size: 9px; padding: 5px 10px; }

  .pd-cat-left { padding: 20px 16px; }
  .pd-cat-right { padding: 16px 16px 20px; }
  .pd-cat-book-title { font-size: 17px; }
  .pd-cat-book-desc { font-size: 10px; line-height: 1.7; }
  .pd-cat-nav { margin-top: 20px; }

  .pd-about-header { padding: 16px 16px 0; }
  .pd-about-body-wrap { padding: 0 16px; }
  .pd-about-body { font-size: 8.5px; line-height: 2; }
  .pd-newsletter-wrap { padding: 12px 16px 16px; }
  .pd-newsletter-input { font-size: 9px; padding: 8px 10px; }
  .pd-newsletter-submit { font-size: 9px; padding: 8px 14px; }
  .pd-page-content { padding: 16px; }

  .pd-footer { padding: 8px 16px; }
  .pd-footer-copy { font-size: 6.5px; }
  .pd-footer-links { font-size: 6.5px; }
  .pd-social-icon { width: 22px; height: 22px; font-size: 7px; }
}

.pd-hero-content, .pd-hero-content * {
  font-family: 'Open Sans', sans-serif !important;
}
.pd-book-author { font-size: 11px !important; }
.pd-book-title { font-size: 20px !important; }
.pd-book-meta { font-size: 9px !important; }
.pd-book-desc { font-size: 11px !important; line-height: 1.85 !important; }
.pd-book-extract { font-size: 12.5px !important; font-family: 'Open Sans Condensed', sans-serif !important; }
.pd-cat-label { font-size: 8px !important; }
.pd-book-extract,
.pd-book-extract *,
.pd-cat-book-extract,
.pd-cat-book-extract * {
  font-family: 'Open Sans Condensed', sans-serif !important;
  font-weight: 300 !important;
}
.ecustomdiv .row {
  display: flex;
  gap: 40px;
	margin-top:-20px;
}
.edito1, .edito2 {
  flex: 1 1 0;
  min-width: 0;
}
.pd-page-content .separation {
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}
.pd-page-content h4 {
margin: -10px 0;
  padding: 0;
  line-height: 1;
}
.pd-page-content p + .separation,
.pd-page-content span + .separation {
  margin-top: 24px;
}
.pd-nav a img {
  height: 34px;
  width: auto;
  max-height: 34px;
}
#sidebar {
  display: none;
}
/* Filet séparateur dans les titres produits */
.wooseparation {
  margin: 8px 0;
  padding: 0;
  line-height: 0;
}
.wooseparation hr {
  border: none;
  height: 0.5px;
  background: #d7481f;
  margin: 0;
}

/* Fiche produit — titre et auteur */
.single-product .product .entry-summary .product_title,
.single-product .product .entry-summary h1 {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d7481f;
}

/* Fiche produit — prix */
.single-product .product .entry-summary .price {
  font-size: 14px;
  color: #d7481f;
}

/* Fiche produit — description */
.single-product .product .entry-summary p {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  line-height: 1.85;
  color: #666;
  text-align: justify;
}

/* Fiche produit — bouton ajouter au panier */
.single-product .product .entry-summary .single_add_to_cart_button {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: #c8542e;
  border: none;
  padding: 8px 18px;
}
.single-product .product .entry-summary .single_add_to_cart_button:hover {
  background: #d4693f;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 20px;
}
.woocommerce-breadcrumb a {
  color: #999;
  text-decoration: none;
}

/* Onglets description */
.woocommerce-tabs .tabs li a {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}
.woocommerce-tabs .tabs li.active a {
  color: #393939;
}
.single-product .product .entry-summary h1,
.single-product .product .entry-summary h2,
.single-product .product .entry-summary h3,
.single-product .product .entry-summary h4,
.single-product .product .entry-summary h5,
.single-product .product .entry-summary h6 {
  color: #d7481f !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
}
.single-product .product .entry-summary .price {
  color: #d7481f !important;
}
.single-product .product_title,
.single-product .entry-title {
  color: #d7481f !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  line-height: 2 !important;
}

/* Masquer le breadcrumb */
.woocommerce-breadcrumb {
  display: none;
}

/* Masquer le titre "BOUTIQUE" sur la page boutique */
.post-type-archive-product .page-title,
.post-type-archive-product .woocommerce-products-header__title {
  display: none;
}

/* Masquer "Description" dans les onglets produit */
.woocommerce-tabs .panel h2 {
  display: none;
}

/* Infos complémentaires — pas d'italique */
.woocommerce-tabs .panel table,
.woocommerce-tabs .panel th,
.woocommerce-tabs .panel td {
  font-style: normal !important;
}

/* Produits similaires — titre stylé */
.related.products > h2,
section.related > h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #d7481f;
  border: 1px solid #d7481f;
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 20px;
}

/* Grille produits — enlever les bordures et harmoniser le padding */
.woocommerce ul.products li.product {
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Titres produits en noir, auteurs en gris */
.woocommerce-loop-product__title {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #393939 !important;
  line-height: 1.8 !important;
}

/* Masquer "Accueil / Boutique" en haut de la boutique */
.woocommerce-result-count {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}