/* ============================================
   MANEGERE — Design System (matching original)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary:      #1e3a5f;   /* dark navy — headings, footer */
  --teal:         #0ea5c9;   /* decorative accent — icons, borders, rings */
  --teal-bg:      #0c7094;   /* section backgrounds — 5.6:1 on white ✓ */
  --teal-dark:    #046898;   /* text on light bg — 6.1:1 on white ✓ */
  --teal-light:   #e0f4f9;
  --cta:          #f59e0b;   /* primary CTA — amber/orange */
  --cta-dark:     #d97706;
  --text:         #444444;
  --text-mid:     #666666;
  --text-light:   #767676;   /* min accessible gray — 4.5:1 on white ✓ */
  --bg-light:     #f7f9fa;
  --bg-gray:      #f0f2f5;
  --border:       #dde1e7;
  --white:        #ffffff;
  --dark:         #1a2030;   /* footer */
  --font-heading: 'Raleway', 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-body:    'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --max-width:    1200px;
  --header-height: 80px;
  --radius:       6px;
  --radius-lg:    10px;
  --shadow-sm:    0 1px 6px rgba(0,0,0,0.06);
  --shadow:       0 3px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }
p  { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Section variants ---- */
.section { padding: 4.5rem 0; }

.section-gray  { background: var(--bg-light); }
.section-gray2 { background: var(--bg-gray); }

.section-teal,
.section-accent {
  background: var(--teal-bg);
  color: var(--white);
}
.section-teal  h2, .section-teal  h3,
.section-accent h2, .section-accent h3 { color: var(--white); }

.section-dark {
  background: var(--primary);
  color: #ccc;
}
.section-dark h2, .section-dark h3 { color: var(--white); }

/* ---- Typography helpers ---- */
.text-center  { text-align: center; }
.text-teal    { color: var(--teal-dark); }
.text-accent  { color: var(--teal-dark); }
.text-cta     { color: var(--cta); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.4rem; }
.section-title p {
  color: var(--text-mid);
  font-size: 0.9rem;
  max-width: 680px;
  margin: 0 auto;
}
.section-title .underline {
  width: 46px; height: 3px;
  background: var(--teal);
  margin: 0.75rem auto 1rem;
  border-radius: 2px;
}
.section-accent .section-title .underline,
.section-teal  .section-title .underline { background: var(--cta); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.72rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Primary = amber/orange */
.btn-primary {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}
.btn-primary:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}

/* Teal button */
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* White (on dark bg) */
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.48rem 1.2rem; font-size: 0.78rem; }


/* ==============================
   HEADER
   ============================== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.09);
  transition: box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem 0 0.8rem;
  gap: 0.5rem;
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 46px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.logo-text span { color: var(--teal); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0.38rem 0.45rem;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--teal-dark); }
.nav-link.active {
  position: relative;
  color: var(--teal-dark);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: -2px;
  height: 2px;
  background: var(--teal-dark);
  border-radius: 2px;
}

.dropdown a.active {
  background: var(--bg-light);
  color: var(--teal-dark);
  box-shadow: inset 3px 0 0 var(--teal-dark);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--teal);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.dropdown a {
  display: block;
  padding: 0.58rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.dropdown a:hover {
  background: var(--bg-light);
  color: var(--teal-dark);
  padding-left: 1.4rem;
}


/* Qualiopi badge — réglementaire, doit rester visible */
.header-qualiopi {
  height: 42px;
  width: auto;
  flex-shrink: 0;
  margin-left: 0.6rem;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.menu-toggle span {
  width: 23px; height: 2px;
  background: var(--primary);
  display: block;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }


/* ==============================
   HERO
   ============================== */
.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(20,45,82,0.55) 0%,
    rgba(14,58,95,0.38) 55%,
    rgba(14,58,95,0.22) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }
.hero-content    { position: relative; z-index: 2; max-width: 680px; }

.hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero h1 .highlight { color: var(--cta); }

.hero p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  opacity: 0.88;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }


/* ==============================
   PAGE HEADER (inner pages)
   ============================== */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  margin-top: var(--header-height);
  text-align: center;
}

.page-header h1 {
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-mid);
  font-size: 0.97rem;
}

.page-header-underline {
  width: 48px; height: 3px;
  background: var(--teal);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--teal-dark); }


/* ==============================
   CARDS
   ============================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--teal-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  color: var(--teal);
}
.card h3 { font-size: 1rem; margin-bottom: 0.7rem; }
.card p  { color: var(--text-mid); font-size: 0.86rem; line-height: 1.65; }
.card .card-link {
  display: inline-block; margin-top: 1rem;
  color: var(--teal-dark); font-weight: 700; font-size: 0.82rem;
}
.card .card-link:hover { color: var(--teal-dark); }


/* ==============================
   SATISFACTION / STATS
   ============================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item h3 { font-size: 2rem; color: var(--cta); margin-bottom: 0.4rem; }
.stat-item p  { font-size: 0.82rem; color: rgba(255,255,255,0.92); }

.satisfaction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.satisfaction-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid rgba(255,255,255,0.15);
}
.satisfaction-card h3 { color: var(--cta); margin-bottom: 0.2rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.satisfaction-card .score {
  font-size: 1.8rem; font-weight: 800;
  color: var(--white); margin-bottom: 1.2rem;
  font-family: var(--font-heading);
}
.satisfaction-card .score span { font-size: 0.85rem; opacity: 0.88; }
.bar-item { margin-bottom: 0.9rem; }
.bar-label {
  display: flex; justify-content: space-between;
  margin-bottom: 0.3rem; font-size: 0.8rem; opacity: 0.92;
}
.bar-track { height: 5px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.bar-fill  { height: 100%; background: var(--cta); border-radius: 3px; transition: width 1.5s ease; }


/* ==============================
   SERVICES LIST
   ============================== */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.service-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.4rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.service-item:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 1.1rem;
}
.service-item h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.service-item p  { font-size: 0.82rem; color: var(--text-mid); margin-bottom: 0; }


/* ==============================
   FEATURES ROW
   ============================== */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.feature-item { padding: 1.5rem 1rem; }
.feature-item .icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--cta);
}
.feature-item h4 { margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--white); }
.feature-item p  { font-size: 0.85rem; color: rgba(255,255,255,0.92); }


/* ==============================
   TWO-COLUMN LAYOUT
   ============================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse          { direction: rtl; }
.two-col.reverse > *      { direction: ltr; }
.two-col-image            { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.two-col-image img        { width: 100%; height: 100%; object-fit: cover; }
.placeholder-img {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 0.9rem;
  border: 2px dashed var(--border);
}


/* ==============================
   TEAM
   ============================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
}
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }

.team-avatar {
  width: 150px; height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  background: var(--bg-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--primary);
  overflow: hidden;
  border: 3px solid var(--teal);
  box-shadow: 0 4px 16px rgba(14,165,201,0.18);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.team-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.team-card .role {
  display: block;
  color: var(--teal-dark); font-size: 0.82rem; font-weight: 700;
  margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.3px;
}
.team-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.65; }


/* ==============================
   TESTIMONIALS
   ============================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
}
.testimonial-card .quote {
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.testimonial-card .quote::before {
  content: '\201C';
  font-size: 2.2rem;
  color: var(--teal-dark);
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 0.15rem;
  font-family: Georgia, serif;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem;
  overflow: hidden;
  border: 2px solid var(--teal);
  flex-shrink: 0;
}
.testimonial-photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-author .name  { font-weight: 700; color: var(--primary); font-size: 0.88rem; }
.testimonial-author .title { font-size: 0.76rem; color: var(--text-mid); }

/* Language switcher (dropdown) */
.lang-switcher {
  position: relative;
  margin-left: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.55rem;
  font: inherit;
  color: var(--primary);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.lang-current:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.lang-caret {
  font-size: 0.6rem;
  line-height: 1;
  transition: transform var(--transition);
}
.lang-switcher.open .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 8.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 0.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1000;
}
.lang-switcher.open .lang-dropdown,
.lang-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  color: var(--text);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.lang-dropdown a:hover { background: var(--bg-gray); color: var(--teal-dark); }
.lang-dropdown a.active {
  background: var(--teal-dark);
  color: var(--white);
}

/* Video interviews grid (témoignages) */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  display: flex;
  flex-direction: column;
}
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-meta {
  padding: 1.1rem 1.3rem 1.3rem;
}
.video-meta .name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
}
.video-meta .company {
  font-size: 0.82rem;
  color: var(--text-mid);
}


/* ==============================
   CONTACT
   ============================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.8rem;
}
.contact-info-item .icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 1rem;
}
.contact-info-item h4 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.contact-info-item p  { color: var(--text-mid); font-size: 0.86rem; margin-bottom: 0; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; margin-bottom: 0.35rem;
  font-weight: 700; font-size: 0.82rem; color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.72rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem; font-family: var(--font-body);
  background: var(--white); color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,201,0.14);
}
.form-group textarea { resize: vertical; min-height: 120px; }


/* ==============================
   TRAINING / FORMATIONS
   ============================== */
.training-card-img {
  width: 100%; height: 155px;
  object-fit: cover;
  display: block;
}

.training-category { margin-bottom: 2.8rem; }
.training-category h3 {
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
  color: var(--teal-dark);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1.2px;
}

.training-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 960px) {
  .training-cards { grid-template-columns: repeat(2, 1fr); }
}
.training-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.training-card:hover { box-shadow: var(--shadow); border-color: var(--teal); transform: translateY(-3px); }
.training-card-body  { padding: 1.2rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.training-card h4    { font-size: 0.88rem; margin-bottom: 0.4rem; line-height: 1.4; }
.training-card p     { font-size: 0.8rem; color: var(--text-mid); flex: 1; }
.training-card .btn  { margin-top: 1rem; text-align: center; }


/* ==============================
   BLOG
   ============================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.blog-card-image { height: 195px; background: var(--bg-gray); overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 1.4rem; }
.blog-card-body .category {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  background: var(--teal-light);
  border-radius: 4px;
  font-size: 0.7rem; font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.blog-card-body h3 { font-size: 0.93rem; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card-body p  { font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; }
.blog-card-body .date { font-size: 0.72rem; color: var(--text-light); margin-top: 0.6rem; display: block; }

a.blog-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
a.blog-card:hover h3 { color: var(--teal-dark); }
.blog-card-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--teal-bg));
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.pagination button:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.pagination button.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  cursor: default;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination .pagination-ellipsis {
  padding: 0 0.3rem;
  color: var(--text-light);
  user-select: none;
}

/* ==============================
   ARTICLE DETAIL PAGE
   ============================== */
/* Article pages use a Medium-inspired editorial design:
   - Source Serif 4 for title + body
   - Near-black text, generous line-height, narrow column (680px) for reading
   - Minimal blockquote (left rule only), figure+figcaption for images
   - Calm grays for byline, no decorative gradients */
:root {
  --article-text:   #242424;
  --article-muted:  #6b6b6b;
  --article-border: #e6e6e6;
  --article-font:   'Source Serif 4', 'Charter', 'Iowan Old Style', Georgia, serif;
}

/* Article container — wider for hero, narrower for body */
.article-wrap { padding: 1rem 1rem 4rem; }
.container-article { max-width: 680px; margin: 0 auto; padding: 0 1rem; }
.container-article-wide { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }

/* Title block */
.article-header {
  max-width: 740px;
  margin: 3rem auto 2.5rem;
  padding: 0 1rem;
}
.article-header h1 {
  font-family: var(--article-font);
  font-size: 2.65rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 1rem;
}
.article-header .article-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  font-size: 0.92rem;
  color: var(--article-muted);
  font-family: var(--font-body);
  margin: 0;
}
.article-header .article-meta .category-badge {
  display: inline-block;
  color: #111;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid var(--article-border);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}

/* Hero image — flat, no rounded corners, italic caption */
.article-hero {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.article-hero figure { margin: 0; }
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.article-hero figcaption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--article-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Body typography */
.article-body {
  font-family: var(--article-font);
  font-size: 1.22rem;
  line-height: 1.68;
  color: var(--article-text);
  word-wrap: break-word;
}
.article-body p {
  margin: 0 0 1.4rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article-body p + p { margin-top: 0; }

.article-body h2 {
  font-family: var(--article-font);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: #111;
  margin: 3rem 0 1rem;
}
.article-body h3 {
  font-family: var(--article-font);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  margin: 2.4rem 0 0.85rem;
}
.article-body h4 {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--article-muted);
  margin: 2rem 0 0.6rem;
}

.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.6rem; padding: 0; }
.article-body li {
  margin-bottom: 0.9rem;
  padding-left: 0.3rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* <p> blocks inside <li> (created by splitBreaks for Wix <br> fixups) keep
   moderate vertical breathing room without making lists feel too sparse. */
.article-body li p { margin: 0 0 0.5rem; }
.article-body li p:last-child { margin: 0; }

/* Figure with italic caption (Medium-style) */
.article-body figure {
  margin: 2.5rem -2rem;
  text-align: center;
}
.article-body figure img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
.article-body figcaption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--article-muted);
  margin-top: 0.7rem;
  padding: 0 1rem;
}

/* Inline images without figure (legacy fallback) */
.article-body > p > img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 1.5rem auto;
}

/* Blockquote — pure editorial, no background */
.article-body blockquote {
  margin: 2.2rem 0 2.2rem -0.6rem;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid #111;
  font-family: var(--article-font);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--article-text);
}
.article-body blockquote p { margin: 0 0 0.6rem; }
.article-body blockquote p:last-child { margin: 0; }

/* Links */
.article-body a {
  color: var(--article-text);
  text-decoration: underline;
  text-decoration-color: var(--article-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--transition);
}
.article-body a:hover { text-decoration-color: var(--article-text); }

.article-body strong { font-weight: 700; color: #111; }
.article-body em { font-style: italic; }

.article-body hr {
  border: none;
  text-align: center;
  margin: 3rem 0;
}
.article-body hr::after {
  content: '· · ·';
  letter-spacing: 0.6rem;
  color: var(--article-muted);
  font-size: 1.2rem;
}

/* Tables — editorial style with horizontal rules */
.article-table-wrap {
  margin: 2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
}
.article-body th,
.article-body td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--article-border);
}
.article-body thead th,
.article-body tr:first-child th {
  font-family: var(--font-body);
  font-weight: 700;
  color: #111;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid #111;
  background: transparent;
}
.article-body tr:hover td { background: #fafafa; }

/* Social icons row at end of article */
.article-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  margin: 3rem 0 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--article-border);
  border-bottom: 1px solid var(--article-border);
}
.article-social-icons img {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  transition: transform var(--transition);
}
.article-social-icons img:hover { transform: translateY(-2px); }

/* Download button */
.download-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  background: #111 !important;
  color: var(--white) !important;
  text-decoration: none !important;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 1.5rem 0;
  transition: background var(--transition);
}
.download-btn:hover { background: #000 !important; }
.download-btn::before { content: '↓'; font-size: 1.1rem; font-weight: 700; }

/* Back-to-blog + related */
.article-divider {
  text-align: center;
  margin: 3.5rem auto 2.5rem;
  color: var(--article-muted);
  letter-spacing: 0.7rem;
  font-size: 1.2rem;
}
.article-back { text-align: center; margin: 2rem 0 0; }
.article-back .btn { background: #111; border-color: #111; }
.article-back .btn:hover { background: #000; border-color: #000; }

.article-related {
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 3rem 1rem 0;
  border-top: 1px solid var(--article-border);
}
.article-related h2 {
  font-family: var(--article-font);
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.8rem;
  text-align: center;
  letter-spacing: -0.01em;
}
.article-related .blog-grid { margin-top: 0.5rem; }


/* ==============================
   STEPS / PROCESS
   ============================== */
.steps { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.step  { flex: 1; min-width: 180px; max-width: 270px; text-align: center; }
.step-number {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 0.9rem;
  font-family: var(--font-heading);
}
.step h4 { margin-bottom: 0.4rem; font-size: 1rem; }
.step p  { font-size: 0.86rem; color: var(--text-mid); }


/* ==============================
   CTA BANNER
   ============================== */
.cta-banner { text-align: center; padding: 3.5rem 2rem; }
.cta-banner h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-banner p  {
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto; margin-right: auto;
  font-size: 0.95rem;
}


/* ==============================
   FOOTER
   ============================== */
.footer { background: var(--dark); color: #aaa; padding: 4rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-logo-img { height: 48px; width: auto; background: #fff; padding: 0.4rem 0.6rem; border-radius: 6px; }
.footer-brand p { font-size: 0.86rem; color: #9aa5b4; line-height: 1.7; }
.footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}
.footer-links a {
  display: block; padding: 0.28rem 0;
  font-size: 0.86rem; color: #9aa5b4;
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--teal); padding-left: 0.4rem; }
.footer-contact p {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.86rem; margin-bottom: 0.6rem; color: #9aa5b4;
}
.social-links { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social-links a {
  width: 35px; height: 35px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  transition: all var(--transition);
  font-size: 0.85rem;
}
.social-links a:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.footer-bottom {
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.8rem; color: #8a94a6;
}
.footer-bottom a { color: var(--teal); }


/* ==============================
   ANIMATIONS
   ============================== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ==============================
   RESPONSIVE
   ============================== */
/* ---- Responsive: laptop — shrink nav to fit ---- */
@media (max-width: 1280px) {
  .nav-link { padding: 0.32rem 0.38rem; font-size: 0.68rem; letter-spacing: 0; }
  .header-qualiopi { height: 40px; margin-left: 0.4rem; }
  .logo-img { height: 40px; }
  .lang-current { padding: 0.25rem 0.45rem; font-size: 0.68rem; }
}

@media (max-width: 1100px) {
  .nav-link { padding: 0.26rem 0.26rem; font-size: 0.63rem; }
  .header-qualiopi { height: 34px; margin-left: 0.3rem; }
  .logo-img { height: 38px; }
  .lang-current { padding: 0.22rem 0.4rem; font-size: 0.64rem; }
}

@media (max-width: 960px) {
  .nav-link { padding: 0.22rem 0.2rem; font-size: 0.58rem; }
  .header-qualiopi { height: 30px; margin-left: 0.25rem; }
  .logo-img { height: 34px; }
  .lang-current { padding: 0.2rem 0.35rem; font-size: 0.6rem; }
}

/* ---- Responsive: hamburger — laptop & smaller (≤ 1100px) ---- */
@media (max-width: 1100px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-height); left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 0;
    justify-content: flex-start;
    z-index: 999;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  }
  .nav.open { transform: translateX(0); }

  .nav-item { width: 100%; }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--bg-gray);
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
  }
  .nav-link:hover, .nav-link.active { color: var(--teal-dark); }
  .nav-link.active { box-shadow: inset 3px 0 0 var(--teal-dark); padding-left: 0.5rem; }
  .nav-link.active::after { display: none; }
  .dropdown a.active { background: var(--bg-light); color: var(--teal-dark); }

  .nav-link.has-dropdown::after {
    content: '›';
    font-size: 1.2rem;
    line-height: 1;
    transition: transform var(--transition);
  }
  .nav-item.dropdown-open > .nav-link.has-dropdown::after {
    transform: rotate(90deg);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--teal);
    padding: 0.3rem 0 0.3rem 1rem;
    display: none;
    background: var(--bg-light);
    margin: 0 0 0.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
  }
  .dropdown a {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
    border-bottom: none;
  }
  .dropdown a:hover { padding-left: 0.8rem; }

  .nav-item.dropdown-open .dropdown { display: block; }

  /* disable hover-dropdown on touch */
  .nav-item:hover .dropdown { opacity: 0; visibility: hidden; display: none; }
  .nav-item.dropdown-open .dropdown { opacity: 1 !important; visibility: visible !important; display: block !important; }

  /* push burger to far right; keep lang-switcher + qualiopi visible */
  .menu-toggle { margin-left: auto; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }

  .hero { min-height: 65vh; }
  .hero h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .satisfaction-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .training-cards { grid-template-columns: 1fr; }

  /* Pagination — larger tap targets, tighter gaps */
  .pagination { gap: 0.25rem; margin-top: 2rem; }
  .pagination button {
    min-width: 44px;
    height: 44px;
    padding: 0 0.5rem;
    font-size: 0.92rem;
  }
  .pagination .pagination-ellipsis { padding: 0 0.15rem; }

  /* Article tightening */
  .article-header { margin: 2rem auto 1.8rem; }
  .article-header h1 { font-size: 1.95rem; line-height: 1.2; }
  .article-header .article-meta { font-size: 0.85rem; gap: 0.4rem 0.7rem; }
  .article-body { font-size: 1.1rem; line-height: 1.65; }
  .article-body h2 { font-size: 1.45rem; margin: 2.2rem 0 0.8rem; }
  .article-body h3 { font-size: 1.2rem; margin: 1.8rem 0 0.65rem; }
  .article-body figure { margin: 1.8rem 0; }
  .article-body blockquote { font-size: 1.15rem; margin-left: 0; padding-left: 1.1rem; }
  .article-social-icons img { width: 38px; height: 38px; }
  .download-btn { width: 100%; justify-content: center; }
}


/* ==============================
   UTILITIES
   ============================== */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }


/* ==============================
   LEGAL PAGES
   ============================== */
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.legal-content h2 { margin-top: 2rem; margin-bottom: 0.8rem; font-size: 1.35rem; color: var(--teal-dark); }
.legal-content p  { color: var(--text); margin-bottom: 1rem; font-size: 0.95rem; }
