h1 {
  font-family: "mainFont", helvetica, sans-serif;
}

.studio-samuel-tomatis-title-header:hover .studio-title-header {
  font-weight: bold;
}

.studio-samuel-tomatis-title-header {
  font-family: "titleFont", helvetica, sans-serif;
}

header {
  font-family: "titleFont", sans-serif;
  align-items: baseline;
}

.mobile-menu-title {
  font-family: 'titleFont', sans-serif;
}

.overlay {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 2000;               /* au-dessus du header sticky (cf. design-system) */
  top: 0;
  left: 0;
  background-color: black;
  overflow-y: hidden;
  transition: 0.3s;
}

.overlay-content {
  position: relative;
  width: 100%;
  text-align: left;
}

.overlay a {
  font-family: "mainFont", helvetica, sans-serif;
  margin: 12px 24px 12px 24px;
    text-decoration: none;
    font-size: 24px;
    color: white;
    display: block;
    transition: 0.3s;
}

.overlay hr {
    border-bottom: 1px solid white;
    width: auto;
    margin: 0 24px;
}

.overlay a:hover {
  opacity: 1;
}


.overlay .closebtn {
  position: absolute;
  top: 4px;
  right: -28px;
  font-size: 24px;
  border: 0;
  z-index: 100;
  padding: 30px;
}

span.navicon-text {
  cursor: pointer;
    position: absolute;
    top: 10px;
    right: 0px;
    border: 0;
    padding: 24px;
}

.logo-mobile-menu {
  padding: 32px 0 12px 0;
}

#desktop-menu-visible {
  display: none;
  font-family: "mainFont" !important;
}

.menu-icon .navicon-burger {
  background: #333;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

li.list-child-desktop:hover {
    font-family: 'titleFont', sans-serif;
    transition: font-family 0.4s;
}


.nav-home:hover {
  font-family: "titleFont", sans-serif;
}

/* Sur desktop/tablet : afficher "Samuel Tomatis" au lieu de "studio" */
@media screen and (min-width: 900px) {
  /* Le <h1> contient le texte "studio" mais on affiche "Samuel Tomatis" via
     ::before. On met font-size:0 sur le h1 pour que le texte "studio"
     n'occupe AUCUNE largeur (sinon l'élément réserve la place de
     "studio" + "Samuel Tomatis" → titre trop large). Le ::before récupère la
     taille du design system. */
  h1.studio-title-header.nav-home {
    font-size: 0 !important;
    color: transparent !important;
  }

  h1.studio-title-header.nav-home::before {
    content: "Samuel Tomatis";
    color: #000 !important;
    font-size: var(--ds-font-header) !important;
    line-height: 1 !important;
  }

  /* Sur les pages du menu, toujours afficher "Samuel Tomatis" */
  body.page-studio h1.studio-title-header.nav-home,
  body.page-info h1.studio-title-header.nav-home,
  body.page-about h1.studio-title-header.nav-home,
  body.page-actu h1.studio-title-header.nav-home {
    font-size: 0 !important;
    color: transparent !important;
  }

  body.page-actu h1.studio-title-header.nav-home::before {
    content: "Samuel Tomatis";
    color: #fff !important;
    font-size: var(--ds-font-header) !important;
    line-height: 1 !important;
  }

  /* Pages projet (album) : afficher "Samuel Tomatis" comme partout ailleurs */
  body.page-album h1.studio-title-header.nav-home {
    font-size: 0 !important;
    color: transparent !important;
  }

  body.page-album h1.studio-title-header.nav-home::before {
    content: "Samuel Tomatis";
    color: #000 !important;
    font-size: var(--ds-font-header) !important;
    line-height: 1 !important;
  }
}

h2.pre-load {
      font-family: 'titleFont', sans-serif;
  }


@media only screen and (max-width: 375px) {

  #desktop-menu-visible {
  display: block !important;
  font-family: "mainFont" !important;
}

 h1 {
    font-size: 24px !important;
    padding: 32px 0 12px 0;
}


.overlay a {
    margin: 0px 24px 0px 24px;
}

.menu-icon {
    padding: 46px 0 0 0;
}

  h2.pre-load {
      font-size: 18px;
      font-family: 'titleFont', sans-serif;
  }

    span.navicon-text {
    top: -22px;
    padding: 24px;
  }

  ul.list-footer.list-footer-mobile-overlay {
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    border-top: 1px solid white;
}

li.list-child-footer-overlay {
    font-size: 16px;
    padding: 12px 0 24px 0;
}

#desktop-menu-visible {
  display: none !important;
}

#desktop-menu-hidden {
  display: flex !important;
}

}
@media only screen and (min-width: 376px) and (max-width: 899px) {

  h1 {
    font-size: 24px !important;
    padding: 32px 0 12px 0;
}


  h2.pre-load {
      font-size: 24px;
      font-family: 'titleFont', sans-serif;
  }

  span.navicon-text {
  top: -22px;
}

.overlay a {
  margin: 0px 24px 0 24px;
  padding: 12px 0;
}


  .overlay-content {
    position: relative;
    width: 100%;
    text-align: left;
}

a.link-footer-overlay {
    margin: 0;
}

.footer-column-mobile-overlay {
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    margin: auto;
}

ul.list-footer.list-footer-mobile-overlay {
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-top: solid 1px white;
}

li.list-child-footer-overlay a {
    font-size: 16px;
    padding: 12px 0 24px 0;
}

.menu-icon {
    padding: 46px 0 0 0;
}

#desktop-menu-visible {
  display: none !important;
}

#desktop-menu-hidden {
  display: flex !important;
}

}

/* Sous 900px : mode mobile complet (logo + burger + menu overlay).
   Géré par le breakpoint mobile (≤899px) ; le menu horizontal desktop ne
   s'active qu'à partir de 900px. */

@media screen and (min-width: 900px) and (max-width: 1100px) {

  h1 {
  font-size: 44px;
}

  span.navicon-text {
    display: none;
}

.list-desktop {
display: flex;
font-size: 44px;
}

#desktop-menu-visible {
  flex-direction: row;
  justify-content: space-between;

}
.header .logo {
    padding: 24px 0 16px 0 !important;
}

a.link-list-child-desktop {
  padding: 0 !important;
}

  header {
      padding: 12px 0 12px 0;
  }


li.list-child-desktop {
  padding: 0 16px !important;
  width: auto !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

}

@media screen and (min-width: 1101px) and (max-width: 1440px) {


li.list-child-desktop {
  padding: 0 !important;      /* espacement géré par gap dans design-system */
  width: auto !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

  span.navicon-text {
    display: none;
}

#desktop-menu-visible {
  flex-direction: row;
  justify-content: space-between;
}

.list-desktop {
display: flex;
font-size: 88px;
}

.logo {
    padding: 24px 0 16px 0 !important;
}

a.link-list-child-desktop {
  padding: 0 !important;
}

h1 {
  font-size: 88px;
}

header {
    padding: 12px 0 18px 0;
}

.header .logo {
    padding: 24px 0 16px 0 !important;
}

a.link-list-child-desktop {
  padding: 0 !important;
  margin-left: 0;

}

h1:hover > .square {
  background-color: white;
  border: 2px solid black;
  transition: background-color 0.4s;
}

a.link-list-child-desktop:hover > .square {
  background-color: white;
  border: 2px solid black;
  transition: background-color 0.4s;
}


.overlay a {
    font-size: 88px;
  }

  .overlay .closebtn {
    font-size: 24px;
  }

}


@media screen and (min-width: 1441px) {

  span.navicon-text {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 0px;
    font-size: 116px;
    border: 0;
    padding: 12px 24px;
}

header {
    padding: 12px 0 18px 0;
}

h1 {
    font-size: 116px;
}

.header .logo {
    padding: 24px 0 16px 0 !important;
    font-size: 116px;
}

.logo {
    padding: 24px 0 16px 0 !important;
}

a.link-list-child-desktop {
    padding: 0 !important;
    margin-left: 0;
    font-size: 116px;
}


span.navicon-text {
    display: none;
}

#desktop-menu-visible {
  flex-direction: row;
  justify-content: space-between;
}

.list-desktop {
display: flex;
font-size: 88px;
}

.overlay a {
    font-size: 88px;
  }

  .overlay .closebtn {
    font-size: 24px;
  }


li.list-child-desktop {
  padding: 0 32px !important;
  width: 200px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

}


.header li a:hover > .dot  {
    position: absolute;
  width: 0.8rem !important;
  height: 0.8rem !important;
  background-color: white !important;
  border: 0.1rem solid #000 !important;
  transition: background-color 0.2s ease-out !important;
}

body {
  margin: 0;
  font-family: Helvetica, sans-serif;
}

a {
  color: #000;
}

/* header */


.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  z-index: 1;
}

.header li a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}

.header .logo {
  float: left;
  padding: 10px 0;
  text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dot {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  margin-left: 12px;
  background-color: black;
}


.header .logo {
  width: -webkit-fill-available;
  width: 100%;
}

.menu {
display: none;
  }

  .header li {
    float: left;
  }

  .header .menu {
    clear: none;
    max-height: none;
    padding: 0px 10px;
  }

  .menu-icon {
    display: none;
  }




/* menu */

.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .5s ease-in-ease-out;
}

/* menu icon */

.menu-icon {
  cursor: pointer;
  display: inline-block;
  position: relative;
  user-select: none;
}

.menu-icon .navicon-burger {
  background: #333;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

.menu-icon .navicon-burger:before,
.menu-icon .navicon-burger:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.menu-icon .navicon-burger:before {
  top: 5px;
}

.menu-icon .navicon-burger:after {
  top: -5px;
}

/* menu btn */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 240px;
}

.header .menu-btn:checked ~ .menu-icon .navicon-burger {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon-burger:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon-burger:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon-burger:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon-burger:after {
  top: 0;
}


@media screen and (max-width: 320px) {


  .header li a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}

  .header {
  display: block;
  width: 100%;
  z-index: 3;
}

ul.menu.items {
    flex-direction: column;
}


.header .logo {
    font-size: 24px;
    padding: 32px 0 12px 0;
}

.header li a {
    font-size: 24px;
}

.first {
    display: none !important;
}

.center {
    border-top: solid 1px;
    border-bottom: solid 1px;
}

.last {
    border-bottom: solid 1px;
}

.dot {
  position: relative;
  width: 0.25rem;
  height: 0.25rem;
  display: inline-block;
  margin-left: 12px;
  background-color: black;
}

.dot:hover {
    position: relative;
    width: 0.15rem;
    height: 0.15rem;
    background-color: white;
    border: 0.05rem solid #000;
    transition: background-color 0.2s ease-out;
  }

}

@media only screen and (min-width:321px) and (max-width:640px) {

  .header {
  width: 100%;
  z-index: 3;
}

.header li a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}

ul.menu.items {
    flex-direction: column;
}

  .header .logo {
  font-size: 24px;
  padding: 32px 0 12px 0;
}

.first {
    display: none !important;
}

.center {
    border-top: solid 1px;
    border-bottom: solid 1px;
}

.last {
    border-bottom: solid 1px;
}

.header li a {
    font-size: 1.5rem;
}


.dot {
  position: relative;
  width: 0.25rem;
  height: 0.25rem;
  display: inline-block;
  margin-left: 4px;
  background-color: black;
}

.header li a:hover > .dot {
  position: relative;
  width: 0.15rem;
  height: 0.15rem;
  background-color: white;
  border: 0.05rem solid #000;
  transition: background-color 0.2s ease-out;
}

}
