/* Variables globales */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --text-color: #333;
  --background-color: #f8f9fa;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

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

ul, ol {
  list-style-position: inside;
  padding-left: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typographie */
h1, h2, h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }

p {
  margin-bottom: 1rem;
}

/* Structure de la page */
header {
  background-color: var(--secondary-color);
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.main-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
}

.nav-menu li {
  margin: 0 0 0 1.5rem;
}

.nav-menu a {
  color: var(--light-color);
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-menu a:hover {
  color: white;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

main {
  margin-top: 60px;
  padding: 1rem 0;
}

section {
  padding: 3rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

section:nth-child(even) {
  background-color: var(--light-color);
}

/* Section Héro */
#hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
  color: white;
  text-align: center;
  padding: 6rem 5% 4rem;
}

#hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

#hero p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

/* Boutons */
.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

/* Images */
.responsive-img {
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* Tableaux */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: var(--primary-color);
  color: white;
}

tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Pied de page */
footer {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-info {
  margin-bottom: 1.5rem;
}

footer p {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-info {
    margin-bottom: 0;
    text-align: left;
  }
  
  .social-links {
    margin-top: 0;
  }
}

/* Menu mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: var(--transition);
}

/* Animations du menu hamburger */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .main-navigation {
    padding: 1rem 5%;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--secondary-color);
    align-items: center;
    padding: 1rem 0;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 1000;
  }
  
  .nav-menu.show {
    transform: translateY(0);
    height: auto;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  
  .nav-menu li {
    margin: 0.7rem 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-menu li a {
    display: block;
    padding: 0.7rem 0;
    width: 100%;
  }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }
  
  section {
    padding: 2.5rem 1.5rem;
  }
  
  #hero {
    padding: 5rem 1.5rem 3rem;
  }
  
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.6rem 0.8rem;
  }
}

/* Animation des éléments au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}