@font-face {
  font-family: 'AeonikProVF';
  src: url('../fonts/AeonikProVF.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}

:root {
  --vert: #183029;
  --beige: #f0eee9;
  --pomme: #c2e189;
  --white: #FFFFFF;

  --font-xs: 12px;
  --font-sm: 14px;
  --font-md: 16px;
  --font-lg: 20px;
  --font-xl: 32px;
  --font-2xl: 48px;
  --font-3xl: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'AeonikProVF', sans-serif;
  font-weight: 300;
  background: var(--pomme);
  color: var(--vert);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 50px 60px;
}

ul#navMenu li {
  transition: transform 0.3s ease;
}

ul#navMenu li:hover {
  transform: scale(1.1);
}

.logo {
  font-family: 'AeonikProVF', serif;
  font-size: 25px;
  letter-spacing: 1.5px;
  font-weight: 700;
  opacity: 1;
  color: var(--pomme);
}

.logo:hover{
  opacity: 1;
  transition: opacity 0.2s;
}

.logo span {
  color: var(--pomme);
  background: var(--vert);
  padding: 0 4px;
  border-radius: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul a {
  text-decoration: none;
  color: var(--pomme);
  font-size: var(--font-sm);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.2s;
}

nav ul a:hover { opacity: 1; }
nav ul a.is-active { opacity: 1; }

a.home{
  text-decoration: none;
  color: var(--pomme);
}

a#mail{
  color: var(--pomme);
  text-decoration: none;
}

a#mail:hover{
  font-weight: 500;
  transition: font-weight 0.3s ease;
}

a.picto-rs img {
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

a.picto-rs:hover img {
  transform: scale(1.2);
}

.nav-cta {
  background: var(--pomme);
  color: var(--vert) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  opacity: 1;
}

/* NAV TOGGLE (mobile) */
.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--pomme);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* NAV OVERLAY (fond derrière le menu mobile) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 900;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../import/TD-PAYSAGE_BANNER.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(50%);

  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-left {
  margin-top: 60px;
  width: 100%;
  max-width: 1200px;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 0 60px;
  text-align: center;
}

.hero-tag {
  color: var(--pomme);
  font-size: var(--font-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: "AeonikProVF", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--pomme);
  margin-bottom: 2rem;
  max-width: 900px;
}

.hero-desc {
  color: var(--white);
  font-size: var(--font-lg);
  line-height: 1.5;
  font-weight: 300;
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--pomme);
  color: var(--pomme);
  text-decoration: none;
  font-size: var(--font-lg);
  font-weight: 700;

  padding: 1rem 2rem;
  border-radius: 5px;

  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.hero-btn:hover {
  background-color: var(--pomme);
  color: var(--vert);
  transform: translateY(-2px);
}

/* SERVICES */
.section {
  padding: 7rem 4rem;
  background-color: var(--vert);
}

.section-label{
  align-items: center;
  color: var(--pomme) !important;
  font-size: var(--font-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 100px;
  margin-bottom: 1rem;
  width: fit-content;
}

.section-title {
  text-align: left;
  font-family: 'AeonikProVF', serif;
  font-weight: 700;
  color: var(--white);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  margin-bottom: 3rem;
}

section#services{
  background-color: var(--vert);
  padding: 7rem 4rem;
  display: flex !important;
}

div.services-grid{
  display: block;
}

div.left{
  display: block;
  width: 50%;
}

div.right{
  width: 50%;
}

div.right img{
  max-height: 850px ;
}

img.sm{
  max-width: 600px;
  float: left;
}

img.icon{
  max-width: 35px;
}

.services-layout{
  display: flex !important;
}

.services-grid {
  width: 100%;
}

.service-card {
  display: flex;
  align-items: flex-start;
  color: var(--pomme);
  margin-bottom: 50px;
}

.service-icon {
  margin-right: 10px;
  width: 80px;          /* espace confortable */
  flex-shrink: 0;       /* 🔥 empêche la compression */
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 80px !important;          /* taille réelle du picto */
  height: auto;
  display: block;       /* évite les bugs inline */
}

.service-content{
  border-left: 2px solid var(--pomme);
  padding-left: 15px;
  height: fit-content;
  width: 50%;
}

.service-content h3{
  font-family: 'AeonikProVF', serif;
  margin-bottom: 10px;
  font-size: var(--font-lg);
  font-weight: 700;
}

.service-content p{
  font-size: var(--font-lg);
  line-height: 1.1;
}

/* CARROUSEL SERVICES */

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1.5s ease;
}

.carousel-img.active {
  opacity: 1;
  transform: scale(1);
}









/* ABOUT */
.about {
  background: var(--pomme);
  padding: 7rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-title {
  font-family: 'AeonikProVF', serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  color: var(--vert);
  margin-bottom: 1.5rem;
}

.about-label{
  align-items: center;
  color: var(--vert) !important;
  font-size: var(--font-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 100px;
  margin-bottom: 1rem;
  width: fit-content;
}

.about-text {
  color: var(--vert);
  font-size: var(--font-lg);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-card {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-md);
  border: 1px solid rgba(255,255,255,0.1);
}

/* CONTACT */
.contact {
  background-color: var(--vert);
  padding: 7rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  border-radius: 12px;
  font-family: 'AeonikProVF', sans-serif;
  font-size: var(--font-md);
  color: var(--vert);
  background: var(--beige);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--vert);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select::placeholder {
  color: var(--vert);
  font-size: var(--font-md);
  opacity: 1;
}

.contact-form textarea { height: 130px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.submit-btn {
  background: var(--pomme);
  color: var(--vert);
  border: none;
  padding: 1.1rem 2.5rem;
  border-radius: 100px;
  font-family: 'AeonikProVF', sans-serif;
  font-size: var(--font-md);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.submit-btn:hover{
  opacity: 1;
}

.contact-info p { color: var(--pomme); font-weight: 300; margin-bottom: 2rem; }


.info-icon {
  width: 40px; height: 40px;
  background: var(--vert);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  flex-shrink: 0;
}

/* FOOTER */
footer {
  padding: 30px 30px;
}

#footer-infos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

#logo-footer {
  width: auto;
  height: 70px;
  border-right: 1px solid var(--vert);
  border-left: 1px solid var(--vert);
  padding-right: 30px;
  padding-left: 30px;
}

.footer-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  line-height: 1.1;
}

.footer-text a {
  color: inherit;
  text-decoration: underline;
}

br#empty{
  display: none;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag { animation: fadeUp 0.6s ease both; }
.hero-title { animation: fadeUp 0.6s 0.1s ease both; }
.hero-desc { animation: fadeUp 0.6s 0.2s ease both; }
.hero-btn { animation: fadeUp 0.6s 0.3s ease both; }

/* ================= RÉALISATIONS ================= */
.realisations-section { text-align: center; }

.realisations-hero-desc {
  align-content: left;
  text-align: left;
  color: var(--pomme);
  font-size: var(--font-lg);
  font-weight: 300;
  line-height: 1.1;
  max-width: 50%;
  margin-bottom: 3rem;
}

.realisations-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 8rem auto 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realisations-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.real-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(.25, .8, .25, 1),
              opacity 0.2s ease,
              filter 0.7s ease;
  will-change: transform, opacity, filter;
}

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

/* ================= CARTE DES CHANTIERS (RÉALISATIONS) ================= */
.realisations-map-card {
  max-width: 100%;
  padding-top: 100px;
  text-align: left;
}

.realisations-map-card p {
  color: var(--pomme);
  font-size: var(--font-sm);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  max-width: 650px;
}

#carteRealisations {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--vert);
  cursor: grab;
}

#carteRealisations:active { cursor: grabbing; }

#carteRealisations svg circle { cursor: pointer; }

.carte-zoom-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.carte-zoom-controls button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--vert);
  color: var(--pomme);
  font-size: var(--font-md);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.carte-zoom-controls button:hover { background: #244840; }

@media (max-width: 900px) {
  .realisations-map-card { padding: 1.2rem; }
  #carteRealisations { height: 300px; }
}

/* ================= PAGE CRÉDIT D'IMPÔT ================= */
.tax-hero {
  background: var(--vert);
  padding: 160px 4rem 4rem;
  text-align: left;
}
.tax-hero .section-label { margin-bottom: 1rem; }
.tax-hero h1 {
  font-family: 'AeonikProVF', serif;
  font-weight: 700;
  color: var(--white);
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  max-width: 850px;
  margin-bottom: 1.5rem;
}
.tax-hero p {
  color: var(--pomme);
  font-size: var(--font-lg);
  font-weight: 300;
  line-height: 1.4;
  max-width: 700px;
}

.tax-section {
  background: var(--vert);
  padding: 2rem 4rem 5rem;
}

.tax-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tax-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2.5rem;
}

.tax-card .tax-tag {
  display: inline-block;
  background: var(--pomme);
  color: var(--vert);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.tax-card h2 {
  font-family: 'AeonikProVF', serif;
  font-weight: 700;
  color: var(--white);
  font-size: var(--font-xl);
  margin-bottom: 1.2rem;
}

.tax-card p, .tax-card li {
  color: var(--pomme);
  font-size: var(--font-md);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.tax-card ul { padding-left: 1.2rem; margin-bottom: 1rem; }

.tax-highlight {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.2rem 0 1.5rem;
}
.tax-highlight .num {
  font-family: 'AeonikProVF', serif;
  font-weight: 700;
  font-size: var(--font-3xl);
  color: var(--white);
  line-height: 1;
}
.tax-highlight .num-desc {
  color: var(--pomme);
  font-size: var(--font-sm);
  max-width: 220px;
  line-height: 1.3;
}

.sap-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--beige);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  margin-top: 1.5rem;
}
.sap-badge .sap-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--vert);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pomme);
  font-family: 'AeonikProVF', serif;
  font-weight: 700;
  font-size: var(--font-xs);
  text-align: center;
  line-height: 1.1;
}
.sap-badge .sap-text {
  color: var(--vert);
}
.sap-badge .sap-text strong {
  display: block;
  font-size: var(--font-md);
  font-weight: 700;
}
.sap-badge .sap-text span {
  font-size: var(--font-sm);
  font-weight: 300;
}

.tax-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.2rem 0;
}
.tax-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1rem;
}
.tax-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--pomme);
  color: var(--vert);
  font-weight: 700;
  font-size: var(--font-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tax-note {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--pomme);
  padding: 1rem 1.4rem;
  border-radius: 0 10px 10px 0;
  color: var(--pomme);
  font-size: var(--font-sm);
  font-weight: 300;
  line-height: 1.4;
  max-width: 1200px;
  margin: 3rem auto 0;
}

@media (max-width: 900px) {
  .tax-hero { padding: 130px 1.5rem 3rem; }
  .tax-section { padding: 1rem 1.5rem 4rem; }
  .tax-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tax-card { padding: 1.6rem; }
}

.legal-page {
  background: var(--vert);
  padding: 160px 4rem 6rem;
  min-height: 100vh;
}
.legal-container {
  color: var(--pomme) !important;
  max-width: 850px;
  margin: 0 auto;
}
.legal-container h1 {
  font-family: 'AeonikProVF', serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  color: var(--white);
  margin-bottom: 2.5rem;
}
.legal-container h2 {
  font-family: 'AeonikProVF', serif;
  font-weight: 700;
  font-size: var(--font-xl);
  color: var(--pomme);
  margin: 2.5rem 0 1rem;
}
.legal-container p, .legal-container li {
  color: var(--pomme);
  font-size: var(--font-md);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0.75rem;
}
.legal-container ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.legal-container a {
  color: var(--pomme);
  font-weight: 500;
}
.back-link {
  display: inline-block;
  margin-top: 3rem;
  color: var(--pomme) !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--vert);
}
@media (max-width: 900px) {
  .legal-page { padding: 130px 1.5rem 4rem; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }

  .nav-toggle { display: flex; }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;

    background: var(--vert);
    padding: 2rem 2.5rem;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.35);
    transition: right 0.35s ease;
  }

  nav ul.open { right: 0; }

  nav ul a { font-size: var(--font-md); opacity: 1; }

  .hero-left { padding: 4rem 2rem; }
  .hero-desc { font-size: var(--font-md); }
  .hero-btn { font-size: var(--font-md); padding: 0.9rem 1.6rem; }

  .section { padding: 5rem 1.5rem; }

  /* SERVICES : empile la liste puis le carrousel */
  section#services {
    flex-direction: column;
    padding: 5rem 1.5rem;
    gap: 3rem;
  }

  div.left, div.right { width: 100%; }

  div.right { min-height: 320px; }

  div.right img { max-height: 320px; width: 100%; object-fit: cover; }

  .carousel { height: 320px; }

  .service-content { width: 100%; }

  .service-content p { font-size: var(--font-md); }

  /* RÉALISATIONS */
  .realisations-carousel { height: 320px; margin-top: 3rem; }
  .real-slide { width: 190px; height: 240px; }

  /* ABOUT */
  .about { grid-template-columns: 1fr; padding: 5rem 1.5rem; gap: 3rem; }

  img.sm { max-width: 100%; width: 100%; float: none; }

  /* CONTACT */
  .contact { grid-template-columns: 1fr; padding: 5rem 1.5rem; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    text-align: center;
  }

  img#logo-footer{
    padding: 20px;
    display: none;
  }

  #footer-infos{
    display: block !important;
    gap: 20px;
  }

  a{
    color: var(--vert);
  }
}

@media (max-width: 600px) {
  .hero-title { margin-bottom: 1.5rem; }
  .hero-desc { font-size: var(--font-sm); }

  .service-card { gap: 0; }
  .service-icon { width: 60px; margin-right: 8px; }
  .service-icon img { width: 60px; }

  .realisations-carousel { height: 260px; overflow: hidden; }
  .real-slide { width: 150px; height: 200px; }

  .contact-form input,
  .contact-form textarea,
  .contact-form select { padding: 0.9rem 1rem; }
}

/* ================= RÉALISATIONS (styles responsives dans le bloc RESPONSIVE ci-dessus) ================= */
