/* =========================
   Page d’accueil — style.css (home only)
   ========================= */

/* ===== Variables + reset ===== */
:root{
  --bg-1:#0f1322;
  --bg-2:#0b1020;
  --bg-3:#141a2c;
  --card:#1c233b;
  --text:#eef1f7;
  --muted:#bfc6d6;
  --accent:#ffd54d;     /* gold */
  --accent-2:#ff6ea6;   /* pink */
  --success:#32e67f;
  --shadow:0 12px 34px rgba(0,0,0,.40);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background-color:#0d0f1a;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,123,255,.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,0,102,.25), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0,255,204,.15), transparent 40%),
    linear-gradient(180deg,#0d0f1a,#0a0c18);
  background-attachment:fixed;
  background-size:cover;
  overflow-x:hidden;
}

/* liens jamais soulignés */
a{color:inherit;text-decoration:none}
a:hover{opacity:.96}


/* bouton mode (gauche) */
.mode-toggle{
  position:fixed; left:16px; top:14px; z-index:60;
  width:36px; height:36px; border-radius:12px;
  display:inline-flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg,#ff8a00,#ff6a00);
  border:0; color:#111; font-weight:800; cursor:pointer;
  box-shadow:0 10px 22px rgba(255,122,0,.35);
}
.mode-toggle:hover{transform:translateY(-1px)}

/* hamburger — à DROITE uniquement en mobile */
.hamburger{display:none}
@media (max-width:900px){
  .hamburger{
    display:block; position:fixed; right:16px; top:14px; z-index:61;
    font-size:24px; cursor:pointer; user-select:none;
  }
}

/* =========================
   Hero
   ========================= */
.hero{
  min-height:72vh;
  display:grid; place-items:center;
  text-align:center; padding:84px 20px 40px;
}
.hero-content{max-width:920px; margin:auto}
.hero-content h1{
  font-size:clamp(32px,4.8vw,56px);
  line-height:1.12; font-weight:800;
  text-shadow:0 1px 0 rgba(0,0,0,.18);
}
.hero-content p{
  margin:18px auto 28px; color:var(--muted);
  max-width:720px; font-size:clamp(15px,1.5vw,18px);
}
.animated-text{
  background:linear-gradient(90deg,var(--accent),#fff);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-size:200% auto; animation:shine 4s linear infinite;
}
@keyframes shine{to{background-position:-200% center}}

.cta-btn{
  display:inline-block; padding:14px 22px; border-radius:12px;
  background:var(--accent); color:#1a1b22; font-weight:800;
  box-shadow:0 10px 20px rgba(255,213,77,.25), inset 0 -2px 0 rgba(0,0,0,.18);
  transition:transform .15s, box-shadow .15s;
}
.cta-btn:hover{transform:translateY(-1px); box-shadow:0 14px 26px rgba(255,213,77,.33), inset 0 -2px 0 rgba(0,0,0,.18)}
.nouveaute-badge{
  display:inline-flex; align-items:center; gap:10px; margin-top:12px;
  padding:12px 18px; border-radius:14px;
  background:var(--accent-2); color:#111; font-weight:800;
  box-shadow:0 16px 30px rgba(255,110,166,.35);
}

/* =========================
   Sections — Outils / Story / Contact
   ========================= */

/* Titre de section */
.section-title{
  font-size:clamp(22px,2.6vw,28px);
  font-weight:800; margin:0 0 16px; color:#fff; letter-spacing:.2px;
}

.tools-section{padding:38px 16px 8px; max-width:1200px; margin:0 auto}
.tools-grid{
  display:grid; grid-template-columns:repeat(3, minmax(220px,1fr)); gap:18px;
}
@media (max-width:980px){ .tools-grid{grid-template-columns:repeat(2,minmax(220px,1fr))} }
@media (max-width:620px){ .tools-grid{grid-template-columns:1fr} }

.tool-card{
  background:var(--card); border:1px solid rgba(255,255,255,.06);
  border-radius:14px; padding:16px; box-shadow:var(--shadow);
  display:grid; gap:10px;
}
.tool-head{display:flex; align-items:center; gap:10px}
.tool-emoji{font-size:22px}
.tool-card h3{font-size:18px; font-weight:800; color:#fff}
.tool-card p{color:var(--muted); line-height:1.6}
.tool-card .btn{
  justify-self:start; display:inline-block; padding:10px 14px;
  border-radius:10px; background:var(--accent); color:#111; font-weight:800;
  box-shadow:0 10px 20px rgba(255,213,77,.25), inset 0 -2px 0 rgba(0,0,0,.18);
  transition:transform .12s, box-shadow .12s;
}
.tool-card .btn:hover{transform:translateY(-1px); box-shadow:0 14px 26px rgba(255,213,77,.33), inset 0 -2px 0 rgba(0,0,0,.18)}
.tool-card .btn-pink{background:var(--accent-2); color:#111; box-shadow:0 16px 30px rgba(255,110,166,.35)}

.story-section{padding:26px 16px 8px; max-width:1100px; margin:0 auto}
.story-card{
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06);
  border-radius:16px; padding:22px; box-shadow:var(--shadow);
}
.story-card p{color:var(--muted); line-height:1.7}

.contact-section{padding:30px 16px 8px; max-width:1100px; margin:0 auto}
.contact-grid{
  display:grid; grid-template-columns:repeat(4, minmax(140px,1fr));
  gap:12px; margin-bottom:12px;
}
@media (max-width:980px){ .contact-grid{grid-template-columns:repeat(2,minmax(160px,1fr))} }
@media (max-width:560px){ .contact-grid{grid-template-columns:1fr} }

.social-btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px; border-radius:12px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
  color:#fff; font-weight:700;
  transition:transform .12s, background .12s, border-color .12s, box-shadow .2s ease;
}

.social-btn:hover {
  transform:translateY(-1px);
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.14);
  box-shadow:0 0 12px rgba(0, 174, 255, 0.8); /* halo bleu */
}

.social-btn:active {
  transform:scale(0.96);
  box-shadow:0 0 8px rgba(0, 174, 255, 0.6); /* halo plus doux au clic */
}

/* emails au même style que les boutons (chips) */
.emails {
  display:grid; grid-template-columns:repeat(2, minmax(220px,1fr));
  gap:12px; margin-top:8px;
}
@media (max-width:560px) { 
  .emails { grid-template-columns:1fr } 
}
.emails .social-btn {
  justify-content:flex-start; font-size:15px;
}


/* =========================
   À propos & Stats
   ========================= */
.about-section{
  padding:52px 16px; max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:1.2fr .9fr; gap:36px; align-items:center;
}
.about-text h2{font-size:clamp(22px,2.6vw,28px); margin-bottom:8px}
.about-text p{color:var(--muted); line-height:1.7}
.about-image{display:flex; justify-content:center}
.about-image img{width:min(520px,90%); border-radius:16px; box-shadow:0 20px 50px rgba(0,0,0,.45)}

.stats-section{
  background:rgba(255,255,255,.03);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:36px 14px; display:flex; justify-content:center; gap:40px;
}
.stat{min-width:220px; text-align:center}
.stat span{font-size:38px; font-weight:800; color:var(--success)}

/* =========================
   Chatbot (comme la capture)
   ========================= */
#chatbot{
  position:fixed; right:22px; bottom:22px; z-index:1000;
  width:360px; max-width:calc(100vw - 24px);
  background:#22253a;  /* base sombre */
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px; box-shadow:0 18px 50px rgba(0,0,0,.6);
  color:#eef1f7; display:none; /* masqué par défaut */
  flex-direction:column; overflow:hidden;
  transform:scale(.98); opacity:0; transition:.25s ease;
}
#chatbot.show{display:flex; transform:scale(1); opacity:1}

/* header jaune */
#chatbot-header{
  background:var(--accent); color:#151723;
  font-weight:800; padding:12px 14px; position:relative;
  font-size:15px; line-height:1;
}
#close-chatbot{
  position:absolute; right:12px; top:8px;
  background:transparent; border:0; cursor:pointer;
  color:#151723; font-weight:800; font-size:20px;
}

/* zone messages */
#chatbot-body{
  padding:12px; height:280px; overflow-y:auto;
  display:flex; flex-direction:column; gap:8px;
  background:#2a2d44;
}

/* bulles */
.message{max-width:85%; box-shadow:0 8px 16px rgba(0,0,0,.22); word-wrap:break-word; line-height:1.35}
.bot-message{
  align-self:flex-start; background:#ffd84a; color:#161722;
  border-radius:12px; border-top-left-radius:6px; padding:12px 14px;
}
.user-message{
  align-self:flex-end; background:#2de18b; color:#0f1720;
  border-radius:14px; border-top-right-radius:6px;
  padding:6px 10px; font-weight:700; width:fit-content; max-width:70%;
}

/* pied */
#chatbot-footer{background:#24273d; padding:12px; display:grid; gap:8px}
#chatbot textarea{
  min-height:44px; resize:none; border-radius:10px; outline:none;
  border:2px solid rgba(255,255,255,.35);
  background:#1f2336; color:#f1f4ff; padding:10px 12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
#send-message{
  border:0; background:transparent; color:#eaeefc;
  font-weight:800; font-size:15px; cursor:pointer;
  padding:6px 0 2px; text-align:center;
}
#send-message:hover{opacity:.9}

/* bouton flottant pour ouvrir */
.chatbot-toggle{
  position:fixed; right:24px; bottom:24px; z-index:999;
  width:54px; height:54px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent); color:#151723; border:0; cursor:pointer;
  box-shadow:0 12px 26px rgba(255,213,77,.35);
}
#chatbot.show + .chatbot-toggle{display:none}

/* =========================
   Footer
   ========================= */
.footer{
  text-align:center; padding:34px 14px 44px;
  color:#cfd6e7; background:transparent;
}
.footer-logo{width:56px; height:auto; display:block; margin:0 auto 10px}
.slogan{color:var(--accent); font-weight:700}
.slogan strong{color:#fff}

/* =========================
   Utilitaires
   ========================= */
.fade-in{animation:.35s ease forwards fadeIn}
@keyframes fadeIn{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}
.pastel,.bubble{display:none} /* on coupe les bulles old DOM */

/* =========================
   Responsive
   ========================= */

/* Tablet (<= 1024px) */
@media (max-width:1024px){
  .hero{padding:72px 16px 36px; min-height:64vh}
  .hero-content h1{font-size:clamp(30px,4vw,44px)}
  .hero-content p{max-width:620px}

  .about-section{grid-template-columns:1fr; gap:24px; padding:40px 16px}
  .about-image{order:2} .about-text{order:1}

  .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
}

/* Mobile large (<= 768px) */
@media (max-width:768px){
  body{background-attachment:initial}  /* perf mobile */

  .navbar{padding:12px 14px}
  .navbar .logo{font-size:16px}

  .cta-btn,.nouveaute-badge{width:100%; max-width:320px}

  .story-section{padding:18px 12px 0}
  .tools-grid{grid-template-columns:1fr}

  .contact-grid{grid-template-columns:1fr !important; gap:10px !important}

  .stats-section{flex-direction:column; gap:22px; padding:28px 14px}
  .stat{min-width:0} .stat span{font-size:32px}

  #chatbot{right:12px; left:12px; bottom:16px; width:auto; max-height:60vh}
  #chatbot-body{height:auto; max-height:40vh}
  .chatbot-toggle{right:16px; bottom:16px; width:52px; height:52px}

  .footer{padding:28px 12px 36px}
}

/* Mobile compact (<= 560px) */
@media (max-width:560px){
  .hero{min-height:56vh; padding-top:64px}
  .hero-content h1{font-size:clamp(26px,7vw,34px)}
  .hero-content p{font-size:14.5px}
  .cta-btn,.nouveaute-badge{padding:12px 16px; font-size:15px}

  .about-text h2{font-size:20px} .about-text p{font-size:14.5px}
}

/* Very small (<= 380px) */
@media (max-width:380px){
  .chatbot-toggle{width:48px; height:48px}
  #chatbot-header{padding:10px 12px}
  #send-message{padding:9px 12px; font-size:14px}
}
/* === OVERRIDES CHATBOT — forcer l’alignement et les couleurs === */

/* ===== Chatbot – version complète et corrigée ===== */

/* taille / position par défaut (un peu plus grand) */
#chatbot {
  width: 420px !important;
  max-width: calc(100vw - 24px) !important;
  bottom: 22px !important;
  right: 22px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.35) !important;
}

/* zone messages : colonne + espacement */
#chatbot-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  height: 320px !important;
  background: #2a2d44 !important;
  padding: 14px !important;
  overflow-y: auto !important;
}

/* BOT (à gauche, bulle JAUNE) */
#chatbot .bot-message,
#chatbot .message.bot,
#chatbot .msg.bot,
#chatbot .bubble.bot,
#chatbot .from-bot {
  align-self: flex-start !important;
  background: #ffd84a !important;
  color: #161722 !important;
  border-radius: 12px !important;
  border-top-left-radius: 6px !important;
  padding: 12px 14px !important;
  max-width: 85% !important;
  box-shadow: 0 8px 16px rgba(0,0,0,.22) !important;
}

/* USER (à droite, pastille VERTE) */
#chatbot .user-message,
#chatbot .message.user,
#chatbot .msg.user,
#chatbot .bubble.user,
#chatbot .from-user {
  align-self: flex-end !important;
  background: #2de18b !important;
  color: #0f1720 !important;
  border-radius: 14px !important;
  border-top-right-radius: 6px !important;
  padding: 8px 12px !important;
  font-weight: 700 !important;
  max-width: 70% !important;
  width: fit-content !important;
  box-shadow: 0 8px 16px rgba(0,0,0,.22) !important;
}

/* footer : input + bouton alignés */
#chatbot-footer {
  background: #24273d !important;
  padding: 12px !important;
  display: grid !important;
  grid-template-columns: 1fr max-content !important;
  gap: 8px !important;
  align-items: center !important;
}

#chatbot textarea {
  min-height: 48px !important;
  resize: none !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  background: #1f2336 !important;
  color: #f1f4ff !important;
  padding: 10px 12px !important;
}

/* bouton Envoyer plus visible */
#send-message {
  border: 0 !important;
  background: #ffd54d !important;
  color: #151723 !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 12px rgba(255,213,77,.25) !important;
  transition: transform .12s ease, box-shadow .12s ease;
}
#send-message:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255,213,77,.35) !important;
}

/* header jaune + bouton close */
#chatbot-header {
  background: #ffd54d !important;
  color: #151723 !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

#close-chatbot {
  color: #151723 !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  font-size: 18px !important;
}

/* responsive mobile */
@media (max-width: 768px) {
  #chatbot {
    right: 12px !important;
    left: 12px !important;
    bottom: 16px !important;
    width: auto !important;
    height: auto !important;
    max-height: 80vh !important;
  }
  #chatbot-body {
    height: auto !important;
    max-height: 55vh !important;
  }
}


/* responsive */
@media (max-width: 600px){
  #chatbot{ right:12px !important; left:12px !important; width:auto !important; }
  #chatbot-body{ height: 260px !important; }
}

/* =========================
   Navbar
   ========================= */

.logo{font-weight:800; letter-spacing:.2px; margin-right:auto}

/* Navbar : supprimer les puces + reset des espacements */
.navbar ul,
.navbar ul li,
.nav-links,
.nav-links li{
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* iOS/Safari : désactiver explicitement le marqueur */
.navbar li::marker,
.nav-links li::marker{
  content: none;
}

/* Mobile : s’assure que le dropdown n’en réintroduit pas */
@media (max-width: 900px){
  .navbar ul,
  .navbar ul.active{
    list-style: none !important;
  }
}
/* Hauteur de la navbar (mobile ≈ 56px, desktop un peu plus si besoin) */
:root{ --nav-h: 56px; }
@media (min-width: 901px){ :root{ --nav-h: 60px; } }

/* Panneau "En ligne" (choisis le sélecteur qui correspond chez toi) */
#online-panel,
.online-panel,
#en-ligne,
.en-ligne-panel,
.panel-enligne{
  position: fixed;
  right: 0;
  top: var(--nav-h) !important;                 /* sous la navbar */
  height: calc(100dvh - var(--nav-h)) !important;
  width: min(86vw, 360px);
  background: #0f1324;
  border-left: 1px solid rgba(255,255,255,.06);
  box-shadow: -24px 0 60px rgba(0,0,0,.45);
  overflow: auto;
  z-index: 49;                                   /* navbar=50, burger=61 → le panneau passe dessous la navbar */
}

/* Scrim derrière le panneau (si tu en as un) */
#online-scrim,
.online-scrim{
  position: fixed;
  inset: var(--nav-h) 0 0 0;                    /* commence sous la navbar */
  background: rgba(0,0,0,.35);
  z-index: 48;                                   /* sous la navbar aussi */
}

/* (optionnel) si ton CSS mettait top:0 sur le panneau quelque part */
#online-panel, .online-panel, #en-ligne, .en-ligne-panel, .panel-enligne{
  top: var(--nav-h) !important;
}
