:root {
  --bg: #ffffff;
  --card: #ffffff;
  --accent: #0f766e;
  --muted: #6b7280;
  --dark: #111827;
}

/* GLOBAL */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  padding-top: 72px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  top:0;
  position: relative;
}

.hero .container{
  position: relative;
  top: -75px;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background-color: transparent;
  box-shadow: none;
  z-index: 10;
  padding: 0 20px;
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .main-nav a {
  color: var(--dark);
}

.site-header.scrolled .main-nav span {
  color: var(--dark);
}

.site-header.scrolled .main-nav a:hover {
  color: var(--accent);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand img {
  height: 60px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul li.has-submenu > span {
  display: inline-block;
  align-items: center;
  height: 100%;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Cacher le sous-menu par défaut */
.main-nav ul li.has-submenu .submenu {
  display: none;
  width: 130px;
  position: absolute; /* Pour qu'il flotte au-dessus */
  background: var(--bg);
  margin-top: 5px;
  padding: 0px 0;
  border-radius: 0px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 10px;
  list-style: none;
  z-index: 100;
}

/* Afficher le sous-menu au survol du parent */
.main-nav ul li.has-submenu:hover .submenu {
  display: block;
}

/* Style des éléments du sous-menu */
.main-nav ul li.has-submenu .submenu li a {
  display: block;
  padding: 10px 10px;
  color: var(--dark);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav ul li.has-submenu .submenu li a:hover {
  border-radius: 0px;
}

.submenu li a {
  position: relative;
  padding-bottom: 5px; /* pour laisser de la place à la barre */
  text-decoration: none;
  color: inherit;
}

.submenu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: black; /* ta couleur d'accent */
  border-radius: 3px 3px 0 0;
  transition: width 0.5s ease, left 0.5s ease;
}

.submenu li a:hover::after {
  width: 78%;
  left: 0;
}

/* Couleur par défaut (navbar transparente) */
.main-nav ul li.has-submenu > span::after {
  content: " ▼";
  font-size: 0.7rem;
  margin-left: 6px;
  color: white; /* blanc au départ */
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Quand on scroll */
.site-header.scrolled .main-nav ul li.has-submenu > span::after {
  color: var(--accent); /* prend la couleur accent */
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: white;
}

.hero {
  position: relative;
  padding: 260px 0 220px;
  color: white;
  text-align: center;
  background: url('hero1.jpg') no-repeat center center/cover;
  margin-top: -72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

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

.hero-buttons {
  display: inline-flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.hero-buttons a {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}

.hero-buttons a:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

.hero-buttons a.btn-primary,
.hero-buttons a.btn-2 {
  background: none;
  color: white;
  border: 2px solid white;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-buttons a.btn-primary:hover,
.hero-buttons a.btn-2:hover {
  background: white;
  color: var(--accent);
}
.hero .container {
  position: relative;
  z-index: 1;
  max-width: 700px;       /* limite la largeur */
  margin: 0 auto;         /* centre horizontalement */
  padding: 0 15px;        /* un peu de marge sur mobile */
  text-align: center;     /* bien centré */
}

.hero h1 {
  font-family: 'Arial', sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero p {
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 15px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
  color: #eee;
}


/* CONTENT SECTIONS */
.about,
.services,
.portfolio,
.contact {
  padding: 50px 0;
  color: var(--dark);
}

/* WHY-US SECTION */
.why-us {
  padding: 40px 0;
  background: var(--bg);
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 50px;
  font-weight: 700;
  color: var(--dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.why-card {
  background: var(--card);
  padding: 30px 25px;
  border-radius: 8px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border: 2px solid transparent;
}

.why-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.why-card:hover {
  transform: translateY(-10px);
  border-color: #3e56dd;
  box-shadow: 0 8px 25px rgba(62, 86, 221, 0.15);
}

.why-icon {
  font-size: 55px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Icons en emoji */
.icon-trophy::before {
  content: "🏆";
}

.icon-headphones::before {
  content: "🎧";
}

.icon-flash::before {
  content: "⚡";
}

/* ANIMATIONS */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeInLeft 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-play-state: paused;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.15s;
  animation-play-state: paused;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeInRight 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.3s;
  animation-play-state: paused;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* FOOTER */
.site-footer {
  background: var(--dark);
  color: #d1d5db;
  padding: 15px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

/* SERVICES SECTION */
.services-section {
  padding: 80px 0;
  background: #f9fafb;
  text-align: center;
  color: var(--dark);
}

.services-section .section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark);
}

.services-section .section-title span {
  color: rgb(85, 85, 226);
}

.services-section .section-desc {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(62, 86, 221, 0.2);
}

.service-card:hover .service-title {
  color: #3e56dd;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: black;
}

.service-desc {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* BTN */
.btn-primary {
  background: rgb(85, 85, 226);
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background: #0c5a51;
}

/* SECTION COMMENT NOUS TRAVAILLONS */
.container-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
}

.left-column,
.right-column {
  flex: 1;
}

.left-column img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.animated-section .section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--dark);
}

.section-title .highlight {
  color: rgb(85, 85, 226);
}

.animated-section .section-desc {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* SECTION ABOUT */
.new-about {
  padding: 40px 0;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 55px;
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.3;
}

.about-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-text h2 span {
  color: rgb(85, 85, 226);
  
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 80%;
  max-width: 500px;
  border-radius: 12px;
  object-fit: cover;
}

/* Responsive mobile */
@media (max-width: 850px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    order: -1;
  }

  .container-flex {
    flex-direction: column;
    text-align: center;
  }

  .step-box {
    justify-content: center;
    text-align: left;
  }
}

/* Titre principal de page */
.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--dark);
}

/* Introduction */
.about-intro p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 18px;
}

/* Équipe, mission, valeurs, pourquoi choisir */
.team h2,
.mission h2,
.values h2,
.why-choose-us h2 {
  font-size: 2.2rem;
  color: black;
  font-weight: 700;
  border-left: 5px solid black;
  padding-left: 12px;
  margin-bottom: 25px;
}

/* Listes avec icônes */
.highlight-list {
  padding: 0;
  list-style: none;
}

.highlight-list li {
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-left: 28px;
  color: #444;
  position: relative;
}

.highlight-list li::before {
  content: attr(data-icon);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
}

/* Mission & Pourquoi choisir */
.mission ul,
.why-choose-us ul {
  list-style-position: inside;
  margin-left: 15px;
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.mission ul li,
.why-choose-us ul li {
  margin-bottom: 12px;
}

/* Responsive simple */
@media (max-width: 700px) {
  .page-title {
    font-size: 2rem;
  }

  .team h2,
  .mission h2,
  .values h2,
  .why-choose-us h2 {
    font-size: 1.8rem;
  }
}

/* HERO APROPOS */
.hero-apropos {
  position: relative;
  padding: 150px 0 220px;
  color: white;
  text-align: center;
  background: url('images/bureaux.jpg') no-repeat center center/cover;
  margin-top: -72px;
}

.hero-apropos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-apropos .container-apropos {
  position: relative;
  z-index: 1;
}

.container-apropos h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ================================= */
/* SECTION VALEURS - VERSION PROPRE */
/* ================================= */

.values .highlight-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 sur PC */
  gap: 15px;
  padding: 0;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.values .flip-card {
  height: 190px;
  background: transparent;
  perspective: 1000px;
  cursor: pointer;
}

.values .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.values .flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.values .flip-card-front,
.values .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.values .flip-card-front {
  background: #e4e4e4;
  color: #444;
  font-weight: 700;
  font-size: 1.2rem;
  gap: 15px;
}

.values .flip-card-front .icon {
  font-size: 3.5rem;
}

.values .flip-card-back {
  background: rgb(85, 85, 226);
  color: white;
  transform: rotateY(180deg);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  box-shadow: inset 0 0 10px #ccc;
}

.highlight-apropos {
  color: rgb(85, 85, 226);
}

/* SECTION COMMENT NOUS TRAVAILLONS — version avec boutons cliquables */
.animated-section {
  padding: 60px 0;
  background: var(--bg);
}

.container-flex {
  display: flex;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.left-column img,
.work-img {
  width: 420px;
  height: auto;
  margin-left: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* BOUTONS CLIQUABLES */
.step-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-radius: 12px;
  background: white;
  border: 2px solid #dbeafe;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateX(40px);
  animation: fadeInRight 1.2s ease forwards;
}

.step-box:nth-child(1) {
  animation-delay: 0.2s;
}

.step-box:nth-child(2) {
  animation-delay: 0.35s;
}

.step-box:nth-child(3) {
  animation-delay: 0.5s;
}

.step-box:nth-child(4) {
  animation-delay: 0.65s;
}

.step-box:hover {
  background: #eef5ff;
  transform: translateX(10px);
  border-color: #3b82f6;
}

/* Icône ronde */
.step-icon {
  width: 65px;
  height: 65px;
  background: white;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #1e40af;
}

/* Texte du bouton */
.step-content h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
}

.step-content p {
  margin-top: 5px;
  font-size: 0.95rem;
  color: #555;
}

/* Responsive */
@media (max-width: 850px) {
  .container-flex {
    flex-direction: column;
    text-align: center;
  }

  .step-box {
    justify-content: center;
    text-align: left;
  }
}

/* HERO construction */
.hero-construction {
  position: relative;
  padding: 100px 0 220px;
  color: white;
  text-align: center;
  background: url('images/construction-home1.jpg') no-repeat center center/cover;
  margin-top: -72px;
}

.hero-construction::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-construction p {
  position: relative;
  padding-left: 20px; /* espace pour la barre */
  transition: all 0.3s ease;
  text-align: left;
  margin-left: 90px;
  top: -20px;
}

.hero-construction .container-construction {
  position: relative;
  z-index: 1;
}

.container-construction h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 100px;
}

.hero-renovation {
  position: relative;
  padding: 100px 0 220px;
  color: white;
  text-align: center;
  background: url('images/renovation.jpg') no-repeat center center/cover;
  margin-top: -72px;
}

.hero-renovation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-renovation .container-renovation {
  position: relative;
  z-index: 1;
}

.container-renovation h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 100px;
}

.hero-renovation p {
  position: relative;
  padding-left: 20px; /* espace pour la barre */
  transition: all 0.3s ease;
  text-align: left;
  margin-left: 90px;
  top: -20px;
}

.btn-devis {
  background:rgb(85, 85, 226);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 0px;
  transition: background-color 0.3s ease;
}

.hero-maconnerie {
  position: relative;
  padding: 100px 0 220px;
  color: white;
  text-align: center;
  background: url('images/maconnerie-home.jpg') no-repeat center center/cover;
  margin-top: -72px;
}

.hero-maconnerie::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-maconnerie .container-maconnerie {
  position: relative;
  z-index: 1;
}

.container-maconnerie h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 100px;
}

.hero-maconnerie p {
  position: relative;
  padding-left: 20px; /* espace pour la barre */
  transition: all 0.3s ease;
  text-align: left;
  margin-left: 90px;
  top: -20px;
}

.hero-electricite {
  position: relative;
  padding: 100px 0 220px;
  color: white;
  text-align: center;
  background: url('images/electricite.jpg') no-repeat center center/cover;
  margin-top: -72px;
}

.hero-electricite::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-electricite .container-electricite {
  position: relative;
  z-index: 1;
}

.container-electricite h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 100px;
}

.hero-electricite p {
  position: relative;
  padding-left: 20px; /* espace pour la barre */
  transition: all 0.3s ease;
  text-align: left;
  margin-left: 90px;
  top: -20px;
}

.hero-plomberie {
  position: relative;
  padding: 100px 0 220px;
  color: white;
  text-align: center;
  background: url('images/plomberie-page.jpg') no-repeat center center/cover;
  margin-top: -72px;
}

.hero-plomberie::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-plomberie .container-plomberie {
  position: relative;
  z-index: 1;
}

.container-plomberie h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 100px;
}

.hero-plomberie p {
  position: relative;
  padding-left: 20px; /* espace pour la barre */
  transition: all 0.3s ease;
  text-align: left;
  margin-left: 90px;
  top: -20px;
}

.hero-agencement {
  position: relative;
  padding: 100px 0 220px;
  color: white;
  text-align: center;
  background: url('images/agencement-home.jpg') no-repeat center center/cover;
  margin-top: -72px;
}

.hero-agencement::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-agencement .container-agencement {
  position: relative;
  z-index: 1;
}

.container-agencement h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 100px;
}

.hero-agencement p {
  position: relative;
  padding-left: 20px; /* espace pour la barre */
  transition: all 0.3s ease;
  text-align: left;
  margin-left: 90px;
  top: -20px;
}

.contact-infos {
  background: white;
  padding: 80px 0;
}

.infos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.info-box h3 {
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111;
}

.info-box p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

.info-box a {
  color: inherit;
  text-decoration: none;
}

.info-icon {
  font-size: 38px;
  margin-bottom: 20px;
  color: #111;
}

/* Responsive */
@media (max-width: 800px) {
  .infos-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* FOOTER PRO */
.site-footer-pro {
  background: #111827;
  color: #d1d5db;
  font-size: 0.95rem;
}

.footer-top {
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-col p {
  line-height: 1.6;
  margin-top: 10px;
}

.footer-logo {
  width: 140px;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-col a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #3e56dd;
}

/* BAS DU FOOTER */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 15px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  color: #3e56dd;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* LOGO FOOTER - VISIBILITÉ PRO */
.footer-logo {
  width: 150px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.contact-section {
  padding: 70px 0;
  background: #f9fafb;
}

.contact-container {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* COLONNE INFO */
.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-info p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-details {
  list-style: none;
  padding: 0;
}

.contact-details li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

/* FORMULAIRE */
.contact-form {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contact-form h3 {
  font-size: 1.6rem;
  margin-bottom: 25px;
}

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

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgb(85, 85, 226);
}

/* RESPONSIVE */
@media (max-width: 850px) {
  .contact-container {
    flex-direction: column;
  }
}

/* HERO */
.portfolio-hero {
  padding: 120px 0 70px;
  background: #f5f5f5;
  text-align: center;
}

.portfolio-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* FILTRES */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  margin-top: 20px;
}

.filter-btn {
  padding: 10px 22px;
  border: none;
  background: #e0e0e0;
  cursor: pointer;
  border-radius: 30px;
  font-weight: 600;
}

.filter-btn.active {
  background: #000;
  color: #fff;
}

/* GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* ITEM */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.portfolio-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform .4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* OVERLAY */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  color: #fff;
}

.portfolio-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.portfolio-overlay span {
  font-size: .9rem;
  opacity: .85;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Très petits écrans (mobile, portrait) */
@media (max-width: 480px) {
  /* Container : réduire les paddings */
  .container {
    padding: 0 10px;
  }
  
  /* Hero : réduire la hauteur et taille de texte */
  .hero {
    padding: 150px 0 140px;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Hero boutons : empilement vertical */
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Services grid : une seule colonne */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Service cards : plus d’espace */
  .service-card {
    padding: 15px;
  }
  
  /* Navigation principale : passer en menu hamburger (à prévoir si pas déjà fait) */
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  /* Header : ajustement hauteur et padding */
  .site-header {
    height: 60px;
    padding: 0 10px;
  }

  /* Footer : centrer contenu */
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  
  /* About container : colonne et texte centré */
  .about-container {
    flex-direction: column;
    padding: 0 10px;
    text-align: center;
  }

  .about-image img {
    width: 100%;
    max-width: none;
  }
  
  /* Container-flex (section comment nous travaillons) : colonne */
  .container-flex {
    flex-direction: column;
    padding: 20px 10px;
    gap: 25px;
  }
  
  /* Left and right columns full width */
  .left-column,
  .right-column {
    flex: none;
    width: 100%;
  }

  /* Step box text centré */
  .step-box {
    justify-content: center;
    text-align: center;
  }

  /* Portfolio grid : 1 colonne */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-toggle {
  display: none;      /* invisible sur PC */
  cursor: pointer;
  position: fixed;    /* toujours visible même avec hero/z-index */
  top: 20px;
  right: 20px;
  z-index: 2000;      /* au-dessus de tous les hero */
}


/* Mobile menu toggle */
@media (max-width: 900px) {

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -300px; /* caché à droite au départ */
    width: 250px;
    height: 100%;
    background: #333;
    color: white;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
    flex-direction: column;
  }

  /* Menu visible */
  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .main-nav li {
    border-bottom: 1px solid #444;
  }

  .main-nav li a,
  .main-nav li span {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
  }

  .main-nav li.has-submenu .submenu {
    display: none;
    background: #444;
  }

  .main-nav li.has-submenu.active .submenu {
    display: block;
  }

  .main-nav li.has-submenu > span {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
    .hero, .hero-apropos, .hero-construction, .hero-renovation, .hero-maconnerie, .hero-electricite, .hero-plomberie, .hero-agencement {
        background-position: top center;
    }
}

@media (max-width: 600px) {
    .hero h1, .hero-apropos h1, .hero-construction h1, .hero-renovation h1, .hero-maconnerie h1, .hero-electricite h1, .hero-plomberie h1, .hero-agencement h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .contact-form {
        padding: 20px;
    }
}
@media (max-width: 480px) {
    .container, .container-flex, .about-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* Responsive : tablette */
@media (max-width: 992px) {
  .values .highlight-list {
    grid-template-columns: repeat(3, 1fr); /* 3 cartes par ligne sur tablette */
  }

  .values .flip-card {
    height: 180px; /* conserve la hauteur */
  }
}

@media (max-width: 600px) {
  .values .highlight-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .values .flip-card {
    height: 170px;
  }

  .values .flip-card-front,
  .values .flip-card-back {
    padding: 12px;
  }

  .values .flip-card-back p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* ======================================= */
/* CORRECTION DÉBORDEMENT MOBILE          */
/* ======================================= */
@media (max-width: 600px) {
    /* Empêche tout débordement horizontal */
    html, body {
        overflow-x: hidden;
    }

    /* Héros : enlever les margin-left excessives */
    .hero-construction p,
    .hero-construction h1,
    .hero-renovation p,
    .hero-renovation h1,
    .hero-maconnerie p,
    .hero-maconnerie h1,
    .hero-electricite p,
    .hero-electricite h1,
    .hero-plomberie p,
    .hero-plomberie h1,
    .hero-agencement p,
    .hero-agencement h1 {
        margin-left: 0 !important;
        padding-left: 10px !important;
        text-align: center !important;
    }

    /* Images fixes trop larges */
    .left-column img,
    .work-img,
    .about-image img {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    /* Containers flexibles : colonne et padding réduit */
    .container-flex,
    .about-container,
    .container,
    .container-apropos {
        flex-direction: column !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
    }

    /* Step box : centré */
    .step-box {
        justify-content: center !important;
        text-align: center !important;
    }

    /* Heroes backgrounds : centrer pour mobile */
    .hero, .hero-apropos, .hero-construction, .hero-renovation, 
    .hero-maconnerie, .hero-electricite, .hero-plomberie, .hero-agencement {
        background-position: top center !important;
    }
}

@media (max-width: 900px) {

  .main-nav ul li.has-submenu .submenu {
    position: static;        /* IMPORTANT */
    width: 100%;
    box-shadow: none;
    background: #444;
    padding-left: 0;
  }

  .main-nav ul li.has-submenu:hover .submenu {
    display: none; /* désactive le hover PC */
  }

  .main-nav li.has-submenu.active .submenu {
    display: block;
  }

}
@media (max-width: 900px) {

  /* Span parent du sous-menu */
  .main-nav li.has-submenu > span {
    display: block;           /* occupe toute la largeur */
    width: 100%;              /* full width */
    padding: 15px 20px;       /* même padding que les <a> */
    cursor: pointer;
    box-sizing: border-box;   /* pour inclure padding dans la largeur */
    font-weight: 600;
    color: white;
    text-align: left;         /* comme les liens */
  }

  /* Assurer que le li prend toute la largeur */
  .main-nav li.has-submenu {
    width: 100%;
  }

  /* Sous-menu mobile */
  .main-nav li.has-submenu .submenu {
    display: none;
    background: #444;
    padding-left: 0;
  }

  /* Sous-menu ouvert */
  .main-nav li.has-submenu.active .submenu {
    display: block;
  }
}

/* FILTRES PORTFOLIO - MOBILE */
@media (max-width: 700px) {
  .portfolio-filters {
    display: flex;
    flex-wrap: wrap;        /* permet aux boutons de passer à la ligne */
    justify-content: center;
    gap: 10px;              /* espace entre boutons */
    margin-bottom: 20px;
  }

  .portfolio-filters .filter-btn {
    flex: 1 1 calc(50% - 10px); /* 2 boutons par ligne */
    padding: 10px;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .portfolio-filters .filter-btn {
    flex: 1 1 100%;       /* un bouton par ligne sur très petit écran */
    font-size: 0.9rem;
    padding: 10px 0;
  }
}
