/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

img, iframe, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Keep 16:9 ratio for Vimeo iframe even when width scales */
iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* ========== Body backgrounds already present in the project ========== */
body#menuind {
  margin: 0;
  padding: 0;
  background-color: #000000;
}

body#concrete {
  margin: 0;
  padding: 0;
  background: url(concretebg.jpg) no-repeat center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

body#frankn {
  margin: 0;
  padding: 0;
  background-color: black;
}

body#frank {
  margin: 0;
  padding: 0;
  background: url(frankbg.jpg) no-repeat center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/* ========== Containers ========== */
/* Main container */
div#con,
div#slider,
div#menusmart,
div#element,
div#element2,
div#space,
.spanspan,
.diaporamabook,
div#content {
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.spanspan {
width:800px;
height:150px;
position:absolute;
top:0px;
left:0px;
}
/* Specific heights removed for responsiveness unless necessary */
div#con {
  position: relative;
  color: #cccccc;
  font-family: arial, sans-serif;
}

/* Text description block */
div#desc {
  position: relative;
  max-width: 425px; /* keep the desktop target width */
  width: 100%;      /* but allow it to shrink on small screens */
  height: auto;
  margin-left: 0;
  margin-right: 0;
  margin-top: 20px;
   margin-bottom: 20px;
  color: #cccccc;
  font-family: arial, sans-serif;
  font-size: 1rem;   /* ~16px */
  line-height: 1.6;
}

div#desc2 {
  position: relative;
  max-width: 425px; /* keep the desktop target width */
  width: 100%;      /* but allow it to shrink on small screens */
  height: auto;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0px;
   margin-bottom: 20px;
  color: #cccccc;
  font-family: arial, sans-serif;
  font-size: 1rem;   /* ~16px */
  line-height: 1.6;
}


/* Menus */
div#menusmart {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  overflow: hidden;      /* évite les débordements visuels */
}

/* Legacy sizes in other blocks changed to responsive */
div#slider {
  position: relative;
  
}



.slider img {
  width: 100%;
  height: auto;
}

.slider figure {
  margin: 0;
  text-align: center;
}

.slider img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.slider figcaption {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 4px;
}

div#content {
  position: relative;
}

div#element {

  width: 800px;
height:150px;
margin-top:20px;
position:relative;
background-color:#000000;
margin-left: auto;
margin-right: auto;
}

div#element2 {
  position: relative;
  background-color: #000000;
  text-align: center;
  color: white;
  margin-top: 20px;
}

div#space {
  height: 30px; /* vertical spacer can keep fixed height */
  position: relative;
}

/* Typography helpers */
.fontsection {
  color: #FFFFFF;
  /* Avoid pixel font-size without units; keep relative scale */
  font-size: 1rem;
  font-family: arial, sans-serif;
  position: absolute;
}

/* Links */
a:link,
a:visited {
  text-decoration: none;
  color: #ffffff;
}

a:hover,
a:active {
  text-decoration: none;
  color: #FF0000;
}

a:hover span {
  display: block;
}

img.banane {
  opacity: 1.0;
  filter: alpha(opacity=100);
}

a:hover img.banane {
  opacity: 0.6;
  filter: alpha(opacity=60);
}

/* ========== Diaporama background animation (fixed the url() syntax) ========== */
.diaporamabook {
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  /* height removed to let ratio/image decide; you can set aspect-ratio if needed */
  background-image: url("bookphoto/book-01.jpg");
  -webkit-animation-name: diapobook;
  -webkit-animation-duration: 9s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: normal;

  -moz-animation-name: diapobook;
  -moz-animation-duration: 9s;
  -moz-animation-timing-function: linear;
  -moz-animation-iteration-count: infinite;
  -moz-animation-direction: normal;

  animation-name: diapobook;
  animation-duration: 9s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: normal;
}

@-webkit-keyframes diapobook {
  0%   { background-image: url("bookphoto/book-01.jpg"); }
  33%  { background-image: url("bookphoto/book-02.jpg"); }
  66%  { background-image: url("bookphoto/book-03.jpg"); }
}

@-moz-keyframes diapobook {
  0%   { background-image: url("bookphoto/book-01.jpg"); }
  33%  { background-image: url("bookphoto/book-02.jpg"); }
  66%  { background-image: url("bookphoto/book-03.jpg"); }
}

@keyframes diapobook {
  0%   { background-image: url("bookphoto/book-01.jpg"); }
  33%  { background-image: url("bookphoto/book-02.jpg"); }
  66%  { background-image: url("bookphoto/book-03.jpg"); }
}

/* ========== Mobile adjustments ========== */
@media (max-width: 800px) {
  /* Make the menu wrap nicely on small screens */
  div#menusmart {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
  }

  /* Slightly larger text for readability */
  div#desc {
    font-size: 1.1rem;
  }
}

/* ===== Slick overrides to remove extra gap under the slider ===== */
.slick-dotted.slick-slider { margin-bottom: 0; }  /* theme sets 30px; neutralize */

/* Put dots over the image so they don't create layout space */
.slider { position: relative; margin-bottom: 0; }
.slick-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  margin: 0;
}


.scroll-down {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  z-index: 1000;
}

/* petite animation */
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

#langToggle .fr, #langToggle .en {
  opacity: 0.5;           /* par défaut pâle */
}
#langToggle[aria-pressed="false"] .fr { 
  opacity: 1; font-weight: bold; 
}
#langToggle[aria-pressed="true"] .en { 
  opacity: 1; font-weight: bold; 
}

html, body { overflow-x: hidden; }

/* Tous les médias ne dépassent jamais l’écran */
img, video, iframe { max-width: 100%; height: auto; display: block; }

/* Si tu as des blocs "hérités" avec width fixe → rends-les fluides */
#element, .spanspan {
  max-width: 800px;      /* garde le look desktop */
  width: 100%;           /* mais s’adapte sur mobile */
}

/* Evite qu’un slide contienne quelque chose qui déborde */
.slick-slide { overflow: hidden; }