@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Boldonse&family=DM+Serif+Text:ital@0;1&family=Libre+Caslon+Display&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Play:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Boldonse&family=DM+Serif+Text:ital@0;1&family=Ephesis&family=Libre+Caslon+Display&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Play:wght@400;700&display=swap');
*,
::after,
::before {
  box-sizing: border-box;
}

html {
  display: block;
  scroll-behavior: smooth;
}

p {
  font-size: 12pt;
  line-height: normal;
  margin: 0;
}

h1{
	font-family: "Ephesis";
}

h2{
 font-family: "Abril Faltface";
}

body {
  background-color: #1f2b25;
  color: white;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  margin: 0;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-left: 1rem;
  padding-right: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  height: 54px !important;
  width: 100%;
  background-color: transparent;
  font-size: 16pt;
  z-index: 999;
  transition: all;
  transition-duration: 300ms;
}

header h1{
  font-size: 12pt;
}

footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-left: 4rem;
  padding-right: 4rem;
  height: 64px;
  box-sizing: border-box;
  background-color: #323433;
}

footer p {
  width: 100%;
  text-align: center;
}

ul {
  padding: 0;
  list-style: none;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: underline;
  color: white;
}

.nav-bar,
.nav-logo {
  display: flex;
  flex-direction: row;
  width: 100% !important;
  align-items: center;
  margin: 0;
}

.nav-logo img {
  
  height: 32px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
}

.hamburger-icon {
  width: 38px;
  height: 38px;
  padding: 0.25rem;
  fill: white;
  border-radius: 0.25rem;
}

.hamburger-icon:hover {
  background-color: #476b53;
}

.nav-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  position: fixed;
  flex-direction: column;
  align-items: center;
  left: 0;
  top: -100%;
  z-index: 90;
}

.show-nav-links {
  top: 54px;
  background-color: #476b53;
  transition: all;
  transition-duration: 300ms;
}

.nav-links ul {
  margin: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  width: 100%;
}

.nav-links ul li a {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.nav-links ul li a:hover {
  align-items: center;
  cursor: pointer;
  background-color: #8da9c4;
  border-bottom: 3px solid #ffffff;
}

section {
  padding-top: 50px;
  padding-bottom: 0px;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 2rem;
}


#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-image {
  width: 256px;
}

.name-text {
  font-size: 30pt !important;
  line-height: normal;
  font-weight: bold;
  margin: 0;
}

.job-text {
  font-size: 18pt !important;
  margin-bottom: 0.5rem;
}

.intro-text {
  text-align: justify;
  margin-bottom: 1rem;
}

.contact-button {
  background-color: #476b53;
  color: white;
  border: 1px solid white;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 0.25rem;
  text-align: center;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.about-text {
  flex: 2;
  color: #eeeeee;
  font-size: 1rem;
  line-height: 1.6;
}

.about-infos {
  flex: 1;
}

.about-infos ul {
  list-style: none;
  padding: 0;
}

.about-infos li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.about-infos strong {
  color: #A9CBB7;
  font-weight: bold;
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .about-text {
    padding-right: 2rem;
  }
}


.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 2rem;
  margin-top: 2rem;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr; 
  }
}
.project-card {
  width: 100%;
  max-width: 400px;
  margin: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-image {
  position: relative;
  width: 100%;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  
  display: block;
}

.project-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(31, 43, 37, 0.85);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 1rem;
}

.project-image:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  color: #A9CBB7;
}

.overlay p {
  margin: 0.25rem 0;
  font-size: 1rem;
  color: #FAFAF7;
}
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.filter-btn {
  background-color: #476B53;
  color: #FAFAF7;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.filter-btn:hover,

.filter-btn.active {
  background-color: #A9CBB7;
  color: #1F2B25;
}
.link-en-savoir-plus {
  color: #FAFAF7; /* ou #BEE3C2 pour un vert clair */
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-en-savoir-plus:hover {
   text-decoration: underline;
  color: #A9CBB7;
}

#contact {
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-flex {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background-color: #476b53;
  border: 1px solid #8da9c4;
  border-radius: 6px;
  padding: 0.75rem;
  color: #FAFAF7;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #cbd5e1;
}

#contact h2 {
  text-align: center;
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-contact {
  padding: 0.8rem 1.5rem;
  background-color: #204080;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 1rem;
  flex: 1 1 auto; /* permet de s’adapter à l’espace disponible */
  min-width: 140px;
  transition: background-color 0.3s ease;
}

.btn-contact:hover {
  background-color: #102f5e;
}

/* Responsive pour les écrans < 600px */
@media (max-width: 600px) {
  .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-contact {
    width: 100%;
  }
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #FAFAF7;
}

@media (min-width: 768px) {
  .contact-flex {
    flex-direction: row;
    justify-content: space-between;
  }

  .contact-form, .contact-info {
    flex: 1;
  }

  .contact-info {
    padding-left: 2rem;
  }
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  font-size: 10pt;
}

@media (min-width: 540px) {
  section {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  p {
    font-size: 16pt;
  }

  h2 {
    font-size: 36px;
    text-align: center;
  }

  header {
    padding-left: 5rem;
    padding-right: 5rem;
    height: 72px !important;
  }

  .name-text {
    font-size: 64pt !important;
  }

  .job-text {
    font-size: 28pt !important;
  }

  .contact-button {
    font-size: 16pt;
    width: max-content;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-image {
    width: 512px;
  }

  #portfolio ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  #portfolio li {
    max-width: 45%;
    margin: 2.5%;
  }

  #contact ul {
    margin-left: 5rem;
    margin-right: 5rem;
  }

  footer p {
    font-size: 12pt;
  }
}

@media (min-width: 1024px) {
  section {
    max-width: 1366px;
    align-self: center;
  }

  p {
    font-size: 12pt;
  }

  h2 {
    font-size: 36px;
    text-align: center;
  }

  header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    height: 54px !important;
    width: 100%;
    background-color: transparent;
    font-size: 16pt;
    z-index: 999;
    transition: all;
    transition-duration: 300ms;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .nav-bar,
  .nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    width: 100%;
    max-width: 1366px !important;
  }

  .nav-bar {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .nav-logo img {
   
    height: 32px;
  }

  .nav-menu {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: unset;
    position: static;
    top: 0;
    width: 100;
  }

  .nav-links ul {
    display: flex;
    flex-direction: row;
    justify-content: end;
    flex-wrap: unset;
    position: static;
    top: 0;
    width: 100;
    margin: 0;
    padding: 0;
    height: 52px;
  }

  .nav-links ul li a {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .nav-links ul li a:hover {
  background-color: #A9CBB7;
  color: #1F2B25;
}

  #hero {
    flex-direction: row;
  }

  .hero-text + .hero-image {
    margin-left: 5rem;
  }

  #portfolio ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  #portfolio li {
    max-width: 30%;
    margin: 1.6%;
  }

  #contact {
    width: 100%;
  }

  #contact ul {
    max-width: 512px;
    align-items: center;
    justify-content: space-evenly;
    margin: auto;
  }
}

.text-gradient {
  background: linear-gradient(270deg, #FAFAF7, #a9cbb7);
  background-size: 300% 300%;

  -webkit-animation: AnimationName 7s ease infinite;
  animation: AnimationName 7s ease infinite;

  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@-webkit-keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.scroll-header {
  background-color: #476b53;
}

#skills {
  width: 100%;
  max-width: 1200px; /* augmente la largeur max */
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}
.skills-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 2rem;
}

.skills-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-columns {
    flex-direction: row;
    gap: 4rem;
  }
}

.skill-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fafaf7;
}

.progress-bar {
  width: 100%;
  height: 14px;
  background-color: #2e4039;
  border-radius: 8px;
  overflow: hidden;
}

.progress {
  width: 0;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(to right, #A9CBB7, #476B53);
  transition: width 1.5s ease-in-out;
}

.button-group {
  
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
#contact {
  margin-top: 3rem;
}

.cc-contact-information {
  background-size: cover;
  background-position: center;
  padding: 4rem 1rem;
}

.card {
  background-color: transparent;
  color: #FAFAF7;
  box-shadow: none;
}

.card-body {
  padding: 1rem;
}

.card-body input,
.card-body textarea {
  background-color: #1f2b25;
  color: #FAFAF7;
  border: 1px solid #A9CBB7;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
}

.btn-contact {
  text-decoration: none !important;
  background-color: #476B53;
  color: #FAFAF7;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  .btn-contact {
  margin: auto;
}
}

.btn-contact:hover {
  text-decoration: none !important;
  background-color: #A9CBB7;
  color: #1F2B25;
}

.contact-infos p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.text-intro {
  text-align: justify;
  line-height: 1.7;
  max-width: 800px;
  margin: auto;
  color: #F3F0EC; /* adapte selon ta palette */
  font-size: 1.05rem;
}


@media (min-width: 768px) {
  .row {
    display: flex;
    gap: 2rem;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-12 {
    width: 100%;
  }
}
#education {
  padding-top: 80px;
  padding-bottom: 80px;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.timeline-block {
  display: flex;
  flex-direction: column;
  border-left: 4px solid #A9CBB7;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-block::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0 3rem;
  width: 16px;
  height: 16px;
  background-color: #A9CBB7;
  border-radius: 50%;
}



.timeline-date p {
  margin: 0;
  font-weight: bold;
  color: #A9CBB7;
}

.timeline-date h4 {
  margin: 0.2rem 0 0.8rem;
  font-size: 1.2rem;
}

.timeline-content h5 {
  margin: 0;
  font-size: 1.1rem;
  color: #FAFAF7;
}

.timeline-content .category {
  font-style: italic;
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 1rem;
  color: #FAFAF7;
}

@media (min-width: 768px) {
  .timeline-block {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }

  .timeline-date {
    min-width: 200px;
  }
}
#enquete-metier {
  padding: 80px 2rem;
  max-width: 900px;
  margin: auto;
}

.project-page {
  padding-top: 80px;
  color: #FAFAF7;
}

.project-header {
  text-align: center;
  padding: 2rem 1rem;
}

.project-subtitle {
  color: #ccc;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: center;
}

.project-body .container {
  max-width: 900px;
  margin: auto;
  padding: 2rem 1rem;
}

.project-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #A9CBB7;
  margin-bottom: 3rem;
}

.project-section {
  margin-bottom: 2.5rem;
}

.project-section h2 {
  font-size: 1.6rem;
  color: #A9CBB7;
  margin-bottom: 1rem;
}
.two-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.two-cols .col {
  flex: 1 1 45%;
  text-align: center; 
}

.two-cols h2 {
  font-size: 1.8rem;
  color: #A9CBB7;
  margin-bottom: 1rem;
}

.two-cols ul {
  list-style-type: none; /* retirer les puces si tu veux */
  padding-left: 0;
  margin: 0 auto;
  line-height: 1.6;
  display: inline-block; 
  text-align: left;      
}


@media (max-width: 768px) {
  .two-cols {
    flex-direction: column;
  }
}


.btn-site {
  display: inline-block;
  background-color: #476B53;
  color: #FAFAF7;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.3s;
}

.btn-site:hover {
  background-color: #A9CBB7;
  color: #1F2B25;
}

.back-link {
  margin-top: 2rem;
}

.back-link a {
  color: #A9CBB7;
  text-decoration: underline;
  
}
.nav-links a,
.nav-logo a {
  text-decoration: none;
  color: inherit; /* garde la couleur du parent, si tu veux */
}

.svg-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.svg-shape {
  position: fixed;
  width: 120px;
  height: auto;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}


.shape1 {
  top: 10%;
  left: 2%;
}

.shape2 {
  bottom: 15%;
  right: 8%;
}

.shape3 {
  top: 75%;
  left: 20%;
}

/* Animation flottante douce */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}
.realisation-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.realisation-row p {
  margin: 0;
  font-weight: 500;
  color: #F3F0EC; /* adapte selon ta palette */
}
.justified-list {
  text-align: justify;
  padding-left: 1.5rem;
  list-style-type: disc;
  line-height: 1.6;
}

.justified-list li {
  margin-bottom: 0.8rem;
}

.project-hero-context {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.carousel-container {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel-slide .video iframe {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.context-text {
  flex: 1 1 50%;
  background-color: rgba(169, 203, 183, 0.85); /* Vert légèrement transparent */
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.context-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2e2e2e;
}

.context-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #444;
}

@media screen and (max-width: 768px) {
  .project-hero-context {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .carousel-container,
  .context-text {
    flex: 1 1 100%;
  }

  .context-text {
    margin-top: 1rem;
  }
}


.project-hero-context .carousel-container {
  flex: 1 1 55%;
  max-width: 55%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 0; /* supprimer le margin 40px auto de l'ancien */
}

/* Slide */
.project-hero-context .carousel-slide {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

/* Images */
.project-hero-context .carousel-slide img {
  aspect-ratio: 45 / 35; /* hauteur proportionnelle */
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
}

.project-hero-context .context-text {
  flex: 1 1 40%;
  max-width: 40%;
  font-size: 1rem;
  line-height: 1.5;
  color: black;
}

/* Flèches */
.project-hero-context .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.0);
  border: none;
  font-size: 32px;
  padding: 10px 10px;
  cursor: pointer;
  z-index: 2;
  color: #222;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.project-hero-context .carousel-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.project-hero-context .prev-btn {
  left: 20px;
}

.project-hero-context .next-btn {
  right: 20px;
}

/* Responsive : passage en colonne sur petits écrans */
@media screen and (max-width: 768px) {
  .project-hero-context {
    flex-direction: column;
    max-width: 95%;
    margin: 2rem auto;
  }
  .project-hero-context .carousel-container,
  .project-hero-context .context-text {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .project-hero-context .carousel-container {
    aspect-ratio: 4 / 3;
    margin: 0 auto 2rem;
  }
  .project-hero-context .carousel-btn {
    font-size: 24px;
    padding: 8px 10px;
  }
}

.back-link {
  background-color: #476b53;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none !important;	
}
.back-link:hover{
   text-decoration: none !important;
  background-color: #A9CBB7;
  color: #1F2B25;
}

