/* ================================================================
   CIBO CONSULTING — Custom Styles
   Hello Elementor Child Theme
   Version 1.0 — Mars 2026
   ================================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --navy:         #1B2A4A;
  --navy-light:   #2a3f6b;
  --navy-dark:    #111d35;
  --green:        #8CB63C;
  --green-light:  #a5cf55;
  --green-dark:   #6d9425;
  --cream:        #FAFAF5;
  --white:        #ffffff;
  --gray-50:      #f8f9fa;
  --gray-100:     #f0f1f3;
  --gray-200:     #e2e4e8;
  --gray-300:     #c5c9d1;
  --gray-500:     #6b7280;
  --gray-600:     #4b5563;
  --gray-700:     #374151;
  --gray-800:     #1f2937;
  --red-urgent:   #dc2626;
  --red-light:    #fef2f2;
  --orange:       #f59e0b;
  --blue:         #2563EB;
  --blue-light:   #eff6ff;

  --shadow-sm:  0 1px 2px rgba(27,42,74,.06);
  --shadow-md:  0 4px 12px rgba(27,42,74,.08);
  --shadow-lg:  0 12px 40px rgba(27,42,74,.12);
  --shadow-xl:  0 20px 60px rgba(27,42,74,.16);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill:50px;

  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--cream);
  color: var(--gray-800);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ── TYPOGRAPHIE GLOBALE ────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3 { font-family: var(--font); }

/* ── SECTION LABEL (mini-titre vert au-dessus des H2) ────────── */
.section-label,
.e-section-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  margin-bottom: 8px;
}

/* ── BOUTONS ─────────────────────────────────────────────────── */
.elementor-button,
.e-btn {
  font-family: var(--font) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  transition: var(--transition) !important;
  letter-spacing: .01em;
}

/* Bouton principal (navy) */
.btn-primary,
.elementor-button.btn-primary {
  background: var(--navy) !important;
  color: var(--white) !important;
  border: none !important;
}
.btn-primary:hover,
.elementor-button.btn-primary:hover {
  background: var(--navy-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Bouton accent (vert) */
.btn-accent,
.elementor-button.btn-accent {
  background: var(--green) !important;
  color: var(--white) !important;
  border: none !important;
}
.btn-accent:hover,
.elementor-button.btn-accent:hover {
  background: var(--green-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Bouton urgence pulsé */
.btn-urgence,
.elementor-button.btn-urgence {
  background: var(--red-urgent) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  animation: pulse-urgence 2s infinite;
}
.btn-urgence:hover,
.elementor-button.btn-urgence:hover {
  background: #b91c1c !important;
  transform: translateY(-2px);
}
@keyframes pulse-urgence {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); }
  70%      { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
}

/* Bouton outline navy */
.btn-outline {
  background: transparent !important;
  color: var(--navy) !important;
  border: 2px solid var(--navy) !important;
  border-radius: var(--radius-pill) !important;
}
.btn-outline:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
}

/* Bouton outline blanc (sur fond sombre) */
.btn-outline-white {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,.6) !important;
  border-radius: var(--radius-pill) !important;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: var(--white) !important;
}

/* ── CARTES ──────────────────────────────────────────────────── */
.cibo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.cibo-card:hover,
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Carte formation */
.formation-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.formation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.formation-card-header {
  background: var(--navy);
  padding: 28px;
  position: relative;
}
.formation-card-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green);
}

/* Carte urgence */
.urgence-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--red-urgent);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.urgence-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── BADGES ──────────────────────────────────────────────────── */
.badge-qualiopi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(140,182,60,.12);
  color: var(--green-dark);
  border: 1px solid rgba(140,182,60,.3);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-navy {
  background: rgba(27,42,74,.08);
  color: var(--navy);
  border: 1px solid rgba(27,42,74,.15);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-urgent {
  background: var(--red-light);
  color: var(--red-urgent);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 700;
}

/* ── HEADER / NAV ────────────────────────────────────────────── */
.e-header,
.elementor-location-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27,42,74,.06);
  transition: var(--transition);
}
.e-header.scrolled {
  box-shadow: var(--shadow-md);
}
/* Lien nav urgence */
.nav-urgence-link > a {
  color: var(--red-urgent) !important;
  font-weight: 600 !important;
  animation: pulse-urgence 2s infinite;
}

/* ── HERO SECTION ────────────────────────────────────────────── */
.section-hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(140,182,60,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-stats-bar {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}

/* ── BANDEAU URGENCE ─────────────────────────────────────────── */
.bandeau-urgence {
  background: var(--red-urgent);
  padding: 14px 24px;
  text-align: center;
}
.bandeau-urgence a { color: var(--white); font-weight: 700; }

/* ── SECTION STYLES ──────────────────────────────────────────── */
.section-cream  { background: var(--cream); }
.section-white  { background: var(--white); }
.section-navy   { background: var(--navy); }
.section-navy-dark { background: var(--navy-dark); }
.section-red    { background: var(--red-urgent); }
.section-green  { background: var(--green); }

.section-inner  { padding: 80px 0; }
.section-sm     { padding: 48px 0; }
.section-lg     { padding: 120px 0; }

/* ── GRID FORMATIONS ─────────────────────────────────────────── */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ── COMPARATIF TABLE ────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-table th {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  font-size: .9rem;
  font-weight: 600;
  text-align: left;
}
.compare-table th:first-child { background: var(--navy-dark); }
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: .9rem;
}
.compare-table tr:nth-child(even) td { background: var(--gray-50); }
.compare-table .col-papier { color: var(--gray-500); }
.compare-table .col-suiv   { color: var(--green-dark); font-weight: 600; }
.compare-table .icon-bad   { color: var(--red-urgent); }
.compare-table .icon-good  { color: var(--green); }

/* ── PRICING CARDS ───────────────────────────────────────────── */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--green);
  position: relative;
}
.pricing-card.popular::before {
  content: '⭐ Meilleure offre';
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.pricing-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 12px; display: inline-block; }
.pricing-price sub { font-size: .9rem; font-weight: 400; color: var(--gray-500); }

/* ── TÉMOIGNAGES ─────────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--green);
}
.testimonial-quote {
  font-size: 1rem;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author {
  font-weight: 600;
  color: var(--navy);
}
.testimonial-role {
  font-size: .85rem;
  color: var(--gray-500);
}

/* ── TIMELINE (urgence) ──────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  left: -48px;
  top: 0;
  width: 32px; height: 32px;
  background: var(--red-urgent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

/* ── PROGRESS MODULES (mini-formation) ──────────────────────── */
.module-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.module-step {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
}
.module-step.done  { background: var(--green); }
.module-step.active { background: var(--navy); }

.module-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}
.module-number {
  display: inline-flex;
  width: 48px; height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 16px;
}

/* ── FAQ ACCORDION ───────────────────────────────────────────── */
.elementor-accordion-item {
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 8px !important;
  overflow: hidden;
}
.elementor-tab-title {
  background: var(--white) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 18px 24px !important;
}
.elementor-tab-title.elementor-active {
  background: var(--navy) !important;
  color: var(--white) !important;
}
.elementor-tab-content {
  padding: 20px 24px !important;
  color: var(--gray-700) !important;
  border-top: 1px solid var(--gray-100) !important;
}

/* ── FORMULAIRES ─────────────────────────────────────────────── */
.elementor-field-group input,
.elementor-field-group select,
.elementor-field-group textarea {
  font-family: var(--font) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  font-size: .9rem !important;
  color: var(--gray-800) !important;
  background: var(--white) !important;
  transition: var(--transition) !important;
  width: 100% !important;
}
.elementor-field-group input:focus,
.elementor-field-group select:focus,
.elementor-field-group textarea:focus {
  outline: none !important;
  border-color: var(--navy) !important;
  box-shadow: 0 0 0 3px rgba(27,42,74,.1) !important;
}
.elementor-button[type="submit"] {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  padding: 14px 36px !important;
  font-size: 1rem !important;
  border: none !important;
  width: 100% !important;
  transition: var(--transition) !important;
}
.elementor-button[type="submit"]:hover {
  background: var(--navy-light) !important;
  transform: translateY(-2px);
}

/* Formulaire urgence (rouge) */
.form-urgence .elementor-button[type="submit"] {
  background: var(--red-urgent) !important;
}
.form-urgence .elementor-button[type="submit"]:hover {
  background: #b91c1c !important;
}

/* ── SIDEBAR BLOG ─────────────────────────────────────────────── */
.cibo-sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.cibo-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
}
/* CTA sidebar sticky desktop */
@media (min-width: 1024px) {
  .sidebar-sticky { position: sticky; top: 100px; }
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer,
.elementor-location-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
}
.footer-logo img { height: 40px; filter: brightness(0) invert(1); }
.footer-heading {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  display: block;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--green-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-certif {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-top: 8px;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-fade-up { animation: fadeInUp .7s ease both; }

/* ── ELEMENTOR CONTAINER overrides ──────────────────────────── */
.elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100%;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-inner { padding: 56px 0; }
  .section-lg    { padding: 72px 0; }
  .hero-stats-bar { flex-wrap: wrap; gap: 24px; }
  .pricing-card  { margin-bottom: 16px; }
  .module-card   { padding: 24px; }
  /* Bouton urgence fixe mobile */
  .btn-urgence-fixed {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 999;
    padding: 14px 20px;
    font-size: .9rem;
    box-shadow: var(--shadow-xl);
  }
}
@media (max-width: 480px) {
  .compare-table { font-size: .8rem; }
  .compare-table th,
  .compare-table td { padding: 10px 12px; }
}
