/* =========================================================
   BognaService – UI Kit (Professional, responsive)
   Path: public/assets/css/style.css
   ========================================================= */

/* ---------- CSS Reset (light) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 1.5;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
  color: #0f172a;

  /* Fond apaisant santé */
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(34,197,94,0.18), transparent 60%),
    radial-gradient(900px 450px at 90% 0%, rgba(59,130,246,0.18), transparent 60%),
    linear-gradient(180deg, #f0fdf4 0%, #f5f7fb 60%, #eef2ff 100%);

  min-height: 100vh;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* ---------- Design tokens ---------- */
:root{
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;

  --border: rgba(15, 23, 42, .10);
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);

  --primary: #16a34a;     /* green */
  --primary-2: #22c55e;   /* green lighter */
  --primary-dark: #0f7a36;

  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  --radius: 14px;
  --radius-sm: 10px;

  --container: 1120px;
}

/* ---------- Helpers ---------- */
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section{
  padding: 26px 0;
}

.subtitle{
  color: var(--muted);
  max-width: 70ch;
}

hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

/* ---------- Topbar / Header ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .2px;
}

.brand-badge{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link{
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: .15s ease;
}

.nav-link:hover{
  color: var(--text);
  background: rgba(22, 163, 74, .08);
  border-color: rgba(22, 163, 74, .18);
}

.nav-link.active{
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(22, 163, 74, .25);
}

/* ---------- Hero ---------- */
.hero{
  padding: 36px 0 20px 0;
}

.hero .container{
  background: radial-gradient(1000px 350px at 20% 0%, rgba(34,197,94,.18), transparent 60%),
              radial-gradient(900px 320px at 80% 0%, rgba(22,163,74,.16), transparent 60%),
              var(--panel);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero h1{
  margin: 0 0 8px 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
}

.cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: .15s ease;
  user-select: none;
  font-weight: 700;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}

.btn:active{
  transform: translateY(0);
  box-shadow: none;
}

.btn.primary{
  border-color: rgba(22,163,74,.35);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px rgba(22, 163, 74, .22);
}

.btn.primary:hover{
  box-shadow: 0 14px 28px rgba(22, 163, 74, .28);
}

.btn.danger{
  border-color: rgba(239,68,68,.35);
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #fb7185);
}

.btn.small{
  padding: 8px 12px;
  font-size: 14px;
}

/* ---------- Cards / Grid ---------- */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .cards{ grid-template-columns: 1fr; }
}


.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  padding: 16px;
}

.card strong{
  display: inline-block;
  margin-bottom: 6px;
}

.card .muted{
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Forms ---------- */
.form{
  max-width: 760px;
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
  padding: 16px;
}

label{
  display: block;
  margin: 12px 0 6px 0;
  font-weight: 800;
  color: #0b1220;
}

.input, select, textarea{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
  transition: .15s ease;
}

.input:focus, select:focus, textarea:focus{
  border-color: rgba(22,163,74,.55);
  box-shadow: 0 0 0 4px rgba(22,163,74,.14);
}

textarea{ min-height: 110px; resize: vertical; }

/* inline form actions */
.form-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- Alerts ---------- */
.alert{
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 12px;
  margin: 12px 0;
  background: #fff;
}

.alert.info{
  border-color: rgba(59,130,246,.22);
  background: rgba(59,130,246,.08);
  color: #1e3a8a;
}

.alert.warning{
  border-color: rgba(245,158,11,.22);
  background: rgba(245,158,11,.10);
  color: #78350f;
}

.alert.danger{
  border-color: rgba(239,68,68,.22);
  background: rgba(239,68,68,.08);
  color: #7f1d1d;
}

.alert.success{
  border-color: rgba(22,163,74,.22);
  background: rgba(22,163,74,.08);
  color: #14532d;
}

/* ---------- Tables ---------- */
.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: left;
}

.table thead th{
  font-size: 13px;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: #0b1220;
  background: linear-gradient(180deg, rgba(22,163,74,.08), rgba(22,163,74,.03));
}

.table tbody tr:hover td{
  background: rgba(2,6,23,.02);
}

.table tr:last-child td{ border-bottom: 0; }

/* Make inputs inside tables nicer */
.table .input{
  padding: 9px 10px;
  border-radius: 10px;
}

/* ---------- Service tiles (inline-block + colored padding) ---------- */
.services-container{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.service-link{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22,163,74,.22);
  background: rgba(22,163,74,.10);
  color: #0b1220;
  font-weight: 800;
  transition: .15s ease;
}

.service-link:hover{
  transform: translateY(-1px);
  background: rgba(22,163,74,.16);
  box-shadow: 0 12px 24px rgba(2,6,23,.08);
}

.service-link:active{
  transform: translateY(0);
}

/* Optional badges */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.badge.green{
  border-color: rgba(22,163,74,.25);
  background: rgba(22,163,74,.10);
  color: #14532d;
}
.badge.orange{
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.12);
  color: #7c2d12;
}
.badge.red{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
  color: #7f1d1d;
}

/* ---------- Footer ---------- */
.footer{
  margin-top: 26px;
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.footer .container{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ---------- Auth pages helpers ---------- */
.auth-wrap{
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 22px 0;
}

.auth-card{
  width: min(520px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 18px;
}

.auth-card h1{
  margin: 0 0 6px 0;
}

.auth-card .muted{
  color: var(--muted);
  margin: 0 0 12px 0;
}

/* ---------- Small utilities ---------- */
.muted{ color: var(--muted); }
.right{ text-align: right; }
.center{ text-align: center; }
.hidden{ display: none !important; }
/* Assurer que le footer est toujours en bas */
/* Container des cartes */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.btn {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #45a049;
}

/* Utilisation de la carte en format mobile */
@media (max-width: 768px) {
  .card {
    flex: 1 1 calc(50% - 20px); /* 2 cartes par ligne pour les petits écrans */
  }
}

@media (max-width: 480px) {
  .card {
    flex: 1 1 100%; /* 1 carte par ligne pour les très petits écrans */
  }
}
/* Conteneur des formulaires avec Flexbox pour les disposer côte à côte */
.form-container {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* Espacement entre les deux formulaires */
  margin-top: 20px;
  padding-left: 10px; /* Réduire le padding gauche */
}

/* Carte de chaque formulaire */
.form-card {
  width: 48%; /* Chaque carte occupe 48% de l'espace */
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Espacement entre les champs du formulaire */
.form-card form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacement entre les éléments du formulaire */
}

/* Style des champs de saisie */
.form-card input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 0; /* Supprimer tout margin inutile */
  width: 100%; /* Les champs prennent toute la largeur disponible */
}

/* Style du bouton de soumission */
.form-card button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  width: 100%; /* Le bouton prend toute la largeur */
}

/* Changer la couleur du bouton au survol */
.form-card button:hover {
  background-color: #45a049;
}

/* Titres des sections des formulaires */
h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}
.btn-green {
  background: #22c55e;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.btn-green:hover {
  background: #16a34a;
}
.hero {
  padding: 24px 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;

  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Texte */
.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 15px;
  color: #64748b;
}

/* Image */
.hero img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.logo-img {
  height: 52px;   /* plus lisible */
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-img {
    height: 44px;
  }
}
.btn-vert {
  background: #22c55e;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
}

.btn-vert:hover {
  background: #16a34a;
  transform: scale(1.05);
}
/* ===== STATUT VACCINAL COMPACT ===== */

h1 {
  font-size: 22px;
  margin-bottom: 6px;
}

h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

p {
  font-size: 13px;
  line-height: 1.3;
  margin: 4px 0;
}

.table th,
.table td {
  padding: 6px 8px;
  font-size: 12px;
}

.btn {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.reaction-bar {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
}

.reaction-btn {
    border:none;
    border-radius:999px;
    padding:9px 13px;
    font-size:13px;
    font-weight:800;
    background:#f8fafc;
    border:1px solid var(--line);
    cursor:pointer;
}

.floating-reaction {
    position:absolute;
    bottom:100px;
    font-size:34px;
    animation:floatReaction 2.6s ease-out forwards;
    pointer-events:none;
    z-index:50;
}

@keyframes floatReaction {
    0% { opacity:0; transform:translateY(0) scale(.7); }
    10% { opacity:1; transform:translateY(-20px) scale(1); }
    100% { opacity:0; transform:translateY(-220px) scale(1.2); }
}
/* ===== VIDEO GRID PRO CLEAN ===== */

.video-grid{
  display: grid;
  gap: 12px;
  width: 100%;
}

/* FORMAT VIDEO 16:9 COMPATIBLE */
.video-box{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

/* VIDEO */
.video-box video{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit: cover;
}

/* LAYOUT DYNAMIQUE */

.video-grid.grid-1{
  grid-template-columns:1fr;
}

.video-grid.grid-2{
  grid-template-columns:1fr 1fr;
}

.video-grid.grid-4{
  grid-template-columns:1fr 1fr;
}

.video-grid.grid-6{
  grid-template-columns:1fr 1fr 1fr;
}

.video-grid.grid-auto{
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}

/* FULLSCREEN */

.video-box.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
}

.video-box.fullscreen::before {
  content: "";
  position: fixed;
  inset: 0;
  background: black;
  z-index: -1;
}

/* LA VIDÉO NE DOIT JAMAIS DÉPASSER */
.video-box video{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 1 participant */
.video-grid.grid-1{
  grid-template-columns:1fr;
}

/* 2 participants */
.video-grid.grid-2{
  grid-template-columns:1fr 1fr;
}

/* 3-4 participants */
.video-grid.grid-4{
  grid-template-columns:1fr 1fr;
}

/* 5-6 participants */
.video-grid.grid-6{
  grid-template-columns:1fr 1fr 1fr;
}

/* + participants */
.video-grid.grid-auto{
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}

.video-box{
  aspect-ratio:16/9;
  background:#000;
  border-radius:12px;
  overflow:hidden;
  position:relative;
}

.video-box video{
  width:100%;
  height:100%;
  object-fit:cover;
}
.video-box.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
}
.video-box.fullscreen::before {
  content: "";
  position: fixed;
  inset: 0;
  background: black;
  z-index: -1;
}
.chart-wrap{
    margin-top:22px;
    padding:18px;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:16px;
}

.chart-wrap h3{
    margin:0 0 14px;
}
.card h2{
  font-size: 22px;
}

.card p{
  font-size: 15px;
}
.card{
  min-height: 200px;
}
/* ===== ADMIN CARDS PREMIUM ===== */

.admin-card{
  position:relative;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}

.admin-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 48px rgba(15,23,42,.15);
}

.admin-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:6px;
  border-radius:14px 14px 0 0;
}

/* COULEURS PAR MODULE */
.card-cours::before{background:linear-gradient(135deg,#16a34a,#22c55e);}
.card-lecons::before{background:linear-gradient(135deg,#2563eb,#60a5fa);}
.card-apps::before{background:linear-gradient(135deg,#7c3aed,#a78bfa);}
.card-micro::before{background:linear-gradient(135deg,#f59e0b,#fbbf24);}
.card-paiements::before{background:linear-gradient(135deg,#dc2626,#fb7185);}
.card-cours-payments::before{background:linear-gradient(135deg,#0891b2,#22d3ee);}
.card-zoom::before{background:linear-gradient(135deg,#0f172a,#475569);}
/* ===== PUBLIC CARDS PREMIUM ===== */

.public-card,
.cards .card{
  position:relative;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.public-card:hover,
.cards .card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 48px rgba(15,23,42,.15);
  border-color:rgba(22,163,74,.35);
}

.public-card::before,
.cards .card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:5px;
  background:linear-gradient(135deg,#16a34a,#22c55e);
}

/* Variantes par module */
.card-commerce::before{background:linear-gradient(135deg,#16a34a,#22c55e);}
.card-money::before{background:linear-gradient(135deg,#f59e0b,#fbbf24);}
.card-project::before{background:linear-gradient(135deg,#2563eb,#60a5fa);}
.card-learning::before{background:linear-gradient(135deg,#7c3aed,#a78bfa);}
.card-courses::before{background:linear-gradient(135deg,#0891b2,#22d3ee);}
.card-chat::before{background:linear-gradient(135deg,#22c55e,#14b8a6);}
.card-zoom::before{background:linear-gradient(135deg,#0f172a,#475569);}
/* ===== DASHBOARD PUBLIC PREMIUM ===== */

.cards .card{
  position:relative;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}

.cards .card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 48px rgba(15,23,42,.15);
}

/* barre en haut */
.cards .card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:5px;
}

/* couleurs modules */
.card-abonnement::before{background:linear-gradient(135deg,#16a34a,#22c55e);}
.card-suivi::before{background:linear-gradient(135deg,#f59e0b,#fbbf24);}
.card-intrants::before{background:linear-gradient(135deg,#2563eb,#60a5fa);}
.card-courses::before{background:linear-gradient(135deg,#7c3aed,#a78bfa);}
.card-applications::before{background:linear-gradient(135deg,#0891b2,#22d3ee);}
.card-contact::before{background:linear-gradient(135deg,#0f172a,#475569);}
.cards .card h3{
  font-size:20px;
  margin-bottom:8px;
}

.cards .card p{
  font-size:15px;
}
/* ===== BOUTONS PREMIUM ANIMÉS ===== */

.btn.primary{
  position:relative;
  overflow:hidden;
  animation:softPulse 2.8s ease-in-out infinite;
}

.btn.primary::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:80%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.45),
    transparent
  );
  transform:skewX(-20deg);
}

.btn.primary:hover::after{
  animation:shineMove .75s ease forwards;
}

.btn.primary:hover{
  transform:translateY(-2px) scale(1.03);
}

@keyframes shineMove{
  from{left:-120%;}
  to{left:140%;}
}

@keyframes softPulse{
  0%,100%{
    box-shadow:0 10px 22px rgba(22,163,74,.22);
  }
  50%{
    box-shadow:0 14px 30px rgba(22,163,74,.38);
  }
}
#fileInput{
    padding:10px;
    border:1px solid #d1d5db;
    border-radius:12px;
    background:white;
}
#generateExerciseBtn{
    border:none;
    background:#2563eb;
    color:white;
    padding:10px 14px;
    border-radius:12px;
    cursor:pointer;
    font-weight:700;
}
#generateQuizBtn{
    border:none;
    background:#7c3aed;
    color:white;
    padding:10px 14px;
    border-radius:12px;
    cursor:pointer;
    font-weight:700;
}
.speakBtn{

    margin-top:12px;

    border:none;

    background:#0f172a;

    color:white;

    padding:8px 14px;

    border-radius:10px;

    cursor:pointer;

    font-size:13px;
}