/* =========================
   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;
}




* {
  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;
  opacity: 0;
}

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

/* === Entête titre 2 === */

.header2 {
  position: fixed;
  top: 0;
  right: 0;
  width: 25%;
  height: auto;
  opacity: 1;
  background-color: transparent;
}

/* image du header */
.header2 img {
  padding-top: 1vh;
padding-right: 2vh;
padding-left: 1vh; 
 width: 190px;
  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;

}


.menu img {
  width: 100%;
  height: auto;
  display: block;
}

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




.anim {
  width: 20%;
  height: 100vh;
  font-family: "Resgak", sans-serif;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* ⬇️ pousse le contenu en bas */
  align-items: flex-start;     /* ⬅️ aligne à gauche */

  padding-bottom: 1vh;
  padding-left: 1.2vh;

  border-left: 1px solid #000;
  background-color: transparent;
}

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

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


/* ===== STYLE TITRES ===== */
h1 {
  text-align: right;
   width: 100%;
}
/* ===== STYLE auteurs ===== */

/* même style de liste que le menu */
.menu ul,
.anim ul {
  list-style: none;
}

/* même style de liens que le menu */
.menu a,
.anim a {
  text-decoration: none;
  color: #333;
}



/* ===== GALLERIE ===== */
.gallery {
  display: grid;
grid-template-columns: repeat(auto-fit, minmax(330px, 330px));
  gap: 3rem;
  margin-left: 2rem;
  margin-right: 2rem;
  justify-items: start; /* aligne les cartes sur la même colonne à gauche */
  margin-top: 1vh;
}

/* ===== MINIATURES (nouveau style) ===== */

.thumb {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;

  width: 100%;
  max-width: 400px;
  height: 320px;

  text-decoration: none;
  color: #222;

  background: white;
  border: 1px solid #333;   /* ✅ encadrement */
  border-radius: 0;

  box-shadow: none;         /* ✅ pas d’ombre */
  overflow: hidden;

  transition: none;         /* ✅ pas d’anim de carte */
}

/* image : pas de zoom, mais opacité au survol */
.thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;

  transform: none;          /* ✅ enlève le zoom */
  transition: opacity 0.3s ease; /* ✅ garde l’opacité douce */
}

.thumb:hover img {
  opacity: 0.8;             /* ✅ garde l’opacité */
}




@media (max-width: 800px) {
  .thumb {
    width: 100%; /* une par ligne sur mobile */
  }
}

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

/* élément animé */
.page-sommaire .ticker{
  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 12s 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%)); }
}

/* 1) pas de scroll sur la page entière */
html, body {
  height: 100%;
  overflow: hidden;
}

/* 2) main = seul container scrollable */
.main {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 3) colonnes fixes (pas de scroll) */
.menu,
.anim {
  height: 100vh;
  overflow: hidden;
}

/* masquer la barre de scroll tout en gardant le scroll */
.main {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge legacy */
}

.main::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Edge */
}
/* changer de couleur au survol */
.anim a.is-hovered {
  color: #c40000; /* à adapter à ta charte */
  transition: color 0.2s ease;
}

#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; }

/* ========================================================================== */
/* ============ MENU MOBILE — BARRE FIXÉE EN BAS (≤ 700px) =================== */
/* ========================================================================== */

/* Empêche l’icône "À propos" d’apparaître en desktop */
.menu .label-img { display: none; }

@media (max-width: 700px) {

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

    padding-top: 0 !important;
    height: auto !important;
    display: block;
  }

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

  .menu ul li{ line-height: 0.85 !important; }
  .menu ul li a{
    display: block !important;
    font-size: inherit !important;
    line-height: 0.85 !important;
    padding: 0 !important;
  }

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

/* -------------------------------------------------------------------------- */
/* --------- MENU MOBILE — ICÔNE À LA PLACE DE “À PROPOS” (≤ 700px) ---------- */
/* -------------------------------------------------------------------------- */


@media (max-width: 700px) {

  /* (Sommaire) barre encore plus basse */
  .menu{
    padding: 0.05rem 0.55rem;
     padding-right: 0px !important;
  }

  /* (Sommaire) menu plus “serré” et avec marges */
  .menu ul li{ line-height: 1 !important; }
  .menu ul li a{
    display: block !important;
    font-size: 18px;
    line-height: 1 !important;
    padding-top: 0 !important;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* swap “À propos” -> image */
  .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;
  }
}
@media (max-width: 700px){

  body{
    font-size: 18px !important;
  }
  .anim{
    display : none;
    width: 23%;              /* évite le 100% qui peut rogner */
  margin-right: 0px ;       /* évite que les lettres touchent le bord */
    padding-bottom: 70px;
    box-sizing: border-box;
    text-align: right;
    font-size: 22px;
    font-family: League Gothic;
    box-sizing: border-box;
    padding-left: 0;
    margin-left: 0;
      border-left: 0px solid #000;
  }}

@media (max-width: 700px){
  .main {
  width: 100%;
  padding-left: 30px;
  padding-right: 30px;
  }

  .anim ul{
    margin: 0;
    padding: 0;                /* enlève les paddings par défaut du <ul> */
    list-style: none;
  }

@media (max-width: 700px){

  /* garde ton réglage existant */
  .main{
    width: 72%;
  }

  /* FIX GALERIE : 1 colonne + centrée + marges symétriques */
  .gallery{
    grid-template-columns: 1fr !important;
    justify-items: center !important;
        margin-top: 0rem !important;
    margin-left: 1.2rem !important;
    margin-right: 1.2rem !important;
    gap: 1.2rem;
  }

  /* carte centrée et pas minuscule */
  .thumb{
    width: 100% !important;
    max-width: 420px !important;   /* ajuste si tu veux */
    height: auto !important;
  }

  /* garde la proportion */
  .thumb img{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
  }
}


@media (max-width: 700px){
  .main{width: 100%;
font-size: 18px;}
  .header2 img{
    display: none;
  }
}

@media (max-width: 700px){
  .main{ 
    padding-top: 10px !important;
     padding-bottom: 5rem !important; }

  /* et si tu veux garder un petit “air” symétrique */
  .gallery{
    margin-left: 0.75rem !important;
    margin-right: 0.75rem !important;
  }
}

@media (max-width: 700px){

  .anim{
    justify-content: flex-start; /* ⬆️ la liste commence en haut */
    padding-top: 0;              /* optionnel : bien net */
  }

}



@media (max-width: 700px) and (min-width: 551px) {
  /* styles entre 700 et 551 px */
   .main{
  font-size: 18px;}
  .menu{
  font-size: 18px;
 padding-right: 0px !important;}
   .anim{
    font-family: "Resgak", sans-serif;}

      .menu-apropos .label-text{ display: none; }
  .menu-apropos .label-img{
    display: block;
    height: 40px;
    width: auto;
  }
}