/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
 Version: 1.0
 Description: Thème enfant de Hello Elementor
*/

@import url("https://fonts.googleapis.com/css2?family=Lilita+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;600;700;800&display=swap");

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat Alternates", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1 {
  font-family: "Lilita One", "AdobeClean-Bold";
  color: #333333;
  margin: 0 400px 50px 400px !important;
}
h2,
h3 {
  font-family: "Lilita One", "AdobeClean-Bold";
  color: white;
}
h2 {
  font-size: 80px;
}
p {
  font-family: "Montserrat Alternates", sans-serif;
}

a {
  text-decoration: none;
}

/* --- Header --- */
.mon-header {
  position: relative;
  padding: 100px 201px 200px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  background-image: url(/wp-content/themes/hello-elementor-child/assets/images/navbar.png);
  background-size: cover;
  background-position: center;
}

.mon-header .nav-links {
  display: flex;
  list-style: none;
  gap: 50px;
  margin: 0 0;
  padding: 0;
  color: white;
  width: 550px;
  justify-content: flex-end;
}
#logo {
  margin-right: 30%;
  width: 400px;
  height: 100px;
}
.nav-links a {
  color: white;
  font-size: 24px;
  position: relative; /* indispensable */
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger : caché sur desktop, activé en media query mobile */
.menu-toggle-checkbox {
  display: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  cursor: pointer;
  position: absolute;
  top: 40px;
  right: 24px;
  z-index: 30;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
/* petite animation croix quand ouvert */
#menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
#menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(2) {
  opacity: 0;
}
#menu-toggle-checkbox:checked ~ .menu-toggle span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* --- Sections homepage --- */

#accueil {
  margin: 0 200px 0 200px;
  display: flex;
  justify-content: flex-start;
  gap: 50px;
  align-items: center;
}
.bulle {
  position: relative;
  font-family: "Lilita One", "AdobeClean-Bold";
  display: flex;
  background: #6ec6e0;
  border-radius: 200px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  height: 400px;
  width: 400px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bulle span {
  display: block;
  font-size: 50px;
  font-weight: 700;
  color: #fdfefe;
  min-width: 140px;
  text-align: center;
}
#accueil p {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 24px;
}
#projets {
  background-image: url(/wp-content/themes/hello-elementor-child/assets/images/Projects.png);
  background-size: cover;
  background-position: center;
  height: 600px;
}

.projets-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0 200px 0 200px;
  padding-top: 50px;
}
.projets-card svg {
  width: min(50vw, 850px);
  max-width: 100%;
  display: block;
  margin: 3%;
  margin-bottom: 0;
  margin-top: 0;
}

.btn-achievements {
  background-color: #7fc8a9;
  padding: 20px 30px;
  font-family: "Lilita One", "AdobeClean-Bold";
  font-size: 30px;
  color: white;
  border-radius: 50px;
  border-color: white;
  border-style: solid;
  border-width: 4px;
  width: 300px;
  text-align: center;
  margin: -62px 200px;
}

#aboutme {
  background-image: url(/wp-content/themes/hello-elementor-child/assets/images/Aboutmpe.png);
  background-repeat: no-repeat;
  margin-top: -290px;
  height: 910px;
}
#aboutme .container {
  width: 40%;
  padding: 250px 0 180px 0;
  margin-left: 200px;
}
#aboutme p {
  color: white;
  font-size: 20px;
  margin-bottom: 70px;
}
.btn-aboutme {
  background-color: #7fc8a9;
  padding: 20px 30px;
  font-family: "Lilita One", "AdobeClean-Bold" !important;
  font-size: 30px;
  color: white;
  border-radius: 50px;
  border-color: white;
  border-style: solid;
  border-width: 4px;
  font-weight: normal !important;
}
.btn-aboutme:hover {
  background-color: #6ec6e0; /* orange au survol */
  transform: scale(1.05);
}

#contact {
  background-image: url(/wp-content/themes/hello-elementor-child/assets/images/contact.png);
  background-repeat: no-repeat;
  background-size: cover;
  height: 500px;
}
#contact .container {
  padding-top: 110px;
  margin-left: 200px;
}
#contact img {
  width: 67px;
}
#contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#contact a {
  color: white;
  text-decoration: none;
  font-family: "Montserrat Alternates";
  font-weight: normal !important;
  font-size: 24px;
  display: flex;
  align-items: center;
}
#contact a:hover,
#contact a:focus {
  color: inherit;
  text-decoration: none;
}

/* --- Footer --- */
.mon-footer {
  padding: 30px 40px;
  text-align: center;
  background-color: #1a1a1a;
  color: white;
}

.e-con > .e-con-inner {
  margin: 0;
}
.elementor-kit-29 a {
  font-family: "lilita One", sans-serif;
  font-weight: 400;
}
/* ----- Overlay lightbox ----- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 55, 51, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 88vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.85);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--menthe);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.lightbox-close:hover {
  background: var(--fraise);
  transform: scale(1.05);
}

.lightbox-close:focus-visible {
  outline: 3px solid var(--mangue);
  outline-offset: 3px;
}
.lightbox-img img {
  cursor: zoom-in;
  transition: filter 0.2s ease;
}
/* .lightbox-img img {
  cursor: zoom-in;
  touch-action: manipulation;
  transition: filter 0.2s ease;
} */
/* .lightbox-img {
  -webkit-user-drag: none;
  user-select: none;
} */

@media (hover: hover) and (pointer: fine) {
  .lightbox-img img:hover {
    filter: brightness(0.92);
  }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1600px) {
  .projets-card {
    margin: 0;
  }
}

/* ----------------------------------------
   Tablette large (≤ 1200px)
---------------------------------------- */
@media (max-width: 1200px) {
  #accueil,
  .projets-card,
  #aboutme .container,
  #contact .container {
    margin-left: 80px;
    margin-right: 80px;
  }

  .btn-achievements {
    margin: -62px 80px;
  }
}

/* ----------------------------------------
   Tablette (≤ 1024px)
---------------------------------------- */
@media (max-width: 1024px) {
  h2 {
    font-size: 56px;
  }

  /* Header */
  .mon-header {
    padding: 65px 50px;
  }
  #logo {
    width: 280px;
    height: 70px;
    margin-right: 0;
  }
  .mon-header .nav-links {
    gap: 30px;
    width: auto;
  }
  .nav-links a {
    font-size: 18px;
  }

  /* Accueil */
  #accueil {
    margin: 0 50px;
    gap: 30px;
  }
  .bulle {
    width: 260px;
    height: 260px;
  }
  .bulle span {
    font-size: 32px;
    min-width: auto;
  }
  #accueil p {
    font-size: 20px;
  }

  /* Projets */
  #projets {
    height: 500px;
    padding-bottom: 60px;
  }
  .projets-card {
    margin: 0 50px;
    padding-top: 100px;
  }
  .projets-card svg {
    height: 150px;
  }
  .btn-achievements {
    position: relative;
  }
  .elementor-kit-29 a {
    font-size: 20px;
    width: 200px;
  }

  /* About me */
  #aboutme {
    height: auto;
    padding-bottom: 60px;
  }
  #aboutme .container {
    width: 60%;
    margin-left: 50px;
    padding: 150px 0 60px;
  }

  /* Contact */
  #contact {
    height: auto;
    padding-bottom: 60px;
  }
  #contact .container {
    margin-left: 50px;
    padding-top: 60px;
  }
  .elementor .e-18c1c2e-6e47f85 {
    display: contents !important;
  }
  .elementor .e-flexbox-base {
    display: contents !important;
  }
}

/* ----------------------------------------
   Mobile (≤ 768px)
---------------------------------------- */
@media (max-width: 768px) {
  h1 {
    margin: 30px auto !important;
    text-align: center;
  }
  h2 {
    font-size: 40px;
  }

  /* Header -> menu hamburger */
  .mon-header {
    padding: 50px;
    justify-content: flex-start;
  }
  #logo {
    width: 170px;
    height: 46px;
  }
  .menu-toggle {
    display: flex;
  }
  .mon-header .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    transition: max-height 0.4s ease;
    z-index: 20;
  }
  #menu-toggle-checkbox:checked ~ nav .nav-links {
    max-height: 300px;
  }
  .nav-links li {
    padding: 16px 24px;
    width: 100%;
  }
  .nav-links a {
    font-size: 18px;
  }

  /* Accueil */
  #accueil {
    text-align: center;
    margin: 0 24px;
    gap: 24px;
  }
  .bulle {
    width: 200px;
    height: 200px;
  }
  .bulle span {
    font-size: 26px;
  }
  #accueil p {
    font-size: 18px;
  }

  /* Projets */
  .projets-card {
    margin: 0 24px;
    align-items: flex-end;
  }
  .btn-achievements {
    width: 100%;
    max-width: 260px;
  }
  .elementor-kit-29 a {
    margin-top: 5px;
  }

  /* About me */
  #aboutme .container {
    width: 90%;
    margin: 0 auto;
    padding: 200px 0 40px;
  }
  #aboutme p {
    font-size: 18px;
    margin-bottom: 40px;
  }

  /* Contact */
  #contact .container {
    margin: 0 auto;
    padding: 60px 24px 0;
    text-align: center;
  }
  #contact ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  #contact a {
    justify-content: center;
  }
}

/* ----------------------------------------
   Petit mobile (≤ 480px)
---------------------------------------- */
@media (max-width: 480px) {
  h2 {
    font-size: 32px;
    text-align: center;
    margin: auto 0 !important;
  }
  .page-content {
    margin: 0 40px;
  }

  #logo {
    width: 140px;
    height: 38px;
  }
  .mon-header {
    background-position: left;
  }
  #accueil {
    margin: 0 16px;
  }
  .bulle {
    width: 160px;
    height: 160px;
  }
  .bulle span {
    font-size: 20px;
  }
  #accueil p {
    font-size: 16px;
  }
  #projets {
    margin-top: -30px;
    height: 600px;
  }
  .projets-card {
    margin: 0 16px;
  }
  .projets-card svg {
    display: none;
  }
  .btn-achievements {
    font-size: 22px;
    padding: 14px 20px;
    top: 500px;
    position: absolute;
  }
  #aboutme {
    background-size: cover;
  }
  #aboutme .container {
    padding-top: 150px;
  }
  #aboutme p {
    font-size: 16px;
  }

  .btn-aboutme {
    font-size: 22px;
    padding: 14px 20px;
  }

  #contact .container {
    padding-top: 80px;
  }
  #contact a {
    font-size: 18px;
  }
  #contact img {
    width: 48px;
  }

  .mon-footer p {
    font-size: 14px;
  }
  .elementor-472 .elementor-element.elementor-element-6602316 {
    margin: 0px !important;
  }
  .elementor-264 .elementor-element.elementor-element-e109881 {
    display: contents;
  }
  .elementor-264 .elementor-element.elementor-element-9a271b9 {
    padding: 0px !important;
  }
  .elementor-widget-image-box .elementor-image-box-wrapper {
    text-align: center !important;
  }
  .elementor-264 .elementor-element.elementor-element-0a73df9 {
    padding: 0px !important;
  }
  .elementor-12 .elementor-element.elementor-element-ff3ac03.e-con {
    flex-grow: 0;
    margin: 30px 0;
    flex-shrink: 0;
  }
  .e-con,
  .e-con > .e-con-inner {
    display: contents;
  }
  .elementor .elementor-12 {
    text-align: center;
  }
  .elementor-12 .elementor-element.elementor-element-039d958 {
    width: 100% !important;
  }
  .justified-gallery > a,
  .justified-gallery > div,
  .justified-gallery > figure {
    height: auto !important;
    position: unset !important;
  }
  .npgallery_active5795d43.justified-gallery {
    height: auto !important;
  }
  .npgallery_active7fc6e3b.justified-gallery {
    height: auto !important;
  }
  #npgallery5232323 {
    height: auto !important;
  }
  .e-con.e-con > .e-con-inner > .elementor-widget,
  .elementor.elementor .e-con > .elementor-widget {
    text-align: center;
  }
  .elementor-264 .elementor-element.elementor-element-b402039 {
    margin: 30px 0 !important;
  }
  .elementor elementor-476 {
    text-align: center;
  }
  .htmega-justify-single-image.jg-entry.entry-visible {
    width: auto !important;
  }
  .elementor-heading-title {
    margin: 10px !important;
  }
}
