/*
Theme Name: Kadence EIFE2F
Template: kadence
Version: 1.0.0
Description: Thème EIFE2F basé sur Kadence avec design Tailwind de la maquette
Author: EIFE2F
*/

/* Tailwind-like utility classes based on maquette design */

/* Colors — Variante A (défaut : Bleu marine / Or) */
:root {
  --eife-blue-950: #172554;
  --eife-blue-900: #1e3a8a;
  --eife-blue-800: #1e40af;
  --eife-blue-700: #1d4ed8;
  --eife-blue-600: #2563eb;
  --eife-blue-300: #93c5fd;
  --eife-blue-200: #bfdbfe;
  --eife-blue-100: #dbeafe;
  --eife-amber-500: #f59e0b;
  --eife-amber-400: #fbbf24;
  --eife-amber-300: #fcd34d;
  --eife-slate-800: #1e293b;
  --eife-slate-700: #334155;
  --eife-slate-600: #475569;
  --eife-slate-500: #64748b;
  --eife-slate-400: #94a3b8;
  --eife-slate-200: #e2e8f0;
  --eife-slate-100: #f1f5f9;
  --eife-slate-50: #f8fafc;
}

/* Variante B — Chaleureux (Bordeaux · Terre cuite · Orange) */
html.variant-b {
  --eife-blue-950: #4c0519;
  --eife-blue-900: #881337;
  --eife-blue-800: #9f1239;
  --eife-blue-700: #be123c;
  --eife-blue-600: #e11d48;
  --eife-blue-300: #fda4af;
  --eife-blue-200: #fecdd3;
  --eife-blue-100: #ffe4e6;
  --eife-amber-500: #ea580c;
  --eife-amber-400: #f97316;
  --eife-amber-300: #fb923c;
  --eife-slate-50: #fff7ed;
  --eife-slate-100: #ffedd5;
}
/* Surcharge des couleurs bleues codées en dur — Variante B */
html.variant-b .eife-header {
  background: linear-gradient(to bottom, rgba(76, 5, 25, 0.98), rgba(136, 19, 55, 0.95)) !important;
}
html.variant-b .eife-header-scrolled {
  background: rgba(76, 5, 25, 0.98) !important;
}
html.variant-b .eife-hero-overlay {
  background: linear-gradient(to bottom right, rgba(76, 5, 25, 0.9), rgba(136, 19, 55, 0.8), rgba(159, 18, 57, 0.7));
}
html.variant-b .eife-course-highlight,
html.variant-b .eife-pricing-highlight {
  box-shadow: 0 20px 25px -5px rgba(76, 5, 25, 0.2);
  border-color: rgba(190, 18, 60, 0.5);
}
html.variant-b .eife-course-highlight:hover,
html.variant-b .eife-pricing-highlight:hover {
  box-shadow: 0 20px 25px -5px rgba(76, 5, 25, 0.3);
}

/* Variante C — Frais (Émeraude · Forêt · Menthe) */
html.variant-c {
  --eife-blue-950: #064e3b;
  --eife-blue-900: #065f46;
  --eife-blue-800: #047857;
  --eife-blue-700: #059669;
  --eife-blue-600: #10b981;
  --eife-blue-300: #6ee7b7;
  --eife-blue-200: #a7f3d0;
  --eife-blue-100: #d1fae5;
  --eife-amber-500: #059669;
  --eife-amber-400: #10b981;
  --eife-amber-300: #34d399;
  --eife-slate-50: #ecfdf5;
  --eife-slate-100: #d1fae5;
}
/* Surcharge des couleurs bleues codées en dur — Variante C */
html.variant-c .eife-header {
  background: linear-gradient(to bottom, rgba(6, 78, 59, 0.98), rgba(6, 95, 70, 0.95)) !important;
}
html.variant-c .eife-header-scrolled {
  background: rgba(6, 78, 59, 0.98) !important;
}
html.variant-c .eife-hero-overlay {
  background: linear-gradient(to bottom right, rgba(6, 78, 59, 0.9), rgba(6, 95, 70, 0.8), rgba(4, 120, 87, 0.7));
}
html.variant-c .eife-course-highlight,
html.variant-c .eife-pricing-highlight {
  box-shadow: 0 20px 25px -5px rgba(6, 78, 59, 0.2);
  border-color: rgba(5, 150, 105, 0.5);
}
html.variant-c .eife-course-highlight:hover,
html.variant-c .eife-pricing-highlight:hover {
  box-shadow: 0 20px 25px -5px rgba(6, 78, 59, 0.3);
}

/* Base */
.eife-section {
  position: relative;
  width: 100%;
}

.eife-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography */
.eife-heading-1 {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
}

@media (min-width: 768px) {
  .eife-heading-1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .eife-heading-1 {
    font-size: 4.5rem;
  }
}

.eife-heading-2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .eife-heading-2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.eife-text-white { color: #ffffff; }
.eife-text-amber-400 { color: var(--eife-amber-400); }
.eife-text-amber-300 { color: var(--eife-amber-300); }
.eife-text-blue-100 { color: var(--eife-blue-100); }
.eife-text-blue-200 { color: var(--eife-blue-200); }
.eife-text-blue-300 { color: var(--eife-blue-300); }
.eife-text-blue-900 { color: var(--eife-blue-900); }
.eife-text-slate-600 { color: var(--eife-slate-600); }
.eife-text-slate-700 { color: var(--eife-slate-700); }
.eife-text-slate-800 { color: var(--eife-slate-800); }

/* Backgrounds */
.eife-bg-blue-950 { background-color: var(--eife-blue-950); }
.eife-bg-blue-900 { background-color: var(--eife-blue-900); }
.eife-bg-amber-500 { background-color: var(--eife-amber-500); }
.eife-bg-amber-400 { background-color: var(--eife-amber-400); }
.eife-bg-white { background-color: #ffffff; }
.eife-bg-slate-50 { background-color: var(--eife-slate-50); }

/* Buttons */
.eife-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.eife-btn-primary {
  background-color: var(--eife-amber-500);
  color: #ffffff;
}

.eife-btn-primary:hover {
  background-color: var(--eife-amber-400);
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.eife-btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.eife-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Navigation Menu - Dark Theme with Pill Buttons */
.eife-header {
  background: linear-gradient(to bottom, rgba(23, 37, 84, 0.98), rgba(30, 58, 138, 0.95)) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.eife-header-scrolled {
  background: rgba(23, 37, 84, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Barre admin WordPress — décaler le header fixe vers le bas pour ne pas masquer le menu secondaire */
.admin-bar .eife-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  .admin-bar .eife-header {
    top: 46px !important;
  }
}

.eife-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.eife-nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  background: transparent;
}

.eife-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Active state for nav links - filled amber button */
.eife-nav-link[aria-current="page"],
.current-menu-item .eife-nav-link,
a[style*="--eife-amber-400"] {
  color: var(--eife-blue-950) !important;
  background: var(--eife-amber-400) !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.eife-nav-link[aria-current="page"]:hover,
.current-menu-item .eife-nav-link:hover {
  background: var(--eife-amber-300) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Mobile navigation */
.eife-mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eife-mobile-nav-menu a {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.eife-mobile-nav-menu a:hover {
  color: var(--eife-amber-400);
  padding-left: 0.5rem;
}

/* Show desktop nav on larger screens */
@media (min-width: 1024px) {
  .eife-desktop-nav {
    display: flex !important;
  }

  .eife-mobile-toggle {
    display: none !important;
  }
}

/* Cards */
.eife-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.eife-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Glass effect */
.eife-glass {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid */
.eife-grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .eife-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.eife-grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .eife-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .eife-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.eife-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .eife-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Spacing */
.eife-py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.eife-py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.eife-mb-4 { margin-bottom: 1rem; }
.eife-mb-6 { margin-bottom: 1.5rem; }
.eife-mb-8 { margin-bottom: 2rem; }
.eife-mt-8 { margin-top: 2rem; }

/* Navigation */
.eife-nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}

/* Course cards */
.eife-course-card {
    position: relative;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    border: 1px solid var(--eife-slate-100);
}

.eife-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.eife-course-highlight {
    background: var(--eife-blue-900);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(23, 37, 84, 0.2);
}

.eife-course-highlight:hover {
    box-shadow: 0 20px 25px -5px rgba(23, 37, 84, 0.3);
}

.eife-course-highlight-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--eife-amber-400), var(--eife-amber-300));
}

.eife-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    background: rgba(251, 191, 36, 0.1);
    color: var(--eife-amber-700);
}

.eife-course-badge-highlight {
    background: rgba(255, 255, 255, 0.15);
    color: var(--eife-amber-300);
}

.eife-course-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--eife-blue-900);
}

.eife-course-highlight .eife-course-title {
    color: white;
}

.eife-course-desc {
    font-size: 0.875rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.eife-course-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.eife-course-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eife-course-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eife-course-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.eife-course-check {
    flex-shrink: 0;
    margin-top: 2px;
}

.eife-check-amber {
    color: var(--eife-amber-400);
}

.eife-check-emerald {
    color: var(--eife-emerald-500);
}

.eife-course-highlight .eife-course-features li {
    color: var(--eife-blue-100);
}

.eife-course-img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    border-radius: 1rem;
}

/* Button variants */
.eife-btn-amber {
    background: var(--eife-amber-400);
    color: var(--eife-blue-900);
}

.eife-btn-amber:hover {
    background: var(--eife-amber-300);
}

/* Pricing cards */
.eife-pricing-card {
    position: relative;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    border: 1px solid var(--eife-slate-100);
}

.eife-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.eife-pricing-highlight {
    background: var(--eife-blue-900);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(23, 37, 84, 0.2);
    border: 1px solid rgba(29, 78, 216, 0.5);
}

.eife-pricing-highlight:hover {
    box-shadow: 0 20px 25px -5px rgba(23, 37, 84, 0.3);
}

.eife-pricing-badge {
    background: var(--eife-amber-400);
    color: var(--eife-blue-950);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* More colors */
:root {
    --eife-emerald-500: #10b981;
    --eife-rose-500: #f43f5e;
    --eife-violet-500: #8b5cf6;
    --eife-sky-500: #0ea5e9;
}

/* Animations */
@keyframes eife-pulse {
  50% { opacity: 0.5; }
}

.eife-animate-pulse {
  animation: eife-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Section specific */
.eife-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.eife-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.eife-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(23, 37, 84, 0.9), rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.7));
}

/* Decorative elements */
.eife-decoration-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

/* Flex utilities */
.eife-flex { display: flex; }
.eife-flex-col { flex-direction: column; }
.eife-items-center { align-items: center; }
.eife-justify-center { justify-content: center; }
.eife-justify-between { justify-content: space-between; }
.eife-gap-2 { gap: 0.5rem; }
.eife-gap-3 { gap: 0.75rem; }
.eife-gap-4 { gap: 1rem; }
.eife-gap-6 { gap: 1.5rem; }

/* Text utilities */
.eife-text-center { text-align: center; }
.eife-text-left { text-align: left; }
.eife-font-bold { font-weight: 700; }
.eife-font-semibold { font-weight: 600; }
.eife-font-medium { font-weight: 500; }
.eife-uppercase { text-transform: uppercase; }
.eife-tracking-widest { letter-spacing: 0.1em; }

/* Border radius */
.eife-rounded-xl { border-radius: 0.75rem; }
.eife-rounded-2xl { border-radius: 1rem; }
.eife-rounded-full { border-radius: 9999px; }

/* Borders */
.eife-border { border-width: 1px; }
.eife-border-white-10 { border-color: rgba(255, 255, 255, 0.1); }


/* ─── GTranslate float switcher ────────────────────────── */
/* Drapeaux plus petits */
.gt_float_switcher img {
  width: 18px !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 2px !important;
  vertical-align: middle !important;
}
/* Cacher le code/nom de langue dans le bouton courant */
.gt_float_switcher .gt-lang-code {
  display: none !important;
}
/* Cacher les noms de pays dans les options (nœuds texte via font-size:0) */
.gt_float_switcher .gt_options a {
  font-size: 0 !important;
  padding: 5px 8px !important;
  line-height: 1 !important;
}
/* Réduire le padding du bouton courant */
.gt_float_switcher .gt-selected .gt-current-lang {
  padding: 7px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* ─── Testflow widget — décalage 40px vers la gauche ─────── */
#testflow-widget-btn.bottom-right  { right: 104px !important; }
#testflow-widget-panel.bottom-right { right: 104px !important; }
