@import url('https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900&display=swap');

:root {
  --font-base: 'Lato', Arial, sans-serif;
  --transition-speed: 0.3s;
  --mobile: 768px;
  --tablet: 992px;
  --desktop: 1200px;
  --scroll-timing: cubic-bezier(0.76, 0, 0.24, 1);
  --site-outer-margin: 3%;
  --color-base: #292929;
  --color-action: #1a7384;
}

@media (max-width: 768px) {
  :root {
    --site-outer-margin: 5%;
  }
}

@media (max-width: 480px) {
  :root {
    --site-outer-margin: 7%;
  }
}

html {
  font-size: 18px;
  scroll-timeline: none; 
  overflow-y: scroll; 
  scrollbar-width: thin;
  scroll-padding: 2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Personnalisation de la barre de scroll pour Webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(155, 155, 155, 0.8);
}

img {
  -webkit-user-drag: none; /* Safari / Chrome */
  user-drag: none;
}

/* ---------------------------------------------------------------------------
RESET + GLOBALS
--------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-base);
    background: #fff;
    overflow-x: hidden;
    width: 100%;
}

main {
  padding: 6rem 0 3rem;
}

p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  p {
    font-size: 1.125rem;
    line-height: 1.3;
  }
}

li {
  list-style: none;
}

a {
  color: var(--color-base);
  transition: color 0.25s ease, text-decoration-color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--color-action);
}

a:focus-visible {
  color: var(--color-action);
  outline: 2px solid var(--color-action);
  outline-offset: 2px;
  text-decoration-color: var(--color-action);
}

.layout-container {
    padding-left: var(--site-outer-margin);
    padding-right: var(--site-outer-margin);
    transition: padding-left 0.3s ease, padding-right 0.3s ease;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


h1 {
  font-size: clamp(3rem, 9vw, 5rem);

  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 3.75rem);
  text-transform: uppercase;
  word-spacing: 0.2em;
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.5rem, 1.8vw + 0.85rem, 2.5rem);
}

.h5, h5 {
  font-size: 1.25rem;
  margin-bottom: 1.8rem;
}

.ccm-page ul li {
  font-size: 1.15rem;
}

body.default section.content {
  padding-top: 40px;
}


.pt-0 {
  padding-top: 0!important;
}

.pb-0 {
  padding-bottom: 0!important;
}
/* --- ALIAS BOOTSTRAP CONTAINER → LAYOUT-CONTAINER---------- */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  padding-left: var(--site-outer-margin);
  padding-right: var(--site-outer-margin);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  box-sizing: border-box;
  padding-top: 60px;
  padding-bottom: 60px;
}

.ccm-block-hero-image {
  padding: 60px 0;
}


.pt-0,
.pt-0 > .container,
.ccm-custom-style-container.pt-0, 
.ccm-custom-style-container.pt-0 > .container {
  padding-top: 0!important;
}

.pb-0,
.pb-0 > .container,
.ccm-custom-style-container.pb-0,
.ccm-custom-style-container.pb-0 > .container {
  padding-bottom: 0!important;
}



/* -------------------------------------------------------------------------------------
    Align-items-center -> .row child
------------------------------------------------------------------------------------- */
.ccm-custom-style-container.align-items-center .row,
.align-items-center > .container > .row,
.align-items-center > .layout-container > .row {
  align-items: center;
}

/* -------------------------------------------------------------------------------------
    GRID OVERRIDES: col-md-* -> 992px (like col-lg)
    - 768px - 991.98px -> 100% width
------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md,
  .col-md-auto,
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  [class*="offset-md-"] {
    margin-left: 0 !important;
  }
  /* Neutraliser l'ordre forcé des order-md-* pour retrouver l'ordre source */
  [class*="order-md-"] {
    order: initial !important;
  }
}

/* ---------------------------------------------------------------------------
    ANIMATIONS
--------------------------------------------------------------------------- */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  opacity: 1;
  animation: fadeOut 1.1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  pointer-events: none;
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.title-wrapper {
  opacity: 0;
}
.title-wrapper.animate {
  transform: translateY(40px);
  animation: titleFade 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.6s;
}

@keyframes titleFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation text-reveal */
.text-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.51, 0.355, 1),
              transform 0.8s cubic-bezier(0.215, 0.51, 0.355, 1);
}

.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-reveal--inline {
  display: inline-block;
}

.text-reveal--inline span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.51, 0.355, 1),
              transform 0.8s cubic-bezier(0.215, 0.51, 0.355, 1);
}

.text-reveal--inline.visible span {
  opacity: 1;
  transform: translateY(0);
}



/* -------------------------------------------------------------------------------------
    NAVIGATION & HEADER (Global)
------------------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  z-index: 1000;
  transition: transform var(--transition-speed);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}
.navbar.hidden {
  transform: translateY(-100%);
}

.logo,
.navbar nav a {
  mix-blend-mode: difference;
}
.logo {
  font-size: 1.75rem;
  font-weight: bold;
  color: white;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.navbar nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.navbar nav ul {
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.navbar nav li.has-dropdown {
  position: relative;
}
/* Icône chevron : indique qu’un lien a un sous-menu */
.navbar nav li.has-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 0.35em;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
.navbar nav li.has-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.navbar nav ul.sub-menu.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: 0;
  margin: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  list-style: none;
  flex-direction: column;
  gap: 0;
  z-index: 1001;
  /* Pont invisible : zone de survol continue entre lien parent et sous-menu */
  padding-top: 0.25rem;
}
.navbar nav li.has-dropdown:hover ul.sub-menu.dropdown,
.navbar nav li.has-dropdown ul.sub-menu.dropdown.is-open {
  display: flex;
}
.navbar nav ul.sub-menu.dropdown li {
  margin: 0;
  padding: 0;
}
.navbar nav ul.sub-menu.dropdown .dropdown-item a,
.navbar nav ul.sub-menu.dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--color-base);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.navbar nav ul.sub-menu.dropdown a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-action);
}
.navbar nav a {
  color: #fff;
  font-size: 1.125rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
}
.navbar nav a:hover,
.front .navbar nav a:hover,
.projet-detail .navbar nav a:hover,
body:not(.front):not(.projet-detail) .navbar nav a:hover {
  color: var(--color-action);
}


.logo {
  display: block !important;
  position: relative;
  z-index: 200000;
}

@media (max-width: 950px) {
  .logo {
    font-size: 1.125rem;
    color: var(--color-base) !important;
    mix-blend-mode: normal !important;
  }
}

/* Mobile: on front et page detail -> logo and link white before scrolll */
@media (max-width: 950px) {
  .front .logo,
  .projet-detail .logo,
  .front .navbar nav a,
  .projet-detail .navbar nav a,
  .front .menu-toggle,
  .projet-detail .menu-toggle {
    color: #fff !important;
  }
}

/* Mobile: when menu is open */
@media (max-width: 950px) {
  body.menu-open .logo,
  body.menu-open .navbar nav a,
  body.menu-open .menu-toggle {
    color: var(--color-base) !important;
    mix-blend-mode: normal !important;
  }
}

.front .navbar,
.front .logo,
.front .navbar nav a {
  mix-blend-mode: normal;
  color: #fff;
}
.front.blend-active:not(.menu-open):not(.menu-closing) .logo,
.front.blend-active:not(.menu-open):not(.menu-closing) .menu-toggle {
  mix-blend-mode: difference;
}

.projet-detail .navbar,
.projet-detail .logo,
.projet-detail .navbar nav a {
  mix-blend-mode: normal;
  color: #fff;
}
.projet-detail.blend-active:not(.menu-open):not(.menu-closing) .logo,
.projet-detail.blend-active:not(.menu-open):not(.menu-closing) .menu-toggle {
  mix-blend-mode: difference;
}

body:not(.front):not(.projet-detail) .navbar,
body:not(.front):not(.projet-detail) .logo,
body:not(.front):not(.projet-detail) .navbar nav a {
  mix-blend-mode: normal;
  color: var(--color-base);
}
body:not(.front):not(.projet-detail).blend-active:not(.menu-open):not(.menu-closing) .logo,
body:not(.front):not(.projet-detail).blend-active:not(.menu-open):not(.menu-closing) .menu-toggle {
  mix-blend-mode: difference;
  color: #fff;
}

/* -------------------------------------------------------------------------------------
    MENU MOBILE 
------------------------------------------------------------------------------------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-base);
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  cursor: pointer;
  z-index: 192001;
}
body.menu-open .menu-toggle .text-open {
  display: none;
}
body.menu-open .menu-toggle .text-close {
  display: inline;
}

.mobile-menu-overlay {
  display: flex;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-color: #fff; /* opaque */
  z-index: 99999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s var(--scroll-timing), visibility 0s linear 0.5s;
}
.mobile-menu-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s var(--scroll-timing), visibility 0s linear 0s;
}

body.leaving .mobile-menu-overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: none;
  transition: none;
}
/* Fermeture instantanée du menu: aucune transition de l'overlay pendant la fermeture */
body.menu-closing .mobile-menu-overlay {
  transition: none !important;
}
nav.mobile-nav {
  width: 100%;
  margin-top: 0;
  position: relative;
  z-index: 100001;
}
nav.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Mobile : accordéon style Redox — déploiement en JS, pas d’overlay, pousse le contenu */
nav.mobile-nav li.has-dropdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
nav.mobile-nav ul.sub-menu.dropdown {
  display: flex;
  flex-direction: column;
  position: static;
  min-width: 0;
  padding: 0 0 0 1rem;
  margin: 0;
  background: none;
  box-shadow: none;
  height: 0;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
nav.mobile-nav ul.sub-menu.dropdown .dropdown-item a,
nav.mobile-nav ul.sub-menu.dropdown a {
  font-size: 1.25rem;
  padding: 0.4rem 0;
  color: var(--color-base);
}
/* Icône + / - (sous-menu) en mobile : + fermé, - ouvert (style Redox) */
nav.mobile-nav li.has-dropdown > a::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4em;
  width: 1.25em;
  height: 1.25em;
  border: 0;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
nav.mobile-nav li.has-dropdown:hover > a::after {
  content: '+'; /* pas de changement au hover */
}
nav.mobile-nav li.has-dropdown.mobile-dropdown-open > a::after {
  content: '−'; /* caractère minus (U+2212), visuellement comme un - */
}

nav.mobile-nav a {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-base) !important;
  text-decoration: none;
  display: block;
  padding: 0.6rem 0; /* >=44px cible tactile avec line-height */
  position: relative;
  z-index: 100002;
  text-align: left;
  transition: color 0.25s ease;
}
.mobile-menu-overlay.open nav.mobile-nav a {
  pointer-events: auto;
}
nav.mobile-nav a:active,
nav.mobile-nav a:focus,
nav.mobile-nav a:hover {
  color: var(--color-action) !important;
}

/* nav desktop quand mobile */
@media (max-width: 950px) {
  .navbar > nav {
    display: none !important;
  }
  .menu-toggle {
    display: block;
    margin-left: 1.5rem;
    color: var(--color-base);
    mix-blend-mode: normal;
  }
}
/* Mobile: activer le blend pendant la réapparition au scroll haut (hors menu ouvert) */
@media (max-width: 950px) {
  body.blend-active:not(.menu-open):not(.menu-closing) .logo,
  body.blend-active:not(.menu-open):not(.menu-closing) .menu-toggle {
    mix-blend-mode: difference !important;
    color: #fff !important;
  }
  body.blend-active:not(.menu-open):not(.menu-closing) .navbar {
    mix-blend-mode: difference !important;
  }
}
@media (min-width: 951px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

body.menu-open {
  overflow: hidden;
}



/* -------------------------------------------------------------------------------------
    FOOTER 
------------------------------------------------------------------------------------- */
.footer-main {
  font-size: 0.85rem;
  color: #888;
  background-color: white;
}
.footer-content {
  border-top: 1px solid #eee;
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-content > div {
  white-space: nowrap;
}

@media (max-width: 1210px) {
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-content > div {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}



/* -------------------------------------------------------------------------------------
    PAGE HOME
------------------------------------------------------------------------------------- */

.ebrigade-events-block {
  margin-top: 1.25rem;
}

.ebrigade-events-block .ebrigade-date-group {
  margin: 0 0 1rem 0 !important;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.ebrigade-events-block .ebrigade-date-group:last-child {
  margin-bottom: 0 !important;
}

.ebrigade-events-block .ebrigade-date {
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-base);
}

.ebrigade-events-block .ebrigade-date-group ul {
  margin: 0;
}

.ebrigade-events-block .ebrigade-event {
  margin-bottom: 0.55rem !important;
  padding-left: 0.8rem !important;
  border-left-color: var(--color-action) !important;
}

.ebrigade-events-block .ebrigade-event:last-child {
  margin-bottom: 0 !important;
}

.ebrigade-events-block .ebrigade-event strong {
  font-weight: 700;
  color: var(--color-base);
}

.ebrigade-events-block .ebrigade-event .badge {
  vertical-align: middle;
}

@media (max-width: 768px) {
  .ebrigade-events-block .ebrigade-date-group {
    padding: 0.9rem 0.95rem;
    border-radius: 10px;
  }
  .ebrigade-events-block .ebrigade-date {
    font-size: 1rem;
  }
  .ebrigade-events-block .ebrigade-event {
    margin-bottom: 0.7rem !important;
  }
}


/* -------------------------------------------------------------------------------------
    PAGE ABOUT
------------------------------------------------------------------------------------- */




/* -------------------------------------------------------------------------------------
    ADMIN CUSTOM 
------------------------------------------------------------------------------------- */


html.ccm-toolbar-visible .ccm-page header {
  margin-top: 48px;
}
.user-only {
  display: none;
  float: right;
}
.ccm-panel-ready .user-only {
  display: block;
}

/* ---------------------------------------------------------
   Concrete CMS: désactiver animations/overlays en mode édition
--------------------------------------------------------- */
.ccm-edit-mode .loader-overlay {
  display: none !important;
}
.ccm-edit-mode .title-wrapper,
.ccm-edit-mode .text-reveal,
.ccm-edit-mode .text-reveal--inline span {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}
.ccm-edit-mode .navbar {
  mix-blend-mode: normal !important;
  z-index: 10 !important;
  transform: none !important;
}


/* Default: NO blend; re-enable only when not in admin */
.navbar,
.navbar .logo,
.navbar nav a {
  mix-blend-mode: normal;
}

/* Frontend only (no Concrete UI) -> allow the artistic blend WHEN blend-active (desktop only) */
@media (min-width: 951px) {
  body.blend-active:not(.menu-open):not(.menu-closing):not(.ccm-edit-mode):not(.ccm-panel-open):not(.ccm-dashboard) .navbar,
  body.blend-active:not(.menu-open):not(.menu-closing):not(.ccm-edit-mode):not(.ccm-panel-open):not(.ccm-dashboard) .navbar .logo,
  body.blend-active:not(.menu-open):not(.menu-closing):not(.ccm-edit-mode):not(.ccm-panel-open):not(.ccm-dashboard) .navbar nav a,
  body.blend-active:not(.menu-open):not(.menu-closing):not(.ccm-edit-mode):not(.ccm-panel-open):not(.ccm-dashboard) .menu-toggle {
    mix-blend-mode: difference;
    color: #fff;
  }
  body.blend-active:not(.menu-open):not(.menu-closing):not(.ccm-edit-mode):not(.ccm-panel-open):not(.ccm-dashboard) .navbar nav a:hover {
    color: var(--color-action);
  }
}

/* Make sure the overlay can sit above the navbar when panels are open */
.ccm-edit-mode .navbar,
.ccm-panel-open .navbar,
.ccm-dashboard .navbar {
  position: relative;   /* not fixed above everything */
  z-index: 1 !important;
}

/* The logo had an extreme z-index; drop it in admin */
.ccm-edit-mode .navbar .logo,
.ccm-panel-open .navbar .logo,
.ccm-dashboard .navbar .logo {
  z-index: 1 !important;
  mix-blend-mode: normal !important;
  color: inherit; /* avoid forced white over the grey overlay */
}

/* Optional: avoid accidental clicks on navbar while a panel is open */
.ccm-panel-open .navbar {
  pointer-events: none;
}

/* -------------------------------------------------------------------------------------
    FAQ / ACCORDION
------------------------------------------------------------------------------------- */

.faq-accordion .faq-title {
  cursor: pointer;
  position: relative;
  padding: 1rem 0 1rem 2rem;
  font-weight: 600;
  color: var(--color-base);
  user-select: none;
  font-size: 1.125rem;
}
.faq-accordion .faq-title::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-accordion .faq-item.is-open .faq-title::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-accordion .faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1);
}
.faq-accordion .faq-content-inner {
  padding: 0 0 1rem 0;
}
.faq-accordion .faq-content ul {
  margin: 0;
  padding-left: 35px;
  list-style: none;
}
.faq-accordion .faq-content li {
  list-style: none;
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
  color: var(--color-base);
  align-items: center;
  display: flex;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .faq-accordion .faq-content li {
    display: grid;
  }
}

.faq-accordion .faq-content li span {
  font-weight: 700;
  margin-right: 30px;
  min-width: 92px;
}
