/* Variables */
:root {
  --primary: #f5c518;
  --dark: #121212;
  --dark-light: #1e1e1e;
  --light: #ffffff;
  --gray: #aaaaaa;
  --content-padding: 5%;
  --max-width: 1200px;
  --success: #28a745;
  --error: #dc3545;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--light);
  background-color: var(--dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0 var(--content-padding);
}

.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Menu latéral */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 80px;
  background-color: var(--dark-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: width 0.3s;
  overflow: hidden;
  z-index: 1000;
}

.sidebar:hover {
  width: 300px;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  width: 100%;
  height: 100%;
}

.contact-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: bold;
  font-size: 2.5rem;
  color: var(--primary);
  letter-spacing: 5px;
  margin: 75px 0 0 0;
}

.sidebar-content a {
  color: var(--light);
  text-decoration: none;
  margin: 10px 0;
  display: flex;
  align-items: center;
  transition: color 0.3s;
  width: 100%;
  justify-content: center;
}

.sidebar-content a:hover {
  color: var(--primary);
}

.sidebar-content i {
  margin-right: 10px;
  font-size: 1.5rem;
  min-width: 30px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar:hover .sidebar-content i {
  opacity: 1;
}

.sidebar-content .contact-info {
  opacity: 0;
  transition: opacity 0.3s;
  margin-left: 10px;
  white-space: nowrap;
}

.sidebar:hover .contact-info {
  opacity: 1;
}

/* Navigation */
nav {
  background-color: var(--dark-light);
  padding: 1rem var(--content-padding);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
}

nav a {
  color: var(--light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

/* Contenu principal */
.main-container {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  margin-left: 80px;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-number {
  color: var(--primary);
}

.section-content {
  margin-top: 2rem;
}

/* Veille Technologique - NOUVEAU */
.veille-techno {
  background-color: var(--dark-light);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.veille-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.veille-screenshot {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.veille-features {
  margin-top: 1.5rem;
  width: 100%;
}

.veille-features ul {
  list-style-type: none;
  padding-left: 0;
}

.veille-features li {
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
}

.veille-features li:before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Projets */
.project-card {
  background-color: var(--dark-light);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.project-tag {
  background-color: rgba(245, 197, 24, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.code-snippet {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.project-img {
  width: 100%;
  border-radius: 8px;
  margin-top: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--light);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gray);
  border-radius: 4px;
  color: var(--light);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  background-color: var(--primary);
  color: #000;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

/* Footer */
footer {
  background-color: var(--dark-light);
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(245, 197, 24, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
  }

  .sidebar:hover {
    width: 100%;
  }

  .sidebar-content {
    flex-direction: row;
    justify-content: space-around;
  }

  .sidebar-content .contact-info {
    display: none;
  }

  .main-container {
    margin-left: 0;
  }

  .veille-demo {
    flex-direction: column;
  }

  .veille-screenshot {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2rem 0;
  }

  .hero-overlay h1 {
    font-size: 2.5rem;
  }
}
