:root {
  --primary-color: #E60028;
  --secondary-color: #333;
  --container-bg: #f2f2f2;
  --background-color: #fff;
  --text-main: #222;
  --text-secondary: #555;
  --text-tertiary: #f2f2f2;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-main);
  background-color: var(--background-color);
  line-height: 1.7;
  font-size: 16px;
}

html {
  scroll-padding-top: 120px;
  scroll-behavior: smooth;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* NAVBAR */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ombre sous la navbar */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-link {
  display: inline-block;
  padding: 0.4em 0.8em;
  border: 2px solid white;
  border-radius: 12px;
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-link:hover {
  background-color: white;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 2rem;
  animation: fadeIn 0.5s ease-out;
}

.navbar-logo span {
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.navbar-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.navbar-links li a {
  position: relative;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-links li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

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

.navbar-links li a:hover::after {
  width: 100%;
}


.navbar-links .sep {
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  user-select: none;
}


/* Animation simple */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CONTAINERS */
.container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--container-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h1, h2 {
  color: var(--primary-color);
  margin-bottom: 0.7em;

}

h3 {
  color: var(--primary-color);
  margin: 0.5rem 0 0.3rem;
  font-size: 1rem;
}


h1.hero-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
margin:1em;
  padding: 1.2em;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  text-decoration: none;
  transform: scale(1.1);

}

ul {
  margin: 1.5em 0;
  padding-left: 1.2em;
}

ul li {
  margin-bottom: 0.6em;
  color: var(--text-secondary);
}

video {
  border-radius: 8px;
}

/* RESPONSIVE IFRAME */
iframe {
  max-width: 100%;
  border-radius: 32px;
}

@media (max-width: 768px) {
  iframe {
    width: 100%;
    height: 315px;
  }
}

/* AVATAR */
.team-avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  margin-top: 2rem;
}

.dev-card {
  text-align: center;
  max-width: 150px;
}

.dev-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.dev-card h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1rem;
  color: var(--text-main);
}

.dev-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.dev-links .icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
  transition: fill 0.2s ease, transform 0.2s ease;
}

.dev-links a:hover .icon {
  fill: var(--secondary-color);
  transform: scale(1.2);
}

/* CHART */
.bar-chart {
  margin-top: 2rem;
  background: var(--background-color);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
margin:1em;
}

.bar-chart h3 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.chart-caption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.bar {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.bar .label {
  width: 160px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.bar-fill {
  height: 24px;
  border-radius: 4px;
  color: white;
  font-size: 0.8rem;
  line-height: 24px;
  padding-left: 0.5rem;
  box-sizing: border-box;
}


/* FOOTER */
footer {
  text-align: center;
  padding: 2em 1rem;
  background-color: var(--secondary-color);
  color: white;
  margin-top: 4em;
  font-size: 0.9rem;
}

/* BACK TO TOP */
.back-to-top-container {
  text-align: right;
  margin-top: 2em;
}

.back-to-top {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-links {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .container {
    padding: 1.5rem;
    margin: 1.5rem;
  }

  h1.hero-title {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 0.8em 1.4em;
  }
}
