/* ==================== BASE ==================== */
body {
  background-image: none !important;
  background-color: #ffffdf !important;
  overflow-x: hidden;
}

h2, h3, footer, .site-footer {
  color: #525763;
}

/* ==================== MENU ==================== */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

/* ================ DROPDOWN DESKTOP =============== */
@media (min-width: 768px) {
  .primary-nav__menu-item--has-children:hover > .primary-nav__menu--level-2 {
    display: block;
  }

  .primary-nav__menu--level-2 {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 6px;
    z-index: 1000;
  }

  .primary-nav__menu-item--has-children {
    position: relative;
  }

  .primary-nav__menu--level-2 a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #212121;
  }

  .primary-nav__menu--level-2 a:hover {
    background-color: #f3971d;
    color: white;
  }
}

/* ==================== LAYOUT ==================== */
.layout-container {
  margin: 0 auto;
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 768px) {
  .layout-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ==================== LOGO ==================== */
.site-branding__logo,
.region-header__logo {
  background: none !important;
  box-shadow: none !important;
  padding: 0.5rem !important;
}

.site-logo img {
  max-height: 60px;
  height: auto;
  width: auto;
  display: block;
  padding: 0; 
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

#block-ebitdata-theme-site-branding {
  background: none !important;
  box-shadow: none !important;
}

/* ==================== MENU MOBILE ==================== */
@media (max-width: 767px) {
  .header-nav {
    width: 100%;
    overflow-x: hidden;
  }

  .primary-nav {
    width: 100%;
  }

  .primary-nav__menu {
    width: 100%;
    padding: 1rem 0;
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

  .primary-nav__menu.is-active {
    display: block;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
  }

  .primary-nav__menu a {
    display: block;
    padding: 1rem;
    color: #212121;
    text-align: left;
    text-decoration: none;
  }

  .primary-nav__menu--level-2 {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    background: none;
  }

  .primary-nav__menu--level-2 a {
    padding: 0.5rem 1rem;
    display: block;
    color: #212121;
  }

  .primary-nav__menu-item--has-children > button.primary-nav__submenu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #f3971d;
    padding: 0 0.5rem;
  }
}

/* ==================== FOOTER ==================== */
.site-footer__inner {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-top: 1rem;
  padding-bottom: 0;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1rem;
  background-color: #d6d4d0;
  color: #212121;
  font-size: 0.95rem;
  border-top: 1px solid #ccc;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #212121;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-links a:hover {
  color: #f3971d;
  text-decoration: none;
}

.footer-wrapper .footer-copyright {
  white-space: nowrap;
  font-size: 0.85rem;
  color: #525763;
}

@media (max-width: 767px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-links a {
    display: block;
    font-size: 1rem;
  }

  .footer-wrapper .footer-copyright {
    font-size: 0.9rem;
  }
}

/* ==================== AUTRES SECTIONS ==================== */
/* HERO BANNER, DOMAINES D’INTERVENTION, BLOG, ACTUALITÉS, BOUTONS, TÉMOIGNAGES, etc. */
/* Ils ne perturbent pas le menu */

/* ==================== HERO BANNER (2 COLONNES)  ==================== */
#block-ebitdata-theme-01herocta .block-content--type-bloc-personnalise-hero-2-colonne {
  background-color: #fff4e5;
  border-radius: 16px;
  padding: 3rem;
  margin: 2rem 0;
  overflow: hidden;
}

.ds-2col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;
}

.ds-2col > .group-left {
  width: 55%;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ds-2col > .group-right {
  width: 45%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-2col .group-left h1 {
  font-size: 2.3rem;
  line-height: 1.4;
  color: #212121;
  font-weight: 700;
  margin-bottom: 2rem;
}

.ds-2col .group-left p {
  margin: 0;
}

.ds-2col .group-right img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .ds-2col {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .ds-2col > .group-left,
  .ds-2col > .group-right {
    width: 100%;
    padding: 0;
  }

  .ds-2col .group-left h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .ds-2col .group-right img {
    max-height: 200px;
  }
}


/* ==================== DOMAINE D'INTERVENTION  ==================== */
.tiles-section {
  padding: 3rem 1rem;
  text-align: center;
}

.tiles {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.tile {
  flex: 1 1 30%;
  max-width: 320px;
  background-color: #fff4e5;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.tile img {
  margin-bottom: 1rem;
}

.tile h3 {
  font-size: 1.15rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.tile p {
  line-height: 1.4;
}

.tile:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .tiles {
    flex-direction: column;
    align-items: center;
  }

  .tile {
    width: 100%;
    max-width: 100%;
  }
}

/* ==================== BOUTONS  ==================== */

.cta-button,
a.read-more {
  display: inline-block;
  background-color: #f3971d;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-button:hover,
a.read-more:hover {
  background-color: #d87f0c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: white;
}

a.read-more {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  border: 1px solid #f3971d;
  border-radius: 12px;
}

/* ==================== ACTUALITÉS / BLOG  ==================== */

.view-blog {
  padding: 3rem 1rem;
}

.view-blog .views-view-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.view-blog .views-row {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: 320px;
  background-color: #fff4e5;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.view-blog .views-row:hover {
  transform: translateY(-5px);
}

.view-blog .views-field-field-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.view-blog h3,
.view-blog .views-field-title a {
  font-size: 1.1rem;
  color: #f3971d;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.view-blog .views-field-body {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
  margin-top: 0.5rem;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .view-blog .views-view-grid {
    flex-direction: column;
    align-items: center;
  }

  .view-blog .views-row {
    max-width: 100%;
  }
}

/* ==================== TÉMOIGNAGES  ==================== */
.testimonial {
  font-size: 1.3rem;
  font-style: italic;
  margin: 3rem auto;
  max-width: 800px;
  text-align: center;
}
/* ==================== BLOC DIAGNOSTIC TEMPORAIRE  ==================== */
@media (max-width: 767px) {
  /* Le conteneur du menu doit être visible quand actif */
  #header-nav.is-active {
    display: block;
    padding: 1rem;
    background-color: #fff;
    z-index: 999;
  }

  /* La liste principale du menu doit être affichée */
  .primary-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
    margin: 1rem 0;
    list-style: none;
  }

  .primary-nav__menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #212121;
    text-decoration: none;
    font-weight: bold;
  }

  .primary-nav__menu a:hover {
    color: #f3971d;
  }

  /* Overlay (si utilisé) */
  .header-nav__overlay.is-active {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 998;
  }

  /* Empêche défilement horizontal */
  body.is-fixed {
    overflow: hidden;
  }
}
