@charset "utf-8";
/* CSS Document */

/* =========================================
   1. CONFIGURATION GÉNÉRALE & TYPOGRAPHIE
   ========================================= */
html, body {
    overflow-anchor: none; /* Empêche le saut de page au changement d'image */
}

body {
    font-family: Calibri, Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000000;
    background-color: #ffffff;
}

h1 {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

h2 {
    font-size: 18px;
    margin: 15px 0 10px 0;
}

h3 {
    font-size: 16px;
    margin: 7px 0;
}

p {
    max-width: 850px;
    margin: 10px auto;
    line-height: 1.5em;
}

a {
    color: #2C4D69;
    font-family: Calibri, Verdana, Arial, Helvetica, sans-serif;
    text-decoration: none;
}

a:hover {
    color: #18388B;
    text-decoration: underline;
}

.Style1 {
    font-size: 12px;
}

/* =========================================
   2. ACCESSIBILITÉ & SEO
   ========================================= */
.h1-seo {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================
   3. BOUTONS & NAVIGATION
   ========================================= */
#btnRetourHaut {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  background-color: #ffffff;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
}

#btnRetourHaut:hover {
  background-color: #ffffff;
}

/* =========================================
   4. GALERIE & ZONE DE ZOOM
   ========================================= */
.tableau-galerie {
    border-collapse: collapse;
}

.tableau-galerie td {
    vertical-align: top;
    padding: 0;
}

.cellule-vignettes {
    padding-left: 20px !important;
}

#zoneZoom {
    width: 600px !important;
    height: 550px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 0;
    overflow: hidden; /* Coupe proprement ce qui dépasse lors du déplacement */
    cursor: zoom-in;
    background-color: #ffffff;
    margin: 0 auto;
    user-select: none; /* Évite de sélectionner l'image en bleu quand on glisse */
}

#zoneZoom.zoome {
    cursor: grab; /* Main ouverte quand le zoom est actif */
}

#zoneZoom.en-glissement {
    cursor: grabbing; /* Main fermée pendant le déplacement */
}

#imagePrincipale {
    width: auto !important;
    height: auto !important;
    max-width: 598px !important;
    max-height: 548px !important;
    display: block;
    transition: transform 0.35s ease-out; /* Animation douce à l'entrée/sortie du zoom */
    transform-origin: center center;
    pointer-events: none; /* Empêche le glisser-déposer fantôme natif du navigateur */
}

/* Désactive la transition pendant le déplacement manuel pour un suivi immédiat */
#zoneZoom.en-glissement #imagePrincipale {
    transition: none;
}

#legendePrincipale {
    width: 600px;
    height: 36px; /* Réserve toujours l'espace de 2 lignes */
    overflow: hidden;
    padding-top: 8px;
    font-size: 10px;
    color: #333333;
}

/* =========================================
   5. VIGNETTES & CARROUSEL
   ========================================= */
.vignette {
    width: auto;
    height: 150px;
    display: inline-block;
    margin-bottom: 0;
    flex-shrink: 0;
    border: 2px solid #8E1808;
    border-radius: 8px;
    box-sizing: border-box; /* Inclut la bordure dans les 150px */
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, border-color 0.2s, border-radius 0.2s;
}

.vignette:hover, 
.vignette.active {
    opacity: 1;
    border: 2px solid transparent; /* Garde l'épaisseur de 2px mais invisible */
    border-radius: 0;
}

.carrousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre l'ensemble s'il y a peu de vignettes */
    max-width: 800px;
    width: 100%;
    margin: 10px auto 0 auto;
}

.carrousel-piste {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 720px; /* Passe en mode défilement au-delà de 720px */
}

.carrousel-piste::-webkit-scrollbar {
    display: none;
}

/* Flèches de navigation du carrousel */
.fleche-nav {
    display: block;
    background-color: #f9f9f9;
    border: none;
    color: #000000;
    font-size: 18px;
    width: 30px;
    height: 150px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.fleche-nav:hover {
    background-color: #000000;
    color: #ffffff;
}


.bandeau-cat {
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: Calibri, Verdana, Arial, sans-serif;
    font-size: 17px; /* Plus léger que 17px */
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: left;
}

.bandeau-pill {
    background-color: #D0DBD7;
    padding: 6px 16px;
    border-radius: 6px; /* Remplace vos GIFs latéraux proprement */
}
