
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --c-espresso: #191817;
  --c-brun-fonce: #3A2B22;
  --c-walnut: #634B3B;
  --c-bois-chaud: #876A50;
  --c-beige: #CDB99F;
  --c-ivoire: #F3EEE7;
  --c-blanc: #FAF8F4;
  --c-olive: #68705A;
  
  --bg-dark: var(--c-espresso);
  --text-light: var(--c-blanc);
  --text-dark: var(--c-espresso);
  --accent: var(--c-bois-chaud);

  /* Typography */
  --f-heading: 'Cormorant Garamond', serif;
  --f-body: 'Inter', sans-serif;

  /* Layout */
  --px: max(24px, 5vw);
  --section-py: 3vw;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--c-bois-chaud);
  color: var(--c-blanc);
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Typography Utility */
.t-display {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
}

.t-h2 {
  font-family: var(--f-heading);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.05;
  font-weight: 400;
  margin: 0;
}

.t-h3 {
  font-family: var(--f-heading);
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 400;
}

.t-body {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(250, 248, 244, 0.8);
}

.t-body-large {
  font-size: clamp(1.1rem, 1.8vw, 1.8rem);
  line-height: 1.4;
  font-weight: 300;
  font-family: var(--f-body);
}

.t-label {
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.t-italic {
  font-style: italic;
  font-weight: 300;
}

/* Spacing */
.container {
  padding-left: var(--px);
  padding-right: var(--px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.light-theme {
  background-color: var(--c-ivoire);
  color: var(--c-espresso);
}
.light-theme .t-body {
  color: rgba(25, 24, 23, 0.8);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border 0.5s var(--ease);
  box-sizing: border-box;
}

.navbar.scrolled {
  background: rgba(25, 24, 23, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem var(--px);
  border-bottom: 1px solid rgba(250, 248, 244, 0.1);
}

.logo-wrap {
  position: relative;
  width: 90px;
}
.logo-wrap img {
  width: 100%;
  height: auto;
}
.navbar.scrolled.light-nav .logo-wrap img {
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border: 1px solid rgba(250, 248, 244, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
}
.nav-cta:hover {
  background: var(--c-blanc);
  color: var(--c-espresso);
  border: 1px solid transparent;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--c-espresso);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu .nav-link {
  font-size: 2rem;
  font-family: var(--f-heading);
  text-transform: none;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-blanc);
  color: var(--c-espresso);
  border: 1px solid transparent;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--c-bois-chaud);
  color: var(--c-blanc);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 248, 244, 0.3);
  color: var(--c-blanc);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
}
.btn-secondary:hover {
  border-color: var(--c-blanc);
  background: rgba(250, 248, 244, 0.1);
}

/* Hero Section */
.hero {
  min-height: 100svh;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 150px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(25,24,23,0.9) 0%, rgba(25,24,23,0.4) 50%, rgba(25,24,23,0.1) 100%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  box-sizing: border-box;
  margin-top: 2rem;
  margin-bottom: 6rem;
}

.hero-left {
  max-width: 800px;
}

.hero-label {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  background: rgba(25, 24, 23, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  display: inline-block;
  opacity: 1;
  color: #CDB99F; /* Beige color for elegant look */
}

.hero-desc {
  margin-top: 2rem;
  max-width: 450px;
  margin-bottom: 3rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 1rem;
  max-width: 300px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.glass-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.glass-item-title {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.glass-item-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.6;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scrollAnim 2s infinite ease-in-out;
}
@keyframes scrollAnim {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* Manifest / Vision */
.vision-section {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.vision-text {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.vision-divider {
  width: 1px;
  height: 100px;
  background: rgba(25, 24, 23, 0.2);
  margin: 0 auto;
}

/* Services */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(25, 24, 23, 0.1);
  padding-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  display: block;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--c-espresso);
}
.service-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.service-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  color: var(--c-blanc);
}
.service-num {
  font-family: var(--f-body);
  font-size: 0.8rem;
  opacity: 0.7;
}
.service-title {
  font-family: var(--f-heading);
  font-size: 2rem;
  margin: 0;
  transform: translateY(10px);
  transition: transform 0.6s var(--ease);
}
.service-arrow {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.6s var(--ease);
}
.service-card:hover .service-img {
  transform: scale(1.05);
  opacity: 0.4;
}
.service-card:hover .service-title {
  transform: translateY(0);
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* Savoir-Faire */
.savoir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}
.savoir-img-wrap {
  height: 800px;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}
.savoir-img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  position: relative;
  top: -15%;
}
.savoir-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}
.savoir-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(250, 248, 244, 0.1);
  padding-top: 2rem;
}
.savoir-num {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  color: var(--c-bois-chaud);
}

/* Portfolio */
.portfolio-filters {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--f-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
}
.filter-btn.active, .filter-btn:hover {
  color: var(--c-blanc);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}
.port-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  display: block;
  background: var(--c-espresso);
}
.port-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), opacity 0.5s ease;
}
.port-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25,24,23, 0.6);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--c-blanc);
  text-align: center;
}
.port-card:hover img {
  transform: scale(1.03);
}
.port-card:hover .port-overlay {
  opacity: 1;
}

/* Chiffres */
.chiffres-section {
  background: var(--c-brun-fonce);
  color: var(--c-blanc);
  text-align: center;
}
.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.chiffre-item h4 {
  font-family: var(--f-heading);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  margin: 0 0 1rem 0;
  color: var(--c-beige);
}

/* Pourquoi Nous */
.pourquoi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
}
.pourquoi-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}
.pourquoi-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(250,248,244,0.1);
}
.pourquoi-item span {
  font-family: var(--f-body);
  font-size: 0.8rem;
  color: var(--c-bois-chaud);
}

/* Processus */
.timeline {
  max-width: 800px;
  margin: 4rem auto 0;
  position: relative;
}
.timeline-line {
  position: absolute;
  top: 0;
  left: 20px;
  width: 1px;
  height: 100%;
  background: rgba(25,24,23,0.1);
}
.timeline-progress {
  position: absolute;
  top: 0;
  left: 20px;
  width: 1px;
  height: 0%;
  background: var(--c-espresso);
  transition: height 0.5s ease;
}
.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2rem;
}
.timeline-dot {
  position: absolute;
  top: 5px;
  left: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-bois-chaud);
}
.timeline-item h4 {
  font-family: var(--f-heading);
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
}

/* Immersion CTA */
.cta-immersive {
  position: relative;
  padding: 15vw 5vw;
  text-align: center;
  color: var(--c-blanc);
  overflow: hidden;
}
.cta-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: -2;
}
.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25,24,23, 0.7);
  z-index: -1;
}

/* FAQ */
.faq-wrap {
  max-width: 800px;
  margin: 4rem auto 0;
}
.faq-item {
  border-bottom: 1px solid rgba(25,24,23,0.1);
}
.faq-q {
  padding: 2rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-heading);
  font-size: 1.5rem;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-a p {
  padding-bottom: 2rem;
  margin: 0;
  color: rgba(25,24,23,0.8);
}
.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--c-espresso);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.faq-icon::before { width: 100%; height: 1px; }
.faq-icon::after { height: 100%; width: 1px; }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.active .faq-a { max-height: 500px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-form {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(250,248,244,0.1);
  padding: 3rem;
  border-radius: 1rem;
}
.input-group {
  margin-bottom: 2rem;
}
.input-group input, .input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250,248,244,0.3);
  padding: 1rem 0;
  color: var(--c-blanc);
  font-family: var(--f-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.input-group input:focus, .input-group textarea:focus {
  border-color: var(--c-bois-chaud);
}

/* Footer */
.footer {
  background: #000000;
  padding: 5rem var(--px) 2rem;
  border-top: 2px solid #c79e61;
}
.f-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(250,248,244,0.1);
}
.f-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.f-links a {
  opacity: 0.7;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
}
.f-links a:hover {
  opacity: 1;
  color: #c79e61;
}
.f-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Animations Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s var(--ease-out);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .nav-links { display: none !important; }
  .menu-toggle { display: flex !important; align-items: center; }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  .hero-left { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-right { justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .savoir-grid, .pourquoi-grid, .contact-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-py: 15vw;
  }
  .t-display {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  .t-h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .t-h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }
  .t-body-large {
    font-size: 1rem;
  }
  .chiffres-grid { grid-template-columns: 1fr 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .hero-ctas { 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    width: 100%;
    gap: 1.2rem;
  }
  .btn-primary, .btn-secondary { 
    width: 100%; 
    max-width: 390px;
    margin-inline: auto;
    text-align: center; 
    justify-content: center; 
  }
}

/* Custom Cursor */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--c-bois-chaud);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
  }
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(135, 106, 80, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, background-color 0.2s;
  }
  a:hover ~ .cursor-dot, button:hover ~ .cursor-dot, .hover-target:hover ~ .cursor-dot {
    background-color: var(--c-blanc);
  }
  a:hover ~ .cursor-ring, button:hover ~ .cursor-ring, .hover-target:hover ~ .cursor-ring {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
  }
}


/* Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: -2;
}
.hero-bg.slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 4s ease-out;
  transform: scale(1.05);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg.slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Portfolio Masonry */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 10px;
  gap: 20px;
}
.port-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  display: block;
  background: var(--c-espresso);
  grid-row-end: span 30; /* default height */
}
.port-card:nth-child(2n) {
  grid-row-end: span 40;
}
.port-card:nth-child(3n) {
  grid-row-end: span 25;
}
.port-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), opacity 0.5s ease;
}

/* Chiffres Redesign */
.chiffres-flex {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 4rem 0;
}
.chiffre-card {
  text-align: center;
  color: var(--c-blanc);
}
.chiffre-card h4 {
  margin: 0;
  color: var(--c-beige);
}
.c-line {
  width: 40px;
  height: 2px;
  background: var(--c-bois-chaud);
  margin: 1.5rem auto;
}

/* Pourquoi Nous Redesign */
.pq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.pq-card {
  background: var(--c-blanc);
  padding: 3rem 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(25,24,23,0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pq-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.pq-icon {
  font-family: var(--f-heading);
  font-size: 3rem;
  color: var(--c-bois-chaud);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}
.pq-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: max(2rem, env(safe-area-inset-bottom));
  right: max(2rem, env(safe-area-inset-right));
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .hero-content {
    padding-bottom: 8rem;
  }
}


/* Modal Devis */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(25, 24, 23, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--c-blanc);
  padding: 3rem;
  border-radius: 1.5rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--c-espresso);
  cursor: pointer;
  line-height: 1;
}
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--c-espresso);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(25, 24, 23, 0.2);
  border-radius: 0.5rem;
  font-family: var(--f-body);
  font-size: 1rem;
  background: rgba(25, 24, 23, 0.02);
  color: var(--c-espresso);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--c-bois-chaud);
  background: white;
}

/* --- MOBILE RESPONSIVE POLISH --- */
@media (max-width: 820px) {
  :root {
    --section-py: 12vw;
  }
  
  .navbar {
    padding: max(1.2rem, env(safe-area-inset-top)) var(--px) 1.2rem;
  }
  .navbar.scrolled {
    padding: max(1rem, env(safe-area-inset-top)) var(--px) 1rem;
    background: rgba(25, 24, 23, 0.85);
  }
  .logo-wrap {
    width: 85px; /* Keep logo reasonably sized */
    display: flex;
    align-items: center;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 80px;
    display: block;
  }
  
  .hero-slideshow {
    height: 60vh;
  }

  .hero-bg.slide {
    object-position: center center;
  }
  
  .hero-overlay {
    height: 60vh;
    background: linear-gradient(to bottom, rgba(25,24,23,0.6) 0%, rgba(25,24,23,0.8) 35%, var(--c-espresso) 90%, var(--c-espresso) 100%);
  }

  .hero-content {
    margin-top: 22vh;
    position: relative;
    z-index: 2;
  }

  .hero-desc {
    margin-inline: auto;
    max-width: 100%;
  }

  .whatsapp-btn {
    width: 54px;
    height: 54px;
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(18px, env(safe-area-inset-right));
  }
}

@media (max-width: 480px) {
  .hero-content {
    gap: 2.5rem;
    padding-bottom: 1rem;
  }
  .t-display {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .hero-label {
    margin-bottom: 1.5rem;
  }
  
  /* Buttons Centered and Spaced */
  .hero-ctas {
    gap: 1rem;
  }
  .btn-primary, .btn-secondary {
    max-width: 100%;
    width: 100%;
  }
  
  .mobile-menu {
    background: linear-gradient(to bottom, var(--c-espresso) 0%, var(--c-brun-fonce) 100%);
  }
}

/* ENFORCING BUTTON CENTERING AND SIZING LIKES GPS SITE */
@media (max-width: 768px) {
  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    gap: 1.2rem;
  }
  .btn-primary, .btn-secondary {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box;
  }
  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  display: none;
}
.menu-toggle svg {
  display: block;
}

/* SAVOIR SECTION MOBILE ADJUSTMENTS */
@media (max-width: 820px) {
  .savoir-img-wrap {
    height: 450px !important; /* Adapted height so it doesn't take the whole screen and looks cropped */
    margin-top: 1rem;
  }
  .savoir-grid {
    gap: 2.5rem; /* Reduced space between text and image */
  }
  .savoir-list {
    gap: 0.5rem; /* Reduced space between items 1, 2, 3 */
    margin-top: 1.5rem;
  }
  .savoir-item {
    gap: 1rem;
    padding-top: 1.5rem;
  }
  .savoir-item h4 {
    margin-bottom: 0.5rem !important; /* Reduce space after title */
  }
}

@media (max-width: 480px) {
  .savoir-img-wrap {
    height: 350px !important; /* Even smaller for small phones */
  }
}

/* SECURISATION AFFICHAGE IMAGE SUR MESURE MOBILE */
@media (max-width: 820px) {
  .savoir-img-wrap {
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    min-height: 350px !important;
  }
  .savoir-img-wrap.reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .savoir-img-wrap img {
    display: block !important;
    visibility: visible !important;
    transform: none !important;
    top: 0 !important;
    height: 100% !important;
  }
}

/* SECURISATION CTA SUR MOBILE */
@media (max-width: 820px) {
  .nav-cta {
    display: flex !important;
    font-size: 0.7rem !important;
    padding: 0.5rem 0.8rem !important;
    margin-left: auto;
    margin-right: 1rem;
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .nav-cta {
    font-size: 0.65rem !important;
    padding: 0.4rem 0.6rem !important;
    margin-right: 0.5rem;
  }
}
