/* =========================================================
   PAGE TEFILOT — VERSION STYLÉE COHÉRENTE
   Design moderne qui respecte l'identité visuelle du site
   Fond clair + effets premium + lisibilité parfaite
   ========================================================= */



/* =========================================================
   00) VARIABLES — Palette harmonieuse
   ========================================================= */
:root{
  /* Couleurs principales */
  --color-text: #1A1F36;
  --color-text-light: rgba(26, 31, 54, 0.7);
  --color-gold: #C6A664;
  --color-gold-light: #D4B574;
  --color-gold-dark: #B39553;
  
  /* Backgrounds */
  --bg-primary: #FEFDFB;
  --bg-card: #FFFFFF;
  
  /* Accents colorés pour icônes */
  --accent-hebrew: #FF8C42;
  --accent-phonetic: #E94B97;
  --accent-audio: #22C55E;
  --accent-francais: #0055A4;
  
  /* Spacing & Border */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   10) HERO — Breadcrumbs + Titre
   ========================================================= */
.chiratorah-breadcrumbs{
  margin: 0 0 20px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

.chiratorah-breadcrumbs .crumb{
  color: rgba(198, 166, 100, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.chiratorah-breadcrumbs .crumb:hover{
  color: var(--color-gold);
}

.chiratorah-breadcrumbs .crumb-sep{
  color: rgba(198, 166, 100, 0.4);
  margin: 0 6px;
}

.chiratorah-breadcrumbs .crumb-current{
  color: var(--color-gold);
  font-weight: 700;
}

.tefilot-hero .titre_tefilot_page{
  margin: 0 0 16px 0;
  color: var(--color-text);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  display: inline-block;
}

/* Effet de soulignement doré animé */
.tefilot-hero .titre_tefilot_page::after{
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  opacity: 0.8;
}

.tefilot-hero .descriptif_tefilot_hub{
  margin: 16px 0 0 0;
  max-width: 750px;
  color: var(--color-text-light);
  line-height: 1.75;
  font-size: 1.05rem;
  font-weight: 400;
}

/* Ajustement du positionnement des titres force left */
.tefilot-hero .titre_tefilot_page {
  align-self: flex-start !important;
  justify-self: start !important;
  width: 100%;
}

/* =========================================================
   20) ROW — Fond avec motif géométrique subtil
   ========================================================= */
.tefilot_row{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  
  background: 
    linear-gradient(135deg, rgba(198, 166, 100, 0.03) 0%, transparent 50%),
    linear-gradient(225deg, rgba(212, 181, 116, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(198, 166, 100, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(212, 181, 116, 0.06) 0%, transparent 40%),
    var(--bg-primary);
  
  padding: 60px 0 60px;
}

/* Motif géométrique en SVG */
.tefilot_row::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(198, 166, 100, 0.02) 50px, rgba(198, 166, 100, 0.02) 51px),
    repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(198, 166, 100, 0.02) 50px, rgba(198, 166, 100, 0.02) 51px);
  opacity: 0.5;
  pointer-events: none;
}

/* Effet de dégradé subtil en overlay */
.tefilot_row::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(198, 166, 100, 0.04) 100%);
  pointer-events: none;
}


/* =========================================================
   30) CONTENEUR — Box épurée et élégante
   ========================================================= */
.tefilot_hub_section{
  width: min(1300px, 92%);
  margin: 0 auto;
  padding: 48px;
  position: relative;
  
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFB 55%, #F6F7F9 100%);
  
  border: 2px solid rgba(198, 166, 100, 0.15);
  box-shadow:
    0 28px 80px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.85);
}

/* Bordure dorée animée en haut */
.tefilot_hub_section::before{
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--color-gold-light) 20%, 
    var(--color-gold) 50%, 
    var(--color-gold-light) 80%, 
    transparent
  );
  border-radius: 0 0 2px 2px;
}

.tefilot_hub_section .tefilot-hub{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  --search-ico: rgba(198, 166, 100, 0.55);
  --search-ico-focus: rgba(198, 166, 100, 0.95);
}

/* =========================================================
   40) SEARCH — Barre de recherche moderne
   ========================================================= */
.tefilot_hub_section #tefilot-search{
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 0 32px 0;
  
  padding: 18px 24px 18px 60px;
  border-radius: var(--radius-lg);
  
  background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
  
  border: 2px solid rgba(198, 166, 100, 0.2);
  
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  
  box-shadow: 
    var(--shadow-md),
    inset 0 2px 4px rgba(0, 0, 0, 0.02);
  
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tefilot_hub_section #tefilot-search::placeholder{
  color: rgba(26, 31, 54, 0.4);
  font-weight: 400;
}

/* Focus élégant */
.tefilot_hub_section #tefilot-search:focus{
  background: #FFFFFF;
  border-color: var(--color-gold);
  box-shadow:
    0 0 0 4px rgba(198, 166, 100, 0.12),
    var(--shadow-lg);
  transform: translateY(-2px);
}

/* Icône de recherche */
.tefilot_hub_section .tefilot-hub::before{
  content: "";
  position: absolute;
  left: 24px;
  top: 22px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--search-ico);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.25s ease;
}

.tefilot_hub_section .tefilot-hub::after{
  content: "";
  position: absolute;
  left: 38px;
  top: 36px;
  width: 10px;
  height: 3px;
  background: var(--search-ico);
  border-radius: 2px;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 2;
  transition: background 0.25s ease;
}

@supports selector(.tefilot-hub:has(#tefilot-search:focus)){
  .tefilot_hub_section .tefilot-hub:has(#tefilot-search:focus){
    --search-ico: var(--search-ico-focus);
  }
}



/* =========================================================
   50) FILTERS — Pills élégants
   ========================================================= */
.tefilot_row .tefilot-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 40px 0;
}

.tefilot_row .tefilot-filters button{
  appearance: none;
  cursor: pointer;
  
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
  color: var(--color-text);
  
  border: 2px solid rgba(198, 166, 100, 0.2);
  
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  
  box-shadow: var(--shadow-sm);
  
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Effet au survol */
.tefilot_row .tefilot-filters button:hover{
  transform: translateY(-2px);
  border-color: var(--color-gold);
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
  box-shadow: 
    var(--shadow-md),
    0 0 0 2px rgba(198, 166, 100, 0.1);
}

.tefilot_row .tefilot-filters button.active{
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  color: #FFFFFF;
  border-color: var(--color-gold-dark);
  box-shadow: 
    var(--shadow-md),
    0 4px 12px rgba(198, 166, 100, 0.3);
  font-weight: 800;
}

.tefilot_row .tefilot-filters button:active{
  transform: translateY(0px);
}


/* =========================================================
   60) GRID — Disposition masonry
   ========================================================= */
.tefilot_row .tefilot-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-top: 0;
}


/* =========================================================
   70) CARDS — Cartes avec effets de profondeur
   ========================================================= */
.tefilot_row .tefila-item{
  border-radius: var(--radius-lg);
  padding: 28px;
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  
  text-decoration: none;
  color: var(--color-text);
  
  background: 
    linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 50%, #F9F9F9 100%);
  
  border: 1.5px solid rgba(198, 166, 100, 0.15);
  
  box-shadow: 
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Bande dorée en haut de la carte */
.tefilot_row .tefila-item::before{
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
	background: linear-gradient(90deg, 
    transparent, 
    var(--color-gold-light) 20%, 
    var(--color-gold) 50%, 
    var(--color-gold-light) 80%, 
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Glow effect au survol */
.tefilot_row .tefila-item::after{
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 30% 20%,
      rgba(198, 166, 100, 0.16) 0%,
      transparent 45%
    );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tefilot_row .tefila-item:hover{
  transform: translateY(-3px) scale(1.01);
  border-color: var(--color-gold);
  background: #FFFFFF;
  box-shadow: 
    var(--shadow-xl),
    0 0 0 1px rgba(198, 166, 100, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.tefilot_row .tefila-item:hover::before{
  opacity: 1;
}

.tefilot_row .tefila-item:hover::after{
  opacity: 1;
}

.tefilot_row .tefila-item__title{
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.3px;
  line-height: 1.3;
  color: var(--color-text);
  
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  
  position: relative;
  z-index: 1;
  
  transition: color 0.3s ease;
}

.tefilot_row .tefila-item:hover .tefila-item__title{
  color: var(--color-gold-dark);
}


/* =========================================================
   80) ICÔNES — Design moderne avec gradients
   ========================================================= */
.tefilot_row .tefila-item__icons{
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.tefilot_row .tefila-icon{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: #FFFFFF;
  border: 2.5px solid currentColor;
  
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Effet de halo au survol */
.tefilot_row .tefila-icon::before{
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tefilot_row .tefila-item:hover .tefila-icon{
  transform: translateY(0px) scale(1);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 0 0 3px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.tefilot_row .tefila-item:hover .tefila-icon::before{
  opacity: 0.25;
}

.tefilot_row .tefila-icon svg{
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.tefilot_row .tefila-item:hover .tefila-icon svg{
  transform: scale(1);
}

.tefilot_row .tefila-icon text{
  fill: currentColor;
  font-weight: 800;
  font-size: 19px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  z-index: 1;
}

/* ========== HÉBREU — Orange vibrant ========== */
.tefilot_row .tefila-icon--he{
  color: var(--accent-hebrew);
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.12), rgba(255, 140, 66, 0.06));
}

.tefilot_row .tefila-icon--he text{
  font-family: "Noto Serif Hebrew", "SBL Hebrew", serif;
  font-size: 22px;
}

/* ========== PHONÉTIQUE — Magenta ========== */
.tefilot_row .tefila-icon--ph{
  color: var(--accent-phonetic);
  background: linear-gradient(135deg, rgba(233, 75, 151, 0.12), rgba(233, 75, 151, 0.06));
}

.tefilot_row .tefila-icon--ph text{
  font-size: 22px;
}

/* ========== FRANÇAIS — Bleu France ========== */
.tefilot_row .tefila-icon--fr{
  color: var(--accent-francais);
  background: linear-gradient(135deg, rgba(0,85,164,0.12), rgba(0,85,164,0.06));
}
.tefilot_row .tefila-icon--fr text {
  font-size: 22px;
}

/* ========== AUDIO — Vert ========== */
.tefilot_row .tefila-icon--au{
  color: var(--accent-audio);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.06));
}

.tefilot_row .tefila-item:hover .tefila-icon--au{
  animation: pulse-subtle 2s ease-in-out infinite;
}


/* =========================================================
   90) RESPONSIVE
   ========================================================= */

/*HERO ROW MARGIN FOR TABLET*/
@media (max-width: 1024px){

 /* Remonte le hero pour le fondre dans le menu */
  .tefilot-hero {
      padding: 0px;
      margin-top: -35px;
    }

  /* ajuste le positionnement du titre page categorie relatif */
  .wp-block-kadence-advancedheading.kt-adv-heading1939_071444-aa, .wp-block-kadence-advancedheading.kt-adv-heading1939_071444-aa[data-kb-block="kb-adv-heading1939_071444-aa"]{
    position: relative;
    top: 38px; /* ajuste la valeur */
  }

  /* ajuste le positionnement des titres relatif */
  .wp-block-kadence-advancedheading.kt-adv-heading1939_4ee85c-3f, .wp-block-kadence-advancedheading.kt-adv-heading1939_4ee85c-3f[data-kb-block="kb-adv-heading1939_4ee85c-3f"] 
  {
    position: relative;
    top: 49px; /* ajuste la valeur */
  }

  .tefilot_row {
    padding: 40px 0 40px;
  }

  /* Padding sous titre top */
   .wp-block-kadence-advancedheading.kt-adv-heading1939_a61ec7-f8_0, .wp-block-kadence-advancedheading.kt-adv-heading1939_a61ec7-f8_0[data-kb-block="kb-adv-heading1939_a61ec7-f8_0"] {
    padding-top : 15px !important;
  }
}

/*HERO ROW MARGIN FOR MOBILE*/
@media (max-width: 768px){
 
  /* masque le descriptif */
  .tefilot-hero .descriptif_tefilot_hub{
    display: none;
  }

  .tefilot_row {
    padding: 30px 0 30px;
  }
}
/*---- END HERO SETIINGS -----*/



@media (max-width: 4500px){
  .tefilot_hub_section{
    width: min(1800px, 90%);
    padding: 30px;
  }
  .tefilot_row .tefilot-list{
    grid-template-columns: repeat(auto-fill, minmax(450px, 2fr));
    gap: 20px;
  }

 
}

@media (min-width: 2000px){
.wp-block-kadence-advancedheading.kt-adv-heading1939_4ee85c-3f, .wp-block-kadence-advancedheading.kt-adv-heading1939_4ee85c-3f[data-kb-block="kb-adv-heading1939_4ee85c-3f"] , .tefilot-hero .titre_tefilot_page , .tefilot-hero .descriptif_tefilot_hub {
    
	margin-left: -230px;
}
}

@media (max-width: 850px)
{
/* reduction font size hero row title */
  .wp-block-kadence-advancedheading.kt-adv-heading1939_071444-aa, .wp-block-kadence-advancedheading.kt-adv-heading1939_071444-aa[data-kb-block="kb-adv-heading1939_071444-aa"] {
	font-size : 28px !important;
  }
}

@media (max-width: 768px){
  .tefilot_row{
    padding: 20px 0 20px;
  }
  
  .tefilot_hub_section{
    padding: 32px;
  }
  
  .tefilot_hub_section #tefilot-search{
    padding: 16px 20px 16px 54px;
    border: 1.5px solid rgba(198, 166, 100, 0.18);
  }
  
  .tefilot_hub_section .tefilot-hub::before{
    left: 20px;
    top: 18px;
    width: 16px;
    height: 16px;
  }
  
  .tefilot_hub_section .tefilot-hub::after{
    left: 32px;
    top: 30px;
  }
  
  .tefilot_row .tefilot-filters{
    gap: 12px;
    margin-bottom: 32px;
  }
  
  .tefilot_row .tefilot-filters button{
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .tefilot_row .tefilot-list{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tefilot_row .tefila-item{
    padding: 24px;
  }
  
}

@media (max-width: 600px){

   .tefilot_hub_section{
    padding: 20px;
  }

 .tefilot_row .tefila-item__title{
  font-weight: 600;
  font-size: 16px;
  }
  
  .tefilot_row .tefila-item__icons{
    gap: 12px;
  }

  .tefilot_row .tefilot-filters button{
    font-weight: 600;
    font-size: 10px;
    padding : 10px;
  }

   .tefilot_row .tefilot-filters{
    gap : 8px;
  }

}

@media (max-width: 480px){
  .tefilot_hub_section{
    padding: 20px;
    padding-top : 0px;
  }
  
  .tefilot_row .tefila-item{
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px;
	  padding-left: 20px;
   
  }
  
  .tefilot_row .tefila-item__title{
    font-weight: 600;
    font-size: 14px;
  }

  .tefilot_row .tefila-item__icons{
    gap: 8px; 
  }
  

  .tefilot_row .tefila-icon{
    width: 25px;
    height: 25px;
  }

  .tefilot_row .tefila-icon svg{
    width: 15px;
    height: 15px;
  }

  .tefilot-hero .descriptif_tefilot_hub{
    display: none;
  }

  .tefilot_hub_section #tefilot-search{
  font-size: 14px;
  } 
}


@media (max-width: 390px){
/* reduction font size hero row title */
  .wp-block-kadence-advancedheading.kt-adv-heading1939_071444-aa, .wp-block-kadence-advancedheading.kt-adv-heading1939_071444-aa[data-kb-block="kb-adv-heading1939_071444-aa"] {
	font-size : 20px !important;
}

.tefilot_hub_section #tefilot-search{
        font-size: 12px;
    }

}

/* =========================================================
   100) DÉTAILS & POLISH
   ========================================================= */

/* Sélection personnalisée */
::selection {
  background: rgba(198, 166, 100, 0.25);
  color: var(--color-text);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}