@font-face {
  font-family: "Powermax";
  src: url("../fonts/Powermax.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Powermax";
  src: url("../fonts/Powermax-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Roboto-italic";
  src: url("../fonts/Roboto-Italic.ttf") format("opentype");
  font-weight: normal;
  font-style: italic;
}

:root {
  --bs-body-bg: #000000; /* Fond noir */
  --bs-body-color: #ffffff; /* Texte blanc par défaut */

  /* Tes couleurs personnalisées */
  --primary-color: #106861; /* Couleur principale */
  --secondary-color: #74b0ab; /* Couleur secondaire */
}

.bg-primary {
  background-color: var(--primary-color) !important;
}
.color-primary {
  color: var(--primary-color) !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

h1 {
  font-family: "Roboto", sans-serif;
  font-size: 60px;
  font-weight: bold;
}

h2 {
  color: var(--primary-color) !important;
  font-size: 35px;
}

hr {
  color: var(--primary-color) !important;
  border-width: thick;
}

.border-rounded {
  border: 1px solid var(--bs-body-color);
  border-radius: 15px;
}

main {
  flex: 1;
}

main li {
  padding: 8px 0;
}

#social_networks a {
  font-size: 25px;
  color: var(--primary-color) !important;
}

/* --- PERSONNALISATION NAVBAR --- */
.custom-navbar {
  background-color: #121212; /* Un noir légèrement plus clair pour détacher le header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Couleur du Logo */
.navbar-brand-custom {
  color: var(--primary-color) !important;
  transition: color 0.3s ease;
}
.navbar-brand-custom:hover {
  color: var(--primary-color) !important;
}
.navbar-brand-custom img {
  border-radius: 8px;
}

/* Couleur des liens */
.nav-link-custom {
  color: #ffffff !important;
  opacity: 0.8;
  transition: all 0.3s ease;
}
.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary-color) !important;
  opacity: 1;
}

/* Bouton burger customisé pour le thème sombre */
.navbar-toggler-custom {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.navbar-toggler-custom .navbar-toggler-icon {
  /* Force l'icône burger en blanc */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* --- MARGES HEADER MOBILE & RESPONSIVE --- */
/* Sur mobile (sous 768px), on ajoute une marge gauche/droite au contenu du header */
@media (max-width: 767.98px) {
  .header-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* Petit fond pour le menu déroulant sur mobile */
  .navbar-collapse {
    background-color: #121212;
    padding-bottom: 1rem;
  }
}

/* --- FOOTER --- */
.custom-footer {
  background-color: #121212;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Exemple d'utilisation de la couleur principale */
.accent-text {
  color: var(--primary-color);
}

/* --- FLOATING Contact Buttons --- */
/* --- CONFIGURATION GÉNÉRALE --- */
.btn-teal {
  background-color: #106861;
  border-color: #106861;
  color: #ffffff;
}
.btn-teal:hover {
  background-color: #0d544e;
}

.collapse.show,
#subButtonsMenu .d-flex {
  overflow: visible !important;
}

/* Force le curseur "main" sur le bouton ordinateur */
.cf-btn-style {
  cursor: pointer;
}

#subButtonsMenu i {
  font-size: 20px;
}

/* --- LA BULLE DU NUMÉRO (CACHÉE PAR DÉFAUT) --- */
.cf-text-left {
  position: absolute;
  right: 60px;
  background-color: #106861;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;

  opacity: 0;
  transform: translateX(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* Flèche de la bulle */
.cf-text-left::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #106861;
}

/* ⚡ L'ASTUCE SANS SCRIPT : Quand la case invisible est cochée, on affiche le numéro ⚡ */
.cf-checkbox:checked + .cf-btn-style .cf-text-left {
  opacity: 1;
  transform: translateX(0);
}

/* --- ZONE MOBILE EXCLUSIVE --- */
/* Sur mobile, le lien transparent se met par-dessus le bouton pour forcer l'action tel: ou sms: */
.cf-mobile-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

@media (max-width: 767px) {
  .position-fixed.m-4 {
    margin: 1rem !important;
  }
}
