/* Reset et variables */
:root {
  --color-bg: #FFF7ED;
  --color-primary: #327DFF;
  --color-dark: #0A0A0A;
  --color-gray: #D9D9D9;
}

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

:hover{
  transition:all 0.2s ease-in-out 0s;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: padding-top 0s; /* Transition instantanée pour éviter le saut */
}


/* Typographie */
h1, h2, h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
}

h1 {
    font-size: 120px;
    line-height: 130px;
}

h1.animate-text {
    display: flex;
    flex-direction: column;
}

h1.animate-text .line {
    display: block;
    overflow: hidden;
}

h2 {
    font-size: 80px;
}

h3 {
    font-size: 27px;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
}

span{
	text-decoration-color: var(--color-primary) !important;
    text-underline-offset: 8px;
	text-decoration-thickness: 1px !important;
}

a{
  text-decoration: none;
  color: var(--color-dark);
}

a:hover{
  color: var(--color-primary);
}

section{
  position: relative;
  z-index: 1;
}

section img{
  width: 100%;
}

.text-large, .text-large p {
    font-size: 32px;
    font-weight: 300;
}

.text-large.animate-text {
    display: flex;
    flex-direction: column;
}

.text-large.animate-text .line {
    display: block;
    overflow: hidden;
    /*margin-bottom: 0.5em;*/
}

ul.animate-text {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding-left: 0;
    margin-left: 20px;
}

ul.animate-text .line {
    display: block;
    overflow: hidden;
    position: relative;
    padding-left: 20px;
}

ul.animate-text .line::before {
    content: "•";
    position: absolute;
    left: 0;
}

.z-index-1{
  z-index: 1;
}

.title-about{
  font-size: 80px;
  line-height: 85px;
  margin-bottom: 102px;
}

/* Header */
header {
  position: relative;
  width: 100%;
  padding: 36px 50px 62px 50px;
  display: flex;
  justify-content: space-between;
  z-index: 999;
  transition: none;
}

body.menu-open {
  overflow: hidden;
  height: 100vh;
}

header a img {
  transition: none;
  opacity: 1;
  width: 167px;
  height: 56px;
  display: block;
}

.logo {
  width: 167px;
  height: 56px;
}

/* Menu burger */

.burger-menu {
  width: 26px;
  height: 50px;
  position: relative;
  cursor: pointer;
}

.burger-circle {
  width: 12px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  transition: none;
}

.burger-bar:nth-child(3), .burger-bar:nth-child(4){
  width: 25px;
  height: 7px;
  background-color: #000;
  transition: all 0.3s ease;
  position: absolute;
}

/* Deuxième barre avec effet zigzag */
.burger-bar:nth-child(2) {
  position: absolute;
  width: 26px;
  height: 11px;
  top: 18px;
  background-image: url('../img/zigzag-menu.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transition: none
}

.burger-bar:nth-child(3) {
  top: 32px;
}

.burger-bar:nth-child(4) {
  top: 42px;
}

/* Animation quand le menu est ouvert */
.burger-menu.open .burger-circle {
  animation: slideUpFadeOut 0.6s ease forwards;
}

.burger-menu.open .burger-bar:nth-child(2) {
  animation: slideUpFadeOutBar 0.6s ease forwards;
}

@keyframes slideUpFadeOut {
  0% {
    top: 5px;
  }
  100% {
    top: -66px;
  }
}

@keyframes slideUpFadeOutBar {
  0% {
    top: 18px;
  }
  100% {
    top: -53px;
  }
}

/* Animation quand le menu se ferme (retour à la position initiale) */
.burger-menu:not(.open) .burger-circle {
  animation: slideDownFadeIn 0.6s ease forwards;
}

.burger-menu:not(.open) .burger-bar:nth-child(2) {
  animation: slideDownFadeInBar 0.6s ease forwards;
}

@keyframes slideDownFadeIn {
  0% {
    top: -66px;
  }
  100% {
    top: 5px;
  }
}

@keyframes slideDownFadeInBar {
  0% {
    top: -53px;
  }
  100% {
    top: 18px;
  }
}

.burger-menu.open .burger-bar:nth-child(3) {
  transform: rotate(45deg);
  top: 25px;
}

.burger-menu.open .burger-bar:nth-child(4) {
  transform: rotate(-45deg);
  top: 25px;
}

.demo-text {
  margin-top: 30px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.menu-toggle {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  transition: all 0.3s ease;
}

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

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

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

/* Navigation */
nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  padding: 120px 50px 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.4s ease;
  z-index: 999;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

nav.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

nav ul {
  list-style: none;
}

nav ul li a {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 150px;
  line-height: 150px;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--color-primary);
}

nav.menu{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    height: 100%;
    z-index: 2;
    --mouse-x: 0;
    --mouse-y: 0;
}

nav.menu .menu-bottom{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

nav.menu .footer-social{
    justify-content: center;
}

nav.menu .footer-social i{
  font-size: 20px;
}

nav.menu .marquee-content{
    color: var(--color-dark);
    font-size: 35px;
}

/* Container */
.container, .container-fluid {
  margin: 0 auto;
  padding: 0 50px;
}

.container{
  max-width: 1440px;
}

/* Hero Section */
.hero {
  padding-top: 0px;
  padding-bottom: 40px;
}

.hero.home h1 {
  margin-bottom: 30px;
}

.hero.home{
  position: relative;
  padding-bottom: 240px;
}

.hero.home .hero-image{
	max-width: 1340px;
	margin: 0 auto;
  	margin-bottom: 100px;
}

.hero-image {
  width: 100%;
}

.hero-image img{
  width: 100%;
}

.hero-image video{
  width: 100%;
}

/* Grid */
.grid {
  display: grid;
  gap: 50px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.card {
  position: relative;
  overflow: hidden;
}

.card a{
  color: inherit;
}

.card-text{
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-text h3{
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 17px 0 0;
}

.card-title {
  font-weight: 700;
  line-height: 25px;
}

.card-subtitle {
  font-size: 16px;
  color: var(--color-dark);
  opacity: 0.8;
	margin-bottom: 0px;
}

/* Expertise Cards */
.expertises{
  padding-bottom: 141px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-top: 60px;
}

.expertise-card {
  display: flex;
  flex-direction: column;
}

.expertise-icon {
    margin-bottom: 30px;
    width: 56px;
    height: 56px;
}

.expertise-icon img{
  width: initial;
}

.expertise-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.expertise-card p {
  font-size: 16px;
  font-weight: 400;
}

.read-more{
  text-align: center;
  margin-top: 55px;
}

/* Réalisations */

.hero.real{
  padding-bottom: 0px;
}

.hero.real .text-large{
  margin-bottom: 100px;
}

.realisations{
  padding-bottom: 141px;
}

.realisations .text-large {
  margin-bottom: 57px;
}

.realisations-grid{
  margin-bottom: 186px;
}

/* Services */
.services{
  margin-top: 174px;
  margin-bottom: 178px;
}

.services h2{
  position: relative;
  display: inline;
}

.services h2 span, .services .faq-grid{
  position: relative;
  z-index: 1;
}

/* CTA Section */
.cta-section {
  background-color: var(--color-primary);
  padding: 80px 50px;
}

.cta-section h2 {
  color: var(--color-bg);
  margin-bottom: 30px;
  line-height: 85px;
}

.cta-section p {
  color: var(--color-bg);
  font-size: clamp(18px, 3vw, 32px);
  margin-bottom: 20px;
}

.cta-section a {
  color: var(--color-bg);
  position: relative;
  text-decoration: underline;
	text-decoration-color: var(--color-bg) !important;
    text-underline-offset: 8px;
	    text-decoration-thickness: 1px !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-dark);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
}

.btn-text {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  padding: 9px 25px;
  border-radius: 27px;
  border: 1px solid var(--color-primary) !important;
}

.btn-text:hover{
  background-color: transparent !important;
  color: var(--color-primary) !important;
}

.btn-underline {
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  margin-top: 8px;
  transition: width 0.3s ease;
}

.btn:hover .btn-underline {
  width: 120%;
}

/* About Content */
.about{
  position: relative;
}

.about-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin: 50px 0;
}

.about-image {
  width: 100%;
  object-fit: cover;
}

.about-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 20px;
}

/* Services List */
.services-list {
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 2fr));
  gap: 60px;
  margin-top: 80px;
}
.faq-item a, .card-text a, .project-text a{
  color: var(--color-primary);
	border-bottom: 1px solid var(--color-primary);
}

.faq-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.faq-item .underline {
  width: 100%;
  max-width: 212px;
  height: 1px;
  background-color: var(--color-primary);
  margin-top: 16px;
}

/* Project Detail */
.etiquette-colis{
  margin-bottom: 141px;
}

.project-hero h1 {
  font-size: 80px;
  line-height: 80px;
}

.project-hero .subtitle {
  font-size: 32px;
  margin-bottom: 61px;
}

.project-hero .hero-image{
  margin-bottom: 39px;
}

.project-info {
  display: flex;
  gap: 100px;
  margin-bottom: 150px;
}

.project-services {
  color: var(--color-primary);
  min-width: 250px;
}

.project-description {
  flex: 1;
}

.project-section {
  display: flex;
  gap: 50px;
  justify-content: space-between;
  margin-bottom: 51px;
  align-items: center;
}

.project-section.reverse {
  direction: rtl;
}

.project-section.reverse > * {
  direction: ltr;
}

.project-image, .project-image video {
  width: 100%;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-image-banner{
  margin-bottom: 51px;
}

.project-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.project-text ul{
  margin-left: 20px;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.back-link:hover {
  transform: translateX(-5px);
}

/* Contact Form */
.contact{
  margin-top: 37px;
}

.contact-form {
  max-width: 647px;
  margin: 97px auto 147px;
}

.contact-form-wrapper {
  max-width: 647px;
  margin: 97px auto 147px;
}

.form-group {
  margin-bottom: 13px;
}

.form-group label {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}

.form-group label span {
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-dark);
}

.form-group textarea {
  height: 193px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--color-primary);
}

.checkbox-group label {
  font-size: 12px !important;
  color: var(--color-primary);
}

.form-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form-wrapper .wpcf7-form .wpcf7-acceptance{
	margin-bottom: 0px !important;
}

/* Footer */
footer {
  position: relative;
  padding: 40px 0px 0px;
  overflow: hidden;
}

footer .accroche{
	margin-bottom: 10px;
}

footer .coordonnees{
	font-weight: 500;
}

.footer-marquee {
  position: relative;
  height: 58px;
  overflow: hidden;
  margin-bottom: 40px;
}

footer i{
  font-size: 20px;
}

footer i:hover{
  color: var(--color-primary);
}

.marquee-content {
  display: flex;
  gap: 15px;
  white-space: nowrap;
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 150;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-primary);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  margin-bottom: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  margin-top: 95px;
}

.footer-info p {
  margin-bottom: 120px;
}

.footer-info img{
  position: relative;
  top: 8px;
}

.footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
	z-index: 1;
}

.footer-legal{
    display: flex;
    flex-direction: column;
    justify-content: end;
    margin-bottom: 20px;
}

.social-icon {
  width: 21px;
  height: 21px;
  background-color: var(--color-dark);
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: right;
  font-size: 12px;
}

.footer-bottom a {
  color: var(--color-dark);
  text-decoration: none;
}

/* Responsive */
@media (min-width: 768px){

  .title-realisations, .title-contact{
    margin-left: 116px;
    margin-bottom: 30px;
  }
	
  nav.menu ul{
  	z-index: 1;
	position: absolute;
	top: 50%;
    transform: translateY(-50%);
  }

  nav.menu::after{
    content: "";
    background-image: url('../img/BlueShape1_menu.svg');
    width: 914px;
    height: 809px;
    position: absolute;
    bottom: 0;
	right: 125px;
    z-index: 0;
  }

  .hero.home::after{
    content: "";
    background-image: url('../img/BlueShape1_GD.svg');
    background-repeat: no-repeat;
    width: 476px;
    height: 914px;
    position: absolute;
    right: 0;
    bottom: -500px;
  }

  .services h2:after{
    content: "";
    background-image: url('../img/BlueShape1_MY.svg');
    width: 384px;
    height: 384px;
    position: absolute;
    top: -140px;
    left: 380px;
    z-index: 0;
  }

  .about:before{
    content: "";
    background-image: url('../img/BlueShape1_GD2.svg');
    background-repeat: no-repeat;
    width: 632px;
    height: 914px;
    position: absolute;
    top: -400px;
    right: 0;
    z-index: 0;
  }
	
	.about-text, .faq-item, .project-text{
		padding: 0 50px;
	}

  .project-section .project-text, .project-section .project-image {
    width: 50%;
  }
}

@media (max-width: 1200px) {
  
  .project-info {
    flex-direction: column;
    gap: 40px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
    h1, h2, .title-about, .project-hero h1, .cta-section h2{
        font-size: 50px;
        line-height: 60px;
    }
    .title-about{
      margin-bottom: 66px;
    }
    .text-large, .text-large p{
        font-size: 20px;
    }
    nav ul li a{
        font-size: 50px;
        line-height: 60px;
    }
    nav.menu{
      padding-top: 187px;
    }
    nav.menu .menu-bottom{
        gap: 50px;
    }
    nav.menu .marquee-content{
        font-size: 20px;
    }
    .container {
        padding: 0 30px;
    }
    
    header {
        padding: 26px 30px 72px 30px;
    }
    
    .hero {
        padding-top: 0px;
        padding-bottom: 66px;
    }

    .hero.home{
      padding-top: 0px;
      padding-bottom: 160px;
    }

    .hero.home::after{
      content: "";
      background-image: url('../img/BlueShape1_MY.svg');
      background-repeat: no-repeat;
      width: 210px;
      height: 384px;
      position: absolute;
      right: 0;
      bottom: -150px;
    }

    .hero.home .hero-image{
      margin-bottom: 60px;
    }

    .hero-image img, .about-banner img{
      height: 334px;
      object-fit: cover;
    }

    .project-info{
      margin-bottom: 85px;
    }

    .services{
      margin-top: 140px;
      margin-bottom: 130px;
    }

    .faq-grid{
      margin-top: 50px;
    }
	
	.faq-grid{
      display: flex;
      flex-direction: column;
    }
    .faq-grid .faq-item:nth-child(1){
      order: 1;
    }
    .faq-grid .faq-item:nth-child(2){
      order: 3;
    }
    .faq-grid .faq-item:nth-child(3){
      order: 2;
    }
    .faq-grid .faq-item:nth-child(4){
      order: 4;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .about-content{
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .project-section{
      flex-direction: column;
      gap: 40px;
    }
    .project-section .project-text,
    .project-section .project-image {
      flex: 0 0 100%;
      max-width: 100%;
    }
    .project-image-banner{
      height: 335px;
      overflow: hidden;
    }
    .project-image-banner img{
      height: 100%;
      object-fit: cover;
    }
    .project-section.reverse{
      flex-direction: column-reverse;
    }
    .etiquette-colis{
      margin-bottom: 114px;
    }
    .expertises{
      padding-bottom: 164px;
    }
    .expertise-grid{
      gap: 60px;
    }
    .realisations h2, .title-realisations, .title-contact{
      margin-bottom: 22px;
    }
    .realisations-grid{
      margin-bottom: 118px;
    }
    .realisations-grid .card-text{
      display: inherit;
      margin-top: 97px;
      justify-content: inherit;
    }
    .services:after{
      content: "";
      background-image: url('../img/BlueShape1_MY2.svg');
      background-repeat: no-repeat;
      width: 110px;
      height: 384px;
      position: absolute;
      top: 50%;
      right: 0;
      z-index: 0;
    }
    .about:before{
      content: "";
      background-image: url('../img/BlueShape1_MY.svg');
      background-repeat: no-repeat;
      width: 210px;
      height: 384px;
      position: absolute;
      right: 0;
      top: 50%;
      margin-top: -350px;
      z-index: 1;
    }
    .cta-section a:after{
        width: 154px;
    }
    .contact-form, .contact-form-wrapper {
      max-width: 647px;
      margin: 81px auto 115px;
    }
    .contact-form, .contact-form-wrapper{
      margin-top: 0px;
    }
    footer{
        padding-top: 30px;
    }
    .footer-marquee{
        margin-bottom: 5px;
    }
    
    .footer-info img {
        width: 185px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }

	.wpcf7-list-item{
		margin-left: 0px;
	}
	
	.checkbox-group{
		gap: 0px;
	}
	
	.wpcf7-form-control-wrap{
		margin-right: 6px;
	}
}

@media (max-width: 480px) {
  .container {
    padding: 0 30px;
  }
	
	.hero.home .container-fluid{
		padding: 0px;
	}
  
  .hero-image {
    overflow: hidden;
  }
	
	.expertise-icon{
		width: 37px;
		height: 37px;
	}
	
	.expertise-icon img{
		height: 100%;
	}
	
	.cta-section{
		padding: 55px 0px;
	}
	
	.project-hero .subtitle{
		font-size: 20px;
	}
	
	footer .container-fluid{
		padding: 0 30px;
	}
}