/*
Theme Name: Zaznat – Seconde vie bohème
Theme URI: https://zaznat.com/
Description: Variante bohème et artisanale du look « Seconde vie » : lin écru, terracotta, safran, sauge et brun noyer ; titres Fraunces, texte Karla, étiquettes manuscrites Caveat ; points de couture, festons et pictos d'atelier (fil et aiguille, pelote, ciseaux, bobine, branche d'olivier, soleil, lune, plume, coquillage). S'appuie sur la feuille de style du thème « Zaznat – Seconde vie », qui doit rester installé.
Author: Zaznat
Template: blocksy
Version: 1.0.0
Text Domain: zaznat-secondevie-boheme
*/

/* ---------- Palette ---------- */
:root:root {
  --zz-ecume: #f5ede0;          /* lin écru */
  --zz-calcaire: #ead9bf;     /* kraft clair */
  --zz-sable: #dcb57e;         /* ocre */
  --zz-lagon: #a3a77c;        /* sauge */
  --zz-turquoise: #b4583a;    /* terracotta */
  --zz-turquoise-fonce: #8c3e26;
  --zz-mer: #3e2c25;          /* brun noyer */
  --zz-abysse: #2c1f1a;
  --zz-pin: #7d5b3b;          /* bois de noyer */
  --zz-corail: #d29a2e;      /* safran */
  --zz-encre: #2e231d;          /* encre sépia */
  --zz-gris: #74665a;
  --zz-trait: rgba(46, 35, 29, .2);
  --zz-rose: #d9a38c;
  --zz-lavande: #8b7aa8;
  --zz-papier: #fbf5ea;

  --theme-text-color: #3a2f28;
  --theme-font-family: 'Karla', sans-serif;
  --theme-font-size: 17px;
  --theme-line-height: 1.68;
}

body.theme-blocksy {
  background-color: var(--zz-ecume) !important;
  background-image:
    radial-gradient(900px 520px at 100% 0%, rgba(210, 154, 46, .16), transparent 65%),
    radial-gradient(760px 520px at 0% 100%, rgba(180, 88, 58, .12), transparent 65%);
}
::selection { background: var(--zz-sable); color: var(--zz-encre); }

/* Fond de page uni : pas de pictos en filigrane (le motif du thème « Seconde vie » est neutralisé aussi) */
body::before { display: none !important; background: none !important; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, .entry-title, .woocommerce-loop-product__title, .product_title, .woocommerce-loop-category__title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--zz-turquoise); }

/* Surtitre : étiquette kraft écrite à la main */
.zz-surtitre {
  font-family: 'Caveat', cursive; font-size: 23px; line-height: 1.1; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--zz-turquoise-fonce);
  background: var(--zz-calcaire); border: 1.5px dashed var(--zz-pin); border-radius: 4px 14px 4px 14px;
  padding: 4px 16px 5px 12px; margin-left: 6px; transform: rotate(-1.5deg);
}
.zz-surtitre::before { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--zz-pin); background: var(--zz-ecume); margin-right: 10px; vertical-align: 1px; }

/* ---------- En-tête : bord cousu ---------- */
.ct-header [data-row] { border-bottom: 1.5px dashed rgba(46, 35, 29, .45); }
.ct-header .menu .sub-menu { background: var(--zz-papier) !important; border: 1.5px dashed rgba(125, 91, 59, .45); border-radius: 16px; }
.ct-header .menu .sub-menu li:hover > .ct-menu-link { background: rgba(210, 154, 46, .14); }

/* ---------- Boutons : galets cousus ---------- */
.ct-button, .wp-block-button__link, button.button, .woocommerce a.button, .woocommerce button.button.alt, .single_add_to_cart_button {
  font-family: 'Karla', sans-serif !important;
  border-radius: 999px !important; border: 0 !important;
  text-transform: none; letter-spacing: .02em; font-size: 15px !important; font-weight: 700 !important;
  box-shadow: 0 10px 20px -12px rgba(140, 62, 38, .6);
  outline: 1.5px dashed rgba(255, 255, 255, .6); outline-offset: -6px;
}
.wp-block-button__link:hover, .ct-button:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -12px rgba(140, 62, 38, .65); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--zz-encre); border: 1.5px solid var(--zz-encre) !important; outline-color: rgba(46, 35, 29, .3); box-shadow: none; }
.is-style-outline .wp-block-button__link:hover { background: var(--zz-encre); color: var(--zz-ecume); }
[data-products] .product .ct-woo-card-actions .button { background: transparent; color: var(--zz-mer); border: 1.5px solid var(--zz-mer) !important; outline-color: rgba(62, 44, 37, .3); box-shadow: none; }
[data-products] .product .ct-woo-card-actions .button:hover { background: var(--zz-mer); color: #fff; }

/* ---------- Cartes produits : papier et point de couture ---------- */
[data-products] .product, .woocommerce ul.products li.product {
  background: var(--zz-papier); border: 1.5px dashed rgba(125, 91, 59, .5); border-radius: 16px;
  box-shadow: 0 14px 30px -22px rgba(62, 44, 37, .5);
}
[data-products] .product:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 22px 40px -22px rgba(62, 44, 37, .55); }
[data-products] .product .ct-media-container img { border-radius: 10px; }
.woocommerce-loop-category__title .count { font-family: 'Karla', sans-serif; }
.zz-subcats a { border: 1px dashed var(--zz-pin); background: var(--zz-papier); }

/* ---------- En-tête des catégories : feston ---------- */
.woocommerce .hero-section[data-type="type-2"], .woocommerce .hero-section[data-type="type-1"] {
  border-bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'%3E%3Cpath d='M0 1 Q7 15 14 1 Q21 15 28 1' fill='none' stroke='%237d5b3b' stroke-width='1.5' stroke-opacity='.75'/%3E%3Ccircle cx='14' cy='1.6' r='1.4' fill='%23b4583a'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: left bottom; background-size: 28px 12px;
  padding-bottom: 46px !important;
}
.woocommerce .hero-section[data-type="type-2"] .page-title::after {
  width: 72px; height: 12px; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='12' viewBox='0 0 72 12'%3E%3Cpath d='M2 7 c6 -6 10 -6 14 0 s8 6 14 0 s8 -6 14 0 s8 6 14 0 s8 -6 12 -2' fill='none' stroke='%23b4583a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
}
.woocommerce .hero-section[data-type="type-2"] .page-description, .woocommerce .hero-section[data-type="type-2"] .page-description p { color: #3a2f28 !important; }

/* ---------- Accueil : pas d'illustration dans le hero (le bocal du thème « Seconde vie » est neutralisé aussi) ---------- */
body.home .entry-content > .wp-block-group:first-child::after {
  display: none !important;
  background: none !important;
}

/* ---------- Bande valeurs et sections sombres : brun noyer, pictos clairs ---------- */
.zz-bandeau { color: #ecdfcc; }
.zz-bandeau p { color: #d8c7b0; }
.zz-sombre, .wp-block-group.zz-sombre { color: #f0e4d2; }
.zz-sombre p { color: #d8c7b0; }
.zz-sombre h2 em { color: var(--zz-corail); }
/* Pas de pictos non plus sur les bandes sombres : fond brun noyer uni */
.zz-bandeau, .zz-sombre, .wp-block-group.zz-sombre {
  background-image: none !important;
}
.zz-bandeau .wp-block-column::before { width: 56px; height: 5px; border-radius: 3px; }
.zz-bandeau .wp-block-column:nth-child(3)::before { background: var(--zz-rose); }

/* ---------- Bandeau des dernières créations : photos punaisées ---------- */
.zz-film { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12' viewBox='0 0 22 12'%3E%3Cpath d='M3 6 h10' stroke='%237d5b3b' stroke-width='2' stroke-linecap='round' stroke-opacity='.6'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: left bottom 6px; background-size: 22px 12px; padding-top: 22px; }
[data-products] .product, .zz-film-item { background-color: var(--zz-papier); }
.zz-film-item { border: 1px solid var(--zz-trait); border-radius: 4px; padding: 10px 10px 6px; box-shadow: 0 14px 26px -18px rgba(62, 44, 37, .55); transform: rotate(-1.2deg); }
.zz-film-item:nth-child(even) { transform: rotate(1.1deg); }
.zz-film-item:hover { transform: rotate(0deg) translateY(-3px); }
.zz-film-item::before { content: ''; position: absolute; top: -9px; left: 50%; width: 72px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(220, 181, 126, .65); border-left: 1px dashed rgba(125, 91, 59, .35); border-right: 1px dashed rgba(125, 91, 59, .35); z-index: 2; }
.zz-film-item::after { font: 700 19px/1 'Caveat', cursive; letter-spacing: 0; text-transform: none; padding: 5px 11px 6px; border-radius: 3px 10px 3px 10px; top: 18px; bottom: auto; right: -8px; transform: rotate(4deg); background: var(--zz-turquoise); color: #fff; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, .5); }
.zz-film-item:nth-child(3n)::after { background: var(--zz-corail); color: var(--zz-encre); }
.zz-film-item:nth-child(3n+2)::after { background: var(--zz-lagon); color: var(--zz-encre); }
.zz-film-cap { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 17px; }

/* ---------- Bande manifeste : terracotta cousue ---------- */
.zz-manifeste {
  background-color: var(--zz-turquoise);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='4' viewBox='0 0 22 4'%3E%3Cpath d='M3 2 h10' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-opacity='.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='4' viewBox='0 0 22 4'%3E%3Cpath d='M3 2 h10' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-opacity='.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: left 10px, left calc(100% - 10px); background-size: 22px 4px;
}
.zz-manifeste-titre { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 600; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.zz-manifeste-texte { color: #f8eadb; }
.zz-manifeste-texte a:hover { color: var(--zz-sable); }

/* ---------- Pied de page ---------- */
.ct-footer, .ct-footer a { color: #d8c7b0; }
.ct-footer [data-row] { border-top: 1.5px dashed rgba(245, 237, 224, .18); }

/* ---------- Fiche produit : étiquette manuscrite sur le prix ---------- */
.single-product .summary .price { font-family: 'Caveat', cursive; font-size: 34px !important; color: var(--zz-turquoise-fonce); }

/* zz-menu-serre (14/11/2026) : menu principal resserré sur ordinateur pour que les 8 rubriques tiennent sans menu « Plus » */
@media (min-width: 1000px) {
	#header-menu-1 > ul > li > a { padding-inline: 7px; letter-spacing: .6px; }
}
/* Pied de page : espace entre le menu (Contact, Blog, Mon compte) et les icônes sociales (14/11/2026) */
#footer [data-id="menu"] { margin-bottom: 14px; }

/* 14/11/2026 : accueil, section « Explorer les collections » sur 2 colonnes sur téléphone (au lieu d'une colonne de 8 grandes tuiles). */
@media (max-width: 689.98px) {
	.zz-collections ul.products { --shop-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.zz-collections ul.products li.product-category { padding: 8px 8px 12px; }
	.zz-collections ul.products li.product-category h2 { font-size: 16px; line-height: 1.25; margin-top: 8px; }
	.zz-collections .zz-subcats { gap: 4px; }
	.zz-collections .zz-subcats a { font-size: 11px; padding: 3px 8px; }
}

/* ---------- Accueil : trois polaroïds à droite du hero ---------- */
.zz-hero-polas { display: none; }
@media (min-width: 1000px) {
  body.home .entry-content > .wp-block-group:first-child > h1,
  body.home .entry-content > .wp-block-group:first-child > .zz-intro,
  body.home .entry-content > .wp-block-group:first-child > .wp-block-buttons { padding-right: 50%; box-sizing: border-box; }
  .zz-hero-polas {
    display: block; position: absolute !important; left: auto !important; z-index: 2; top: 50%; transform: translateY(-50%);
    right: max(40px, calc((100% - 1290px) / 2)); width: min(44%, 540px); height: 400px;
    margin: 0 !important; max-width: none !important;
  }
  .zz-hero-pola {
    position: absolute; display: block; width: 43%; padding: 10px 10px 8px; box-sizing: border-box;
    background: #fbf5ea; border: 1px solid rgba(46, 35, 29, .2); border-radius: 4px;
    box-shadow: 0 18px 30px -18px rgba(62, 44, 37, .6); text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .zz-hero-pola::before {
    content: ""; position: absolute; top: -11px; left: 50%; width: 74px; height: 22px; margin-left: -37px;
    background: rgba(220, 181, 126, .72); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(46, 35, 29, .15);
  }
  .zz-hero-pola img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; }
  .zz-hero-pola span {
    display: block; margin-top: 7px; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.3;
    color: #2e231d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
  }
  .zz-hero-pola-1 { left: 0; top: 56px; transform: rotate(-6deg); z-index: 1; }
  .zz-hero-pola-2 { left: 29%; top: 0; transform: rotate(3deg); z-index: 3; }
  .zz-hero-pola-3 { right: 0; top: 104px; transform: rotate(8deg); z-index: 2; }
  .zz-hero-pola:hover { transform: rotate(0deg) scale(1.04); z-index: 5; box-shadow: 0 24px 36px -18px rgba(62, 44, 37, .7); }
}

/* ---------- Accueil : le carnet d'atelier (blog) ---------- */
.zz-carnet > p { max-width: 640px; margin-left: auto !important; margin-right: auto !important; color: #5a4a3f; }
.zz-blog { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: 24px; margin: 34px auto 30px; }
.zz-blog-card {
  display: flex; gap: 6px; padding: 12px; box-sizing: border-box; background: #fbf5ea; color: #2e231d;
  border: 1.5px dashed rgba(140, 62, 38, .45); border-radius: 18px; text-decoration: none !important;
  box-shadow: 0 14px 26px -18px rgba(62, 44, 37, .55); transition: transform .25s ease, box-shadow .25s ease;
}
.zz-blog-card:hover { transform: translateY(-3px); box-shadow: 0 22px 32px -18px rgba(62, 44, 37, .65); color: #2e231d; }
.zz-blog-vedette { grid-row: 1 / span 2; flex-direction: column; }
.zz-blog-img { display: block; flex: 0 0 38%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: #ead9bf; }
.zz-blog-vedette .zz-blog-img { flex: 0 0 auto; aspect-ratio: 3 / 2; }
.zz-blog-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zz-blog-txt { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 6px; min-width: 0; }
.zz-blog-vedette .zz-blog-txt { padding: 14px 10px 8px; gap: 8px; flex: 1; }
.zz-blog-tag { font-family: 'Caveat', cursive; font-size: 21px; line-height: 1; color: #b4583a; }
.zz-blog-card strong { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.25; }
.zz-blog-vedette strong { font-size: 28px; line-height: 1.15; }
.zz-blog-extrait { font-size: 15px; line-height: 1.55; color: #5a4a3f; }
.zz-blog-vedette .zz-blog-extrait { font-size: 16.5px; }
.zz-blog-lire { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14.5px; color: #8c3e26; }
@media (max-width: 899.98px) {
  .zz-blog { grid-template-columns: 1fr; grid-template-rows: none; }
  .zz-blog-vedette { grid-row: auto; }
  .zz-blog-vedette strong { font-size: 23px; }
}
@media (max-width: 479.98px) {
  .zz-blog-card:not(.zz-blog-vedette) .zz-blog-extrait { display: none; }
}
