/* ============================================================
   Le Plan Rénov — Refonte de l'en-tête (Bootstrap 4)
   CSS chargé après style.css afin de conserver les autres modules.
   ============================================================ */

/* Barre supérieure : identité à gauche, navigation horizontale, contact. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(28, 47, 70, 0.10);
  box-shadow: 0 4px 24px rgba(28, 47, 70, 0.055);
}
.site-header__inner {
  position: relative;
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: clamp(12px, 2vw, 34px);
  min-height: 105px;
}
.site-header__brand {
  flex: 0 0 auto;
  padding: 6px 0;
  line-height: 0;
}
.site-header__brand img {
  width: 116px;
  height: auto;
  display: block;
}
.site-header__contact {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--tertiary);
  padding: 13px 15px;
  border-radius: 2px;
  font-family: var(--mainfont);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.site-header__contact:hover,
.site-header__contact:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.site-header__contact svg,
.site-header__contact i { font-size: 14px; }

/* Neutralisation ciblée de l'ancien menu en colonne et du menu fixe. */
.site-header .menubox,
.site-header .menubox.fixed {
  position: static !important;
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
  z-index: auto;
}
.site-header .inner-menubox,
.site-header .navbar {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
  padding: 0;
  border: none;
  background: transparent;
  position: static;
}
.site-header .navbar-collapse { justify-content: center; }
.site-header .navbar-nav,
.site-header .menubox.fixed .navbar-nav {
  display: flex;
  width: auto;
  padding: 0;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: clamp(1px, 0.5vw, 12px);
}
.site-header .navbar-nav > .nav-item {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  border: none;
}
.site-header .navbar .navbar-nav > .nav-item > .nav-link,
.site-header .menubox.fixed .navbar-nav > .nav-item > .nav-link {
  display: block;
  position: relative;
  padding: 14px 8px;
  font-family: var(--mainfont);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-transform: none;
  color: var(--back);
  background: transparent;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-header .navbar-nav > .nav-item > .nav-link::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;
  background: var(--second);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-header .navbar-nav > .nav-item:hover > .nav-link,
.site-header .navbar-nav > .nav-item.active > .nav-link,
.site-header .navbar-nav > .nav-item > .nav-link:focus {
  background: transparent;
  color: var(--tertiary);
}
.site-header .navbar-nav > .nav-item:hover > .nav-link::before,
.site-header .navbar-nav > .nav-item.active > .nav-link::before,
.site-header .navbar-nav > .nav-item > .nav-link:focus::before {
  transform: scaleX(1);
}
.site-header .dropdown-toggle::after { margin-left: 6px; vertical-align: 3px; }
.site-header .dropdown-menu,
.site-header .fixed .dropdown-menu {
  position: absolute;
  left: 0;
  right: auto;
  top: 100%;
  min-width: 222px;
  margin: 0;
  padding: 8px 0;
  border: 1px solid rgba(28, 47, 70, 0.07);
  border-top: 3px solid var(--second);
  border-radius: 0 0 3px 3px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(28, 47, 70, 0.15);
}
.site-header .dropdown-menu li { display: block; }
.site-header .dropdown-menu .dropdown-item {
  white-space: normal;
  padding: 11px 18px;
  color: var(--back);
  font-size: 15px;
  font-weight: 500;
  background: transparent;
}
.site-header .dropdown-menu .dropdown-item:hover,
.site-header .dropdown-menu .dropdown-item:focus,
.site-header .dropdown-menu .dropdown-item.active {
  background: #f3f7f7;
  color: #237c8f;
}
@media (min-width: 1200px) {
  .site-header .navbar-nav > .dropdown:hover > .dropdown-menu,
  .site-header .navbar-nav > .dropdown:focus-within > .dropdown-menu { display: block; }
}

/* Vidéo d'accueil, conservée à son ratio natif (2048 × 1080). */
.header.hero {
  display: block;
  width: 100%;
  max-width: 1400px;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 24px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.hero .hero__media {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #e4e2d7 url('../images/video-poster.jpg') center / cover no-repeat;
}
.hero .hero__media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: contain !important;
  object-position: center center;
  background: #e4e2d7;
}
.hero--home .hero__media { aspect-ratio: 2048 / 1080; }
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 57%, rgba(12, 31, 47, 0.70) 100%);
}
.hero__home-caption {
  position: absolute;
  left: clamp(22px, 5.5%, 80px);
  bottom: clamp(18px, 5%, 72px);
  z-index: 1;
  max-width: 630px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.17);
}
.hero__eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  font: 600 12px/1.5 var(--mainfont);
}
.hero__home-caption .hero__eyebrow { color: #fff; }
.hero__home-caption p {
  margin: 11px 0 0;
  font: 400 clamp(27px, 3.7vw, 53px)/1.1 var(--mainfont);
}
.hero__footline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: var(--back);
  color: #fff;
  padding: 16px clamp(22px, 5.5%, 80px);
  font: 500 13px/1.4 var(--mainfont);
  letter-spacing: 0.08em;
}
.hero__footline span:last-child { color: #d9ad72; }

/* Pages intérieures : identification de la page immédiatement visible.
   Vidéo sur la droite en 16/9+ naturel, sans zoom ni recadrage. */
.hero--interior .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.89fr) minmax(0, 1.11fr);
  align-items: stretch;
  width: 100%;
  background: var(--back);
  border-bottom: 5px solid var(--second);
}
.hero--interior .hero__page-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4.2vw, 66px);
  color: #fff;
}
.hero--interior .hero__eyebrow { color: #c9e1e6; }
.hero--interior .hero__eyebrow span { padding: 0 7px; color: var(--second); }
.hero__accent {
  width: 52px;
  height: 3px;
  margin: 20px 0;
  background: var(--second);
}
.hero__page-title {
  margin: 0 0 15px;
  color: #fff;
  font: 400 clamp(29px, 3.5vw, 50px)/1.08 var(--mainfont);
  overflow-wrap: break-word;
}
.hero__page-subtitle {
  margin: 0 0 22px;
  color: #e1eaf0;
  font: 400 clamp(15px, 1.5vw, 19px)/1.45 var(--mainfont);
  max-width: 370px;
}
.hero__page-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e3b77d;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(227, 183, 125, .65);
  padding-bottom: 6px;
}
.hero__page-more:hover,
.hero__page-more:focus { color: #fff; border-bottom-color: #fff; }
.hero--interior .hero__media {
  align-self: center;
  aspect-ratio: 2048 / 1080;
  background-color: #e3e0d7;
}
.hero--interior .hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 4px solid var(--second);
  pointer-events: none;
}

/* Le long texte de présentation est désormais une vraie section de l'accueil. */
.intro-home {
  width: min(1250px, calc(100% - 60px));
  margin: 0 auto;
  padding: clamp(65px, 7vw, 110px) 0 clamp(25px, 5vw, 66px);
}
.intro-home__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .5fr);
  align-items: end;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #d6dad9;
}
.intro-home__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #397f8c;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.intro-home h1 {
  color: var(--back);
  font: 400 clamp(35px, 4.6vw, 63px)/1.08 var(--mainfont);
  max-width: 850px;
  margin: 0;
}
.intro-home h1 em { color: var(--primary); font-style: normal; }
.intro-home__signature {
  justify-self: end;
  align-self: end;
  padding-bottom: 6px;
  color: var(--tertiary);
  font-size: 18px;
  line-height: 1.35;
}
.intro-home__signature-line {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--second);
  margin-bottom: 20px;
}
.intro-home__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 7vw, 95px);
  padding-top: 38px;
}
.intro-home__content p {
  font-size: 18px;
  line-height: 1.7;
  color: #46525b;
  margin: 0 0 15px;
}
.intro-home__content .intro-home__lead {
  font-size: clamp(20px, 2.05vw, 26px);
  line-height: 1.55;
  color: var(--back);
}
.intro-home__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tertiary);
  padding-bottom: 7px;
  margin-top: 11px;
  border-bottom: 2px solid var(--second);
}
.intro-home__link:hover,
.intro-home__link:focus { color: var(--primary); }

/* Le contenu reprend juste après le bandeau, sans énorme vide visuel. */
.page #axo-content > nav[aria-label="breadcrumb"] .breadcrumb { margin-top: 22px; }

@media (max-width: 1199.98px) {
  .site-header__inner { min-height: 88px; }
  .site-header__brand img { width: 100px; }
  .site-header .menubox { display: flex; justify-content: flex-end; }
  .site-header .navbar { justify-content: flex-end; }
  .site-header .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 6px;
    background: #f2f6f7;
    border: 1px solid #dbe4e5;
    border-radius: 3px;
  }
  .site-header .navbar-collapse {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 30px));
    background: #fff;
    padding: 12px;
    border-top: 3px solid var(--second);
    box-shadow: 0 19px 38px rgba(28, 47, 70, .22);
    z-index: 1040;
  }
  .site-header .navbar-collapse:not(.show) { display: none; }
  .site-header .navbar-nav,
  .site-header .menubox.fixed .navbar-nav {
    display: flex;
    align-items: stretch;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    padding: 0;
    gap: 0;
  }
  .site-header .navbar .navbar-nav > .nav-item > .nav-link,
  .site-header .menubox.fixed .navbar-nav > .nav-item > .nav-link {
    padding: 11px 13px !important;
    text-align: left;
    font-size: 16px;
  }
  .site-header .navbar-nav > .nav-item.active > .nav-link { background: #f4f7f7; }
  .site-header .navbar-nav > .nav-item > .nav-link::before { left: 13px; right: auto; width: 32px; bottom: 4px; }
  .site-header .dropdown-menu,
  .site-header .fixed .dropdown-menu {
    position: static !important;
    width: 100%;
    padding: 2px 0 7px 10px;
    min-width: 0;
    border: 0;
    border-left: 2px solid var(--second);
    box-shadow: none;
    background: #f8faf9;
  }
  /* L'ancien CSS affichait le sous-menu au simple survol, même sur mobile. */
  .site-header .navbar-nav li:hover > .dropdown-menu:not(.show) { display: none !important; }
  .site-header .dropdown-menu .dropdown-item { padding: 8px 12px; }
  .hero--interior .hero__page-intro { padding: 28px; }
  .hero__accent { margin: 13px 0; }
  .hero__page-subtitle { margin-bottom: 14px; }
}

@media (max-width: 900px) {
  .header.hero { width: min(100%, calc(100% - 30px)); margin-top: 15px; }
  .hero--interior .hero__inner { grid-template-columns: 1fr; }
  .hero--interior .hero__page-intro { padding: 26px 32px 30px; }
  .hero__page-title { font-size: clamp(30px, 5vw, 43px); margin-bottom: 8px; }
  .hero__page-subtitle { margin-bottom: 12px; }
  .hero--interior .hero__media::after { border-left: 0; border-top: 3px solid var(--second); }
  .intro-home__heading { grid-template-columns: 1fr; gap: 18px; }
  .intro-home__signature { justify-self: start; font-size: 16px; }
  .intro-home__signature-line { margin-bottom: 10px; }
}

@media (max-width: 767.98px) {
  .site-header__inner { width: calc(100% - 30px); min-height: 79px; gap: 10px; }
  .site-header__brand img { width: 87px; }
  .site-header__contact { font-size: 14px; padding: 10px; gap: 7px; }
  .header.hero,
  .page .header.hero { height: auto; min-height: 0; max-height: none; margin-bottom: 0; overflow: visible; }
  .hero__home-caption { left: 20px; bottom: 20px; }
  .hero__home-caption p { font-size: clamp(19px, 4vw, 30px); margin-top: 4px; }
  .hero__eyebrow { font-size: 10px; letter-spacing: .14em; }
  .hero__footline { padding: 14px 20px; font-size: 11px; }
  .intro-home { width: calc(100% - 38px); padding: 55px 0 30px; }
  .intro-home h1 { font-size: clamp(32px, 6vw, 46px); }
  .intro-home__content { grid-template-columns: 1fr; gap: 16px; padding-top: 28px; }
  .intro-home__content p { font-size: 17px; }
  .intro-home__content .intro-home__lead { font-size: 21px; }
}

@media (max-width: 480px) {
  .site-header__contact { width: 40px; height: 40px; padding: 0; }
  .site-header__contact span { display: none; }
  .hero__footline span:last-child { display: none; }
  .hero__home-caption { bottom: 12px; left: 14px; }
  .hero__home-caption .hero__eyebrow { font-size: 9px; }
  .hero__home-caption p { font-size: 21px; }
  .hero--interior .hero__page-intro { padding: 24px 22px; }
  .hero__page-title { font-size: 32px; }
}


/* Flèche de défilement : au-dessus de la vidéo, visible et cliquable.
   L'ancien btn_scroll.css initialise les calques a opacity: 0. */
.hero--home .btn_scroll {
  position: absolute;
  z-index: 5;
  bottom: 22px;
  left: 50%;
  width: 78px;
  height: 78px;
  margin: 0;
  transform: translateX(-50%);
  opacity: 1;
  cursor: pointer;
}
.hero--home .boxbtn_scroll {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform .25s ease;
}
.hero--home .boxbtn_scroll:hover,
.hero--home .boxbtn_scroll:focus-visible { transform: translateY(-4px); }
.hero--home .boxbtn_scroll:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.hero--home .btn_scroll .scroll-frame,
.hero--home .btn_scroll .scroll-down-arrow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 1;
  transform: none;
  object-fit: contain;
  pointer-events: none;
}
.hero--home .btn_scroll .scroll-down-arrow {
  animation: lprScrollArrow 2s ease-in-out infinite;
}
@keyframes lprScrollArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
.intro-home { scroll-margin-top: 110px; }
#intro-home-title { scroll-margin-top: 120px; }
@media (max-width: 1100px) {
  .hero--home .btn_scroll {
    left: auto;
    right: 16px;
    transform: none;
    bottom: 12px;
    width: 66px;
    height: 66px;
  }
}
@media (max-width: 480px) {
  .hero--home .btn_scroll {
    right: 5px;
    bottom: 3px;
    width: 50px;
    height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero--home .btn_scroll .scroll-down-arrow { animation: none; }
  .hero--home .boxbtn_scroll { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero video { display: none; }
  .site-header a { transition: none; }
}
