/*
Theme Name:   Educform31 Pro Complet
Theme URI:    https://educform31.fr
Description:  Thème enfant complet pour la refonte du site educform31.fr - 25 pages avec design system unifié dark navy/orange premium. Intégration Brevo (audit) + systeme.io (newsletter) + Calendly + page d'options WP + auto-installer pages + Schema.org Course.
Author:       Karim El Gartet
Author URI:   https://agence-web31.fr
Template:     hello-elementor
Version:      4.8.0
License:      GNU General Public License v2 or later
Text Domain:  educform31-pro
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== FLUID TYPO + RESPONSIVE FORCE (v4.8) ===== */
/* Force le responsive sur les inline grids (templates avec style="grid-template-columns: repeat(N, 1fr)") */
@media (max-width: 768px) {
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    max-width: 100% !important;
    margin: 0 0 24px !important;
  }
  /* Inline styles avec colonnes 1.4fr 1fr 1fr 1fr (footer ou similaire) */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.2fr"],
  [style*="grid-template-columns: 1.4fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Cards avec transform scale (page-pro carte populaire) — désactiver sur mobile */
  [style*="transform: scale(1.03)"],
  [style*="transform:scale(1.03)"] {
    transform: none !important;
  }
  /* Transformer les ef-portals-grid qui ont 2 cols */
  .ef-pricing-cards,
  .ef-merci-options,
  .ef-pillars-preview { grid-template-columns: 1fr !important; }
}

/* Tablette : 2 colonnes max au lieu de 3-4 */
@media (min-width: 769px) and (max-width: 1024px) {
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ===== FLUID LAYOUT RESET (v4.7) — adapte à TOUS les écrans ===== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Override Hello Elementor : main pleine largeur */
.site, .site-content, #content, #main, main, .site-main, .e-con-full, .elementor {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Sections custom : 100% width sans contrainte du parent */
.ef-hero,
.ef-section-light,
.ef-section-gray,
.ef-section-dark,
.ef-topbar,
.ef-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Containers : padding fluid avec clamp(min, viewport, max) */
.ef-container {
  width: 100% !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding-left: clamp(16px, 4vw, 48px) !important;
  padding-right: clamp(16px, 4vw, 48px) !important;
  box-sizing: border-box !important;
}
.ef-container-narrow {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding-left: clamp(16px, 4vw, 32px) !important;
  padding-right: clamp(16px, 4vw, 32px) !important;
  box-sizing: border-box !important;
}

/* Sections : padding vertical fluid */
.ef-section-light, .ef-section-gray, .ef-section-dark {
  padding: clamp(40px, 6vw, 96px) 0 !important;
}
.ef-hero { padding: clamp(48px, 8vw, 120px) clamp(16px, 4vw, 48px) clamp(32px, 6vw, 96px) !important; }
.ef-hero-content { padding-left: 0 !important; padding-right: 0 !important; max-width: 1300px !important; }

/* Topbar inner */
.ef-topbar-inner {
  padding-left: clamp(14px, 3vw, 32px) !important;
  padding-right: clamp(14px, 3vw, 32px) !important;
  max-width: 1500px !important;
}

/* Footer */
.ef-footer { padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 32px) 24px !important; }
.ef-footer-grid, .ef-footer-bottom { max-width: 1500px !important; }

/* Images jamais débordantes */
img, video, iframe, svg { max-width: 100%; height: auto; }


:root {
  --navy-deep: #0a0e1a;
  --navy-darker: #0f1729;
  --navy: #1e3a5f;
  --navy-light: #2c5282;
  --orange: #ff6b35;
  --orange-dark: #e55a25;
  --orange-darker: #c44818;
  --gold: #ffaa00;
  --green-live: #00ff88;
  --white: #ffffff;
  --gray-text: #555555;
  --gray-light: #f8f9fb;
  --gray-medium: #e8e8e8;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.15);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--navy);
  line-height: 1.6;
}

a { transition: all 0.2s ease; }

@keyframes ef-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes ef-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}
@keyframes ef-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 15px) scale(0.95); }
}
@keyframes ef-pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.7; }
}
@keyframes ef-shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes ef-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ef-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== HERO COMPONENTS ===== */
.ef-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 35%, var(--navy-light) 70%, var(--navy) 100%);
  background-size: 200% 200%;
  animation: ef-shimmer 12s ease infinite;
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 620px;
  width: 100%;
  box-sizing: border-box;
}
.ef-hero-pro {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--orange-darker) 50%, var(--orange-dark) 100%);
}
.ef-hero-students {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
}
.ef-hero-compact { min-height: auto; padding: 80px 32px 60px; }

.ef-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.ef-orb-1 {
  top: -80px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
  animation: ef-orb-1 8s ease-in-out infinite;
}
.ef-orb-2 {
  bottom: -60px; left: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(56, 138, 221, 0.5) 0%, transparent 70%);
  animation: ef-orb-2 10s ease-in-out infinite;
}

.ef-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.ef-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  padding: 8px 18px;
  border-radius: 24px;
  margin-bottom: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.ef-pulse-dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--green-live);
  border-radius: 50%;
}
.ef-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--green-live);
  border-radius: 50%;
  animation: ef-pulse-ring 2s ease-out infinite;
}

.ef-hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  color: white;
}

.ef-gradient-text {
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ef-shine 3s linear infinite;
}

.ef-hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.ef-hero-subtitle .highlight {
  color: var(--orange);
  font-weight: 500;
}

/* ===== PORTAL CARDS (HOMEPAGE) ===== */
.ef-portals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.ef-portal-card {
  border-radius: 20px;
  padding: 36px 28px;
  text-align: left;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: white;
  display: block;
}
.ef-portal-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}
.ef-portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: ef-shine 3s linear infinite;
  pointer-events: none;
}
.ef-portal-students {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 50%, var(--navy) 100%);
}
.ef-portal-pro {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-darker) 50%, var(--orange-dark) 100%);
}
.ef-portal-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.ef-portal-pro .ef-portal-badge {
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--orange));
  background-size: 200% auto;
  animation: ef-shine 3s linear infinite;
}
.ef-portal-icon {
  width: 56px; height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  font-size: 28px;
  color: white;
}
.ef-portal-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  color: white;
  letter-spacing: -0.5px;
}
.ef-portal-subtitle {
  font-size: 14px;
  opacity: 0.85;
  margin: 0 0 24px;
  line-height: 1.5;
}
.ef-portal-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.ef-feature-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ef-portal-pro .ef-feature-pill {
  background: rgba(255, 255, 255, 0.18);
}
.ef-feature-pill i {
  font-size: 16px;
  color: var(--orange);
}
.ef-portal-pro .ef-feature-pill i { color: white; }
.ef-portal-cta {
  width: 100%;
  background: white;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ef-portal-students .ef-portal-cta { color: var(--navy); }
.ef-portal-pro .ef-portal-cta { color: var(--orange-darker); }

/* ===== SECTIONS ===== */
.ef-section-light { background: var(--white); padding: 72px 24px; }
.ef-section-gray { background: var(--gray-light); padding: 72px 24px; }
.ef-section-dark {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-darker) 100%);
  padding: 72px 24px;
  color: white;
}
.ef-container { max-width: 1400px; margin: 0 auto; width: 100%; }
.ef-container-narrow { max-width: 900px; margin: 0 auto; width: 100%; }

.ef-eyebrow-light {
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 2.5px;
  text-align: center;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-weight: 600;
}
.ef-eyebrow-dark {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2.5px;
  text-align: center;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.ef-title-light {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 56px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--navy);
}
.ef-title-dark {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 56px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: white;
}

/* ===== EXPERTISE CARDS ===== */
.ef-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.ef-expertise-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.3s;
}
.ef-expertise-card:hover { transform: translateY(-4px); }
.ef-expertise-card.pivot { border-color: rgba(255, 107, 53, 0.4); }
.ef-pivot-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ef-expertise-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}
.ef-icon-director { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.ef-icon-dev { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.ef-icon-teacher { background: linear-gradient(135deg, #1D9E75, #0F6E56); }
.ef-expertise-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: white; }
.ef-expertise-role { font-size: 13px; opacity: 0.6; margin: 0 0 8px; color: white; }
.ef-expertise-detail { font-size: 11px; opacity: 0.4; line-height: 1.5; margin: 0; color: white; }

/* ===== STATS ===== */
.ef-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.ef-stat-card {
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  border: 1px solid;
}
.ef-stat-orange {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.02));
  border-color: rgba(255, 107, 53, 0.2);
}
.ef-stat-blue {
  background: linear-gradient(135deg, rgba(56, 138, 221, 0.1), rgba(56, 138, 221, 0.02));
  border-color: rgba(56, 138, 221, 0.2);
}
.ef-stat-green {
  background: linear-gradient(135deg, rgba(29, 158, 117, 0.1), rgba(29, 158, 117, 0.02));
  border-color: rgba(29, 158, 117, 0.2);
}
.ef-stat-purple {
  background: linear-gradient(135deg, rgba(127, 119, 221, 0.1), rgba(127, 119, 221, 0.02));
  border-color: rgba(127, 119, 221, 0.2);
}
.ef-stat-value { font-size: 28px; font-weight: 800; margin: 0 0 4px; color: white; }
.ef-stat-orange .ef-stat-value {
  background: linear-gradient(90deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ef-stat-blue .ef-stat-value { color: #85b7eb; }
.ef-stat-green .ef-stat-value { color: #5DCAA5; }
.ef-stat-purple .ef-stat-value { color: #AFA9EC; }
.ef-stat-label { font-size: 12px; opacity: 0.6; margin: 0; color: white; }

/* ===== PILLARS GRID ===== */
.ef-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.ef-pillar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  color: white;
  display: block;
}
.ef-pillar-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 53, 0.4);
  color: white;
}
.ef-pillar-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: white;
}
.ef-pillar-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: white; }
.ef-pillar-desc { font-size: 14px; opacity: 0.7; margin: 0 0 20px; line-height: 1.6; }
.ef-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
}

/* ===== PRICING TABLE ===== */
.ef-pricing-table {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin: 40px auto;
  max-width: 900px;
  border: 1px solid #e0e0e0;
  overflow-x: auto;
}
.ef-pricing-table h3 {
  font-size: 24px;
  margin: 0 0 24px;
  text-align: center;
  color: var(--navy);
}
.ef-pricing-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ef-pricing-table th {
  background: var(--gray-light);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
}
.ef-pricing-table th:nth-child(3) {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
}
.ef-pricing-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.ef-pricing-table tr:hover { background: var(--gray-light); }
.ef-check { color: #1D9E75; font-weight: 600; }
.ef-cross { color: #999; }

/* ===== FORMS ===== */
.ef-form-card {
  background: white;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  color: var(--navy);
}
.ef-form-badge {
  position: absolute;
  top: -12px; right: 24px;
  background: linear-gradient(135deg, var(--green-live), #00cc6a);
  color: var(--navy-deep);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ef-form-group { margin-bottom: 16px; }
.ef-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.ef-form-group input,
.ef-form-group select,
.ef-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
  color: var(--navy);
}
.ef-form-group input:focus,
.ef-form-group select:focus,
.ef-form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.ef-form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}
.ef-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}
.ef-form-legal {
  font-size: 12px;
  color: var(--gray-text);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}

/* ===== TESTIMONIALS ===== */
.ef-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ef-testimonial {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}
.ef-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--orange);
}
.ef-testimonial-stars {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.ef-testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  margin: 0 0 20px;
  font-style: italic;
}
.ef-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.ef-testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
}
.ef-testimonial-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--navy);
}
.ef-testimonial-role {
  font-size: 12px;
  color: var(--gray-text);
  margin: 2px 0 0;
}

/* ===== CTA BUTTONS ===== */
.ef-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 18px 36px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.3);
}
.ef-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 107, 53, 0.5);
  color: white;
}
.ef-cta-secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.ef-cta-light {
  background: white;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ===== TIMELINE ===== */
.ef-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.ef-timeline::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
  border-radius: 1px;
}
.ef-timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  margin-bottom: 32px;
  position: relative;
}
.ef-timeline-item::before {
  content: '';
  position: absolute;
  left: 104px;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}
.ef-timeline-time {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  padding-top: 8px;
}
.ef-timeline-content {
  padding-left: 24px;
}
.ef-timeline-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.ef-timeline-content p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.ef-faq {
  max-width: 800px;
  margin: 0 auto;
}
.ef-faq-item {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.ef-faq-item:hover { border-color: var(--orange); }
.ef-faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ef-faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--orange);
  transition: transform 0.2s;
}
.ef-faq-item[open] summary::after { transform: rotate(45deg); }
.ef-faq-item p {
  padding: 0 24px 18px;
  margin: 0;
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ===== DELIVERABLES GRID ===== */
.ef-deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.ef-deliverable {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.ef-deliverable:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}
.ef-deliverable-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}
.ef-deliverable h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.ef-deliverable p {
  font-size: 13px;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.5;
}

/* ===== DIPLOMA CARDS (ETUDIANTS) ===== */
.ef-diplomas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1300px;
  margin: 0 auto;
}
.ef-diploma-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  color: var(--navy);
}
.ef-diploma-card:hover {
  transform: translateY(-6px);
  border-color: var(--navy);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.15);
  color: var(--navy);
}
.ef-diploma-tag {
  display: inline-block;
  background: var(--gray-light);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.ef-diploma-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.ef-diploma-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy);
}
.ef-diploma-desc {
  font-size: 13px;
  color: var(--gray-text);
  margin: 0 0 20px;
  line-height: 1.5;
  min-height: 40px;
}
.ef-diploma-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
}
.ef-diploma-features li {
  padding: 4px 0;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ef-diploma-features li i {
  color: #1D9E75;
  font-size: 14px;
}
.ef-diploma-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.ef-diploma-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
}
.ef-diploma-period {
  font-size: 13px;
  color: var(--gray-text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .ef-hero h1 { font-size: 36px; }
  .ef-hero-subtitle { font-size: 15px; }
  .ef-portals { grid-template-columns: 1fr; }
  .ef-expertise-grid { grid-template-columns: 1fr; }
  .ef-stats { grid-template-columns: repeat(2, 1fr); }
  .ef-pillars-grid { grid-template-columns: 1fr; }
  .ef-title-light, .ef-title-dark { font-size: 28px; }
  .ef-hero { padding: 60px 20px 40px; }
  .ef-testimonials { grid-template-columns: 1fr; }
  .ef-deliverables { grid-template-columns: 1fr 1fr; }
  .ef-diplomas-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .ef-hero h1 { font-size: 28px; }
  .ef-deliverables { grid-template-columns: 1fr; }
  .ef-diplomas-grid { grid-template-columns: 1fr; }
  .ef-section-light, .ef-section-gray, .ef-section-dark { padding: 60px 20px; }
}

/* ===== REFONTE MOBILE — SMARTPHONE FIRST (Karim 2026) ===== */
@media (max-width: 768px) {
  /* Topbar : compacte, lisible, empilée */
  .ef-topbar { padding: 8px 0; font-size: 12px; }
  .ef-topbar-inner {
    padding: 0 14px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .ef-topbar-portals {
    display: flex; gap: 4px; justify-content: center;
  }
  .ef-topbar-portals a {
    padding: 6px 12px; font-size: 12px; border-radius: 20px;
    flex: 1; text-align: center;
  }
  .ef-topbar-contact {
    display: flex; gap: 14px; justify-content: center;
    font-size: 12px; flex-wrap: wrap;
  }
  .ef-topbar-contact a { margin-left: 0; }

  /* Hero : moins lourd, lisible, padding réduit */
  .ef-hero { padding: 56px 16px 40px; min-height: auto; }
  .ef-hero h1 { font-size: 30px; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 16px; }
  .ef-hero-subtitle { font-size: 15px; margin-bottom: 28px; padding: 0 6px; line-height: 1.55; }
  .ef-live-badge { font-size: 11px; padding: 6px 14px; margin-bottom: 18px; letter-spacing: 0.3px; }
  .ef-orb-1, .ef-orb-2 { opacity: 0.4; filter: blur(70px); }

  /* Portails étudiants/pros : 1 col compacte */
  .ef-portals { grid-template-columns: 1fr; gap: 14px; max-width: 100%; }
  .ef-portal-card { padding: 26px 22px; border-radius: 18px; }
  .ef-portal-title { font-size: 26px; letter-spacing: -0.3px; }
  .ef-portal-subtitle { font-size: 13px; margin-bottom: 18px; }
  .ef-portal-icon { width: 48px; height: 48px; margin-bottom: 16px; font-size: 24px; }
  .ef-portal-features { gap: 6px; margin-bottom: 18px; }
  .ef-feature-pill { padding: 9px 12px; font-size: 12px; }
  .ef-portal-cta { padding: 12px 16px; font-size: 13px; }

  /* Sections : padding & typo réduits */
  .ef-section-light, .ef-section-gray, .ef-section-dark { padding: 48px 16px; }
  .ef-container, .ef-container-narrow { padding: 0; }
  .ef-title-light, .ef-title-dark { font-size: 24px; margin-bottom: 28px; line-height: 1.2; }
  .ef-eyebrow-light, .ef-eyebrow-dark { font-size: 11px; margin-bottom: 12px; letter-spacing: 1.8px; }

  /* Diplômes : 1 col, padding propre */
  .ef-diplomas-grid { grid-template-columns: 1fr; gap: 14px; }
  .ef-diploma-card { padding: 22px 20px; border-radius: 14px; }
  .ef-diploma-card h3 { font-size: 19px; }
  .ef-diploma-icon { font-size: 32px; margin-bottom: 8px; }
  .ef-diploma-tag { font-size: 10px; padding: 3px 10px; }

  /* Stats : 2 cols compactes */
  .ef-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ef-stat-card { padding: 14px 8px; }
  .ef-stat-value { font-size: 22px; }
  .ef-stat-label { font-size: 11px; }

  /* Expertise : 1 col */
  .ef-expertise-grid { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
  .ef-expertise-card { padding: 22px 18px; }

  /* Piliers Pro : 1 col */
  .ef-pillars-grid { grid-template-columns: 1fr; gap: 14px; max-width: 100%; }
  .ef-pillar-card { padding: 26px 22px; }
  .ef-pillar-title { font-size: 19px; }
  .ef-pillar-desc { font-size: 13px; }

  /* Modules diplôme/pilier : 1 col */
  .ef-modules-grid { grid-template-columns: 1fr; gap: 14px; max-width: 100%; }
  .ef-module-card { padding: 22px 20px; }
  .ef-module-card h3 { font-size: 17px; }

  /* Témoignages : 1 col */
  .ef-testimonials { grid-template-columns: 1fr; gap: 14px; }
  .ef-testimonial { padding: 22px 20px; }

  /* Tarifs : 1 col */
  .ef-pricing-cards { grid-template-columns: 1fr !important; gap: 16px; max-width: 100%; }
  .ef-pricing-card { padding: 28px 22px; }
  .ef-pricing-price .amount { font-size: 30px; }

  /* Formulaires */
  .ef-form-card { padding: 28px 22px; border-radius: 18px; }
  .ef-form-row { grid-template-columns: 1fr; gap: 12px; }
  .ef-form-group input,
  .ef-form-group select,
  .ef-form-group textarea { padding: 11px 13px; font-size: 14px; }
  .ef-form-submit { padding: 14px 20px; font-size: 14px; }

  /* CTA buttons : confortable touch */
  .ef-cta-button { padding: 14px 24px; font-size: 14px; gap: 8px; }

  /* Footer : 1 col propre */
  .ef-footer { padding: 48px 20px 24px; }
  .ef-footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
  .ef-footer-brand h3 { font-size: 20px; }
  .ef-footer-brand p { font-size: 13px; }
  .ef-footer h4 { font-size: 11px; margin-bottom: 12px; }
  .ef-footer ul a { font-size: 13px; }
  .ef-footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; font-size: 12px; }
  .ef-footer-social { gap: 10px; }

  /* Audit gratuit : layout vertical */
  .ef-audit-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .ef-audit-text { text-align: center !important; }
  .ef-audit-text h1 { font-size: 28px !important; text-align: center !important; }
  .ef-audit-feature { text-align: left; }
  .ef-pillars-preview { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Diagnostic badges */
  .ef-diag-badges { gap: 10px; flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 0 8px; }
  .ef-diag-badge { font-size: 11px; }

  /* Calendly */
  .ef-calendly-wrapper { padding: 24px 16px; border-radius: 16px; }
  .ef-calendly-fallback h3 { font-size: 20px; }
  .ef-fallback-cta { flex-direction: column; }
  .ef-fallback-cta .ef-cta-button { width: 100%; box-sizing: border-box; justify-content: center; }

  /* Game hub : 1 col */
  .ef-games-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .ef-game-card { padding: 20px 18px; }
  .ef-game-emoji { font-size: 32px; margin-bottom: 8px; }
  .ef-game-card h3 { font-size: 16px; }
  .ef-game-filters { gap: 6px; margin-bottom: 24px; padding: 0 4px; }
  .ef-filter-btn { font-size: 11px; padding: 6px 11px; }
  .ef-filter-divider { display: none; }

  /* Timeline mobile (page diagnostic) */
  .ef-timeline { padding-left: 8px; }
  .ef-timeline::before { left: 64px; }
  .ef-timeline-item { grid-template-columns: 56px 1fr; gap: 18px; margin-bottom: 22px; }
  .ef-timeline-item::before { left: 58px; width: 12px; height: 12px; }
  .ef-timeline-time { font-size: 12px; }
  .ef-timeline-content { padding-left: 16px; }
  .ef-timeline-content h3 { font-size: 16px; }
  .ef-timeline-content p { font-size: 13px; }

  /* FAQ */
  .ef-faq-item summary { padding: 14px 18px; font-size: 14px; }
  .ef-faq-item summary::after { font-size: 20px; }
  .ef-faq-item p { padding: 0 18px 14px; font-size: 13px; }

  /* Merci options : 1 col */
  .ef-merci-options { grid-template-columns: 1fr !important; gap: 16px; }
  .ef-merci-option { padding: 28px 22px; }
  .ef-merci-icon { width: 80px; height: 80px; font-size: 44px; margin-bottom: 20px; }

  /* Cas concret pilier */
  .ef-cas-concret { padding: 24px 20px; gap: 16px; }
  .ef-cas-icon { width: 64px; height: 64px; font-size: 28px; }

  /* Formats grid pilier : 1 col */
  .ef-formats-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .ef-format-card { padding: 26px 22px; }

  /* Newsletter compact */
  #newsletter > div { padding: 32px 20px !important; }

  /* Header dual-branding hero */
  .ef-pillar-hero-icon { width: 72px; height: 72px; font-size: 36px; margin-bottom: 18px; }

  /* Stats max-width fix */
  .ef-stats { max-width: 100% !important; }

  /* Empêche le débordement horizontal */
  body { overflow-x: hidden; }
  img, video, iframe { max-width: 100%; height: auto; }
}

/* Très petits écrans (iPhone SE et co) */
@media (max-width: 380px) {
  .ef-hero h1 { font-size: 26px; }
  .ef-portal-title { font-size: 22px; }
  .ef-title-light, .ef-title-dark { font-size: 21px; }
  .ef-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ef-pillars-preview { grid-template-columns: 1fr; }
  .ef-cta-button { width: 100%; box-sizing: border-box; justify-content: center; }
  .ef-section-light, .ef-section-gray, .ef-section-dark { padding: 40px 14px; }
  .ef-portal-card { padding: 22px 18px; }
  .ef-form-card { padding: 24px 18px; }
}

/* ===== DESKTOP — REMPLIR L'ÉCRAN (v3) ===== */
/* Augmente la largeur sur grands écrans pour éviter le blanc latéral */
@media (min-width: 1200px) {
  .ef-section-light, .ef-section-gray, .ef-section-dark { padding-left: 32px; padding-right: 32px; }
  .ef-container { max-width: 1400px; }
  .ef-hero-content { max-width: 1300px; }
}
@media (min-width: 1600px) {
  .ef-section-light, .ef-section-gray, .ef-section-dark { padding-left: 40px; padding-right: 40px; }
  .ef-container { max-width: 1500px; }
  .ef-hero-content { max-width: 1400px; }
  .ef-footer-grid, .ef-footer-bottom { max-width: 1500px; }
  .ef-topbar-inner { max-width: 1500px; }
}

/* ===== RESPONSIVE MOBILE FORCE (v2 — overrides inline styles) ===== */
/* Les templates ont des style="..." inline qui battent les media queries normales.
   Ces règles avec !important sécurisent l'affichage smartphone. */

@media (max-width: 768px) {
  /* Conteneur global : pas de débordement */
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }
  body { font-size: 15px; }

  /* Sections : padding minimal pour remplir l'écran */
  section.ef-section-light, section.ef-section-gray, section.ef-section-dark {
    padding: 36px 14px !important;
  }
  .ef-container, .ef-container-narrow {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero : presque full-width */
  .ef-hero { padding: 44px 14px 32px !important; min-height: auto !important; }
  .ef-hero h1 { font-size: 28px !important; line-height: 1.15 !important; word-break: break-word; }
  .ef-hero-subtitle { font-size: 14px !important; max-width: 100% !important; padding: 0 !important; }
  .ef-hero-content { max-width: 100% !important; padding: 0 !important; }

  /* Cartes : full width */
  .ef-portals,
  .ef-diplomas-grid,
  .ef-pillars-grid,
  .ef-modules-grid,
  .ef-testimonials,
  .ef-pricing-cards,
  .ef-formats-grid,
  .ef-merci-options,
  .ef-deliverables,
  .ef-content-stats,
  .ef-pillars-preview,
  .ef-games-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 24px !important;
  }

  /* Stats : 2 cols compactes */
  .ef-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; max-width: 100% !important; }

  /* Cartes individuelles : padding raisonnable */
  .ef-portal-card,
  .ef-diploma-card,
  .ef-pillar-card,
  .ef-module-card,
  .ef-testimonial,
  .ef-pricing-card,
  .ef-format-card,
  .ef-merci-option,
  .ef-deliverable,
  .ef-game-card,
  .ef-expertise-card {
    padding: 22px 18px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* Titres : taille raisonnable */
  .ef-title-light, .ef-title-dark { font-size: 22px !important; margin-bottom: 24px !important; line-height: 1.25 !important; }
  .ef-eyebrow-light, .ef-eyebrow-dark { font-size: 11px !important; margin-bottom: 10px !important; }

  /* Boutons : hauteur de touch correcte */
  .ef-cta-button {
    padding: 13px 20px !important;
    font-size: 14px !important;
    width: auto !important;
    box-sizing: border-box !important;
  }

  /* Topbar : empilée */
  .ef-topbar-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 0 14px !important;
  }
  .ef-topbar-portals { display: flex !important; gap: 6px !important; justify-content: center !important; }
  .ef-topbar-portals a { flex: 1; text-align: center; padding: 6px 8px !important; font-size: 12px !important; }
  .ef-topbar-contact { display: flex !important; gap: 12px !important; justify-content: center !important; flex-wrap: wrap !important; }
  .ef-topbar-contact a { margin: 0 !important; font-size: 12px !important; }

  /* Footer : 1 col */
  .ef-footer { padding: 40px 18px 20px !important; }
  .ef-footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .ef-footer-bottom { flex-direction: column !important; gap: 14px !important; align-items: flex-start !important; }

  /* Audit grid (tunnel B2B) */
  .ef-audit-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .ef-audit-text { text-align: center !important; }
  .ef-audit-text h1 { font-size: 26px !important; text-align: center !important; line-height: 1.2 !important; }

  /* Form card */
  .ef-form-card { padding: 24px 18px !important; }
  .ef-form-row { grid-template-columns: 1fr !important; }

  /* Témoignages stat alignés */
  .ef-stats { max-width: 100% !important; }

  /* Images jamais débordantes */
  img, video, iframe { max-width: 100% !important; height: auto !important; }

  /* Calendly wrapper */
  .ef-calendly-wrapper { padding: 20px 14px !important; min-height: auto !important; }
}

@media (max-width: 480px) {
  .ef-hero h1 { font-size: 24px !important; }
  .ef-portal-title { font-size: 22px !important; }
  .ef-title-light, .ef-title-dark { font-size: 20px !important; }
  .ef-stat-value { font-size: 20px !important; }
  .ef-stat-label { font-size: 10px !important; }
  .ef-section-light, .ef-section-gray, .ef-section-dark { padding: 36px 14px !important; }
  .ef-cta-button { padding: 12px 18px !important; font-size: 13px !important; }
  .ef-portal-card,
  .ef-diploma-card,
  .ef-pricing-card { padding: 20px 16px !important; }
}

/* ===== COOKIE CONSENT BANNER (RGPD) ===== */
.ef-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: var(--navy-deep);
  color: white;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1100px;
  margin: 0 auto;
}
.ef-cookie-banner[hidden] { display: none; }
.ef-cookie-banner-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.ef-cookie-text { flex: 1 1 320px; min-width: 0; }
.ef-cookie-text strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--orange); }
.ef-cookie-text p { font-size: 13px; line-height: 1.5; margin: 0; opacity: 0.9; }
.ef-cookie-text a { color: var(--orange); text-decoration: underline; }
.ef-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ef-cookie-btn {
  font: inherit;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.ef-cookie-btn:hover { background: rgba(255, 255, 255, 0.12); }
.ef-cookie-accept { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); border-color: var(--orange); }
.ef-cookie-accept:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4); }
@media (max-width: 600px) {
  .ef-cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .ef-cookie-banner-inner { gap: 12px; }
  .ef-cookie-actions { width: 100%; }
  .ef-cookie-btn { flex: 1; padding: 12px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PILLAR PAGES (Educformpro31) ===== */
.ef-pillar-hero-icon {
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: white;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* Shared with diploma-page (also defined inline there for backward compat) */
.ef-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.ef-module-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
  position: relative;
}
.ef-module-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}
.ef-module-number {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.ef-module-icon {
  width: 56px; height: 56px;
  margin-bottom: 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}
.ef-module-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy);
}
.ef-module-card p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0;
  line-height: 1.6;
}

/* Cas concret block */
.ef-cas-concret {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  max-width: 800px;
  margin: 48px auto 0;
}
.ef-cas-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
}
.ef-cas-eyebrow {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 2px;
  margin: 0 0 4px;
  text-transform: uppercase;
  font-weight: 600;
}
.ef-cas-concret h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: white;
}
.ef-cas-result {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.6;
  margin: 0;
  color: white;
}

/* Formats d'accompagnement */
.ef-formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.ef-format-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s;
  position: relative;
}
.ef-format-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.ef-format-featured {
  border-color: var(--orange);
  border-width: 2px;
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.12);
}
.ef-format-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 5px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ef-format-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  color: white;
}
.ef-format-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy);
}
.ef-format-card > p {
  font-size: 14px;
  color: var(--gray-text);
  margin: 0 0 16px;
  line-height: 1.6;
}
.ef-format-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  margin: 0;
}

@media (max-width: 968px) {
  .ef-formats-grid { grid-template-columns: 1fr; }
  .ef-cas-concret { grid-template-columns: 1fr; text-align: center; }
  .ef-cas-icon { margin: 0 auto; }
}

/* ===== GAME HUB ===== */
.ef-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1300px;
  margin: 0 auto;
}
.ef-game-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--navy);
  display: block;
  position: relative;
  overflow: hidden;
}
.ef-game-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  color: var(--navy);
}
.ef-game-emoji {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}
.ef-game-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--navy);
}
.ef-game-card .ef-game-desc {
  font-size: 13px;
  color: var(--gray-text);
  margin: 0 0 12px;
  line-height: 1.5;
  min-height: 38px;
}
.ef-game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ef-game-tag {
  background: var(--gray-light);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.ef-game-tag-free {
  background: rgba(29, 158, 117, 0.12);
  color: #1D9E75;
}
.ef-game-tag-premium {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: white;
}

@media (max-width: 968px) {
  .ef-games-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ef-games-grid { grid-template-columns: 1fr; }
}

/* ===== HEADER / FOOTER DUAL BRANDING ===== */
.ef-topbar {
  background: var(--navy-deep);
  color: white;
  padding: 8px 0;
  font-size: 13px;
}
.ef-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ef-topbar-portals a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.ef-topbar-portals a:hover { color: white; background: rgba(255, 255, 255, 0.08); }
.ef-topbar-portals a.is-active {
  color: white;
  background: var(--orange);
}
.ef-topbar-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-left: 16px;
}
.ef-topbar-contact a:hover { color: var(--orange); }

.ef-footer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #050810 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 24px 24px;
}
.ef-footer-grid {
  max-width: 1400px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
}
.ef-footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.ef-footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  opacity: 0.7;
}
.ef-footer h4 {
  font-size: 12px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 16px;
  font-weight: 700;
}
.ef-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ef-footer ul li { margin-bottom: 8px; }
.ef-footer ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.ef-footer ul a:hover { color: var(--orange); }
.ef-footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  opacity: 0.6;
}
.ef-footer-social {
  display: flex;
  gap: 12px;
}
.ef-footer-social a {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 16px;
}
.ef-footer-social a:hover {
  background: var(--orange);
  color: white;
}

@media (max-width: 968px) {
  .ef-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .ef-footer-grid { grid-template-columns: 1fr; }
}


/* === Footer social icons fix (added by setup) === */
.ef-footer-social { display: flex; gap: 10px; align-items: center; }
.ef-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); text-decoration: none; transition: all .2s ease; }
.ef-social-icon i { font-size: 18px; line-height: 1; }
.ef-social-icon:hover { background: #ff6b35; color: #fff; transform: translateY(-1px); }
.ef-social-disabled { opacity: 0.35; cursor: not-allowed; }
.ef-social-disabled:hover { background: rgba(255,255,255,0.1); transform: none; }
.ef-footer { background: #0a1628; }
