/* ============================================================
   rest-custom.css — Personnalisations ReST par-dessus Chemlabs
   Chargé après libraries.css et style.css (partie publique).
   ============================================================ */

/* --- Logo texte ReST (remplace le logo image du template) --- */
.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.navbar-brand-text .brand-acronym {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--color-primary, #D4621A);
}
.navbar-brand-text .brand-sub {
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #6b7a90;
  margin-top: 3px;
}
.is-sticky .navbar-brand-text .brand-acronym { color: var(--color-primary, #D4621A); }

/* --- Compte / bouton "Mon espace" dans header-actions --- */
.header-actions .account-link {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.header-actions .account-dropdown { list-style: none; }
.header-actions .account-dropdown .dropdown-menu { left: auto; right: 0; }

/* --- Footer : logo texte --- */
.footer .footer-brand-text {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  display: inline-block;
  margin-bottom: 12px;
}
.footer .footer-brand-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .5px;
}

/* --- Cartes génériques de contenu (pages publiques) --- */
.rest-card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 6px 24px rgba(20, 40, 80, .05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.rest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(20, 40, 80, .10);
}
.rest-card .rest-card-icon {
  font-size: 34px;
  color: var(--color-primary, #D4621A);
  margin-bottom: 16px;
  display: inline-block;
}
.rest-card h4, .rest-card h5 { margin-bottom: 12px; }

/* Contenu riche : listes lisibles */
.rest-content ul:not(.list-unstyled) { padding-left: 20px; }
.rest-content li { margin-bottom: 8px; }
.rest-content h2, .rest-content h3, .rest-content h4 { margin-top: 26px; margin-bottom: 14px; }
.rest-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.rest-content table th, .rest-content table td {
  border: 1px solid #e7ebef; padding: 10px 14px; text-align: left;
}
.rest-content table th { background: #f5f8fc; }

/* Badge / étiquette */
.rest-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 86, 179, .1);
  color: var(--color-primary, #D4621A);
}

/* ============================================================
   COUCHE DE COMPATIBILITÉ — anciens composants de contenu
   (restyle les classes de l'ancien template au thème Chemlabs)
   ============================================================ */

/* --- Titres de section --- */
.heading { margin-bottom: 30px; }
.heading__subtitle,
.heading-subtitle {
  display: block;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--color-primary, #D4621A);
  margin-bottom: 12px;
}
.heading__title {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  color: #1c2434;
  margin-bottom: 16px;
}
.heading__desc { font-size: 16px; color: #63707e; margin-bottom: 0; }
.heading-white .heading__title,
.heading-white .heading__desc,
.heading-white .heading__subtitle { color: #fff; }
.heading__number { color: var(--color-primary, #D4621A); font-weight: 700; }

/* --- Boutons (ancien template) --- */
.btn__primary, .btn__secondary, .btn__white, .btn__bordered, .btn__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Lexend", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s ease;
}
.btn__primary { background: var(--color-primary, #D4621A); color: #fff; }
.btn__primary:hover { background: var(--color-secondary, #6B1A2A); color: #fff; }
.btn__secondary { background: var(--color-secondary, #6B1A2A); color: #fff; }
.btn__secondary:hover { background: var(--color-primary, #D4621A); color: #fff; }
.btn__white { background: #fff; color: var(--color-secondary, #6B1A2A); }
.btn__white:hover { background: var(--color-primary, #D4621A); color: #fff; }
.btn__bordered { background: transparent; border-color: var(--color-primary, #D4621A); color: var(--color-primary, #D4621A); }
.btn__bordered:hover { background: var(--color-primary, #D4621A); color: #fff; }
.btn__link { padding: 10px 0; background: transparent; color: var(--color-primary, #D4621A); }
.btn__link:hover { color: var(--color-secondary, #6B1A2A); }
.btn__block { display: flex; width: 100%; justify-content: center; }
.btn__sm { padding: 10px 18px; font-size: 13px; }
.btn__lg { padding: 17px 36px; font-size: 16px; }

/* --- Cartes "fancybox" (ancien template) --- */
.fancybox-item {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.fancybox-item-border { border: 1px solid #eef1f5; box-shadow: 0 6px 24px rgba(20, 40, 80, .05); }
.fancybox-item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20, 40, 80, .10); }
.fancybox__icon { color: var(--color-primary, #D4621A); font-size: 40px; line-height: 1; margin-bottom: 18px; }
.fancybox__title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 19px; margin-bottom: 12px; color: #1c2434; }
.fancybox__desc { color: #63707e; margin-bottom: 0; }

/* --- Listes à puces --- */
.list-items { padding-left: 0; }
.list-items li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: #4a5563;
}
.list-items li::before {
  content: "\e93e";
  font-family: "icomoon";
  position: absolute;
  left: 0; top: 2px;
  font-size: 14px;
  color: var(--color-primary, #D4621A);
}

/* --- Étapes numérotées --- */
.step-item { padding: 20px; }
.step__number {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(212, 98, 26, .12);
  color: var(--color-primary, #D4621A);
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 22px;
}
.step-item h5 { font-weight: 700; margin-bottom: 10px; }

/* --- Compteurs --- */
.counter-item { padding: 10px 0; }
.counter { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 42px; color: var(--color-primary, #D4621A); }
.counter__desc { color: #63707e; margin-bottom: 0; }
.divider__line { height: 1px; background: #e7ebef; margin: 20px 0; }

/* --- Boîtes de contact --- */
.contact__info-box { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid #eef1f5; border-radius: 10px; }
.contact__info-box-icon { font-size: 30px; color: var(--color-primary, #D4621A); }
.contact__info-box-text span { display: block; font-size: 13px; color: #93a0ad; }
.contact__info-box-text strong { font-size: 16px; color: #1c2434; }
.contact__form-panel { background: #fff; border: 1px solid #eef1f5; border-radius: 12px; padding: 34px; box-shadow: 0 10px 30px rgba(20,40,80,.05); }

/* --- Bannière CTA (ancien template) --- */
.cta__banner { padding: 40px; border-radius: 12px; }
.cta__icon { font-size: 44px; color: var(--color-primary, #D4621A); margin-bottom: 16px; }
.cta__title { font-family: "Lexend", sans-serif; font-weight: 700; margin-bottom: 12px; }
.cta__desc { color: #63707e; }

/* --- Blog / cartes d'articles (ancien template) --- */
.blog-item { background: #fff; border: 1px solid #eef1f5; border-radius: 10px; overflow: hidden; height: 100%; box-shadow: 0 6px 24px rgba(20,40,80,.05); transition: transform .3s ease, box-shadow .3s ease; }
.blog-item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,40,80,.10); }
.blog__content { padding: 26px; }
.blog__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.blog__meta-cat a { color: var(--color-primary, #D4621A); font-weight: 600; margin-right: 8px; }
.blog__meta-date { color: #93a0ad; }
.blog__title { font-size: 19px; margin-bottom: 12px; }
.blog__title a { color: #1c2434; }
.blog__title a:hover { color: var(--color-primary, #D4621A); }
.blog__desc { color: #63707e; }

/* --- Tables (contenu) --- */
.table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.table th, .table td { border: 1px solid #e7ebef; padding: 12px 16px; text-align: left; }
.table th, .table-bordered th { background: #f5f8fc; font-weight: 700; }
.table-hover tbody tr:hover { background: #fbfcfe; }

/* --- Pagination --- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-top: 30px; justify-content: center; }
.pagination li a, .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 6px; border: 1px solid #e7ebef; color: #4a5563; text-decoration: none; }
.pagination li a:hover, .pagination li.active span, .pagination li.active a { background: var(--color-primary, #D4621A); color: #fff; border-color: var(--color-primary, #D4621A); }

/* --- Formulaire de recherche interne --- */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form input[type="text"], .search-form select {
  height: 50px; padding: 0 16px; border: 1px solid #e0e5eb; border-radius: 6px; flex: 1; min-width: 180px;
}

/* --- Images "about" --- */
.about__img { position: relative; border-radius: 12px; overflow: hidden; }
.about__img img { border-radius: 12px; }

/* --- Alias d'icônes manquantes (repli sur Font Awesome 5) --- */
.icon-book::before,
.icon-document::before,
.icon-envelope::before,
.icon-globe::before,
.icon-lang::before,
.icon-leaf::before,
.icon-settings::before,
.icon-shield::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  font-style: normal;
  line-height: 1;
}
.icon-book::before     { content: "\f02d"; }
.icon-document::before { content: "\f15b"; }
.icon-envelope::before { content: "\f0e0"; }
.icon-globe::before    { content: "\f0ac"; }
.icon-lang::before     { content: "\f1ab"; }
.icon-leaf::before     { content: "\f06c"; }
.icon-settings::before { content: "\f013"; }
.icon-shield::before   { content: "\f3ed"; }

/* --- Cartes membres du comité --- */
.team-member { border: 1px solid #eef1f5; border-radius: 12px; transition: transform .3s ease, box-shadow .3s ease; }
.team-member:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20, 40, 80, .10); }
.team__social { display: flex; gap: 10px; justify-content: center; }
.team__social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(212, 98, 26, .1); color: var(--color-primary, #D4621A);
  transition: all .3s ease;
}
.team__social a:hover { background: var(--color-primary, #D4621A); color: #fff; }
