/* =========================================================
   00) SINGLE TEFILA — Style cohérent avec le HUB
   ========================================================= */

:root{
  --color-text: #1A1F36;
  --color-text-light: rgba(26, 31, 54, 0.7);
  --color-gold: #C6A664;
  --color-gold-light: #D4B574;
  --color-gold-dark: #B39553;

  --bg-primary: #FEFDFB;
  --bg-card: #FFFFFF;

  --accent-hebrew: #FF8C42;
  --accent-phonetic: #E94B97;
  --accent-audio: #22C55E;
  --accent-francais: #0055A4;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --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);
  
}

/* =========================================================
   FONT-FACE — TaameyFrankCLM
   ========================================================= */
@font-face {
  font-family: 'TaameyFrankCLM';
  src: url('../fonts/TaameyFrankCLM-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TaameyFrankCLM';
  src: url('../fonts/TaameyFrankCLM-MediumOblique.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   00) SUPPRIMER LE MARGIN DE CONTENT-AREA
   ========================================================= */
body.single-tefila #primary.content-area,
body.single-tefila .content-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* =========================================================
  01) CREATE A CLEAR SPACE AT THE BOTTOM OF THE PAGE
========================================================= */

   .clear_bottom {
  width: 100%;
  height: 20px;
  background: #FFFFFF;
}


/* =========================================================
   10) BREADCRUMBS (dans la section blanche)
   ========================================================= */
.tefila-section .chiratorah-breadcrumbs {
  margin: 0 0 24px 0;
  padding: 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;
}


/* =========================================================
   15) MASQUER ÉLÉMENTS KADENCE AU-DESSUS DU HERO
   ========================================================= */
/* Masquer le titre de page par défaut */
.single-tefila .entry-hero,
.single-tefila .entry-header,
.single-tefila .content-title-style-boxed,
body.single-tefila #inner-wrap > .entry-hero {
  display: none !important;
}


/* =========================================================
   20) HERO — Identique au hub (photo background + overlay gradient)
   ========================================================= */
.tefilot-hero {
  position: relative;
  width: 100%;
  padding: 80px 0 100px;
  min-height: 400px;
  /* Photo en background (exactement comme le hub) */
  background-size: cover;
  background-position: 18% 32%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  
  overflow: hidden;
}

/* Overlay gradient gris qui se fond dans la photo */
.tefilot-hero__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(125deg, rgb(247, 250, 252) 35%, rgba(247, 250, 252, 0) 100%);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.tefilot-hero__container {
  width: min(1400px, 90%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.tefilot-hero__row {
  display: block;  /* ← Pas de grid */
}

.tefilot-hero__content {
  max-width: 65%;
  padding-left: 0;
}

/* Label "TEFILOT" - SPAN */
.tefilot-hero__label {
  display: block;
  font-size: 17px;
  font-weight: normal;
  line-height: 1.6;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 25px 0 20px 0;
  text-align: left;
}


/* Titre - H1 */
.tefilot-hero h1.tefilot-hero__title,
.tefilot-hero h1.titre_tefilot_page {
  margin: 0 0 25px 0;
  color: #111;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.05;
  text-transform: uppercase;
  position: relative;
  display: block;
  text-align: left;
}

/* Trait doré - paragraphe avec ::after */
.tefilot-hero__title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  max-width: 480px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: 2px;
  opacity: 0.8;
}

/* Description - paragraphe */
.tefilot-hero
.descriptif_tefilot_hub {
  margin: 30px 0 0 0;
  max-width: 750px;
  color: rgba(0, 0, 0, 0.70);
  line-height: 1.75;
  font-size: 1.0rem;
  font-weight: 400;
  text-align: left;
}

/* Colonne droite : Image */
.tefilot-hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.tefilot-hero__image-element {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}




/* =========================================================
   30) ROW + SECTION (identique au hub)
   ========================================================= */
.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: 80px 0 100px;
}

.tefilot_row::before {
  content: "";
  display: block;
  width: 100%;
  height: 10px;
  background: #FFFFFF;
  position: absolute;
  top: -10px;
  left: 0;
  z-index: 10;
}

.tefilot_row::after {
  content: "";
  display: block;
  width: 100%;
  height: 10px;
  background: #FFFFFF;
  position: absolute;
  bottom: -10px;
  left: 0;
  z-index: 10;
}

.tefila-section{
  width: min(1300px, 92%);
  margin: 0 auto;
  padding: 20px;
  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);
}

.tefila-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;
}

/* =========================================================
   40) TOP BAR: Image auteur 
   ========================================================= */

   .tefila-top{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  margin-bottom: 16px;
  margin-right: 5px;
}

.tefila-author {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tefila-author__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
  box-shadow: 
    0 4px 12px rgba(198, 166, 100, 0.3),
    0 0 0 6px rgba(198, 166, 100, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tefila-author__img:hover {
  transform: scale(1.05);
  box-shadow: 
    0 6px 16px rgba(198, 166, 100, 0.4),
    0 0 0 8px rgba(198, 166, 100, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

/* =========================================================
   50) ICONS (reprise HUB)
   ========================================================= */
.tefila-features{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

.tefila-icon{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  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);
  position:relative;
}

.tefila-icon svg{
  width: 28px;
  height: 28px;
  display:block;
  fill: currentColor;
}

.tefila-icon text{
  fill: currentColor;
  font-weight: 800;
}

.tefila-icon--he{
  color: var(--accent-hebrew);
  background: linear-gradient(135deg, rgba(255,140,66,0.12), rgba(255,140,66,0.06));
}
.tefila-icon--he text{
  font-family: "Noto Serif Hebrew", "SBL Hebrew", serif;
  font-size: 22px;
}

.tefila-icon--ph{
  color: var(--accent-phonetic);
  background: linear-gradient(135deg, rgba(233,75,151,0.12), rgba(233,75,151,0.06));
}
.tefila-icon--ph text{
  font-size: 21px;
}

.tefila-icon--fr{
  color: var(--accent-francais);
  background: linear-gradient(135deg, rgba(0,85,164,0.12), rgba(0,85,164,0.06));
}
.tefila-icon--fr text{
  font-size: 21px;
}

.tefila-icon--au{
  color: var(--accent-audio);
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.06));
}

/* =========================================================
   60) TOGGLES - TAILLES RÉDUITES + RESPONSIVE
   ========================================================= */

.tefila-controls {
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  margin: 0 0 20px;
  width: 100%;
}

.tefila-toggle{
  flex: 1 1 0;
  min-width: 0;
  height: clamp(44px, 2.2vw, 50px);
  padding: 6px 12px;
  white-space: nowrap;
  appearance: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.8vw, 10px);
  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.25);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  transition: all .25s ease;
}

.tefila-toggle:hover{
  transform: translateY(-1px);
  border-color: var(--color-gold);
  background: #FAFAFA;
  box-shadow: var(--shadow-md);
}

.tefila-toggle.is-active{
  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);
  color: var(--color-text);
  border-color: var(--color-gold);
  border-width: 2px;
  box-shadow: 
    var(--shadow-md), 
    0 0 0 3px rgba(198,166,100,0.15),
    inset 0 1px 2px rgba(198,166,100,0.1);
  font-weight: 700;
}

/* Icônes : TAILLE RÉDUITE */
.tefila-toggle__ico{
  width: clamp(26px, 2vw, 32px);
  height: clamp(26px, 2vw, 32px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tefila-toggle__ico svg{
  width: 85%;
  height: 85%;
}

/* Séparateur / */
.tefila-toggle__sep{
  font-weight: 400;
  font-size: 16px;
  opacity: 0.3;
  margin: 0 -2px;
  line-height: 1;
  display: inline-block;
  transition: font-size 0.15s ease, color 0.15s ease;
}

.tefila-toggle:hover .tefila-toggle__sep {
  color: var(--color-text);
}


/* =========================================================
   70) IMAGE
   ========================================================= */
.tefila-media{
  margin: 0 0 32px 0;
}
.tefila-media__img{
  width:100%;
  height:auto;
  display:block;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(198,166,100,0.15);
  box-shadow: var(--shadow-md);
}
/* =========================================================
   80) AUDIO PLAYER + AUTEUR - TOUJOURS SUR UNE LIGNE
   ========================================================= */

.tefila-audio{
  margin: 0 0 20px 0;
}

.tefila-player{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
  border: 2px solid rgba(198,166,100,0.2);
  box-shadow: var(--shadow-md);
  flex-wrap: nowrap; /* JAMAIS de retour à la ligne */
}

/* Bouton play : NOIR → Doré hover → Doré foncé actif */
.tefila-player__btn{
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  background: #2A2A2A;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all .2s ease;
  position: relative;
  padding: 0 !important;
}

.tefila-player__btn:hover{
  background: var(--color-gold-light);
  box-shadow: 0 4px 10px rgba(198,166,100,0.4);
  transform: scale(1.05);
}

.tefila-player__btn.is-playing{
  background: var(--color-gold-dark);
  box-shadow: 0 4px 12px rgba(198,166,100,0.5);
}

/* ICÔNE PLAY (triangle) */
.tefila-player__btn::before{
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #FFFFFF;
  transition: opacity 0.2s;
}

/* ICÔNE PAUSE (deux barres) */
.tefila-player__btn::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-left: 3px solid #FFFFFF;
  border-right: 3px solid #FFFFFF;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.2s;
}

/* État PLAYING : cache play, montre pause */
.tefila-player__btn.is-playing::before{
  opacity: 0;
}

.tefila-player__btn.is-playing::after{
  opacity: 1;
}

/* Conteneur barre + temps (flex vertical) */
.tefila-player__bar{
  flex: 1 1 auto; /* Peut se compresser */
  min-width: 100px; /* Minimum absolu */
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 17px;
}

/* Wrapper de la barre (pour avoir le fond + le remplissage) */
.tefila-player__progress-wrapper{
  position: relative;
  width: 100%;
  height: 4px; /* Réduit de 6px à 4px */
  background: rgba(198, 166, 100, 0.15);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

/* Barre de remplissage */
.tefila-player__progress-fill{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* Input range (invisible, sert juste pour l'interaction) */
.tefila-player__range{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

/* Temps */
.tefila-player__time{
  font-size: 0.75rem;
  color: var(--color-text-light);
  display: flex;
  gap: 4px;
  align-items: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Vitesse (colonne verticale compacte) */
.tefila-player__speed{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.tefila-player__speedlbl{
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  white-space: nowrap;
}

.tefila-player__speed select{
  border-radius: 6px;
  border: 1px solid rgba(198,166,100,0.3);
  padding: 3px 6px; /* Réduit de 4px 8px */
  background: #fff;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.7rem; /* Réduit de 0.75rem */
  cursor: pointer;
  min-width: 50px; /* Réduit de 55px */
  text-align: center;
}

/* AUTEUR : à droite avec séparateur élégant */
.tefila-player__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  margin-left: 4px;
  border-left: 2px solid rgba(198, 166, 100, 0.25);
  flex-shrink: 0;
  white-space: nowrap;
}

.tefila-player__author-photo {
  width: 36px;
  height: 36px;
  min-width: 36px; /* Force la taille */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
  box-shadow: 0 2px 6px rgba(198, 166, 100, 0.3);
  flex-shrink: 0;
}

.tefila-player__author-name {
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  white-space: nowrap;
}


/* =========================================================
   85) SLIDER REDUCTION TEXTE ET MEDIA SLIDER
   ========================================================= */

.tefila-font-control {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 350px; /* Limite la largeur */
  margin: 0 auto 20px auto; /* Centre le contrôle */
  padding: 5px 0px;
  background: transparent ;
  border: 0px ;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.tefila-font-control__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.tefila-font-control__label span {
  display: inline-block;
}

.tefila-font-control__icon {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.tefila-font-control__slider-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0; /* Permet la compression */
}

.tefila-font-control__value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
}

/* Slider custom - Plus fin et élégant */
.tefila-font-control__slider {
  flex: 1;
  height: 4px;
  border-radius: 10px !important;
  background: rgba(198, 166, 100, 0.15);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  touch-action: none; /* Empêche les gestes par défaut */
  pointer-events: auto; /* Force les événements */
}


/* Track Firefox */
.tefila-font-control__slider::-moz-range-track {
  height: 4px;
  background: rgba(198, 166, 100, 0.15);
  border-radius: 2px;
}

/* Thumb Chrome/Safari */
.tefila-font-control__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(198,166,100,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tefila-font-control__slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 10px rgba(198,166,100,0.5);
}

.tefila-font-control__slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

/* Thumb Firefox */
.tefila-font-control__slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(198,166,100,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tefila-font-control__slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 10px rgba(198,166,100,0.5);
}

.tefila-font-control__slider::-moz-range-thumb:active {
  transform: scale(1.1);
}

/* Bouton reset - Icône circulaire */
.tefila-font-control__reset {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(198,166,100,0.3);
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1;
}

.tefila-font-control__reset:hover {
  background: var(--color-gold-light);
  color: #fff;
  border-color: var(--color-gold);
  transform: rotate(180deg);
}

/* Focus : Pas de bleu, style doré */
.tefila-font-control__reset:focus,
.tefila-font-control__reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(198,166,100,0.25);
  border-color: var(--color-gold);
}

.tefila-font-control__reset:active {
  transform: scale(0.95);
}

/* Responsive SLIDER TEXTE */
@media (max-width: 768px) {
  .tefila-font-control {
    max-width: 75%;
    gap: 10px;
    padding: 8px 12px;
  }
  
  .tefila-font-control__label span {
    display: none;
  }
  
  .tefila-font-control__icon {
    width: 18px;
    height: 18px;
  }

  .tefila-font-control__slider {
    height: 4px; /* Visuel reste 4px */
    padding: 15px 0; /* ← Zone tactile ÉNORME : 34px */
    margin: -15px 0; /* ← Compense pour garder position */
  }
  
  .tefila-font-control__slider::-webkit-slider-thumb {
    width: 22px; /* Plus gros sur mobile */
    height: 22px;
  }
  
  .tefila-font-control__slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 500px) {
  .tefila-font-control__slider {
    padding: 18px 0; /* ← Zone encore PLUS grande : 40px */
    margin: -18px 0;
  }
  
  .tefila-font-control__slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }
  
  .tefila-font-control__slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
  
  .tefila-font-control__value {
    font-size: 0.65rem;
    min-width: 35px;
  }
  
  .tefila-font-control__reset {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
}


/* =========================================================
   90) GRID (Hebrew / Phonetic / French)
   ========================================================= */
.tefila-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* PAS de règle [data-view="hebrew"] ici, tout est géré par le JS */

.tefila-col{
  border-radius: var(--radius-lg);
  padding: 20px;
  padding-bottom : 10px;
  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);
}

/* =========================================================
   91) FONTS (Hebrew / Phonetic & Comments) 
   ========================================================= */

  /* =========================================================
   Detail des styles :
    - Hébreu : .tefila-hebrew
    .fr-title : Titres explicatifs en français
    .fr-var : Explications détaillées en français
    .he-var1 : Variante hébreu (même taille, fond grisé)
    .he-var2 : Variante hébreu exceptionnelle (plus petit, fond grisé)

    - Phonétique : .tefila-phonetic
    .fr-title : Titres explicatifs en français
    .fr-var : Explications détaillées en français
    .ph-var1 : Variante phonétique (même taille, fond grisé)
    .ph-var2 : Variante phonétique exceptionnelle (plus petit, fond grisé)  

    - Français : .tefila-french
    .fr-title : Titres explicatifs en français
    .fr-var : Explications détaillées en français
    .fr-var1 : Variante française (même taille, fond grisé)
    .fr-var2 : Variante française exceptionnelle (plus petit, fond grisé)
    
   ========================================================= */


/* ========== SECTION HÉBREU ========== */
.tefila-hebrew {
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    font-family: "TaameyFrankCLM", "Noto Sans Hebrew", system-ui, sans-serif;
}

/*  FR-TITLE : Titres explicatifs en français  */
.tefila-hebrew [lang="fr"],
.tefila-hebrew [lang="en"],
.tefila-hebrew .fr-title {
  direction: ltr;
  text-align: right;
  font-family: var(--global-body-font-family) !important;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin: 0.5rem 0 0.3rem 0;
}

/* FR-VAR : Explications détaillées en français  */
.tefila-hebrew .fr-var {
  direction: ltr;
  text-align: right;
  font-family: var(--global-body-font-family) !important;
  color: rgba(26, 31, 54, 0.7);
  font-style: italic;
  margin: 0.3rem 0;
  font-weight: 600;
}

/* HE-VAR1 : Variante hébreu (même taille, fond grisé) */
.tefila-hebrew .he-var1 {
  direction: rtl;
  text-align: right;
  font-family: "TaameyFrankCLM", "Noto Sans Hebrew", system-ui, sans-serif;
  background: rgba(0, 0, 0, 0.04);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0.5rem 0;
}

/* HE-VAR2 : Variante hébreu exceptionnelle (plus petit, fond grisé) */
.tefila-hebrew .he-var2 {
  direction: rtl;
  text-align: right;
  font-family: "TaameyFrankCLM", "Noto Sans Hebrew", system-ui, sans-serif;
  background: rgba(0, 0, 0, 0.04);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0.5rem 0;
}
/* ========== SECTION PHONÉTIQUE & FRANCAISE ========== */

.tefila-phonetic,
.tefila-french {
  direction: ltr;
  text-align: left;
  font-family: var(--global-body-font-family) !important;
  color: var(--color-text);
}

/* FR-TITLE : Titres explicatifs (même style que dans hébreu) */
/* Titres dans la version française */
.tefila-phonetic .fr-title,
.tefila-french .fr-title {
  direction: ltr;
  text-align: left;
  font-family: var(--global-body-font-family) !important;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin: 0.5rem 0 0.3rem 0;
}

/* FR-VAR : Explications détaillées - phonetique & francais */
.tefila-phonetic .fr-var,
.tefila-french .fr-var  {
  font-family: var(--global-body-font-family);
  color: rgba(26, 31, 54, 0.7);
  font-style: italic;
  margin: 0.3rem 0;
  font-weight: 600;
}

/* PH-VAR1 : Variante phonétique (même taille, fond grisé) */
/* PH-VAR2 : Variante phonétique exceptionnelle (plus petit, fond grisé) */
/* FR-VAR1 : Variante phonétique (même taille, fond grisé) */
/* FR-VAR2 : Variante phonétique exceptionnelle (plus petit, fond grisé) */
.tefila-phonetic .ph-var1,
.tefila-phonetic .ph-var2,
.tefila-french .fr-var1,
.tefila-french .fr-var2 {
  font-family: var(--global-body-font-family) !important;
  background: rgba(0, 0, 0, 0.04);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 0.5rem 0;
}

/* ========== SECTION PIRKEI AVOT ========== */
.tefila-hebrew .he-perek {
  direction: rtl;
  text-align: center;
	color: var(--color-gold-dark);
  font-family: "TaameyFrankCLM", "Noto Sans Hebrew", system-ui, sans-serif;
  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);
	font-size : 34px;
  padding: 0px 0px;
  border-radius: 8px;
  margin: 0.5rem 0;
	margin-bottom: 10px;
}

.tefila-french .fr-perek,
.tefila-phonetic .ph-perek {
  direction: ltr;
  text-align: center;
	color: var(--color-gold-dark);
  font-family: var(--global-body-font-family);
  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);
	font-size : 25px;
  padding: 0px 0px;
  border-radius: 8px;
  margin: 0.5rem 0;
	margin-bottom: 10px;
}

.tefila-hebrew .he-michna {
	text-align: right;
	font-size : 30px;
	color: var(--color-gold-dark);
	margin-top : -20px;	
}

.tefila-french .fr-michna,
.tefila-phonetic .ph-michna,
.tefila-phonetic .phonetic-michna {
	text-align: left;
	font-size : 18px;
	color: var(--color-gold-dark);
	margin-top : -20px;	
}


.tefila-hebrew .he-first-perek
{
	 text-align: center;
}

.tefila-french .fr-first-perek,
.tefila-phonetic .ph-first-perek
{
  font-size: calc(var(--font-hebrew-base) * var(--font-ratio-latin) * 0.85) !important;
	text-align: center;
}

.tefila-hebrew .he-last-perek {
  direction: rtl;
  text-align: center;
	color: var(--color-gold-dark);
  font-family: "TaameyFrankCLM", "Noto Sans Hebrew", system-ui, sans-serif;
  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);
	font-size: clamp(20px, 4vw, 30px);
  padding: 15px ;
  border-radius: 8px;
  margin: 0.5rem 0;
	margin-bottom: 10px;
}

.tefila-phonetic .ph-last-perek,
.tefila-french .fr-last-perek {
  direction: ltr;
  text-align: center;
	color: var(--color-gold-dark);
  font-family: var(--global-body-font-family);
  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);
	font-size: clamp(14px, 4vw, 22px);
  padding: 15px ;
  border-radius: 8px;
  margin: 0.5rem 0;
	margin-bottom: 10px;
}


.tefila-hebrew .fr-title-center, 
.tefila-phonetic .fr-title-center,
.tefila-french .fr-title-center {
  direction: ltr;
  text-align: center;
  font-family: var(--global-body-font-family) !important;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin: 0.5rem 0 0.3rem 0;
	font-size : 15px;
}


/* =========================================================
   92) FONTS SIZE & CALC (Hebrew / Phonetic & Comments) 
   ========================================================= */

:root {
  --font-hebrew-base: 26px;
  --font-ratio-latin: 0.7;
}

.tefila-hebrew,
.tefila-hebrew .he-var1 {
  font-size: var(--font-hebrew-base)!important;
  line-height: 1.3;
}

.tefila-phonetic,
.tefila-french,
.tefila-phonetic .ph-var1,
.tefila-french .fr-var1 {
  font-size: calc(var(--font-hebrew-base) * var(--font-ratio-latin)) !important; /* 20px */
  line-height: 1.7;
}

.tefila-hebrew .fr-title,
.tefila-phonetic .fr-title,
.tefila-french .fr-title {
  font-size: calc(var(--font-hebrew-base) * 0.62)!important; /* 16px */
  line-height: 2;
}

.tefila-hebrew .he-var2 {
  font-size: calc(var(--font-hebrew-base) * 0.77)!important; /* 20px */
  line-height: 1.3;
}

.tefila-phonetic .ph-var2,
.tefila-french .fr-var2 {
  font-size: calc(var(--font-hebrew-base) * 0.62)!important; /* 16px */
  line-height: 1.7;
}

.tefila-hebrew .fr-var,
.tefila-phonetic .fr-var,
.tefila-french .fr-var {
  font-size: calc(var(--font-hebrew-base) * 0.54)!important; /* 14px */
  line-height: 1.5;
}

/* =========================================================
   93) MARGINS PARAGRAPHES (Hebrew / Phonetic / French)
   ========================================================= */
  
/* Réduire les espaces entre les paragraphes dans l'hébreu */
.tefila-hebrew p {
  margin: 0 0 0.5rem 0; /* Au lieu de margin auto */
}

.tefila-hebrew p.latin-text {
 margin: 0.5rem 0 0.3rem 0; /* Petit espace pour les explications */
}

.tefila-phonetic p {
  margin: 0 0 0.5rem 0; /* Au lieu de margin auto */
}

.tefila-french p {
  margin: 0 0 0.5rem 0; /* Réduire les espaces entre paragraphes */
}
/* =========================================================
   100) RESPONSIVE
   ========================================================= */
/* Au-dessus de 2200px : elargir container */
@media (min-width: 2200px) {
  .tefila-section {
    width: min(2300px, 90%); 
    padding: 36px;
  }
  .tefila-grid {
    gap: 45px;
  }
	.tefila-col{
		padding: 30px;
    padding-bottom : 20px;
	}
}

/* Au-dessus de 1800px : Élargir le container */
@media (min-width: 1800px) {
  .tefila-section {
    width: min(1900px, 90%); 
    padding: 36px; 
  }
  /* Élargir aussi la grille de texte */
  .tefila-grid {
    gap: 45px; /* Augmente l'espace entre les colonnes */
  }
	.tefila-col{
		padding: 30px;
    padding-bottom : 20px;
	}
}

@media (min-width: 1950px) {
.tefilot-hero__content{
margin-left: -250px;
}
}

@media (min-width: 1470px){
  .tefilot-hero__container {
		padding-left: 60px;
	}
  }

@media (max-width: 1024px){
  .tefilot-hero__row {
    grid-template-columns: 65% 35%;
    gap: 30px;
  }
  
  .tefilot-hero__content {
    padding-right: 20px;
  }
  
  .tefila-grid{
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px){


  /* HEADER TRANSPARENT AU-DESSUS DU HERO */
  #masthead,
  .site-header,
  .site-header-wrap,
  .site-header-row-container,
  .site-header-row-container-inner {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* MOBILE */
  .mobile-header,
  .mobile-header-wrap {
    background: transparent !important;
    box-shadow: none !important;
  }

/* HERO ultra compact */
.tefilot-hero {
  padding: 0px;
  margin-top: -80px ;
	min-height: 200px;
}

.tefilot-hero__label {
font-size: 0.7rem;
margin: 90px 0 0 0;
}

.tefilot-hero h1.tefilot-hero__title {
margin: 20px 0 0px 0;
font-size: clamp(1.5rem, 5vw, 2rem);
}

.tefilot-hero__title::after {
bottom: -6px;
height: 3px;
}

.tefilot-hero__description {
margin: 8px 0 0 0;
font-size: 0.85rem;
line-height
: 1.4;
}
/* Overlay vertical */
.tefilot-hero__overlay {
background-image: linear-gradient(125deg, rgb(247, 250, 252) 35%, rgba(247, 250, 252, 0) 100%);
	}
   .tefilot_row {
   padding-top : 30px;
	 padding-bottom : 30px;
  }

}


/* =========================================================
   111) RESPONSIVE TOGGLES
   ========================================================= */
/* BREAKPOINT < 1000px */

/* < 1000px : Grille 3 colonnes */
@media (max-width: 1000px) {
  .tefila-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.5vw, 12px);
  }

  .tefila-toggle {
    width: 100%;
    height: 38px;
  }

  .tefila-toggle__ico {
    width: 30px;
    height: 30px;
  }
}

/* FIX : Force les tailles en dessous de 768px */
@media (max-width: 768px) {
  .tefila-toggle__ico {
    width: 25px !important;
    height: 25px !important;
  }
  
  .tefila-toggle__ico svg {
    width: 18px !important;
    height: 18px !important;
  }
	
	.tefila-toggle{
  height: 38px !important;
	}
}


/* < 700px : CACHE LES TOGGLES 2 COLONNES */
@media (max-width: 700px) {
  /* Cache les toggles avec 2 colonnes */
  .tefila-toggle[data-view="hebrew-phonetic"],
  .tefila-toggle[data-view="hebrew-french"],
  .tefila-toggle[data-view="phonetic-french"] {
    display: none;
  }
  
  /* Grille 3 colonnes (mais avec seulement 3 toggles visibles) */
  .tefila-controls {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tefila-toggle {
    height: 38px;
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .tefila-toggle__ico {
    width: 26px;
    height: 26px;
  }
  
  .tefila-toggle__ico svg {
    width: 18px;
    height: 18px;
  }
}

/* < 500px : Ultra compact */
@media (max-width: 500px) {
  .tefila-toggle {
    height: 33px;
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .tefila-toggle__ico {
    width: 23px;
    height: 23px;
  }
  
  .tefila-toggle__ico svg {
    width: 16px;
    height: 16px;
  }
  
  .tefila-toggle__sep {
    font-size: 14px;
  }
}

/* =========================================================
   112) RESPONSIVE AUDIO PLAYER - COMPRESSION AU LIEU DE WRAP
   ========================================================= */

/* < 1200px : Réduit les éléments progressivement */
@media (max-width: 1200px) {
  .tefila-player {
    gap: 12px;
  }
  
  .tefila-player__author-photo {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  
  .tefila-player__author-name {
    font-size: 0.8rem;
  }
  
  .tefila-player__bar {
    min-width: 80px;
  }
}

/* < 1000px : Réduit encore */
@media (max-width: 1000px) {
  .tefila-player {
    gap: 10px;
    padding: 10px 16px;
  }
  
  .tefila-player__btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
  
  .tefila-player__author-photo {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }
  
  .tefila-player__author-name {
    font-size: 0.75rem;
  }
  
  .tefila-player__bar {
    min-width: 60px;
  }
  
  .tefila-player__speed select {
    min-width: 45px;
    padding: 2px 5px;
    font-size: 0.65rem;
  }
}

/* < 750px : Cache la photo de l'auteur */
@media (max-width: 750px) {
 
  
  .tefila-player__author {
    padding-left: 10px;
    gap: 6px;
  }
}

/* < 520px : Ultra compact, cache le label VITESSE */
@media (max-width: 520px) {
  .tefila-player__speedlbl {
    display: none;
  }
  
  .tefila-player__author-photo {
    display: none;
  } 

  .tefila-player {
    gap: 8px;
    padding: 8px 12px;
  }
  
  .tefila-player__btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }
  
  .tefila-player__btn::before {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #FFFFFF;
  }
  
  .tefila-player__btn::after {
    width: 12px;
    height: 12px;
    border-left: 2.5px solid #FFFFFF;
    border-right: 2.5px solid #FFFFFF;
  }
  
  .tefila-player__speed select {
    min-width: 40px;
    padding: 2px 4px;
  }
}

/* < 600px : Cache l'auteur complètement */
@media (max-width: 400px) {
  .tefila-player__author {
    display: none;
  }
}


/* =========================================================
   113) RESPONSIVE FONT SIZE - VARIABLES PAR BREAKPOINT
   ========================================================= */

/* TABLETTE < 1024 */
@media (max-width: 1024px) {
  :root {

    --font-hebrew-base: 24px;
  }
}

/* SMARTPHONE < 768px */
@media (max-width: 768px) {
  :root {
    --font-hebrew-base: 22px ; 
  }
}

/* PETIT SMARTPHONE < 500px */
@media (max-width: 500px) {
  :root {
    --font-hebrew-base: 20px ; /* Encore plus petit */
  }
}

/* TRES PETIT SMARTPHONE < 3500px */
@media (max-width: 350px) {
  :root {
    --font-hebrew-base: 18px ; /* Encore plus petit */
  }
}


/* =========================================================
   114) RESPONSIVE Espace texte - MOBILE
   ========================================================= */

@media (max-width: 500px) {
  .tefila-section{
    width: min(1300px, 100%);
    margin: 0 0 0 0;
    padding: 6px;
    padding-top : 20px;
    padding-bottom : 20px;
    border-radius: 0px;

  }
  .tefila-grid{
    margin: 0px;
  }
  .tefila-col{
      padding: 8px;
      padding-bottom : 20px;
  }

  .clear_bottom {
    display: none;
  }
}



/* =========================================
   FIX UNIQUE ANTI-FLASH COLONNES (LA BASE)
   ========================================= */

/* Par défaut : on n’affiche QUE la vue demandée */
.tefilot_row[data-default-view="hebrew"] [data-col="phonetic"],
.tefilot_row[data-default-view="hebrew"] [data-col="french"] { display:none; }

.tefilot_row[data-default-view="phonetic"] [data-col="hebrew"],
.tefilot_row[data-default-view="phonetic"] [data-col="french"] { display:none; }

.tefilot_row[data-default-view="french"] [data-col="hebrew"],
.tefilot_row[data-default-view="french"] [data-col="phonetic"] { display:none; }

.tefilot_row[data-default-view="hebrew-phonetic"] [data-col="french"] { display:none; }

.tefilot_row[data-default-view="hebrew-french"] [data-col="phonetic"] { display:none; }

.tefilot_row[data-default-view="phonetic-french"] [data-col="hebrew"] { display:none; }



/* =====================================
   ANTI-JUMP FINAL : réserver la place du player
   ===================================== */

.tefila-audio{
  min-height: 72px; /* desktop */
}

@media (max-width: 768px){
  .tefila-audio{
    min-height: 70px; /* mobile un peu plus haut */
  }
}






















