body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, var(--bg-accent), var(--background));
  color: #e5e7eb;
}

body.home {
  /* --accent: #4ea8de;
  --accent-rgb: 78, 168, 222;
  --bg-accent: #5096B4;
  --bg-accent-rgb: 80, 150, 180;
  --background: #122D3C;
  --background-rgb: 18, 45, 60; */
  --accent: #4ea8de;
  --accent-rgb: 78, 168, 222;

  --bg-accent: #5fa8c6;
  --bg-accent-rgb: 95, 168, 198;

  --background: #122D3C;
  --background-rgb: 18, 45, 60;
}

body.formation {
  /* --accent: #ffd166;
  --accent-rgb: 255, 209, 102;
  --bg-accent: #b08900;
  --background: #2b2200;
  --bg-accent-rgb: 176, 137, 0;
  --background-rgb: 43, 34, 0; */
  --accent: #f4c542;
  --accent-rgb: 244, 197, 66;

  --bg-accent: #b88f00;
  --bg-accent-rgb: 184, 143, 0;

  --background: #2a2205;
  --background-rgb: 42, 34, 5;
}

body.excel {
  /* --accent: #7bdc4c;
  --accent-rgb: 123, 220, 76;
  --bg-accent: #2e7d32;
  --background: #0f2a14;
  --bg-accent-rgb: 46, 125, 50;
  --background-rgb: 15, 42, 20;*/
  --accent: #7bc043;
  --accent-rgb: 123, 192, 67;

  --bg-accent: #3e7a2a;
  --bg-accent-rgb: 62, 122, 42;

  --background: #10240f;
  --background-rgb: 16, 36, 15;
}

body.dev {
  /* --accent: #00a6ff;
  --accent-rgb: 0, 166, 255;
  --bg-accent: #0077b6;
  --background: #06141d;
  --bg-accent-rgb: 0, 119, 182;
  --background-rgb: 6, 20, 29; */
  --accent: #2c9fd4;
  --accent-rgb: 44, 159, 212;

  --bg-accent: #0077b6;
  --bg-accent-rgb: 0, 119, 182;

  --background: #0b1f2a;
  --background-rgb: 11, 31, 42;
}

body.contact {
  /* --accent: #ff9f1c;
  --accent-rgb: 255, 159, 28;
  --bg-accent: #7a3e00;
  --background: #1f1206;
  --bg-accent-rgb: 122, 62, 0;
  --background-rgb: 31, 18, 6; */
  --accent: #f4a62a;
  --accent-rgb: 244, 166, 42;

  --bg-accent: #c97b10;
  --bg-accent-rgb: 201, 123, 16;

  --background: #2a1705;
  --background-rgb: 42, 23, 5;
}

:root {
  --bg: #0f172a;
  --card: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

/* HEADER */
.main-header {
  /* background: rgba(0, 0, 0, 0.6); */
  background: var(--background);
  padding: 20px 30px;
  text-align: center;
  position: sticky;
  transition: all 0.3s ease;
}

.main-header h1 {
  margin: 0;
  font-size: 32px;
}

/* header accent */
.main-header p {
  color: var(--accent);
  font-weight: bolder;
}

.main-header.scrolled {
  padding: 4px;
  transition: all 0.3s ease;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

/* LOGO */
.header-logo {
  height: 70px;
  /* contrôle la taille */
  width: auto;
  /* garde les proportions 500x215 */
  max-width: 220px;
  /* sécurité sur grands écrans */
  object-fit: contain;
}

/* TEXTES */
.header-text h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.header-text p {
  margin: 4px 0 0;
  opacity: 0.8;
  font-size: 14px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .header-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-logo {
    height: 55px;
  }

  .header-text h1 {
    font-size: 18px;
  }
}

/* MENU */
.menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(var(--background-rgb), 0.6);
  padding: 15px;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
}

/* hover menu */
.menu a:hover {
  background: var(--accent);
}

.menu.scrolled {
  padding: 4px;
  transition: all 0.3s ease;
}

/* sticky menu + header */
.topbar {
  transition: all 0.3s ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* background: rgba(17, 24, 39, 0.9); */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar.scrolled {
  box-shadow: 0 .5px 10px var(--accent);
  background: rgba(24, 31, 55, 0.7);
  padding: 0;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 40px 0;
}

/* SECTIONS */
.section {
  margin-bottom: 50px;
}

/* GRID CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

#strong {
  color: var(--accent);
  /* font-weight: bolder; */
}

/* CTA */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--background);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
}

/* LOGOS */
.logos {
  overflow: hidden;
  margin-top: 30px;
}

.logos-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 25s linear infinite;
}

.clients {
  text-align: center;
  padding: 40px 20px;
}

/* grille centrée et fluide */
.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* boîte uniforme */
.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* image logo */
.client-item img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

/* texte */
.client-text {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.4;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-item:hover {
  transform: translateY(-2px);
}

/* HOVER PREMIUM */
.client-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.client-item:hover .client-text {
  opacity: 1;
  transform: translateY(0);
}

.client-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

/* effet global (optionnel mais très pro) */
.clients-logos:hover .client-item img {
  opacity: 0.4;
}

.clients-logos .client-item:hover img {
  opacity: 1;
}

@media (max-width: 600px) {
  .clients {
    padding: 0px 0px 5px;
  }

  .client-item {
    height: 35px;
  }

  .client-item img {
    max-height: 28px;
  }
}

.logos img {
  height: 40px;
  margin: 0 25px;
  filter: grayscale(100%);
  opacity: 0.7;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* FORM */
input,
textarea,
select {
  border: none;
  border-radius: 6px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 30px;
  background: rgba(17, 24, 39, 0.8);
  margin-top: 50px;
}

/* FADE IN AU SCROLL */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HOVER LIEN */
a {
  transition: all 0.2s ease;
}

/* BOUTON */
.cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card {
  background: rgba(var(--accent-rgb), 0.2);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 0 5px var(--accent);
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* icônes catégories */
.icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.icon_mini {
  width: 28px;
  height: 30px;
  object-fit: contain;
  position: relative;
  top: 8px;
}

/* logos logiciels */
.logos-soft {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 15px;
}

.logos-soft img {
  height: 28px;
  width: auto;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.logos-soft img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* contact */
.msg {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 14px;
}

.msg.success {
  background: rgba(0, 200, 100, 0.15);
  border: 1px solid rgba(0, 200, 100, 0.4);
  color: #7CFFB2;
}

.msg.error {
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8a8a;
}