* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    -webkit-tap-highlight-color: rgba(120, 120, 120, 0.2); /* Gris doux */
}

a:focus,
a:active,
button:focus,
button:active {
  background-color: transparent; /* ou une couleur adaptée */
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    background-color: #f5f5f5;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Hauteur minimale de 100% de la fenêtre visible */
    user-select: none; /* Empêche la sélection du texte */
  -webkit-user-select: none; /* Pour Chrome et Safari */
  -moz-user-select: none; /* Pour Firefox */
  -ms-user-select: none; /* Pour Edge */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE 10+ */
  overflow-y: scroll;         /* Garde la structure comme si la scrollbar était là */
}

.hero {
  height: 100vh;
  width: 100%;
  background-image: url('Images/News.webp'); /* remplace ce chemin */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: auto;
}

/* Zone centrée avec texte + bouton */
.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
}

.titre-hero {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 55px;
    letter-spacing: 0.09em;
    margin-bottom: 3rem;
    z-index: 1;
    color: #ffffff;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;              /* Chrome/Safari/Edge */
}

.content {
    flex: 1;
}

.navbar {
    position: fixed; /* Fixe la barre */
    top: 0; /* La met en haut de la page */
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.3rem 3%;
    background: linear-gradient(to bottom, rgb(255, 255, 255, 0.90), rgb(245, 245, 245,0.90));
    background-color: rgba(245, 245, 245, 0.90);
    transition: all 0.3s ease;
}

.navbar-classic {
    position: fixed; /* Fixe la barre */
    top: 0; /* La met en haut de la page */
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3%;
    background-color: rgba(245, 245, 245, 0.95);
    transition: all 0.3s ease;
}

.navbar-accueil {
    position: fixed; /* Fixe la barre */
    top: 0; /* La met en haut de la page */
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0);
    box-shadow: none;
    padding: 1.2rem 3%;
    transition: all 0.6s ease;
}

.navbar-accueil.scrolled {
    background-color: rgba(245, 245, 245, 0.95);
    box-shadow: 0 5px 115px rgba(0, 0, 0, 0.1);
}

.navbar-erreur {
    position: fixed; /* Fixe la barre */
    top: 0; /* La met en haut de la page */
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee;
    box-shadow: 0 5px 115px rgba(0, 0, 0, 0.15);
    padding: 1.2rem 3%;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1.2rem 3% !important;
    border-bottom: 1px solid #eee;
    background: none;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.logo span.corentin {
    color: #333;
    font-weight: 400;
}

.logo span.revel {
    color: #999;
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
}

.nav-links li {
    margin: 0 43px;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #7d7d7d;
}

.nav-links-scroll {
    display: flex;
    list-style: none;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
}

.nav-links-scroll li {
    margin: 0 43px;
}

.nav-links-scroll a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.6s ease;
}

.nav-links-scroll.scrolled a {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    transition: color 0.6s ease;
}

.nav-links-scroll a:hover {
    color: #7d7d7d;
}

.language-icon {
    cursor: pointer;
}

.language-icon svg {
    width: 20px;
    height: 20px;
}

.language-selector {
    position: relative;
    cursor: pointer;
    z-index: 9999;
}

.language-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 150px;
    overflow: hidden;
    display: none;
    z-index: 9999;
}

.language-selector:hover .language-popup,
.language-popup.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-family: 'Jost', sans-serif;
    transition: background-color 0.3s;
}

.language-name {
    font-family: 'Jost', sans-serif;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option .flag {
    margin-right: 10px;
    width: 24px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pour remplacer les emojis de drapeau par des images */
.language-option[data-lang="fr"] .flag {
    background: url('icons/france-flag.png') no-repeat center center;
    background-size: contain;
}

.language-option[data-lang="en"] .flag {
    background: url('icons/union-jack-falg.jpg') no-repeat center center;
    background-size: contain;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 111px 0px 80px 0px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 15px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease, transform 0.3s ease;
    aspect-ratio: 1/1;
}

.gallery-item:hover {
    border-width: 7px;
}

.gallery-item a {
    display: block; /* Force le lien à prendre toute la place disponible */
    width: 100%;
    height: 100%;
    overflow: hidden; /* Important pour que le object-fit sur l'image fonctionne par rapport au lien */
    text-decoration: none; /* Au cas où il y aurait un soulignement par défaut */
}

.gallery-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover a img {
    transform: scale(1.05);
}

.error-container,
.error-container * {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    color: #ffffff;
}

.error-container {
    display: flex;
    justify-content: left;
    align-items: center;
    height: calc(100vh - 70px); /* Ajustez selon la hauteur de votre barre de navigation */
    min-height: 1000px;
    position: relative;
    background-color: #000000;
    padding: 40px 0;
}

/* Contenu textuel */
.error-content {
    text-align: center;
    z-index: 2;
    position: relative;
    transform: translateY(-60px);
    padding: 0 40px;
    padding-left: 10%;
}

/* Styles pour le code d'erreur 404 */
.error-code {
    font-size: 210px;
    margin: 0;
    font-weight: 300;
    line-height: 1;
}

/* Styles pour le message d'erreur */
.error-message {
    font-size: 40px;
    margin: 20px 0;
}

/* Styles pour le texte explicatif */
.error-explanation {
    font-size: 18px;
    margin-bottom: 30px;
}

.main-button {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    letter-spacing: 0.12em;
    display: inline-block;
    padding: 12px 30px;
    color: #ffffff;
    background-color: transparent;
    border: 1px solid #3C3C3C;
    border-radius: 1.5px;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
    cursor: pointer;
}

.main-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3C3C3C;
    z-index: -1;
    transition: height 0.3s ease;
}

.main-button:hover::after {
    height: 0;
}

.main-button:hover {
    color: #3C3C3C;
}

/* Styles pour le bouton de retour */
.back-button {
    font-weight: 400;
    display: inline-block;
    padding: 12px 30px;
    color: #ffffff;
    background-color: transparent;
    border: 1px solid #9B0D19;
    border-radius: 2.5px;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.back-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #9B0D19;
    z-index: -1;
    transition: height 0.3s ease;
}

.back-button:hover::after {
    height: 0;
}

.back-button:hover {
    color: #9B0D19;
}

.error-container {
    position: relative;
    overflow: hidden;
}

.error-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
    margin-right: 8.5%;
}

.error-image img {
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    height: auto;
    max-height: 80%;
    object-fit: contain;
    object-position: right center;
}

.footer,
.footer * {
    position: relative;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 17px;
}

.footer {
    background-color: #000;
    color: #fff;
    padding: 50px 70px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    height: 275px; /* Hauteur fixe de 275px comme demandé */
    margin-top: auto; /* Pousse le footer en bas */
    min-height: 200px;

}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-right .social-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    margin-left: 10px;
}

.footer a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;

}

.footer a:hover {
    color: #8a8a8a;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    overflow: hidden;
    min-height: 650px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 150%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 80%;
}

.site-title {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    letter-spacing: 0.09em;
    font-size: 3.9rem;
    color: #000000;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    font-weight: 320;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 8rem;
}

.category-button {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    letter-spacing: .1rem;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: white;
    border:  1px solid #000000;
    border-radius: 1.5px;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.category-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: -1;
    transition: height 0.3s ease;
}

.category-button:hover::after {
    height: 0;
}

.category-button:hover {
    color: #000000;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border:2px solid #939393a2;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
    border:2px solid #939393d5;
    width: 13px;
    height: 13px;
}

.hamburger {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 17px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #000;
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    top: 54px;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: flex-start;
    transition: right 0.5s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: left;
    padding: 20px 0 0 30px; /* Ajuste l'espacement en haut et à gauche */
}

.mobile-nav-links li {
    margin: 30px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #7d7d7d;
}

/* Transform hamburger to X when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Prevent scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}

.pswp__img {
    /* 'auto' utilise le curseur par défaut du navigateur pour les images (souvent une flèche) */
    /* 'default' est généralement la flèche standard */
    /* 'grab' pourrait être utilisé si tu laisses imageDragAction: 'close' pour indiquer qu'on peut la "saisir" */
    cursor: auto !important; 
}

.pswp__my-custom-caption {
    /* Initialement caché */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;

    /* Style et positionnement (similaire à l'exemple de PhotoSwipe) */
    background: rgba(255, 255, 255, 0.75); /* Fond semi-transparent noir */
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;                  /* Taille de police */
    color: #000000;                      /* Couleur du texte */
    width: calc(100% - 64px);         /* Largeur (laissez de l'espace sur les côtés) */
    max-width: 500px;                 /* Largeur maximale */
    padding: 8px 12px;                /* Espacement intérieur */
    
    position: absolute;               /* Positionnement absolu */
    left: 50%;                        /* Centré horizontalement */
    bottom: 28px;                     /* Distance depuis le bas */
    transform: translateX(-50%);      /* Ajustement pour un centrage parfait */
    
    text-align: center;               /* Alignement du texte */
    box-sizing: border-box;
    z-index: 1; /* Assurez-vous qu'il soit au-dessus de l'image mais en dessous des contrôles si nécessaire */
}

/* Lorsque la légende doit être visible */
.pswp__my-custom-caption.pswp__my-custom-caption--visible {
    opacity: 1;
    visibility: visible;
}

.pswp__button--legendToggleButton.pswp__button--active {
    background-color: rgba(255, 255, 255, 0.2);
}

.gallery-section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: baseline; 
    min-height: 45rem; /* Hauteur minimale pour bien voir l'effet */
    padding-top: 4rem; /* Espace pour le titre */
    padding-bottom: 10px;
    position: relative; /* Nécessaire pour le pseudo-élément d'arrière-plan */
    overflow: hidden; /* Empêche le flou de déborder */
    background-color: #222; /* Couleur de fond de secours */
}

/* Pseudo-élément pour l'arrière-plan flouté */
.gallery-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--current-bg-image);
    filter: blur(15px) brightness(0.6); /* Ajustez le flou et la luminosité */
    z-index: 0; /* Derrière le contenu */
    transform: scale(1.1); /* Pour éviter les bords durs dus au flou */
    transition: background-image 0.7s ease-in-out; /* Transition pour le changement d'image de fond */
}

.mobile-gallery {
    display: none;
}

.main-title {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 55px;
    letter-spacing: 0.09em;
    margin-bottom: none;
    z-index: 1;
    color: #ffffff;
}

.gallery-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espace les flèches de l'image */
    width: 100%;
    height: 100%;
    max-width:65rem; /* Limite la largeur */
    margin: 0 auto; /* Centre le conteneur */
    position: relative; /* Pour le positionnement du lien */
    z-index: 1;
}

.main-image-container {
    width: 100%; /* Prend la largeur entre les flèches */
    max-width: 1500px; /* Limite la taille de l'image */
    aspect-ratio: 3/2;
    display: flex; /* Nécessaire pour que les images se superposent bien */
    align-items: center;
    justify-content: center;
    position: relative; /* Pour que les images se superposent */
    overflow: hidden; /* Cache les images inactives */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-radius: 1.5px; /* Bords arrondis pour le conteneur d'image */
}

.main-image {
    position: absolute; /* Permet aux images de se superposer */
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche toute l'image, peut laisser des espaces vides */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease-in-out, visibility 0s linear 0.7s; /* Transition douce */
}

.main-image.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* Annule le délai pour l'affichage */
}

.nav-button {
    position: relative;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 20px; /* Espace par rapport à l'image */
    z-index: 2;
    background-color: transparent;
}

.nav-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

/* Survol : on fait grossir le cercle */
.nav-button:hover::before {
transform: translate(-50%, -50%) scale(1); /* petit zoom */
}

/* La flèche à l’intérieur */
.nav-button svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.nav-button.prev {
    transform: scaleX(-1); /* Retourne l'icône de flèche */
}

.nav-button.next {
    transform: scaleX(-1); /* Retourne l'icône de flèche */
}

.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 10px;
    z-index: 1;
}

.newdot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newdot.active {
    background-color: white;
    border:2px solid #939393d5;
    width: 13px;
    height: 13px;
}

.gallery-link {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    letter-spacing: 0.12em;
    display: inline-block;
    bottom: 15px; /* Position en bas du conteneur d'image */
    right: 15px;
    padding: 10px 20px;
    color: #ffffff;
    background-color: transparent;
    border: 1px solid #3C3C3C;
    border-radius: 1.5px;
    text-decoration: none;
    font-size: 15px;
    position: absolute;;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
    cursor: pointer;
}

.gallery-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3C3C3C;
    z-index: -1;
    transition: height 0.3s ease;
}

.gallery-link:hover::after {
    height: 0;
}

.gallery-link:hover {
    color: #3C3C3C;
}

.ps-thumbnails-container {
    /* Positionnement en bas de la fenêtre */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    
    /* Centrage et affichage */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    padding-bottom: 30px;
    box-sizing: border-box;
    
    /* Assure qu'il est au-dessus de l'image de fond mais sous les boutons */
    z-index: 1550; /* z-index standard pour les contrôles de pswp */

    /* Un léger fond pour la lisibilité si besoin */
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.ps-thumbnails-container img {
    width: 80px;
    height: 53px; /* Garder un ratio 16:9 ou similaire */
    object-fit: cover;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 1px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ps-thumbnails-container img:hover {
    opacity: 1;
}

/* Style pour la vignette de l'image actuellement affichée */
.ps-thumbnails-container img.is-active {
    opacity: 0.5;
    width: 96px;
    height: 67px;
    margin: 0 0px;
}