/* ======================================================
   SADILOOP - STYLE IA FUTUR / MANGA
   Auteur: Sadiloop
   Note: Style anime + IA, glow, glassmorphism
====================================================== */

/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: linear-gradient(120deg, #0a0f2c, #0b1a40, #120a2e);
    background-size: 300% 300%;
    animation: bgFlow 12s ease infinite;
    color: #ffffff;
    overflow-x: hidden;
}

/* ---------- BACKGROUND ANIMATION ---------- */
@keyframes bgFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- LINKS ---------- */
a {
    text-decoration: none;
    color: #00f7ff;
}

/* ---------- HEADER ---------- */
header {
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(10, 15, 44, 0.6);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

header h1 {
    font-size: 1.6rem;
    background: linear-gradient(90deg, #00f7ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowText 3s infinite alternate;
}

@keyframes glowText {
    from { text-shadow: 0 0 8px #00f7ff; }
    to { text-shadow: 0 0 16px #a855f7; }
}

/* ---------- NAV ---------- */
nav a {
    margin-left: 20px;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #00f7ff, #a855f7);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 10%;
    position: relative;
}

.hero h2 {
    font-size: 3rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #00f7ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin-top: 20px;
    max-width: 700px;
    font-size: 1.1rem;
    color: #dbeafe;
}

/* ---------- BUTTONS ---------- */
.btn {
    margin-top: 30px;
    display: inline-block;
    padding: 14px 30px;
    border-radius: 40px;
    font-weight: bold;
    color: #0a0f2c;
    background: linear-gradient(90deg, #00f7ff, #a855f7);
    box-shadow: 0 0 20px rgba(0,247,255,0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(168,85,247,0.9);
}

/* ---------- SECTIONS ---------- */
section {
    padding: 80px 10%;
}

/* ---------- CARDS ---------- */
.card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0,247,255,0.15);
    transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 0 45px rgba(168,85,247,0.6);
}

/* ---------- GRID ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* ---------- CHATBOT ---------- */
#chatbot {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 320px;
    background: rgba(10,15,44,0.85);
    border-radius: 20px;
    box-shadow: 0 0 35px rgba(0,247,255,0.6);
    overflow: hidden;
    animation: floatBot 4s ease-in-out infinite;
}

@keyframes floatBot {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

#chatbot header {
    padding: 15px;
    background: linear-gradient(90deg, #00f7ff, #a855f7);
    color: #0a0f2c;
    font-weight: bold;
}

#chatbot .messages {
    height: 260px;
    padding: 15px;
    overflow-y: auto;
    font-size: 0.9rem;
}

#chatbot input {
    width: 100%;
    padding: 12px;
    border: none;
    outline: none;
    background: #0a0f2c;
    color: white;
}

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(10,15,44,0.7);
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.2rem;
    }
}

/* ================================
   HERO BACKGROUND IA / MANGA
================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* IMAGE DE FOND */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/ai-robot-bg.png") center/cover no-repeat;
    z-index: -2;
    transform: scale(1.05);
}

/* OVERLAY IA (pour lisibilite) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0,247,255,0.15), transparent 60%),
        linear-gradient(180deg, rgba(10,15,44,0.85), rgba(10,15,44,0.95));
    z-index: -1;
}

/* TEXTE HERO */
.hero h2 {
    font-size: 3.2rem;
    background: linear-gradient(90deg, #00f7ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(0,247,255,0.6);
}

.hero p {
    margin-top: 20px;
    max-width: 700px;
    font-size: 1.15rem;
    color: #e5e7eb;
}

/* PARTICULES IA (DECORATION) */
.hero .particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero .particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00f7ff;
    border-radius: 50%;
    opacity: 0.4;
    animation: floatParticle 12s infinite linear;
}

@keyframes floatParticle {
    from {
        transform: translateY(100vh) scale(0.5);
    }
    to {
        transform: translateY(-10vh) scale(1.2);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.2rem;
    }
}

/* ===========================
   DEMO GRID (PREMIUM / GLASS)
   Colle en bas du style.css
=========================== */

.demo-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap:18px;
}

.demo-card{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color:#fff;
  border-radius:18px;
  padding:16px 16px 14px;
  text-align:left;
  cursor:pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  backdrop-filter: blur(14px);
  position:relative;
  overflow:hidden;
}

.demo-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0,247,255,0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(168,85,247,0.16), transparent 45%),
    radial-gradient(circle at 50% 110%, rgba(0,247,255,0.10), transparent 55%);
  opacity:0;
  transition: opacity .22s ease;
  z-index:0;
}

.demo-card > * { position:relative; z-index:1; }

.demo-card:hover{
  transform: translateY(-6px);
  border-color: rgba(0,247,255,0.35);
  box-shadow: 0 0 28px rgba(0,247,255,0.18);
  background: rgba(255,255,255,0.08);
}

.demo-card:hover::before{ opacity:1; }

.demo-card.active{
  border-color: rgba(0,247,255,0.55);
  box-shadow: 0 0 36px rgba(0,247,255,0.22);
  background: rgba(0,247,255,0.08);
}

.demo-ico{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background: rgba(10,15,44,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  margin-bottom:10px;
  font-size:1.25rem;
}

.demo-title{
  font-weight:800;
  font-size:1.05rem;
  margin-bottom:4px;
}

.demo-sub{
  color:#cbd5e1;
  font-size:0.95rem;
  margin-bottom:10px;
}

.demo-tag{
  display:inline-block;
  font-size:0.85rem;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color:#e5e7eb;
}

/* Responsive */
@media (max-width: 1100px){
  .demo-grid{ grid-template-columns: repeat(3, minmax(180px, 1fr)); }
}
@media (max-width: 780px){
  .demo-grid{ grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}
@media (max-width: 460px){
  .demo-grid{ grid-template-columns: 1fr; }
}

/* =========================================
   FIX DEFINITIF LISIBILITE (HOSTINGER)
========================================= */

/* Empêche les overlays de casser le texte */
.hero::before,
.hero::after {
  opacity: 1 !important;
}

/* Force le contraste du contenu */
.hero *,
.section * {
  color: inherit;
}

/* Texte principal */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
}

/* Paragraphes et textes secondaires */
p,
.lead,
.text-muted2 {
  color: rgba(255,255,255,0.85) !important;
}

/* Sections bootstrap */
.section {
  background: transparent !important;
  opacity: 1 !important;
}

/* Evite effet "voile blanc" */
body {
  background-color: #070b1a !important;
}

