@font-face {
    font-family: 'typewriter';
    src: url('../general/fonts/dehinted-AmericanTypewriter.woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'franklin gothic heavy';
    src: url('../general/fonts/FRAHV.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'rockwell';
    src: url('../general/fonts/ROCK.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'frankin gothic condensed';
    src: url('../general/fonts/Franklin\ Gothic\ Condensed.woff2');
    font-weight: normal;
    font-display: swap;
}
/* 1) Calque orange fixe derrière tout le contenu */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #ea5239;
  z-index: -1;
}

/* 2) Plus de tap-highlight / callout blanc */
* {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
}

/* 3) Conserver l’orange même en :active */
.image, .maintext {
  background-color: #ea5239 !important;
}
.image:active,
.maintext:active {
  background-color: #ea5239 !important;
}

/* 4) Gérer la safe-area pour éviter tout fond blanc sous le dock */
body {
  padding-bottom: env(safe-area-inset-bottom);
}

body{
    background-color: #ea5239;
   height: 100vh;
   display: flex;
    justify-content: right;
    align-items: center;
    overflow: hidden;
}

#bord{
    border: 2.5px solid black;
    padding: 1px 8px 1px 8px;
    color: rgb(0, 0, 0);
}
#title{
    font-family: 'frankin gothic condensed';

}

.barrenav{
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: end;
    gap: 40px;
    position: absolute;
    right: 1vw;
    top: 1vh;
    z-index: 500;
}
.langswitch{
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: 'rockwell';
    font-size: clamp( 0.1rem, 1vw, 2rem);
}
.langswitch a.active {
  font-weight: bold;
  pointer-events: none;
}
.langswitch a:hover:not(.active) {
text-decoration: underline;
}

h2{
    color: black;
    font-size: clamp( 0.1rem, 2vw, 3rem);
    font-family: 'rockwell';
    margin: 0;
}
h3{
    color: black;
    font-size: clamp( 0.1rem, 2vw, 3rem);
    font-family: 'rockwell';
}
a{
    text-decoration: none;  /* Enlève le soulignement */
    color: inherit;         /* Utilise la couleur du texte parent (comme un texte normal) */
    cursor: pointer;       /* Garder la main au survol (si tu veux que ce soit cliquable) */
  }
a:focus {
    outline: none;          /* Enlève le contour de focus */
}  
a:hover {
    color: inherit;         /* Garde la même couleur au survol */
    text-decoration: none;  /* Pas de soulignement au survol */
    text-underline-offset: 5px;
}
p{
    margin: 0 0 0px 0;
    font-family:'typewriter';
    font-size: x-large;
    color: #ea5239;
    text-shadow:
    -0.5px -0.5px 0 black,
     0.5px -0.5px 0 black,
    -0.5px  0.5px 0 black,
     0.5px  0.5px 0 black;
    font-size:clamp( 1rem, 4vw, 4rem);

}
p:hover{
    text-decoration: none;
    color: black;
    text-shadow: none;
    
}

.maincontainer{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 48.1vw;
    height: 65vh;
    flex-direction: column;
    margin-left: 0;
    overflow: scroll;
    background-color: #ea5239;
    overflow: hidden;
    
}
.imglien{
    position: absolute;
    top: 2vh;
    left: 3vw;
    height: 10vh;
    z-index: 500;
}
.hoverimage{
    position: fixed;
    top: 50%;
    transform: translateY(-48%);
    left: 0;
    width: 50vw;
    display: none;
    z-index: 100;
}
#mahaudiere:hover + .hoverimage {
    display: block;
}
#roman:hover + .hoverimage {
    display: block;
}
#stay:hover + .hoverimage {
    display: block;
}

#bord,
.barrenav h2,
.barrenav h3 {
  position: relative;
  display: inline-block;
  color: black;
  font-family: 'rockwell';
  transition: color 0.05s ease;
  z-index: 1;
}
#bord::after,
.barrenav h2::after,
.barrenav h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 0;
  background-color: black;
  z-index: -1;
  transition: width 0.05s ease;
}
#bord:hover,
.barrenav h2:hover,
.barrenav h3:hover {
  color: #ea5239; /* Orange */
}
#bord:hover::after,
.barrenav h2:hover::after,
.barrenav h3:hover::after {
  width: 100%;
}
.content-mobile {display: none;}

@media (max-width: 768px) {
  /* Container principal */
    body {
    justify-content: flex-start;
  }

  .maincontainer {
    display: none;
  }

  /* Cacher desktop, afficher mobile */
  .content {
    display: none;
  }
  .content-mobile {
    display: flex;
    flex-direction: column;
    width: 95vw;
    height: 80vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;     /* Ajouté */
    box-sizing: border-box; /* Ajouté */
    left: 5vw;
    top: 5vh; /* Ajusté pour centrer verticalement */
  }

  /* Chaque slide */
  .content-mobile a {
    scroll-snap-align: center;
    flex: 0 0 80vh;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    text-align: left;
    margin: 0;       /* Ajouté */
    padding: 0;      /* Ajouté */
    width: 95vw;    /* Ajouté pour forcer la largeur complète */
  }

  /* Titre */
  .content-mobile a p {
    color: black;
    font-size: clamp(1rem, 7vw, 2.5rem);
        margin: 0 0 0px 0;
    font-family:'typewriter';
    color: #ea5239;
    text-shadow:
    -0.5px -0.5px 0 black,
     0.5px -0.5px 0 black,
    -0.5px  0.5px 0 black,
     0.5px  0.5px 0 black;
    text-align: left;
  }

  /* Image */
  .content-mobile a img.hoverimage {
    display: block !important;
    width: 95vw;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    position: static;
    transform: none;
    
  }

}
