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

body {
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000;
    overflow-x: hidden;
    transition: background-color 0.6s ease;
}

body.dark-bg {
    background-color: #222831;
}

/* --- Sticky Nav & Footer --- */
.main-header {
    position: fixed;
    top: 0; width: 100%; height: 50px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 50px; border-bottom: 0.6px solid #222831;
    z-index: 1000;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
}
.logo-text { color: #000;
font-family: Raleway;
font-size: 12px;
font-style: normal;
font-weight: 300;
line-height: normal;
letter-spacing: 12px;}

nav ul { display: flex; list-style: none; gap: 50px; }
nav a { text-decoration: none; color: #000; font-size: 16px;
letter-spacing: 1.5px;
font-weight: 170; }

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.main-header.dark-mode .nav-toggle span {
    background-color: #D8D7CC;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main-footer {
    position: fixed;
    bottom: 0; 
color: #222831;
font-family: Raleway;
font-size: 10px;
font-style: normal;
font-weight: 400;
line-height: normal;
letter-spacing: 4px;
    width: 100%; 
    min-height: 50px;
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    padding: 10px 0;
    transition: color 0.3s ease;
}

/* Dark mode for header/footer when in dark sections */
.main-header.dark-mode {
    border-bottom-color: #D8D7CC;
}

.main-header.dark-mode .logo-text,
.main-header.dark-mode nav a {
    color: #D8D7CC;
}

.main-footer.dark-mode {
    color: #D8D7CC;
}

.main-footer.dark-mode .footer-decoration svg line,
.main-footer.dark-mode .footer-decoration svg rect,
.main-footer.dark-mode .footer-decoration svg circle {
    stroke: #D8D7CC;
}

.footer-decoration {
    width: 100%;
    max-width: 1440px;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.footer-decoration svg {
    width: 100%;
    height: auto;
}

/* --- Loading Overlay --- */
.loading-overlay {
    position: fixed; inset: 0; background: #222831;
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; transition: opacity 0.6s ease;
}
.loading-content { text-align: center; color: white; width: 80%; }

.loading-title { 
    position: relative;
    left: -160px;
    top: -100px;
width: 1700px;
color: #D8D7CC;
font-family: Raleway;
font-size: 284px;
font-style: normal;
font-weight: 100;
line-height: normal;letter-spacing: 15px; }

.loading-name { 
    position: relative;
    left: -230px;
    top: -140px;
    width: 1500px;
height: 94px;
color: #D8D7CC;
font-family: Raleway;
font-size: 85px;
font-style: normal;
font-weight: 100;
line-height: normal;
 }

 .loading-subtitle { 
position: relative;
left: 900px;
top: -30px;
width: 580px;
height: 53px;
color: #D8D7CC;
font-family: Raleway;
font-size: 41px;
font-style: normal;
font-weight: 100;
line-height: normal;
}

.progress-text{
    position: relative;
    top: 140px;
    left: 720px;
    color: #D8D7CC;
font-family: Raleway;
font-size: 58px;
font-style: normal;
font-weight: 300;
line-height: normal;
}

.progress-bar-bg {
    position: relative;
    top: 130px;
    left: 578px;
     width: 400px; 
     height: 2px; 
     background: #d8d7cc62;
      margin: 20px auto; }

.progress-bar-fill { 
    width: 0%;
     height: 100%; 
     background: #fff; 
     transition: width 0.1s; }

/* --- Hero Section --- */
.job-title {
display: flex; 
justify-content: center; 
align-items: center;
    position: relative;
    top: 100px; 
     color: var(--color-deep-dark-blue, #222831);
font-family: Raleway;
font-size: 38px;
font-style: normal;
font-weight: 100;
line-height: normal;
letter-spacing: 19px;
}
 

.hero-section {
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding-top: 70px; /* offset for sticky header */
}
.hero-container {
    display: grid; grid-template-columns: 1fr 1fr;
    max-width: 1200px; width: 100%; gap: 50px;
}

.diamond-shape {
    position: relative;
    top: -125px;
    left: 270px;
    width: 30px; height: 30px; 
   margin-bottom: 20px;

}
.hero-left { 
    position: relative;
    top: -25px;
    left: -160px;
    display: flex;
     flex-direction: column;
      justify-content: center;
     }

.hero-title {
  position: relative;
  color: #000;
  width: 690px;
  padding-top: 25px;
  padding-bottom: 25px;
  margin-bottom: 60px;
  font-family: Raleway;
  font-size: 103px;
  font-style: normal;
  font-weight: 100;
  line-height: 76px;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 306px;
  height: 0.6px;
  background-color: #000;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 306px;
  height: 0.6px;
  background-color: #000;
}

.bold-text { color: #000;
font-family: Raleway;
font-size: 90px;
font-style: normal;
font-weight: 500;
line-height: 69px; }

.hero-description { color: #000;
text-align: justify;
font-family: Raleway;
font-size: 20px;
font-style: normal;
width: 672px;
font-weight: 300;
line-height: 35px;
letter-spacing: 1.4px; }

.hero-btns { display: flex; gap: 10px; align-items: center; }
.btn-learn { padding: 12px 30px; border: 1px solid #000; background: none; cursor: pointer; }

/* --- Animated Geometric Shape --- */
.shape-morph-container {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shape-frame {
    position: absolute;
    top: 39%;
    left: 55%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.shape-frame svg {
    max-width: 100%;
    height: auto;
}

.shape-frame.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
.corner-button {
  position: relative;
  top: -150px;
  left: 747px;
  display: inline-block;
  padding: 6px 45px;
  background-color: #22283107;
  color: #111;
  text-decoration: none;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 150;
  letter-spacing: 2px;
  transition: background 0.4s ease, color 0.4s ease;
}

.corner-button:hover {
  background: linear-gradient(90deg, #2b3440, #1f2731);
  color: #e5e5e5;
}

.corner-button::before,
.corner-button::after,
.corner-button__text::before,
.corner-button__text::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 5px;
  border: 1px solid #111;
  transition: border-color 0.4s ease;
}

.corner-button::before {
  top: -7px;
  left: -7px;
  border-right: none;
  border-bottom: none;
}

.corner-button::after {
  top: -7px;
  right: -7px;
  border-left: none;
  border-bottom: none;
}

.corner-button__text::before {
  bottom: -7px;
  left: -7px;
  border-right: none;
  border-top: none;
}

.corner-button__text::after {
  bottom: -7px;
  right: -7px;
  border-left: none;
  border-top: none;
}

.corner-button:hover::before,
.corner-button:hover::after,
.corner-button:hover .corner-button__text::before,
.corner-button:hover .corner-button__text::after {
  border-color: #1f2731;
}

.corner-button__plus {
  margin-left: 20px;
}



/* About Section */
.about-section {
    min-height: 100vh;
    padding: 40px 80px;
    padding-bottom: 40px;
    background-color: #1a1d24;
    color: #D8D7CC;
}

.about-container {
  position: relative;
  left: 20px;
  padding-left: 70px;
  background: var(--color-deep-dark-blue, #222831);
box-shadow: 0 0 14px 9px rgba(0, 0, 0, 0.25);
    display: flex;
    gap: 100px;
    width: 1610px;
    height: 1010px;
    margin: 0 auto;
    align-items: flex-start;
}

.about-name {
  position: relative;
  top: 40px;
  left: 80px;
    display: flex;
    flex-direction: column;
    font-size: 93px;
    line-height: 1.1;
    font-weight: 100;
    letter-spacing: 8px;
    margin-bottom: 60px;
}

.about-name .thin { font-weight: 100; opacity: 0.9; }
.about-name .bold {
  position: relative;
  left: 125px; 
  font-weight: 100;
   margin-left: 80px; 
  } 

.thin-bottom { 
  position: relative;
  left: 25px;
  font-weight: 100; 
  margin-left: 80px; }

.about-content {
    max-width: 500px;
}

.about-text {
  position: relative;
  left: 77px;
  top: 57px;
  color: #D8D7CC;
text-align: justify;
font-family: Raleway;
font-size: 22px;
font-style: normal;
font-weight: 100;
line-height: normal;
width: 620px;
height: 221px;
}

.about-left-btn {
    position: relative;
    top:100px;
    left: 88px;
    padding: 6px 45px;
    background-color: #d8d7cc1c;
    color: #D8D7CC;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 150;
    letter-spacing: 2px;
    transition: background 0.4s ease, color 0.4s ease;
}

.about-left-btn:hover {
    background: #D8D7CC;
    color: #222831;
}

.about-left-btn::before,
.about-left-btn::after,
.about-left-btn__text::before,
.about-left-btn__text::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 5px;
    border: 1px solid #D8D7CC;
    transition: border-color 0.4s ease;
}

.about-left-btn::before {
    top: -7px;
    left: -7px;
    border-right: none;
    border-bottom: none;
}

.about-left-btn::after {
    top: -7px;
    right: -7px;
    border-left: none;
    border-bottom: none;
}

.about-left-btn__text::before {
    bottom: -7px;
    left: -7px;
    border-right: none;
    border-top: none;
}

.about-left-btn__text::after {
    bottom: -7px;
    right: -7px;
    border-left: none;
    border-top: none;
}

.about-left-btn:hover::before,
.about-left-btn:hover::after,
.about-left-btn:hover .about-left-btn__text::before,
.about-left-btn:hover .about-left-btn__text::after {
    border-color: #D8D7CC;
}

.about-right {
  position: relative;
  left: -180px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}


.header-line-bottom {
  position: relative;
  left: -420px;
  top: 30px;
    width: 1px;
    height: 70px;
    background-color: #D8D7CC;
}

.header-line-top {
  position: relative;
  left: -420px;
  top: 5px;
    width: 1px;
    height: 70px;
    background-color: #D8D7CC;
}

.header-diamond {
  position: relative;
  top: 18px;
  left: -420px;
    width: 26px;
    height: 26px;
    background-color: transparent;
    border: 1px solid #D8D7CC;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.diamond-circle {
    width: 12px;
    height: 12px;
    background-color: #D8D7CC;
    border-radius: 50%;
}

.decoration-header {
  position: relative;
  top: 32px;
  left: -50px;
  padding: 0px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.decoration-header .line { width: 49px; height: 1px; background:#D8D7CC; }
.decoration-header .label { 
  width: 250px;
height: 55px;
color: var(--color-pearl, #D8D7CC);
font-family: Raleway;
font-size: 60px;
font-style: normal;
font-weight: 100;
line-height: normal; }
.label {
  position: relative;
  top: -5px;
}

.image-container {
    position: relative;
    top: -50px;
    width: 596px;
    height: 620px;
    overflow: visible;
}

.corner-box {
    position: absolute;
    width: 195px;
    height: 166px;
    background-color: #191D24;
    transition: background-color 0.4s ease;
    z-index: 0;
}

.corner-box.top-right {
    top: -66px;
    right: -57px;
}

.corner-box.bottom-left {
    bottom: -67px;
    left: -66px;
}

.image-container:hover .corner-box {
    background-color: #d8d7cc8b;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.grayscale-image {
    border-radius: 40px;
    z-index: 1;
    opacity: 1;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.profile-img-bw {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.colored-image {
    border-radius: 0;
    z-index: 2;
    opacity: 0;
    background-color: transparent;
}

.profile-img-color {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-container:hover .colored-image {
    opacity: 1;
}

.image-buttons {
    position: absolute;
    bottom: -57px;
    left: 60%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 3;
}

.img-btn {
    position: relative;
    display: inline-block;
    padding: 6px 45px;
    background-color: #d8d7cc1c;
    color: #D8D7CC;
    border: none;
    font-family:"Raleway", sans-serif;
    font-size: 18px;
    font-weight: 150;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease;
    white-space: nowrap;
}

.img-btn:hover {
    background: #D8D7CC;
    color: #222831;
}

.img-btn::before,
.img-btn::after,
.img-btn__text::before,
.img-btn__text::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 5px;
    border: 1px solid #D8D7CC;
    transition: border-color 0.4s ease;
}

.img-btn::before {
    top: -7px;
    left: -7px;
    border-right: none;
    border-bottom: none;
}

.img-btn::after {
    top: -7px;
    right: -7px;
    border-left: none;
    border-bottom: none;
}

.img-btn__text::before {
    bottom: -7px;
    left: -7px;
    border-right: none;
    border-top: none;
}

.img-btn__text::after {
    bottom: -7px;
    right: -7px;
    border-left: none;
    border-top: none;
}

.img-btn:hover::before,
.img-btn:hover::after,
.img-btn:hover .img-btn__text::before,
.img-btn:hover .img-btn__text::after {
    border-color: #D8D7CC;
}

/* --- Projects Section --- */
.bg-circle {
    position: absolute;
    width: 474px;
    height: 474px;
    border-radius: 50%;
    background: #181d239f;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.circle-left {
    left: -237px;
}

.circle-right {
    right: -237px;
}

.corner-decoration {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-left {
    top: 40px;
    left: 0px;
}

.bottom-right {
    bottom: 0px;
    right: 0px;
    align-items: flex-end;
}

.deco-line-long {
    opacity: 0.58;
    background: #D9D9D9;
    width: 350px;
    height: 9px;
}

.deco-line-short {
  width: 274px;
height: 9px;
  opacity: 0.17;
background: #D9D9D9;
}
.projects-section {
    position: relative;
    background-color: #222831;
    min-height: 110vh;
    padding: 70px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.projects-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.projects-header .line { width: 50px; height: 1px; background: #D8D7CC; }
.projects-title {
    color: #D8D7CC;
    font-family: 'Raleway', sans-serif;
    font-size: 80px;
    font-weight: 100;
    letter-spacing: 10px;
}

.projects-carousel-container {
    position: relative;
    z-index: 2;
    background: #222831;
    box-shadow: 0 0 14px 9px rgba(0, 0, 0, 0.25);
    width: 1480px;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projects-wrapper {
    display: flex;
    gap: -80px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.project-card {
    width: 232px;
    height: 628px;
    border-radius: 128px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.project-card:not(:first-child) {
    margin-left: -50px;
}

.project-card.active, .project-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* --- Toggle / Slider Line --- */
.carousel-controls {
    margin-top: 50px;
    margin-bottom: 60px;
    width: 500px;
}

.slider-track {
    width: 100%;
    height: 1px;
    background: rgba(216, 215, 204, 0.3);
    position: relative;
}

.slider-thumb {
    width: 80px;
    height: 8px;
    background: #D8D7CC;
    border-radius: 10px;
    position: absolute;
    top: -4px;
    left: 0;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Footer Button --- */
.all-projects-btn {
    position: relative;
    padding: 6px 45px;
    background-color: #d8d7cc1c;
    color: #D8D7CC;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 150;
    letter-spacing: 2px;
    transition: background 0.4s ease, color 0.4s ease;
    display: inline-block;
}

.all-projects-btn:hover {
    background: #D8D7CC;
    color: #222831;
}

.all-projects-btn::before,
.all-projects-btn::after,
.all-projects-btn .btn-corners::before,
.all-projects-btn .btn-corners::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 5px;
    border: 1px solid #D8D7CC;
    transition: border-color 0.4s ease;
}

.all-projects-btn::before {
    top: -7px;
    left: -7px;
    border-right: none;
    border-bottom: none;
}

.all-projects-btn::after {
    top: -7px;
    right: -7px;
    border-left: none;
    border-bottom: none;
}

.all-projects-btn .btn-corners::before {
    bottom: -7px;
    left: -7px;
    border-right: none;
    border-top: none;
}

.all-projects-btn .btn-corners::after {
    bottom: -7px;
    right: -7px;
    border-left: none;
    border-top: none;
}

.all-projects-btn:hover::before,
.all-projects-btn:hover::after,
.all-projects-btn:hover .btn-corners::before,
.all-projects-btn:hover .btn-corners::after {
    border-color: #D8D7CC;
}

.discovery-section {
    position: relative;
    background-color: #222831;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.diamond-svg-container {
    position: absolute;
    width: 1800px;
    height: 920px;
    top: 59%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
}

.diamond-svg-container svg {
    width: 100%;
    height: 100%;
}

.big-losange {
    width: 500px;
    height: 500px;
    background: #222831;
    transform: rotate(-45deg);
    box-shadow: 0 0 14px 9px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

.losange-content {
    transform: rotate(45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.button-losange {
    width: 120px;
    height: 120px;
    border: 0.7px solid #D8D7CC;
    transform: rotate(-45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background 0.1s ease;
    margin-bottom: 40px;
}

.button-losange:hover {
    background: #D8D7CC;
}

.button-losange span {
    transform: rotate(45deg);
    color: #D8D7CC;
    font-size: 90px;
    font-weight: 90;
}
.button-losange span:hover {
    color: #222831;
}

.divider-line {
    width: 356px;
    margin: 20px 0;
}

.losange-text {
    color: #FFF;
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 300;
    width: 317px;
    line-height: 1.5;
}

.deco-cluster {
    position: absolute;
    z-index: 2;
}

.deco-top-left {
    top: 15%;
    left: 20%;
}

.deco-bottom-right {
    bottom: 15%;
    right: 20%;
}

.contact-section {
    position: relative;
    background-color: #181D23;
    min-height: 105vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.contact-svg-frame {
    position: absolute;
    width: 1440px;
    height: 627px;
    top: 47.3%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.contact-circle-container {
    width: 971px;
    height: 973px;
    border-radius: 973px;
    background: #222831;
    box-shadow: 0 0 14px 9px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    padding: 60px;
}

.contact-title {
    position: relative;
    top: -70px;
width: 473px;
 color: var(--color-pearl, #D8D7CC);
font-family: Raleway;
font-size: 70px;
font-style: normal;
font-weight: 100;
line-height: normal;
}
.bold-contact{
position: relative;
top: 0px;
 left: 180px;
width: 473px;
 color: var(--color-pearl, #D8D7CC);
font-family: Raleway;
font-size: 70px;
font-style: normal;
font-weight: 100;
line-height: normal;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 750px;
    align-items: center;
}

.form-row {
    display: flex;
    gap: 22px;
}

.input-small, .input-full, .input-textarea {
    border: none;
    border-bottom: 0.7px solid #D8D7CC;
    background: rgba(216, 215, 204, 0.10);
    color: #D8D7CC;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
   letter-spacing: 1.6px;
    padding: 15px;
    outline: none;
}

.input-small { width: 364px; height: 53px; }
.input-full { width: 750px; height: 53px; }

.input-textarea {
    width: 750px;
    height: 150px;
    resize: none;
}

.envoyer-btn {
    margin-top: 40px;
    position: relative;
    padding: 6px 45px;
    background-color: #d8d7cc1c;
    color: #D8D7CC;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 150;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease;
    display: inline-block;
}

.envoyer-btn:hover {
    background: #D8D7CC;
    color: #222831;
}

.envoyer-btn::before,
.envoyer-btn::after,
.envoyer-btn .btn-corners::before,
.envoyer-btn .btn-corners::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 5px;
    border: 1px solid #D8D7CC;
    transition: border-color 0.4s ease;
}

.envoyer-btn::before {
    top: -7px;
    left: -7px;
    border-right: none;
    border-bottom: none;
}

.envoyer-btn::after {
    top: -7px;
    right: -7px;
    border-left: none;
    border-bottom: none;
}

.envoyer-btn .btn-corners::before {
    bottom: -7px;
    left: -7px;
    border-right: none;
    border-top: none;
}

.envoyer-btn .btn-corners::after {
    bottom: -7px;
    right: -7px;
    border-left: none;
    border-top: none;
}

.envoyer-btn:hover::before,
.envoyer-btn:hover::after,
.envoyer-btn:hover .btn-corners::before,
.envoyer-btn:hover .btn-corners::after {
    border-color: #D8D7CC;
}

.contact-bottom-decoration {
    width: 100%;
    background-color: #181D23;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    overflow: hidden;
}

.contact-bottom-decoration svg {
    max-width: 1600px;
    width: 100%;
    height: auto;
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }


/* ============================================
   RESPONSIVE — iPad Pro / Large Tablet (1024px–1279px)
   ============================================ */
@media screen and (max-width: 1279px) and (min-width: 1024px) {

    /* Header */
    .main-header { padding: 0 30px; }
    .logo-text { letter-spacing: 6px; font-size: 10px; }
    nav ul { gap: 30px; }

    /* Loading */
    .loading-overlay { overflow: hidden; }
    .loading-title { font-size: 140px; left: -60px; top: -60px; width: 100%; }
    .loading-name { font-size: 46px; left: -80px; top: -80px; width: 100%; }
    .loading-subtitle { font-size: 24px; left: 300px; top: -20px; width: 340px; }
    .progress-text { font-size: 36px; left: 350px; top: 100px; }
    .progress-bar-bg { left: 260px; top: 90px; width: 300px; }

    /* Hero */
    .job-title { font-size: 22px; letter-spacing: 10px; top: 70px; }
    .hero-section { padding-top: 120px; height: auto; min-height: 100vh; }
    .hero-container {
        grid-template-columns: 1fr 1fr;
        max-width: 960px;
        gap: 20px;
        padding: 0 20px;
    }
    .hero-left { left: -60px; top: -10px; }
    .hero-title { font-size: 72px; width: 480px; line-height: 60px; margin-bottom: 36px; }
    .bold-text { font-size: 66px; line-height: 56px; }
    .hero-description { font-size: 15px; width: 460px; line-height: 26px; }
    .diamond-shape { left: 170px; top: -100px; }
    .shape-morph-container { width: 420px; height: 420px; }
    .corner-button { left: 460px; top: -110px; font-size: 15px; padding: 6px 30px; }

    /* About */
    .about-section { padding: 30px 20px; }
    .about-container {
        width: 100%;
        max-width: 980px;
        height: auto;
        left: 0;
        padding: 40px 30px;
        gap: 40px;
        flex-wrap: wrap;
    }
    .about-name { font-size: 58px; left: 20px; top: 20px; letter-spacing: 4px; margin-bottom: 20px; }
    .about-name .bold { left: 60px; margin-left: 40px; }
    .thin-bottom { left: 10px; margin-left: 40px; }
    .about-text { font-size: 15px; left: 20px; top: 30px; width: 420px; height: auto; }
    .about-right { left: 0; align-items: center; }
    .image-container { width: 380px; height: 400px; top: 0; }
    .corner-box { width: 120px; height: 100px; }
    .corner-box.top-right { top: -40px; right: -30px; }
    .corner-box.bottom-left { bottom: -40px; left: -30px; }
    .decoration-header { left: 0; top: 20px; }
    .decoration-header .label { font-size: 40px; width: auto; }
    .header-line-top, .header-line-bottom { left: -200px; height: 50px; }
    .header-diamond { left: -200px; }
    .image-buttons { bottom: -46px; gap: 16px; }
   

    /* Projects */
    .projects-title { font-size: 56px; letter-spacing: 6px; }
    .projects-carousel-container { width: 95vw; max-width: 960px; height: 560px; }
    .project-card { width: 180px; height: 490px; border-radius: 90px; }
    .project-card:not(:first-child) { margin-left: -40px; }
    .carousel-controls { width: 360px; }
    .deco-line-long { width: 200px; }
    .deco-line-short { width: 160px; }

    /* Discovery */
    .big-losange { width: 380px; height: 380px; }
    .button-losange { width: 90px; height: 90px; margin-bottom: 28px; }
    .button-losange span { font-size: 68px; }
    .losange-text { font-size: 15px; width: 240px; }
    .divider-line { width: 260px; }
    .deco-cluster { display: none; }
    .diamond-svg-container { width: 100%; }

    /* Contact */
    .contact-circle-container { width: 740px; height: 740px; border-radius: 740px; padding: 40px; }
    .contact-title { font-size: 52px; width: 380px; top: -50px; }
    .bold-contact { font-size: 52px; left: 130px; width: 380px; }
    .contact-form { width: 580px; }
    .input-small { width: 279px; }
    .input-full, .input-textarea { width: 580px; }
}


/* ============================================
   RESPONSIVE — iPad / Tablet (768px–1023px)
   ============================================ */
@media screen and (max-width: 1023px) and (min-width: 768px) {

    /* Header */
    .main-header { padding: 0 24px; height: 56px; }
    .logo-text { display: none; }
    .nav-toggle { display: flex; }
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 24px 0;
        border-bottom: 1px solid #222831;
        gap: 0;
        text-align: center;
        z-index: 999;
    }
    nav ul li a {
        display: block;
        padding: 14px 0;
        font-size: 18px;
        letter-spacing: 2px;
    }
    nav.active ul { display: flex; }
    .main-header.dark-mode nav ul { background: #222831; border-color: #D8D7CC; }
    .main-header.dark-mode nav ul li a { color: #D8D7CC; }

    /* Loading */
    .loading-overlay { overflow: hidden; }
    .loading-content { width: 100%; padding: 0 40px; }
    .loading-title { font-size: 100px; left: 0; top: 0; width: 100%; letter-spacing: 8px; position: relative; }
    .loading-name { font-size: 34px; left: 0; top: 0; width: 100%; height: auto; }
    .loading-subtitle { font-size: 20px; left: 0; top: 10px; width: 100%; height: auto; }
    .progress-text { font-size: 28px; left: 0; top: 40px; }
    .progress-bar-bg { left: 0; top: 30px; width: 240px; margin: 20px auto; }

    /* Job title */
    .job-title { font-size: 20px; letter-spacing: 8px; top: 70px; }

    /* Hero — stacked layout */
    .hero-section { height: auto; min-height: 100vh; padding-top: 100px; padding-bottom: 10px; align-items: flex-start; }
    .hero-container {
        grid-template-columns: 1fr;
        padding: 0 40px;
        gap: 0;
        text-align: center;
        max-width: 100%;
    }
    .hero-left {
        left: 0; top: 0;
        align-items: center;
        width: 100%;
        order: 2;
    }
    .hero-right { order: 1; display: flex; justify-content: center; width: 100%; }
    .diamond-shape { left: 0; top: 0; margin: 0 auto 10px; }
    .hero-title { font-size: 64px; width: 100%; max-width: 520px; line-height: 56px; margin-bottom: 28px; }
    .bold-text { font-size: 58px; line-height: 50px; }
    .hero-description { font-size: 16px; width: 100%; max-width: 520px; line-height: 28px; text-align: center; }
    .shape-morph-container { width: 320px; height: 320px; }
    .corner-button {
        position: relative;
        left: 0; top: 0;
        display: block;
        width: fit-content;
        margin: 30px auto 0;
        font-size: 15px;
    }

    /* About */
    .about-section { padding: 60px 30px 80px; }
    .about-container {
        width: 100%;
        left: 0;
        flex-direction: column;
        height: auto;
        padding: 40px 30px 60px;
        gap: 50px;
        align-items: center;
    }
    .about-left { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .about-name {
        font-size: 52px;
        left: 0; top: 0;
        align-items: center;
        letter-spacing: 4px;
        margin-bottom: 10px;
        text-align: center;
    }
    .about-name .bold, .thin-bottom { left: 0; margin-left: 0; }
    .about-content { max-width: 100%; width: 100%; }
    .about-text { left: 0; top: 0; width: 100%; font-size: 16px; height: auto; text-align: center; }
    .about-right { left: 0; align-items: center; width: 100%; }
    .decoration-header { left: 0; top: 0; justify-content: center; margin-bottom: 20px; }
    .decoration-header .label { font-size: 44px; width: auto; }
    .header-line-top, .header-line-bottom, .header-diamond { display: none; }
    .about-header { display: none; }
    .image-container { width: 340px; height: 370px; top: 0; overflow: hidden; }
    .corner-box { width: 100px; height: 84px; }
    .corner-box.top-right { top: -30px; right: -24px; }
    .corner-box.bottom-left { bottom: -30px; left: -24px; }
    .image-buttons {
        position: relative;
        bottom: auto; left: auto;
        transform: none;
        justify-content: center;
        margin-top: 50px;
        gap: 20px;
    }


    /* Projects */
    .projects-section { padding: 60px 0; min-height: auto; }
    .projects-title { font-size: 50px; letter-spacing: 5px; }
    .projects-header { margin-bottom: 40px; }
    .projects-carousel-container {
        width: 95vw;
        max-width: 700px;
        height: 480px;
        overflow: hidden;
    }
    .projects-wrapper { gap: 0; }
    .project-card { width: 150px; height: 400px; border-radius: 75px; }
    .project-card:not(:first-child) { margin-left: -35px; }
    .carousel-controls { width: 280px; margin-top: 36px; margin-bottom: 40px; }
    .deco-line-long { width: 160px; }
    .deco-line-short { width: 120px; }
    .bg-circle { display: none; }

    /* Discovery */
    .discovery-section { min-height: 80vh; padding: 60px 20px; }
    .big-losange { width: 320px; height: 320px; }
    .button-losange { width: 80px; height: 80px; margin-bottom: 22px; }
    .button-losange span { font-size: 56px; }
    .losange-text { font-size: 14px; width: 210px; }
    .divider-line { width: 220px; }
    .deco-cluster { display: none; }
    .diamond-svg-container { display: none; }

    /* Contact */
    .contact-section { min-height: auto; padding: 60px 20px; }
    .contact-circle-container {
        width: 92vw;
        max-width: 660px;
        height: auto;
        border-radius: 40px;
        padding: 50px 30px;
    }
    .contact-title { font-size: 46px; width: 100%; top: 0; text-align: center; }
    .bold-contact { font-size: 46px; left: 0; width: 100%; text-align: center; position: relative; top: 0; }
    .contact-form { width: 100%; max-width: 560px; }
    .form-row { flex-direction: row; gap: 16px; }
    .input-small { width: calc(50% - 8px); }
    .input-full, .input-textarea { width: 100%; }
    .contact-svg-frame { display: none; }

    /* Footer */
    .main-footer { font-size: 9px; letter-spacing: 2px; padding: 8px 10px; text-align: center; }
}


/* ============================================
   RESPONSIVE — Mobile (max 767px)
   ============================================ */
@media screen and (max-width: 767px) {

    /* Header */
    .main-header { padding: 0 16px; height: 50px; }
    .logo-text { display: none; }
    .logo-icon { width: 32px; height: 32px; }
    .nav-toggle { display: flex; }
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 16px 0;
        border-bottom: 1px solid #222831;
        gap: 0;
        text-align: center;
        z-index: 999;
    }
    nav ul li a {
        display: block;
        padding: 14px 0;
        font-size: 17px;
        letter-spacing: 1.5px;
    }
    nav.active ul { display: flex; }
    .main-header.dark-mode nav ul { background: #222831; border-color: #D8D7CC; }
    .main-header.dark-mode nav ul li a { color: #D8D7CC; }

    /* Loading */
    .loading-overlay { overflow: hidden; }
    .loading-content {
        width: 100%;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .loading-title {
        font-size: 52px;
        width: 100%;
        left: 0; top: 0;
        letter-spacing: 6px;
        position: relative;
        text-align: center;
    }
    .loading-name {
        font-size: 20px;
        width: 100%;
        left: 0; top: 0;
        height: auto;
        text-align: center;
        position: relative;
    }
    .loading-subtitle {
        font-size: 14px;
        width: 100%;
        left: 0; top: 8px;
        height: auto;
        text-align: center;
        position: relative;
    }
    .progress-text {
        font-size: 22px;
        left: 0; top: 30px;
        position: relative;
        text-align: center;
    }
    .progress-bar-bg {
        width: 200px;
        left: 0; top: 20px;
        margin: 16px auto;
        position: relative;
    }

    /* Job title */
    .job-title {
        font-size: 14px;
        letter-spacing: 5px;
        top: 60px;
        padding: 0 5px;
        text-align: center;
    }

    /* Hero */
    .hero-section { height: auto; min-height: 100vh; padding-bottom: 10px; }
    .hero-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 0;
        text-align: center;
        max-width: 100%;
    }
    .hero-left {
        left: 0; top: 0;
        align-items: center;
        order: 2;
        width: 100%;
    }
    .hero-right {
        order: 1;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .diamond-shape { left: 0; top: 0; margin: 0 auto 10px; }
    .hero-title {
        font-size: 48px;
        width: 100%;
        line-height: 44px;
        margin-bottom: 24px;
        
    }
    .hero-title::before, .hero-title::after { width: 160px; }
    .bold-text { font-size: 44px; line-height: 40px; }
    .hero-description {
        font-size: 15px;
        width: 100%;
        line-height: 26px;
        letter-spacing: 0.8px;
        text-align: center;
    }
    .shape-morph-container { width: 260px; height: 260px; }
    .shape-morph-container svg { width: 260px; height: 260px; }
    .corner-button {
        position: relative;
        left: 0; top: 0;
        display: block;
        width: fit-content;
        margin: 28px auto 0;
        font-size: 14px;
        padding: 6px 28px;
    }

    /* About */
    .about-section { padding: 10px 16px 10px; }
    .about-container {
        width: 100%;
        left: 0;
        flex-direction: column;
        height: auto;
        padding: 30px 20px 50px;
        gap: 40px;
        align-items: center;
    }
    .about-left { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .about-name {
        font-size: 36px;
        left: 0; top: 0;
        align-items: center;
        letter-spacing: 3px;
        margin-bottom: 10px;
        text-align: center;
    }
    .about-name .thin, .about-name .bold, .thin-bottom {
        left: 0;
        margin-left: 0;
    }
    .about-content { max-width: 100%; width: 100%; }
    .about-text {
        left: 0; top: 0;
        width: 100%;
        font-size: 15px;
        height: auto;
        text-align: center;
    }

    .about-right { left: 0; align-items: center; width: 100%; }
    .decoration-header { left: 0; top: 0; justify-content: center; margin-bottom: 16px; }
    .decoration-header .label { font-size: 32px; width: auto; height: auto; }
    .header-line-top, .header-line-bottom, .header-diamond { display: none; }
    .about-header { display: none; }
    .image-container {
        width: calc(100vw - 80px);
        max-width: 300px;
        height: 330px;
        top: 0;
        overflow: hidden;
    }
    .corner-box { width: 80px; height: 68px; }
    .corner-box.top-right { top: -22px; right: -18px; }
    .corner-box.bottom-left { bottom: -22px; left: -18px; }
    .image-buttons {
        position: relative;
        bottom: auto; left: auto;
        transform: none;
        justify-content: center;
        margin-top: 40px;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }


    /* Projects */
    .projects-section { padding: 10px 0 10px; min-height: auto; }
    .projects-header { margin-bottom: 30px; gap: 14px; }
    .projects-title { font-size: 36px; letter-spacing: 4px; }
    .projects-carousel-container {
        width: 100vw;
        max-width: 100%;
        height: 380px;
        overflow: hidden;
    }
    .project-card { width: 110px; height: 300px; border-radius: 55px; }
    .project-card:not(:first-child) { margin-left: -28px; }
    .carousel-controls { width: 220px; margin-top: 28px; margin-bottom: 32px; }
    .deco-line-long { width: 100px; height: 6px; }
    .deco-line-short { width: 80px; height: 6px; }
    .bg-circle { display: none; }
    .corner-decoration { display: none; }

    /* Discovery */
    .discovery-section { min-height: 60vh;  }
    .big-losange { width: 260px; height: 260px; }
    .button-losange { width: 64px; height: 64px; margin-bottom: 16px; }
    .button-losange span { font-size: 46px; }
    .losange-text { font-size: 13px; width: 180px; }
    .divider-line { width: 180px; }
    .deco-cluster { display: none; }
    .diamond-svg-container { display: none; }

    /* Contact */
    .contact-section { min-height: auto; padding: 50px 16px 60px; }
    .contact-circle-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 24px;
        padding: 40px 20px 50px;
    }
    .contact-title {
        font-size: 36px;
        width: 100%;
        top: 0;
        text-align: center;
        position: relative;
        line-height: 1.2;
    }
    .bold-contact {
        font-size: 36px;
        left: 0; top: 0;
        width: 100%;
        text-align: center;
        position: relative;
        line-height: 1.2;
    }
    .contact-form { width: 100%; gap: 20px; }
    .form-row { flex-direction: column; gap: 20px; }
    .input-small { width: 100%; }
    .input-full, .input-textarea { width: 100%; }
    .contact-svg-frame { display: none; }
    .envoyer-btn { margin-top: 24px; font-size: 15px; }

    /* Bottom deco */
    .contact-bottom-decoration { padding-top: 10px; }
    .contact-bottom-decoration svg { max-width: 100%; }

    /* Footer */
    .main-footer {
        font-size: 8px;
        letter-spacing: 1.5px;
        padding: 8px 10px;
        text-align: center;
    }
}


/* ============================================
   RESPONSIVE — Small Mobile (max 400px)
   ============================================ */
@media screen and (max-width: 400px) {

    .hero-title { font-size: 38px; line-height: 36px; }
    .bold-text { font-size: 34px; line-height: 32px; }
    .hero-description { font-size: 13px; line-height: 22px; }
    .shape-morph-container { width: 220px; height: 220px; }

    .about-name { font-size: 28px; letter-spacing: 2px; }
    .about-text { font-size: 13px; }

    .projects-title { font-size: 28px; letter-spacing: 3px; }
    .project-card { width: 88px; height: 240px; border-radius: 44px; }
    .project-card:not(:first-child) { margin-left: -22px; }
    .projects-carousel-container { height: 300px; }

    .big-losange { width: 210px; height: 210px; }
    .button-losange { width: 52px; height: 52px; }
    .button-losange span { font-size: 36px; }
    .losange-text { font-size: 9px; width: 150px; }
    .divider-line { width: 150px; }

    .contact-title, .bold-contact { font-size: 28px; }
    .main-footer { font-size: 7px; letter-spacing: 1px; }
}