/* Socle commun aux pages de bakori.fr — genere depuis les feuilles inline.
 *
 * Ne contient que les regles identiques dans les six pages : reset, variables
 * de marque, typographie, boutons, navigation, pied de page. Tout ce qui est
 * propre a une page reste dans son <style> inline.
 *
 * Nginx sert ce fichier avec un cache d'un an : incrementer le ?v= dans les
 * six <link> a chaque modification, sinon les visiteurs gardent l'ancienne
 * version.
 */

/* ===========================
   RESET & BASE
=========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--gray-100);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--gray-50);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

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

footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 52px 24px 32px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-rgpd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--emerald-light);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===========================
   MARQUE
   ===========================
   Le nom vient du cauri — « maison de cauris » en bamiléké. Le dessin est posé
   en masque CSS plutôt qu'en <img> ou en <svg> inline : les six pages le
   partagent depuis ce seul endroit, et il prend la couleur de son conteneur.
   Modifier le tracé ici suffit à le changer partout. */
.nav-logo-icon::after,
.footer-brand-icon::after {
  content: '';
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5c3.5 0 5.8 4.2 5.8 9.5S15.5 21.5 12 21.5 6.2 17.3 6.2 12 8.5 2.5 12 2.5z'/%3E%3Cpath d='M12 6v12M10.4 9h3.2M10.4 12h3.2M10.4 15h3.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5c3.5 0 5.8 4.2 5.8 9.5S15.5 21.5 12 21.5 6.2 17.3 6.2 12 8.5 2.5 12 2.5z'/%3E%3Cpath d='M12 6v12M10.4 9h3.2M10.4 12h3.2M10.4 15h3.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-brand-icon {
  color: white;
}

.footer-brand-icon::after {
  width: 18px;
  height: 18px;
}

.footer-rgpd-badge::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5.5c0 4.4-2.9 8.3-7 9.5-4.1-1.2-7-5.1-7-9.5V6l7-3z'/%3E%3Cpath d='M9.2 12.2l2 2 3.6-3.9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5.5c0 4.4-2.9 8.3-7 9.5-4.1-1.2-7-5.1-7-9.5V6l7-3z'/%3E%3Cpath d='M9.2 12.2l2 2 3.6-3.9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 0.82rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   MOBILE NAV MENU
=========================== */

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: var(--gray-100);
}

.mobile-menu-cta {
  display: flex;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
  margin-top: 4px;
}

.mobile-menu-cta .btn-ghost,
.mobile-menu-cta .btn-primary {
  flex: 1;
  text-align: center;
  padding: 11px;
}
