/*
Theme Name: Kalyra Home (Blocksy Child)
Theme URI: https://kalyrahome.com
Description: Theme enfant de Blocksy pour Kalyra Home — direction Minimaliste Premium Lifestyle. Surcharge la palette Blocksy avec les couleurs de marque, applique Cormorant Garamond + Inter et affine les composants vers un look quiet luxury.
Author: Abdelmounaim
Author URI: https://kalyrahome.com
Template: blocksy
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kalyra-home-child
*/

/* ==========================================================================
   KALYRA HOME — VARIABLES DE MARQUE
   On surcharge les variables natives de Blocksy pour profiter de son systeme
   ========================================================================== */
:root {

  /* ----- Couleurs de marque (Brand Kit) ----- */
  --kh-ink:    #1A1A1A;
  --kh-soot:   #2C2C2A;
  --kh-slate:  #6B665C;
  --kh-stone:  #8B7E6A;
  --kh-sand:   #E8DDC8;
  --kh-linen:  #F5EFE3;
  --kh-cream:  #FAF6EF;
  --kh-white:  #FFFFFF;

  --kh-clay:      #B5896B;
  --kh-clay-soft: #E8D8C7;

  --kh-maison:    #D4B896;
  --kh-cuisine:   #B57A5C;
  --kh-bienetre:  #D9A6AC;
  --kh-rangement: #94A88B;

  --kh-border:        #E5DFD2;
  --kh-border-strong: #C9C0AE;

  /* ----- Surcharge des variables Blocksy ----- */
  /* Palette : Blocksy expose 8 couleurs, on les remappe sur notre marque */
  --theme-palette-color-1: var(--kh-ink);          /* Primary  — boutons, accents forts */
  --theme-palette-color-2: var(--kh-clay);         /* Secondary — accent terre brulee */
  --theme-palette-color-3: var(--kh-soot);         /* Texte principal */
  --theme-palette-color-4: var(--kh-slate);        /* Texte secondaire */
  --theme-palette-color-5: var(--kh-cream);        /* Fond global */
  --theme-palette-color-6: var(--kh-linen);        /* Fond alternatif (sections) */
  --theme-palette-color-7: var(--kh-border);       /* Bordures */
  --theme-palette-color-8: var(--kh-white);        /* Blanc pur */

  /* Typographie globale Blocksy */
  --theme-fontFamily:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --theme-headingFont:   'Cormorant Garamond', Georgia, serif;
  --theme-fontTextColor: var(--kh-soot);
  --theme-headingColor:  var(--kh-ink);
  --theme-link-initial-color:    var(--kh-ink);
  --theme-link-hover-color:      var(--kh-clay);
  --theme-bg-color:      var(--kh-cream);
  --theme-borderColor:   var(--kh-border);
}

/* ==========================================================================
   BASE — Body, typographie globale
   ========================================================================== */
body {
  font-family: var(--theme-fontFamily);
  background-color: var(--kh-cream);
  color: var(--kh-soot);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TITRES — Cormorant Garamond
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title,
.ct-widget-title,
.entry-card .entry-title,
.archive-page-title {
  font-family: var(--theme-headingFont);
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--kh-ink);
}

h1, .entry-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 300;
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; font-weight: 500; }

em, i { font-style: italic; }

/* ==========================================================================
   LIENS
   ========================================================================== */
a, a:visited {
  color: var(--kh-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--kh-clay);
  transition: all 0.2s ease;
}
a:hover, a:focus {
  color: var(--kh-clay);
  border-bottom-color: var(--kh-ink);
}

/* Liens dans les zones structurelles (header, footer, nav) sans soulignement */
header.ct-header a,
footer.ct-footer a,
.ct-header-nav a,
.entry-meta a,
.entry-card a {
  border-bottom: none;
}

.entry-content a {
  color: var(--kh-ink);
  border-bottom: 1px solid var(--kh-clay);
}
.entry-content a:hover {
  color: var(--kh-clay);
}

/* ==========================================================================
   HEADER (Blocksy)
   ========================================================================== */
header.ct-header,
.ct-header {
  background-color: var(--kh-cream);
  border-bottom: 1px solid var(--kh-border);
  box-shadow: none;
}

/* Logo / nom du site */
.site-title,
[data-id="logo"] .site-title,
[data-id="logo"] a {
  font-family: var(--theme-headingFont);
  font-weight: 400;
  font-style: italic;
  font-size: 2rem;
  letter-spacing: -0.3px;
  color: var(--kh-ink);
}

.site-description {
  font-family: var(--theme-fontFamily);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--kh-stone);
  font-weight: 300;
}

/* Menu principal Blocksy */
.ct-header-nav,
.ct-header-nav a,
[data-id="menu"] a,
.menu-item a {
  font-family: var(--theme-fontFamily);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--kh-ink);
  text-transform: none;
}

.ct-header-nav a:hover,
.menu-item.current-menu-item > a {
  color: var(--kh-clay);
}

/* ==========================================================================
   CONTENU — Articles
   ========================================================================== */
.entry-content,
.entry-content p,
.post-content p,
article p {
  font-family: var(--theme-fontFamily);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--kh-soot);
}

.entry-content p { margin-bottom: 1.4rem; }

blockquote {
  font-family: var(--theme-headingFont);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--kh-ink);
  border-left: 2px solid var(--kh-clay);
  padding-left: 1.5rem;
  margin: 2rem 0;
  background: transparent;
}

/* Catégorie au-dessus du titre */
.entry-meta,
.entry-meta a,
.post-meta,
.entry-categories,
.ct-meta-element {
  font-family: var(--theme-fontFamily);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--kh-clay);
  font-weight: 500;
}

/* ==========================================================================
   BOUTONS — Style Brand Kit
   ========================================================================== */
.btn,
button:not(.ct-toggle-dropdown-mobile),
input[type="submit"],
.wp-block-button__link,
a.button,
.more-link,
.ct-button {
  background-color: var(--kh-ink);
  color: var(--kh-cream);
  border: none;
  border-radius: 0;
  font-family: var(--theme-fontFamily);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 1rem 2rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:hover,
button:not(.ct-toggle-dropdown-mobile):hover,
.wp-block-button__link:hover,
a.button:hover,
.more-link:hover,
.ct-button:hover {
  background-color: var(--kh-soot);
  color: var(--kh-cream);
}

.btn-secondary,
.button.secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: var(--kh-ink);
  border: 1px solid var(--kh-ink);
}
.btn-secondary:hover,
.button.secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--kh-ink);
  color: var(--kh-cream);
}

/* ==========================================================================
   CARTES D'ARTICLES — Aperçu de post (Blocksy entry-card)
   ========================================================================== */
.entry-card,
article.post,
.posts .post {
  background-color: var(--kh-cream);
  border: 1px solid var(--kh-border);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.entry-card:hover,
article.post:hover {
  border-color: var(--kh-border-strong);
  transform: translateY(-2px);
}

.entry-card .ct-image-container,
.post-thumbnail,
.entry-image {
  border-radius: 0;
  margin: 0;
}

.entry-card .ct-image-container img,
.post-thumbnail img {
  border-radius: 0;
}

.entry-card .entry-header,
.entry-header {
  padding: 1.8rem 1.8rem 0.8rem;
}

.entry-card .entry-summary,
.entry-summary,
.post-excerpt {
  padding: 0 1.8rem 1.8rem;
  font-size: 0.95rem;
  color: var(--kh-slate);
  line-height: 1.65;
}

/* ==========================================================================
   SIDEBAR (Blocksy)
   Note : on recommande "No Sidebar" via le Customizer pour un look minimal
   ========================================================================== */
.ct-sidebar,
aside.widget-area {
  background-color: var(--kh-cream);
}

.widget,
.ct-widget {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--kh-border);
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  box-shadow: none;
}

.widget-title,
.ct-widget-title,
.widget h3,
.widget h4 {
  font-family: var(--theme-fontFamily);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--kh-stone);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER (Blocksy)
   ========================================================================== */
footer.ct-footer,
.ct-footer {
  background-color: var(--kh-ink);
  color: var(--kh-cream);
  border-top: none;
}

footer.ct-footer h3,
footer.ct-footer h4,
.ct-footer h3,
.ct-footer h4 {
  color: var(--kh-cream);
  font-family: var(--theme-fontFamily);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

footer.ct-footer a,
.ct-footer a {
  color: rgba(250, 246, 239, 0.7);
  border-bottom: none;
}

footer.ct-footer a:hover,
.ct-footer a:hover {
  color: var(--kh-clay);
}

footer.ct-footer p,
.ct-footer p {
  color: rgba(250, 246, 239, 0.65);
  font-size: 0.85rem;
}

/* ==========================================================================
   PAGINATION (Blocksy)
   ========================================================================== */
.ct-pagination a,
.ct-pagination span,
.pagination a,
.pagination span {
  background-color: transparent;
  border: 1px solid var(--kh-border-strong);
  border-radius: 0;
  color: var(--kh-ink);
  padding: 0.6rem 1rem;
  font-family: var(--theme-fontFamily);
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.ct-pagination .current,
.pagination .current {
  background-color: var(--kh-ink);
  color: var(--kh-cream);
  border-color: var(--kh-ink);
}

/* ==========================================================================
   FORMULAIRES
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea,
select {
  background-color: var(--kh-white);
  border: 1px solid var(--kh-border-strong);
  border-radius: 0;
  font-family: var(--theme-fontFamily);
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  color: var(--kh-ink);
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--kh-clay);
  outline: none;
  box-shadow: none;
}

label {
  font-family: var(--theme-fontFamily);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--kh-stone);
  font-weight: 500;
}

/* ==========================================================================
   BADGES DE CATÉGORIE — Tags piliers
   À utiliser via classes : .cat-maison, .cat-cuisine, .cat-bienetre, .cat-rangement
   ========================================================================== */
.cat-maison    { background-color: var(--kh-maison);    color: var(--kh-ink);   }
.cat-cuisine   { background-color: var(--kh-cuisine);   color: var(--kh-cream); }
.cat-bienetre  { background-color: var(--kh-bienetre);  color: var(--kh-ink);   }
.cat-rangement { background-color: var(--kh-rangement); color: var(--kh-cream); }

.cat-tag {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-family: var(--theme-fontFamily);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  margin: 0.2rem;
  text-decoration: none;
}

/* ==========================================================================
   ESPACEMENTS — Cohérence avec brand kit
   ========================================================================== */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE — ajustements mobile
   ========================================================================== */
@media (max-width: 720px) {
  body { font-size: 15px; }

  h1, .entry-title { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .site-title { font-size: 1.5rem; }

  .entry-content { padding: 2rem 1rem; }

  .ct-button,
  .btn,
  button:not(.ct-toggle-dropdown-mobile) {
    padding: 0.85rem 1.5rem;
    font-size: 0.72rem;
  }
}
