@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;700;800&display=swap");

/* ─────────── Global ─────────── */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100vh;
  background: url(./images/bg.jpg) no-repeat;
  background-size: cover;
}

a {
  color: #591a56;
  text-decoration: none;
}

a:hover {
  opacity: 70%;
}

h1 {
  margin-top: 50px;
  margin-bottom: 30px;
  font-size: 40px;
}

h4 {
  opacity: 80%;
}

.avatar {
  border-radius: 50%;
}

.container {
  width: 100%;
  padding: 0 200px;
}

/* ─────────── Header & Navbar ─────────── */
body.homepage header {
  padding-top: 100px;
}

header {
  padding-top: 35px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navigation-bar ul {
  padding: 0;
  margin: 0;
}

.navigation-bar ul li {
  list-style: none;
  display: inline-block;
  margin: 0 75px;
}

.navigation-bar ul li a {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #292423;
  text-transform: capitalize;
  transition: all 0.3s;
}

/* ─────────── Main Content ─────────── */
.portfolio-main {
  min-height: 100vh;
  background: linear-gradient(
    153.28deg,
    rgba(255, 255, 255, 0.4) 1.19%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(42px);
}

.main-content-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.col-left span {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
  color: #292423;
  margin-bottom: 10px;
}

.col-left h1 {
  font-size: 40px;
  font-weight: 800;
  color: #292423;
  line-height: 41px;
  margin-bottom: 15px;
}

.col-left p {
  width: 85%;
  font-size: 16px;
  line-height: 1.45;
  color: #292423;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

a.btn-main {
  display: flex;
  justify-content: center; /* centre le contenu texte + icône dans le bouton */
  align-items: center;
  padding: 13px 25px;
  background: #292423;
  width: 190px;
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  margin-top: 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  /* Pas de margin auto ici */
}

.pres a.btn-main {
  margin: 35px auto 0; /* centre horizontalement dans la homepage */
  display: flex;
  justify-content: center;
}

a.btn-main:hover {
  background: #fff;
  color: #292423;
}

.text-center {
  text-align: center;
}

/* ─────────── Experience Section ─────────── */
.experience-section {
  width: 100%;
  padding: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(42px);
  border-radius: 10px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.experience-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.experience-inner .col h3 {
  font-size: 25px;
  color: #292423;
  font-weight: 700;
  margin-bottom: 5px;
}

.experience-inner .col p {
  font-size: 16px;
  color: #292423;
  font-weight: 300;
  margin: 0;
}

/* ─────────── Footer ─────────── */
footer {
  text-align: center;
  margin-top: 12;
  margin-bottom: 15px;
}

/* ─────────── Page Présentation – 3 Box Layout ─────────── */
.main-content-wrapper.three-box {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 30px 0;
  flex-wrap: wrap;
  align-items: stretch;
}

.section.formation {
  flex: 1 1 55%;
  min-height: auto;
}

.right-column {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.right-column .section {
  flex: 1;
  min-height: auto;
}

.section {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.section h2 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #292423;
}

.section p,
.section ul {
  font-size: 16px;
  line-height: 1.6;
  color: #292423;
}

.section ul {
  padding-left: 20px;
}

.aboutme {
  margin-top: 50px;
  margin-left: 38px;
  font-size: 40px;
}

/* ─────────── Call-to-Action Email ─────────── */
.cta-email {
  margin-top: 10px;
  text-align: center;
}

.cta-email p {
  font-size: 20px;
  font-weight: 500;
  color: #292423;
  display: inline-block;
  padding: 15px 25px;
  border-radius: 30px;
}

/* ─────────── Toggle Bar (Mobile) ─────────── */
.toggle-bar {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  padding-top: 5px;
  cursor: pointer;
}

.toggle-bar span {
  display: block;
  width: 100%;
  height: 3px;
  background: #292423;
  border-radius: 10px;
  margin-bottom: 4px;
}
@media (max-width: 768px) {
  header {
    padding-top: 15px;
  }

  .container {
    padding: 0 20px;
  }

  .main-content-wrapper {
    margin-top: 50px;
    flex-direction: column-reverse;
  }

  .portfolio-main {
    height: auto;
  }

  .col-left {
    margin-top: 50px;
  }

  .col-left span {
    font-size: 16px;
  }

  .col-left h1 {
    font-size: 30px;
  }

  .col-left p {
    width: 100%;
  }

  a.btn-main span img {
    margin-bottom: 4px;
  }

  .experience-section {
    margin-top: 50px;
    padding: 0;
    background: transparent;
  }

  .experience-inner {
    flex-direction: column;
    text-align: center;
  }

  .experience-inner .col {
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(42px);
    border-radius: 10px;
    margin-bottom: 25px;
  }

  .main-content-wrapper.three-box {
    flex-direction: column;
  }

  .section.formation,
  .right-column,
  .right-column .section {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .container {
    padding: 0 60px;
  }
}

@media (min-width: 1200px) {
  .toggle-bar {
    display: none;
  }

  .navigation-bar {
    display: block !important;
  }
}

@media (max-width: 1200px) {
  .navigation-bar {
    display: none;
    position: absolute;
    top: 79px;
    left: 0;
    right: 0;
    width: 90%;
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(42px);
    border-radius: 10px;
    text-align: center;
    z-index: 2;
  }

  .navigation-bar ul {
    padding: 10px 0 20px;
  }

  .navigation-bar ul li {
    padding: 10px 30px;
    display: block;
    margin: 0;
  }

  .navigation-bar ul li.hire-btn a {
    background: #292423;
    color: #fff;
  }
}
