/* Chenggong Study — feuille de style principale
   Palette reprise du site d'origine (style-liberty.css) :
   --brand-primary (cyan)   #43faee : boutons, badges, accents sur fond sombre
   --brand-primary-hover     #f12e38 : survol des boutons (identique au site d'origine)
   --brand-secondary (bleu)  #1545cb : liens actifs, kickers, icônes sur fond clair
   --brand-heading           #3f3a64 : couleur des titres
   --brand-navy              #182c44 : fonds sombres (en-tête, pied de page, hero)
   --text-muted              #666    : texte courant
*/

:root {
  --brand-primary: #43faee;
  --brand-primary-hover: #f12e38;
  --brand-secondary: #1545cb;
  --brand-heading: #3f3a64;
  --brand-navy: #182c44;
  --brand-navy-soft: #21395a;
  --bg-soft: #f7f7f7;
  --text-muted: #666;
  --radius-lg: 18px;
  --radius-md: 12px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-muted);
  background: #fff;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--brand-heading);
}

a {
  text-decoration: none;
}

/* ---------- Boutons ---------- */
.btn-brand-primary {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: var(--brand-heading);
  font-weight: 600;
}
.btn-brand-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #fff;
}
.btn-brand-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-weight: 600;
}
.btn-brand-outline:hover {
  background: #fff;
  color: var(--brand-navy);
}
.btn-brand-secondary {
  background: var(--brand-secondary);
  border: 1px solid var(--brand-secondary);
  color: #fff;
  font-weight: 600;
}
.btn-brand-secondary:hover {
  filter: brightness(0.92);
  color: #fff;
}

/* ---------- Header ---------- */
.top-bar {
  background: var(--brand-navy);
  color: #cfd7e6;
  font-size: 0.85rem;
  padding: 6px 0;
}
.top-bar a {
  color: #cfd7e6;
}
.top-bar a:hover {
  color: #fff;
}
.top-bar-info a,
.top-bar-info span {
  margin-right: 22px;
}
.site-header .navbar {
  box-shadow: 0 2px 12px rgba(16, 32, 58, 0.06);
  padding: 10px 0;
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled .navbar {
  box-shadow: 0 6px 22px rgba(16, 32, 58, 0.14);
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--brand-heading);
  margin: 0 10px;
  position: relative;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--brand-secondary);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-soft) 60%, #101d30 100%);
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 250, 238, 0.22), transparent 70%);
}
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.25;
}
.hero .badge-success-rate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(67, 250, 238, 0.12);
  border: 1px solid rgba(67, 250, 238, 0.45);
  color: var(--brand-primary);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero p.lead {
  color: #cfd7e6;
  max-width: 560px;
}
.hero-stats {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.hero-stats .stat-label {
  color: #9fabc2;
  font-size: 0.9rem;
}
.hero-image-wrap {
  position: relative;
}
.hero-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

/* ---------- Sections génériques ---------- */
.section {
  padding: 80px 0;
}
.section-soft {
  background: var(--bg-soft);
}
.section-title {
  margin-bottom: 12px;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 10px;
  display: inline-block;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 620px;
}

/* ---------- Cartes domaines ---------- */
.card-domaine {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 32, 58, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card-domaine:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(16, 32, 58, 0.14);
}
.card-domaine .card-domaine-img {
  height: 170px;
  object-fit: cover;
  width: 100%;
}
.card-domaine .card-body {
  padding: 20px;
}
.card-domaine h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* ---------- Cartes services ---------- */
.card-service {
  border: 1px solid #edf0f5;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card-service:hover {
  box-shadow: 0 16px 34px rgba(16, 32, 58, 0.1);
  transform: translateY(-4px);
}
.card-service .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(21, 69, 203, 0.08);
  color: var(--brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card-service h3 {
  font-size: 1.1rem;
}
.card-service p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- À propos ---------- */
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(16,32,58,.12);
}

/* ---------- Témoignages ---------- */
.card-temoignage {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid #edf0f5;
  padding: 26px;
  height: 100%;
}
.card-temoignage .stars {
  color: #ffc107;
  margin-bottom: 10px;
}
.card-temoignage .nom {
  font-weight: 600;
  color: var(--brand-heading);
}
.card-temoignage .fonction {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- CTA bandeau ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-navy), #101d30);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 50px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd7e6; }

/* ---------- Formulaires (contact / rdv) ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(16,32,58,.1);
  padding: 40px;
}
.form-label {
  font-weight: 600;
  color: var(--brand-heading);
}
.form-control, .form-select {
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #dfe3ea;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 0.2rem rgba(21,69,203,.15);
}
.invalid-feedback-static {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ---------- Actualités ---------- */
.card-actualite img {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  height: 190px;
  object-fit: cover;
  width: 100%;
}
.card-actualite {
  border: 1px solid #edf0f5;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
}
.card-actualite .card-body {
  padding: 22px;
}
.card-actualite .date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Fil d'ariane ---------- */
.breadcrumb-hero {
  background: var(--brand-navy);
  color: #fff;
  padding: 50px 0;
}
.breadcrumb-hero h1 { color: #fff; margin-bottom: 6px; }
.breadcrumb-hero .breadcrumb a { color: #9fabc2; }
.breadcrumb-hero .breadcrumb .active { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-navy);
  color: #cfd7e6;
}
.footer-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
  color: #b8c2d6;
}
.footer-links a {
  color: #b8c2d6;
}
.footer-links a:hover {
  color: var(--brand-primary);
}
.social-links a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.social-links a:hover {
  background: var(--brand-secondary);
}
.footer-bottom {
  background: #101d30;
  color: #8b96ac;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero { padding: 60px 0 80px; text-align: center; }
  .hero .hero-stats { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .section { padding: 56px 0; }
  .cta-band { padding: 32px; text-align: center; }
}
