/* ==================== */
/* 1. Général et Variables */
/* ==================== */ :root {
  --primary-color: #0ca561;
  --secondary-color: #f46b4e;
  --text-color: #314462;
  --bg-light: #fabe04;
  --font-heading: "Figtree", sans-serif;
  --font-body: "Figtree", sans-serif;
}
/* Général */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}
a {
  transition: all 0.3s ease-in;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  width: 100%;
  line-height: 1.2;
  max-width: max-content;
}
.logo a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}
.logo img {
  height: 130px; /* Taille initiale du logo */
  transition: height 0.3s ease-in-out; /* Ajoute une transition pour une animation fluide */
}
/* ==================== */
/* 2. Typographie */
/* ==================== */
h1, h2, h3 {
  font-family: var(--font-heading);
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
  font-size: 16px;
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}
.notre-equipe-box strong {
  font-size: 18px;
  color: #0ca561;
  font-weight: 600;
}
/* ==================== */
/* 3. Boutons */
/* ==================== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover {
  background-color: #f46b4d;
}
.btn-secondary {
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
}
.notre-equipe-box .btn-secondary a {
  width: 100%;
  max-width: max-content
}
/* ============================ */
/* 4. Layout et Composants */
/* ============================ */
#nosinterventions, #notresavoirfaire, #devisrapidesous48h, #urgencedepannage {
  padding-top: 50px;
  margin-top: -50px;
  text-decoration: none;
}
/* Header */
.header {
  background-color: #fff;
  padding: 20px 0 0;
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 1px 1px 3px 3px #00457531;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .container div, .header .container nav {
  width: 100%;
}
.fixedHeader_navigation {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 20px 0; /* Espacement par défaut */
  transition: padding 0.3s ease-in-out;
}
.fixedHeader_navigation.scrolled {
  padding: 0px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.fixedHeader_navigation.scrolled .logo img {
  height: 65px;
}
/* Navigation */
.menu-toggle {
  display: none
}
.main-nav {
  text-align: center;
  display: flex;
  padding: 1em 0;
  max-width: 100%;
  width: 100%;
  height: auto;
  flex-grow: 1;
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  justify-content: flex-end;
}
.main-nav ul li {
  display: block;
  width: 100%;
  max-width: max-content;
  height: auto;
}
.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  border: solid 1px;
  padding: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 14px;
  background: #fabe04;
}
.main-nav a:hover {
  background: var(--secondary-color);
  color:#fff;
  border-color: var(--secondary-color);
}
.fixedHeader_navigation.scrolled .main-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
}
/* Contact Info */
.nav_phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-content: flex-end;
}
.technicals-contacts {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  background: transparent;
  display: flex;
  justify-content: flex-end;
}
.technicals-contacts a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 2em;
  background: #0ca561;
  padding: 10px;
  margin: 0;
  display: flex;
  max-width: max-content;
  align-items: center;
  justify-content: center;
  height: 50px;
  line-height: 1;
  border-radius: 100px;
  gap: 10px;
  transition: all 0.3s ease;
}
.technicals-contacts a:hover {
  background: #1886c6 !important;
}
.technicals-contacts a:before {
  content: '\f095';
  font-family: "Font Awesome 6 Pro";
  display: flex;
  width: 35px;
  height: 35px;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  background: #f46b4d;
  border-radius: 100px;
}
.fixedHeader_navigation.scrolled .technicals-contacts {
  max-width: max-content;
}
.fixedHeader_navigation.scrolled .technicals-contacts a {
  color: #FFF;
  background-color: #0ca561;
  border: 0 solid var(--primary-color);
}
.fixedHeader_navigation.scrolled .nav_phone {
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex-direction: row;
  display: flex;
  gap: 1em;
  align-items: center;
}
/* Sections */
section {
  padding: 50px 0;
}
.interventions_section, .contact-form-section {
  background-color: #fbbd05;
}
.interventions_section, .contact-form-section h2, .interventions_section, .wrapper h2 {
  color: #fff;
}
.required_input {
  max-width: 600px;
  width: 100%;
  margin: 1em auto;
  color: white;
  font-size: 12px;
  text-align: right;
}
/* highlight-box Section */
.highlight-box {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  background: url('img/couverture_toiture_peinture_ext-et-int.webp') no-repeat center center/cover;
  box-sizing: border-box;
  margin: 0;
}
.highlight-box-content {
  background: #323f62CC;
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}
.highlight-box p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.banner h1 {
  color: #fff;
}
/* Services */
.interventions_grids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}
.interventions_items {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.interventions_items:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.interventions_items i {
  font-size: 3rem;
  color: #f46b4d;
  margin-bottom: 15px;
}
.interventions_grids img {
  width: 100%;
  border-radius: 10px;
}
.interventions_grids p {
  display: block;
  min-height: 160px;
  color: #000;
}
/* About Section */
.notre-equipe-section .container {
  padding: 0 20px;
}
.notre-equipe-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}
.notre-equipe-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.notre-equipe-box a {
  max-width: max-content;
  display: flex;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  background: #0ca561;
  padding: 5px 10px 5px 5px;
  margin: 0;
  align-items: center;
  justify-content: center;
  height: 40px;
  line-height: 1;
  border-radius: 100px;
  gap: 10px;
  border: 0;
}
.notre-equipe-box a:before {
  content: '\f095';
  font-family: "Font Awesome 6 Pro";
  display: flex;
  width: 30px;
  height: 30px;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  background: #f46b4d;
  border-radius: 100px;
}
.notre-equipe-box a:hover {
  background: #1687c7;
}
.notre-equipe-image {
  flex: 1;
  text-align: center;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}
.notre-equipe-image img {
  max-width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  min-height: 460px;
}
/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  gap: 15px;
}
.contact-form input, .contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}
.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form .btn-primary {
  align-self: flex-start;
  background: #0ca561;
  font-size: 16px;
  text-transform: uppercase;
  border: 0;
}
.contact-form .btn-primary:hover {
  cursor: pointer;
  background:#f36a4c
}
/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 20px 0;
}
.contact-details ul {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2em;
  flex-direction: row;
  gap: 1em;
  flex-wrap: wrap;
}
.contact-details li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.contact-details li i:before {
  font-family: "Font Awesome 6 Pro";
  display: flex;
  width: 35px;
  height: 35px;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  background: #f36b49;
  border-radius: 100px;
  color: #fff;
}
.contact-details li a {
  padding: 0 10px;
  display: flex;
  width: 100%;
  max-width: max-content;
  border-radius: 100px;
  height: 35px;
  align-items: center;
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.contact-details li a:hover {
  background: #0ca561;
  color: #fff;
}
.contact-details iframe {
  width: 100%;
  border-radius: 10px;
}
/* Mail Sent Page */
.mail-ok-expedition {
  background: url(img/couverture_toiture_peinture_ext-et-int.webp) no-repeat center center / cover;
  box-sizing: border-box;
  text-align: center;
  padding: 50px;
  line-height: 1.6;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 100%;
  justify-content: center;
  gap: 1em;
}
.mail-ok-expedition h1 {
  max-width: max-content;
  margin: 0 auto 10px;
  background: #FFF;
  padding: 10px;
}
.mail-ok-expedition .btn-primary {
  max-width: max-content;
  margin: 0 auto;
}
.mail-ok-expedition p {
  background: #000;
  color: #fff;
  max-width: max-content;
  margin: 0 auto;
  padding: 10px;
}
.mail-ok-expedition .logo {
  margin: 0 auto 10px;
  padding: 10px;
  background: #fff;
  width: 100%;
  max-width: max-content;
}
/* ============================ */
/* 5. Responsive Design */
/* ============================ */
@media (max-width: 768px) {
  /* Général mobile */
  .header .container {
    flex-direction: row;
    text-align: center;
    padding: 5px 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 2rem;
  }
  .highlight-box-content {
    padding: 20px;
  }
  .notre-equipe-content {
    flex-direction: column;
  }
  .contact-details ul {
    gap: 15px;
  }
  .contact-details li {
    line-height: 1;
  }
  section {
    padding: 50px 0;
  }
  .interventions_grids p {
    min-height: 0;
    margin-bottom: 2em;
  }
  /* Header mobile */
  .fixedHeader_navigation {
    padding: 0;
  }
  .logo, .technicals-contacts {
    position: relative;
    z-index: 1000
  }
  .logo img {
    height: 65px;
  }
  .nav_phone {
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    gap: 1em;
    align-items: center;
  }
  .fixedHeader_navigation.scrolled .nav_phone, .nav-phone {
    justify-content: flex-start;
    flex-direction: row-reverse;
    display: flex;
    align-items: center;
  }
  /* Contact mobile */
  .fixedHeader_navigation.scrolled .technicals-contacts a, .fixedHeader_navigation .technicals-contacts a {
    font-size: 18px;
    height: 40px;
  }
  .technicals-contacts a:before {
    font-size: 14px;
    width: 25px;
    height: 25px;
  }
  /* Menu Hamburger */
  .main-nav {
    margin-top: 0;
    width: 100%;
    justify-content: flex-start !important;
    max-width: max-content !important;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .menu-toggle {
    display: flex;
    cursor: pointer;
    width: 30px !important;
    height: 30px;
    position: relative;
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }
  .menu-toggle span {
    display: block;
    width: 98%;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-width: 30px;
  }
  .nav-links-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    padding-top: 80px;
    z-index: 999;
    transform: translateX(100%); /* Cache le menu */
    transition: transform 0.3s ease-in-out;
  }
  .nav-links-container ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1em;
    gap: 1em;
  }
  .nav-links-container li {
    width: 100%;
    text-align: center;
    padding: 0;
    border-bottom: 1px solid #eee;
    max-width: 100% !important;
  }
  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-links-container.is-active {
    transform: translateX(0); /* Fait apparaître le menu */
  }
}