/* ==========================================================================
   KL COACHING — Feuille de style principale
   Réplique fidèle de l'identité visuelle historique du site
   v2 — lisibilité, densité, profondeur, responsive
   Police Montserrat chargée via <link rel="preconnect"> dans le <head>
   (plus rapide qu'un @import CSS, qui bloque le rendu).
   ========================================================================== */

:root {
  --color-primary: #0088cc;
  --color-primary-dark: #006ba3;
  --color-title: #090c11;
  --color-text: #4a5568;
  --color-bg: #ffffff;
  --color-bg-alt: #f0f0f0;
  --color-footer-bg: #090c11;
  --color-footer-text: #ffffff;
  --color-border: #999999;
  --font-main: 'Montserrat', Arial, sans-serif;
  --header-height: 90px;
  --shadow-sm: 0 4px 14px rgba(9,12,17,.06);
  --shadow-md: 0 14px 34px rgba(9,12,17,.10);
  --shadow-lg: 0 20px 50px rgba(9,12,17,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--color-title);
  line-height: 1.3;
}

h1 { font-size: 34px; letter-spacing: .5px; }
h2 { font-size: 24px; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 19px; }

p { margin-bottom: 18px; }

ul { margin: 0 0 18px 20px; }
li { margin-bottom: 8px; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  height: var(--header-height);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img { height: 48px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 18px; }

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 18px;
}

.main-nav a {
  color: var(--color-title);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-title);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 2px;
  font-size: 12.5px;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--color-primary); }

.nav-toggle { display: none; }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' \25BE'; font-size: 10px; }
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: 10px 0;
  flex-direction: column;
  gap: 0;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: flex; }
.has-dropdown .dropdown li { width: 100%; }
.has-dropdown .dropdown a {
  display: block;
  padding: 10px 20px;
  text-transform: none;
  font-weight: 500;
  white-space: nowrap;
}
.has-dropdown .dropdown a:hover { background: var(--color-bg-alt); }

/* Le menu complet a besoin d'environ 830px pour tenir sur une ligne.
   Le seuil bascule donc à 980px, avec une marge de sécurité, plutôt
   qu'à 760px : entre les deux, le menu débordait de la fenêtre. */
@media (max-width: 980px) {
  .has-dropdown .dropdown {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }
}

/* ==================== HERO / PAGE HEADER ==================== */

.hero {
  padding: 48px 0 52px;
  text-align: center;
  background:
    radial-gradient(ellipse 900px 400px at 50% 0%, rgba(0,136,204,.07), transparent 70%),
    #ffffff;
}

.hero h1 { text-align: center; margin-bottom: 12px; }
.hero .subtitle { font-size: 17px; color: var(--color-text); }

.page-banner {
  background:
    radial-gradient(ellipse 800px 300px at 15% 0%, rgba(0,136,204,.25), transparent 60%),
    linear-gradient(135deg, #12161d 0%, #090c11 100%);
  color: #fff;
  padding: 44px 0;
  text-align: center;
  position: relative;
}
.page-banner::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-primary);
}

.page-banner h1 { color: #fff; font-size: 27px; text-transform: uppercase; letter-spacing: 1px; }

.breadcrumb { font-size: 12px; color: #aaa; margin-top: 8px; }
.breadcrumb a { color: #ccc; }

/* ==================== SECTIONS ==================== */

.section { padding: 44px 0; }
.section-alt { background: linear-gradient(180deg, #f6f7f8, #eef0f2); }

.section-title { text-align: center; margin-bottom: 12px; }

.section-heading-block {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.section-heading-block .line {
  flex: 1;
  height: 3px;
  background: var(--color-title);
  position: relative;
  min-width: 20px;
}

.section-heading-block .line::before,
.section-heading-block .line::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--color-title);
}
.section-heading-block .line::before { top: -4px; }
.section-heading-block .line::after { top: 4px; }

.section-heading-block h2 {
  margin: 0;
  text-align: center;
}

.text-center { text-align: center; }

/* ==================== SERVICE CARDS (3 col) ==================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.service-card {
  text-align: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef0f2;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.service-card .icon-wrap {
  width: 100%;
  height: 210px;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
}
.service-card .icon-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.service-card:hover .icon-wrap img { transform: scale(1.06); }

.service-card-body { padding: 28px 26px 32px; }
.service-card h2 { font-size: 19px; margin-bottom: 12px; }
.service-card p { font-size: 14px; margin-bottom: 20px; }

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-primary { background: var(--color-primary); color: #fff !important; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

.btn-dark { background: var(--color-title); color: #fff !important; }
.btn-dark:hover { background: var(--color-primary); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--color-title);
  color: var(--color-title) !important;
}
.btn-outline:hover { background: var(--color-title); color: #fff !important; transform: translateY(-2px); }

.btn-block { display: flex; justify-content: center; width: 100%; }

/* ==================== STATS ==================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: #fff;
  border-radius: 6px;
  padding: 30px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-item .stat-icon { font-size: 36px; margin-bottom: 10px; }
.stat-item p { font-size: 18px; color: var(--color-title); font-weight: 600; margin: 0; }

/* ==================== TESTIMONIALS ==================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.testimonial-card {
  text-align: center;
  background: #fff;
  border-radius: 6px;
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial-card p {
  font-size: 13.5px;
  font-style: italic;
  margin-bottom: 20px;
  flex: 1;
}
.testimonial-card .client-logo {
  max-height: 42px;
  max-width: 140px;
  width: auto;
  margin: 0 auto;
  border-radius: 0;
  border: none;
}

/* ==================== CTA BANNER ==================== */

.cta-banner {
  text-align: center;
  padding: 36px 0;
}
.cta-banner h2 { margin-bottom: 22px; }

.cta-banner-image {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 64px 0;
}
.cta-banner-image::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(9,12,17,.62);
}
.cta-banner-image .container { position: relative; z-index: 1; }
.cta-banner-image h2 { color: #fff; }

/* ==================== CLIENT LOGOS CAROUSEL (static grid) ==================== */

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: .85;
}
.clients-grid img {
  max-height: 50px;
  max-width: 130px;
  width: auto;
  filter: grayscale(100%);
  transition: filter .2s ease, opacity .2s ease;
}
.clients-grid img:hover { filter: grayscale(0%); opacity: 1; }

/* ==================== ACCORDION (vc_toggle replica) ==================== */

.accordion-item {
  border-bottom: 1px solid #ddd;
}
.accordion-item summary {
  padding: 16px 4px;
  font-weight: 600;
  color: var(--color-title);
  cursor: pointer;
  list-style: none;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::before { content: '+ '; color: var(--color-primary); }
.accordion-item[open] summary::before { content: '– '; }
.accordion-item .accordion-body { padding: 0 4px 18px; font-size: 14px; }

/* ==================== CONTENT PAGES (texte riche) ==================== */

.content-page { padding: 48px 0; }

/* Largeur de lecture confortable (environ 70-80 caractères par ligne).
   Les pages qui ont besoin de plus de place (mentions légales, etc.)
   définissent leur propre max-width en ligne, qui reste prioritaire. */
.content-page .container { max-width: 880px; }

.content-page .lead { font-size: 18px; color: var(--color-title); margin-bottom: 30px; }
.content-page img.inline-img {
  float: left;
  margin: 4px 28px 16px 0;
  max-width: 300px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.content-page h2 { margin: 36px 0 16px; font-size: 21px; }
.content-page h3 { margin: 28px 0 12px; }
.content-page ul li a { color: var(--color-title); font-weight: 500; }
.content-page ul li a:hover { color: var(--color-primary); }
.content-page::after { content: ''; display: table; clear: both; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.side-image img { border-radius: 6px; box-shadow: var(--shadow-md); }

.centered-img-md {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

/* ==================== CONTACT FORM ==================== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 30px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef0f2;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--color-title); text-transform: uppercase; letter-spacing: .3px; }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 14px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-title);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-hp { position: absolute; left: -9999px; }

.form-msg { padding: 14px 18px; border-radius: 3px; margin-bottom: 20px; font-size: 14px; }
.form-msg.success { background: #e3f6e8; color: #1a7a34; border: 1px solid #b6e6c3; }
.form-msg.error { background: #fdeaea; color: #b02a2a; border: 1px solid #f3c3c3; }

.contact-infos p { font-size: 14.5px; }
.contact-infos a { color: var(--color-title); font-weight: 600; }

/* ==================== BLOG ==================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  border: 1px solid #eef0f2;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card img { height: 220px; width: 100%; object-fit: cover; }
.blog-card .blog-card-body { padding: 26px; }
.blog-card .blog-date { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.blog-card h3 { margin: 10px 0 12px; font-size: 18px; }
.blog-card h3 a { color: var(--color-title); }
.blog-card p { font-size: 13.5px; margin-bottom: 16px; }

.article-header { padding: 46px 0 28px; text-align: center; }
.article-header .blog-date { color: #999; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.article-body { max-width: 760px; margin: 0 auto; padding-bottom: 56px; }
.article-body h2 { margin: 32px 0 14px; }
.article-body h3 { margin: 24px 0 12px; }
.article-body p { font-size: 15.5px; }
.article-body img { border-radius: 6px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.article-body img.article-inline-img { width: 100%; max-width: 400px; }
.article-body blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 6px 24px;
  font-style: italic;
  color: var(--color-title);
  margin: 24px 0;
}

/* ==================== FOOTER ==================== */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 52px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-col img.footer-logo { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-col p { font-size: 13px; color: #b5b8bd; }

.footer-col ul { list-style: none; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #b5b8bd; font-size: 13px; }
.footer-col ul a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7a7d82;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #7a7d82; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom ul { display: flex; gap: 16px; list-style: none; margin: 0; }

/* ==================== BANDEAU COOKIES ==================== */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--color-footer-bg);
  color: #fff;
  border-top: 3px solid var(--color-primary);
  padding: 20px 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,.2);
}

.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-inner p {
  margin: 0;
  font-size: 13.5px;
  color: #d5d7db;
  flex: 1;
  min-width: 240px;
}

.cookie-banner-inner a { color: #fff; text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn { padding: 11px 22px; font-size: 12px; }
.cookie-banner-actions .btn-outline { border-color: #fff; color: #fff !important; }
.cookie-banner-actions .btn-outline:hover { background: #fff; color: var(--color-title) !important; }

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 980px) {
  .main-nav ul { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-title);
  }
  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    gap: 16px;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .main-nav a { white-space: normal; }
}

@media (max-width: 900px) {
  .services-grid, .testimonials-grid, .two-col, .contact-wrap, .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .content-page img.inline-img { float: none; max-width: 100%; margin: 0 0 20px; }
}

/* Le bloc titre-de-section (traits + h2) passe en colonne sur mobile :
   un h2 long ne peut plus forcer toute la page à s'élargir, puisqu'il
   n'est plus contraint à rester sur une seule ligne à côté des traits. */
@media (max-width: 640px) {
  .section-heading-block {
    flex-direction: column;
    gap: 10px;
  }
  .section-heading-block .line { width: 60px; flex: none; }
}

@media (max-width: 760px) {
  h1 { font-size: 26px; }
  .hero { padding: 36px 0; }
  .section { padding: 32px 0; }
  .content-page { padding: 36px 0; }
}
