/*
Theme Name: Thème pour Arbreizh
Theme URI: http://Arbreizh.com
Author: Ton Nom
Author URI: http://Arbreizh.com
Description: Un thème WordPress fait à la main
Version: 1.0
Text Domain: theme-arbreizh
*/

@font-face {
    font-family: 'Syne';
    src: url('Syne-Regular.woff2') format('woff2'),
        url('Syne-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Syne';
    src: url('Syne-SemiBold.woff2') format('woff2'),
        url('Syne-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter-Regular.woff2') format('woff2'),
        url('Inter-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
  --vertC: #6AB42D;
  --vertF: #006633;
  --section-gap: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html,
body {
  overflow-x: hidden;
}

body {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* ===== LIENS GLOBAUX ===== */
li {
  list-style: none;
}

li a {
  text-decoration: none;
  color: var(--vertF);
  font-size: 1rem;
}

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

/* ===== HEADER ===== */
header {
  position: fixed;
  width: 100%;
  min-height: 68px;
  padding: 0 1rem;
  background: none;
  /* Mobile : transparent par défaut */
  z-index: 100;
}

/* ===== NAV-SPACE ===== */
.nav-space {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}

/* ===== BOUTON BURGER (visible mobile) ===== */
.menu-mobile {
  display: block;
  /* Mobile first : visible */
}

.burger-menu-button {
  color: var(--vertF);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== BOUTONS ACTION ===== */
.buttons {
  display: none;

}

.action-button {
  background-color: var(--vertC);
  color: white;
  border: 1px solid var(--vertC);
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  outline: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  /* display: inline-block; */
}

.action-button:hover {
  color: var(--vertF);
  border: 1px solid var(--vertC);
  background-color: transparent;
}

.pro {
  background-color: transparent;
  color: var(--vertF);
  border: 1px solid var(--vertC);
  display: inline-flex;
  /* flex sur le bouton */
  justify-content: center;
  /* centrer horizontalement le texte */
  align-items: center;
  /* centrer verticalement le texte */
  margin: 0;
  /* éviter les marges qui cassent l’alignement */
}

.pro:hover {
  background-color: var(--vertC);
  color: white;
}

/* ===== NAVBAR DESKTOP (cachée sur mobile) ===== */
.navbar {
  display: none;
  /* Mobile first : cachée */
}

.nav-space .logo img {
  max-height: 75px !important;
  width: auto !important;
}

.nav-space {
  min-height: 90px !important;
}

header {
  min-height: 90px !important;
}

.nav-space .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== BURGER MENU (mobile) ===== */

.burger-menu .links li a,
.burger-menu .links li span {
  color: var(--vertF) !important;
}



.burger-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.958);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 0 0 15px 15px;
  transition: height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 99;
}

.burger-menu.open {
  height: calc(100vh - 68px);
  overflow-y: auto;
}

.burger-menu li {
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider {
  height: 1px;
  background-color: #4b811c5c;
  width: 80%;
  margin: 0 auto 1rem;
}

.burger-menu .action-button {
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.buttons-burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}


.burger-page {
  display: none;
  padding: 1rem 0;
}

.burger-page.active {
  display: block;
}

.burger-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-weight: bold;
  color: var(--vertF);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 0.5rem;
}

.burger-back:hover {
  color: var(--vertC);
}

.has-submenu span {
  cursor: pointer;
  color: var(--vertF);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem;
  width: 100%;
}

.has-submenu span:hover {
  color: var(--vertC);
}

@media (max-width: 1199px) {
  .nav-space {
    background-color: white;
    width: 100vw;
    margin-left: -1rem;
    padding: 0 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
}


/* ===== DESKTOP (≥ 1200px) ===== */
@media (min-width: 1200px) {

  header {
    background-color: white;
    padding: 0 2rem;
  }


  /* Cacher les éléments mobile */
  .burger-menu-button {
    display: none;
  }

  .menu-mobile {
    display: none;
  }

  .burger-menu {
    display: none !important;
  }

  /* Afficher la navbar desktop */
  .navbar {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 0px 0px;
    justify-content: space-between;
  }

  .navbar .links {
    width: 42%;
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .navbar .links li a {
    white-space: nowrap;
  }

  /* Logo centré absolument */
  .nav-space .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-space .logo img {
    max-height: 45px;
    width: auto;

  }

  /* Boutons à droite, même largeur que les liens pour équilibre */
  .buttons {
    display: flex;
    gap: 1rem;
    width: 42%;
    justify-content: flex-end;
    align-items: center;
  }

  .navbar .buttons a,
  .navbar .buttons .action-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  /* Sous-menu */
  /* Sous-menu */
  /* Sous-menu */
  .navbar ul {
    position: relative;
  }

  .navbar ul li {
    position: relative;
  }

  .navbar ul ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    width: max-content;
    z-index: 200;
    display: none;
  }

  .navbar ul li:hover ul.sub-menu {
    display: block;
  }

  .navbar ul ul.sub-menu li {
    padding: 5px 15px;
  }
}

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

.hero {
  height: 100vh;
  min-height: 400px;
  /* assure un minimum de taille */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  /*margeàgaucheetdroite*/
  border-radius: 0 0 35px 35px;
}

/* Contenu + background limité */
.hero-inner {
  max-width: 1400px;
  width: 100%;
  text-align: center;
  padding: 0 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)), url("https://cdui6.greta-bretagne-sud.org/sofiaRupin/Arbreizh/wp-content/themes/theme-arbreizh/images/foret.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0 0 20px 20px;
  height: 100%;

  /*prendtoutelahauteurduhero*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-border-radius: 0 0 20px 20px;
  -moz-border-radius: 0 0 20px 20px;
  -ms-border-radius: 0 0 20px 20px;
  -o-border-radius: 0 0 20px 20px;
}

/* Hero spécifique pour la page Élagage */

.hero-inner.hero-elagage {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)),
    url("img/service-elagage.jpg") center / cover no-repeat;
}

.hero-inner.hero-elagage {
  background: none;
  padding: 0;
  height: 700px;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.hero-inner.hero-elagage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero h1 {
  color: #fff;
  font-size: 42px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.btn-hero-number {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: var(--vertC);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-hero-number:hover {
  background-color: var(--vertF);
  color: #fff;
}

@media (min-width: 1200px) {
  .hero {
    height: 80vh;
  }
}

/* ===== BANDEAU EXPERIENCE ===== */

.breadcrumb-last {
  color: var(--vertF) !important; 
  font-weight: bold;
}

.experience-banner .breadcrumb a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.experience-banner .breadcrumb a:hover {
  color: var(--vertF);
}

.experience-banner .breadcrumb .active {
  color: var(--vertF);
  font-weight: bold;
}

.experience-banner {
  background: var(--vertC);
  padding: 20px;
  margin-top: var(--section-gap);
  text-align: center;
}

.experience-content {
  color: #fff;
}

.experience-number {
  font-size: 48px;
  font-weight: 700;
  display: block;
}

.experience-text {
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.service-content a.btn-solid {
  margin-top: 30px;
  /* augmente la distance du texte */
  display: inline-block;
  /* pour que la marge fonctionne correctement */
}

/* ============================= */
/*        SERVICE HIGHLIGHT      */
/* ============================= */

.service-highlight {
  max-width: 1200px;
  margin: var(--section-gap) auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-image-wrapper {
  position: relative;
  width: 100%;
}

.service-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  border-radius: 16px;
  position: relative;
  z-index: 2;
}

.image-bg {
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  background: var(--vertC);
  border-radius: 16px;
  z-index: 1;
}

.service-content {
  position: relative;
  padding: 0;
}

.service-category {
  display: inline-block;
  padding: 6px 16px;
  background: #e6f3d8;
  color: var(--vertC);
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.service-content h2 {
  font-size: 22px;
  color: var(--vertF);
  margin-bottom: 15px;
}

.service-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-content a.btn-solid {
  margin-top: 10px;
  display: inline-block;
}

/* TABLETTE (≥ 850px) */
@media (min-width: 850px) {
  .service-highlight {
    flex-direction: row;
    align-items: center;
    gap: 50px;
    margin: 70px auto;
  }

  .service-image-wrapper {
    width: 350px;
    flex-shrink: 0;
  }

  .service-image-wrapper img {
    height: 400px;
    aspect-ratio: unset;
  }

  .image-bg {
    bottom: -15px;
    left: -15px;
  }

  .service-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .service-content p {
    font-size: 15px;
  }
}

/* DESKTOP (≥ 992px) */
@media (min-width: 992px) {
  .service-highlight {
    gap: 80px;
    margin: 100px auto;
  }

  .service-image-wrapper {
    width: 500px;
  }

  .service-image-wrapper img {
    height: 500px;
  }

  .image-bg {
    bottom: -20px;
    left: -20px;
  }

  .service-content h2 {
    font-size: 32px;
  }

  .service-content p {
    margin-bottom: 20px;
  }
}

/* ===== ARTICLE SERVICES ===== */

/* MOBILE (base) */
.services-article {
  max-width: 1200px;
  margin: var(--section-gap) auto;
  padding: 0 20px;
}

.services-intro {
  max-width: 600px;
  margin-bottom: 40px;
}

.services-tag {
  display: inline-block;
  background: #e6f3d8;
  color: var(--vertC);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.services-intro h2 {
  font-size: 24px;
  color: var(--vertF);
  margin-bottom: 15px;
}

.services-intro p {
  color: var(--vertF);
  line-height: 1.6;
  font-size: 16px;
}

/* GRILLE : 1 colonne sur mobile */
.services-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* CARD */
.service-card {
  background: #f0f2ef;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-card img.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card-header img {
  width: 32px;
  height: auto;
}

.card-header h3 {
  font-size: 14px;
  color: var(--vertF);
}

.service-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* TABLETTE (≥ 600px) : 2 colonnes */
@media (min-width: 600px) {
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .services-article {
    margin: 120px auto;
  }

  .services-intro h2 {
    font-size: 28px;
  }
}

/* DESKTOP (≥ 992px) : 3 colonnes */
@media (min-width: 992px) {
  .services-article {
    margin: 120px auto;
  }

  .services-intro {
    margin-bottom: 60px;
  }

  .services-intro h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .services-intro p {
    font-size: 15px;
  }

  .services-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .service-card {
    border-radius: 20px;
    padding: 20px;
  }

  .service-card img.card-image {
    height: 220px;
    border-radius: 14px;
    margin-bottom: 15px;
  }

  .card-header {
    margin-bottom: 15px;
  }

  .card-header img {
    width: 40px;
  }

  .card-header h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 14px;
  }
}

/* ETAPES */
.process-header {
  margin: var(--section-gap) auto;
  padding: 0 20px;
  text-align: center;
}

.process-header h2 {
  font-size: 32px;
  color: var(--vertF);
  margin-bottom: 70px;
  /* plus grand espace après le titre */
  text-align: center;
}

.process-category {
  display: inline-block;
  padding: 6px 16px;
  background: #e6f3d8;
  color: var(--vertC);
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 15px;
}

.process-scroll {
  max-width: 1200px;
  margin: 0px auto 0;
  /* espace réduit au-dessus pour rapprocher du titre */
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 20px;
}

.process-item {
  background: transparent;
  /* fermé */
  border: 2px solid var(--vertF);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 20px 30px;
  overflow: hidden;
  max-height: 90px;
  /* hauteur du chiffre fermé */
  transition: max-height 1.2s ease, background 1s ease, border-color 1s ease, padding 1s ease, margin-bottom 0.8s ease;
  position: relative;
  cursor: default;
}

/* Chiffre toujours visible en haut à gauche */
.process-item .process-num {
  font-size: 50px;
  font-weight: 700;
  color: var(--vertF);
  position: absolute;
  top: 20px;
  left: 30px;
  transition: color 1s ease;
}

/* Contenu à déployer */
.process-item .process-content {
  opacity: 0;
  transform: translateY(20px);
  margin-top: 75px;
  /* espace sous le chiffre */
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* Carte ouverte */
.process-item.active {
  color: #f4f4f4;
  max-height: 1000px;
  /* très grand pour que tout le contenu passe */
  background: var(--vertC);
  border-color: transparent;
  padding: 20px 30px 30px 30px;
  margin-bottom: 25px;
  /* espace supplémentaire quand ouverte */
}

.process-item.active .process-num {
  color: #fff;
  /* chiffre blanc quand ouvert */
}

.process-item.active .process-content {
  opacity: 1;
  transform: translateY(0);
}

/* Chevauchement pour voir la carte suivante quand fermée */
.process-item+.process-item {
  margin-top: -20px;
}

/* FAQ */
.faq-section {
  max-width: 1200px;
  margin: var(--section-gap) auto;
  padding: 0 20px;
}

.faq-container {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

/* TEXTE GAUCHE */
.faq-text {
  flex: 1 1 400px;
}

.faq-category {
  display: inline-block;
  padding: 6px 16px;
  background: #e6f3d8;
  /* vert clair comme Processus */
  color: var(--vertC);
  /* vert foncé */
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 15px;
  /* espace sous le badge */
  text-transform: uppercase;
}

.faq-text h2 {
  font-size: 32px;
  color: var(--vertF);
  margin-bottom: 20px;
}

.faq-text p {
  font-size: 17px;
  color: #555;
  line-height: 1.6;
}

/* FAQ DROITE */
.faq-items {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 2px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background: #f7f9f6;
  font-weight: 500;
}

.faq-question button.faq-toggle {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: var(--vertF);
}

.faq-answer {
  padding: 0 20px 15px 20px;
  display: none;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ============================= */
/*       SECTION ACTUALITÉS      */
/* ============================= */

/* MOBILE (base) */
/* .news-section {
  max-width: 1200px;
  margin: var(--section-gap) auto;
  padding: 0 20px;
} */

.news-section {
  max-width: 1000px;  /* même valeur que ta section FAQ */
  margin: 120px auto;
}


.news-header {
  text-align: center;
  margin-bottom: 30px;
}

.news-header .process-category {
  display: inline-block;
  padding: 6px 16px;
  background: #e6f3d8;
  color: var(--vertC);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.news-header h2 {
  font-size: 24px;
  color: var(--vertF);
  text-align: center;
}

/* MOBILE NEWS */
.mobile-news {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 350px;
  margin: 0 auto 30px;
}

.mobile-article {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.mobile-article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.mobile-article .overlay-text {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  white-space: normal;
  width: 90%;
  max-width: 90%;
}

/* SLIDER caché sur mobile */
.slider-wrapper {
  display: none;
}

.slider-container {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 25px;
  width: max-content;
  animation: scroll 45s linear infinite;
}

/* Images plus hautes */
.slide {
  position: relative;
  flex-shrink: 0;
  width: 300px;
  height: 240px; /* était 180px, augmenté à 240px */
  overflow: hidden;
  border-radius: 12px;
}

/* .slide {
  position: relative;
  flex-shrink: 0;
  width: 300px;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
} */

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

.overlay-text {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.news-button {
  text-align: center;
  margin-top: 25px;
}

.news-button .btn-solid {
  padding: 10px 24px;
  background-color: var(--vertC);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.btn-solid {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--vertC);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-solid:hover {
  background-color: var(--vertF);
  color: #fff;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* DESKTOP (≥ 769px) */
@media (min-width: 769px) {
  .news-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px; /* sécurité sur les bords */
  }

  .slider-wrapper {
    display: block;
    width: 100%;
    overflow: hidden; /* empêche le débordement */
  }

  .slider-container {
    overflow: hidden;
    width: 100%;
  }

  .mobile-news {
    display: none;
  }

  .news-header {
    margin-bottom: 40px;
  }

  .news-header h2 {
    font-size: 32px;
  }

  .news-button .btn-solid {
    padding: 12px 30px;
    font-size: 16px;
  }
}

/* Footer : max-width + style + espace en bas */
.footer {
  max-width: 1400px;
  margin: 0 auto;
  /* centre horizontalement */
  background: #6dbb3b;
  border-radius: 25px;
  padding: 40px 30px;
  font-family: Arial, sans-serif;
  color: #2f5f1c;

  /* Espace entre footer et bas de page */
  margin-top: auto;
  /* pousse le footer vers le bas */
  margin-bottom: 40px;
  /* espace confortable */

}
.footer-col.right-col p a {
  text-decoration: none;
  color: inherit;
}

.footer-col.right-col ul li a {
  text-decoration: none;
  color: inherit;
}

/* Contenu interne */
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Bloc blanc avec blur */
.footer-box {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 30px;
}

/* Footer Top - deux colonnes */
.footer-top {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* Colonnes */
.footer-col {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Ligne verticale entre colonnes gauche/droite */
.footer-col.left-col {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding-right: 20px;
}

.footer-col.right-col {
  padding-left: 20px;
}

/* Liste Accès rapide horizontale */
.footer-col.right-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Titres et textes */
.footer h4 {
  margin-bottom: 10px;
}

.footer p {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.6;
}

/* Footer légal centré */
.footer-legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #eaf6e1;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #eaf6e1;
  text-decoration: none;
}

/* Left-col : Horaires + Localisation */
.left-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Espace entre Horaires et Localisation */
.left-col p:first-of-type {
  margin-bottom: 13px;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    /* une colonne sur mobile */
    gap: 20px;
  }

  .footer-col.left-col {
    border-right: none;
    padding-right: 0;
  }

  .footer-col.right-col {
    padding-left: 0;
  }

}


/*======= page====*/
#contenu-principal{
  max-width:1400px;
  width:100%;
  margin:0 auto;
  background-color: transparent;
}


/*========================= */
/*     PAGE QUI-SUIS-JE     */
/* ===== BASE MOBILE ====== */

/* ===== FORMULAIRE DEVIS - CF7 ===== */

/* ===== GRILLE PRINCIPALE ===== */
.wpcf7-form .cf7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  max-width: 860px;
  margin: 0 auto;
}

.wpcf7-form .cf7-col-left,
.wpcf7-form .cf7-col-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ===== CHAMPS ===== */
.cf7-intro {
  max-width: 860px;
  margin: 0 auto 30px;
}

.cf7-intro h2 {
  color: var(--vertC);
  font-size: 24px;
  margin-bottom: 12px;
}

.cf7-intro p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.wpcf7-form .cf7-field {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.wpcf7-form .cf7-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--vertC);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  display: block;
}

/* ===== INPUTS underline ===== */
.wpcf7-form .cf7-col-left input[type="text"],
.wpcf7-form .cf7-col-left input[type="email"],
.wpcf7-form .cf7-col-left input[type="tel"] {
  border: none;
  border-bottom: 1.5px solid #bbb;
  border-radius: 0;
  padding: 8px 4px;
  font-size: 13px;
  color: #666;
  background: transparent;
  width: 100%;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
}

.wpcf7-form .cf7-col-left input[type="text"]:focus,
.wpcf7-form .cf7-col-left input[type="email"]:focus,
.wpcf7-form .cf7-col-left input[type="tel"]:focus {
  border-bottom-color: var(--vertC);
}

.wpcf7-form input::placeholder {
  color: #aaa;
  font-size: 13px;
}

/* ===== CHECKBOXES SERVICES ===== */
.wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 2px;
}

.wpcf7-form .wpcf7-list-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
}

.wpcf7-form .wpcf7-list-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--vertC);
  cursor: pointer;
  flex-shrink: 0;
}

.wpcf7-form .wpcf7-list-item-label {
  font-size: 13px;
  font-weight: 400;
  color: #555;
  text-transform: none;
  letter-spacing: 0;
}

/* ===== UPLOAD PHOTO ===== */
.wpcf7-form .cf7-upload {
  display: flex;
  flex-direction: column;
}

.wpcf7-form .label-photo {
  font-size: 13px;
  font-weight: 700;
  color: var(--vertC);
  margin-bottom: 2px;
}

.wpcf7-form .label-photo-hint {
  font-size: 12px;
  color: var(--vertC);
  font-style: italic;
  margin-bottom: 10px;
}

.wpcf7-form input[type="file"] {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 30px 20px;
  background: #f5f5f5;
  cursor: pointer;
  color: #aaa;
  font-size: 13px;
  width: 100%;
}

/* ===== TEXTAREA ===== */
.wpcf7-form textarea {
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  background: #fafafa;
  width: 100%;
  min-height: 150px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.wpcf7-form textarea:focus {
  border-color: var(--vertC);
}

.wpcf7-form textarea::placeholder {
  color: #999;
  font-style: italic;
  font-size: 12px;
}

/* ===== RGPD ===== */
.wpcf7-form .cf7-rgpd {
  max-width: 860px;
  margin: 24px auto 0;
  padding: 0;
}

.wpcf7-form .cf7-rgpd .wpcf7-list-item {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.wpcf7-form .cf7-rgpd input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--vertC);
  margin-top: 2px;
  flex-shrink: 0;
}

.wpcf7-form .cf7-rgpd .wpcf7-list-item-label {
  font-size: 13px;
  color: #555;
}

/* ===== BOUTON ===== */
.wpcf7-form .cf7-submit {
  max-width: 860px;
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
  padding: 0;
}

.wpcf7-form input[type="submit"] {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--vertC);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: var(--vertF);
  color: #fff;
}

.wpcf7-form .cf7-submit {
  max-width: 860px;
  margin: 30px auto 50px; /* 30px au dessus, 50px en dessous */
  display: flex;
  justify-content: center;
  padding: 0;
}


/* ===== CAPTCHA ===== */
.captcha-image {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 30px;
}

.cf7ic_instructions {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.captcha-image label {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer;
}

.captcha-image label svg {
  width: 40px !important;
  height: 40px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 650px) {
  .wpcf7-form .cf7-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}



@media (max-width: 768px) {
  .page-id-103 .devis-section {
    padding: 15px !important;
    margin: 20px 10px 20px 10px !important;
    overflow: visible !important;
    width: auto !important;
    max-width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
  }

  .page-id-103 .wpcf7-form,
  .page-id-103 .wpcf7 {
    width: 100%;
    overflow: hidden;
  }

  .page-id-103 .wpcf7-form input[type="text"],
  .page-id-103 .wpcf7-form input[type="email"],
  .page-id-103 .wpcf7-form input[type="tel"],
  .page-id-103 .wpcf7-form textarea,
  .page-id-103 .wpcf7-form input[type="file"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ===== PAGE CONTACT ===== */


.devis-intro h2 {
  font-size: 25px;
  font-weight: 700;
  color: var(--vertC);
  margin-bottom: 10px;
}

.devis-intro p {
  font-size: 17px;
  color: #444;
  margin-bottom: 6px;
  text-align: left;
}

.devis-intro p:last-child {
  font-weight: 700;
  color: #222;
}


.page-id-103 .top-section {
  margin: 50px auto 0;
}

.page-id-103 .devis-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  border: 2px solid var(--vertC);
  border-radius: 16px;
}

.top-section {
  width: 100%;
  margin: 30px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.photo-wrap {
  position: relative;
  width: 100%;
  height: 300px;
}

.photo-wrap::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #6ab42d;
  border-radius: 18px;
  z-index: 0;
  top: 10px;
  right: 10px;
}

.photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  z-index: 1;
  display: block;
}

.presentation-section {
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
}

.presentation-box {
  border: 1.5px solid #d0e8b8;
  border-radius: 16px;
  padding: 20px 18px;
  background: #fff;
  font-size: 14px;
  color: #444;
  line-height: 1.75;
}

.service-content p a {
  text-decoration: none !important;
  color: inherit;
}

.presentation-box p {
  margin-bottom: 16px;
}

.presentation-box p:last-child {
  margin-bottom: 0;
}

.presentation-box ul {
  list-style: disc;
  padding-left: 20px;
  margin: 4px 0 16px;
}

.presentation-box ul li {
  margin-bottom: 6px;
  font-size: 14px;
  color: #444;
}

.presentation-box .vert {
  color: #3a8a1e;
  font-weight: 600;
}

.presentation-box strong {
  font-weight: 700;
  color: #333;
}


/* ===== TABLETTE ===== */

@media (min-width: 768px) {

  .top-section {
    max-width: 900px;
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }

  .photo-wrap {
    width: 420px;
    height: 440px;
    flex-shrink: 0;
  }

  .presentation-section {
    max-width: 900px;
  }

  .presentation-box {
    padding: 28px 30px;
    font-size: 15px;
  }

  .presentation-box ul li {
    font-size: 15px;
  }
}

/* ===== DESKTOP ===== */

@media (min-width: 1024px) {

  .top-section {
    gap: 70px;
  }

  .photo-wrap {
    width: 480px;
    height: 485px;
  }

  .presentation-box {
    padding: 32px 36px;
    font-size: 16px;
  }

  .presentation-box ul li {
    font-size: 16px;
  }
}

/* =============================   
PAGE PRESTATTION - elagage == */

  /* ─── TOP BANNER ─── */
.topbanner {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 100px 0 70px 0; /* 20px en haut, 15px en bas */
  text-align: center;
}

.topbanner-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
}

  /*OUTER WRAPPER */
.outer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.text-content {
  width: 100%;
}


.text-content p {
  line-height: 2;
  margin-bottom: 30px;
}

.text-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--vertC);
}

@media (min-width: 768px) {
  .outer {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .text-content {
    flex: 1;
    min-width: 0;
  }
}

  /*SIDEBAR */

  .contact-card {
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    overflow: hidden;
    font-size: 11px;
    
  }

/* Mobile */
.sidebar {
  width: 100%;
  max-width: 420px;   /* largeur propre en mobile */
  margin: 0 auto;     /* centre le bloc */
  flex-shrink: 0;
  text-decoration: none;
}

/* Desktop */
@media (min-width: 768px) {
  .sidebar {
    width: 300px;
    max-width: none;
    margin: 0;        /* remet aligné à gauche */
  }
}

.contact-card {
  background: #f4f4f4;
  border: 2px solid #8cc63f;
  border-radius: 15px;
  padding: 30px;
  box-sizing: border-box;
}
.badge-style {
  background: #dff0c2;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #4b7f1f;
  font-weight: 600;
}

/* .contact-card h4 {
  background: #dff0c2;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin: 0 0 15px 0;
  color: #4b7f1f;
  font-weight: 600;
} */

.contact-card h2 {
  color: #4b7f1f;
  margin: 0 0 20px 0;
  font-size: 20px;
}

.contact-info {
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

.contact-info:first-of-type {
  border-top: none;
  padding-top: 0;
}

.label {
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.value {
  color: #4b7f1f;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.5;
}
  /* ══════════════════════
     MAIN CONTENT
  ══════════════════════ */
  .content { flex: 1; min-width: 0; }

  /* Page title */

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}

.content h1 {
  font-size: 19px;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

  .content > .intro-text {
    font-size: 11.5px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
  }

  /* ── Reason blocks ── */
  .reason { margin-bottom: 9px; }

  .reason h3 {
    font-size: 12px;
    font-weight: bold;
    color: #3a8a1e;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .reason h3 .ico {
    font-style: normal;
    color: #6ab04c;
    font-size: 13px;
    line-height: 1;
  }

  .reason p {
    font-size: 14px;
    color: #555;
    padding-left: 18px;
    line-height: 1.5;
  }

  /* ── Separator ── */
  .sep {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 16px 0;
  }

  /* ── Service items (green circle checkmark) ── */
  .svc-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 10px;
  }

  .svc-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6ab04c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .svc-check svg {
    width: 9px;
    height: 9px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .svc-item .svc-text strong {
    display: block;
    font-size: 12px;
    color: #3a8a1e;
    font-weight: bold;
    margin-bottom: 1px;
  }

  .svc-item .svc-text span {
    font-size: 14px;
    color: #555;
    line-height: 1.45;
  }

  /* header service line (no subtext) */
  .svc-item.header-line .svc-text strong {
    font-size: 12.5px;
  }

  /* ── Bonus section ── */
  .bonus-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .bonus-title .ico { color: #6ab04c; }

  .bonus-list { list-style: none; padding: 0; }

  .bonus-list li {
    font-size: 11.5px;
    color: #444;
    padding: 2px 0 2px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
    margin-bottom: 2px;
  }

  .bonus-list li .bico {
    font-style: normal;
    flex-shrink: 0;
    font-size: 13px;
    line-height: 1.3;
  }

  /* ══════════════════════
     CONCLUSION
  ══════════════════════ */

.conclusion {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 20px 18px 10px;
  border-top: 1px solid #f0f0f0;
}

.conclusion h2 {
  font-size: 22px;
  color: #6ab04c;
  font-weight: 600;
  margin-bottom: 18px;
}

.conclusion p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  max-width: 750px;
}

.conclusion a {
  color: #6ab04c;
  font-weight: 600;
  text-decoration: none;
}

.conclusion a:hover {
  text-decoration: underline;
}

.cta-wrap {
  text-align: center;
  padding: 40px 0 60px;
}

.btn-cta {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--vertC);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-bottom: 80px;
}

.btn-cta:hover {
  background-color: var(--vertF);
  color: #fff;
}

/* ═════════════
   PROJECT CARD 
════════════════ */

.projects-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 18px;
  text-align: center;
}

/* TEXTE AU-DESSUS DES PROJETS - ALIGNÉ À GAUCHE */
.project-text {
  max-width: 900px;
  margin: 0 0 70px 0; /* marge en bas uniquement */
  text-align: left;   /* alignement à gauche */
}

.project-category {
  display: inline-block;
  padding: 6px 16px;
  background: #e6f3d8;  /* vert clair */
  color: #4b7f1f;       /* vert foncé */
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.project-text h2 {
  font-size: 32px;
  color: #3a8a1e;
  margin-bottom: 20px;
}

.project-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  max-width: 750px;
  margin: 0; /* plus centré, prend toute la largeur disponible */
}

.project-cards {
  display: flex;
  flex-direction: column; /* mobile : empilé */
  gap: 20px;
}

.projects-modern .project-cards {
  text-align: left;
}

.card {
  width: 320px;
  height: 320px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 36px rgba(0,0,0,0.20);
  margin: 0 auto;
  transition: 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

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

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(110,175,215,0.50) 0%,
    rgba(90,155,195,0.18) 35%,
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
}

.card-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  padding: 12px 16px;

  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);

  z-index: 2;
}
.proj-cta-wrap {
  margin-top: 50px;
  text-align: center;
}

@media (min-width: 768px) {
  .outer {
    flex-direction: row;
    align-items: flex-start;
  }

  .sidebar {
    flex-shrink: 0;
    width: 300px;
  }

  .content {
    flex: 1;
    min-width: 0;
  }

  .project-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
  }
}

@media (min-width: 1024px) {
  .project-cards {
    justify-content: flex-start; /* aligné à gauche sur desktop large */
  }
}

/* Fil d’Ariane spécifique à la page Élagage */
.service-page .breadcrumb {
  text-align: center;      /* centré au-dessus du titre */
  margin-bottom: 10px;     /* espace entre fil d’Ariane et le titre */
  font-size: 14px;
}

/* Liens standards (Accueil, Service) */
.service-page .breadcrumb a {
  color: #fff;             /* blanc par défaut */
  text-decoration: none;
  transition: color 0.3s;
}

/* Liens au survol */
.service-page .breadcrumb a:hover {
  color: var(--vertF);          /* vert au survol */
}

/* Page active (Élagage) */
.service-page .breadcrumb .active {
  color: var(--vertF);          /* toujours vert */
  font-weight: bold;
  cursor: default;         /* pas cliquable */
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

.service-highlight {
  grid-template-columns: 1fr; 
}

  .services-cards {
    grid-template-columns: 1fr 2fr;
  }


  .slide {
    min-width: 320px;
  }
}

@media (min-width: 1024px) {
  body {
    padding-top: 0px;
  }

  .navbar {
    height: 100px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .service-highlight {
    grid-template-columns: 1fr 2fr; /* image petite, texte grand */
  }
}

@media (min-width: 1281px) {
  body {
    background: #f7f9f6;
  }

 .hero-inner {
    max-width: 1400px;
  }
  

  .hero h1 {
    font-size: 44px;
  }

  .services-cards {
    gap: 40px;
  }
}

/* ============================= */
/* PAGE ACTUALITE CHANTIER */
/* ============================= */

/* ===== AVANT / APRÈS SLIDER ===== */

.avant-apres-slider * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.avant-apres-slider .slider-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  margin: 30px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  user-select: none;
  cursor: col-resize;
}

.avant-apres-slider .img-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.avant-apres-slider .img-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.avant-apres-slider .img-before-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.avant-apres-slider .divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.9);
  z-index: 10;
}

.avant-apres-slider .handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
}

.avant-apres-slider .handle svg {
  width: 18px;
  height: 18px;
  fill: #555;
}

.avant-apres-slider .label-avant,
.avant-apres-slider .label-apres {
  position: absolute;
  bottom: 12px;
  background: rgba(50,50,50,0.75);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 10;
}

.avant-apres-slider .label-avant { left: 12px; }
.avant-apres-slider .label-apres { right: 12px; }

@media (min-width: 768px) {
  .avant-apres-slider .slider-wrap {
    height: 400px;
    max-width: 900px;
  }
}

@media (min-width: 1024px) {
  .avant-apres-slider .slider-wrap {
    height: 500px;
    max-width: 950px;
  }
}

/* ============================= */
/* CARD INFOS CHANTIER */
/* ============================= */

.card-infos-chantier {
  background: #6ab42d;
  border-radius: 18px;
  padding: 18px;
  width: 100%; /* Mobile full width */
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.row:last-child {
  border-bottom: none;
}

.row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.row-left .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-left .icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.row-right {
  color: #fff;
  font-size: 13px;
  opacity: 0.9;
}




/* ============================= */
/* TABLETTE */
/* ============================= */

@media (min-width: 768px) {

  .avant-apres-slider .slider-wrap {
    height: 400px;
    max-width: 900px;
  }

  .avant-apres-slider .handle {
    width: 42px;
    height: 42px;
  }

  .card-infos-chantier {
    width: 320px;
    padding: 22px;
  }

  .row-left {
    font-size: 15px;
  }

  .row-right {
    font-size: 14px;
  }
}

/* ============================= */
/* DESKTOP */
/* ============================= */

@media (min-width: 1024px) {

  .avant-apres-slider .slider-wrap {
    height: 500px;
    max-width: 950px;
  }

  .card-infos-chantier {
    width: 300px;
    padding: 20px 20px 20px 28px;
  }

  .row-left {
    font-size: 16px;
  }

  .row-right {
    font-size: 15px;
  }
}

/* ============================= */
/*    PAGE ACTUALITÉ PROJETS     */
/* ============================= */

.topbanner {
  width: 100%;
  margin: 0 auto;
  padding: 24px 18px 10px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}


/* ============================= */
/*         PROJECTS MODERN       */
/* ============================= */

.projects-modern-projects {
  width: 100%;
  margin: 0 auto;
  padding: 30px 18px 50px;
}

.page-projets .project-text {
  margin-bottom: 25px;
  text-align: left;
}

.page-projets .project-category {
  display: inline-block;
  padding: 5px 12px;
  background: #e6f3d8;
  color: #4b7f1f;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-projets .project-text h2 {
  font-size: 20px;
  color: #3a8a1e;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.page-projets .project-text p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* ============================= */
/*           GRID CARDS          */
/* ============================= */

.page-projets .project-cards-projet-projet {
  display: grid;
  grid-template-columns: 1fr; /* 1 colonne sur mobile */
  gap: 14px;
}

/* ============================= */
/*              CARD             */
/* ============================= */

.page-projets .card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px
}

/* ======================== */
/* TABLETTE */
/* ======================== */

@media (min-width: 600px) {

  .page-projets .project-cards-projet-projet {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-projets .project-text h2 {
    font-size: 24px;
  }
}



/* ======================== */
/* DESKTOP */
/* ======================== */

@media (min-width: 1024px) {

  .topbanner,
  .projects-modern-projects {
    max-width: 900px;
  }

  .page-projets .project-cards-projet-projet {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .page-projets .project-text h2 {
    font-size: 26px;
  }

  .page-projets .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.18);
  }
}
/* ============================= */
/*       PAGE PARC MATÉRIEL      */
/* ============================= */
 
.realisations {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
 
/* ============================= */
/*     BLOC GUTENBERG NATIF      */
/* ============================= */
 
.realisations .wp-block-columns {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0 !important;
}
 
/* ============================= */
/*          BLOC IMAGE           */
/* ============================= */
 
.realisations .wp-block-column:has(.wp-block-image),
.realisations .wp-block-column:has(figure) {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 200px;
  order: 1;
  /* PAS de overflow:hidden ici → le rectangle vert peut dépasser */
}
 
/* Rectangle vert derrière */
.realisations .wp-block-column:has(.wp-block-image)::after,
.realisations .wp-block-column:has(figure)::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #6ab42d;
  border-radius: 16px;
  z-index: 0;
  top: 10px;
  left: 10px;
}
 
/* Conteneur figure — overflow hidden ICI pour contraindre l'image */
.realisations .wp-block-column .wp-block-image,
.realisations .wp-block-column figure {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  height: 100%;
  z-index: 1;
  overflow: hidden;       /* ← contient l'image sans cacher le ::after */
  border-radius: 14px;
}
 
/* Image strictement dans son conteneur */
.realisations .wp-block-column .wp-block-image img,
.realisations .wp-block-column figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  display: block;
  margin: 0 !important;
}
 
/* ============================= */
/*           BLOC TEXTE          */
/* ============================= */
 
.realisations .wp-block-column:not(:has(.wp-block-image)):not(:has(figure)) {
  order: 2;
  flex: 1;
  background: #efefef;
  border-radius: 14px;
  padding: 18px !important;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
 
.realisations .wp-block-column:not(:has(.wp-block-image)):not(:has(figure)) h1,
.realisations .wp-block-column:not(:has(.wp-block-image)):not(:has(figure)) h2,
.realisations .wp-block-column:not(:has(.wp-block-image)):not(:has(figure)) h3 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin: 0;
}
 
.realisations .wp-block-column:not(:has(.wp-block-image)):not(:has(figure)) p {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}
 
/* ============================= */
/*              CTA              */
/* ============================= */
 
.cta-wrap {
  text-align: center;
  padding: 30px 0 40px;
}
 
.btn-cta {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--vertC);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}
 
.btn-cta:hover {
  background-color: var(--vertF);
  color: #fff;
}
 
/* ============================= */
/*            DESKTOP            */
/* ============================= */
 
@media (min-width: 621px) {
  .realisations {
    padding: 60px 20px 20px;
    gap: 80px;
  }
 
  /* ── Image à DROITE (blocs impairs) ── */
  .realisations .wp-block-columns:nth-child(odd) {
    flex-direction: row;
    align-items: center;
  }
 
  .realisations .wp-block-columns:nth-child(odd) .wp-block-column:has(.wp-block-image),
  .realisations .wp-block-columns:nth-child(odd) .wp-block-column:has(figure) {
    order: 2;
    width: 340px !important;
    flex: 0 0 340px !important;
    height: 220px;
  }
 
  .realisations .wp-block-columns:nth-child(odd) .wp-block-column:has(.wp-block-image)::after,
  .realisations .wp-block-columns:nth-child(odd) .wp-block-column:has(figure)::after {
    top: 14px;
    left: 14px;
  }
 
  .realisations .wp-block-columns:nth-child(odd) .wp-block-column:not(:has(.wp-block-image)):not(:has(figure)) {
    order: 1;
    padding: 28px 32px !important;
  }
 
  /* ── Image à GAUCHE (blocs pairs) ── */
  .realisations .wp-block-columns:nth-child(even) {
    flex-direction: row;
    align-items: center;
  }
 
  .realisations .wp-block-columns:nth-child(even) .wp-block-column:has(.wp-block-image),
  .realisations .wp-block-columns:nth-child(even) .wp-block-column:has(figure) {
    order: 1;
    width: 340px !important;
    flex: 0 0 340px !important;
    height: 220px;
  }
 
  .realisations .wp-block-columns:nth-child(even) .wp-block-column:has(.wp-block-image)::after,
  .realisations .wp-block-columns:nth-child(even) .wp-block-column:has(figure)::after {
    top: 14px;
    left: -14px; /* dépasse à gauche */
  }
 
  .realisations .wp-block-columns:nth-child(even) .wp-block-column:not(:has(.wp-block-image)):not(:has(figure)) {
    order: 2;
    padding: 28px 32px !important;
  }
 
  .cta-wrap {
    padding: 40px 0 60px;
  }
}