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

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'AMORIA', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background-color: #000;
    color: #fff;
    z-index: -1;
}
body {
  margin: 0;
  padding: 0;
  background: #000;
  overflow-x: hidden;
}

/*  FOND VIDEO  */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(40%);
    pointer-events: none;
}

/*  STRUCTURE  */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-top: 100px;
}

/*  TYPOGRAPHIE  */
h1, h2, h3 {
    font-family: 'AMORIA', sans-serif;
}
h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}
p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}
/*  POLICES  */
@font-face {
    font-family: 'AMORIA';
    src: url('./../fonts/AMORIA.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DM Serif Text';
    src: url('./../fonts/DMSerifText.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, p, li, a, button, .contact-btn, .footer-btn {
    font-family: 'DM Serif Text', serif;
    color: #fff;
}

h1 {
    font-family: 'AMORIA', serif;
    color: #b566ff;
}

/*  HEADER  */
header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    backdrop-filter: blur(10px);
    background: rgba(20, 20, 30, 0.4);
    border-radius: 20px;
    padding: 12px 25px;
    z-index: 10;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 20px rgba(170, 50, 255, 0.2);
    transition: all 0.3s ease;
}
header:hover {
    box-shadow: 0 0 25px rgba(170, 50, 255, 0.4);
    transform: translateX(-50%) scale(1.01);
}
header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    text-decoration: none;
}
header .logo video {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(170, 50, 255, 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}
header .logo:hover video {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(170, 50, 255, 1));
}

header ul {
    list-style: none;
    display: flex;
    gap: 40px;
}
header ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}
header ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(170, 50, 255, 0.8);
    transition: width 0.3s ease;
}
header ul li a:hover,
header ul li a.active {
    color: rgba(170, 50, 255, 0.8);
    transform: scale(1.05);
}
header ul li a:hover::after,
header ul li a.active::after {
    width: 100%;
}

/*  ACCUEIL  */
main.accueil {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 120px 20px 60px;
    text-align: center;
}
main.accueil img {
    width: 300px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
main.accueil img:hover {
    transform: scale(1.05);
}
main.accueil p + p {
  margin-top: 25px;
}
.description h1 {
    color: rgba(170, 50, 255, 0.8);
    margin-bottom: 20px;
}
.description p {
    max-width: 500px;
    line-height: 1.6;
    margin: 0 auto;
}

.pdf-btn {
    display: block;
    margin: 30px auto 0;
    background: linear-gradient(135deg, rgba(170, 50, 255, 0.9), rgba(100, 0, 200, 0.9));
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(170, 50, 255, 0.4);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pdf-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}
.pdf-btn:hover::before { left: 100%; }
.pdf-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px rgba(170, 50, 255, 0.8);
}
.pdf-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(170, 50, 255, 0.6);
}

/*  PROJETS  */
main.projets {
    padding-top: 120px;
    text-align: center;
}
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 40px;
}
.projet {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s, background 0.3s;
}
.projet:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}
.projet img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/*  CONTACT  */
main.contact {
    padding-top: 120px;
    text-align: center;
}
main.contact ul {
    list-style: none;
    margin-top: 20px;
}
main.contact ul li {
    margin: 15px 0;
}
main.contact a {
    color: rgba(170, 50, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}
main.contact a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(170, 50, 255, 0.8);
}
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.contact-section h1 {
  font-family: 'AMORIA', serif;
  font-size: 2.8rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 15px rgba(200, 150, 255, 0.8);
}

.contact-card {
  position: relative;
  background: rgba(20, 10, 40, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2.5rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 25px rgba(160, 90, 255, 0.3);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(180, 100, 255, 0.5);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #8e44ff, #6c2bff, #a678ff, #8e44ff);
  filter: blur(60px);
  animation: rotateGlow 6s linear infinite;
  z-index: 0;
  opacity: 0.25;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.contact-info {
  position: relative;
  z-index: 1;
}


.contact-info p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-btn {
  background: linear-gradient(90deg, #8e44ff, #a678ff);
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.4rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(150, 80, 255, 0.3);
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(170, 90, 255, 0.6);
}

.contact-btn:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .contact-card {
    padding: 2rem;
  }

  .contact-section h1 {
    font-size: 2rem;
  }

  .contact-info h2 {
    font-size: 1.4rem;
  }
}
/*  EMAIL  */
.email-section {
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
}

.email-form-container {
    background: rgba(20, 10, 40, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 0 25px rgba(170, 50, 255, 0.3);
    width: 90%;
    max-width: 600px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.email-form label {
    text-align: left;
    font-family: 'DM Serif Text', serif;
    color: #c9b3ff;
}

.email-form input,
.email-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(170, 50, 255, 0.4);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-family: 'DM Serif Text', serif;
    outline: none;
    transition: all 0.3s ease;
}

.email-form input:focus,
.email-form textarea:focus {
    border-color: rgba(200, 120, 255, 0.9);
    box-shadow: 0 0 15px rgba(200, 120, 255, 0.6);
}

.email-btn {
    background: linear-gradient(135deg, rgba(170, 50, 255, 0.9), rgba(100, 0, 200, 0.9));
    border: none;
    border-radius: 30px;
    color: #fff;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-family: 'DM Serif Text', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(170, 50, 255, 0.4);
}

.email-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(170, 50, 255, 0.8);
}

.email-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .email-form-container {
        padding: 25px;
    }

    .email-btn {
        font-size: 1rem;
    }
}

/*  FOOTER  */
footer {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    margin-top: auto;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.footer-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(170, 50, 255, 0.9), rgba(100, 0, 200, 0.9));
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(170, 50, 255, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
}

.footer-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(1.2);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-btn:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(170, 50, 255, 0.8));
}

.footer-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(170, 50, 255, 0.8);
}

/*  RESPONSIVE  */
@media (max-width: 1024px) {
    header ul { gap: 20px; }
    main.accueil img { width: 250px; }
    .description p { max-width: 90%; }
}
@media (max-width: 768px) {
    header nav { flex-direction: column; gap: 10px; }
    header ul { flex-wrap: wrap; justify-content: center; gap: 10px; }
    main.accueil { flex-direction: column; gap: 30px; }
    main.accueil img { width: 180px; }
    .projets-grid { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 480px) {
    header .logo { height: 30px; }
    header ul li a { font-size: 0.9em; }
    main.contact ul li { font-size: 0.9em; }
}
/*  ANIMATIONS  */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade {
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
}
.fade:nth-child(1) { animation-delay: 0.2s; }
.fade:nth-child(2) { animation-delay: 0.5s; }
.fade:nth-child(3) { animation-delay: 0.8s; }
.fade:nth-child(4) { animation-delay: 1.1s; }
.fade:nth-child(5) { animation-delay: 1.4s; }

/*  SECTION LOGICIELS  */
.softwares {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(15, 10, 25, 0.8);
  backdrop-filter: blur(10px);
  padding: 60px 0 40px;
  margin-top: 80px;
  box-shadow: 0 0 30px rgba(170, 50, 255, 0.2);
  border-top: 2px solid rgba(170, 50, 255, 0.3);
}

.softwares h2 {
  font-family: 'AMORIA', serif;
  font-size: 2rem;
  color: #b566ff;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 12px rgba(170, 50, 255, 0.7);
}

.softwares {
  position: relative;
  width: 90%;
  margin: 80px auto 0 auto;
  overflow: hidden;
  background: rgba(15, 10, 25, 0.8);
  backdrop-filter: blur(10px);
  padding: 60px 0 40px;
  box-shadow: 0 0 30px rgba(170, 50, 255, 0.2);
  border-top: 2px solid rgba(170, 50, 255, 0.3);
  border-radius: 25px;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scroll 50s linear infinite;
  white-space: nowrap;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100.1%); }
}

.software-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  color: #fff;
  font-family: 'DM Serif Text', serif;
  font-size: 1rem;
  text-shadow: 0 0 5px rgba(170, 50, 255, 0.6);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  margin-top: 50px;
}

.software-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(170, 50, 255, 0.5));
  margin-bottom: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.software-item:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(190, 80, 255, 0.8));
}

.software-item:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(190, 80, 255, 0.8);
}
.softwares:hover {
  box-shadow: 0 0 60px rgba(190, 80, 255, 0.4);
  transition: box-shadow 0.5s ease;
}

@media (max-width: 768px) {
  .marquee-content {
    gap: 30px;
    animation-duration: 35s;
  }

  .software-item img {
    width: 45px;
    height: 45px;
  }

  .software-item span {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  #bg-video {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
      background: #000;
  }
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'AMORIA', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background-color: #000;
    color: #fff;
}

header, main, footer {
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
  header {
    top: 0;
    width: 100%;
    border-radius: 0;
  }

  main {
    padding-top: 80px !important;
  }

  .page-container {
    min-height: 100vh;
    overflow-x: hidden;
  }
}

