* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  position: relative;	
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding-top: 80px; /* matches navbar height */
  font-family: 'robot', sans-serif;
  color: #37465b;
  line-height: 1.6;
  letter-spacing: 0.3px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  font-weight: 600; /* semi-bold */
  color: #37465b;
  transition: color 0.1s ease;
}

a:hover {
  color: #fab062; /* stronger highlight when actually hovered */
}

.state_off {
  display: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  border: 0px solid #F10B0B; /* red */ 
}

.narrow {
  max-width: 760px;
}

.navbar {
  background: white;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: height 0.7s ease; 
  border: 0px solid green; /* red */ 
}

/* Navbar container */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

/* Nav groups */
.nav-left,
.nav-right {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex: 1;
    gap: 10px;
}

/* Links hover effect */
.nav-left a,
.nav-right a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.1s;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #fab062;
}


/* Center logo */
.logo {
  flex-shrink: 0;
  margin: 0 10px;
}

/* Logo image */
.logo img {
  max-height: 60px;
  width: auto;
  display: block;
  transition: max-height 0.7s ease;
}


/* =========================
   BURGER 
========================= */

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: relative; 
  justify-content: center; 
  width: 25px;
  height: auto; 
}

/* Burger lines */
.burger span {
  height: 2px;
  width: 25px;
  background: #333;
  margin: 4px 0;
  display: block;
  transition: opacity 0.2s ease;
}

/* CROSS (hidden by default) */
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 25px;
  height: 2px;
  background: #333;

  transform: translateY(-50%) rotate(0);
  opacity: 0;

  transition: 
    transform 0.4s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.2s ease;
}

/*  ACTIVE STATE */
.burger.active span {
  opacity: 0; /* hide burger lines */
}

.burger.active::before {
  opacity: 1;
  transform: translateY(-50%) rotate(45deg);
}

.burger.active::after {
  opacity: 1;
  transform: translateY(-50%) rotate(-45deg);
}

/* ====================
Shrink effet
===============  */

/* Navbar shrink effect */
.navbar.shrink {
  height: 60px;               /* smaller height */
  opacity: 0.9;
  line-height: 1.2;
  box-shadow: 2px 2px 20px grey;
}

.navbar.shrink .logo img {
  max-height: 40px;           /* shrink logo proportionally */
}

.navbar .logo img {
  transition: max-height 0.7s ease;
}

.navbar.shrink .container {
  align-items: center; /* keep links centered */
  transition: all 0.7s ease;
}

/* To stop scrolling before the element reaches the top---------------------------- */
#home,
#services,
#approach,
#about,
#contact {
  scroll-margin-top: 60px;
}

/* =========================
   HERO
========================= */

.container_hero {
  background: url('../img/hero3.webp') center/cover no-repeat;
  background-attachment: fixed; 
  height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
  border: 0px solid blue; /* blue */ 
}

.bloc_hero {
  max-width: 1200px;
  width: 60%;
  margin: auto;
  padding: 50px;
  background: rgba(10, 37, 64, 0.7); /* same color, but transparent */
  border: 0px solid green; /* red */ 	
}

.bloc_titre {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.4;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.bloc_text {
  margin-top: 30px;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}


/* =======================================================
   INTRO TITLES YOUR WEALTH IN HARMONY
======================================================= */
.container_intro {
  min-height: 20vh;           /* strong visual presence */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #f6f4ec;  /* clean white background */
  overflow: hidden;
}

.intro_sentence {
  font-size: clamp(30px, 6vw, 60px);  /* scales for screen sizes */
  font-weight: 100;
  letter-spacing: 6px;
  line-height: 1.1;
  color: #2b2d36;
}

.intro_sentence span {
  opacity: 0;
  display: inline-block;
  transform: translateY(5px);
}

/* Start animation ONLY when visible */
.container_intro.visible .intro_sentence span { animation: introWord 2s forwards;
}

/* Optional subtle highlight for a premium feel */
.intro_sentence span:nth-child(4) {
  color: #a35134;  
}

/* delays */
.container_intro.visible span:nth-child(1) { animation-delay: 0.5s; }
.container_intro.visible span:nth-child(2) { animation-delay: 0.9s; }
.container_intro.visible span:nth-child(3) { animation-delay: 1.3s; }
.container_intro.visible span:nth-child(4) { animation-delay: 1.7s; }


/* =======================================================
   QUOTES
======================================================= */

.container_quote {
  display: flex;
  align-items: center;
  position: relative;
}

.bloc_quote {
  max-width: 1200px;
  width: 55%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
  padding: 160px 0 120px;
  border: 0px solid green; /* green */ 	
}

/* Image container */
.image_quote {
  flex: 0 0 auto;
  max-width: 280px;
  transform: translate(-30px, -30px);
  z-index: 2;
  margin-top: -60px;
  position: relative;
}

/* Image itself */
.image_quote img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-box-shadow: 0 8px 20px #000000;
    box-shadow: 0 8px 20px #000000;
}


.quote_text {
    flex: 0 0 60%;
    margin-left: -60px;
    z-index: 1;

    opacity: 0;
    transform: translateX(60px); /* default: from right */

    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.9s ease;
}

/* explicit directions */
.quote_text.from-left {
    transform: translateX(-60px);
}

.quote_text.from-right {
    transform: translateX(60px);
}

.quote_text.visible {
    opacity: 1;
    transform: translateX(0);
}

.quote-box {
  background: #e8e4d8;
  padding: 30px 50px 60px 70px;
  position: relative; /* IMPORTANT */
  color: #a35134;
  font-size: 16px;
}

/* Text */
.quote-box p {
  font-family: "Georgia", serif;
  font-size: 20px;
  line-height: 1.4;
  font-style: italic;
  color: #555;
}

/* Quote marks */
.quote-mark {
  position: absolute;
  font-size: 60px;
  color: #999;
  font-family: serif;
}

.quote-mark.open {
  top: -10px;
  left: 50px;
}

.quote-mark.close {
  bottom: -20px;
  right: 50px;
}

.container_services {
  padding: 60px 0;
  background: #37465b;
}

.bloc_services {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  color: #e8e8e8;
  border: 0px solid #F10B0B; /* red */ 
}

.title_services {
  font-size: 28px;
  margin-bottom: 35px;
  font-weight: 500;
}


/* Button */
.btn {
  margin-top: 30px;
  display: inline-block;
  padding: 14px 28px;
  background: #37465b;
  color: white;
  text-decoration: none;
}

.btn:hover {
  color: #fab062;
}

/* Sections */
.section {
  padding: 110px 0;
}

.light {
  background: #f7f9fb;
}

.intro p {
  font-size: 18px;
  color: #444;
}

h2 {
  margin-bottom: 35px;
  font-weight: 500;
}

.lead {
  font-size: 18px;
  margin-bottom: 50px;
  color: #555;
}

/* Cards */
.cards {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 280px;
  opacity: 0;               /* start invisible */
  transform: translateY(10px); /* start slightly below */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out 0.6s;
}

.card.visible {
  opacity: 1;
  transform: translateY(0); /* slide into place */
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
    -webkit-box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(55, 70, 91, 0.3),
        0 0 10px rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.5),      /* main depth shadow */
        0 4px 12px rgba(55, 70, 91, 0.3),     /* subtle background blend */
        0 0 10px rgba(255, 255, 255, 0.05);   /* gentle highlight/glow */
}

.card h3 {
  margin-bottom: 10px;
}

.card:nth-child(1) { transition-delay: 0.2s; }
.card:nth-child(2) { transition-delay: 0.7s; }
.card:nth-child(3) { transition-delay: 1.2s; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}


/* About */

#about {
  position: relative;
  padding: 0; 
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #f7f9fb; 
  z-index: 0;
}

#about::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #f3f3f3;
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 2;
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 80px;   
}

.about-image {
  width: 100%;
  padding: 60px 0 20px;
  display: flex;
  flex-direction: column;

}

.about-image img {
  width: 100%;
  max-width: 900px; 
  height: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
/* Text */
.about-image p {
  margin-top: 16px;  
  font-family: "Georgia", serif;
  font-size: 16px; 
  color: #a35134;
  z-index: 5;
}

.about-text {
  width: 100%;  
  max-width: 700px;    
  padding: 20px 0 80px;   
}


/* Form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid #ddd;
}

/* Footer */
.footer {
  padding: 60px 0;
  background: #171e29;
  color: #cbd5e1;
  text-align: center;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  margin: 0 15px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
}

.fine-print {
  font-size: 13px;
  color: #cbd5e1;
  max-width: 700px;
  margin: 20px auto 0;
}