/* =========================
   OneDev Studio - base.css
   Version ultime enrichie avec animations, hover et responsive complet
   ========================= */

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0b0b0b;
  color: #eee;
}
a {text-decoration: none; color: inherit;}
ul, ol {margin-left: 1.2rem; padding-left: 0;}
img {max-width: 100%; display: block;}
button {cursor: pointer;}

/* --- TITRES DEGRADE JAUNE → ORANGE --- */
h1,h2,h3,h4,h5,h6 {
  background: linear-gradient(90deg, #ffc700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 1s ease forwards;
}

/* --- LOGO --- */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo {
  height: 250px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.logo:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: brightness(1.15) drop-shadow(0 0 10px #ffc700);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #ffc700, #ff8c00);
  color: #111;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.35s ease;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255,172,0,0.1);
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.12);
  box-shadow: 0 12px 35px rgba(255,172,0,0.25);
}
.btn:focus {outline: 3px solid rgba(255,199,0,0.2); outline-offset: 3px;}

/* --- HEADER & NAV --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 130px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
nav a {
  color: #cfcfcf;
  font-weight: 500;
  transition: color 0.25s, transform 0.25s;
}
nav a:hover {color: #ffae00; transform: scale(1.05);}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 5%;
  position: relative;
  overflow: hidden;
  background: url('../../test.jpg') no-repeat center center/cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.85));
  pointer-events: none;
}
.hero h2 {font-size: 3rem; margin-bottom: 1rem; z-index: 1; animation: slideDown 1s ease forwards;}
.hero p, .hero ul, .hero em {
  opacity: 0;
  position: relative;
  z-index: 1;
  animation: fadeIn 1s ease-out 0.3s forwards;
  color: #ddd;
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 1.2rem;
}
.hero ul {list-style: disc inside; margin-top: 1rem;}
.hero em {font-style: italic; color: #ffc700;}
.hero .btn {position: relative; z-index: 1; animation: pulse 2s infinite;}

/* --- SECTIONS --- */
section {padding: 4.5rem 5%;}
section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  position: relative;
}
section h2::after {
  content:"";
  display: block;
  width: 60px;
  height: 3px;
  background: #ffae00;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* --- CARDS --- */
.services, .projects, .team, .testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
}

.cards-container {
    margin-top: -1320px;
    margin-left: 100px;
}


.card {
  background: #151515;
  border-radius: 14px;
  padding: 1.8rem;
  border: 1px solid rgba(255,255,255,0.03);
  transition: all .4s ease, transform .4s ease, box-shadow .4s ease;
  opacity: 0;
  transform: translateY(40px);
  margin-bottom: 20px; /* espace vertical entre les cards */
}
.card h3 {margin-bottom: 0.8rem; font-size: 1.3rem;}
.card p {margin-bottom: 0.7rem; color: #ccc; line-height: 1.5; font-size: 1rem;}
.card ul {color: #ddd; font-size: 0.95rem; line-height: 1.5; margin-top: 0.5rem; list-style: disc inside;}
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 45px rgba(255,172,0,0.18);
  background: linear-gradient(180deg,#161616,#1b1b1b);
}

/* --- TEAM --- */
.team-member {
  opacity: 0;
  transform: translateY(40px);
  background: #151515;
  border-radius: 12px;
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,0.03);
  transition: all .35s ease;
}
.team-member:hover {transform: translateY(-8px) scale(1.03); box-shadow: 0 18px 35px rgba(255,172,0,0.18);}

/* --- PROJECTS --- */
.projects .card {opacity:0; transform:translateY(40px); transition:all .4s ease;}
.projects .card:hover {transform:translateY(-8px) scale(1.02); box-shadow:0 20px 45px rgba(255,172,0,0.15);}

/* --- TESTIMONIALS --- */
.testimonial {
  background: #151515;
  border-radius: 12px;
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,0.03);
  opacity: 0;
  transform: translateY(40px);
  transition: all .35s ease;
}
.testimonial p {color: #cfcfcf; line-height: 1.45;}
.testimonial span {color: #ffc700; font-weight: 600; margin-top: 0.5rem; display: block; text-align: right;}
.testimonial:hover {transform: translateY(-6px) scale(1.02); box-shadow: 0 14px 35px rgba(255,172,0,0.1);}

/* --- CONTACT --- */
.contact form {display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem;}
.contact input, .contact select, .contact textarea {
  padding: 1rem;
  border-radius: 12px;
  background: #171717;
  color: #eee;
  border: 1px solid rgba(255,255,255,0.03);
  font-size: 1rem;
  transition: all .3s ease;
}
.contact input:focus, textarea:focus, select:focus {outline:3px solid rgba(255,199,0,0.2); outline-offset:2px; transform:scale(1.02);}
.alert {margin-top:1rem; padding:1rem; border-radius:12px; font-weight:600;}
.success {background: linear-gradient(90deg, rgba(255,199,0,0.08), rgba(255,199,0,0.03)); color:#ffc700;}
.error {background: linear-gradient(90deg, rgba(255,100,0,0.08), rgba(255,100,0,0.03)); color:#ff8c00;}

/* --- FOOTER --- */
footer {text-align:center; padding:2rem 5%; background:#080808; color:#9b9b9b; font-size:0.9rem;}
footer a {color:#ffc700; margin:0 0.5rem; transition:color .2s ease, transform .2s ease;}
footer a:hover {color:#ff8c00; transform:scale(1.05);}


/* --- ABOUT SECTION --- */
.about {
  text-align: center;
  background: linear-gradient(135deg,#080808,#1a1a1a);
  padding: 80px 20px;
  margin: 0 auto 80px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.7);
  position: relative;
  overflow: hidden;
  color: #ddd;
}
.about::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: rotateBG 25s linear infinite;
  z-index: 0;
}
.about h2 {
  font-size: 2.8rem;
  margin-bottom: 60px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}
.about-content {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.about-values, .about-methodology {
  flex: 0 0 48%;
  min-width: 300px;
  background: rgba(255,255,255,0.05);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.about-values:hover, .about-methodology:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  background: rgba(255,255,255,0.08);
}
.about-values h3, .about-methodology h3 {
  font-size: 1.9rem;
  margin-bottom: 25px;
  background: linear-gradient(90deg, #ffc700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.about-values h3:hover, .about-methodology h3:hover {transform: scale(1.08);}
.about-values p, .about-methodology p {margin-bottom: 20px; line-height: 1.9; color: #ddd;}
.about-values ul, .about-methodology ul {list-style: none; padding-left: 0;}
.about-values li, .about-methodology li {
  margin: 12px 0;
  padding-left: 25px;
  position: relative;
  font-size: 1.05rem;
  color: #fff;
}
.about-values li::before, .about-methodology li::before {position: absolute; left: 0; color: #ffc700;}

.about-values li,
.about-methodology li {
  display: flex;
  align-items: center;        /* ✅ centre verticalement le texte et l’icône */
  justify-content: flex-start;/* aligne bien le tout à gauche */
  gap: 10px;                  /* espace entre la puce et le texte */
  margin: 12px 0;
  font-size: 1.05rem;
  color: #fff;
  padding-left: 0;            /* on supprime l’ancien décalage */
}
.about-values ul,
.about-methodology ul {
  padding-left: 0;
  list-style: none;
  display: inline-block; /* permet de centrer le bloc */
  text-align: left;      /* garde les li alignés à gauche */
  margin: 0 auto;        /* centre horizontalement le ul */
}



/* --- LOGIN BUBBLE --- */
#loginBubble {
    display: none;
    position: absolute;
    top: 90px;
    right: 80px;
    background: #151515;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    width: 220px;
}

/* --- BURGER MENU --- */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.burger span {
    width: 25px;
    height: 3px;
    background: #ffc700;
    border-radius: 2px;
}

.services-image img {
    max-width: 80%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    margin-left: -950px;
    margin-top: 200px;
}


/* --- END CSS --- */

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
}
.burger span {
    width: 25px;
    height: 3px;
    background: #ffc700;
    border-radius: 2px;
}


  .card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h3 {
  margin: 0;
}
.status {
  font-size: 0.85em;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  margin-left: 10px;
  color: white;
}
.badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  margin-left: 10px;
  color: white;
}
.badge.online { background-color: #4caf50; }
.badge.offline { background-color: #f44336; }


/* Container général */
.onedev-card {
  max-width: 740px;
  margin: 24px auto;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(11,22,40,0.08);

  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  line-height: 1.5;
}

/* Titre (si tu ajoutes un h2/h3) */
.onedev-card h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}

/* Paragraphe */
.onedev-card p {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: #ffffffff;
  opacity: 0.95;
}

/* Liste principale */
.onedev-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Élément de la liste (card-like) */
.onedev-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11,22,40,0.03);
  border: 1px solid rgba(11,22,40,0.03);
  font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease;
}

/* Hover léger */
.onedev-card li:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(11,22,40,0.06);
}

/* Zone d'icône à gauche */
.onedev-card li::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  flex: 0 0 36px;
}

/* Styles pour disponible / indisponible - classes recommandées */
.onedev-card li.available::before {
  content: "✅";
  background: rgba(28,160,120,0.10);
  border: 1px solid rgba(28,160,120,0.12);
}
.onedev-card li.unavailable::before {
  content: "❌";
  background: rgba(220,60,60,0.06);
  border: 1px solid rgba(220,60,60,0.08);
}

/* Texte principal et badge d'état à droite */
.onedev-card .feature {
  flex: 1 1 auto;
}
.onedev-card .status {
  white-space: nowrap;
  margin-left: 12px;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Badges couleurs */
.onedev-card .status.ok {
  background: linear-gradient(180deg, rgba(28,160,120,0.12), rgba(28,160,120,0.08));
  color: #1ca078;
  border: 1px solid rgba(28,160,120,0.12);
}
.onedev-card .status.soon {
  background: linear-gradient(180deg, rgba(220,160,40,0.10), rgba(220,160,40,0.06));
  color: #b36b00;
  border: 1px solid rgba(220,160,40,0.08);
}

/* Fallback : si tu ne veux pas ajouter de classes, on cible les items par position
   (ici les 1-4 = disponibles, 5-6 = en développement). Adapte si l'ordre change. */
.onedev-card ul li:nth-child(-n+4)::before { content: "✅"; background: rgba(28,160,120,0.10); border: 1px solid rgba(28,160,120,0.12); }
.onedev-card ul li:nth-child(-n+4) .status { background: rgba(28,160,120,0.10); color: #1ca078; border: 1px solid rgba(28,160,120,0.12); }

.onedev-card ul li:nth-child(n+5)::before { content: "❌"; background: rgba(220,60,60,0.06); border: 1px solid rgba(220,60,60,0.08); }
.onedev-card ul li:nth-child(n+5) .status { background: rgba(220,160,40,0.10); color: #b36b00; border: 1px solid rgba(220,160,40,0.08); }

/* Responsive : espace réduit sur mobile */
@media (max-width: 520px) {
  .onedev-card { padding: 14px; border-radius: 12px; }
  .onedev-card li { gap: 10px; padding: 9px; }
  .onedev-card .status { padding: 5px 8px; font-size: 12px; }
}


.reviews-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Slider côté gauche : réduire un peu la largeur */
.reviews-left {
  flex: 1 1 40%; /* avant 60%, maintenant 55% */
}

.reviews-divider {
    width: 4px;
    background: linear-gradient(to bottom, #FFD700, #FF8C00);
    border-radius: 2px;
    align-self: stretch; /* s'assure qu'elle s'étire sur toute la hauteur du flex parent */
}

/* Formulaire côté droit : augmenter un peu pour compenser */
.reviews-right {
  flex: 1 1 40%; /* avant 35%, maintenant 40% */
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
}

/* Slider de base */
.reviews-slider {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}
.reviews-wrapper { overflow: hidden; }
.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1rem; /* espace entre les cartes */
}
.card {
  flex: 0 0 calc(33.333% - 1rem);
  box-sizing: border-box;
  padding: 1rem;
  background: #151515;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Boutons */
button.prev, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.5rem;
  z-index: 10;
  border-radius: 4px;
}
button.prev { left: 0; }
button.next { right: 0; }

/* Responsive */
@media screen and (max-width: 900px) {
  .reviews-container { flex-direction: column; }
  .reviews-divider { display: none; }
  .reviews-left, .reviews-right { flex: 1 1 100%; }
  .card { flex: 0 0 calc(50% - 1rem); }
}
@media screen and (max-width: 600px) {
  .card { flex: 0 0 100%; }
}
