/* Import de la police Manrope */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* Variables de couleur - Charte graphique PhieTeam */
:root {
  --primary: #006658;
  --primary-light: #43cea2;
  --secondary: #004d40;
  --accent: #b2dfdb;
  --light: #f5f5f5;
  --dark: #263238;
  --text: #444;
  --text-light: #666;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #006658, #43cea2);
  --gradient-secondary: linear-gradient(135deg, #004d40, #006658);
}

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

html, body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
}

/* Header et Navigation */
header {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.logo:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Menu hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation du hamburger */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}

nav ul li {
  position: relative;
}

/* Menu déroulant */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--text) !important;
  padding: 0.8rem 1.2rem;
  display: block;
  border-radius: 0;
  font-weight: 400;
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background-color: var(--primary-light);
  color: var(--white) !important;
}

.dropdown > a::after {
  content: '▼';
  font-size: 0.8em;
  margin-left: 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 200px);
}

h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 700;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.7;
}

ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* Sections spécifiques */
.about-content {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.mission, .values, .team, .why-phieteam {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--accent);
}

.values ul, .why-phieteam ul {
  list-style: none;
  padding-left: 0;
}

.values li, .why-phieteam li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.values li::before, .why-phieteam li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Boutons */
.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 102, 88, 0.3);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

.footer-section h3 {
  color: var(--primary-light);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.footer-section:first-child {
  grid-column: 1;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  display: block;
  padding: 0.2rem 0;
}

.footer-section ul li a:hover {
  color: var(--primary-light);
}

.footer-description {
  color: #a0aec0;
  font-size: 0.9rem;
  margin: 1rem 0;
  line-height: 1.6;
  max-width: 300px;
}

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

.footer-social a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

.footer-social a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #a0aec0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
  }

  .footer-description {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  footer {
    padding: 3rem 1rem 1.5rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-description {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
  }
  
  /* Afficher le hamburger */
  .hamburger {
    display: flex;
  }
  
  /* Cacher le menu principal par défaut */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Afficher le menu quand actif */
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    padding: 1rem 2rem;
    border-radius: 0;
    width: 100%;
    justify-content: space-between;
  }
  
  /* Gestion des dropdowns en mobile */
  .dropdown-content {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    margin-top: 0.5rem;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
  
  .dropdown-content a {
    padding: 0.8rem 3rem;
    color: var(--white) !important;
    border-radius: 0;
  }
  
  .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .dropdown > a::after {
    transition: transform 0.3s ease;
  }
  
  .dropdown.active > a::after {
    transform: rotate(180deg);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .mission, .values, .team, .why-phieteam {
    padding: 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0 1rem;
  }
  
  main {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .cta-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  footer {
    padding: 3rem 0 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mission, .values, .team, .why-phieteam {
  animation: fadeInUp 0.6s ease-out;
}

/* États de focus pour l'accessibilité */
a:focus, button:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Styles pour les liens externes */
a[href^="http"]::after {
  content: ' ↗';
  font-size: 0.8em;
}

/* Styles pour les listes de navigation */
nav ul li a {
  white-space: nowrap;
}

/* Amélioration de la lisibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
} 