/* ============================================================
   HEADER — ONaCVG
   Contient : styles header principal + header sticky
   ============================================================ */

/* ── BODY ─────────────────────────────────────────────────── */
body {
  background-color: #f2f2f2 !important;
}
html { font-size: 16px; }

/* ── WRAPPER GLOBAL ──────────────────────────────────────── */

/* ── HEADER PRINCIPAL ────────────────────────────────────── */
.header-overlay {
  position: relative;
  z-index: 100;
  background: transparent !important;
}

.header-overlay .fr-header__body {
  background: transparent !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Layout : burger gauche | logos centre | nav+search droite */
.custom-header-row {
  display: flex;
  align-items: normal;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap !important;
  width: 100%;
  position: relative;
  margin: 0;
  margin-top: 20px;
}

.header-center-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 12%;
}

.header-nav-search-container {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: visible;
  width: fit-content;
  margin-right: 30%;
}

/* ── LOGOS ───────────────────────────────────────────────── */
.white-pill {
  background: white;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fr-header__logo {
  padding: 0.75rem !important;
  max-height: 100px;
  width: auto;
  background-color: #fff;
}

.fr-header__logo.white-pill {
  display: flex;
  align-items: center;
  width: 88px;
  justify-content: center;
}

.header-overlay .fr-logo {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2;
}

.fr-header__logo .fr-logo {
  font-size: 0.7rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.fr-header__operator.white-pill {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-overlay .fr-header__operator img.onacvg-logo {
  max-height: 70px;
  width: auto;
}

.onacvg-logo {
  max-height: 80px;
  width: auto;
}

/* Par défaut (non sticky) : blanc visible, couleur caché */
.fr-header .onacvg-logo__color { display: none; }
.fr-header .onacvg-logo { display: inline-block; }

/* Quand sticky : on inverse */
.fr-header.is-sticky .onacvg-logo { display: none; }
.fr-header.is-sticky .onacvg-logo__color { display: inline-block; }

/* ── NAV ─────────────────────────────────────────────────── */
.fr-header__menu {
  box-shadow: none !important;
}

.fr-menu {
  top: 68% !important;
}

.fr-nav__list {
  font-family: "Montserrat";
  font-size: 1.2rem;
  font-weight: 300;
}


.fr-nav__btn::after {
  content: none;
  --icon-size: none;
}
.fr-nav__btn {
    font-size: 0.9rem;
    font-weight: 300;
}
.header-nav-container {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 5px 0 !important;
  border-radius: 20px;
}

.fr-nav__item:not(:last-child) {
    border-right: 1px #efefef
  
}



.header-nav-container .fr-nav {
  margin: 0;
  padding: 0;
}

.header-nav-container .fr-nav__list {
  display: flex !important;
  flex-wrap: nowrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0;
}

.header-nav-container .fr-nav__item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  white-space: nowrap;
}

.header-nav-container .fr-nav__link {
  color: #161616 !important;
  padding: 1rem 1.25rem !important;
  display: block !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 400;
  background: transparent !important;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.header-nav-container .fr-nav__link:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.header-nav-container .current-menu-item .fr-nav__link {
  color: #000091 !important;
  font-weight: 500;
}

.header-navigation .fr-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* ── MON COMPTE ──────────────────────────────────────────── */
.header-mon-compte-btn {
  font-family: "Montserrat";
  background-color: #0d7bc6 !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 300 !important;
  white-space: nowrap;
  cursor: pointer;
  height: 100%;
}

.header-mon-compte-btn:hover {
  background-color: #1212ff !important;
}

.mon-compte-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
}

.mon-compte-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  min-width: 320px;
  z-index: 1000;
  padding: 2rem;
}

.mon-compte-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 14px solid white;
}

.mon-compte-wrapper:hover .mon-compte-dropdown {
  display: block;
}

.mon-compte-dropdown-inner {
  background: white;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mon-compte-connect-btn {
  display: block;
  width: 100%;
  background-color: #1e2b5c;
  color: white !important;
  text-align: center;
  padding: 1rem;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.mon-compte-connect-btn:hover {
  background-color: #000091;
}

.mon-compte-register {
  background-color: #f5f5f5;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #555;
  margin: -2rem;
  margin-top: 0;
}

.mon-compte-register a {
  color: #000091;
  text-decoration: underline;
}

/* ── SEARCH BUTTON ───────────────────────────────────────── */
.header-search-btn {
  background-color: #132a67 !important;
  color: white !important;
  padding: 0.75rem 1rem !important;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search-btn:hover {
  background-color: #1212ff !important;
}

.header-search-btn .fr-icon-search-line {
  font-size: 1.5rem;
}

/* ── SEARCH MODAL ────────────────────────────────────────── */
.search-modal {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.search-modal::backdrop {
  background: rgba(255, 255, 255, 0.98);
}

.search-modal[open] {
  display: block;
}

.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent !important;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
}

.search-modal-close .fr-icon-close-line {
  font-size: 2rem;
  color: #161616;
}

.search-modal-close:hover .fr-icon-close-line {
  color: #000091;
}

.search-modal-content {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
}

.search-input-group {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #132a67;
  padding-bottom: 0.5rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 3rem;
  font-weight: 400;
  color: #132a67;
  padding: 0.5rem 0;
  outline: none;
  font-family: "Karma";
}

.search-input::placeholder {
  color: #132a67;
  opacity: 1;
}

.search-input:focus {
  outline: none;
}

.search-submit-btn {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit-btn .fr-icon-search-line {
  font-size: 2rem;
  color: #000091;
}

.search-submit-btn:hover .fr-icon-search-line {
  color: #1212ff;
}

.search-helper-text {
  margin-top: 1rem;
  font-size: 1rem;
  color: #666;
  font-weight: 300;
}

/* ── CONTENU PRINCIPAL ───────────────────────────────────── */
#content {
  position: relative;
  z-index: 1;
  /* max-width: 1000px; */
  margin: 0 auto;
}

/* ============================================================
   HEADER STICKY
   ============================================================ */

/* New: make original header sticky when .is-sticky class is added */
.fr-header.header-overlay.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.fr-header.header-overlay.is-sticky .fr-header__body {
  background: white !important;
  padding-top: 0rem !important;
  padding-bottom: 0rem !important;
}

.fr-header.header-overlay.is-sticky .custom-header-row {
  margin-top: 0 !important;
  padding: 0;
}

.fr-header.header-overlay.is-sticky .white-pill {
  box-shadow: none !important;
}

.fr-header.header-overlay.is-sticky .header-nav-search-container {
  box-shadow: none !important;
  /*margin-right: 12vw !important;*/
}

.fr-header.header-overlay.is-sticky .onacvg-logo {
  max-height: 40px !important;
}

.fr-header.header-overlay.is-sticky .fr-header__logo {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fr-header.header-overlay.is-sticky .fr-logo {
  font-size: 0.4rem !important;
}

.fr-header.header-overlay.is-sticky .header-nav-container .fr-nav__link {
  font-size: 0.8rem !important;
  padding: 0.75rem 0.9rem !important;
}

.fr-header.header-overlay.is-sticky .header-mon-compte-btn {
  font-size: 0.8rem !important;
  padding: 0.5rem 1rem !important;
}

.fr-header.header-overlay.is-sticky .header-search-btn {
  padding: 0.5rem 0.75rem !important;
}

.fr-header.header-overlay.is-sticky .header-search-btn .fr-icon-search-line {
  font-size: 1.2rem !important;
}

/* Legacy: clone-based sticky (still in use) */
.header-sticky-clone .header-fr-container {
  background: white;
  height: 120px;
}

.header-sticky-clone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 990;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow: visible !important;
}

.header-sticky-clone.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.header-sticky-clone__inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Garder l'exacte même structure que le header original */
.header-sticky-clone .custom-header-row {
  margin-top: 0 !important;
}

/* Retirer les box-shadows des éléments */
.header-sticky-clone .white-pill {
  box-shadow: none !important;
}

.header-sticky-clone .header-nav-search-container {
  box-shadow: none !important;
  overflow: visible !important;
  position: relative;
}

.header-sticky-clone .header-nav-container {
  overflow: visible !important;
  position: relative;
}

.header-sticky-clone .fr-nav__item {
  position: relative;
}

.header-sticky-clone .fr-menu {
  z-index: 1001 !important;
  position: absolute !important;
  overflow: visible !important;
}

.header-sticky-clone .sub-menu {
  overflow: visible !important;
}

.header-sticky-clone .fr-header__operator {
  max-height: 50px !important;
  padding: 0.5rem !important;
}

/* Réduire la taille de la police et des icônes */
.header-sticky-clone .header-nav-container .fr-nav__link {
  font-size: 0.8rem !important;
  padding: 0.75rem 0.9rem !important;
}

.header-sticky-clone .header-mon-compte-btn {
  font-size: 0.8rem !important;
  padding: 0.5rem 1rem !important;
}

.header-sticky-clone .header-search-btn {
  padding: 0.5rem 0.75rem !important;
}

.header-sticky-clone .header-search-btn .fr-icon-search-line {
  font-size: 1.2rem !important;
}

/* Réduire la taille des logos */
.header-sticky-clone .onacvg-logo {
  max-height: 40px !important;
}

.header-sticky-clone .fr-header__logo {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-sticky-clone .fr-logo {
  font-size: 0.65rem !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.custom-footer {
  background-color: #3f42ca !important;
  color: #ffffff !important;
}

.footer-logos-block {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.footer-column-title {
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links-list li {
  margin-bottom: 0.5rem;
}

.footer-links-list li a,
.footer-links-list a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.9rem;
  background-image: none !important;
}

.footer-news-box {
  border: 1px solid #ffffff;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.footer-news-box a {
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  color: #ffffff !important;
  margin-right: 1rem;
  background-image: none !important;
}

.social-link span::before {
  --icon-size: 1.3rem;
}

.footer-copy p {
  color: #ffffff !important;
  margin: 0;
}

.footer-logos-block .fr-logo {
  font-size: 1rem;
  padding: 0.5rem;
  color: #161616 !important;
  margin: 0;
}

.footer-logos-block .fr-header__operator {
  padding: 0.5rem;
  border-left: 1px solid #ddd;
  margin-left: 0.5rem;
}

/* ============================================================
   TYPOGRAPHIE & COMPOSANTS COMMUNS
   ============================================================ */
.teaser {
  font-family: "Karma", serif;
  font-size: 2.5rem !important;
  color: #000000;
  line-height: 1.2;
  margin-bottom: 2rem;
  max-width: 30ch;
}

.intro,
.intro p {
  font-family: "Montserrat", "Arial", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 300 !important;
  line-height: 1.5 !important;
  margin-bottom: 1.5rem;
  max-width: 66ch;
}

.fr-h3,
.fr-h5,
.fr-accordion__btn {
  font-family: "Karma", serif !important;
}

/* Accordéons */
.custom-accordion-container .fr-accordion {
  box-shadow: none !important;
  border-top: none !important;
}

.custom-accordion-container .fr-accordion::before {
  display: none !important;
}

.custom-accordion-container .fr-accordion__title {
  border-bottom: 1px solid #000091 !important;
  padding-bottom: 10px;
}

.custom-accordion-container h2.fr-h3 {
  font-family: "Karma", serif !important;
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  color: #132a67 !important;
  margin-bottom: 2rem !important;
}

.custom-accordion-container .fr-accordion__btn {
  font-family: "Montserrat", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  color: #132a67 !important;
  text-align: left;
  padding: 1rem 0 !important;
  background-color: transparent !important;
}

.custom-accordion-container .fr-accordion__btn::after {
  --icon-size: 2rem;
  color: #132a67 !important;
}

.custom-accordion-container .fr-accordion__btn:hover {
  background-color: rgba(19, 42, 103, 0.05) !important;
}

.custom-accordion-section .fr-accordion {
  box-shadow: none !important;
  border-bottom: 1px solid #000091;
}

.custom-accordion-section .fr-accordion__btn {
  color: #000091 !important;
  font-weight: 400;
}

.demarche-soustitre {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 300;
}

.demarche-item h4.fr-h6 {
  font-family: "Montserrat", sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 300 !important;
  color: rgb(46, 46, 46) !important;
}

.intro-accordion {
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  color: #161616;
  max-width: 59ch;
}

.demarche-item {
  border-bottom: 1px solid #e5e5e5;
}

.demarche-item:last-child {
  border-bottom: none;
}

.fr-hr,
hr {
  background-size: 100% 0.5px !important;
}

.fr-hr {
  height: 1px;
  border: none;
}

/* Boutons personnalisés */
.custom-mq-btn {
  background-color: #1e2b5c !important;
  color: #ffffff !important;
  border: 1.5px solid #ffffff;
  border-radius: 4px !important;
  text-transform: uppercase;
  font-size: 0.8rem !important;
  font-weight: 700;
  padding: 0.6rem 1.2rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-mq-btn:hover {
  outline: 1px solid #1e2b5c;
  background-color: #000091 !important;
}

.custom-btn-demarche {
  background-color: #1e2b5c !important;
  color: #ffffff !important;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  width: auto;
  display: inline-flex;
}

.custom-btn-demarche:hover {
  background-color: #314282 !important;
}

.custom-demarche-row {
  border-top: 1px solid #e5e5e5;
  margin-top: 1rem;
}

/* Liens */
.related-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-action-high-grey);
  text-decoration: none;
  transition: background-color 0.2s;
}

.related-link-item .fr-icon-arrow-right-line {
  color: var(--artwork-minor-blue-france);
}

.situation-link {
  font-family: "Montserrat", "Arial", sans-serif !important;
  font-size: 1.125rem !important;
  font-weight: 300 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  text-decoration: none;
  color: #161616;
  transition: background-color 0.2s;
  background-image: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid #e5e5e5 !important;
}

.situation-link .fr-icon-arrow-right-line {
  color: #000091;
}

.custom-situations-btn {
  display: inline-flex;
  align-items: stretch;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  border: none;
  height: 50px;
}

.custom-situations-btn .btn-icon {
  background-color: #0078d4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  color: white;
}

.custom-situations-btn .btn-text {
  font-family: "Montserrat", "Arial", sans-serif !important;
  background-color: #122b62;
  color: white;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.custom-situations-btn:hover .btn-text {
  background-color: #000091;
}

/* Service */
.service-container {
  font-family: Arial, sans-serif;
  color: #333;
}

.btn-contact,
.btn-itineraire {
  background-color: #002366 !important;
  border-radius: 4px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-contact:hover {
  background-color: #001a4d !important;
}

.view-all-hours {
  color: #666;
  font-size: 0.8em;
  text-decoration: underline;
  display: block;
  margin-top: 5px;
  cursor: pointer;
}

.service-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

.horaires-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.horaires-table th,
.horaires-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .header-nav-search-container {
    margin-right: 0;
  }

  .header-center-group {
    margin-left: 0;
  }

  .header-nav-container {
    display: none !important;
  }

  .mon-compte-wrapper {
    display: none !important;
  }

}

@media (max-width: 992px) {
  .custom-header-row {
    flex-wrap: nowrap !important;
    justify-content: space-between;
  }

  .header-nav-search-container {
    background: transparent;
    box-shadow: none;
    margin-left: auto;
  }

  .header-center-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .header-fr-container {
    padding-top: 30px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .header-overlay .fr-header__operator img.onacvg-logo {
    max-height: 40px;
  }
}

@media (max-width: 576px) {
  .search-modal-close {
    top: 1rem;
    right: 1rem;
  }

  .search-modal-content {
    padding: 1rem;
  }

  .search-input {
    font-size: 1.75rem;
  }
  
}
