@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ===============================
   TYPOGRAPHIE GLOBALE
   =============================== */
:root {

  /* Couleurs principales */
  --wt-primary: #2780e3;
  --wt-primary-hover: #1f5fb8;
  --wt-dark: #2f3234;
  --wt-darker: #1f2933;
  --wt-light: #ffffff;

  /* Typographie */
  --wt-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Ombres */
  --wt-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --wt-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --wt-transition: all 0.2s ease-in-out;
}

/* =========================================================
   WEBTRISE – CHARTE TYPOGRAPHIQUE & UI SYSTEM
   Compatible Bootstrap 5 + Drupal 11
========================================================= */

/* ================================
   VARIABLES
================================ */

:root {

  /* Couleurs principales */
  --wt-primary: #2780e3;
  --wt-primary-hover: #1f5fb8;
  --wt-dark: #2f3234;
  --wt-darker: #1f2933;
  --wt-light: #ffffff;

  /* Typographie */
  --wt-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Ombres */
  --wt-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --wt-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --wt-transition: all 0.2s ease-in-out;
}


/* ================================
   TYPOGRAPHIE GLOBALE
================================ */

body {
  font-family: var(--wt-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--wt-dark);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wt-font);
  margin-bottom: 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--wt-darker);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: 1rem;
}


/* ================================
   LIENS
================================ */

a {
  color: var(--wt-primary);
  text-decoration: none;
  transition: var(--wt-transition);
}

a:hover {
  color: var(--wt-primary-hover);
  text-decoration: underline;
}


/* ================================
   NAVBAR PRINCIPALE
================================ */

#navbar-main {
  background-color: var(--wt-primary) !important;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}




.navbar-nav .nav-link {
  font-family: var(--wt-font);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9) !important;
  padding: 0.5rem 1rem;
  transition: var(--wt-transition);
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  opacity: 0.9;
}

.navbar-nav .nav-link.active {
  font-weight: 600;
  color: #ffffff !important;
  position: relative;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
}


/* ================================
   BARRE DE RECHERCHE (TOP)
================================ */

#navbar-top {
  background-color: var(--wt-dark) !important;
}

#navbar-top input {
  border-radius: 4px;
  font-size: 0.9rem;
}

#navbar-top button {
  font-size: 0.9rem;
}


/* ================================
   BOUTONS BOOTSTRAP
================================ */

.btn {
  font-family: var(--wt-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  transition: var(--wt-transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--wt-primary);
  border-color: var(--wt-primary);
  box-shadow: var(--wt-shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--wt-primary-hover);
  border-color: var(--wt-primary-hover);
  box-shadow: var(--wt-shadow-hover);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--wt-primary);
  border-color: var(--wt-primary);
}

.btn-outline-primary:hover {
  background-color: var(--wt-primary);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--wt-dark);
  border-color: var(--wt-dark);
}

.btn-secondary:hover {
  background-color: var(--wt-darker);
  border-color: var(--wt-darker);
}


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

@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.4rem; }

  /* Masque le slogan sur mobile si encapsulé dans un span */
  .navbar-brand span {
    display: none;
  }
}
