/*
Theme Name: pramelet
Author: Pauline RAMELET
Description: Thème WordPress personnalisé
Version: 1.0
Text Domain: pramelet
*/

/******************************************
*** FONTS *** 
*******************************************/
@font-face {
  font-family: 'SpaceMono';
  src: url('assets/fonts/SpaceMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'SpaceMono';
  src: url('assets/fonts/SpaceMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'SpaceMono';
  src: url('assets/fonts/SpaceMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'SpaceMono';
  src: url('assets/fonts/SpaceMono-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}


/******************************************
*** GLOBAL *** 
*******************************************/
.page {
  max-width: 1440px;
  margin: 0 auto;
}

p {
 font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0;
  vertical-align: middle;
  margin-bottom: 10px;
}

h2 {
  font-family: 'Poppins', sans-serif;
}

/******************************************
*** HEADER dont navigation desktop *** 
*******************************************/
.header-container {
  display: flex;
  justify-content: space-between; 
  align-items: center;            
  padding: 0px 146px; 
  height: 80px;               
}

#logo_pramelet {
  width: 216px;
  top: 31px;
  left: 146px;
}

#menu-pramelet_menu_header {
  gap: 55px;
  display: flex;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 24px;
}

.site-navigation .menu li {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
}

.site-navigation .menu li:hover {
  font-weight: 700;
}

.site-navigation .menu li a {
  text-decoration: none;
  color: #000000;
}


/******************************************
*** HEADER mobile *** 
*******************************************/
#mobile-header-overlay {
  position: fixed;
  top: 0;
  right: 0;
  height: 64px;
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: transparent;
  z-index: 1001;
  opacity: 0;
  transform: translateX(100%); 
}

/* État ouvert */
.mobile-header-overlay.open {
  opacity: 1;
  transform: translateX(0);
  background: #fff;
}

/* Logo alternatif */
.mobile-header-overlay .overlay-logo {
  position: static;
  margin-top: 8px;
  margin-left: 60px;
  width: 138px;
  align-self: flex-start;
  display: block;
}

/* Bouton croix */
.mobile-header-overlay .overlay-close {
  position: relative;
  margin-top: 0px;
  margin-right: 35px;
  width: 27px;
  height: 19px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Les deux barres de la croix */
.mobile-header-overlay .overlay-close span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #000;
  top: 50%;
  left: 0;
  transform-origin: center;
}

/* Barre inclinée à +40° */
.mobile-header-overlay .overlay-close span:first-child {
  transform: rotate(40deg);
}

/* Barre inclinée à -40° */
.mobile-header-overlay .overlay-close span:last-child {
  transform: rotate(-40deg);
}

.menu-toggle,
.menu-btn {
  display: none; /* Caché en desktop */
}


/******************************************
*** MODALE CONTACT *** 
*******************************************/
.modale {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modale-content {
  background: #fff;
  margin: 10% auto;
  padding: 25px;
  border: 4px solid #000;
  width: 541px;
  height: 600px;
  padding-top: 124px;
  overflow: hidden;
}

.contact-header {
  position: relative;
}

.contact-header img {
  position: absolute;
  left: -26px;
  top: -114px;
}

/* Bouton "Envoyer" du formulaire */
.wpcf7-form-control.wpcf7-submit.has-spinner {
  display: block;             
  margin: 20px auto;          
  padding: 12px 24px;         
  background-color: #ccc;      
  color: #000;                 
  border: none;                
  border-radius: 2px;          
  font-family: 'Space Mono', monospace;
  font-weight: 400; 
  font-size: 12px; 
  cursor: pointer;
  transition: background-color 1s ease, color 1s ease;
  width: 100%;
  height: 50px;
}

.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
  background-color: #000;
  color: #fff;
}

/* Police d'écriture appliquée aux labels du formulaire de contact */
.wpcf7 form label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 12px;
}

#wpcf7-f28-o1 > form > p:nth-child(2) > label > span > input,
#wpcf7-f28-o1 > form > p:nth-child(3) > label > span > input,
#wpcf7-f28-o1 > form > p:nth-child(4) > label > span > input,
#wpcf7-f28-o1 > form > p:nth-child(5) > label > span > textarea {
  width: 100% ;
  margin-top: 6px;
  border-radius: 12px;
  border: solid 1px #B8BBC2;
}

#wpcf7-f28-o1 > form > p:nth-child(2) > label > span > input,
#wpcf7-f28-o1 > form > p:nth-child(3) > label > span > input,
#wpcf7-f28-o1 > form > p:nth-child(4) > label > span > input {
  height: 40px;
}

#wpcf7-f28-o1 > form > p:nth-child(5) > label > span > textarea {
  height: 210px;
}

#wpcf7-f28-o1 { /* Id du fomulaire */
  width: 263px ;
  margin: 0 auto;
}

span.wpcf7-form-control-wrap { /* Messages d'erreur ne provoquant pas de dépassement de la modale */
  position: relative;
}

.wpcf7 form .wpcf7-response-output { /* Message d'erreur en bas du bouton */
  margin-top: -52px;
  color: #dc3232;
  font-family: 'Poppins';
  font-size: 10px;
  border : none;
}

.wpcf7-not-valid-tip {
  position: absolute;
  top: 14px;        
  left: 5px;
}


/******************************************
*** FOOTER *** 
*******************************************/
.footer-container {
  display: flex;
  justify-content: center; 
  align-items: center;            
  padding-top: 10px;
  border-top: 1px solid #000;
  margin-top: 42px;
}

#menu-pramelet_menu_footer {
  gap: 75px;
}


/******************************************
*** SINGLE-PHOTO *** 
*******************************************/
/* Partie haute de la single-photo */
.single-photo { 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-start; 
}

.container-singlephoto {
  display: flex;
  flex-direction: column;
  max-width: 1148px;
  margin: 0 auto;
}

.infoimg-top { 
  display: flex; 
  flex-direction: row; 
  gap: 21px; 
  flex: 1;
  align-items: flex-end;
  min-height: calc(100vh - 218px);
}

.single-photo #primary h2, 
.single-photo #primary p { 
  padding-left: 0; 
  padding-right: 0; 
}

/* Bloc de gauche avec les informations */
#infophoto-singlephoto {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid #000; 
  padding-bottom: 1rem; 
}

/* Bloc de droite avec la photo */
#image-singlephoto {
  flex: 1 1 50%;
  max-width: 50%;
}

#image-singlephoto img {
  width: 100%;
  height: auto;
  max-width: 563px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.interactions-singlephoto {
  height: 118px;
  box-sizing: border-box;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  max-width: 1148px;
  width: 100%;
  margin: 0 auto;
  gap: 21px;
  flex-shrink: 0;
}

.contact-left {
  display: flex;
  margin-top: -1rem;
  justify-content: space-between;
  align-items: center;
  width: 50%;
  padding-top: 15px;
}

/* Partie contact de la single-photo */
.photo-contact {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 21px;
  flex-wrap: wrap;
  max-width: 1148px;
}

/* Sous-bloc droit */ 
.nav-right { 
  display: flex; 
  justify-content: flex-end; 
  gap: 15px;
  margin-bottom: 15px;
  padding-top: 15px;
  max-width: 50%;
  flex-direction: column;
  align-items: flex-end;
}

:where(figure) {
  margin: 0;
}

.photo-list .photo-block {
  display: flex;
  justify-content: center;
}

.photo-list .photo-thumb img {
  object-fit: cover;
  object-position: top;
}

.tailleecran {
  display: flex;
  flex-direction: column;
}

.nav-thumbnail-center {
  width: 81px;
  height: 71px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.nav-thumbnail-center img {
  max-height: 120px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#contact-button-photo {
  width: 272px;
  height: 50px;
  border: 0;
  border-radius: 2px;
  padding-top: 8px;
  padding-right: 15px;
  padding-bottom: 8px;
  padding-left: 15px;
  background: #D8D8D8;
  box-shadow: 0px 2px 1px 0px rgba(0,0,0,0.05);
  animation-duration: 0ms;
  transition: background-color 1s ease, color 1s ease;
  cursor: pointer;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'SpaceMono', monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0;
  vertical-align: middle;
}

#contact-button-photo:hover {
  background-color: #000;
  color: #fff;
}

.photo-navigation {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 29px;
}

#nav-thumb {
  display: none;
}

.nav-thumbnail {
  display: none;
  position: absolute;
  top: -80px;
  left: -6px;
  z-index: 10;
}

.nav-photo:hover + .nav-thumbnail {
  display: block;
}

.nav-thumbnail img {
  width: 87px;
  height: 71px;
  object-fit: cover;
}

.nav-photo.prev:hover ~ .nav-thumbnail-wrapper .prev-thumb {
  display: block;
}

.nav-photo.next:hover ~ .nav-thumbnail-wrapper .next-thumb {
  display: block;
}

.contact-left p {
  margin: 0;
}

.related-photos {
  width: 100vw;
  max-width: 1148px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.related-photos .photo-thumb {
  overflow: hidden;
}

.related-photos .photo-thumb img {
  object-fit: cover;
}

.photo-thumb {
  position: relative;
  overflow: hidden;
  width: 420px; 
  height: 510px;
}

/* Overlay noir invisible par défaut */
.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  display: flex; 
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  inset: 0;
}

/* Apparition du voile noir au survol */
.photo-thumb:hover .photo-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Icône oeil centrée */
#icon-eye {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Icône fullscreen en haut à droite */
.icon-fullscreen img {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 34px;
  height: 34px;
}

.single-photo h2 {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: italic;
  font-size: 66px;
  line-height: 58px;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
  max-width: 397px;
  white-space: normal;
}

#text-vousaimerezaussi {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.1em;
  vertical-align: middle;
  text-transform: uppercase;
  margin-top: 60px;
  margin-bottom: 50px;
}

ul.photo-infos {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 14px;
  vertical-align: middle;
  line-height: 1.5;
  margin-top: 20px;
}

ul.photo-infos li {
  padding-bottom: 20px;
}

ul.photo-infos li::first-line { 
  font-weight: 400; 
}

.lien-code {
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  font-weight: 300;
  color: black;
  transition: 0.2s ease;
}

.lien-code:hover {
  color: #555;
}


.photo-thumb-img {
  object-fit: cover;
  display: block;
  width: 100%;
  height: 100%;
  object-position: top;
}


/******************************************
*** HERO HEADER *** 
*******************************************/
.hero {
  max-height: 962px;
  height: 50vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  width: 100vw; 
  position: relative; 
  left: 50%; 
  right: 50%; 
  margin-left: -50vw; 
  margin-right: -50vw;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  top: 42%;
  transform: translateY(-50%);
}

.hero__content h1 {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 3px #FFF;
}


/******************************************
*** LIGHTBOX *** 
*******************************************/
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
}

.lightbox.hidden {
  display: none;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  z-index: 10; 
}

/* Contenu avec images, flèches et croix de fermeture */
.lightbox__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 20;
}

.lightbox__bottom {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: white;
  margin-top: 15px;
  font-size: 14px;
  font-family: "Poppins";
  font-weight: 500;
  vertical-align: middle;
  text-transform: uppercase;
}

.hidden { 
  display: none; 
}

.lightbox__image {
  max-width: 80vw;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  height: auto;
}

.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: -55px;
  z-index: 20;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

.lightbox__prev:hover .arrow,
.lightbox__next:hover .arrow {
  transform: scale(1.15);
  font-size: 27px;
}

.lightbox__label {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0;
  vertical-align: middle;
  transition: font-weight 0.2s ease;
}

.lightbox__prev:hover .arrow::before {
  content: "\f177";
}

.lightbox__next:hover .arrow::before {
  content: "\f178";
}

.lightbox__prev:hover .lightbox__label,
.lightbox__next:hover .lightbox__label {
  font-weight: 700;
}

.lightbox__prev { 
  left: -130px; 
}

.lightbox__next { 
  right: -120px; 
}

.lightbox__prev .arrow {
  transform-origin: left center;
}

.lightbox__next .arrow {
  transform-origin: right center;
}

.arrow {
  width: 34px;
  display: inline-flex;
  justify-content: center;
  text-align: center;
  font-size: 25px;
  line-height: 1;
  transform: scale(1) translateX(0);
  transition: transform 0.2s ease;
}

.lightbox__prev:hover .arrow {
  transform: scale(1.36) translateX(-9px);
}

.lightbox__next:hover .arrow {
  transform: scale(1.36) translateX(9px);
}

.lightbox__prev,
.lightbox__next {
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  font-family: "SpaceMono";
  position: absolute;
  display: flex;
  gap: 10px;
}


/******************************************
*** PAGE D'ACCUEIL *** 
*******************************************/
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 20px;
  margin-bottom: 60px;
  margin-top: 60px;
}

.photo-list.container h2 { 
  text-align: center; 
  font-size: 42px;
}

.photo-list.container {
  max-width: 1148px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  margin-top: 60px;
}

.photo-list.container h2 {
  font-family: 'Poppins', sans-serif;
}

/* Bouton CHARGER PLUS */
#load-more-photos {
  width: 272px;
  height: 50px;
  border-radius: 2px;
  padding: 8px 15px;
  background: #D8D8D8;
  box-shadow: 0px 2px 1px 0px #00000005;
  border: none;
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0;
  display: block;
  margin: auto;
  margin-bottom: 40px;
  /* État initial stable pour l’animation JS */
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#load-more-photos:hover {
  background: black;
  color: white;
}

#load-more-photos.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Filtres */
.photo-filters {
  display: flex;
  justify-content: space-between;
  margin-top: 75px;
  margin-bottom: 40px;
}

.photo-filters-left {
  display: flex;
  gap: 42px;
}

.custom-select {
  position: relative;
  width: 260px;
  cursor: pointer;
  user-select: none;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

.custom-select-trigger {
  height: 42px;
  border-radius: 8px;
  border: 1.3px solid #B8BBC2;
  padding: 0 20px;
  background: #FFFFFF;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.custom-select-trigger i {
  font-size: 14px;
  pointer-events: none;
}

/* Quand le menu est ouvert : flèche vers le haut */
.custom-select.open .custom-select-trigger i {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1.3px solid #B8BBC2;
  border-radius: 8px;
  display: none;
  z-index: 50;
  overflow: hidden;
  width: 100%;
  padding: 0;
}

/* Chaque ligne */
.custom-option {
  padding: 12px 18px;
  background: #FFFFFF;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.03em;
  list-style: none;
  padding: 0;
  width: 100%; 
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  height: 42px;
  padding-left: 20px;
}

.custom-option:hover {
  background: #FFD6D6;
}

.custom-option.selected {
  background: #E00000;
  color: white;
}

.custom-select.open .custom-options {
  display: block;
}

.custom-option:active {
  background: #FE5858;
}

.photo-block {
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

/* Référence en bas à gauche */
.photo-ref {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'SpaceMono';
  text-transform: uppercase;
}

/* Catégorie en bas à droite */
.photo-cat {
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'SpaceMono';
  text-transform: uppercase;
}

.photo-thumb:hover .photo-ref,
.photo-thumb:hover .photo-cat {
  opacity: 1;
}


/******************************************
*** VERSION MOBILE *** 
*******************************************/
@media (max-width: 768px) {
  /* HEADER ET MENU MOBILE*/
  .header-container {
    position: relative;
    margin-top: 8px;    
    padding: 16px;        
    justify-content: space-between; 
  }

  .site-header .site-navigation .menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #E00000;
    pointer-events: none;
    opacity: 0;
    gap: 20px;
    transform: translateX(100%); 
  }

  .modale {
    display: none;
    background-color: rgba(0,0,0,0.9);
  }
    
  /* Affichage du menu burger quand activé */
  .menu-toggle:checked ~ .site-navigation .menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 20;
  }

  /* Input checkbox invisible */
  .menu-toggle {
    position: absolute;   
    opacity: 0;           
    width: 0;             
    height: 0;            
    pointer-events: none; 
    appearance: none;
  }

  .menu-toggle:checked ~ .site-navigation .menu li a {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 44px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    color: #FFFFFF;
  }

  .menu-toggle,
  .menu-btn {
    display: block;
  }

  .menu-btn {
    position: absolute;
    top: 6px;
    right: 15px;
    z-index: 1000;
    width: 27px;
    height: 19px;
    cursor: pointer;
    margin-right: 30px;
  }

  .menu-btn span {
    display: block;
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: #000;
    border-radius: 1px;
    left: 0;
  }

  /* Position initiale des éléments de la croix du menu */
  .menu-btn span:nth-child(1) { 
    top: 10px; 
  }

  .menu-btn span:nth-child(2) { 
    top: 18px; 
  }

  .menu-btn span:nth-child(3) { 
    top: 26px; 
  }

  #menu-pramelet_menu_header {
    gap: 42px;
  }

  #logo_pramelet {
    position: static;     
    margin-top: -15px;
    margin-left: 20px;       
    width: 138px;        
    align-self: flex-start; 
  }
  
  .hero {
    margin-top: -55px;
  }

  .no-transition .site-header .site-navigation .menu {
    transition: none;
  }

  .modale-content {
    width: 90%;          
    margin: 20px;       
    max-height: calc(100% - 40px);
  }

  .contact-header img {
    width: 122%;
  }
  
  #wpcf7-f28-o1 { /* Formulaire */
    margin-top: -25px;
  } 

  /* FOOTER */
  .footer-container #menu-pramelet_menu_footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 44px;
  }

  .footer-container {
    padding-top: 35px;
    padding-bottom: 65px;
  }

  /* HERO HEADER avec titre */
  .hero {
    height: 253px;
  }

  .hero__content h1 {
    font-size: 27.59px;
    -webkit-text-stroke: 0.5px #FFF;
  }

  /* SINGLE-PHOTO */
  .infoimg-top {
    flex-direction: column;
    order: 1;
    min-height: auto;
  }

  .related-photos .photo-grid {
    flex-direction: column;
  }

  .single-photo h2 {
    max-width: 275px;
  }

  #image-singlephoto {
    order: 1;
    width: calc(100% - 20px);
    margin: 0 auto 20px auto;
  }

  #image-singlephoto img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  #infophoto-singlephoto {
    order: 2;
    width: calc(100% - 20px);
    margin: 0 auto;
    border-bottom: 1px solid #000;
    padding-bottom: 35px;
    margin-top: -50px;
  }

  .interactions-singlephoto {
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 20px auto;
    margin-bottom: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
  }

  .contact-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  #contact-button-photo {
    width: 100%;
  }

  .nav-right {
    width: 100%;
    margin-top: 20px;
    align-items: flex-start;
  }

  .related-photos {
    order: 4;
    margin: 25px auto 30px auto;
    padding: 0;
    width: 85vw;
  }

  .photo-thumb {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .photo-thumb img {
    width: 100%;
    height: 278px;
    object-fit: cover;
    display: block;
    object-position: top;
  }

  .container-singlephoto,
  .infoimg-top,
  #infophoto-singlephoto,
  #image-singlephoto {
    width: 100%;
    max-width: 100%;
  }

  #titre-singlephoto {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: italic;
    font-size: 46px;
    line-height: 48px;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .infoimg-top, .tailleecran {
    gap: 20px;
    width: 77vw;
    margin: 0 auto;
  }

  .photo-navigation {
    display: none;
  }

  #text-vousaimerezaussi {
    margin: 0 auto;
  }

 .photo-grid,
 .related-photos .photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
  }

  .photo-filters,
  .photo-filters-left {
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .photo-thumb:hover .photo-overlay {
    opacity: 0;
  }

 /* Marges avec le hero header et la grille des photos  */
  .photo-filters {
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .photo-filters-left {
    flex-direction: column-reverse;
    align-items: center;
  }

  .photo-list .photo-block {
    flex: initial;
    width: 85vw;
  }

  /* Marge entre la fin de la grille et le bouton Charger Plus de la page d'accueil */
  .photo-list .photo-grid {
    margin-bottom: 80px;
  }

  #content {
    margin-left: 25px;
    margin-right: 25px;
  }
}