/* ============================================
   1. POLICES (@font-face)
   ============================================ */

/* lexend-100 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100;
  src: url("../fonts/lexend-v26-latin-100.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lexend-200 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend";
  font-style: normal;
  font-weight: 200;
  src: url("../fonts/lexend-v26-latin-200.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lexend-300 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/lexend-v26-latin-300.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lexend-regular - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/lexend-v26-latin-regular.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lexend-500 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/lexend-v26-latin-500.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lexend-600 - latin */
@font-face {
  font-display: swap;
  /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Lexend";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/lexend-v26-latin-600.woff2") format("woff2");
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ============================================
   2. VARIABLES CSS (:root)
   ============================================ */

:root {
  /* Colors */
  --color-primary: #7b3fbf;
  --color-secondary: #414b5a;
  --color-light: #fff9f2;
  --color-dark: #121212;
  --color-white: #ffffff;

  /* Font sizes */
  --fs-xl: 7.2rem; /* Gros titres */
  --fs-lg: 5.2rem; /* Titres secondaires */
  --fs-md: 2.8rem; /* Titres tertiaires */
  --fs-base: 1.6rem; /* Texte normal */
  --fs-sm: 1.2rem; /* Petit texte */

  /* Spacing */
  --spacing-xs: 1rem;
  --spacing-sm: 2rem;
  --spacing-md: 4rem;
  --spacing-lg: 8rem;
  --spacing-xl: 12rem;

  /* Border radius */
  --border-radius-sm: 0.8rem;
  --border-radius-md: 1rem;

  /* Box shadow */
  --shadow-project: 5px 5px 15px rgba(123, 63, 191, 100%);

  /* Nouvelle variable pour l'ombre des titres */
  --shadow-title: 2px 2px 5px rgba(0, 0, 0, 0.2);

  /* Font weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
}

/* ============================================
   3. RESET ET STYLES DE BASE
   ============================================ */

* {
  box-sizing: border-box;
  font-family: lexend, sans-serif;
}

body {
  background-color: var(--color-light);
}

h1,
h2,
h3,
h4 {
  text-shadow: var(--shadow-title);
}

a,
address {
  text-decoration: none;
  color: var(--color-light);
}

ul li {
  list-style-type: none;
}

/* ============================================
   4. HEADER ET NAVIGATION
   ============================================ */

header {
  background: linear-gradient(
    to bottom,
    var(--color-dark),
    var(--color-primary)
  );
  width: 100%;
  border: none;
  align-items: center;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--color-light);
  border: none;
}

h1 {
  font-size: 2.8rem;
  font-weight: 400;
  padding-bottom: 1rem;
  padding-top: 1rem;
  color: var(--color-light);
  border: none;
}

h1 a {
  color: var(--color-light);
  text-decoration: none;
  border: none;
}

.menu-items {
  display: flex;
  gap: 3.2rem;
}

.nav-item a {
  color: var(--color-light);
}

/* effets liens btn3 */

.btn3 {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--color-dark), var(--color-primary));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn3:hover,
.btn3:active {
  color: var(--color-light);
}

.btn-nav:hover,
.btn-nav:active {
  color: var(--color-light);
}

.btn3:hover::before,
.btn3:active::before {
  opacity: 1;
}

.btn-nav:hover::before,
.btn-nav::before:active::before {
  opacity: 1;
}

.btn3:active,
.btn-nav:active {
  transform: scale(0.98);
}

/* Fin effets liens btn3 */


.nav-item {
  transition: all 0.5s ease;
}

.nav-item a {
  font-size: 2rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

/* style liens */

/* ============================================
   5. CONTENEURS 
   ============================================ */

.container {
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   6. MAIN
   ============================================ */

main {
  background-color: var(--color-light);
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main :nth-child(3) {
  gap: 3rem;
}
/* animation logo accueil */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes flip3d {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.avatar-image {
  animation: fadeIn 2s ease-out, flip3d 6s linear infinite;
  animation-delay: 0s; 
  transform-style: preserve-3d; 
  width: 35rem;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 30px rgba(123, 63, 191, 0.5));
  border-radius: 1rem;
}

.avatar-container {
  perspective: 500px;
}

/* fin animation logo accueil */

.dev_bloc {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  margin-top: 4rem;
  gap: 1.5rem;
}

.dev_bloc h2 {
  font-size: 5.2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-secondary);
}

.dev_bloc a {
  background-color: var(--color-secondary);
  margin-top: 4rem;
  width: 17.9rem;
}

.dev_bloc p {
  font-weight: 200;
  font-size: 2.2rem;
  font-family: lexend, sans-serif;
  padding-top: 2rem;
}

/* ============================================
   7. SECTION À PROPOS
   ============================================ */

.about-section {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  background-color: var(--color-light);
}

.about-layout {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.about-text-content {
  flex: 2;
  text-align: left;
}

.about-text-content h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}

.about-text-content p {
  font-size: 1.8rem;
  font-weight: var(--fw-light);
  color: var(--color-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.about-text-content {
  font-weight: var(--fw-regular);
}

.about-cv-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cv-link {
  display: inline-block;
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-project);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-link:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 10px 10px 25px rgba(123, 63, 191, 0.7);
}

.cv-link img {
  display: block;
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: calc(var(--border-radius-sm) - 2px);
}

/* ============================================
   8. SECTION PROJETS
   ============================================ */

.container-project {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
}

.container-project .dev_bloc {
  font-size: 1.2rem;
  font-weight: 300;
}

.container-project .dev_bloc p {
  margin-top: 2rem;
  margin-bottom: 6rem;
  padding-left: 4rem;
  padding-right: 4rem;
}

ul.project-list {
  margin: 0 auto;
}

.project-list {
  display: flex;
  flex-direction: row;
  gap: 24rem;
  text-align: center;
}

.project-list li {
  border: thin solid var(--color-primary);
  padding: 0.7rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-project);
}

.project-list li p:first-child {
  font-size: 1.2rem;
  font-weight: 300;
}

li p {
  color: var(--color-secondary);
}

.projects-gallery {
  padding: var(--spacing-md) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  list-style: none;
  padding: 0;
}

.project-card {
  background-color: var(--color-light);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-basis: calc((100% - (var(--spacing-md) * 2)) / 3);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-project);
}

.project-card img {
  width: 100%;
  height: auto;
}

.card-content {
  padding: var(--spacing-sm);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-secondary);
}

.card-content > * {
  color: var(--color-light);
  font-size: 2.2rem;
  margin-bottom: var(--spacing-xs);
}

.card-content p {
  color: var(--color-light);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.gallery-cta-container {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.gallery-cta-container {
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* ============================================
   9. DÉTAILS D'UN PROJET
   ============================================ */


   
.project-detail-main {
  background-color: var(--color-light);
  padding: var(--spacing-md) var(--spacing-xl);
}

.project-detail-container {
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-secondary);
}

.project-detail-container h1 {
  font-size: var(--fs-lg);
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.project-detail-image {
  width: 100%;
  height: auto;
  border-radius: 2rem;
  margin-bottom: var(--spacing-md);
}

.project-content h2 {
  font-size: var(--fs-md);
  color: var(--color-primary);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.project-content p,
.project-content ul {
  font-size: 1.8rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
}

.project-content ul {
  list-style: disc;
  padding-left: var(--spacing-md);
}
.objectives-list{
  margin-left: 4rem;
}

.project-content {
  margin-bottom: var(--spacing-lg);
}

.project-links {
  margin-top: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-sm);
}

/* ============================================
   10. BOUTONS
   ============================================ */

.real {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  height: auto;
  margin-bottom: 4rem;
}

.real {
  font-size: 1.6rem;
}

.holographic {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}

/* ============================================
   11. MENTIONS LÉGALES
   ============================================ */

.legal {
  padding: 6rem var(--spacing-xl);
  color: var(--color-dark);
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

.mentions-legales {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}
.info-box p {
  gap: 1.5rem;
  padding: 1rem;
}
.legal :nth-of-type(1) {
  margin-bottom: 2rem;
}

.legal > * {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0;
}

 .intro {
            color: var(--color-secondary);
            margin-bottom: 3rem;
            font-style: italic;
        }

        h2 {
            color: #764ba2;
            margin-top: 3rem;
            margin-bottom: 1.5rem;
            font-size: 1.5em;
        }

        p {
            margin-bottom: 1.5rem;
            text-align: justify;
        }

        .info-box {
            background:linear-gradient(135deg, var(--color-dark), #764ba2);
            border-radius: 0.8rem;
            box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1),
            0 0.8rem 1.6rem rgba(0, 0, 0, 0.1);
            padding: 1.5rem;
            color: var(--color-light);

            
        }

       

        ul {
            margin-left: 2rem;
            margin-bottom: 1.5rem;
        }

        li {
            margin-bottom: 0.8rem;
        }

/* ============================================
   12. FOOTER
   ============================================ */
.site-footer .footer-copyright p {
  text-align: center !important;
  margin: 0 auto !important;
}

.site-footer {
  background: linear-gradient(var(--color-primary), var(--color-dark));
  padding-bottom: 2rem;
}

.footer-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
}

.footer-list a:hover,
.footer-contact address a:hover,
.nav-item a:hover {
  color: #cb80ff;
}

.footer-list {
  text-align: center;
}

.img-footer {
  width: auto;
  height: auto;
  max-height: 250px;
}



.footer-list li a {
  font-size: 1.6rem;
  font-weight: 300;
}

address {
  font-size: 1.6rem;
  font-weight: 300;
  text-align: center;
}

.footer-copyright {
  text-align: center;
  color: grey;
  font-size: var(--fs-sm);
  margin: 0 auto;
  width: 100%;
}

/* Boutons de navigation entre projets */
.project-navigation {
  display: flex;
  justify-content: space-between;
}

.btn-nav {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--color-dark), var(--color-primary));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-nav:hover {
  color: var(--color-light);
}

.btn-nav:hover::before {
  opacity: 1;
}

/* Page projet 2 comming soon */

.coming-soon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 2rem;
}

.coming-soon-container h1 {
  font-size: 5rem;
  color: var(--color-primary);
  animation: pulse 2s ease-in-out infinite;
}

.project-navigation {
  gap: 10rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}


/* ============================================
   13. MEDIA QUERIES - TABLETTES (max-width: 1200px)
   ============================================ */

@media (max-width: 1200px) {
  .project-card {
    box-shadow: var(--shadow-project);
    max-width: 100%;
    height: auto;
  }

  .projects-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projects-gallery,
  .project-detail-main {
    padding: var(--spacing-md) var(--spacing-md);
  }

  .legal h2 {
    text-align: left;
  }

  .legal {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .about-layout {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    gap: var(--spacing-md);
  }

  h2 {
    justify-content: center;
    display: flex;
    text-align: center;
  }

  header .container,
  footer .footer-container {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .project-list {
    gap: 10rem;
  }

  .dev_bloc h2 {
    font-size: 5.5rem;
  }

  .dev_bloc {
    margin-top: 8rem;
  }
}

/* ============================================
   14. MEDIA QUERIES - MOBILES (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
  .projects-gallery,
  .project-detail-main  {
    padding: var(--spacing-md) var(--spacing-sm);
    gap 2rem
  }

  .project-card {
    box-shadow: var(--shadow-project);
  }

  .legal h2 {
    text-align: left;
  }

  .legal {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .about-layout {
    flex-direction: column;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }

  .about-text-content {
    text-align: left;
    justify-content: center;
  }

  .about-cv-container {
    margin-top: var(--spacing-md);
  }

  /* HEADER */
  header .container {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    justify-content: center;
    display: flex;
    text-align: center;
  }

  /* MAIN */
  .dev_bloc {
    margin-top: 4rem;
    padding: 0 1.5rem;
    gap: 2rem;
  }

  .dev_bloc h2 {
    font-size: 3.5rem;
  }

  .dev_bloc a {
    width: 90%;

    max-width: 17.9rem;
  }

  .holographic {
    margin-bottom: 4rem;
  }

  .container-project {
    margin-top: 6rem;
  }

  .project-list {
    flex-direction: column;
    gap: 4rem;
  }

 .project-objectives li,
  .project-resources li {
    margin-bottom: 2rem; 
    padding-bottom: 0.5rem;
  }
    
    /* FOOTER */
  footer {
    height: auto;
  }

  footer .footer-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }

  footer .footer-container .img-footer {
    width: auto;
    margin: 0 auto;
  }

  footer .footer-container .footer-links,
  footer .footer-container .footer-contact {
    width: 100%;
  }

  .footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    padding: 0;
    margin: 0 auto;
  }
  .menu-items {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .nav-item a {
    font-size: 1.6rem;
  }
}
