/* =========================
   RESGAK (OTF)
   ========================= */
@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-LightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-MediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-SemiBoldItalic.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-BoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Resgak";
  src: url("fonts/Resgak-BlackItalic.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
/* =========================
   LEAGUE GOTHIC (Variable TTF)
   ========================= */
/* Si c'est bien une variable font (wdth), on peut déclarer un range.
   Et utiliser font-stretch pour la largeur. */
@font-face {
  font-family: "League Gothic";
  src: url("fonts/LeagueGothic-Regular-VariableFont_wdth.ttf") format("truetype");
  font-weight: 100 900;      /* si supporté par le fichier */
  font-stretch: 50% 200%;    /* si le fichier expose wdth */
  font-style: normal;
  font-display: swap;
}


.contact-mobile {display: none;}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  display: flex;
  background: #f4f4f4;
   font-size: 18px;
}
body {
  font-family: "Resgak", sans-serif;
  font-weight: 400;   
  font-style: normal;
}
.page-index {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  min-height: 0vh;
  background-color: #f4f4f4;
}

/* === Entête titre === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  height: auto;
  background-color: transparent;
}

/* image du header */
header img {
  width: 99.5%;
  height: auto;
  object-fit: cover;
  object-position: top;
}


.menu {
  display: flex;
  flex-direction: row;
  width: 20%;
height: 100vh;
padding-left: 1.2vh;
  font-family: "Resgak", sans-serif;
  font-weight: 700;   
  font-style: normal;
  background-color: transparent;

}

.main {
  width: 60%;
  height: 100vh;
  min-height: 0vh;
  padding-right: 3vh;
  background-color: transparent;
}

.anim {
  display: flex;
  flex-direction: row;
  width: 20%;
  height: 100vh;
  min-height: 0vh;
  background-color: transparent;
  border-left: 1px solid #000; /* ou la couleur que tu veux */
 }


/* à corriger */
.span .anim {
  padding-bottom: 2vh;
 }


/* MENU (version simple) */
.menu ul {
  list-style: none;
 background: transparent;}

.menu a {
  text-decoration: none;
  color: #333;
}


/* ===== STYLE TITRES ===== */
h1 {
  text-align: left;
  padding-right: 2vh;
   width: 100%;
   line-height: 1.55;
     /*margin-bottom: 1.2em;*/
     background: transparent;
      font-size: 18px;
}

h1{
  font-family: "Resgak", sans-serif;
  font-weight: 700;   /* Bold */
  font-style: normal;

}



/* ===== TICKER UNIQUEMENT SUR LA PAGE SOMMAIRE ===== */
/* conteneur */
.page-sommaire .anim{
  position: relative;
  overflow: hidden;
}

/* élément animé */
.page-sommaire .ticker{
   padding-left: 1.2vh;
  position: absolute;
  left: 0;
  top: 100%;              /* le point de départ = bas de la colonne */
  width: 100%;
  white-space: normal;    /* ou nowrap si tu veux une seule ligne */
  animation: scroll-vertical 25s linear infinite;
  will-change: transform;
}

/* animation : monte du bas vers le haut */
@keyframes scroll-vertical {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-100vh - 100%)); }
}

.page-sommaire .ticker-title{
  font-family: "League Gothic", sans-serif;
  font-size: 1.2rem;       /* ajuste si besoin */
  line-height: 1.1;
  display: block;
  margin-bottom: 0.2em;
  margin-top: 1.2em;
}


.video {
  position: relative;
  width: 35%;
  padding-top: 20%; /* 16:9 */
  margin: 2rem 0;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  border: 0;
     padding-right: 1.2vh;
}
.anim .video {
  width: 30%;
  max-width: 18vh;     /* limite la largeur dans Anim */
  margin: 0 auto;

}

#contact-text {
  display: none;
  margin-top: 0.6em;
 font-size: 1.2rem;  
  line-height: 1.3;
  font-family: "League Gothic", sans-serif;
}

#contact-text { display: none; }
#contact-text.is-open { display: block; }

.main p {
  margin-bottom: 1.2em;
}

html, body {
  height: 100%;
  overflow: hidden;
}
.menu,
.anim {
  overflow: hidden;
}
.main {
  overflow-y: auto;
  overflow-x: hidden;
}
/* Chrome / Safari / Edge */
.main::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Firefox */
.main {
  scrollbar-width: none;
}

/* IE / vieux Edge */
.main {
  -ms-overflow-style: none;
}

.label-img {
  display: none;
}

/* =========================
   RESPONSIVE < 900px
   ========================= */
@media (max-width: 900px) {

  .page-index{
    flex-direction: column;
    height: 100vh;
  }

  header{ width: 100%; }
  header img{ width: 100%; height: auto; }

  .anim{
    position: fixed;
    top: var(--header-h, 0px);
    left: 0; right: 0;
    width: 100%;
    height: 2.2rem;
    border-bottom: 1px solid #000;
    background: #f4f4f4;
    z-index: 9998;
    overflow: hidden;
  }

  /*.page-sommaire .ticker{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-horizontal 18s linear infinite;
    padding-left: 1rem;
  }

  @keyframes scroll-horizontal {
    from { transform: translateX(100%); }
    to   { transform: translateX(-220%); }
  }*/

  .main{
    width: 100%;
    height: 100vh;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: calc(var(--header-h, 0px) + 1.2rem) !important;
    padding-bottom: 3.1rem;
  }

  .menu{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    padding: 0.1rem 0.6rem;   /* barre plus basse */
    background: #f4f4f4;
    border-top: 1px solid #000;
    z-index: 9999;

    padding-top: 0 !important; /* annule le JS */
    padding-right: 0px !important;
    height: auto !important;
    display: block;
  }

  .menu ul{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* >>> CE QUI RÈGLE TON PROBLÈME <<< */
  .menu ul li{ line-height: 0.85 !important; }
  .menu ul li a{
    display: block !important;
    font-size: inherit !important;
    line-height: 0.85 !important; /* interligne menu serré */
    padding: 0 !important;
  }

  .menu li.menu-contact{ display: none; }
}


/* =========================
   RESPONSIVE < 700px
   ========================= */
@media (max-width: 700px) {


  body{ font-size: 18px !important; }

  header img{
    content: url("images/titre_cnbl_ro.png");
    width: 100%;
    padding-top: 10px;
    padding-left: 30px;
     padding-right: 30px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .menu{
    padding: 0.05rem 0.55rem; /* encore plus bas */
  }

  /* >>> MENU ENCORE PLUS SERRÉ <<< */
  .menu ul li{ line-height: 1 !important; }
  .menu ul li a{
    display: block !important;
    font-size: inherit !important; /* = 16px */
    line-height: 1 !important;
    padding-top: 0 !important;
  margin-top: 10px;
margin-bottom: 10px;}

  .main{
    line-height: 1.5; /* main un peu réduit */
    padding-top: calc(var(--header-h, 0px) + 1.05rem) !important;
    padding-bottom: 3rem;
    padding-left: 30px;
    padding-right: 30px;
  }

  .menu-apropos .label-text{ display: none; }
  .menu-apropos .label-img{
    display: block;
    height: 30px;
    width: auto;
  }
  .menu-apropos a{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .anim{ height: 2.05rem; }
}

@media (max-width: 700px){

  .video{
    width: 100%;
    max-width: none;
    padding-top: 56.25%; /* garde le ratio 16:9 */
  }

  .video iframe{
    width: 100%;
    height: 100%;
  }

  .anim .video{
    max-width: none;
  }
  header {
   background: #f4f4f4;
  opacity: 1;
  padding-bottom: 10px ;

}
h1{
  font-family: "Resgak", sans-serif;
  font-weight: 700;   /* Bold */
  font-style: normal;
  font-size: 19px;
  padding-top: 14px;

}}


@media (max-width: 900px) {

  /* ✅ on repasse sur un scroll "page", pas sur .main */
  html, body{
    overflow: auto !important;
    height: auto !important;
  }

  .page-index{
    height: auto !important;
    min-height: 100vh;
  }

  /* ✅ header dans le flux (et non fixed) */
  header{
    position: relative !important;  /* ou static */
    top: auto !important;
    left: auto !important;
    width: 100% !important;
  }

  /* ✅ main dans le flux aussi (plus de "scroll interne") */
  .main{
    height: auto !important;
    overflow: visible !important;
    padding-top: 0 !important;      /* on enlève la logique --header-h */
    padding-bottom: 3.6rem;         /* pour ne pas passer sous le menu fixe */
  }

  /* ✅ ticker sous le header, puis il reste collé en haut en scroll */
  .anim{
    position: sticky !important;
    top: 0;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 9998;
  }
}
