/* ==================================================================
   ONOMO Hub — feuille de style
   Couleurs et polices reprises telles quelles du site onomohotels.com
   ================================================================== */

/* --- Polices officielles ONOMO (auto-hébergées) ------------------- */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/poppins-v24-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/poppins-v24-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/poppins-v24-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/poppins-v24-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Chillax';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Chillax-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Chillax';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/Chillax-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Chillax';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/Chillax-Semibold.woff2') format('woff2');
}

/* --- Variables ---------------------------------------------------- */

:root {
  --ivoire: #f6ebda;
  --ivoire-carte: #fdf7ec;
  --noir: #000;
  --texte: #1d1d1d;
  --texte-doux: rgba(29, 29, 29, 0.62);
  --trait: rgba(29, 29, 29, 0.12);

  --ambre: #ffb131;
  --ambre-fonce: #de9b28;
  --rouille: #cf6231;
  --navy: #003040;
  --orange: #f18a00;
  --vert: #347338;
  --olive: #595733;
  --terre: #c8322c;

  --police: 'Poppins', sans-serif;
  --police-titre: 'Chillax', 'Poppins', sans-serif;
  --hauteur-nav: 70px;
  --largeur-max: 1240px;
}

/* --- Base --------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ivoire);
  color: var(--texte);
  font-family: var(--police);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ambre);
  outline-offset: 3px;
}

/* --- Barre de navigation ------------------------------------------ */

.nav {
  background: var(--noir);
  color: var(--ivoire);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav__interieur {
  max-width: var(--largeur-max);
  margin: 0 auto;
  min-height: var(--hauteur-nav);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__logo img {
  height: 26px;
  width: auto;
}

.nav__droite {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__utilisateur {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Sélecteur de langue FR | EN */
.langues {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.langues button {
  background: none;
  border: 0;
  color: rgba(246, 235, 218, 0.55);
  cursor: pointer;
  font: inherit;
  font-family: var(--police);
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 999px;
  transition: color 0.15s ease;
}

.langues button:hover {
  color: var(--ivoire);
}

.langues button.actif {
  color: var(--ambre);
}

.langues span {
  color: rgba(246, 235, 218, 0.3);
}

.bouton-nav {
  background: transparent;
  border: 1px solid rgba(246, 235, 218, 0.35);
  border-radius: 999px;
  color: var(--ivoire);
  cursor: pointer;
  font-family: var(--police);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  transition: border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.bouton-nav:hover {
  border-color: var(--ivoire);
  background: rgba(246, 235, 218, 0.08);
}

/* --- Contenu ------------------------------------------------------ */

.contenu {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 56px 32px 72px;
}

.titre-page {
  font-family: var(--police-titre);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sous-titre-page {
  color: var(--texte-doux);
  font-size: 16px;
  font-weight: 300;
  margin-top: 8px;
}

.filet {
  border: 0;
  border-top: 1px solid var(--trait);
  margin: 32px 0 28px;
}

/* --- Grille de modules -------------------------------------------- */

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.module {
  background: var(--ivoire-carte);
  border: 1px solid var(--trait);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
  padding: 26px 26px 22px;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.module--actif:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 29, 29, 0.28);
  box-shadow: 0 14px 30px rgba(29, 29, 29, 0.09);
}

.module--actif:hover .module__fleche {
  transform: translateX(5px);
}

.module--inactif {
  cursor: default;
  opacity: 0.62;
}

.module__vignette {
  align-items: center;
  border-radius: 14px;
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.module__vignette svg {
  height: 22px;
  width: 22px;
  stroke: var(--ivoire);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module--inactif .module__vignette {
  background: rgba(29, 29, 29, 0.28) !important;
}

.module__titre {
  font-family: var(--police-titre);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.module__description {
  color: var(--texte-doux);
  font-size: 14px;
  font-weight: 300;
  margin-top: 2px;
}

.module__pied {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

.module__action {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module__fleche {
  display: inline-block;
  font-size: 17px;
  transition: transform 0.18s ease;
}

.etiquette {
  border: 1px solid var(--trait);
  border-radius: 999px;
  color: var(--texte-doux);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  text-transform: uppercase;
}

/* Couleurs de vignette */
.c-rouille { background: var(--rouille); }
.c-navy    { background: var(--navy); }
.c-orange  { background: var(--orange); }
.c-vert    { background: var(--vert); }
.c-olive   { background: var(--olive); }
.c-terre   { background: var(--terre); }
.c-ambre   { background: var(--ambre); }
.c-ambre svg { stroke: var(--noir); }

/* --- Aucun module ------------------------------------------------- */

.vide {
  border: 1px solid var(--trait);
  border-radius: 18px;
  margin: 8px 0;
  padding: 48px 32px;
  text-align: center;
}

.vide h2 {
  font-family: var(--police-titre);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.vide p {
  color: var(--texte-doux);
  font-weight: 300;
  margin: 0 auto;
  max-width: 420px;
}

/* --- Pied de page -------------------------------------------------- */

.pied {
  border-top: 1px solid var(--trait);
  color: var(--texte-doux);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-top: 56px;
  padding-top: 24px;
  text-transform: uppercase;
}

/* --- Écran de connexion -------------------------------------------- */

.page-connexion {
  align-items: center;
  background-color: var(--noir);
  background-image: linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.62)),
    url('assets/img/ambiance-kampala.webp');
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 20px;
}

.connexion__logo {
  height: 34px;
  margin-bottom: 28px;
  width: auto;
}

.connexion__carte {
  background: var(--ivoire);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: 420px;
  padding: 40px 36px 34px;
  width: 100%;
}

.connexion__titre {
  font-family: var(--police-titre);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.connexion__sous-titre {
  color: var(--texte-doux);
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 26px;
  margin-top: 4px;
}

.champ {
  display: block;
  margin-bottom: 18px;
}

.champ span {
  color: var(--texte-doux);
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.champ input {
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: 10px;
  color: var(--texte);
  font-family: var(--police);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
  width: 100%;
}

.champ input:focus {
  border-color: var(--noir);
  outline: none;
}

.bouton-principal {
  background: var(--ambre);
  border: 0;
  border-radius: 999px;
  color: var(--noir);
  cursor: pointer;
  font-family: var(--police);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  transition: background 0.15s ease;
  width: 100%;
}

.bouton-principal:hover {
  background: var(--ambre-fonce);
}

.erreur {
  color: var(--terre);
  font-size: 13px;
  margin-top: 14px;
  text-align: center;
}

.connexion__mention {
  color: rgba(246, 235, 218, 0.72);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-top: 26px;
  text-align: center;
}

.connexion__langues {
  margin-top: 22px;
}

/* --- Mobile -------------------------------------------------------- */

@media (max-width: 760px) {
  .nav__interieur {
    padding: 0 18px;
    gap: 12px;
  }

  .nav__logo img {
    height: 22px;
  }

  .nav__droite {
    gap: 12px;
  }

  .nav__utilisateur {
    font-size: 13px;
  }

  .bouton-nav {
    font-size: 12px;
    padding: 7px 14px;
  }

  .contenu {
    padding: 36px 18px 56px;
  }

  .modules {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .module {
    min-height: 0;
    padding: 22px;
  }

  .connexion__carte {
    padding: 32px 24px 28px;
  }
}

/* Très petits écrans : le prénom reste visible en grand dans « Bonjour … ». */
@media (max-width: 460px) {
  .nav__utilisateur {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
