/*
Theme Name: Astra Child
Template: astra
Description: Child theme for EBK Services
Version: 2.0
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --blue-dark: #2260AA;
  --blue: #3A7CC4;
  --blue-light: #E8F0FE;
  --orange: #E8943A;
  --orange-dark: #D4802F;
  --dark: #1A1A2E;
  --text: #333;
  --muted: #666;
  --light-bg: #F7F8FA;
  --radius: 6px;
}

/* =============================================
   ASTRA OVERRIDES
   ============================================= */
#masthead, .site-header, .main-header-bar, .ast-primary-header-bar,
.ast-desktop-header, .ast-mobile-header,
.ast-above-header, .ast-below-header { display: none; }

.ast-footer-copyright, .site-info, #colophon .ast-row,
.footer-widget-area, .ast-small-footer-wrap, .ast-small-footer { display: none; }

.page-header { display: none; }

.ast-page-builder-template .entry-header,
header.entry-header.ast-no-thumbnail { display: none !important; }

.ast-page-builder-template #primary,
.ast-page-builder-template .ast-container,
.ast-page-builder-template .site-content > .ast-container {
  max-width: 100% !important; width: 100% !important;
  padding: 0 !important; margin: 0 !important;
}
.ast-page-builder-template .site-content .ast-container { display: block !important; }
.ast-page-builder-template .entry-content { max-width: 100% !important; }

.ebk-hamburger, .ebk-hamburger:hover, .ebk-hamburger:focus {
  background: transparent !important; border: none !important;
  padding: 8px !important; box-shadow: none !important;
}

.ast-single-post .entry-content a { text-decoration: none; }

/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif; color: var(--text); line-height: 1.6; margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }

/* =============================================
   TOPBAR / HEADER
   ============================================= */
.ebk-topbar {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 2px solid var(--blue-dark);
}
.ebk-topbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 80px;
}
.ebk-logo-area { flex-shrink: 0; }
.ebk-logo-area img { height: 64px; width: auto; display: block; }
.ebk-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.ebk-nav a {
  padding: 8px 10px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500; color: var(--dark);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.ebk-nav a:hover { background: var(--blue-light); color: var(--blue-dark); }
.ebk-header-right { display: flex; align-items: center; gap: 16px; }
.ebk-header-tel {
  color: var(--dark); font-weight: 600; font-size: 0.92rem;
  display: flex; align-items: center; gap: 6px;
}
.ebk-header-tel:hover { color: var(--orange); }
.ebk-btn-quote {
  background: var(--orange); color: #fff !important; font-weight: 600;
  padding: 10px 22px; border-radius: var(--radius); font-size: 0.92rem;
  transition: background 0.2s;
}
.ebk-btn-quote:hover { background: var(--orange-dark); color: #fff !important; }

/* Hamburger */
.ebk-hamburger {
  display: none; cursor: pointer; background: transparent; border: none;
  width: 36px; height: 36px; position: relative; padding: 8px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.ebk-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.ebk-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ebk-hamburger.active span:nth-child(2) { opacity: 0; }
.ebk-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.ebk-hero {
  position: relative; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin: 0 60px;
  border-radius: 10px;
}
.ebk-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.ebk-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(10, 20, 35, 0.28);
}
.ebk-hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 60px 24px;
  display: flex; justify-content: center;
}
.ebk-hero-card {
  background: rgba(10, 20, 40, 0.50);
  border: none;
  border-radius: 4px; padding: 44px 48px; max-width: 620px; width: 100%;
  color: #fff;
  text-align: center;
}
.ebk-hero-card h1 {
  font-size: 1.85rem; font-weight: 700; line-height: 1.3;
  margin: 0 0 14px; color: #fff;
}
.ebk-hero-card .sub {
  font-size: 0.95rem; color: rgba(255,255,255,0.85); margin: 0 0 20px;
}
.ebk-hero-bullets {
  list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: inline-block;
}
.ebk-hero-bullets li {
  padding: 4px 0 4px 22px; position: relative;
  font-size: 0.9rem; color: rgba(255,255,255,0.92);
}
.ebk-hero-bullets li::before {
  content: '●'; position: absolute; left: 0;
  color: var(--orange); font-size: 0.55rem; top: 9px;
}

/* Hero form */
.ebk-hero-form {
  display: flex; gap: 12px; margin-bottom: 20px;
}
.ebk-hero-form-field { flex: 1; }
.ebk-hero-form-field label {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.5px; color: rgba(255,255,255,0.75); margin-bottom: 6px; font-weight: 600;
}
.ebk-hero-form-field input {
  width: 100%; padding: 11px 14px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius); background: rgba(255,255,255,0.92);
  color: var(--dark); font-size: 0.9rem;
}
.ebk-hero-form-field input::placeholder { color: #999; }
.ebk-btn-continue {
  background: #00A8D6; color: #fff; border: none;
  padding: 12px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.88rem; cursor: pointer;
  white-space: nowrap; transition: background 0.2s;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ebk-btn-continue:hover { background: #0090B8; }
.ebk-hero-tel {
  font-size: 0.85rem; color: rgba(255,255,255,0.8); margin: 0;
}
.ebk-hero-tel a { color: var(--orange); font-weight: 600; white-space: nowrap; }

/* Hero tagline */
.ebk-hero-tagline {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--blue-dark); color: rgba(255,255,255,0.85);
  text-align: center; padding: 12px 24px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; z-index: 2;
}

/* =============================================
   STATS
   ============================================= */
.ebk-stats {
  background: var(--light-bg); padding: 60px 24px;
}
.ebk-stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.ebk-stat h3 {
  font-size: 2.4rem; font-weight: 800; color: var(--blue-dark);
  margin: 0 0 4px;
}
.ebk-stat p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* =============================================
   SERVICES
   ============================================= */
.ebk-services {
  padding: 80px 24px; background: #F9F7F4;
  margin: 24px 60px; border-radius: 10px;
}
.ebk-services-inner {
  max-width: 1200px; margin: 0 auto;
}
.ebk-services-inner > h2,
.ebk-services > h2 {
  text-align: center; font-size: 1.8rem; color: var(--dark);
  margin: 0 0 60px; font-weight: 700; letter-spacing: 0.02em;
}
.ebk-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px;
}
.ebk-svc-item,
.ebk-card {
  background: transparent; border: none; border-radius: 0;
  padding: 0 0 40px; text-align: center;
  position: relative; cursor: pointer;
  transition: none;
}
.ebk-svc-icon,
.ebk-card-icon {
  width: 80px; height: 80px; margin: 0 auto 18px;
  background: transparent; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
}
.ebk-svc-icon svg,
.ebk-card-icon svg {
  width: 68px; height: 68px; stroke: var(--orange);
  stroke-width: 1.1; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.ebk-svc-item:hover .ebk-svc-icon svg,
.ebk-card:hover .ebk-card-icon svg {
  transform: scale(1.18);
}
.ebk-svc-item h3,
.ebk-card h3 {
  font-size: 0.82rem; color: var(--dark); margin: 0 0 12px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
.ebk-svc-item p,
.ebk-card p {
  font-size: 0.88rem; color: var(--muted); margin: 0 0 16px; line-height: 1.7;
}
.ebk-svc-link,
.ebk-card-link {
  font-size: 0.72rem; font-weight: 700; color: var(--orange);
  display: inline-block; letter-spacing: 0.1em; text-transform: uppercase;
  position: static;
}
/* Whole card clickable via stretched link */
.ebk-svc-link::before,
.ebk-card-link::before {
  content: ''; position: absolute; inset: 0;
}
.ebk-svc-link::after,
.ebk-card-link::after { content: ''; }
.ebk-svc-link:hover,
.ebk-card-link:hover { color: var(--orange-dark); text-decoration: underline; }

/* =============================================
   SPLIT SECTION
   ============================================= */
.ebk-split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 480px;
  margin: 24px 60px;
  border-radius: 10px; overflow: hidden;
}
.ebk-split-img {
  background-size: cover; background-position: center top;
  min-height: 480px;
}
.ebk-split-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 56px; max-width: 640px;
}
.ebk-split-text h2 {
  font-size: 1.65rem; color: var(--dark); line-height: 1.35;
  margin: 0 0 20px;
}
.ebk-split-text p {
  color: var(--muted); font-size: 0.95rem; line-height: 1.7;
  margin: 0 0 28px;
}
.ebk-btn-learn {
  display: inline-block; background: var(--blue-dark); color: #fff !important;
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.92rem; transition: background 0.2s;
  align-self: flex-start;
}
.ebk-btn-learn:hover { background: var(--blue); color: #fff !important; }

/* =============================================
   TESTIMONIAL
   ============================================= */
.ebk-testimonial {
  position: relative; padding: 36px 24px;
  background: var(--blue-dark); overflow: hidden;
  margin: 24px 60px; border-radius: 10px;
}
.ebk-testimonial-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-dark), var(--dark));
  opacity: 0.9;
}
.ebk-testimonial-inner {
  position: relative; z-index: 2;
  max-width: 800px; margin: 0 auto; text-align: center;
  color: #fff;
}
.ebk-quote-marks {
  font-size: 5rem; line-height: 1; color: var(--orange);
  font-family: Georgia, serif; margin-bottom: -20px;
}
.ebk-testimonial-text h3 {
  font-size: 1.5rem; margin: 0 0 16px; font-weight: 700;
}
.ebk-testimonial-text p {
  font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.7;
  margin: 0 0 20px;
}
.ebk-testimonial-author {
  font-size: 0.9rem; color: var(--orange); font-weight: 600;
}

/* Compatibility aliases */
.ebk-review { text-align: center; max-width: 800px; margin: 0 auto; color: #fff; position: relative; z-index: 2; }
.ebk-review-text { font-size: 1.05rem; color: rgba(255,255,255,0.85); }

/* =============================================
   CTA BAR
   ============================================= */
.ebk-cta-bar {
  background: var(--orange); padding: 32px 24px;
  margin: 24px 60px; border-radius: 10px;
}
.ebk-cta-bar-inner {
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.ebk-cta-bar-inner h2 {
  color: #fff; font-size: 2rem; margin: 0 0 36px;
  font-weight: 700; letter-spacing: 0.01em;
}
.ebk-cta-form {
  display: flex; gap: 14px; justify-content: center;
  max-width: 680px; margin: 0 auto 28px;
}
.ebk-cta-form input {
  flex: 1; padding: 16px 20px; border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius); background: rgba(255,255,255,0.18);
  color: #fff; font-size: 0.95rem;
}
.ebk-cta-form input::placeholder { color: rgba(255,255,255,0.75); }
.ebk-btn-next {
  background: var(--dark); color: #fff; border: none;
  padding: 16px 40px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
}
.ebk-btn-next:hover { background: #000; }
.ebk-cta-tel {
  color: rgba(255,255,255,0.9); font-size: 1rem; margin-top: 8px;
}
.ebk-cta-tel a { color: #fff; font-weight: 700; text-decoration: underline; }

/* =============================================
   CONTACT SECTION
   ============================================= */
.ebk-section {
  padding: 80px 24px;
}
.ebk-container {
  max-width: 1200px; margin: 0 auto;
}
.ebk-section h2 { color: var(--dark); margin-bottom: 20px; }

/* Contact Form 7 styling */
.ebk-section .wpcf7 input[type="text"],
.ebk-section .wpcf7 input[type="email"],
.ebk-section .wpcf7 input[type="tel"],
.ebk-section .wpcf7 textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #ddd; border-radius: var(--radius);
  font-size: 0.95rem; transition: border-color 0.2s;
}
.ebk-section .wpcf7 input:focus,
.ebk-section .wpcf7 textarea:focus {
  border-color: var(--blue); outline: none;
}
.ebk-section .wpcf7 input[type="submit"] {
  background: var(--orange); color: #fff; border: none;
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background 0.2s;
}
.ebk-section .wpcf7 input[type="submit"]:hover {
  background: var(--orange-dark);
}

/* =============================================
   FOOTER
   ============================================= */
.ebk-footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.9);
  padding: 36px 24px 0;
  margin: 24px 60px 0; border-radius: 10px 10px 0 0;
}
.ebk-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 28px;
}
.ebk-footer-brand p {
  font-size: 0.92rem; line-height: 1.75; margin: 0 0 12px;
  color: rgba(255,255,255,0.68);
}
.ebk-footer h4 {
  color: #fff; font-size: 0.88rem; margin: 0 0 14px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.ebk-footer ul {
  list-style: none; padding: 0; margin: 0;
}
.ebk-footer ul li { margin-bottom: 14px; }
.ebk-footer ul a {
  color: rgba(255,255,255,0.65); font-size: 0.9rem;
  transition: color 0.2s;
}
.ebk-footer ul a:hover { color: var(--orange); }
.ebk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 14px 0;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.ebk-footer-copy {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
}

/* =============================================
   MEDIA QUERIES — TABLET (768px - 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .ebk-nav { gap: 0; }
  .ebk-nav a { padding: 8px 10px; font-size: 0.85rem; }
  .ebk-header-tel span { display: none; }

  /* Marges réduites à 32px sur tablette */
  .ebk-hero { margin: 0 32px; }
  .ebk-services { margin: 16px 32px; }
  .ebk-split { margin: 16px 32px; grid-template-columns: 1fr; }
  .ebk-testimonial { margin: 16px 32px; }
  .ebk-cta-bar { margin: 16px 32px; }
  .ebk-footer { margin: 16px 32px 0; }

  .ebk-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ebk-services-grid { grid-template-columns: repeat(2, 1fr); }
  .ebk-split-img { min-height: 320px; }
  .ebk-split-text { padding: 48px 32px; max-width: 100%; }
  .ebk-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* =============================================
   MEDIA QUERIES — MOBILE (<768px)
   ============================================= */
@media (max-width: 767px) {
  /* Header mobile */
  .ebk-topbar-inner { height: 60px; padding: 0 16px; }
  .ebk-logo-area img { height: 38px; }
  .ebk-hamburger { display: flex; }
  .ebk-nav {
    display: none; position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 12px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-top: 1px solid #eee;
  }
  .ebk-nav.open { display: flex; }
  .ebk-nav a {
    padding: 14px 24px; font-size: 1rem;
    border-radius: 0; border-bottom: 1px solid #f0f0f0;
  }
  .ebk-header-right { display: none; }

  /* Hero mobile */
  .ebk-hero { min-height: 480px; margin: 0 12px; border-radius: 8px; }
  .ebk-services { margin: 12px 12px; }
  .ebk-split { margin: 12px 12px; }
  .ebk-testimonial { margin: 12px 12px; }
  .ebk-cta-bar { margin: 12px 12px; }
  .ebk-footer { margin: 12px 12px 0; }
  .ebk-hero-content { padding: 60px 16px; }
  .ebk-hero-card {
    padding: 32px 24px; max-width: 100%;
  }
  .ebk-hero-card h1 { font-size: 1.5rem; }
  .ebk-hero-card .sub { font-size: 0.92rem; }
  .ebk-hero-form { flex-direction: column; }
  .ebk-hero-tagline { font-size: 0.7rem; letter-spacing: 1px; padding: 10px 16px; }

  /* Stats mobile */
  .ebk-stats { padding: 40px 16px; }
  .ebk-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ebk-stat h3 { font-size: 1.8rem; }

  /* Services mobile */
  .ebk-services { padding: 56px 16px; }
  .ebk-services-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Split mobile */
  .ebk-split { grid-template-columns: 1fr; }
  .ebk-split-img { min-height: 240px; }
  .ebk-split-text { padding: 40px 20px; }
  .ebk-split-text h2 { font-size: 1.35rem; }

  /* Testimonial mobile */
  .ebk-testimonial { padding: 32px 16px; }
  .ebk-testimonial-text h3 { font-size: 1.2rem; }
  .ebk-testimonial-text p { font-size: 0.95rem; }
  .ebk-quote-marks { font-size: 3.5rem; }

  /* CTA mobile */
  .ebk-cta-bar { padding: 28px 16px; }
  .ebk-cta-bar-inner h2 { font-size: 1.3rem; }
  .ebk-cta-form { flex-direction: column; }

  /* Contact section mobile */
  .ebk-section { padding: 56px 16px; }
  .ebk-section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important; gap: 32px !important;
  }

  /* Footer mobile */
  .ebk-footer { padding: 28px 16px 0; }
  .ebk-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .ebk-footer-bottom {
    flex-direction: column; gap: 8px; text-align: center;
  }
}

/* === TESTIMONIALS GRID (3 cartes) === */
.ebk-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 20px 0;
}
.ebk-testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ebk-testimonial-card p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.75;
  flex: 1;
  margin: 0;
}
.ebk-quote-icon {
  font-size: 2.5rem;
  color: var(--orange);
  line-height: 1;
}
.ebk-testimonial-card .ebk-testimonial-author {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-style: italic;
}
.ebk-stars {
  color: var(--orange);
  font-size: 1rem;
  letter-spacing: 2px;
}
@media (max-width: 768px) {
  .ebk-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* === FIX TEL NOWRAP === */
.ebk-header-tel {
  white-space: nowrap !important;
  flex-shrink: 0;
}
.ebk-header-tel span {
  white-space: nowrap !important;
}
.ebk-header-right {
  white-space: nowrap;
  flex-shrink: 0;
  gap: 12px;
}
.ebk-cta-tel, .ebk-cta-tel a {
  white-space: nowrap;
}
