/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

/* Internationalisation - Gestion des langues */
body[data-lang="fr"] .i18n-en {
  display: none;
}

body[data-lang="en"] .i18n-fr {
  display: none;
}

/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #000000;
  z-index: 1000;
  padding: 1.5rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

nav a:hover,
nav a.active {
  opacity: 0.6;
}

/* Language Toggle Button */
#lang-toggle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000000;
  background-color: transparent;
  border: 1px solid #000000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

#lang-toggle:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Main Layout */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  grid-column: 1 / 6;
}

.hero-image {
  grid-column: 7 / 13;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Intro Section */
.intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0;
}

.intro p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000000;
  background-color: #d1d1d1;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #b0b0b0;
}

/* Projects Section */
.projects-header {
  max-width: 900px;
  margin: 0 auto 5rem;
  text-align: center;
}

.projects-header p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #000000;
}

.project-item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }
.project-item:nth-child(6) { animation-delay: 0.6s; }

.project-item.reverse .project-image {
  grid-column: 1 / 8;
  order: 1;
}

.project-item.reverse .project-text {
  grid-column: 8 / 13;
  order: 2;
}

.project-item:not(.reverse) .project-image {
  grid-column: 6 / 13;
  order: 2;
}

.project-item:not(.reverse) .project-text {
  grid-column: 1 / 6;
  order: 1;
}

/* Text-only projects (no image) */
.project-item.text-only {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-item.text-only .project-text {
  grid-column: 1 / -1;
  order: 1;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-text h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.project-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #000000;
}

/* Contact Section */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-info {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-info a {
  color: #000000;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.6;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #000000;
}

.form-group input,
.form-group textarea {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #000000;
  background-color: #ffffff;
  color: #000000;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #666666;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group button {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid #000000;
  padding: 2rem 0;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-container p {
  font-size: 0.875rem;
  color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text {
    grid-column: 1 / -1;
    text-align: center;
  }

  .hero-image {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .project-item,
  .project-item.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-item .project-image,
  .project-item .project-text,
  .project-item.reverse .project-image,
  .project-item.reverse .project-text {
    grid-column: 1 / -1;
    order: unset;
  }

  .project-item .project-image {
    order: 1;
  }

  .project-item .project-text {
    order: 2;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .header-nav-wrapper {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  nav {
    width: 100%;
  }

  nav ul {
    gap: 1.5rem;
    justify-content: center;
  }

  nav a {
    font-size: 0.85rem;
  }

  #lang-toggle {
    align-self: center;
  }

  main {
    padding: 0 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    min-height: auto;
  }

  .btn {
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .contact-info {
    padding: 1.5rem;
  }
}

