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

html {
  scroll-behavior: smooth;
}

body, html {
  height: 100%;
  font-family: "Segoe UI", sans-serif;
  background-color: transparent;
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   VARIABLES / THÈME
========================= */
:root {
  --bg: #f9f9f9;
  --text: #000000;
  --accent: #0b3d91;
  --header-bg: #0b3d91;
  --header-text: white;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1c;
    --text: #ffffff;
    --accent: #5a9eff;
    --header-bg: #121212;
    --header-text: #f1f1f1;
  }
}

/* =========================
   TYPOGRAPHIE
========================= */
h2 {
  color: var(--accent);
  margin-bottom: 1em;
}

.vs-code-note {
  margin-top: 2em;
  font-style: italic;
  font-size: 0.9em;
  color: white;
}

/* =========================
   HEADER / NAVIGATION
========================= */
header {
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--header-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  flex-wrap: wrap;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 1.8em;
  cursor: pointer;
}

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

header h1 a:hover {
  color: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  color: var(--header-text);
  margin: 0 1em;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* =========================
   SECTION PRÉSENTATION
========================= */
#presentation {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  position: relative;
}
.signature {
  position: absolute;
  bottom: -230px; /* ↓ Descend encore plus sous la section */
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-style: italic;
  font-size: 0.9em;
  opacity: 0.8;
  z-index: 2;
}

#bg-video {
  height: 100vh;
  width: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  filter: brightness(0.5);
}

.presentation-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 17em;
  text-align: center;
}

.presentation-content h1 {
  font-size: 3.5em;
  margin-bottom: 0.5em;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDownFadeIn 1.5s ease forwards;
}

.presentation-content p {
  font-size: 1.2em;
  margin-top: 1em;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 1s;
}

.btn-cv {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  padding: 0.8em 1.6em;
  margin-top: 1em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-cv:hover {
  background-color: #327eff;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes slideDownFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: white }
}



/* =========================
   FOOTER
========================= */
footer {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 2em 2em 3em;
  text-align: center;
  font-size: 1em;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 2em;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  font-size: 1.4em;
  margin-bottom: 0.3em;
  color: var(--accent);
}

.footer-section p {
  font-size: 0.95em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.footer-section a {
  color: var(--header-text);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 800px) {
  .entreprise-details,
  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin: 0.5em 0;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5em;
  }

  .footer-section {
    min-width: auto;
  }
}

@media (max-width: 500px) {
  .presentation-content h1 {
    font-size: 2.5em;
  }

  .presentation-content p {
    font-size: 1em;
  }

  section {
    padding: 2em 1em;
  }

  #bg-video {
    object-position: center top;
  }

  .image-container img {
    max-width: 100%;
  }
}
