/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0f;
  color: #ffffff;
  overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: #fff;
}

.btn-outline {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 60px;
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-left {
  max-width: 540px;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  color: #a855f7;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

h1 {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-left p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatars {
  display: flex;
}

.avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #0a0a0f;
  margin-left: -8px;
}

.avatars img:first-child {
  margin-left: 0;
}

.stars {
  color: #f59e0b;
  font-size: 13px;
}

.hero-social-proof span {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== HERO CARD ===== */
.hero-right {
  z-index: 1;
}

.hero-card {
    overflow: hidden;
    border-radius: 20px;
    padding: 0;
    line-height: 0;
}

.hero-video {
    display: block;
    width: 100%;
    height: calc(100% + 2px);
    object-fit: cover;
    margin-top: -1px;
}

.card-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.card-number {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.card-badge {
  display: inline-block;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.mini-chart svg {
  width: 100%;
  height: auto;
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 60px;
  text-align: center;
}

.features h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 50px;
  letter-spacing: -1px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(168,85,247,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  font-size: 18px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 40px 60px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {

  .navbar {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    flex-direction: column;
    padding: 60px 20px;
    min-height: auto;
    text-align: center;
  }

  .hero::before {
    display: none;
  }

  h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-right {
    margin-top: 40px;
    width: 100%;
  }

  .hero-card {
    width: 100%;
  }

  .features {
    padding: 60px 20px;
  }

  .features h2 {
    font-size: 26px;
  }

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

  .footer {
    padding: 30px 20px;
  }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */

@media (max-width: 992px) {
    .dash-grid {
        grid-template-columns: 1fr; /* Passe le plan d'action et l'IA l'un sous l'autre sur tablette */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dash-container {
        padding: 10px; /* Réduit les marges globales sur petit écran */
    }

    .dash-header {
        flex-direction: column; /* Aligne le logo et les badges verticalement sur mobile */
        align-items: flex-start;
        gap: 15px;
    }

    .dash-stats {
        grid-template-columns: 1fr; /* Aligne les 3 cartes de statistiques l'une sous l'autre */
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px; /* Rend les cartes un poil plus compactes */
    }
}

/* ===================================================
   ANALYSE IA PREMIUM
=================================================== */

.analysis-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
    margin-top:25px;
}

.analysis-card{
    background:rgba(255,255,255,.04);
    backdrop-filter:blur(18px);
    border:1px solid rgba(168,85,247,.18);
    border-radius:20px;
    padding:24px;
    transition:.35s;
    box-shadow:0 0 25px rgba(0,0,0,.25);
}

.analysis-card:hover{
    transform:translateY(-6px);
    border-color:#a855f7;
    box-shadow:0 15px 40px rgba(168,85,247,.18);
}

.analysis-card h3{
    font-size:1.1rem;
    margin-bottom:16px;
    color:#fff;
    display:flex;
    align-items:center;
    gap:8px;
}

.analysis-card p{
    color:#d4d4d8;
    line-height:1.7;
}

/* ==========================
   SCORE
========================== */

.score-card{
    display:flex;
    align-items:center;
    gap:35px;
    margin-bottom:28px;
}

.score-circle{
    width:140px;
    height:140px;
    border-radius:50%;
    background:conic-gradient(
        #a855f7 0deg,
        #7c3aed 320deg,
        rgba(255,255,255,.08) 320deg
    );
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    flex-shrink:0;
    position:relative;
}

.score-circle::before{
    content:"";
    position:absolute;
    width:108px;
    height:108px;
    border-radius:50%;
    background:#111827;
}

.score-circle span{
    position:relative;
    z-index:2;
    font-size:2.2rem;
    font-weight:700;
    color:white;
}

.score-circle small{
    position:relative;
    z-index:2;
    color:#a1a1aa;
}

/* ==========================
   BARRES
========================== */

.progress{
    width:100%;
    height:12px;
    background:rgba(255,255,255,.08);
    border-radius:999px;
    overflow:hidden;
    margin:14px 0;
}

.progress-fill{
    width:0%;
    height:100%;
    border-radius:999px;
    background:linear-gradient(
        90deg,
        #7c3aed,
        #a855f7,
        #c084fc
    );
    transition:width 1.2s ease;
}

/* ==========================
   LISTES
========================== */

.analysis-card ul,
.analysis-card ol{
    margin-top:12px;
    padding-left:20px;
}

.analysis-card li{
    margin-bottom:10px;
    color:#d4d4d8;
}

/* ==========================
   APPARITION
========================== */

#analysisResult{
    animation:fadeUp .7s ease;
}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(35px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:768px){

.score-card{

flex-direction:column;
text-align:center;

}

.score-circle{

margin:auto;

}

.analysis-card{

padding:18px;

}

}

.analysis-tabs{

display:flex;
gap:12px;
margin-bottom:25px;
padding:8px;

background:rgba(255,255,255,.04);

border:1px solid rgba(168,85,247,.15);

border-radius:18px;

backdrop-filter:blur(15px);

}

.tab-btn{

display:flex;
align-items:center;
gap:10px;

padding:12px 20px;

background:transparent;

border:none;

border-radius:12px;

color:#a1a1aa;

font-size:.95rem;

font-weight:600;

cursor:pointer;

transition:.3s;

}

.tab-btn:hover{

background:rgba(168,85,247,.08);

color:white;

}

.tab-btn.active{

background:linear-gradient(135deg,#7c3aed,#a855f7);

color:white;

box-shadow:0 0 20px rgba(168,85,247,.35);

}

.tab-icon{

width:20px;

height:20px;

flex-shrink:0;

}

.tab-content{

animation:fadeIn .35s ease;

}

@keyframes fadeIn{

from{

opacity:0;

transform:translateY(12px);

}

to{

opacity:1;

transform:translateY(0);

}

}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}
