
/* =========================================================
   ONALO ASSURANCE COMMUNAUTAIRE
   FEUILLE DE STYLE PRINCIPALE — VERSION NETTOYÉE
   Responsive : téléphone, tablette et ordinateur
========================================================= */

/* 1. COULEURS ET RÉGLAGES GÉNÉRAUX */
:root {
  --blue: #164b86;
  --deep-blue: #0d3768;
  --gold: #f2b900;
  --text: #172b46;
  --soft: #f5f8fc;
  --line: #d8e0ea;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img,
video {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}


/* 2. BARRE SUPÉRIEURE */
.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-height: 250px;
  padding: 12px 10px;
  background: var(--white);
  border-bottom: 1px solid #edf0f5;
}

/* Boutons du menu et de l'aide */
.icon-button {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid #111111;
  border-radius: 14px;
  background: var(--white);
  color: #111111;
  cursor: pointer;
}

#menuToggle {
  justify-self: start;
}

#helpToggle {
  justify-self: end;
  border-color: var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
}

/* Icône hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 25px;
}

.hamburger i {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #111111;
}


/* 3. LOGO CENTRAL — TRÈS GRAND FORMAT */
.topbar .brand {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(94vw, 850px);
  margin: 0;
  transform: translate(-50%, -50%);
}

.topbar .brand img {
  display: block;
  width: 100%;
  max-width: 850px;
  max-height: 235px;
  height: auto;
  object-fit: contain;
  object-position: center;
}


/* 4. SECTION DE BIENVENUE */
.welcome {
  width: min(100%, 1050px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px)
           clamp(14px, 3vw, 32px) 36px;
  text-align: center;
}

.welcome-line {
  margin: 0;
  color: var(--gold);
  font-size: clamp(22px, 4.8vw, 48px);
  font-weight: 300;
  letter-spacing: 0.015em;
}

.welcome h1 {
  margin: 0;
  font-size: clamp(31px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.015em;
}

.welcome h1 span {
  display: block;
}

.gold {
  color: var(--gold);
}

.blue {
  color: var(--blue);
}

.motto {
  margin: 12px 0 25px;
  color: var(--blue);
  font-size: clamp(14px, 2.7vw, 25px);
  font-style: italic;
}


/* 5. VIDÉO D'ACCUEIL */
.video-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 520px);
  height: clamp(200px, 36vh, 320px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: #edf0f4;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #e7e8e9;
}


/* 6. DESCRIPTION */
.description {
  max-width: 850px;
  margin: 16px auto 32px;
  color: #1c2635;
  font-size: clamp(14px, 2.3vw, 20px);
}

.demo-note {
  margin: 20px 0 0;
  color: #596a7e;
  font-size: 12px;
}


/* 7. ESPACES ADMINISTRATEUR ET CLIENT */
.login-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 34px);
  width: min(100%, 900px);
  margin: 0 auto;
}

.login-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  color: inherit;
}

.login-label {
  color: var(--blue);
  font-size: clamp(13px, 2.5vw, 23px);
  line-height: 1.3;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
  border: 3px solid #111111;
  border-radius: 999px;
  color: #111111;
  font-size: clamp(13px, 2.4vw, 23px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background 0.18s, border-color 0.18s;
}

.login-card:hover .login-button,
.login-card:focus-visible .login-button {
  background: #fff7d8;
  border-color: var(--gold);
}

.person-icon {
  position: relative;
  display: inline-block;
  font-size: 27px;
  line-height: 1;
}

.person-icon::after {
  position: absolute;
  top: 17px;
  left: 1px;
  width: 25px;
  height: 13px;
  border-radius: 13px 13px 4px 4px;
  background: #111111;
  content: "";
}


/* 8. SECTIONS D'INFORMATION */
.info-section {
  width: min(calc(100% - 32px), 850px);
  margin: 20px auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.info-section h2 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: clamp(22px, 4vw, 30px);
}

.info-section p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}


/* 9. MENU LATÉRAL */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(10, 22, 38, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}

.scrim.open {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(285px, 82vw);
  height: 100vh;
  height: 100dvh;
  padding: 16px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--white);
  box-shadow: 8px 0 28px #0002;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.22s, visibility 0.22s;
}

.side-menu.open {
  transform: translateX(0);
  visibility: visible;
}

/* Logo du menu */
.side-menu .menu-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 155px;
  margin: 0 0 10px;
  padding: 10px 4px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
}

.side-menu .menu-heading img {
  display: block;
  width: 100%;
  max-width: 255px;
  max-height: 175px;
  height: auto;
  object-fit: contain;
}

/* Rubriques du menu */
.side-menu a,
.side-menu > button:not(.menu-heading) {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--white);
  color: var(--blue);
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.side-menu a:hover,
.side-menu > button:not(.menu-heading):hover {
  background: var(--soft);
}

.side-menu a span,
.side-menu > button:not(.menu-heading) span {
  flex: 0 0 22px;
  color: var(--gold);
  font-weight: bold;
}


/* 10. FENÊTRE D'AIDE */
.help-dialog {
  position: fixed;
  width: min(90vw, 480px);
  max-height: 85vh;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 20px 60px #0003;
}

.help-dialog::backdrop {
  background: #09182b88;
}

.help-dialog h2 {
  margin: 0 35px 14px 0;
  color: var(--blue);
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 32px;
  cursor: pointer;
}


/* 11. FORMULAIRES DE CONNEXION */
.login-form {
  display: grid;
  gap: 10px;
  width: min(calc(100% - 32px), 480px);
  margin: 24px auto;
  text-align: left;
}

.login-form label {
  color: var(--blue);
  font-weight: bold;
}

.login-form input,
.login-form select,
.login-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #9eacbf;
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.login-form button,
.login-form input[type="submit"] {
  min-height: 46px;
  padding: 12px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.login-form button:hover,
.login-form input[type="submit"]:hover {
  background: var(--deep-blue);
}


/* 12. PIED DE PAGE */
footer {
  padding: 18px 12px;
  border-bottom: 5px solid var(--gold);
  background: var(--deep-blue);
  color: var(--white);
  text-align: center;
}

footer p {
  margin: 0;
}


/* 13. TÉLÉPHONES */
@media (max-width: 430px) {
  .topbar {
    min-height: 190px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    padding: 8px;
  }

  /* Le logo reste centré et occupe presque toute la largeur */
  .topbar .brand {
    width: 88vw;
    max-width: 88vw;
  }

  .topbar .brand img {
    max-height: 180px;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    border-width: 2px;
    border-radius: 12px;
  }

  #helpToggle {
    font-size: 30px;
  }

  .hamburger {
    width: 23px;
    gap: 5px;
  }

  .hamburger i {
    height: 3px;
  }

  .welcome {
    padding-top: 20px;
  }

  .motto {
    margin-bottom: 18px;
  }

  .video-frame {
    width: min(100%, 360px);
    height: clamp(200px, 32vh, 280px);
    border-radius: 12px;
  }

  .login-choices {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .login-label {
    font-size: 16px;
  }

  .login-button {
    min-height: 54px;
    padding: 8px 10px;
    border-width: 2px;
  }

  .side-menu .menu-heading {
    min-height: 150px;
  }

  .side-menu .menu-heading img {
    max-height: 165px;
  }
}


/* 14. TRÈS PETITS TÉLÉPHONES */
@media (max-width: 350px) {
  .topbar {
    min-height: 165px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 2px;
    padding: 6px;
  }

  .topbar .brand {
    width: 86vw;
    max-width: 86vw;
  }

  .topbar .brand img {
    max-height: 150px;
  }

  .icon-button {
    width: 35px;
    height: 35px;
  }

  .welcome h1 {
    font-size: 28px;
  }
}


/* 15. TABLETTES ET ORDINATEURS */
@media (min-width: 760px) {
  .topbar {
    min-height: 270px;
    grid-template-columns: 76px minmax(0, 1fr) 76px;
    padding: 12px 24px;
  }

  .topbar .brand {
    width: min(92vw, 900px);
  }

  .topbar .brand img {
    max-height: 255px;
  }

  .icon-button {
    width: 58px;
    height: 58px;
  }

  #helpToggle {
    font-size: 42px;
  }

  .hamburger {
    width: 29px;
    gap: 7px;
  }

  .hamburger i {
    height: 4px;
  }

  .video-frame {
    height: clamp(260px, 42vh, 420px);
  }

  .login-button {
    min-height: 76px;
  }
}


/* 16. ACCESSIBILITÉ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/* Boutons de l'en-tête collés aux coins supérieurs */
.topbar {
  position: relative;
}

#menuToggle,
#helpToggle {
  position: absolute;
  top: 8px;
  z-index: 5;
  margin: 0;
}

#menuToggle {
  left: 8px;
  justify-self: auto;
}

#helpToggle {
  right: 8px;
  justify-self: auto;
}

/* Garder le logo centré entre les deux coins */
.topbar .brand {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Sur téléphone : rapprocher encore les boutons des coins */
@media (max-width: 430px) {
  #menuToggle {
    top: 6px;
    left: 6px;
  }

  #helpToggle {
    top: 6px;
    right: 6px;
  }
}

/* PIED DE PAGE ONALO */
footer {
  position: relative;
  margin-top: -12px;
  padding: 14px 12px 18px;
  text-align: center;
}

/* SIGNATURE PERSONNELLE */
.signature-bili {
  margin-top: 8px;
  color: #f5c542;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
  text-shadow: 0 0 8px rgba(245, 197, 66, 0.25);
}


/* =====================================
   TYPOGRAPHIE PROFESSIONNELLE ONALO
   Après l'animation jusqu'au pied de page
===================================== */

/* Police générale : moderne et lisible */
main {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #24344d;
  line-height: 1.7;
}

/* Titres des sections */
main h2 {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.2px;
  color: #082755;
  margin-bottom: 14px;
}

/* Petits titres */
main h3 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  color: #0b2c60;
}

/* Paragraphes et textes descriptifs */
main p {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  line-height: 1.8;
  font-weight: 400;
  color: #43516a;
  letter-spacing: 0.1px;
}

/* Slogan de la page d'accueil */
.motto {
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.3px;
  color: #b88712;
}

/* Description après l'animation */
.welcome > p {
  max-width: 720px;
  margin: 18px auto;
  padding: 0 14px;
}

/* Cartes de connexion */
.login-choices a {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.25px;
  line-height: 1.4;
}

/* Petit texte informatif */
.demo-note {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #64748b;
}

/* Pied de page */
footer {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* Signature personnelle Billy Digit X */
.signature-billy {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1.5;
}

/* Confort de lecture sur petit écran */
@media (max-width: 430px) {
  main p {
    line-height: 1.75;
  }

  main h2 {
    margin-bottom: 10px;
  }

  .login-choices a {
    font-size: 0.95rem;
  }
}

/* Style distinct du texte de présentation bancaire */
.texte-banque {
  max-width: 650px;
  margin: 12px auto;
  padding: 0 14px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.15px;

  color: #52627a;
  text-align: center;
}

/* Ajustement sur téléphone */
@media (max-width: 430px) {
  .texte-banque {
    font-size: 0.82rem;
    line-height: 1.6;
    padding: 0 12px;
  }
}


/* Texte court : une ligne, lettres bien calibrées */
.motto {
  font-family: inherit;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  margin: 8px auto;
  color: inherit;
}


/* Remonter légèrement le titre de bienvenue */
.welcome {
  margin-top: -35px;
  padding-top: 0;
}

.welcome-line {
  margin-top: 0;
  margin-bottom: 2px;
  line-height: 1.05;
}

.welcome h1 {
  margin-top: 0;
  line-height: 1.05;
}

/* Réglage pour les téléphones */
@media (max-width: 430px) {
  .welcome {
    margin-top: -28px;
  }
}

/* Faire réapparaître BIENVENUE CHEZ */
.welcome-line {
  position: relative;
  top: 14px;
  z-index: 2;
}


/* Remonter le slogan juste avant BANQUE CRÉDIT */
.motto {
  position: relative;
  top: -18px;
  margin-bottom: -14px;
}


/* PRÉSENTATION DES SERVICES ONALO */
.presentation-services {
  max-width: 900px;
  margin: 24px auto;
  padding: 26px 20px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(8, 39, 85, 0.07);
  color: #43516a;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.75;
}

.presentation-services h2 {
  margin: 0 0 18px;
  color: #082755;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.35;
}

.presentation-services h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 12px;
  background: #d6a01c;
  border-radius: 5px;
}

.presentation-services h3 {
  margin: 22px 0 10px;
  color: #0b2c60;
  font-size: 1.15rem;
  font-weight: 750;
}

.presentation-services p {
  margin: 12px 0;
  font-size: 0.96rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.service-card {
  padding: 16px 12px;
  border: 1px solid #e6c86d;
  border-radius: 12px;
  background: #f7faff;
  color: #082755;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 750;
}

.presentation-services .note-services {
  margin-top: 18px;
  color: #68758a;
  font-size: 0.88rem;
  font-style: italic;
}

@media (max-width: 430px) {
  .presentation-services {
    margin: 16px 10px;
    padding: 20px 15px;
    border-radius: 14px;
  }

  .services-grid {
    gap: 9px;
  }

  .service-card {
    padding: 13px 8px;
    font-size: 0.88rem;
  }
}
